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

 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 cc,STp,UrT,fz,aH,JZp,jx,YY,Cz,DZ,aZM,AZc,pz,OzZ,zRY,Mr,Bpz,KpZ,$rR,fi,lZZ,YTx,HzZ,hRY,qTp,Ip,NH,Yl,H_,Mxp,pi,izp,qH,wd,W_,Gzo,kl,dd,gYc,drR,vYY,me,LpY,c8,EYZ,JU,PMY,ag,txY,yZo,c$z,w1,Qpx,fTz,UHR,J$x,aTY,TO,oYR,DB,mrY,Sdp,Bdz,nlZ,bix,g1,Ndp,KeH,$Hz,uho,lTY,YdT,DHz,tU,qdH,w_R,MzZ,WeZ,glo,yp,ca,esY,PuH,UC,Lex,RsM,tzz,aA,Vzp,Jj,jpZ,za,IA,nh,XA,NV,mHZ,y$Y,olT,jl,SZT,cUz,Qgr,UGH,fBx,ph,JUR,aBp,$Z,X8Y,OTz,sC,xGY,n0M,ZR,uET,FVx,jgo,lBp,YZZ,qZz,DGp,el,rU,w8H,MNr,iTM,g0o,v0Z,yUz,cjM,aRp,J5,Xap,zQp,xD,B7,
In,Ng,Kc,DQ,h5,qg,NUx,W7,$VR,lRH,Lc,Ey,CYZ,Vx,Rn,mc,S6,DVr,paR,hQM,qCp,TUx,wap,sAZ,Mlo,ihH,Gax,Ah,Jh,WEr,gZp,eQY,rjY,kaZ,dVp,nR,PYx,bi,NZ,KR,$p,Yp,EZY,CR,Vlx,Syp,DW,c5c,Qno,fQo,hh,UgY,J5z,qZ,TC,X7p,s7,xgc,Fcz,MZ,IQZ,B_H,nDY,bcp,N_o,Kco,GC,$gH,uKZ,Ws,jnp,lQo,g8,e6,r8,d8,Yyr,Hcz,CoZ,vs,p7Y,hhz,qyY,LR,th,Vq,RN,yq,oN,mo,T_H,w7p,snH,MSR,icp,Zcp,GRH,Wcp,gDM,ehr,kRp,c5,r5M,dgT,UV,vDZ,aq,AH,Poo,tSY,VSo,RhR,oDz,mgo,S7Y,UZH,Jhp,aWp,AhY,Xsr,ORx,zUo,IWZ,zc,npY,bRT,N8c,Kox,$ZR,u1p,lWz,iRc,ZRM,GCY,gpT,eUx,$h,kCM,
uN,Lop,EpR,t6H,V6p,RUZ,yhZ,opx,mZz,H5,cHY,vpY,QqR,f0R,Ukp,JHp,a0T,AHp,X5o,Onz,zKz,Bbo,FWc,bnY,I0x,nhx,$kz,u4z,jqc,Nbz,YVp,KWx,Hnp,eC,Dkc,kh,db,p5T,qVc,Tbr,MCz,vhz,Znr,inT,WWp,eKR,GcH,tCo,LWY,VCY,RKT,yHp,ohz,mko,coc,Shx,Qjc,f3T,Ufc,JoZ,Aoz,O9Y,zxp,xfp,BFz,F2c,H9H,Rq,Dfp,hxT,qhp,TFp,w1p,sjp,i9M,Z9p,Gkr,f9,Uh,W2T,dfY,X5,Oh,ExZ,ttT,UjT,BXz,Ij,sxp,MdY,Wmp,Zyp,GoR,uG,gvT,eqZ,rtx,djp,vvZ,PQp,LmR,EvH,tdY,Yx,RqY,ovz,yto,SpY,wF,Z3,Qkz,fJx,URc,JSp,aJT,ASM,ObZ,xRp,zjZ,Rj,oj,m2,CWZ,Hbp,Qi,pYc,hjz,fy,TCp,qpH,ejT,
k_Z,rSo,vCp,tGz,Rjx,ySo,oCY,mRp,clY,fhc,UxY,Xr,XiZ,xxY,F5Z,B5p,Ihp,nrH,zIr,Alc,ahY,zo,JlH,blc,K5x,lhp,uJp,Ix,CBp,Dxp,pic,hIM,q8H,Ky,T5Y,s6Y,wiY,MJr,ZlZ,jd,vrp,L5p,tJp,RIR,Cy,orp,py,qj,ht,QRR,ylZ,fzH,sj,ABz,Wr,zJz,Bep,nMT,b6c,NeY,ed,KOc,$qx,uLY,lzz,YJz,CHo,H6z,ptY,rX,hJz,qJY,vr,Ej,sRx,M8T,i6o,Vi,WOR,gMM,kfT,Q0,EMR,t8o,V8p,RJH,yBY,AS,Op,z_,fEp,xC,UPc,Jcz,aET,Acc,xPY,BQT,IER,FYH,BY,nLZ,$Pp,Ik,KYM,ucH,b1z,jTp,bW,YHr,C5p,H1H,DPZ,h0c,pGZ,qHZ,sTz,TQR,i1Z,keM,dPM,vLp,LYY,VeT,tec,ELo,R0r,oLH,SPR,mPY,QhT,fmM,
UmM,JOT,T_,XnH,AOR,O$r,zbp,sp,MR,xmY,BKH,nQT,KGz,umz,$mZ,SJ,jhR,Imr,hbY,qPr,TKT,Jl,wnY,MRz,GLz,ebp,gQT,vQH,POz,LGZ,EQR,VRY,SMp,RbM,oQY,mmx,cGR,QYR,UET,fqT,aqY,JGM,Nx,AGo,OPY,zzZ,IqY,Hi,Dh,nUT,bPp,pl,uuz,w5,s8,Mx,CxR,iB,pdT,Wi,hzY,qMR,TNH,wdZ,kr,sYx,iPp,ZPY,W1Z,ezT,dEY,Pxp,o6,L1z,EUp,tBp,VBY,RzT,yGH,oUY,mET,ct,QIp,f5M,UDY,JzH,a5p,Azp,X2p,O8R,zWZ,xDc,FqR,BSZ,I5Y,OJ,DDc,p2Y,zf,xM,FL,hWz,qzo,TST,w2Y,sIR,MLz,i8x,eWT,kZY,rzT,dDz,vtH,bH,K6,$M,uH,Ht,Dz,p6,LqH,qq,tLM,Tf,VLR,RWp,we,yzz,otz,mDo,XqY,zro,nyT,
$Oc,KMT,OKz,uTZ,YmH,WMc,qmY,dOY,wqM,rbr,vyR,Wt,LMT,e8,tDR,VDR,ybT,oyo,mOz,c4x,de,fOY,U6H,J4p,aOZ,A4M,XVZ,OJY,QMx,FSY,Bho,IOT,Pt,uUr,jMo,$6o,Y_p,ClZ,D6M,pVR,HJc,iJH,GWz,gkR,kWZ,cG,Ekz,LSZ,okY,Srp,cqM,Q1T,fIz,U_M,Jqc,Fc,IIz,bUx,FvM,x_H,nnZ,AqZ,KvM,qrT,j1Z,lIz,Yrp,efZ,rqc,gnc,t$z,Wvp,aIc,EnY,uVp,hfH,k4Y,NMx,OUo,X0z,zfZ,BMc,G4p,hc,OvY,xKZ,Fdc,BHo,IcZ,YXR,qXp,THZ,gQ,sWz,Zvo,eoZ,gzR,r2M,dKz,P7T,EzZ,LdM,twR,RT,VwR,Rop,ozR,y2z,y1,Uor,fLR,QZo,X3p,JaZ,O4H,AaY,zDc,mY,xop,ndR,Bjx,ILr,Njz,uiY,f$,Y2p,jZY,C8z,hDZ,
q2H,sZM,i4x,AO,Xm,gdz,eDz,OP,zL,ksr,xQ,Fm,rax,Bn,doz,Ih,vdz,P8T,bO,LZz,EdZ,tyY,Vyx,RDY,odc,yaY,SeZ,fez,QiY,Usp,J8Y,moH,aeo,OST,XKY,c8p,zBz,xso,jR,Fwx,IeT,BJz,naY,bSp,KwT,NJZ,$sH,YQ,jix,lep,uZz,C9M,HSH,DsY,wKY,iSZ,eBz,vaY,C$,Eaz,t9o,Hn,V9Z,qm,TL,cWY,p$,Mm,QCr,f6o,JWr,a6T,XZM,znz,x$c,FlM,BDY,bDH,jCo,$$Y,nuZ,l6H,YIZ,Wn,ufR,CVc,kQ,HDo,D$p,pZT,hnx,sCo,qIT,wZH,Gwx,Wlz,d$p,rWp,LlY,ouY,m$p,cwc,fvZ,U7p,avc,Awx,X$Y,zpZ,x7z,F9x,nsz,$7r,uqz,bjp,lvT,Cex,Y9p,jKZ,HjZ,p$x,hpp,q9Z,TaM,w$z,SB,cd,UM,aY,ijH,Zjo,W9c,
kVo,AG,Xu,rwH,OM,PeR,L9M,Esc,xU,osZ,Qro,UJr,JPR,axY,APY,Xgo,xJz,Bd,FJT,nHM,IY,bWc,$JZ,uax,jrY,KJM,pgH,TrT,hYc,wgR,iWp,G1p,gHz,dJx,rPo,EHo,$U,tpz,VpH,ux,RYT,jB,yPY,oHc,mJz,cMZ,SRz,QlT,f$p,U1r,JMY,FCr,I$T,bxp,nqR,Oxz,AMM,KCZ,uNz,Hxp,D1z,qRp,ZxY,WCZ,Hd,gqc,kEZ,rMZ,vqz,tWT,yMp,SnY,c3o,QaM,fgc,XHT,UUz,FLx,BTz,n5Y,hG,NTz,KLc,$UR,uSz,jaZ,lgz,YnR,H0Z,DUZ,sM,pHp,hCM,TTp,ix,qnZ,saZ,GNo,Wd,WLp,g5o,eCx,dUp,v5r,kNY,LLY,RCx,y3p,o5T,LP,mUT,fAz,UIc,RY,Amz,JmM,aAT,Ofz,xIc,Fto,bfM,$IR,KtM,Nkp,uzM,lAz,YbY,h7Y,CdY,qbH,
wmp,TkT,Wtp,krc,dIM,Pdc,VVo,Q8M,USo,J1c,Owp,xSx,wS,kt,N3H,j8Y,uxH,YEY,C4T,DSr,Hwz,p9M,h1M,rS,bKc,KuY,lPH,$SH,gS,w9Y,s8p,MgR,iwp,Zwz,GgR,Wuc,goo,SD,e1H,cq,kgz,r1p,dSz,voY,Um,P4R,tgo,R1c,y1o,UYo,a2Y,AkR,XEz,zkx,xYz,Bq,B6o,I2c,nNY,bLp,N6T,KUH,ugR,l2Y,CKx,HLT,wER,qWx,s0p,ZLp,GST,uZ,WUc,gNp,ekz,dYR,j7Y,vNz,Y$H,HOp,CK,pxr,h6M,D9T,q$Y,T9T,s7p,iOZ,MsH,ZOZ,wxc,Gpz,WIR,g1Z,e6r,kpr,rep,d9z,v1p,Pcp,tsR,E1Y,VsH,yeZ,R6M,Hq,o1Y,cpz,awp,m9M,ApY,XAR,Okx,zOT,Kxx,uPp,jJc,Yax,CAz,Gh,hOz,sJo,ikc,Wq,gcz,Wxo,eOp,ky,kFT,
rpz,dBo,PAR,Lxr,EcR,tTT,ROZ,ypz,AAp,fCT,JAT,Otr,XLp,zeM,xiR,B2Y,nAM,N2p,$iM,qcx,sFR,itM,Ztc,G7x,W6z,gAr,k7p,rAz,PnZ,L6R,EAH,tnp,Vnr,Reo,yAZ,oAz,cKR,JKY,Sm,cV,QI,fJ,aMx,aM,Xbo,NcR,Yxp,jtr,eSY,k3p,rKp,zSY,bMp,BcZ,vRT,PsR,Lnr,$uo,tEM,RSH,oRz,cNz,QQZ,ul,Yk,CJ,OmY,XJZ,B4x,IpH,YLY,Hmp,pJz,h5Y,wJM,MIM,sQR,Gyz,gJZ,LyZ,vJH,kyx,PvR,rNM,EJR,yNx,em,a4Y,f4Y,XCp,OsZ,x3z,F8x,rh,BLc,bsz,K8T,$3M,jvR,uyr,PV,pCz,yI,qtz,TLT,mS,wCZ,svY,Mrr,isc,Zsp,GKz,W8p,gOH,euY,kKM,rvo,d3Y,vOY,PgM,L8Y,S$,EOo,trH,Vrp,Ruz,yvp,oOM,m3T,
S6x,cdM,Q5p,fjo,U0c,Q_,ajR,XuY,zlp,BlZ,bEZ,Nlo,Krz,udc,ljo,Y6Y,CFc,z4,q6M,puY,TlZ,wuM,s5x,ZEZ,GTp,Wro,elY,lw,rdp,uw,vFR,PFo,Yn,LrZ,EFz,tXx,VXY,H0,m0R,c7p,arM,J7r,XeY,O3R,sr,zTY,xnY,BVx,n9T,b3R,KhY,$nz,Irz,ubZ,H3H,quY,TVo,M_,wex,sPY,Whc,Mjc,Z3Z,G0Y,v9Y,eTo,Pjx,E9z,Vjz,RTo,y7Z,o9Y,mno,S4H,Q2Z,fNY,U5c,JLT,aNc,XMZ,z8Y,Bip,Nip,uWp,lNM,H2p,kn,D5x,pMM,h8R,q4p,TiY,s2T,M7z,i2o,Z2T,G9T,Wzz,g3x,e8T,k9Z,rLT,d5T,PXT,v3Z,t7p,R8H,v0,yLZ,SSo,m5Y,LU,fYo,UFo,JTM,XXo,xFM,ztM,ATc,IYZ,Boz,$FY,ngo,o1,NoH,DFM,lYo,YSz,Cbz,
HXY,pXp,qST,htZ,mv,Sw,GmY,wXR,ZXo,iXp,sST,M4p,etY,rTY,vgT,dFY,t4R,Egz,yTY,ogY,S0T,c6c,mFp,QmR,UdH,fnY,anr,Oaz,XB,zHZ,xdo,InH,$dY,HaM,zv,pyz,wyo,Zap,iap,smM,MuH,nv,eHo,GXx,WFp,kXc,ddp,r6T,LFr,EbY,Vuz,RHZ,y6c,obM,mdT,c_c,Q3Z,h2,UzM,Tv,J_Y,OgY,zwR,i7,xzp,Btr,lsz,ew,NtR,j3p,KiY,$zY,DzZ,pwH,Hgc,hwT,qqc,MoR,TtZ,igz,ZgR,rH,Wic,gIY,ewz,GAp,PI,kAp,dH,PkH,oIM,mzz,SFZ,cQo,QOM,fuY,AQZ,JQZ,aux,UXc,O5z,FPc,n_Y,b5z,KPT,jOZ,$XZ,uQo,luZ,CDp,H5M,DXY,pDY,hAr,qFr,wDr,md,sOR,Z5H,i5o,WPH,GUZ,g_o,eAc,kUZ,c3,dXR,Swo,o_o,
fkT,ULY,zVr,xLz,FQz,BEz,IkY,nKr,KQY,$LH,uDM,jLY,C3p,HNc,DLz,pFZ,hVH,qwz,TEY,wFc,sLz,MhH,ZNx,GMz,WQZ,kMR,dLZ,EKH,LQY,P3Z,vKz,ynp,Vhx,mLY,cxR,Qer,fXY,jy,UQr,Jxz,aXH,zmp,Axx,xQT,Xkz,F7r,H3,BzZ,IXZ,nXH,OZY,bZT,jeM,YQY,lXp,ha,C$T,HZo,DQR,pko,hmp,qQY,wkz,seZ,MFM,iZM,W7x,GPR,dQc,ZZp,Ts,vXY,gXx,rxY,EXo,VFp,SlR,oXo,mQp,yxo,RmY,W3,cyc,fGp,Ubp,Jyr,aGZ,Ayc,F_x,OdZ,X4c,zNz,YlT,jyz,xbY,uko,TRz,w4p,syp,MqR,idz,Zdp,GBz,eNz,ryH,vSz,L_r,ESY,tqz,oSo,yyM,mbR,c0z,Ue,UeY,J0H,adZ,A0Y,ai,A8,zLc,BWY,$ex,YgY,Cax,Hop,Dez,pSp,
hLc,TWY,sGZ,wSx,MMp,Zoo,G5o,W$Y,gVo,eLo,k5c,FZ,r0Y,VMM,RLz,L$Y,PaM,tMo,EVz,UhY,cJc,nS,JJZ,aHx,AJZ,XWY,OIY,zcR,xhz,FjY,BfY,nWY,NfZ,$ho,jEz,YDc,pWR,hcz,qDp,sEc,wWY,TfH,MYR,iIz,Glz,Wjc,gWz,ecY,j9,rJz,dhc,vWZ,Ljx,P_Z,EWc,VYM,oWY,mhT,S3Z,cDT,QuY,U4M,JDx,fiM,x4Y,Fso,Iiz,Bgp,n8Y,Ksz,$4r,ujM,jup,Y3H,lic,HpZ,wpZ,TgZ,MZZ,ipp,Zpz,kuM,rDc,d4o,v8c,E8z,tZR,yDz,m4c,o8M,SBY,ka,cEp,Q4p,fSZ,UNo,Xzo,AEr,OCR,zyZ,F3z,BwH,bCr,K3x,$NY,u8z,j4c,lSZ,YBr,CpR,HCY,DNZ,pzo,qBZ,hyZ,Twr,wzp,s4z,M3M,iCp,ZCT,GGM,g$p,eyY,W3c,t8,dNo,
v$o,PpZ,L3M,E$R,V3Y,o$x,mNp,S5Y,cro,QXp,fUz,JrT,aUR,XOz,zaZ,FNM,bqx,IUT,BBz,n7p,NBo,uCp,KNz,$Mz,lUp,Hqo,DMp,pOr,q5Z,TBM,wOc,MkR,Zqp,sXT,G6Y,WNx,g7M,eax,k6T,rrc,v7x,dMz,PUZ,LNH,E7H,tkZ,yro,o7o,mMZ,S1R,cgo,Qsp,fbT,abp,AgH,Uao,JgT,xaZ,FaR,AW,NnZ,KaY,u$p,Y1x,lbp,CLr,Hex,xu,BZ,pfH,hFY,bV,N$,ssH,q1x,Tnr,ZeT,g2Y,k2T,rgx,daz,v2H,PLp,E2x,tUo,VUp,RFR,ygT,o2Y,max,uV,Skz,cfH,lV,QfZ,f9Z,U8c,Jfz,a9p,Afp,HZ,D6,XRp,OYY,pD,z3z,x8Y,FTz,BIY,nPx,bYp,KTr,Ykp,l9r,jfT,C0M,HYM,wRR,h3Y,qkp,pRz,TIo,q$,iYc,ZYH,Gxz,WTo,gPM,
kxo,P0z,d8Z,Tw,rfM,R3z,oPY,m8z,SKH,cYr,QDp,UWo,JYz,aox,AYM,OQH,zPx,xWr,Bqp,Ioz,bQr,NqH,loY,ChZ,YKY,DWz,w6z,sDZ,Mfr,iQY,GbZ,Z6,WZ,Gw,WHp,gBp,ePr,kbz,dWR,vBY,PhY,LHp,tfr,RPZ,yYZ,oBp,gD,mWY,csp,Qcz,JsY,aaM,e0,ku,Oup,Asx,zgY,BGR,x2T,IaY,dD,buY,NGT,unx,lap,vZ,CfZ,Huz,D2c,pvr,hgp,qGx,TGo,scY,GYZ,WBY,kYY,gfc,egZ,rsT,LBx,d2o,PfY,EfT,tcZ,VcZ,ofp,m2r,SOY,cRz,QVo,XBT,ARR,IKY,NYY,ml,KfR,p1r,$pM,u9x,lKp,Czc,HBT,sVc,Mbx,U9,iBp,ZBY,GjZ,g4Y,eXc,rRZ,v4M,kjR,dpY,LfM,Pzp,RXp,tbc,yRZ,o4p,mpY,Sio,cFc,f7M,Q9z,AFc,zGc,
Xhp,xAZ,Fgz,BAx,Xq,I7Y,n6o,zV,NAY,bAH,KgM,$Az,j9H,l7p,CTT,HAz,DAZ,phz,hGT,whx,iAT,WgY,GQz,g6x,eGM,dAo,mAp,E6Z,cVp,QUc,Uyz,JVT,OHT,FKH,IDo,niz,bHZ,KKz,$yp,ueH,jUx,lDM,YsR,CIc,DyZ,qsx,TuZ,wjR,sUp,ZHz,iHZ,eZz,kdx,rVT,taH,LKx,VaM,RZo,yVz,myR,hw,c9R,s9,flY,J9z,alM,xtR,BmY,Nmz,$tR,uGz,llp,YUY,Cqo,DtH,h$p,qUM,s_Y,iFx,W4x,GqR,ZFz,eP,e$M,gTH,kqR,r9p,dtZ,vTc,Pqo,L4c,ETY,Vvz,R$H,y9z,oTY,mtM,Svc,cuM,QbT,fFr,JuM,aFz,IFT,nep,b7r,N7p,KXc,jbY,E9,pUY,h4Y,qvH,T7z,wUR,VG,RK,ya,yG,m9,e4T,ver,LXp,PPZ,Sp,EeZ,tQZ,vZR;
_.Sx=function(S,c){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Sx);else{var Q=Error().stack;Q&&(this.stack=Q)}S&&(this.message=String(S));c!==void 0&&(this.cause=c)};
cc=function(){throw Error("B");};
STp=function(S,c){c=String.fromCharCode.apply(null,c);return S==null?c:S+c};
UrT=function(S){var c=!1;c=c===void 0?!1:c;if(cZp){if(c&&(QHo?!S.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(S)))throw Error("C");S=(fZz||(fZz=new TextEncoder)).encode(S)}else{for(var Q=0,f=new Uint8Array(3*S.length),U=0;U<S.length;U++){var a=S.charCodeAt(U);if(a<128)f[Q++]=a;else{if(a<2048)f[Q++]=a>>6|192;else{if(a>=55296&&a<=57343){if(a<=56319&&U<S.length){var X=S.charCodeAt(++U);if(X>=56320&&X<=57343){a=(a-55296)*1024+X-56320+65536;f[Q++]=a>>18|
240;f[Q++]=a>>12&63|128;f[Q++]=a>>6&63|128;f[Q++]=a&63|128;continue}else U--}if(c)throw Error("C");a=65533}f[Q++]=a>>12|224;f[Q++]=a>>6&63|128}f[Q++]=a&63|128}}S=Q===f.length?f:f.subarray(0,Q)}return S};
fz=function(S){_.QY.setTimeout(function(){throw S;},0)};
_.UT=function(S,c){return S.lastIndexOf(c,0)==0};
aH=function(S,c){var Q=S.length-c.length;return Q>=0&&S.indexOf(c,Q)==Q};
_.Xo=function(S){return/^[\s\xa0]*$/.test(S)};
_.zz=function(S,c){return S.indexOf(c)!=-1};
_.xY=function(S,c){return _.zz(S.toLowerCase(),c.toLowerCase())};
_.nz=function(S,c){var Q=0;S=Fo(String(S)).split(".");c=Fo(String(c)).split(".");for(var f=Math.max(S.length,c.length),U=0;Q==0&&U<f;U++){var a=S[U]||"",X=c[U]||"";do{a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""];X=/(\d*)(\D*)(.*)/.exec(X)||["","","",""];if(a[0].length==0&&X[0].length==0)break;Q=JZp(a[1].length==0?0:parseInt(a[1],10),X[1].length==0?0:parseInt(X[1],10))||JZp(a[2].length==0,X[2].length==0)||JZp(a[2],X[2]);a=a[3];X=X[3]}while(Q==0)}return Q};
JZp=function(S,c){return S<c?-1:S>c?1:0};
_.bM=function(){var S=_.QY.navigator;return S&&(S=S.userAgent)?S:""};
jx=function(S){if(!Kz||!$Y)return!1;for(var c=0;c<$Y.brands.length;c++){var Q=$Y.brands[c].brand;if(Q&&_.zz(Q,S))return!0}return!1};
YY=function(S){return _.zz(_.bM(),S)};
Cz=function(){return Kz?!!$Y&&$Y.brands.length>0:!1};
DZ=function(){return Cz()?!1:YY("Opera")};
aZM=function(){return Cz()?!1:YY("Trident")||YY("MSIE")};
AZc=function(){return Cz()?jx("Microsoft Edge"):YY("Edg/")};
pz=function(){return YY("Firefox")||YY("FxiOS")};
_.sT=function(){return YY("Safari")&&!(_.Tz()||(Cz()?0:YY("Coast"))||DZ()||(Cz()?0:YY("Edge"))||AZc()||(Cz()?jx("Opera"):YY("OPR"))||pz()||YY("Silk")||YY("Android"))};
_.Tz=function(){return Cz()?jx("Chromium"):(YY("Chrome")||YY("CriOS"))&&!(Cz()?0:YY("Edge"))||YY("Silk")};
_.XcR=function(){return YY("Android")&&!(_.Tz()||pz()||DZ()||YY("Silk"))};
OzZ=function(S){var c={};S.forEach(function(Q){c[Q[0]]=Q[1]});
return function(Q){return c[Q.find(function(f){return f in c})]||""}};
zRY=function(S){var c=_.bM();if(S==="Internet Explorer"){if(aZM())if((S=/rv: *([\d\.]*)/.exec(c))&&S[1])c=S[1];else{S="";var Q=/MSIE +([\d\.]+)/.exec(c);if(Q&&Q[1])if(c=/Trident\/(\d.\d)/.exec(c),Q[1]=="7.0")if(c&&c[1])switch(c[1]){case "4.0":S="8.0";break;case "5.0":S="9.0";break;case "6.0":S="10.0";break;case "7.0":S="11.0"}else S="7.0";else S=Q[1];c=S}else c="";return c}var f=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");Q=[];for(var U;U=f.exec(c);)Q.push([U[1],U[2],U[3]||void 0]);
c=OzZ(Q);switch(S){case "Opera":if(DZ())return c(["Version","Opera"]);if(Cz()?jx("Opera"):YY("OPR"))return c(["OPR"]);break;case "Microsoft Edge":if(Cz()?0:YY("Edge"))return c(["Edge"]);if(AZc())return c(["Edg"]);break;case "Chromium":if(_.Tz())return c(["Chrome","CriOS","HeadlessChrome"])}return S==="Firefox"&&pz()||S==="Safari"&&_.sT()||S==="Android Browser"&&_.XcR()||S==="Silk"&&YY("Silk")?(c=Q[2])&&c[1]||"":""};
_.xrz=function(S){if(Cz()&&S!=="Silk"){var c=$Y.brands.find(function(Q){return Q.brand===S});
if(!c||!c.version)return NaN;c=c.version.split(".")}else{c=zRY(S);if(c==="")return NaN;c=c.split(".")}return c.length===0?NaN:Number(c[0])};
Mr=function(){return Kz?!!$Y&&!!$Y.platform:!1};
_.Fpo=function(){return Mr()?$Y.platform==="Android":YY("Android")};
Bpz=function(){return YY("iPhone")&&!YY("iPod")&&!YY("iPad")};
_.iM=function(){return Bpz()||YY("iPad")||YY("iPod")};
_.IZz=function(){return Mr()?$Y.platform==="macOS":YY("Macintosh")};
_.nYH=function(){return Mr()?$Y.platform==="Windows":YY("Windows")};
_.bzz=function(){return Mr()?$Y.platform==="Chrome OS":YY("CrOS")};
_.Gz=function(S){return S[S.length-1]};
_.Wc=function(S,c,Q){c=_.NpY(S,c,Q);return c<0?null:typeof S==="string"?S.charAt(c):S[c]};
_.NpY=function(S,c,Q){for(var f=S.length,U=typeof S==="string"?S.split(""):S,a=0;a<f;a++)if(a in U&&c.call(Q,U[a],a,S))return a;return-1};
KpZ=function(S){for(var c=_.gp,Q=typeof S==="string"?S.split(""):S,f=S.length-1;f>=0;f--)if(f in Q&&c.call(void 0,Q[f],f,S))return f;return-1};
_.dp=function(S,c){return _.kY(S,c)>=0};
_.Lz=function(S,c){_.dp(S,c)||S.push(c)};
_.tZ=function(S,c){c=_.kY(S,c);var Q;(Q=c>=0)&&_.ET(S,c);return Q};
_.ET=function(S,c){Array.prototype.splice.call(S,c,1)};
_.VY=function(S){var c=S.length;if(c>0){for(var Q=Array(c),f=0;f<c;f++)Q[f]=S[f];return Q}return[]};
_.oH=function(S,c){for(var Q=1;Q<arguments.length;Q++){var f=arguments[Q];if(_.yY(f)){var U=S.length||0,a=f.length||0;S.length=U+a;for(var X=0;X<a;X++)S[U+X]=f[X]}else S.push(f)}};
_.uoc=function(S,c,Q,f){Array.prototype.splice.apply(S,$rR(arguments,1))};
$rR=function(S,c,Q){return arguments.length<=2?Array.prototype.slice.call(S,c):Array.prototype.slice.call(S,c,Q)};
fi=function(S,c){c=c||S;for(var Q=0,f=0,U={};f<S.length;){var a=S[f++],X=_.c_(a)?"o"+_.Qd(a):(typeof a).charAt(0)+a;Object.prototype.hasOwnProperty.call(U,X)||(U[X]=!0,c[Q++]=a)}c.length=Q};
_.jHZ=function(S,c,Q){Q=Q||_.Ud;for(var f=0,U=S.length,a;f<U;){var X=f+(U-f>>>1);var z=Q(c,S[X]);z>0?f=X+1:(U=X,a=!z)}return a?f:-f-1};
_.A$=function(S,c,Q){if(!_.yY(S)||!_.yY(c)||S.length!=c.length)return!1;var f=S.length;Q=Q||lZZ;for(var U=0;U<f;U++)if(!Q(S[U],c[U]))return!1;return!0};
_.Ud=function(S,c){return S>c?1:S<c?-1:0};
lZZ=function(S,c){return S===c};
YTx=function(S,c,Q){c=Array.prototype.splice.call(S,c,1);Array.prototype.splice.call(S,Q,0,c[0])};
HzZ=function(S){return CMM[S]||""};
hRY=function(S){if(!Drc)return _.Od(S);S=pcp.test(S)?S.replace(pcp,HzZ):S;S=atob(S);for(var c=new Uint8Array(S.length),Q=0;Q<S.length;Q++)c[Q]=S.charCodeAt(Q);return c};
qTp=function(S,c){S.__closure__error__context__984382||(S.__closure__error__context__984382={});S.__closure__error__context__984382.severity=c};
_.Fh=function(S){S=Error(S);qTp(S,"warning");return S};
Ip=function(S,c){if(S!=null){var Q;var f=(Q=Tpz)!=null?Q:Tpz={};Q=f[S]||0;Q>=c||(f[S]=Q+1,S=Error(),qTp(S,"incident"),fz(S))}};
NH=function(S,c,Q){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(Q===void 0?0:Q)&&Symbol.for&&S?Symbol.for(S):S!=null?Symbol(S):Symbol():c};
Yl=function(S,c){jz||_.lu in S||wcH(S,sHo);S[_.lu]|=c};
H_=function(S,c){jz||_.lu in S||wcH(S,sHo);S[_.lu]=c};
Mxp=function(S){if(4&S)return 512&S?512:1024&S?1024:0};
pi=function(S){Yl(S,34);return S};
izp=function(S){Yl(S,32);return S};
qH=function(){return typeof BigInt==="function"};
wd=function(S,c){return c===void 0?S.copyOnWrite!==TJ&&!!(2&(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.lu]|0)):!!(2&c)&&S.copyOnWrite!==TJ};
_.GJ=function(S,c){if(S!=null)if(typeof S==="string")S=S?new MH(S,iu):_.ZT();else if(S.constructor!==MH)if(Zzr&&S!=null&&S instanceof Uint8Array)S=S.length?new MH(new Uint8Array(S),iu):_.ZT();else{if(!c)throw Error();S=void 0}return S};
W_=function(S,c){if(typeof c!=="number"||c<0||c>=S.length)throw Error();};
Gzo=function(S,c,Q){var f=c&128?0:-1,U=S.length,a;if(a=!!U)a=S[U-1],a=a!=null&&typeof a==="object"&&a.constructor===Object;var X=U+(a?-1:0);for(c=c&128?1:0;c<X;c++)Q(c-f,S[c]);if(a){S=S[U-1];for(var z in S)!isNaN(z)&&Q(+z,S[z])}};
kl=function(S){return S&128?gd:void 0};
dd=function(S){S.isGuard_doNotManuallySetPrettyPlease=!0;return S};
gYc=function(){var S=WpM;return dd(function(c){for(var Q in S)if(c===S[Q]&&!/^[0-9]+$/.test(Q))return!0;return!1})};
_.Li=function(S){var c=S;if(eRc(c)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(c))throw Error(String(c));}else if(kzZ(c)&&!Number.isSafeInteger(c))throw Error(String(c));return P_?BigInt(S):S=rZo(S)?S?"1":"0":eRc(S)?S.trim()||"0":String(S)};
drR=function(S,c){if(S.length>c.length)return!1;if(S.length<c.length||S===c)return!0;for(var Q=0;Q<S.length;Q++){var f=S[Q],U=c[Q];if(f>U)return!1;if(f<U)return!0}};
vYY=function(S){var c=S>>>0;Vd=c;Rp=(S-c)/4294967296>>>0};
me=function(S){if(S<0){vYY(-S);var c=_.A(PMY(Vd,Rp));S=c.next().value;c=c.next().value;Vd=S>>>0;Rp=c>>>0}else vYY(S)};
LpY=function(S,c){var Q=c*4294967296+(S>>>0);return Number.isSafeInteger(Q)?Q:_.SN(S,c)};
c8=function(S,c){var Q=c&2147483648;Q&&(S=~S+1>>>0,c=~c>>>0,S==0&&(c=c+1>>>0));S=LpY(S,c);return typeof S==="number"?Q?-S:S:Q?"-"+S:S};
_.SN=function(S,c){c>>>=0;S>>>=0;if(c<=2097151)var Q=""+(4294967296*c+S);else qH()?Q=""+(BigInt(c)<<BigInt(32)|BigInt(S)):(Q=(S>>>24|c<<8)&16777215,c=c>>16&65535,S=(S&16777215)+Q*6777216+c*6710656,Q+=c*8147497,c*=2,S>=1E7&&(Q+=S/1E7>>>0,S%=1E7),Q>=1E7&&(c+=Q/1E7>>>0,Q%=1E7),Q=c+EYZ(Q)+EYZ(S));return Q};
EYZ=function(S){S=String(S);return"0000000".slice(S.length)+S};
_.fT=function(S,c){c&2147483648?qH()?S=""+(BigInt(c|0)<<BigInt(32)|BigInt(S>>>0)):(c=_.A(PMY(S,c)),S=c.next().value,c=c.next().value,S="-"+_.SN(S,c)):S=_.SN(S,c);return S};
JU=function(S){if(S.length<16)me(Number(S));else if(qH())S=BigInt(S),Vd=Number(S&BigInt(4294967295))>>>0,Rp=Number(S>>BigInt(32)&BigInt(4294967295));else{var c=+(S[0]==="-");Rp=Vd=0;for(var Q=S.length,f=c,U=(Q-c)%6+c;U<=Q;f=U,U+=6)f=Number(S.slice(f,U)),Rp*=1E6,Vd=Vd*1E6+f,Vd>=4294967296&&(Rp+=Math.trunc(Vd/4294967296),Rp>>>=0,Vd>>>=0);c&&(c=_.A(PMY(Vd,Rp)),S=c.next().value,c=c.next().value,Vd=S,Rp=c)}};
PMY=function(S,c){c=~c;S?S=~S+1:c+=1;return[S,c]};
ag=function(S){return Array.prototype.slice.call(S)};
_.OZ=function(S,c){throw Error(c===void 0?"unexpected value "+S+"!":c);};
_.zO=function(S){if(S!=null&&typeof S!=="number")throw Error("I`"+typeof S+"`"+S);return S};
_.x0=function(S){if(S==null||typeof S==="number")return S;if(S==="NaN"||S==="Infinity"||S==="-Infinity")return Number(S)};
txY=function(S){if(S!=null&&typeof S!=="boolean")throw Error("J`"+_.nT(S)+"`"+S);return S};
_.Vxz=function(S){if(S==null||typeof S==="boolean")return S;if(typeof S==="number")return!!S};
_.KT=function(S){switch(typeof S){case "bigint":return!0;case "number":return bE(S);case "string":return RRp.test(S);default:return!1}};
_.jN=function(S){if(!bE(S))throw _.Fh("enum");return S|0};
_.lE=function(S){return S==null?S:bE(S)?S|0:void 0};
yZo=function(S){if(typeof S!=="number")throw _.Fh("int32");if(!bE(S))throw _.Fh("int32");return S|0};
_.Y0=function(S){return S==null?S:yZo(S)};
_.CT=function(S){if(S==null)return S;if(typeof S==="string"&&S)S=+S;else if(typeof S!=="number")return;return bE(S)?S|0:void 0};
_.H8=function(S){if(S==null)return S;if(typeof S==="string"&&S)S=+S;else if(typeof S!=="number")return;return bE(S)?S>>>0:void 0};
c$z=function(S){var c=0;c=c===void 0?0:c;if(!_.KT(S))throw _.Fh("int64");var Q=typeof S;switch(c){case 512:switch(Q){case "string":return DB(S);case "bigint":return String(qG(64,S));default:return oYR(S)}case 1024:switch(Q){case "string":return mrY(S);case "bigint":return _.Li(qG(64,S));default:return Sdp(S)}case 0:switch(Q){case "string":return DB(S);case "bigint":return _.Li(qG(64,S));default:return TO(S)}default:return _.OZ(c,"Unknown format requested type for int64")}};
w1=function(S){return S==null?S:c$z(S)};
Qpx=function(S){if(S[0]==="-")return!1;var c=S.length;return c<20?!0:c===20&&Number(S.substring(0,6))<184467};
fTz=function(S){var c=S.length;return S[0]==="-"?c<20?!0:c===20&&Number(S.substring(0,7))>-922337:c<19?!0:c===19&&Number(S.substring(0,6))<922337};
UHR=function(S){if(S<0){me(S);var c=_.SN(Vd,Rp);S=Number(c);return sZ(S)?S:c}c=String(S);if(Qpx(c))return c;me(S);return LpY(Vd,Rp)};
J$x=function(S){if(fTz(S))return S;JU(S);return _.fT(Vd,Rp)};
aTY=function(S){if(Qpx(S))return S;JU(S);return _.SN(Vd,Rp)};
TO=function(S){S=MG(S);sZ(S)||(me(S),S=c8(Vd,Rp));return S};
_.A$r=function(S){S=MG(S);return S>=0&&sZ(S)?S:UHR(S)};
oYR=function(S){S=MG(S);if(sZ(S))S=String(S);else{var c=String(S);fTz(c)?S=c:(me(S),S=_.fT(Vd,Rp))}return S};
_.X_p=function(S){S=MG(S);if(S>=0&&sZ(S))S=String(S);else{var c=String(S);Qpx(c)?S=c:(me(S),S=_.SN(Vd,Rp))}return S};
DB=function(S){var c=MG(Number(S));if(sZ(c))return String(c);c=S.indexOf(".");c!==-1&&(S=S.substring(0,c));return J$x(S)};
mrY=function(S){var c=MG(Number(S));if(sZ(c))return _.Li(c);c=S.indexOf(".");c!==-1&&(S=S.substring(0,c));return qH()?_.Li(qG(64,BigInt(S))):_.Li(J$x(S))};
Sdp=function(S){return sZ(S)?_.Li(TO(S)):_.Li(oYR(S))};
_.OiM=function(S){return sZ(S)?_.Li(_.A$r(S)):_.Li(_.X_p(S))};
_.zsZ=function(S){var c=MG(Number(S));if(sZ(c)&&c>=0)return String(c);c=S.indexOf(".");c!==-1&&(S=S.substring(0,c));return aTY(S)};
_.xHR=function(S){var c=MG(Number(S));if(sZ(c)&&c>=0)return _.Li(c);c=S.indexOf(".");c!==-1&&(S=S.substring(0,c));return qH()?_.Li((0,_.iE)(64,BigInt(S))):_.Li(aTY(S))};
_.FeM=function(S){if(S==null)return S;if(typeof S==="bigint")return ZB(S)?S=Number(S):(S=qG(64,S),S=ZB(S)?Number(S):String(S)),S;if(_.KT(S))return typeof S==="number"?TO(S):DB(S)};
Bdz=function(S,c){c=c===void 0?!1:c;var Q=typeof S;if(S==null)return S;if(Q==="bigint")return String(qG(64,S));if(_.KT(S))return Q==="string"?DB(S):c?oYR(S):TO(S)};
_.ITz=function(S){var c=typeof S;if(S==null)return S;if(c==="bigint")return _.Li(qG(64,S));if(_.KT(S))return c==="string"?mrY(S):Sdp(S)};
nlZ=function(S){if(S==null)return S;var c=typeof S;if(c==="bigint")return String(qG(64,S));if(_.KT(S)){if(c==="string")return DB(S);if(c==="number")return TO(S)}};
bix=function(S){if(S==null)return S;var c=typeof S;if(c==="bigint")return String((0,_.iE)(64,S));if(_.KT(S)){if(c==="string")return _.zsZ(S);if(c==="number")return _.A$r(S)}};
_.GO=function(S){if(typeof S!=="string")throw Error();return S};
g1=function(S){if(S!=null&&typeof S!=="string")throw Error();return S};
_.eN=function(S){return S==null||typeof S==="string"?S:void 0};
Ndp=function(S,c,Q,f){if(S!=null&&S[k0]===r1)return S;if(!Array.isArray(S))return Q?f&2?((S=c[d1])||(S=new c,pi(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),S=c[d1]=S),c=S):c=new c:c=void 0,c;Q=S[_.lu]|0;f=Q|f&32|f&2;f!==Q&&H_(S,f);return new c(S)};
KeH=function(S,c,Q){S=c?yZo(S):_.CT(S);return S==null?Q?0:void 0:S|0};
$Hz=function(S){return S};
uho=function(S){return S};
lTY=function(S,c,Q,f,U,a){S=Ndp(S,f,Q,a);U&&(S=jpZ(S));return S};
YdT=function(S){return[S,this.get(S)]};
DHz=function(){return CuT||(CuT=new v8(pi([]),void 0,void 0,void 0,HiT))};
tU=function(S){var c=P8(EZ);return c?S[c]:void 0};
qdH=function(S,c){var Q=Q===void 0?!1:Q;if(P8(p_p)&&P8(EZ)&&void 0===p_p){var f=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=f[EZ];if(!U)return;if(U=U.reviveUnknownFields)try{U(f,c,hsT);return}catch(a){fz(a)}}Q&&(S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(Q=P8(EZ))&&Q in S&&(S=S[Q])&&delete S[c])};
w_R=function(S,c){var Q=P8(EZ),f;jz&&Q&&((f=S[Q])==null?void 0:f[c])!=null&&Ip(TdY,3)};
MzZ=function(S,c){c<100||Ip(spx,1)};
WeZ=function(S,c,Q,f){var U=f!==void 0;f=!!f;var a=P8(EZ),X;!U&&jz&&a&&(X=S[a])&&Vp(X,MzZ);a=[];var z=S.length;X=4294967295;var x=!1,I=!!(c&64),n=I?c&128?0:-1:void 0;if(!(c&1)){var b=z&&S[z-1];b!=null&&typeof b==="object"&&b.constructor===Object?(z--,X=z):b=void 0;if(I&&!(c&128)&&!U){x=!0;var N;X=((N=iiM)!=null?N:$Hz)(X-n,n,S,b)+n}}c=void 0;for(N=0;N<z;N++){var l=S[N];if(l!=null&&(l=Q(l,f))!=null)if(I&&N>=X){var H=N-n,q=void 0;((q=c)!=null?q:c={})[H]=l}else a[N]=l}if(b)for(var w in b)z=b[w],z!=null&&
(z=Q(z,f))!=null&&(N=+w,l=void 0,I&&!Number.isNaN(N)&&(l=N+n)<X?a[l]=z:(N=void 0,((N=c)!=null?N:c={})[w]=z));c&&(x?a.push(c):a[X]=c);U&&P8(EZ)&&(S=tU(S))&&S instanceof ZiM&&(a[EZ]=GJr(S));return a};
glo=function(S){S[0]=yp(S[0]);S[1]=yp(S[1]);return S};
yp=function(S){switch(typeof S){case "number":return Number.isFinite(S)?S:""+S;case "bigint":return ZB(S)?Number(S):""+S;case "boolean":return S?1:0;case "object":if(Array.isArray(S)){var c=S[_.lu]|0;return S.length===0&&c&1?void 0:WeZ(S,c,yp)}if(S!=null&&S[k0]===r1)return esY(S);if(S instanceof MH){c=S.JSC$6856_value_;if(c==null)S="";else if(typeof c==="string")S=c;else{if(Drc){for(var Q="",f=0,U=c.length-10240;f<U;)Q+=String.fromCharCode.apply(null,c.subarray(f,f+=10240));Q+=String.fromCharCode.apply(null,
f?c.subarray(f):c);c=btoa(Q)}else c=_.mV(c);S=S.JSC$6856_value_=c}return S}if(S instanceof v8)return S=S.size!==0?Array.from(Sl.prototype.entries.call(S),glo):void 0,S;return}return S};
ca=function(S,c){if(c){iiM=c==null||c===$Hz||c[kJr]!==r$M?$Hz:c;try{return esY(S)}finally{iiM=void 0}}return esY(S)};
esY=function(S){S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return WeZ(S,S[_.lu]|0,yp)};
PuH=function(S){switch(typeof S){case "boolean":return dHY||(dHY=[0,void 0,!0]);case "number":return S>0?void 0:S===0?vlp||(vlp=[0,void 0]):[-S,void 0];case "string":return[0,S];case "object":return S}};
UC=function(S,c,Q){return S=_.fh(S,c[0],c[1],Q?1:2)};
_.fh=function(S,c,Q,f){f=f===void 0?0:f;if(S==null){var U=32;Q?(S=[Q],U|=128):S=[];c&&(U=U&-8380417|(c&1023)<<13)}else{if(!Array.isArray(S))throw Error("L");U=S[_.lu]|0;2048&U&&!(2&U)&&Lex();if(U&256)throw Error("N");if(U&64)return f!==0||U&2048||H_(S,U|2048),S;if(Q&&(U|=128,Q!==S[0]))throw Error("O");a:{Q=S;U|=64;var a=Q.length;if(a){var X=a-1,z=Q[X];if(z!=null&&typeof z==="object"&&z.constructor===Object){c=U&128?0:-1;X-=c;if(X>=1024)throw Error("Q");for(var x in z)a=+x,a<X&&(Q[a+c]=z[x],delete z[x]);
U=U&-8380417|(X&1023)<<13;break a}}if(c){x=Math.max(c,a-(U&128?0:-1));if(x>1024)throw Error("R");U=U&-8380417|(x&1023)<<13}}}U|=64;f===0&&(U|=2048);H_(S,U);return S};
Lex=function(){Ip(ElZ,5)};
RsM=function(S,c){if(typeof S!=="object")return S;if(Array.isArray(S)){var Q=S[_.lu]|0;return S.length===0&&Q&1?void 0:tzz(S,Q,c)}if(S!=null&&S[k0]===r1)return Vzp(S);if(S instanceof v8){c=S.arrayState;if(c&2)return S;if(!S.size)return;Q=pi(Array.from(Sl.prototype.entries.call(S)));if(S.valueCtor)for(S=0;S<Q.length;S++){var f=Q[S],U=f[1];U==null||typeof U!=="object"?U=void 0:U!=null&&U[k0]===r1?U=Vzp(U):Array.isArray(U)?U=tzz(U,U[_.lu]|0,!!(c&32)):U=void 0;f[1]=U}return Q}if(S instanceof MH)return S};
tzz=function(S,c,Q){if(c&2)return S;!Q||4096&c||16&c?S=Jj(S,c,!1,Q&&!(c&16)):(Yl(S,34),c&4&&Object.freeze(S));return S};
aA=function(S,c,Q){S=new S.constructor(c);Q&&(S.copyOnWrite=TJ);S.noLegacyNull=TJ;return S};
Vzp=function(S){var c=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=c[_.lu]|0;return wd(S,Q)?S:XA(S,c,Q)?aA(S,c):Jj(c,Q)};
Jj=function(S,c,Q,f){f!=null||(f=!!(34&c));S=WeZ(S,c,RsM,f);f=32;Q&&(f|=2);c=c&8380609|f;H_(S,c);return S};
jpZ=function(S){var c=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=c[_.lu]|0;return wd(S,Q)?XA(S,c,Q)?aA(S,c,!0):new S.constructor(Jj(c,Q,!1)):S};
za=function(S){if(S.copyOnWrite!==TJ)return!1;var c=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;c=Jj(c,c[_.lu]|0);Yl(c,2048);S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=c;S.copyOnWrite=void 0;S.noLegacyNull=void 0;return!0};
IA=function(S){if(!za(S)&&wd(S,S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.lu]|0))throw Error();};
nh=function(S,c){c===void 0&&(c=S[_.lu]|0);c&32&&!(c&4096)&&H_(S,c|4096)};
XA=function(S,c,Q){return Q&2?!0:Q&32&&!(Q&4096)?(H_(c,Q|2),S.copyOnWrite=TJ,!0):!1};
NV=function(S,c,Q,f,U){var a=Q+(U?0:-1),X=S.length-1;if(X>=1+(U?0:-1)&&a>=X){var z=S[X];if(z!=null&&typeof z==="object"&&z.constructor===Object)return z[Q]=f,c}if(a<=X)return S[a]=f,c;if(f!==void 0){var x;X=((x=c)!=null?x:c=S[_.lu]|0)>>13&1023||536870912;Q>=X?f!=null&&(a={},S[X+(U?0:-1)]=(a[Q]=f,a)):S[a]=f}return c};
_.uY=function(S,c,Q,f,U){var a=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=a[_.lu]|0;f=wd(S,X)?1:f;U=!!U||f===3;f===2&&za(S)&&(a=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,X=a[_.lu]|0);S=y$Y(a,c);var z=S===Kh?7:S[_.lu]|0,x=olT(z,X);var I=4&x?!1:!0;if(I){4&x&&(S=ag(S),z=0,x=$Z(x,X),X=NV(a,X,c,S));for(var n=0,b=0;n<S.length;n++){var N=Q(S[n]);N!=null&&(S[b++]=N)}b<n&&(S.length=b);Q=(x|4)&-513;x=Q&=-1025;x&=-4097}x!==z&&(H_(S,x),2&x&&Object.freeze(S));return S=mHZ(S,x,a,
X,c,f,I,U)};
mHZ=function(S,c,Q,f,U,a,X,z){var x=c;a===1||(a!==4?0:2&c||!(16&c)&&32&f)?jl(c)||(c|=!S.length||X&&!(4096&c)||32&f&&!(4096&c||16&c)?2:256,c!==x&&H_(S,c),Object.freeze(S)):(a===2&&jl(c)&&(S=ag(S),x=0,c=$Z(c,f),f=NV(Q,f,U,S)),jl(c)||(z||(c|=16),c!==x&&H_(S,c)));2&c||!(4096&c||16&c)||nh(Q,f);return S};
y$Y=function(S,c,Q){S=lY(S,c,Q);return Array.isArray(S)?S:Kh};
olT=function(S,c){2&c&&(S|=2);return S|1};
jl=function(S){return!!(2&S)&&!!(4&S)||!!(256&S)};
SZT=function(S){return _.GJ(S,!0)};
cUz=function(S,c){var Q=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,f=Q[_.lu]|0;a:{var U=f;f=wd(S,f);!f&&za(S)&&(Q=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=Q[_.lu]|0);var a=lY(Q,c);S=!1;if(a==null){if(f){c=DHz();break a}a=[]}else if(a.constructor===v8)if(a.arrayState&2&&!f)a=Array.from(Sl.prototype.entries.call(a));else{c=a;break a}else Array.isArray(a)?S=!!((a[_.lu]|0)&2):a=[];if(f){if(!a.length){c=DHz();break a}S||(S=!0,pi(a))}else if(S){S=!1;f=a;f=ag(f);for(a=0;a<
f.length;a++){var X=f[a]=ag(f[a]);Array.isArray(X[1])&&(X[1]=pi(X[1]))}a=f}!S&&U&32&&izp(a);f=new v8(a,void 0,KeH,KeH);U=NV(Q,U,c,f);S||nh(Q,U);c=f}return c};
_.YZ=function(S,c,Q,f){IA(S);var U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=U[_.lu]|0;if(Q==null)return NV(U,a,c),S;var X=Q===Kh?7:Q[_.lu]|0,z=X,x=jl(X),I=x||Object.isFrozen(Q);x||(X=0);I||(Q=ag(Q),z=0,X=$Z(X,a),I=!1);X|=5;var n;x=(n=Mxp(X))!=null?n:0;for(n=0;n<Q.length;n++){var b=Q[n],N=f(b,x);Object.is(b,N)||(I&&(Q=ag(Q),z=0,X=$Z(X,a),I=!1),Q[n]=N)}X!==z&&(I&&(Q=ag(Q),X=$Z(X,a)),H_(Q,X));NV(U,a,c,Q);return S};
_.Ch=function(S,c,Q,f,U){IA(S);var a=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;NV(a,a[_.lu]|0,c,(f==="0"?Number(Q)===0:Q===f)?void 0:Q,U);return S};
_.Ha=function(S,c,Q){if(c&2)throw Error();var f=kl(c),U=y$Y(S,Q,f),a=U===Kh?7:U[_.lu]|0,X=olT(a,c);if(2&X||jl(X)||16&X)U=ag(U),a=0,X=$Z(X,c),NV(S,c,Q,U,f);X&=-13;X!==a&&H_(U,X);return U};
Qgr=function(S){if(jz){var c;return(c=S[DR])!=null?c:S[DR]=new Map}if(DR in S)return S[DR];c=new Map;Object.defineProperty(S,DR,{value:c});return c};
UGH=function(S,c,Q,f,U){var a=Qgr(S),X=fBx(a,S,c,Q,U);X!==f&&(X&&(c=NV(S,c,X,void 0,U)),a.set(Q,f));return c};
fBx=function(S,c,Q,f,U){var a=S.get(f);if(a!=null)return a;for(var X=a=0;X<f.length;X++){var z=f[X];lY(c,z,U)!=null&&(a!==0&&(Q=NV(c,Q,a,void 0,U)),a=z)}S.set(f,a);return a};
ph=function(S,c,Q,f,U){var a=!1;f=lY(S,f,U,function(X){var z=Ndp(X,Q,!1,c);a=z!==X&&z!=null;return z});
if(f!=null)return a&&!wd(f)&&nh(S,c),f};
JUR=function(S,c,Q,f,U,a,X,z){var x=wd(S,Q);a=x?1:a;X=!!X||a===3;x=z&&!x;(a===2||x)&&za(S)&&(c=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q=c[_.lu]|0);S=y$Y(c,U);var I=S===Kh?7:S[_.lu]|0,n=olT(I,Q);if(z=!(4&n)){var b=S,N=Q,l=!!(2&n);l&&(N|=2);for(var H=!l,q=!0,w=0,g=0;w<b.length;w++){var r=Ndp(b[w],f,!1,N);if(r instanceof f){if(!l){var E=wd(r);H&&(H=!E);q&&(q=E)}b[g++]=r}}g<w&&(b.length=g);n|=4;n=q?n&-4097:n|4096;n=H?n|8:n&-9}n!==I&&(H_(S,n),2&n&&Object.freeze(S));if(x&&!(8&n||!S.length&&
(a===1||(a!==4?0:2&n||!(16&n)&&32&Q)))){jl(n)&&(S=ag(S),n=$Z(n,Q),Q=NV(c,Q,U,S));f=S;x=n;for(I=0;I<f.length;I++)b=f[I],n=jpZ(b),b!==n&&(f[I]=n);x|=8;n=x=f.length?x|4096:x&-4097;H_(S,n)}return S=mHZ(S,n,c,Q,U,a,z,X)};
aBp=function(S){S==null&&(S=void 0);return S};
$Z=function(S,c){return S=(2&c?S|2:S&-3)&-273};
_.AUY=function(S,c,Q,f,U){IA(S);c=_.uY(S,c,U,2,!0);var a;U=(a=Mxp(c===Kh?7:c[_.lu]|0))!=null?a:0;c.push(Q(f,U));return S};
X8Y=function(S,c,Q,f,U,a,X){IA(S);var z=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;S=JUR(S,z,z[_.lu]|0,Q,c,2,!0);if(a&&X)U!=null||(U=S.length-1),W_(S,U),S.splice(U,a),S.length||(S[_.lu]&=-4097);else{if(a){if(typeof U!=="number"||U<0||U>S.length)throw Error();}else f=f!=null?f:new Q;U!=void 0?S.splice(U,a,f):S.push(f);U=Q=S===Kh?7:S[_.lu]|0;(f=wd(f))?(Q&=-9,S.length===1&&(Q&=-4097)):Q|=4096;Q!==U&&H_(S,Q);f||nh(z)}};
OTz=function(S,c){if(typeof S==="string")return new Ta(hRY(S),c);if(Array.isArray(S))return new Ta(new Uint8Array(S),c);if(S.constructor===Uint8Array)return new Ta(S,!1);if(S.constructor===ArrayBuffer)return S=new Uint8Array(S),new Ta(S,!1);if(S.constructor===MH)return c=wU(S)||new Uint8Array(0),new Ta(c,!0,S);if(S instanceof Uint8Array)return S=S.constructor===Uint8Array?S:new Uint8Array(S.buffer,S.byteOffset,S.byteLength),new Ta(S,!1);throw Error();};
sC=function(){var S=function(){throw Error();};
Object.setPrototypeOf(S,S.prototype);return S};
xGY=function(S,c){var Q=Q===void 0?z2R:Q;return new MV(S,c,Q)};
n0M=function(S,c,Q,f,U){c=FVx(c,f);c!=null&&(Q=_.B1Y(S,Q),U(c,S),_.IBr(S,Q))};
ZR=function(S,c,Q,f){var U=f[S];if(U)return U;U={};U.binaryFields=f;U.messageMetadata=PuH(f[0]);var a=f[1],X=1;a&&a.constructor===Object&&(U.extensions=a,a=f[++X],typeof a==="function"&&(U.isMessageSet=!0,bTT!=null||(bTT=a),N1z!=null||(N1z=f[X+1]),a=f[X+=2]));for(var z={};a&&Array.isArray(a)&&a.length&&typeof a[0]==="number"&&a[0]>0;){for(var x=0;x<a.length;x++)z[a[x]]=a;a=f[++X]}for(x=1;a!==void 0;){typeof a==="number"&&(x+=a,a=f[++X]);var I=void 0;if(a instanceof MV)var n=a;else n=KVY,X--;a=void 0;
if((a=n)==null?0:a.$$isMsg){a=f[++X];I=f;var b=X;typeof a==="function"&&(a=a(),I[b]=a);I=a}a=f[++X];b=x+1;typeof a==="number"&&a<0&&(b-=a,a=f[++X]);for(;x<b;x++){var N=z[x];I?Q(U,x,n,I,N):c(U,x,n,N)}}return f[S]=U};
uET=function(S){return Array.isArray(S)?S[0]instanceof MV?S:[$GZ,S]:[S,void 0]};
FVx=function(S,c){if(S instanceof _.Ga)return S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(S))return UC(S,c,!1)};
jgo=function(S,c,Q,f){var U=Q.$$binaryReaderFn;S[c]=f?function(a,X,z){return U(a,X,z,f)}:U};
lBp=function(S,c,Q,f,U){var a=Q.$$binaryReaderFn,X,z;S[c]=function(x,I,n){return a(x,I,n,z||(z=ZR(Wa,jgo,lBp,f).messageMetadata),X||(X=YZZ(f)),U)}};
YZZ=function(S){var c=S[CER];if(c!=null)return c;var Q=ZR(Wa,jgo,lBp,S);c=Q.isMessageSet?function(f,U){return bTT(f,U,Q)}:function(f,U){for(;HTc(U)&&U.nextWireType_!=4;){var a=U.nextField_,X=Q[a];
if(X==null){var z=Q.extensions;z&&(z=z[a])&&(z=DGp(z),z!=null&&(X=Q[a]=z))}if(X==null||!X(U,f,a)){z=U;X=z.fieldCursor_;gU(z);if(z.discardUnknownFields)var x=void 0;else{var I=z.decoder_.cursor_-X;z.decoder_.cursor_=X;x=p8T(z.decoder_,I)}I=z=X=void 0;var n=f;x&&((X=(z=(I=n[EZ])!=null?I:n[EZ]=new ZiM)[a])!=null?X:z[a]=[]).push(x)}}if(f=tU(f))f.reviveUnknownFields=Q.binaryFields[h2p];return!0};
S[CER]=c;S[h2p]=qZz.bind(S);return c};
qZz=function(S,c,Q,f){var U=this[Wa],a=this[CER],X=UC(void 0,U.messageMetadata,!1),z=tU(S);if(z){var x=!1,I=U.extensions;if(I){U=function(H,q,w){if(w.length!==0)if(I[q])for(H=_.A(w),q=H.next();!q.done;q=H.next()){q=T1c(q.value);try{x=!0,a(X,q)}finally{q.free()}}else f==null||f(S,q,w)};
if(c==null)Vp(z,U);else if(z!=null){var n=z[c];n&&U(z,c,n)}if(x){var b=S[_.lu]|0;if(b&2&&b&2048&&(Q==null||!Q.reviveIntoImmutable))throw Error();var N=kl(b),l=function(H,q){if(lY(S,H,N)!=null)switch(Q==null?void 0:Q.resolutionBehavior){case 1:return;default:throw Error();}q!=null&&(b=NV(S,b,H,q,N));delete z[H]};
c==null?Gzo(X,X[_.lu]|0,function(H,q){l(H,q)}):l(c,lY(X,c,N))}}}};
DGp=function(S){S=uET(S);var c=S[0].$$binaryReaderFn;if(S=S[1]){var Q=YZZ(S),f=ZR(Wa,jgo,lBp,S).messageMetadata;return function(U,a,X){return c(U,a,X,f,Q)}}return c};
el=function(S,c,Q){S[c]=Q.$$binaryWriterFn};
rU=function(S,c,Q,f){var U,a,X=Q.$$binaryWriterFn;S[c]=function(z,x,I){return X(z,x,I,a||(a=ZR(kZ,el,rU,f).messageMetadata),U||(U=w8H(f)))}};
w8H=function(S){var c=S[sgT];if(!c){var Q=ZR(kZ,el,rU,S);c=function(f,U){return MNr(f,U,Q)};
S[sgT]=c}return c};
MNr=function(S,c,Q){Gzo(S,S[_.lu]|0,function(f,U){if(U!=null){var a=iTM(Q,f);a?a(c,U,f):f<500||Ip(ZTx,3)}});
(S=tU(S))&&Vp(S,function(f,U,a){dU(c,c.encoder_.end());for(f=0;f<a.length;f++)dU(c,wU(a[f])||new Uint8Array(0))})};
iTM=function(S,c){var Q=S[c];if(Q)return Q;if(Q=S.extensions)if(Q=Q[c]){Q=uET(Q);var f=Q[0].$$binaryWriterFn;if(Q=Q[1]){var U=w8H(Q),a=ZR(kZ,el,rU,Q).messageMetadata;Q=S.isMessageSet?N1z(a,U):function(X,z,x){return f(X,z,x,a,U)}}else Q=f;
return S[c]=Q}};
_.GOz=function(S,c,Q){if(Array.isArray(c)){var f=c[_.lu]|0;if(f&4)return c;for(var U=0,a=0;U<c.length;U++){var X=S(c[U]);X!=null&&(c[a++]=X)}a<U&&(c.length=a);Q&&(H_(c,(f|5)&-1537),f&2&&Object.freeze(c));return c}};
_.va=function(S,c,Q){return new MV(S,c,Q)};
_.WVp=function(S,c,Q){return new MV(S,c,Q)};
_.Pa=function(S,c,Q){NV(S,S[_.lu]|0,c,Q,kl(S[_.lu]|0))};
g0o=function(S,c,Q){c=_.x0(c);c!=null&&(_.EC(S,Q,1),S=S.encoder_,Q=tj||(tj=new DataView(new ArrayBuffer(8))),Q.setFloat64(0,+c,!0),Vd=Q.getUint32(0,!0),Rp=Q.getUint32(4,!0),_.Vf(S,Vd),_.Vf(S,Rp))};
_.RA=function(S,c,Q){c=nlZ(c);if(c!=null){switch(typeof c){case "string":e2M(c)}if(c!=null)switch(_.EC(S,Q,0),typeof c){case "number":S=S.encoder_;me(c);kOr(S,Vd,Rp);break;case "bigint":Q=BigInt.asUintN(64,c);Q=new rUM(Number(Q&BigInt(4294967295)),Number(Q>>BigInt(32)));kOr(S.encoder_,Q.JSC$6900_lo,Q.JSC$6900_hi);break;default:Q=e2M(c),kOr(S.encoder_,Q.JSC$6900_lo,Q.JSC$6900_hi)}}};
v0Z=function(S,c,Q){c=_.CT(c);c!=null&&c!=null&&(_.EC(S,Q,0),_.dGz(S.encoder_,c))};
_.LVo=function(S,c,Q){PEz(S,Q,bix(c))};
_.tNY=function(S,c,Q){c=_.Vxz(c);c!=null&&(_.EC(S,Q,0),S.encoder_.JSC$6902_buffer_.push(c?1:0))};
_.R2T=function(S,c,Q){c=_.eN(c);c!=null&&VNc(S,Q,UrT(c))};
yUz=function(S,c,Q,f,U){c=FVx(c,f);c!=null&&(Q=_.B1Y(S,Q),U(c,S),_.IBr(S,Q))};
_.o0Z=function(S,c,Q){c=c==null||typeof c=="string"||c instanceof MH?c:void 0;c!=null&&VNc(S,Q,OTz(c,!0).buffer)};
_.mGc=function(S,c,Q){c=_.CT(c);c!=null&&(c=parseInt(c,10),_.EC(S,Q,0),_.dGz(S.encoder_,c))};
_.yf=function(S,c){return function(Q,f){var U={treatNewDataAsImmutable:!0};f&&Object.assign(U,f);Q=T1c(Q,void 0,void 0,U);try{var a=new S,X=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;YZZ(c)(X,Q);var z=a}finally{Q.free()}return z}};
_.oA=function(S){return function(c){return SCx(c,S)}};
cjM=function(S){return function(){return SCx(this,S)}};
_.mE=function(S){return dd(function(c){return c instanceof S&&!wd(c)})};
_.SS=function(S){return function(c){return QAx(S,c)}};
aRp=function(S,c){return fRY({child:S,origin:c||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:UVH,getPayloadCase:function(Q){return Q.getPayloadCase()},
createInitMessage:function(Q){var f=new c7,U=new JjY;Q=_.Qx(U,1,Q);return _.fc(f,5,Uy,Q)}})};
J5=function(S){return{valueOf:S}.valueOf()};
Xap=function(){var S=null;if(!AjR)return S;try{var c=function(Q){return Q};
S=AjR.createPolicy("goog#html",{createHTML:c,createScript:c,createScriptURL:c})}catch(Q){}return S};
zQp=function(){Ohp===void 0&&(Ohp=Xap());return Ohp};
_.XK=function(S){var c=zQp();S=c?c.createScriptURL(S):S;return new A5(S)};
_.Oy=function(S){if(S instanceof A5)return S.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
_.zR=function(S){return Object.isFrozen(S)&&Object.isFrozen(S.raw)};
xD=function(S){return S.toString().indexOf("`")===-1};
B7=function(S){return new _.FK(xVZ,S)};
In=function(S){return S instanceof _.FK};
_.nc=function(S){if(In(S))return S.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
Ng=function(S){return new FEc(function(c){return c.substr(0,S.length+1).toLowerCase()===S+":"})};
Kc=function(S,c){c=c===void 0?BUp:c;if(In(S))return S;for(var Q=0;Q<c.length;++Q){var f=c[Q];if(f instanceof FEc&&f.isValid(S))return B7(S)}};
_.jS=function(S,c){c=c===void 0?BUp:c;return Kc(S,c)||uo};
_.lo=function(S){var c=window;if(typeof MediaSource!=="undefined"&&S instanceof MediaSource||typeof c.ManagedMediaSource!=="undefined"&&S instanceof c.ManagedMediaSource)return B7(URL.createObjectURL(S));c=S.type;c.toLowerCase()==="application/octet-stream"?c=!0:(c=c.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),c=(c==null?void 0:c.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(c[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(c[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(c[1])||/^font\/[\w-]+$/i.test(c[1])));if(!c)throw Error("da");return B7(URL.createObjectURL(S))};
_.Cc=function(S){for(var c=_.YD.apply(1,arguments),Q=[S[0]],f=0;f<c.length;f++)Q.push(String(c[f])),Q.push(S[f+1]);return B7(Q.join(""))};
_.nZo=function(S){if(!IRZ){a:{var c=document.createElement("a");try{c.href=S}catch(Q){S=void 0;break a}S=c.protocol;S=S===":"||S===""?"https:":S}return S}try{c=new URL(S)}catch(Q){return"https:"}return c.protocol};
_.H7=function(S){S instanceof _.FK?S=_.nc(S):S=bhZ.test(S)?S:void 0;return S};
DQ=function(S,c){c=_.H7(c);c!==void 0&&(S.href=c)};
h5=function(S){var c=zQp();S=c?c.createHTML(S):S;return new pc(S)};
qg=function(S){if(S instanceof pc)return S.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.TR=function(S,c){S.src=_.Oy(c).toString()};
NUx=function(S,c){S.setAttribute("sandbox","");for(var Q=0;Q<c.length;Q++)S.sandbox.supports&&!S.sandbox.supports(c[Q])||S.sandbox.add(c[Q])};
_.KEo=function(S,c,Q){S.removeAttribute("srcdoc");switch(c){case 0:if(Q instanceof A5)throw new w_("TrustedResourceUrl",0);NUx(S,[]);c=_.H7(Q);c!==void 0&&(S.src=c);break;case 1:if(!(Q instanceof A5))throw new w_(typeof Q,1);NUx(S,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.TR(S,Q);break;case 2:if(Q instanceof A5)throw new w_("TrustedResourceUrl",2);NUx(S,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
c=_.H7(Q);c!==void 0&&(S.src=c);break;default:_.OZ(c)}};
_.sy=function(S,c,Q,f){c=_.H7(c);return c!==void 0?S.open(c,Q,f):null};
_.Mg=function(S){S=S===void 0?document:S;var c,Q;S=(Q=(c=S).querySelector)==null?void 0:Q.call(c,"script[nonce]");return S==null?"":S.nonce||S.getAttribute("nonce")||""};
_.GR=function(S){var c=zQp();S=c?c.createScript(S):S;return new _.ZQ(S)};
W7=function(S){if(S instanceof _.ZQ)return S.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
$VR=function(S){var c=_.Mg(S.ownerDocument);c&&S.setAttribute("nonce",c)};
_.g_=function(S,c){S.textContent=W7(c);$VR(S)};
_.eS=function(S,c){S.src=_.Oy(c);$VR(S)};
_.kD=function(S,c){if(S.nodeType===1&&/^(script|style)$/i.test(S.tagName))throw Error("da");S.innerHTML=qg(c)};
_.r_=function(S,c,Q,f){if(S.length===0)throw Error("da");S=S.map(function(a){if(a instanceof uAz)a=a.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return a});
var U=Q.toLowerCase();if(S.every(function(a){return U.indexOf(a)!==0}))throw Error("fa`"+Q);
c.setAttribute(Q,f)};
_.d_=function(S,c,Q){if(c instanceof A5)S.href=_.Oy(c).toString(),S.rel=Q;else{if(jAp.indexOf(Q)===-1)throw Error("ga`"+Q);c=_.H7(c);c!==void 0&&(S.href=c,S.rel=Q)}};
lRH=function(S){return"function"==typeof _.v7&&S instanceof _.v7};
_.YCT=function(S){if(lRH(S))return S.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.P7=function(S,c){c=_.H7(c);c!==void 0&&(S.href=c)};
Lc=function(S,c){S&&(c=S.indexOf(c),0<=c&&S.splice(c,1))};
Ey=function(S){return typeof S==="function"};
CYZ=function(S){return S instanceof t5||S&&"closed"in S&&Ey(S.remove)&&Ey(S.add)&&Ey(S.unsubscribe)};
Vx=function(){};
Rn=function(S){HhT(function(){throw S;})};
mc=function(S){return S};
S6=function(){return DVr(_.YD.apply(0,arguments))};
DVr=function(S){return S.length===0?mc:S.length===1?S[0]:function(c){return S.reduce(function(Q,f){return f(Q)},c)}};
paR=function(S){var c;return(c=S!=null?S:void 0)!=null?c:Promise};
hQM=function(S,c){return new cs(function(Q){var f=0;return c.schedule(function(){f===S.length?Q.complete():(Q.next(S[f++]),Q.closed||this.schedule())})})};
qCp=function(S,c){if(!S)throw Error("ha");return new cs(function(Q){var f=new t5;f.add(c.schedule(function(){var U=S[Symbol.asyncIterator]();f.add(c.schedule(function(){var a=this;U.next().then(function(X){X.done?Q.complete():(Q.next(X.value),a.schedule())})}))}));
return f})};
TUx=function(S,c,Q){c=c.schedule(function(){try{Q.call(this)}catch(f){S.error(f)}},0);
S.add(c)};
wap=function(S,c){return new cs(function(Q){var f;Q.add(c.schedule(function(){f=S[Qq]();TUx(Q,c,function(){var U=f.next(),a=U.value;U.done?Q.complete():(Q.next(a),this.schedule())})}));
return function(){var U;return Ey((U=f)==null?void 0:U.return)&&f.return()}})};
sAZ=function(S,c){return new cs(function(Q){var f=new t5;f.add(c.schedule(function(){var U=S[fR]();f.add(U.subscribe({next:function(a){f.add(c.schedule(function(){return Q.next(a)}))},
error:function(a){f.add(c.schedule(function(){return Q.error(a)}))},
complete:function(){f.add(c.schedule(function(){return Q.complete()}))}}))}));
return f})};
Mlo=function(S,c){return new cs(function(Q){return c.schedule(function(){return S.then(function(f){Q.add(c.schedule(function(){Q.next(f);Q.add(c.schedule(function(){return Q.complete()}))}))},function(f){Q.add(c.schedule(function(){return Q.error(f)}))})})})};
ihH=function(S){return new TypeError("ia`"+(S!==null&&typeof S==="object"?"an invalid object":"'"+S+"'"))};
Gax=function(S,c){if(S!=null){if(Ey(S[fR]))return sAZ(S,c);if(Zhz(S))return hQM(S,c);if(Ey(S==null?void 0:S.then))return Mlo(S,c);if(Symbol.asyncIterator&&Ey(S==null?void 0:S[Symbol.asyncIterator]))return qCp(S,c);if(Ey(S==null?void 0:S[Qq]))return wap(S,c)}throw ihH(S);};
Ah=function(S,c){return c?Gax(S,c):Jh(S)};
Jh=function(S){if(S instanceof cs)return S;if(S!=null){if(Ey(S[fR]))return WEr(S);if(Zhz(S))return gZp(S);if(Ey(S==null?void 0:S.then))return eQY(S);if(Symbol.asyncIterator&&Ey(S==null?void 0:S[Symbol.asyncIterator]))return kaZ(S);if(Ey(S==null?void 0:S[Qq]))return rjY(S)}throw ihH(S);};
WEr=function(S){return new cs(function(c){var Q=S[fR]();if(Ey(Q.subscribe))return Q.subscribe(c);throw new TypeError("ja");})};
gZp=function(S){return new cs(function(c){for(var Q=0;Q<S.length&&!c.closed;Q++)c.next(S[Q]);c.complete()})};
eQY=function(S){return new cs(function(c){S.then(function(Q){c.closed||(c.next(Q),c.complete())},function(Q){return c.error(Q)}).then(null,Rn)})};
rjY=function(S){return new cs(function(c){for(var Q=S[Qq]();!c.closed;){var f=Q.next(),U=f.value;f.done?c.complete():c.next(U)}return function(){return Ey(Q==null?void 0:Q.return)&&Q.return()}})};
kaZ=function(S){return new cs(function(c){dVp(S,c).catch(function(Q){return c.error(Q)})})};
dVp=function(S,c){var Q,f,U,a,X,z;return _.O(function(x){switch(x.nextAddress){case 1:_.X1(x,2,3);var I=S[Symbol.asyncIterator];a=I!==void 0?I.call(S):new vZR(_.A(S));case 5:return _.F(x,a.next(),8);case 8:f=x.yieldResult;if(f.done){x.jumpTo(3);break}X=f.value;c.next(X);x.jumpTo(5);break;case 3:_.O7(x);_.xp(x,9);if(!f||f.done||!(U=a.return)){x.jumpTo(9);break}return _.F(x,U.call(a),9);case 9:_.O7(x,0,0,1);if(Q)throw Q.error;_.F1(x,10,1);break;case 10:_.F1(x,4);break;case 2:z=_.Bs(x);Q={error:z};x.jumpTo(3);
break;case 4:c.complete(),_.IN(x)}})};
nR=function(S,c){return c?hQM(S,c):gZp(S)};
PYx=function(S){return Ey(S[S.length-1])?S.pop():void 0};
bi=function(S){var c=S[S.length-1];return c&&Ey(c.schedule)?S.pop():void 0};
NZ=function(){var S=_.YD.apply(0,arguments),c=bi(S);return c?hQM(S,c):nR(S)};
KR=function(S){var c=Ey(S)?S:function(){return S};
return new cs(function(Q){return Q.error(c())})};
$p=function(S){return function(c){if(Ey(c==null?void 0:c.lift))return c.lift(function(Q){try{return S(Q,this)}catch(f){this.error(f)}});
throw new TypeError("ka");}};
Yp=function(){return $p(function(S,c){var Q=null;S._refCount++;var f=new li(c,void 0,void 0,void 0,function(){if(!S||S._refCount<=0||0<--S._refCount)Q=null;else{var U=S._connection,a=Q;Q=null;!U||a&&U!==a||U.unsubscribe();c.unsubscribe()}});
S.subscribe(f);f.closed||(Q=S.connect())})};
EZY=function(){var S=LEp;var c=c===void 0?0:c;return $p(function(Q,f){f.add(S.schedule(function(){return Q.subscribe(f)},c))})};
CR=function(S){return $p(function(c,Q){var f=0;c.subscribe(new li(Q,function(U){Q.next(S.call(void 0,U,f++))}))})};
Vlx=function(S){return CR(function(c){return tlZ(c)?S.apply(null,_.Hs(c)):S(c)})};
Syp=function(S){if(S.length===1){var c=S[0];if(RQx(c))return{args:c,keys:null};if(c&&typeof c==="object"&&yjY(c)===oZo)return S=mVp(c),{args:S.map(function(Q){return c[Q]}),
keys:S}}return{args:S,keys:null}};
DW=function(){var S=_.YD.apply(0,arguments),c=bi(S),Q=PYx(S);S=Syp(S);var f=S.args,U=S.keys;if(f.length===0)return Ah([],c);c=new cs(c5c(f,c,U?function(a){for(var X={},z=0;z<a.length;z++)X[U[z]]=a[z];return X}:mc));
return Q?c.pipe(Vlx(Q)):c};
c5c=function(S,c,Q){Q=Q===void 0?mc:Q;return function(f){Qno(c,function(){for(var U=S.length,a=Array(U),X=U,z=S.map(function(){return!1}),x=!0,I={i$jscomp$216:0};I.i$jscomp$216<U;I={i$jscomp$216:I.i$jscomp$216},I.i$jscomp$216++)Qno(c,function(n){return function(){Ah(S[n.i$jscomp$216],c).subscribe(new pR(f,function(b){a[n.i$jscomp$216]=b;
x&&(z[n.i$jscomp$216]=!0,x=!z.every(mc));x||f.next(Q(a.slice()))},function(){return--X===0}))}}(I),f)},f)}};
Qno=function(S,c,Q){S?Q.add(S.schedule(c)):c()};
fQo=function(S,c,Q,f){var U=[],a=0,X=0,z=!1,x=function(I){a++;Jh(Q(I,X++)).subscribe(new li(c,function(n){c.next(n)},void 0,function(){a--;
for(var n={};U.length&&a<f;n={bufferedValue:void 0})n.bufferedValue=U.shift(),x(n.bufferedValue);!z||U.length||a||c.complete()}))};
S.subscribe(new li(c,function(I){return a<f?x(I):U.push(I)},void 0,function(){z=!0;
!z||U.length||a||c.complete()}));
return function(){U=null}};
hh=function(S,c){var Q=Q===void 0?Infinity:Q;if(Ey(c))return hh(function(f,U){return CR(function(a,X){return c(f,a,U,X)})(Jh(S(f,U)))},Q);
typeof c==="number"&&(Q=c);return $p(function(f,U){return fQo(f,U,S,Q)})};
UgY=function(S){S=S===void 0?Infinity:S;return hh(mc,S)};
J5z=function(){var S=_.YD.apply(0,arguments);return UgY(1)(nR(S,bi(S)))};
qZ=function(S){return new cs(function(c){Jh(S()).subscribe(c)})};
TC=function(S,c,Q){if(Ey(Q)){var f=Q;Q=void 0}if(f)return TC(S,c,Q).pipe(Vlx(f));f=_.A(Ey(S.addEventListener)&&Ey(S.removeEventListener)?aQp.map(function(X){return function(z){return S[X](c,z,Q)}}):Ey(S.addListener)&&Ey(S.removeListener)?A5M.map(X7p(S,c)):Ey(S.on)&&Ey(S.off)?Ocz.map(X7p(S,c)):[]);
var U=f.next().value,a=f.next().value;return!U&&Zhz(S)?hh(function(X){return TC(X,c,Q)})(nR(S)):new cs(function(X){if(!U)throw new TypeError("la");
var z=function(){var x=_.YD.apply(0,arguments);return X.next(1<x.length?x:x[0])};
U(z);return function(){return a(z)}})};
X7p=function(S,c){return function(Q){return function(f){return S[Q](c,f)}}};
s7=function(){var S=_.YD.apply(0,arguments),c=bi(S);var Q=typeof S[S.length-1]==="number"?S.pop():Infinity;return S.length?S.length===1?Jh(S[0]):UgY(Q)(nR(S,c)):w8};
xgc=function(S){return S.length===1&&zhZ(S[0])?S[0]:S};
Fcz=function(){var S=xgc(_.YD.apply(0,arguments));return $p(function(c,Q){var f=[c].concat(_.Hs(S)),U=function(){if(!Q.closed)if(f.length>0){try{var a=Jh(f.shift())}catch(z){U();return}var X=new li(Q,void 0,Vx,Vx);Q.add(a.subscribe(X));X.add(U)}else Q.complete()};
U()})};
MZ=function(S){return $p(function(c,Q){var f=0;c.subscribe(new li(Q,function(U){return S.call(void 0,U,f++)&&Q.next(U)}))})};
IQZ=function(){var S=_.YD.apply(0,arguments);S=xgc(S);return S.length===1?Jh(S[0]):new cs(B_H(S))};
B_H=function(S){return function(c){for(var Q=[],f={i$jscomp$219:0};Q&&!c.closed&&f.i$jscomp$219<S.length;f={i$jscomp$219:f.i$jscomp$219},f.i$jscomp$219++)Q.push(Jh(S[f.i$jscomp$219]).subscribe(new li(c,function(U){return function(a){if(Q){for(var X=0;X<Q.length;X++)X!==U.i$jscomp$219&&Q[X].unsubscribe();Q=null}c.next(a)}}(f))))}};
nDY=function(){var S=_.YD.apply(0,arguments),c=PYx(S),Q=xgc(S);return Q.length?new cs(function(f){var U=Q.map(function(){return[]}),a=Q.map(function(){return!1});
f.add(function(){U=a=null});
for(var X={sourceIndex$jscomp$1:0};!f.closed&&X.sourceIndex$jscomp$1<Q.length;X={sourceIndex$jscomp$1:X.sourceIndex$jscomp$1},X.sourceIndex$jscomp$1++)Jh(Q[X.sourceIndex$jscomp$1]).subscribe(new li(f,function(z){return function(x){U[z.sourceIndex$jscomp$1].push(x);U.every(function(I){return I.length})&&(x=U.map(function(I){return I.shift()}),f.next(c?c.apply(null,_.Hs(x)):x),U.some(function(I,n){return!I.length&&a[n]})&&f.complete())}}(X),void 0,function(z){return function(){a[z.sourceIndex$jscomp$1]=
!0;
!U[z.sourceIndex$jscomp$1].length&&f.complete()}}(X)));
return function(){U=a=null}}):w8};
bcp=function(S){var c,Q,f;return!!S&&typeof S.active==="boolean"&&typeof((c=S.clock)==null?void 0:c.now)==="function"&&((Q=S.clock)==null?void 0:Q.timeline)!==void 0&&!((f=S.lastMeasurement)==null||!f.timestamp)&&typeof S.equivalentTo==="function"&&typeof S.extrapolateToNow==="function"&&typeof S.extrapolateToTime==="function"&&typeof S.map==="function"&&typeof S.joinWith==="function"};
N_o=function(S){function c(Q){return typeof Q==="boolean"||typeof Q==="string"||typeof Q==="number"||Q===void 0||Q===null}
return c(S)?!0:Array.isArray(S)?S.every(c):typeof S==="object"?Object.keys(S).every(function(Q){return typeof Q==="string"})&&Object.values(S).every(function(Q){return Array.isArray(Q)?Q.every(c):c(Q)}):!1};
Kco=function(S){if(N_o(S))return S;if(bcp(S))return{lastMeasurement:{value:Kco(S.lastMeasurement.value),timestamp:ii(S.lastMeasurement.timestamp,new ZW(0,S.lastMeasurement.timestamp.timeline))},active:S.active};try{return JSON.parse(JSON.stringify(S))}catch(c){}return String(S)};
GC=function(S,c){return function(Q){return new cs(function(f){return Q.subscribe(function(U){S.timeExecution(c,function(){f.next(U)})()},function(U){S.timeExecution(c,function(){f.error(U)})()},function(){S.timeExecution(c,function(){f.complete()})()})})}};
$gH=function(S,c){var Q=!1;return new cs(function(f){var U=S.setTimeout(function(){Q=!0;f.next(!0);f.complete()},c);
return function(){Q||S.clearTimeout(U)}})};
uKZ=function(S){S=S.global;if(S.fetchLater)return S.fetchLater.bind(S)};
Ws=function(S){return $p(function(c,Q){var f=null,U=!1,a;f=c.subscribe(new li(Q,void 0,function(X){a=Jh(S(X,Ws(S)(c)));f?(f.unsubscribe(),f=null,a.subscribe(Q)):U=!0}));
U&&(f.unsubscribe(),f=null,a.subscribe(Q))})};
jnp=function(S,c,Q){return function(f,U){var a=Q,X=c,z=0;f.subscribe(new li(U,function(x){var I=z++;X=a?S(X,x,I):(a=!0,x);U.next(X)},void 0,void 0))}};
lQo=function(S){S=S===void 0?null:S;return $p(function(c,Q){var f=!1;c.subscribe(new li(Q,function(U){f=!0;Q.next(U)},void 0,function(){f||Q.next(S);
Q.complete()}))})};
g8=function(){return $p(function(S,c){S.subscribe(new li(c,Vx))})};
e6=function(S){return $p(function(c,Q){c.subscribe(new li(Q,function(){return Q.next(S)}))})};
r8=function(S){return S<=0?function(){return w8}:$p(function(c,Q){var f=0;
c.subscribe(new li(Q,function(U){++f<=S&&(Q.next(U),S<=f&&Q.complete())}))})};
d8=function(S){var c=c===void 0?mc:c;var Q;S=(Q=S)!=null?Q:Yyr;return $p(function(f,U){var a,X=!0;f.subscribe(new li(U,function(z){var x=c(z);if(X||!S(a,x))X=!1,a=x,U.next(z)}))})};
Yyr=function(S,c){return S===c};
Hcz=function(S){S=S===void 0?CoZ:S;return $p(function(c,Q){var f=!1;c.subscribe(new li(Q,function(U){f=!0;Q.next(U)},void 0,function(){return f?Q.complete():Q.error(S())}))})};
CoZ=function(){return new DgH};
vs=function(){var S=_.YD.apply(0,arguments);return function(c){return J5z(c,NZ.apply(null,_.Hs(S)))}};
p7Y=function(S){return $p(function(c,Q){var f=0;c.subscribe(new li(Q,function(U){S.call(void 0,U,f++,c)||(Q.next(!1),Q.complete())},void 0,function(){Q.next(!0);
Q.complete()}))})};
hhz=function(){return $p(function(S,c){var Q=[];S.subscribe(new li(c,function(f){Q.push(f);1<Q.length&&Q.shift()},void 0,function(){for(var f=_.A(Q),U=f.next();!U.done;U=f.next())c.next(U.value);
c.complete()},function(){Q=null}))})};
qyY=function(S,c){var Q=arguments.length>=2;return function(f){return f.pipe(S?MZ(function(U,a){return S(U,a,f)}):mc,hhz(),Q?lQo(c):Hcz(function(){return new DgH}))}};
LR=function(S){var c=Ey(S)?S:function(){return S};
return Ey()?$p(function(Q,f){var U=c();(void 0)(U).subscribe(f).add(Q.subscribe(U))}):function(Q){var f=new Ps(Q,c);
Ey(Q==null?void 0:Q.lift)&&(f.lift=Q.lift);f.source=Q;f.subjectFactory=c;return f}};
th=function(S){var c=new E7(S,void 0,void 0);return function(Q){return LR(function(){return c})(Q)}};
Vq=function(S,c){return $p(jnp(S,c,arguments.length>=2))};
RN=function(){var S=_.YD.apply(0,arguments),c=bi(S);return $p(function(Q,f){(c?J5z(S,Q,c):J5z(S,Q)).subscribe(f)})};
yq=function(S){return $p(function(c,Q){var f=null,U=0,a=!1;c.subscribe(new li(Q,function(X){var z;(z=f)==null||z.unsubscribe();z=U++;Jh(S(X,z)).subscribe(f=new li(Q,function(x){return Q.next(x)},void 0,function(){f=null;
a&&!f&&Q.complete()}))},void 0,function(){(a=!0,!f)&&Q.complete()}))})};
oN=function(S,c){c=c===void 0?!1:c;return $p(function(Q,f){var U=0;Q.subscribe(new li(f,function(a){var X=S(a,U++);(X||c)&&f.next(a);!X&&f.complete()}))})};
mo=function(S,c,Q){var f=Ey(S)||c||Q?{next:S,error:c,complete:Q}:S;return f?$p(function(U,a){U.subscribe(new li(a,function(X){var z;(z=f.next)==null||z.call(f,X);a.next(X)},function(X){var z;
(z=f.error)==null||z.call(f,X);a.error(X)},function(){var X;
(X=f.complete)==null||X.call(f);a.complete()}))}):mc};
T_H=function(){var S=_.YD.apply(0,arguments),c=PYx(S);return $p(function(Q,f){for(var U=S.length,a=Array(U),X=S.map(function(){return!1}),z=!1,x={i$jscomp$229:0};x.i$jscomp$229<U;x={i$jscomp$229:x.i$jscomp$229},x.i$jscomp$229++)Jh(S[x.i$jscomp$229]).subscribe(new li(f,function(I){return function(n){a[I.i$jscomp$229]=n;
z||X[I.i$jscomp$229]||(X[I.i$jscomp$229]=!0,(z=X.every(mc))&&(X=null))}}(x),void 0,Vx));
Q.subscribe(new li(f,function(I){z&&(I=[I].concat(_.Hs(a)),f.next(c?c.apply(null,_.Hs(I)):I))}))})};
w7p=function(S){var c=[],Q=0,f;for(f in S)c[Q++]=f;return c};
snH=function(S,c){for(var Q in S)if(S[Q]==c)return!0;return!1};
MSR=function(S,c,Q){for(var f in S)if(c.call(Q,S[f],f,S))return f};
icp=function(S){if(!S||typeof S!=="object")return S;if(typeof S.clone==="function")return S.clone();if(typeof Map!=="undefined"&&S instanceof Map)return new Map(S);if(typeof Set!=="undefined"&&S instanceof Set)return new Set(S);if(S instanceof Date)return new Date(S.getTime());var c=Array.isArray(S)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(S)||S instanceof DataView?{}:new S.constructor(S.length),Q;for(Q in S)c[Q]=icp(S[Q]);return c};
Zcp=function(S){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return Zcp.apply(null,arguments[0]);if(c%2)throw Error("pa");for(var Q={},f=0;f<c;f+=2)Q[arguments[f]]=arguments[f+1];return Q};
GRH=function(S){var c=arguments.length;if(c==1&&Array.isArray(arguments[0]))return GRH.apply(null,arguments[0]);for(var Q={},f=0;f<c;f++)Q[arguments[f]]=!0;return Q};
_.SC=function(S){return new uAz(S[0].toLowerCase())};
Wcp=function(S){try{return new URL(S,window.document.baseURI)}catch(c){return new URL("about:invalid")}};
gDM=function(S,c){var Q=c.createRange();Q.selectNode(c.body);S=h5(S);return Q.createContextualFragment(qg(S))};
ehr=function(S){S=S.nodeName;return typeof S==="string"?S:"FORM"};
kRp=function(S){S=S.nodeType;return S===1||typeof S!=="number"};
c5=function(S,c,Q){S.setAttribute(c,Q)};
r5M=function(S){return S.parts.map(function(c){var Q=c.descriptor;return""+c.url+(Q?" "+Q:"")}).join(" , ")};
_.QN=function(S){var c=_.YD.apply(1,arguments);if(c.length===0)return _.XK(S[0]);for(var Q=S[0],f=0;f<c.length;f++)Q+=encodeURIComponent(c[f])+S[f+1];return _.XK(Q)};
_.fn=function(S,c){S=_.Oy(S).toString();var Q=S.split(/[?#]/),f=/[?]/.test(S)?"?"+Q[1]:"";return dgT(Q[0],f,/[#]/.test(S)?"#"+(f?Q[2]:Q[1]):"",c)};
dgT=function(S,c,Q,f){function U(X,z){X!=null&&(Array.isArray(X)?X.forEach(function(x){return U(x,z)}):(c+=a+encodeURIComponent(z)+"="+encodeURIComponent(X),a="&"))}
var a=c.length?"&":"?";f.constructor===Object&&(f=Object.entries(f));Array.isArray(f)?f.forEach(function(X){return U(X[1],X[0])}):f.forEach(U);
return _.XK(S+c+Q)};
UV=function(S,c,Q,f){this.top=S;this.right=c;this.bottom=Q;this.left=f};
vDZ=function(S){S=S.global;if(S.PendingGetBeacon)return S.PendingGetBeacon};
aq=function(S){return function(c){return c.pipe(Poo(S,LR(new JH)))}};
AH=function(S){return function(c){return c.pipe(Poo(S,th(1)))}};
Poo=function(S,c){function Q(f){return new cs(function(U){return f.subscribe(function(a){X4(S,function(){return void U.next(a)},3)},function(a){X4(S,function(){return void U.error(a)},3)},function(){X4(S,function(){return void U.complete()},3)})})}
return S6(Q,EZY(),c,Yp(),Q)};
tSY=function(S){var c=Lcz(S);return c===null?new OV(null):c.pipe(CR(function(Q){Q=Q.serialize();if(EDY)Q=_.QY.btoa(Q);else{for(var f=[],U=0,a=0;a<Q.length;a++){var X=Q.charCodeAt(a);X>255&&(f[U++]=X&255,X>>=8);f[U++]=X}Q=_.mV(f)}return Q}),r8(1),AH(S.queue))};
VSo=function(S){var c=c===void 0?{}:c;if(typeof Event==="function")return new Event(S,c);if(typeof document!=="undefined"){var Q=document.createEvent("CustomEvent");Q.initCustomEvent(S,c.bubbles||!1,c.cancelable||!1,c.detail);return Q}throw Error();};
RhR=function(S){return typeof S==="string"?document.getElementById(S):S};
oDz=function(S){var c=!1;c=c===void 0?!1:c;if(S.tagName==="IMG"){if(S.complete&&(!S.naturalWidth||!S.naturalHeight))return!0;var Q;if(c&&((Q=S.style)==null?void 0:Q.display)==="none")return!0}var f,U;return y5z.test((f=S.getAttribute("width"))!=null?f:"")&&y5z.test((U=S.getAttribute("height"))!=null?U:"")};
mgo=function(S,c){if(S.tagName==="IMG")return S.naturalWidth&&S.naturalHeight?!0:!1;try{if(S.readyState)var Q=S.readyState;else{var f,U;Q=(f=S.contentWindow)==null?void 0:(U=f.document)==null?void 0:U.readyState}return Q==="complete"}catch(a){return c===void 0?!1:c}};
S7Y=function(S){S||(S=function(c,Q,f){c.addEventListener(Q,f)});
return S};
UZH=function(S,c){var Q=chZ();Q=Q===void 0?new QNH:Q;if(S=RhR(S)){var f=S7Y(f);for(var U=!1,a=function(w){U||(U=!0,c(w))},X,z=2,x=0;x<fWR.length;++x)if(fWR[x]===S.tagName){z=3;
X=[S];break}X||(X=S.querySelectorAll(fWR.join(",")));var I=0,n=0,b=!0,N=S=!1;x={};for(var l=0;l<X.length;x={isImg:void 0},l++){var H=X[l];if(!oDz(H))if(x.isImg=H.tagName==="IMG",mgo(H,Q.crossDomainLoadedDefault))S=!0,x.isImg&&(b=!0);else{I++;var q=function(w){return function(g){I--;!I&&b&&a(z);w.isImg&&(g=g&&g.type==="error",n--,g||(b=!0),!n&&N&&b&&a(z))}}(x);
f(H,"load",q);x.isImg&&(n++,f(H,"error",q))}}n===0&&(b=!0);X=null;X=_.QY.document.readyState==="complete";if(I===0&&!S&&X)z=5;else if(I||!S){f(_.QY,"load",function(){!Q.pendingImagesBlockLoad||!n&&b?a(4):N=!0});
return}a(z)}};
Jhp=function(S,c,Q){if(S)for(var f=0;S!=null&&f<500&&!Q(S);++f)S=c(S)};
aWp=function(S,c){Jhp(S,function(Q){try{return Q===Q.parent?null:Q.parent}catch(f){}return null},c)};
AhY=function(S,c){if(S.tagName=="IFRAME")c(S);else{S=S.querySelectorAll("IFRAME");for(var Q=0;Q<S.length&&!c(S[Q]);++Q);}};
Xsr=function(S){return(S=S.ownerDocument)&&(S.parentWindow||S.defaultView)||null};
ORx=function(S,c,Q){try{var f=JSON.parse(Q.data)}catch(X){}if(typeof f==="object"&&f&&f.type==="creativeLoad"){var U=Xsr(S);if(Q.source&&U){var a;aWp(Q.source,function(X){try{if(X.parent===U)return a=X,!0}catch(z){}});
a&&AhY(S,function(X){if(X.contentWindow===a)return c(f),!0})}}};
zUo=function(S){return typeof S==="string"?document.getElementById(S):S};
IWZ=function(){var S={};return S[0]=_.QN(xZY,"current"),S[1]=_.QN(FoM),S[2]=_.QN(B8r),S};
zc=function(S,c){return S.left===c.left&&S.top===c.top&&S.width===c.width&&S.height===c.height};
npY=function(S,c){return{left:Math.max(S.left,c.left),top:Math.max(S.top,c.top),width:Math.max(0,Math.min(S.left+S.width,c.left+c.width)-Math.max(S.left,c.left)),height:Math.max(0,Math.min(S.top+S.height,c.top+c.height)-Math.max(S.top,c.top))}};
bRT=function(S,c){return{left:Math.round(S.left+c.x),top:Math.round(S.top+c.y),width:S.width,height:S.height}};
N8c=function(S,c,Q){if(S&&c!==null&&c!=c.top){if(!c.top)return new _.xh(-12245933,-12245933);c=c.top}try{return(Q===void 0?0:Q)?(new _.xh(c.innerWidth,c.innerHeight)).round():_.B5(c).round()}catch(f){return new _.xh(-12245933,-12245933)}};
Kox=function(S,c,Q){try{if(S){if(!c.top)return new UV(-12245933,-12245933,-12245933,-12245933);c=c.top}var f=N8c(S,c,Q),U=f.height,a=f.width;if(a===-12245933)return new UV(a,a,a,a);var X=Iq(nn(c.document)),z=X.x,x=X.y;return new UV(x,z+a,x+U,z)}catch(I){return new UV(-12245933,-12245933,-12245933,-12245933)}};
$ZR=function(S){var c;return(c=S.google_tag_data)!=null?c:S.google_tag_data={}};
u1p=function(S){var c,Q;return typeof((c=S.navigator)==null?void 0:(Q=c.userAgentData)==null?void 0:Q.getHighEntropyValues)==="function"};
lWz=function(S){if(!u1p(S))return null;var c=$ZR(S);if(c.uach_promise)return c.uach_promise;S=S.navigator.userAgentData.getHighEntropyValues(jNY).then(function(Q){c.uach!=null||(c.uach=Q);return Q});
return c.uach_promise=S};
iRc=function(S){var c;return Y7r(Ciz(HRp(DZH(psp(hUr(q7z(T8o(wsZ(new sNc,S.architecture||""),S.bitness||""),S.mobile||!1),S.model||""),S.platform||""),S.platformVersion||""),S.uaFullVersion||""),((c=S.fullVersionList)==null?void 0:c.map(function(Q){var f=new M6x;f=_.bN(f,1,Q.brand);return _.bN(f,2,Q.version)}))||[]),S.wow64||!1)};
ZRM=function(S){var c,Q;return(Q=(c=lWz(S))==null?void 0:c.then(function(f){return iRc(f)}))!=null?Q:null};
GCY=function(S,c){return new cs(function(Q){var f=!1,U=Array(c.length);U.fill(void 0);var a=new Set,X=new Set,z=function(b,N){S.running?(U[N]=b,a.add(N),f||(f=!0,X4(S,function(){f=!1;Q.next(_.VY(U))},1))):Q.error(new Nk(N))},x=function(b,N){X.add(N);
a.add(N);X4(S,function(){Q.error(b)},1)},I=function(b){X.add(b);
X4(S,function(){X.size===c.length&&Q.complete()},1)},n=c.map(function(b,N){return b.subscribe(function(l){return void z(l,N)},function(l){return void x(l,N)},function(){return void I(N)})});
return function(){n.forEach(function(b){return void b.unsubscribe()})}})};
gpT=function(S,c,Q){function f(){if(c.debugChannel){var w=c.debugChannel,g=w.next;var r={creativeId:c.debugNames.getName(Q),requiredSignals:U,signals:Object.assign({},a),hasPrematurelyCompleted:X,errorMessage:z,erroredSignalKey:x};r={specMajor:2,specMinor:0,specPatch:0,timestamp:ii(c.timeProvider.now(),new ZW(0,c.timeProvider.timeline)),instanceId:c.debugNames.getName(c.symbol),creativeState:r};g.call(w,r)}}
for(var U=Object.keys(S),a={},X=!1,z=null,x=null,I={},n=new Set,b=[],N=[],l=_.A(U),H=l.next(),q={};!H.done;q={key$jscomp$375:void 0},H=l.next())q.key$jscomp$375=H.value,H=S[q.key$jscomp$375],H instanceof OV?(I[q.key$jscomp$375]=H.value,n.add(q.key$jscomp$375),c.debugChannel&&(a[String(q.key$jscomp$375)]=Kco(H.value))):(H=H.pipe(d8(function(w,g){return bcp(w)||bcp(g)?!1:w===g}),CR(function(w){return function(g){c.debugChannel&&(a[String(w.key$jscomp$375)]=Kco(g),f());
var r={};return r[w.key$jscomp$375]=g,r}}(q)),Ws(function(w){return function(g){if(g instanceof Nk)throw new Woo(String(w.key$jscomp$375));
throw g;}}(q)),mo(function(w){return function(){n.add(w.key$jscomp$375)}}(q),function(w){return function(g){x=String(w.key$jscomp$375);
z=String(g);f()}}(q),function(w){return function(){n.has(w.key$jscomp$375)||(X=!0,f())}}(q))),N.push(q.key$jscomp$375),b.push(H));
(S=Object.keys(a).length>0)&&f();l=GCY(c.queue,b).pipe(Ws(function(w){if(w instanceof Nk)throw new Kn(String(N[w.inputObservableIndex]));throw w;}),CR(function(w){return Object.freeze(Object.assign.apply(Object,[{},
I].concat(_.Hs(w))))}));
return(b=b.length>0)&&S?s7(NZ(Object.freeze(I)),l):b?l:NZ(Object.freeze(I))};
eUx=function(S,c,Q,f,U){return S.performanceMonitor.timeExecution.bind(S.performanceMonitor)(733,function(){var a={};try{return c.pipe(Ws(function(X){f(Object.assign({},a,{error:X}));return w8}),hh(function(X){try{var z=Q(S,X)}catch(I){return f(Object.assign({},a,{error:I instanceof Error?I:String(I)})),w8}var x={};
return gpT(z,S,X.symbol).pipe(mo(function(I){x=I}),th(1),Yp()).pipe(U,Ws(function(I){f(Object.assign({},x,{error:I}));
return w8}),vs(void 0),CR(function(){return!0}))})).pipe(Vq(function(X){return X+1},0),Ws(function(X){f(Object.assign({},a,{error:X}));
return w8}))}catch(X){return f(Object.assign({},a,{error:X})),w8}})()};
$h=function(S){var c=new Map;if(typeof S!=="object"||S===null)return c;Object.values(S).forEach(function(Q){Q&&typeof Q.extrapolateToNow==="function"&&(c.has(Q.clock.timeline)||c.set(Q.clock.timeline,Q.clock.now()))});
return c};
kCM=function(S,c){return typeof S==="string"?encodeURIComponent(S):typeof S==="number"?String(S):Array.isArray(S)?S.map(function(Q){return kCM(Q,c)}).join(","):S instanceof ZW?S.toString():S&&typeof S.extrapolateToNow==="function"?kCM(S.extrapolateUsingTimestampMap(c).value,c):S===!0?"1":S===!1?"0":S===void 0||S===null?null:S instanceof rhR?dZZ(S):[S.top,
S.left,S.top+S.height,S.left+S.width].join()};
uN=function(S,c){S=Object.entries(S).map(function(Q){var f=_.A(Q);Q=f.next().value;f=f.next().value;f=kCM(f,c);return f===null?"":Q+"="+f}).filter(function(Q){return Q!==""});
return S.length?S.join("&"):""};
Lop=function(S,c){var Q=vpY,f=PiZ;c=c===void 0?.01:c;return function(U){c>0&&Math.random()<=c&&(S.global.HTMLFencedFrameElement&&S.global.fence&&typeof S.global.fence.reportEvent==="function"&&S.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),U=Object.assign({},U,{errorMessage:U.error instanceof Error&&U.error.message?U.error.message:String(U.error),errorStack:U.error instanceof Error&&U.error.stack?String(U.error.stack):null,errorName:U.error instanceof
Error&&U.error.name?String(U.error.name):null,errorContext:String(S.performanceMonitor.timedFunctionContext),errorEscapedQueryId:U.escapedQueryId}),Q(Object.assign({},U,{payloadMapper:function(){return function(a){try{return f(Object.assign({},a))}catch(X){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),$h(U)).forEach(function(a){S.beaconFactory.makeBeacon(a).sendNow()}))}};
EpR=function(){var S=_.YD.apply(0,arguments);return function(c){var Q=c.pipe(th(1),Yp());c=S.map(function(f){return Q.pipe(f,vs(!0))});
return DW(c).pipe(r8(1),g8())}};
t6H=function(){var S=_.YD.apply(0,arguments);return function(c){var Q=c.pipe(th(1),Yp());c=S.map(function(f){return Q.pipe(f,vs(!0))});
return s7.apply(null,_.Hs(c)).pipe(r8(1),g8())}};
V6p=function(S,c){return function(Q){var f=Q.pipe(th(1),Yp());Q=f.pipe(S,vs(!0));f=f.pipe(S6(c,th(),Yp()),vs(!0));Q=DW([Q,f]);return IQZ(Q,f).pipe(r8(1),g8())}};
RUZ=function(S,c,Q){Q(!0)};
yhZ=function(S,c){return S6(yq(function(Q){var f=S(Q),U=c(Q),a={};return f&&U&&a?new cs(function(X){U(f,a,function(z){X.next(Object.assign({},Q,{canEmit:z}));X.complete()});
return function(){}}):jC}),MZ(function(Q){return Q.canEmit}))};
opx=function(S){var c={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(Q){return Q.pipe(yq(function(f){return new cs(function(U){function a(){z.disconnect();x.unsubscribe()}
var X=S.MutationObserver;if(X&&f.ref!==void 0){var z=new X(function(I){U.next(I)});
z.observe(f.ref,c);var x=f.JSC$7397_released.subscribe(a);return a}})}))}};
mZz=function(S){if(S.measurementDeferralState===3)return null;if(S.timeOnScreenReason!==void 0){var c=S.creativeFound===!1?"n":null;if(c!==null)return c}return S.geometricMeasurementErrors instanceof lN?"msf":S.contextValidationErrors instanceof Yh?"c":S.contextVisibilityKnown===!1?"pv":S.geometricMeasurementErrors||S.contextValidationErrors?"x":null};
H5=function(S,c){return S.replace(SVZ,function(Q,f){try{var U=_.Cn.get(c,f);if(U==null||U.toString()==null)return Q;U=U.toString();if(U==""||!_.Xo(U==null?"":String(U)))return encodeURIComponent(U).replace(/%2C/g,",")}catch(a){}return Q})};
cHY=function(S,c){var Q=Object.assign({},S),f=S.userAgentClientHints;Q=(delete Q.userAgentClientHints,Q);Q=S.payloadMapper(Q);var U=uN(Q,c);return _.D0(S.urlPrefixes,function(a){var X="";typeof f==="string"&&(X="&"+uN({uach:f},c));var z={};return H5(a,(z.VIEWABILITY=U,z))+X})};
vpY=function(S,c){var Q=S.payloadMapper(S),f=uN(Q,c);return f?_.D0(S.urlPrefixes,function(U){U=U.indexOf("?")>=0?U:U+"?";U="?&".indexOf(U.slice(-1))>=0?U:U+"&";return U+f}):S.urlPrefixes};
QqR=function(){return S6(MZ(function(S){return S!==void 0}),CR(function(S){return S}))};
f0R=function(S){return S6(CR(function(){return!0}),RN(!1),AH(S))};
Ukp=function(S){return S.length<=0?w8:DW(S.map(function(c){var Q=0;return c.pipe(CR(function(f){return{index:Q++,value:f}}))})).pipe(MZ(function(c){return c.every(function(Q){return Q.index===c[0].index})}),CR(function(c){return c.map(function(Q){return Q.value})}))};
JHp=function(S,c){S.currentState&&(S.previousState=S.currentState);S.currentState=c;S.previousState&&S.previousState.value?(c=Math.max(0,ii(c.timestamp,S.previousState.timestamp)),S.totalTime+=c,S.consecutiveTime+=c):S.consecutiveTime=0;return S};
a0T=function(){return S6(Vq(JHp,{totalTime:0,consecutiveTime:0}),CR(function(S){return S.totalTime}))};
AHp=function(){return S6(Vq(JHp,{totalTime:0,consecutiveTime:0}),CR(function(S){return S.consecutiveTime}))};
X5o=function(S,c){return function(Q){return Ukp(c.map(function(f){return Q.pipe(S(f))}))}};
Onz=function(){var S;return S6(mo(function(c){return void(S=c.timestamp)}),AHp(),CR(function(c){return{timestamp:S,
value:Math.round(c)}}))};
zKz=function(S,c){return zc(S.topWindowViewportExternalGeometry,c.topWindowViewportExternalGeometry)&&zc(S.elementGeometry,c.elementGeometry)&&zc(S.exposedViewportLocalGeometry,c.exposedViewportLocalGeometry)&&zc(S.intersectionGeometry,c.intersectionGeometry)&&S.elementGeometrySourceName===c.elementGeometrySourceName&&S.measurementRequests===c.measurementRequests&&S.viewportGeometrySourceName===c.viewportGeometrySourceName&&S.viewportLocalAppOffset.x===c.viewportLocalAppOffset.x&&S.viewportLocalAppOffset.y===
c.viewportLocalAppOffset.y};
Bbo=function(S,c){return function(Q){return function(f){var U=f.pipe(LR(new JH),Yp());f=Q.element.pipe(d8());U=U.pipe(CR(function(a){return a.value}));
return DW([f,U,c]).pipe(CR(function(a){var X=_.A(a);a=X.next().value;var z=X.next().value;X=X.next().value;if(a.ref===void 0)var x={top:0,left:0,width:0,height:0};else{x=a.ref.getBoundingClientRect();var I=a.ref,n=S.global,b=new _.pn(0,0),N=hH(_.qk(I));if(Tc(N,"parent")){do{if(N==n)var l=_.wb(I);else l=xkz(I),l=new _.pn(l.left,l.top);b.x+=l.x;b.y+=l.y}while(N&&N!=n&&N!=N.parent&&(I=N.frameElement)&&(N=N.parent))}x={top:b.y,left:b.x,width:x.width,height:x.height}}x=bRT(x,z.viewportLocalAppOffset);
n=npY(x,z.exposedViewportLocalGeometry);b=S.timeProvider.now();N=Object;I=N.assign;if(X!==2||S.inCrossDomainIframe||n.width<=0||n.height<=0)var H=!1;else try{var q=S.document.elementFromPoint(n.left+n.width/2,n.top+n.height/2);H=q?!FWc(q,a):!1}catch(w){H=!1}return{timestamp:b,value:I.call(N,{},z,{elementGeometrySourceName:"geo",intersectionGeometry:H?sV.intersectionGeometry:n,elementGeometry:x})}}),aq(S.queue))}}};
FWc=function(S,c,Q){Q=Q===void 0?0:Q;return S.ref===void 0||c.ref===void 0?!1:S.ref===c.ref||_.Mk(c.ref,function(f){return f===S.ref})?!0:c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView===c.ref.ownerDocument.defaultView.top?!1:Q<10&&c.ref.ownerDocument&&c.ref.ownerDocument.defaultView&&c.ref.ownerDocument.defaultView.frameElement?FWc(S,new iN(c.ref.ownerDocument.defaultView.frameElement),Q+1):!0};
bnY=function(S){return function(c){return c.pipe(S.ResizeObserver?I0x(S):nhx(S),th(1),Yp())}};
I0x=function(S){return function(c){return c.pipe(yq(function(Q){var f=S.ResizeObserver;if(!f||Q.ref===void 0)return NZ(sV.elementGeometry);var U=(new cs(function(a){function X(){Q.ref!==void 0&&z.unobserve(Q.ref);z.disconnect();x.unsubscribe()}
if(Q.ref===void 0)return a.complete(),function(){};
var z=new f(function(I){I.forEach(function(n){a.next(n)})});
z.observe(Q.ref);var x=Q.JSC$7397_released.subscribe(X);return X})).pipe(GC(S.performanceMonitor,736),CR(function(a){return a.contentRect}));
return s7(NZ(Q.ref.getBoundingClientRect()),U)}),d8(zc))}};
nhx=function(S){return function(c){var Q=c.pipe(opx(S)),f=S.onResize;Q=s7(c.pipe(CR(function(){return VSo("resize")})),Q,f);
return DW(c,Q).pipe(GC(S.performanceMonitor,737),CR(function(U){U=_.A(U).next().value;return U.ref===void 0?void 0:U.ref.getBoundingClientRect()}),QqR(),d8(zc))}};
$kz=function(S,c){var Q=Nbz(S,c).pipe(th(1),Yp());return function(f){return function(U){U=U.pipe(yq(function(a){return a.element}),d8());
return DW([Q,U]).pipe(yq(function(a){var X=_.A(a);a=X.next().value;X=X.next().value;return KWx(S,a.intersectionObserver,bnY(S),a.observations,f,a.flushRecords,X)}),aq(S.queue))}}};
u4z=function(S){return CR(function(c){return c.value.viewportGeometrySourceName!=="nio"?c:Object.assign({},c,{value:Object.assign({},c.value,{exposedViewportLocalGeometry:Z0(S,!0),topWindowViewportExternalGeometry:Z0(S,!0)})})})};
jqc=function(S,c){return NZ(c).pipe(S,CR(function(){return c}))};
Nbz=function(S,c){return S.timeProvider.timeline!==l0o?KR(new lN(2)):S.MutationObserver?typeof IntersectionObserver==="undefined"?KR(new lN(0)):(new cs(function(Q){var f=new JH,U=new Gc(f.next.bind(f),{threshold:[].concat(_.Hs(c))});Q.next({observations:f.pipe(GC(S.performanceMonitor,735)),intersectionObserver:U,flushRecords:function(a){a=U.takeRecords(a);a.length>0&&f.next(a)}})})).pipe(r8(1),th(1),Yp()):KR(new lN(1))};
YVp=function(S){return Gax(S.sort(function(c,Q){return c.time-Q.time}),LEp)};
KWx=function(S,c,Q,f,U,a,X){return new cs(function(z){function x(){H||(H=!0,X.ref!==void 0&&c.unobserve(U,X.ref),n.unsubscribe(),l.unsubscribe(),N.unsubscribe(),q.unsubscribe())}
if(X.ref!==void 0){CNM(c,U);c.observe(U,X.ref);var I=new W5({timestamp:S.timeProvider.now(),value:Object.assign({},sV,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),n=f.pipe(hh(function(w){return YVp(w)}),MZ(function(w){return w.target===X.ref}),CR(function(w){return{timestamp:new ZW(w.time,l0o),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:w.rootBounds||gb,topWindowViewportExternalGeometry:w.rootBounds||Z0(S,!0),measurementRequests:b,elementGeometrySourceName:"nio",intersectionGeometry:w.intersectionRect,elementGeometry:w.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:w.isIntersecting,isV2Visible:w.isVisible}}}),LR(I),Yp()).subscribe(z),b=new JH,N=b.subscribe(function(){a(U);
z.next({timestamp:S.timeProvider.now(),value:I.value.value});X.ref!==void 0&&(c.unobserve(U,X.ref),c.observe(U,X.ref))}),l=jqc(Q,X).subscribe(function(){b.next()}),H=!1,q=X.JSC$7397_released.subscribe(function(){return x()});
return x}})};
Hnp=function(S,c){var Q=S.getOnBackgrounded().pipe(CR(function(){return"b"}));
return IQZ(c,Q).pipe(r8(1),AH(S.queue))};
eC=function(S){return function(c){var Q;return c.pipe(mo(function(f){return void(Q=f.timestamp)}),CR(function(f){return f.value}),S,CR(function(f){return{timestamp:Q,
value:f}}))}};
Dkc=function(S){return S.intersectionGeometry.width*S.intersectionGeometry.height/(S.elementGeometry.width*S.elementGeometry.height)};
kh=function(S,c,Q){Q=Q===void 0?function(f,U){return f===U}:Q;
return S.timestamp.equals(c.timestamp)&&Q(S.value,c.value)};
db=function(S,c){return c.pipe(CR(function(Q){return new rb(S.timeProvider,{timestamp:S.timeProvider.now(),value:Q})}))};
p5T=function(S){return function(c){return c.pipe(T_H(S),CR(function(Q){var f=_.A(Q);Q=f.next().value;f=f.next().value;var U=Q.value;return{timestamp:Q.timestamp,value:U>=1?!0:U<=0?!1:U>=f}}))}};
qVc=function(){return S6(MZ(function(S,c){return c>0}),hKp,RN(-1),d8())};
Tbr=function(S,c,Q){return S?DW([c,Q]).pipe(MZ(function(f){var U=_.A(f);f=U.next().value;U=U.next().value;return f.timestamp.equals(U.timestamp)}),CR(function(f){var U=_.A(f);
f=U.next().value;U=U.next().value;return f.value>U.value?f:U})):c};
MCz=function(S){return function(c){var Q=c.pipe(w5p),f=c.pipe(sqx);return S instanceof cs?S.pipe(yq(function(U){return Tbr(U,Q,f)})):Tbr(S.value,Q,f)}};
vhz=function(S,c,Q,f){var U=f.geometryIsOccluded,a=f.exposureThreshold,X=f.wasLargeAdAtRender,z=f.allowLargeAdThreshold,x=f.largeAdExposureThreshold,I=f.mayUseViewportShareExposure,n=f.hasMeasurementStarted;f=f.useIntersectionObserverV2;c=inT(S,Q,c);Q=Znr(S,Q);f=GcH(c,f);var b=WWp(S,U,I,c),N=b.pipe(CR(function(t){return t.value}),d8(),AH(S),Vq(function(t,V){return Math.max(t,V)},0)),l=b.pipe(CR(function(t){return t.value}),qVc(),AH(S)),H=c.pipe(ghc,CR(function(t){return t.value}),r8(2),d8(),AH(S));
X=eKR(S,c,X,z);var q=X.pipe(RN(!1),d8(),CR(function(t){return t?x:a}));
z=b.pipe(p5T(q),d8(),AH(S));var w=DW([z,c]).pipe(MZ(function(t){var V=_.A(t);t=V.next().value;V=V.next().value;return t.timestamp.equals(V.timestamp)}),CR(function(t){var V=_.A(t);
t=V.next().value;V=V.next().value;return{visible:t.value,geometry:V.value.elementGeometry}}),Vq(function(t,V){return!V.visible&&t.visible?t:V},{visible:!1,
geometry:gb}),CR(function(t){return t.geometry}),RN(gb),AH(S),d8(zc));
I=I instanceof cs?I.pipe(d8(),e6()):jC;q=DW([I,q]).pipe(e6());var g=c.pipe(MZ(function(t){return t.value.viewportGeometrySourceName!=="ns"&&t.value.elementGeometrySourceName!=="ns"}),Vq(function(t){return t+1},0),RN(0),AH(S)),r=Q.pipe(e6(!0),RN(!1),AH(S));
r=DW([n,r]).pipe(CR(function(t){var V=_.A(t);t=V.next().value;V=V.next().value;return t&&!V}),AH(S));
var E=c.pipe(kco,d8()),v=E.pipe(CR(function(t){return t.value}),Vq(function(t,V){return Math.max(t,V)},0),d8(),AH(S));
S=E.pipe(CR(function(t){return t.value}),qVc(),AH(S));
return{shouldResetExposureSignals:I,shouldResetViewabilitySignals:q,geometrySignals:{readyGeometryWithDefault:c,measurementStrategy:c.pipe(rHZ),creativePosition:w.pipe(d8(zc)),visible:z.pipe(d8(kh)),timestampedExposure:b.pipe(d8(kh)),maximumExposure:N,minimumExposure:l,browserSize:c.pipe(dkz,d8(_.A$)),timestampedScreenShare:E,maxScreenShare:v,minScreenShare:S,geometricMeasurementErrors:Q,measurementRequests:c.pipe(CR(function(t){return t.value.measurementRequests})),
isLargeAd:X,geometryIsOccluded:U,hasMeasurementStarted:n,geometryMeasurable:r,validMeasurementCount:g,loadTimeExposure:H,v2VisibilityBitVector:f}}};
Znr=function(S,c){return c.pipe(MZ(function(){return!1}),CR(function(Q){return Q}),Ws(function(Q){return v5(new OV(Q),S)}))};
inT=function(S,c,Q){return c.pipe(Fcz(jC),AH(S)).pipe(d8(function(f,U){return kh(f,U,zKz)}),RN({timestamp:Q.now(),
value:sV}),AH(S))};
WWp=function(S,c,Q,f){Q=f.pipe(MCz(Q),eC(CR(function(U){return Math.round(U*100)/100})),AH(S));
return c instanceof OV?Q:DW([Q,c]).pipe(CR(function(U){var a=_.A(U);U=a.next().value;a=a.next().value;return{timestamp:a.timestamp.maximum(U.timestamp),value:a.value?0:U.value}}),d8(kh),AH(S))};
eKR=function(S,c,Q,f){c=[c.pipe(CR(function(U){return U.value.elementGeometry.width*U.value.elementGeometry.height>=242500}))];
Q instanceof cs&&c.push(Q.pipe(CR(function(U){return!!U})));
Q=DW(c);return f?Q.pipe(CR(function(U){return U.some(function(a){return a})}),RN(!1),d8(),AH(S)):v5(new OV(!1),S)};
GcH=function(S,c){S=DW([S,c]).pipe(CR(function(U){var a=_.A(U);U=a.next().value;if(a.next().value&&U.value.isIntersecting)return U.value.isV2Visible}),d8());
var Q=S.pipe(CR(function(U){return U===void 0?!0:U}),Vq(function(U,a){return U||!a},!1)),f=S.pipe(Vq(function(U,a){return a===void 0?U:a?!1:U!=null?U:!0},void 0),CR(function(U){return!!U}));
return DW([c,nDY(S,Q,f)]).pipe(CR(function(U){var a=_.A(U);U=a.next().value;var X=_.A(a.next().value);a=X.next().value;var z=X.next().value;X=X.next().value;var x=0;if(!U)return 0;if(a===void 0)return 16;a&&(x|=1);a||(x|=2);z&&(x|=4);X&&(x|=8);return x}))};
tCo=function(S,c,Q,f,U){var a=P5.timeThresholdMs;var X=X===void 0?new PNx(c,f):X;return(new cs(function(z){var x=Q.pipe(RN(void 0),yq(function(){return LWY(U)})).pipe(CR(function(I){var n=I.value;
I=I.timestamp;var b=n.visible;n=n.consecutiveViewTime;var N=n>=a;N||!b?Ln(X):(I=Math.max(0,ii(c.now(),I)),EhR(X,Math.max(0,a-n-I)));return N}),Vq(function(I,n){return n||I},!1),d8()).subscribe(z);
return function(){X.dispose();x.unsubscribe()}})).pipe(oN(function(z){return!z},!0),AH(S))};
LWY=function(S){return Ukp([S,S.pipe(Onz())]).pipe(CR(function(c){var Q=_.A(c);c=Q.next().value;Q=Q.next().value;return{timestamp:c.timestamp,value:{visible:c.value,consecutiveViewTime:Q.value}}}),d8(function(c,Q){return kh(c,Q,function(f,U){return f.consecutiveViewTime===U.consecutiveViewTime&&f.visible===U.visible})}))};
VCY=function(){return S6(AHp(),Vq(function(S,c){return Math.max(S,c)},0),CR(function(S){return Math.round(S)}))};
RKT=function(S){return S6(p5T(NZ(S)),VCY())};
yHp=function(S,c){return c instanceof cs?c.pipe(yq(function(Q){return(Q=Q?15:null)?KR(new lN(Q)):S})):(c=c.value?15:null)?KR(new lN(c)):S};
ohz=function(S){var c=new lN(13);if(S.length<1)return{chain:w8,capturedErrors:w8};var Q=new JH,f=S[0];return{chain:S.slice(1).reduce(function(U,a){return U.pipe(Ws(function(X){Q.next(X);return a}))},f).pipe(Ws(function(U){Q.next(U);
return KR(c)}),LR(new JH),Yp()),
capturedErrors:Q}};
mko=function(S,c){var Q=S.pipe(LR(new JH),Yp());return yq(function(f){return Q.pipe(c(f))})};
coc=function(S,c){if(S.inCrossDomainIframe)return KR(new lN(6));var Q=new JH;return s7(NZ({}),c,Q).pipe(CR(function(){return{timestamp:S.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Shx(S),topWindowViewportExternalGeometry:Z0(S,!0),measurementRequests:Q,viewportLocalAppOffset:{x:0,y:0}}}}),aq(S.queue))};
Shx=function(S){var c=Z0(S,!1);if(!S.inIframe||!EV(S.global.parent)||S.global.parent===S.global)return c;var Q=new tH(S.global.parent,S.debugChannel);Q.beaconFactory=S.beaconFactory;Q=Shx(Q);S=S.global.frameElement.getBoundingClientRect();return npY(bRT(npY(Q,S),{x:c.left-S.left,y:c.top-S.top}),c)};
Qjc=function(S){if(S.prerendering)return 3;var c;return(c={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[S.visibilityState||S.webkitVisibilityState||S.mozVisibilityState||""])!=null?c:0};
f3T=function(S){return S.document.JSC$7408_onVisibilityChange.pipe(CR(function(c){return c==="visible"}),d8(),AH(S.queue))};
Ufc=function(S,c,Q){var f;return c.pipe(d8(),yq(function(U){return Q.pipe(CR(function(){if(!f){f=!0;try{U.next()}finally{f=!1}}return!0}))}),RN(!1),AH(S.queue))};
JoZ=function(S){return S6(eC(CR(function(c){return c>=1?!0:c<=0?!1:c>=S})),a0T(),CR(function(c){return Math.round(c)}))};
Aoz=function(S,c,Q,f,U){var a=a3T;if(a.length>1)for(var X=0;X<a.length-1;X++)if(a[X]<a[X+1])throw Error();X=U.pipe(RN(void 0),yq(function(){return Q.pipe(Onz())}),d8(),AH(S));
U=U.pipe(RN(void 0),yq(function(){return Q.pipe(VCY())}),d8(),AH(S));
return{totalMeasurementTime:f.pipe(RN(void 0),yq(function(){return c.pipe(CR(function(z){return{timestamp:z.timestamp,value:!0}}),a0T())}),d8(),AH(S)),
totalUnviewedTime:f.pipe(RN(void 0),yq(function(){return c.pipe(CR(function(z){return{timestamp:z.timestamp,value:z.value===0}}),a0T())}),d8(),AH(S)),
maxTimeOnScreen:f.pipe(RN(void 0),yq(function(){return c.pipe(X5o(RKT,a))}),d8(_.A$),AH(S)),
timeOnScreen:f.pipe(RN(void 0),yq(function(){return c.pipe(X5o(JoZ,a),CR(function(z){return z.map(function(x,I){return I>0?x-z[I-1]:x})}))}),d8(_.A$),AH(S)),
maxConsecutiveViewTime:U,consecutiveViewTime:X.pipe(d8(kh),AH(S))}};
O9Y=function(S){var c=!0;c=c===void 0?!1:c;return S6(yq(function(Q){return X1r(S.document,Q,c)}),AH(S.queue))};
zxp=function(S,c,Q){var f=Q.pipe(CR(function(U){return{value:U,timestamp:S.timeProvider.now()}}),d8(kh));
return c instanceof cs?c.pipe(d8(),yq(function(U){return U?v5(new OV({value:!1,timestamp:S.timeProvider.now()}),S.queue):f})):c.value===!1?f:new OV(!1)};
xfp=function(S,c,Q,f,U,a,X){var z=P5;c=c instanceof cs?c.pipe(RN(!1),d8()):c;var x=!S.isMobile();Q=zxp(S,Q,f);S=X.measurableCreative.pipe(f0R(S.queue));return Object.assign({},z,{geometryIsOccluded:Q,wasLargeAdAtRender:U,allowLargeAdThreshold:x,mayUseViewportShareExposure:c,hasMeasurementStarted:S,useIntersectionObserverV2:a})};
BFz=function(S,c,Q,f,U,a){var X=1;a=a===void 0?!0:a;X=X===void 0?.01:X;var z=z===void 0?S.timeProvider.intervalObservable(100).pipe(AH(S.queue)):z;return S.performanceMonitor.timeExecution(916,function(){return F2c(S,c.pipe(aq(S.queue)),Q.pipe(aq(S.queue)),f,U,a,X,z)})()};
F2c=function(S,c,Q,f,U,a,X,z){var x=f3T(S).pipe(CR(function(n){return!n})),I=new I3p(S,[new nxr(S,a3T),
new b9Y(S,z)]);z=EpR(NFx,K2x);return eUx(S,c,function(n,b){var N=v5(new OV(b.element),n.queue).pipe(O9Y(n),AH(n.queue)),l={loadedElement:N,shouldMeasure:N.pipe(e6(!0)),measurableCreative:N.pipe(CR(function(t){var V=V===void 0?Symbol():V;return Object.freeze({symbol:V,element:v5(new OV(t),n.queue)})})),
creativeSearchResult:v5(new OV("mue"),n.queue)},H=new OV(!1),q=new OV(!1),w=new OV(17),g=new OV(!1),r=new OV(!1),E=v5(VN,n.queue);H=I.buildGeometrySource(l,{inApp:H,useV2:!1,requestSource:v5(w,n.queue)}).geometrySource;l=xfp(n,g,q,x,r,E,l);q=vhz(n.queue,n.timeProvider,H,l);l=q.geometrySignals;g=q.shouldResetViewabilitySignals;q=Aoz(n.queue,l.timestampedExposure,l.visible,q.shouldResetExposureSignals,g);g=tCo(n.queue,n.timeProvider,g,l.measurementRequests,l.visible);r=Q.pipe(MZ(function(t){return t===
b.element.ref}),CR(function(){return"ur"}));
E=$gH(n.timeProvider,U).pipe(e6("t"));r=Hnp(n,s7(r,E));E=Ufc(n,l.measurementRequests,r.pipe(MZ(function(t){return t!==null})));
H=r.pipe(MZ(function(t){return t!==null}),CR(function(){return Qjc(n.global.document)===1}));
var v=$fZ(n.document);return Object.assign({},{beaconFactory:new OV(n.beaconFactory),context:new OV(n),inferredPingId:new OV("lidar2"),timeOnScreenPingId:new OV("lidartos"),binaryContext:new OV(17),binaryVersion:new OV(f),requestSource:w,contextValidationErrors:new OV(n.validate()?null:new Yh),contextVisibilityKnown:new OV(v),payloadMapper:new OV(PiZ),endOfSessionReason:r,timeOnScreenReason:r,requestMeasurementOnEndOfSession:E,hasImpressionFired:u5z,crossDomainIframeState:new OV(n.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:VN,inFetchLaterBeaconExperiment:VN,isTurtlex:VN,turtlexReportEventData:new OV(""),reportFencedFrameEvent:jC,isViewableAttributionEnabled:VN,inViewableAttributionExperiment:new OV(0),fetchBeaconFactory:jC,supportsPendingBeacon:VN,supportsFetchLater:VN,emit:new OV(RUZ),beginToRenderEvent:new OV(Symbol()),activeViewUnmeasurableEvent:new OV(Symbol()),activeViewViewableEvent:new OV(Symbol()),creativeFound:u5z,immediateUrlPrefixes:new OV(b.immediateUrls),timeOnScreenUrlPrefixes:new OV(b.timeOnScreenUrls),
cpmavUrls:jC,viewableRelayUrls:jC,measurementDeferralState:new OV(2),urlSerializer:new OV(cHY),viewUrlSerializer:new OV(jjM),isCreativeLoaded:N.pipe(f0R(n.queue)),pageVisible:x.pipe(CR(function(t){return!t})),
eosPageVisible:H,timestampedExposureHistory:l.timestampedExposure.pipe(Vq(function(t,V){t.push(V);return t},[]))},l,{viewable:db(n,g),
maxTimeOnScreen:db(n,q.maxTimeOnScreen),timeOnScreen:db(n,q.timeOnScreen),maxConsecutiveViewTime:db(n,q.maxConsecutiveViewTime),consecutiveViewTime:q.consecutiveViewTime.pipe(CR(function(t){return new rb(n.timeProvider,t)})),
totalMeasurementTime:db(n,q.totalMeasurementTime),totalUnviewedTime:db(n,q.totalUnviewedTime),userAgentClientHints:tSY(n),clientOrderPingCounter:new OV(new rhR)})},Lop(S,X),t6H(a?V6p(z,l3Y):V6p(z,Yhr),CGz))};
H9H=function(S){var c=_.YD.apply(1,arguments).filter(Boolean).join("&");if(!c)return S;var Q=S.match(/[?&]adurl=/);return Q?S.slice(0,Q.index+1)+c+"&"+S.slice(Q.index+1):S+(S.indexOf("?")<0?"?":"&")+c};
Rq=function(S,c){return c?"&"+S+"="+encodeURIComponent(c):""};
Dfp=function(){try{var S,c;return!!((S=window)==null?0:(c=S.top)==null?0:c.location.href)&&!1}catch(Q){return!0}};
_.yN=function(S){S&&typeof S.dispose=="function"&&S.dispose()};
_.oq=function(S){for(var c=0,Q=arguments.length;c<Q;++c){var f=arguments[c];_.yY(f)?_.oq.apply(null,f):_.yN(f)}};
hxT=function(){var S=p1r();S=S===void 0?"bevasrsg":S;return new Promise(function(c){var Q=window===window.top?window:Dfp()?window:window.top,f=Q[S],U;((U=f)==null?0:U.bevasrs)?c(new mW(f.bevasrs)):(f||(f={},f=(f.nqfbel=[],f),Q[S]=f),f.nqfbel.push(function(a){c(new mW(a))}))})};
qhp=function(S){var c={c:S.rD,e:S.ka2,mc:S.lkF,me:S.iMC};S.ot&&(c.co={c:S.ot.dwC,a:S.ot.lF9,s:S.ot.xMX});return c};
TFp=function(S){var c,Q,f={rD:S.c,ka2:S.e,lkF:(c=S.mc)!=null?c:!1,iMC:(Q=S.me)!=null?Q:!1};S.co&&(f.ot={dwC:S.co.c,lF9:S.co.a,xMX:S.co.s});return f};
w1p=function(S){return function(){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S(),2);c=Q.yieldResult;return Q.return({f:function(){return c.xWY()},
c:function(f){return c.ciW(f)},
m:function(f){return c.o8(TFp(f))},
mws:function(f){return c.zv(TFp(f))}})})}};
sjp=function(S,c){var Q=p1r();Q=Q===void 0?"bevasrsg":Q;c={s:function(a){var X;return S.snapshot(Object.assign({},a.c&&{rD:a.c},a.s&&{mdU:a.s},{n0P:(X=a.p)!=null?X:!0}))},
e:function(a){var X;return void((X=S.x52)==null?void 0:X.call(S,a))},
c:function(a,X){return S.p5U(a,X)},
p:S.mJc,l:function(){return S.mUU()},
wpc:c?w1p(c):void 0};var f=window===window.top?window:Dfp()?window:window.top,U=f[Q];if(U){U.bevasrs=c;if(U.nqfbel!==void 0)for(Q=_.A(U.nqfbel),f=Q.next();!f.done;f=Q.next())f=f.value,f(c);U.nqfbel=void 0}else U={},U=(U.bevasrs=c,U.nqfbel=void 0,U),f[Q]=U};
i9M=function(S){var c=c===void 0?49:c;var Q=[];_.St(S,MtZ,6,_.c1()).forEach(function(f){_.Qa(f,2)<=c&&Q.push(_.Qa(f,1))});
return Q};
Z9p=function(S){var c=c===void 0?49:c;var Q=[];_.St(S,MtZ,6,_.c1()).forEach(function(f){_.Qa(f,2)>c&&Q.push(_.Qa(f,1))});
return Q};
Gkr=function(S){S.then(function(){},function(){})};
f9=function(S){return{fieldType:1,fieldName:S}};
Uh=function(S){return{fieldType:2,fieldName:S}};
_.Jo=function(S){return{fieldType:3,fieldName:S}};
W2T=function(){function S(){U[0]=1732584193;U[1]=4023233417;U[2]=2562383102;U[3]=271733878;U[4]=3285377520;n=I=0}
function c(b){for(var N=X,l=0;l<64;l+=4)N[l/4]=b[l]<<24|b[l+1]<<16|b[l+2]<<8|b[l+3];for(l=16;l<80;l++)b=N[l-3]^N[l-8]^N[l-14]^N[l-16],N[l]=(b<<1|b>>>31)&4294967295;b=U[0];var H=U[1],q=U[2],w=U[3],g=U[4];for(l=0;l<80;l++){if(l<40)if(l<20){var r=w^H&(q^w);var E=1518500249}else r=H^q^w,E=1859775393;else l<60?(r=H&q|w&(H|q),E=2400959708):(r=H^q^w,E=3395469782);r=((b<<5|b>>>27)&4294967295)+r+g+E+N[l]&4294967295;g=w;w=q;q=(H<<30|H>>>2)&4294967295;H=b;b=r}U[0]=U[0]+b&4294967295;U[1]=U[1]+H&4294967295;U[2]=
U[2]+q&4294967295;U[3]=U[3]+w&4294967295;U[4]=U[4]+g&4294967295}
function Q(b,N){if(typeof b==="string"){b=unescape(encodeURIComponent(b));for(var l=[],H=0,q=b.length;H<q;++H)l.push(b.charCodeAt(H));b=l}N||(N=b.length);l=0;if(I==0)for(;l+64<N;)c(b.slice(l,l+64)),l+=64,n+=64;for(;l<N;)if(a[I++]=b[l++],n++,I==64)for(I=0,c(a);l+64<N;)c(b.slice(l,l+64)),l+=64,n+=64}
function f(){var b=[],N=n*8;I<56?Q(z,56-I):Q(z,64-(I-56));for(var l=63;l>=56;l--)a[l]=N&255,N>>>=8;c(a);for(l=N=0;l<5;l++)for(var H=24;H>=0;H-=8)b[N++]=U[l]>>H&255;return b}
for(var U=[],a=[],X=[],z=[128],x=1;x<64;++x)z[x]=0;var I,n;S();return{reset:S,update:Q,digest:f,digestString:function(){for(var b=f(),N="",l=0;l<b.length;l++)N+="0123456789ABCDEF".charAt(Math.floor(b[l]/16))+"0123456789ABCDEF".charAt(b[l]%16);return N}}};
dfY=function(S,c){c=c===void 0?gxz:c;if(!exM){var Q;S=(Q=S.navigator)==null?void 0:Q.userAgentData;if(!S||typeof S.getHighEntropyValues!=="function"||S.brands&&typeof S.brands.map!=="function")return Promise.reject(Error("za"));kkT((S.brands||[]).map(function(U){var a=new rop;a=_.bN(a,1,U.brand);return _.bN(a,2,U.version)}));
typeof S.mobile==="boolean"&&_.aj(Ao,2,S.mobile);exM=S.getHighEntropyValues(c)}var f=new Set(c);return exM.then(function(U){var a=Ao.clone();f.has("platform")&&_.bN(a,3,U.platform);f.has("platformVersion")&&_.bN(a,4,U.platformVersion);f.has("architecture")&&_.bN(a,5,U.architecture);f.has("model")&&_.bN(a,6,U.model);f.has("uaFullVersion")&&_.bN(a,7,U.uaFullVersion);return a.serialize()}).catch(function(){return Ao.serialize()})};
X5=function(S,c,Q,f){this.initialValue_=S;this.maxValue_=c;this.currBaseValue_=this.currValue_=S;this.randomFactor_=Q||0;this.backoffFactor_=f||2};
Oh=function(S){this.src=S;this.listeners={};this.typeCount_=0};
ExZ=function(){for(var S;S=vxM.remove();){try{S.fn.call(S.scope)}catch(c){fz(c)}PGM.put(S)}L2R=!1};
_.zk=function(S){switch(S){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}};
ttT=function(S){switch(S){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""}};
_.Vtr=function(){};
UjT=function(S){return{vDH:new RxY(S),errorCount:new yoz(S),eventCount:new oxo(S),g9M:new mfp(S),ufL:new Sjx(S),rsc:new ctc(S),xuJ:new QxR(S),xtL:new ffx(S)}};
BXz=function(S,c,Q,f){S=JtY(afz(AtR(new _.xx(1828,"0"),S),new XrH));c.length&&Oyc(S,zqT(new xjY,c));f!==void 0&&(S.destinationUrl=f);var U=new Fmp(1828,"","",!1,"",S.build());_.F5(U,S);var a=new B1({flush:function(X){try{U.flush(X)}catch(z){Q(z)}}});
a.addOnDisposeCallback(function(){setTimeout(function(){try{a.snapshotAndFlush()}finally{U.dispose()}})});
a.invocationLimit=1E5;a.flushInterval=3E4;a.JSC$7824_flushTimer.setInterval(3E4);return a};
Ij=function(){var S,c,Q;return(Q=(S=globalThis.performance)==null?void 0:(c=S.now)==null?void 0:c.call(S))!=null?Q:Date.now()};
sxp=function(S,c,Q){if(S.disable)return new Ifx;c=c?i9M(c):[];if(Q)return Q.sWc(c),Q.share();S={h9:S.h9,fWm:S.rvZ,sOm:S.veJ,destinationUrl:S.destinationUrl,yDC:S.yDC,dm:S.dm};Q=c;Q=Q===void 0?[]:Q;return new n9(S,Q)};
MdY=function(S){if(!S)return null;S=_.bG(S,2);return S===null||S===void 0?null:h5(S)};
_.iyr=function(S){if(!S)return null;S=_.bG(S,4);return S===null||S===void 0?null:_.XK(S)};
Wmp=function(S,c){return c?Zyp(c):S?GoR(S):Promise.resolve()};
Zyp=function(S){return new Promise(function(c,Q){var f=_.Nf("SCRIPT"),U=_.iyr(S);_.eS(f,U);f.onload=function(){_.K9(f);c()};
f.onerror=function(){_.K9(f);Q(Error("Ka"))};
($x("HEAD")[0]||document.documentElement).appendChild(f)})};
GoR=function(S){return new Promise(function(c){var Q=_.Nf("SCRIPT");if(S){var f=_.bG(S,6);f=f===null||f===void 0?null:_.GR(f)}else f=null;_.g_(Q,f);($x("HEAD")[0]||document.documentElement).appendChild(Q);_.K9(Q);c()})};
uG=function(S,c,Q){var f,U=new Promise(function(a){f=setTimeout(a,c)});
return Promise.race([S.finally(function(){return void clearTimeout(f)}),
U.then(Q)])};
gvT=function(S,c){try{return globalThis.sessionStorage.setItem(S,c),!0}catch(Q){return!1}};
eqZ=function(S,c,Q,f){c=c===void 0?0:c;Q=Q===void 0?S.length:Q;var U=0;for(f&&(U=eqZ(f));c<Q;c++)f=typeof S==="string"?S.charCodeAt(c):S[c],U=kop(31,U)+f|0;return U};
rtx=function(S,c){return[eqZ(S,0,S.length>>1,c),eqZ(S,S.length>>1)]};
djp=function(S){var c=_.A(rtx(S,jt));S=c.next().value;c=c.next().value;return S.toString(16)+c.toString(16)};
vvZ=function(S,c){var Q=rtx(c);S=new Uint32Array(S.buffer);c=S[0];var f=_.A(Q);Q=f.next().value;f=f.next().value;for(var U=1;U<S.length;U+=2){for(var a=c,X=U,z=Q,x=f,I=0;I<22;I++)X=X>>>8|X<<24,X+=a|0,X^=z+38293,a=a<<3|a>>>29,a^=X,x=x>>>8|x<<24,x+=z|0,x^=I+38293,z=z<<3|z>>>29,z^=x;a=[a,X];S[U]^=a[0];U+1<S.length&&(S[U+1]^=a[1])}};
PQp=function(S,c,Q,f,U){var a=(4-(jt.length+Q.length)%4)%4,X=new Uint8Array(4+a+jt.length+4+Q.length),z=new DataView(X.buffer),x=0;z.setUint32(x,Math.random()*4294967295);x=x+4+a;X.set(jt,x);x+=jt.length;z.setUint32(x,U);X.set(Q,x+4);vvZ(X,f);return S.insert(c,function(I){return void globalThis.sessionStorage.removeItem(I)})?gvT(c,_.mV(X))?"s":"t":"i"};
LmR=function(S,c){var Q=globalThis.sessionStorage.getItem(S);if(!Q)return["m"];try{var f=_.Od(Q);vvZ(f,c)}catch(U){return globalThis.sessionStorage.removeItem(S),["c"]}for(c=4;c<7&&f[c]===0;)c++;for(Q=0;Q<jt.length;Q++)if(f[c++]!==jt[Q])return globalThis.sessionStorage.removeItem(S),["d"];Q=(new DataView(f.buffer)).getUint32(c);return Math.floor(Date.now()/1E3)>=Q?(globalThis.sessionStorage.removeItem(S),["e"]):["a",new Uint8Array(f.buffer,c+4)]};
EvH=function(S){return globalThis.TextEncoder?(new TextEncoder).encode(S):_.lG(S)};
tdY=function(S){var c=S,Q;return function(){if(c){var f=c;c=void 0;Q=f.apply(this,arguments)}return Q}};
Yx=function(S){return dd(function(c){if(c instanceof S)return!0;var Q,f,U=c==null?void 0:(Q=c.ownerDocument)==null?void 0:(f=Q.defaultView)==null?void 0:f[S.name];return Vdz(U)&&c instanceof U})};
_.D3=function(S,c,Q){_.C9.call(this);this.JSC$8037_listener_=S;this.JSC$8037_interval_=c||0;this.handler_=Q;this.callback_=(0,_.H1)(this.JSC$8039_doAction_,this)};
_.p9=function(S){S=RqY(S);return _.XK(S)};
RqY=function(S){return S===null?"null":S===void 0?"undefined":S};
ovz=function(S){if(S&&S.focus)if(S!==document.activeElement)S.focus();else return yto(function(){return _.O(function(c){document.activeElement&&document.activeElement.blur();return c.return(yto(function(){S.focus()}))})})};
_.mjz=function(S){var c=c===void 0?5:c;setTimeout(function(){var Q;return _.O(function(f){f.nextAddress==1&&(Q=document.activeElement);if(f.nextAddress!=5)return(document.activeElement===Q||document.activeElement===document.body)&&c>=0&&S?_.F(f,ovz(S),5):f.jumpTo(0);if(document.activeElement===S)return f.return();S=S.parentElement;--c;return f.jumpTo(2)})},15)};
yto=function(S){return new Promise(function(c){requestAnimationFrame(function(){c(S())})})};
SpY=function(S){if(_.ho)S(_.ho);else{var c;((c=qf)!=null?c:qf=[]).push(S)}};
wF=function(){!_.ho&&_.Tk&&_.cSY(_.Tk());return _.ho};
_.cSY=function(S){_.ho=S;var c;(c=qf)==null||c.forEach(SpY);qf=void 0};
_.Mf=function(S){_.ho&&_.ho.beforeLoadModuleCode(S)};
_.iG=function(){_.ho&&_.ho.JSC$8994_setLoaded()};
Z3=function(S){return ZB(S)?Number(S):String(S)};
Qkz=function(S){this.action=S;this.wfv=!1};
fJx=function(S,c){Qkz.call(this,"set-drive-options");this.appId=S;this.appOrigin=c};
URc=function(S){Qkz.call(this,"visibility");this.visible=S};
JSp=function(S,c,Q){Gk.call(this,S,c,Q)};
aJT=function(S){et.call(this,S)};
ASM=function(S){S=S&&S.getWindow()||window;return S.gadgets&&S.gadgets.rpc};
ObZ=function(S,c){var Q=c&&c.getWindow()||window;if(ASM(c))S();else if(XYo)XYo.push(S);else var f=XYo=[S],U=Q.setInterval(function(){if(ASM(c)){Q.clearInterval(U);for(var a=0;a<f.length;a++)f[a]();XYo=null}},100)};
xRp=function(S,c){var Q=new kx(S);_.F5(c,Q);var f={passive:!1};c.listen(Q,"mousewheel",function(U){return void zjZ(S,U)},f).listen(S,"scroll",function(U){return void zjZ(S,U)},f)};
zjZ=function(S,c){var Q;a:{for(Q=c.target;Q;){if(Q.nodeType==1){var f=_.rF(Q,"overflowY");if(f=="auto"||f=="scroll")break a}Q=Q.parentNode}Q=null}if(!Q||!_.dF(S,Q)||Q.scrollHeight==Q.clientHeight||c.deltaY>0&&Math.abs(Q.scrollTop-(Q.scrollHeight-Q.clientHeight))<=1||c.deltaY<0&&Q.scrollTop==0)c.preventDefault(),c.stopPropagation()};
Rj=function(S,c,Q,f,U,a,X,z,x){z=z===void 0?!1:z;x=x===void 0?!1:x;Gk.call(this,void 0,void 0,void 0);Gk.call(this,a?a+" picker modal-dialog":"picker modal-dialog",!0,Q);_.v1(S,"protocol");this.iframeManager_=new FAT;this.targetId_=P1();this.rpcToken_=P1();S=_.L9(S);_.Eh(S,"hostId");Q=_.Eh(S,"parent");this.useGapi_=!x&&!0||(Q==null?void 0:Q.includes("onepick.corp.google.com"));z&&_.to(S,"fv2","true");this.setUrl(S.toString());this.preferredDialogWidth_=f;this.preferredDialogHeight_=U;f!==void 0||
U!==void 0?f=!0:(f=_.Eh(_.L9(S.toString()),"hostId"),BCZ||(BCZ=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),f=!BCZ.has(f));this.autoSizeDialog_=f;this.JSC$8227_gadgetsDomHelper_=X||this.JSC$8178_dom_;c&&(X=this.JSC$8227_gadgetsDomHelper_,c=_.Eh(_.L9(this.JSC$8229_url_),"grugl")=="true"?IJx:nCT,ASM(X)||(X=X||nn(document),f=X.createElement("SCRIPT"),_.eS(f,c),f.type="text/javascript",X.JSC$7363_document_.body.appendChild(f)));
S=S.toString();c=null;X=S.indexOf("/picker?");X>-1?c=S.substring(0,X+8-1):aH(S,"/picker")&&(c=S);c&&this.setRelayUrl(c+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(S=this.buttons_,S.JSC$8212_element_=this.buttonEl_,S.render()):_.kD(this.buttonEl_,bbc),_.Va(this.buttonEl_,!!this.buttons_))};
_.upY=function(S){var c=c===void 0?NCz:c;var Q=_.Qd(S),f=function(a){a=_.A(a);a.next();a=ya(a);return c(Q,a)},U=function(a){var X=_.A(a);
a=X.next().value;X=ya(X);return S.apply(a,X)};
return function(){var a=_.YD.apply(0,arguments),X=this||_.QY,z=KAr.get(X);z||(z={},KAr.set(X,z));return $RZ(z,[this].concat(_.Hs(a)),U,f)}};
oj=function(S){var c={};S=S.replace(/\r/g,"").split("\n");for(var Q=0;Q<S.length;Q++){var f=S[Q],U=f.indexOf(":");U<0||(c[f.substring(0,U)]=f.substring(U+2,f.length))}return c};
m2=function(S,c,Q){Q=Q===void 0?function(){}:Q;
return S?c():Q()};
_.lJY=function(S){var c;return((c=jko.documentOverride)!=null?c:S).__wizdispatcher};
_.cr=function(S){var c=Sd;Sd=S;return c};
CWZ=function(S){return S===YpT||(S==null?void 0:S.name)==="\u0275NotFound"};
Hbp=function(S,c){var Q;if((Q=S)==null?0:Q.isDisposed)throw Error("ob`"+String(S.debugName));for(;S!==void 0;){Q=S;if(Q.retrieve)return Q.retrieve(c,{optional:!0});S=S.parent}return YpT};
Qi=function(S){return{"\u0275prov":{providedIn:"root",token:Symbol(S),factory:void 0,value:void 0}}};
_.DRc=function(S){var c=Sd;if(!c){switch(S===void 0?3:S){case 0:S=Error("nb");break;case 1:S=Error("pb");break;case 2:S=Error("qb");break;default:S=Error("rb")}throw S;}return c};
pYc=function(S){var c=_.cr(S);S={};return S[Symbol.dispose]=function(){_.cr(c)},S};
hjz=function(S,c){S.disposables||(S.disposables=[]);S.disposables.push(c)};
fy=function(S){var c=Sd;c&&!c.isDisposed&&(hjz(c,S),S.parent=c)};
TCp=function(S){if(S.disposables){for(var c=_.A(S.disposables),Q=c.next();!Q.done;Q=c.next())Q=Q.value,typeof Q==="function"?Q():qpH(Q);S.disposables.length=0}};
qpH=function(S){if(!S.isDisposed){S.isDisposed=!0;var c;(c=S[Symbol.dispose])==null||c.call(S);delete S.parent;TCp(S)}};
ejT=function(S){var c={retrieve:function(Q){switch(Q.\u0275prov.token){case wYc.\u0275prov.token:var f=S.asyncDeps;break;case skT.\u0275prov.token:f=S.rootElement;break;case MGp.\u0275prov.token:f=S.modelRootElement;break;case ibx.\u0275prov.token:f=S.appContext;break;case Zbo.\u0275prov.token:f=S.rendererData;break;case G_p.\u0275prov.token:f=S.injectingConstructor;break;case WAz.\u0275prov.token:f=S.dispatcher}if(f)Q=f;else a:{for(f=c.parent;f;){var U=f;if(U.retrieve){Q=U.retrieve(Q);break a}f=
f.parent}f=Q.\u0275prov.token;U=gCZ[f];U!==void 0?Q=U:(U=Q.\u0275prov.providedIn,Q.\u0275prov.factory?(Q=Q.\u0275prov.factory(),f&&U==="root"&&(gCZ[f]=Q)):Q=YpT)}return Q}};
fy(c);return c};
k_Z=function(){var S=_.DRc(1),c=Hbp(S,ibx);CWZ(c)&&(S=Hbp(S,WAz),CWZ(S)||S.getOptionalAppContext())};
rSo=function(S){if(typeof document!=="undefined"&&document&&document.getElementById&&(S=document.getElementById(S))){var c=S.tagName.toUpperCase();if(c=="SCRIPT"||c=="LINK")return S}return null};
vCp=function(S,c){if((S=S===void 0?"":S)&&c)throw Error("xb");var Q="";var f=_.QY._F_jsUrl;(S=c||rSo(S))&&(Q=S.src?S.src:S.getAttribute("href"));if(f&&Q){if(f!=Q)throw Error("yb`"+f+"`"+Q);Q=f}else Q=f||Q;if(!dRY(Q))throw Error("zb");return Q};
tGz=function(){if(!PWZ){PWZ=!0;try{var S=vCp(_.QY._F_jsUrl?"":"base-js")}catch(f){return}var c=LAc(ECM(S)),Q=Object.keys(c);Q.length!==0&&SpY(function(f){for(var U=_.A(Q),a=U.next();!a.done;a=U.next()){a=a.value;for(var X=_.A(Object.keys(c[a])),z=X.next();!z.done;z=X.next())f.addExtraEdge(a,z.value)}})}};
Rjx=function(){var S=Object.assign({},VGo);Object.getOwnPropertyNames(VGo).forEach(function(c){_.Uj[c]!==void 0&&(S[c]=_.Uj[c])});
return S};
ySo=function(S,c){if(_.Uj.enablePerformanceTiming){var Q,f;(f=(Q=performance).mark)==null||f.call(Q,S+"Start__"+c)}};
oCY=function(S,c){if(_.Uj.enablePerformanceTiming){var Q,f;(f=(Q=performance).measure)==null||f.call(Q,S+"__"+c,S+"Start__"+c)}};
mRp=function(S,c,Q){var f;return S&&c?S+"__"+c:(f=S!=null?S:c)!=null?f:Q};
clY=function(S,c){var Q=Object.create(S8r);Q.debugName=c;!Sd||fy(Q);c=_.cr(Q);try{S(Q)}finally{_.cr(c)}return function(){return void qpH(Q)}};
fhc=function(S){return Jt(S)&&Q6p in S};
UxY=function(S,c){return Object.is(S,c)};
Xr=function(S){var c=ax;ax=S;return c};
XiZ=function(S){if(Oj)throw Error("da");if(ax!==null){var c=ax.nextProducerIndex++;JlH(ax);c<ax.producerNode.length&&ax.producerNode[c]!==S&&zo(ax)&&ahY(ax.producerNode[c],ax.producerIndexOfThis[c]);ax.producerNode[c]!==S&&(ax.producerNode[c]=S,ax.producerIndexOfThis[c]=zo(ax)?Alc(S,ax,c):0);ax.producerLastReadVersion[c]=S.version}};
xxY=function(S){if(!zo(S)||S.dirty)if(S.dirty||S.lastCleanEpoch!==OlR)(S.producerMustRecompute(S)||zIr(S))&&S.producerRecomputeValue(S),S.dirty=!1,S.lastCleanEpoch=OlR};
F5Z=function(S){if(S.liveConsumerNode!==void 0){var c=Oj;Oj=!0;try{for(var Q=_.A(S.liveConsumerNode),f=Q.next();!f.done;f=Q.next()){var U=f.value;U.dirty||(S=void 0,U.dirty=!0,F5Z(U),(S=U.consumerMarkedDirty)==null||S.call(U,U))}}finally{Oj=c}}};
B5p=function(){var S;return((S=ax)==null?void 0:S.consumerAllowSignalWrites)!==!1};
Ihp=function(S){S&&(S.nextProducerIndex=0);return Xr(S)};
nrH=function(S,c){Xr(c);if(S&&S.producerNode!==void 0&&S.producerIndexOfThis!==void 0&&S.producerLastReadVersion!==void 0){if(zo(S))for(c=S.nextProducerIndex;c<S.producerNode.length;c++)ahY(S.producerNode[c],S.producerIndexOfThis[c]);for(;S.producerNode.length>S.nextProducerIndex;)S.producerNode.pop(),S.producerLastReadVersion.pop(),S.producerIndexOfThis.pop()}};
zIr=function(S){JlH(S);for(var c=0;c<S.producerNode.length;c++){var Q=S.producerNode[c],f=S.producerLastReadVersion[c];if(f!==Q.version)return!0;xxY(Q);if(f!==Q.version)return!0}return!1};
Alc=function(S,c,Q){blc(S);if(S.liveConsumerNode.length===0&&S.producerNode!==void 0)for(var f=0;f<S.producerNode.length;f++)S.producerIndexOfThis[f]=Alc(S.producerNode[f],S,f);S.liveConsumerIndexOfThis.push(Q);return S.liveConsumerNode.push(c)-1};
ahY=function(S,c){blc(S);if(S.liveConsumerNode.length===1&&S.producerNode!==void 0)for(var Q=0;Q<S.producerNode.length;Q++)ahY(S.producerNode[Q],S.producerIndexOfThis[Q]);Q=S.liveConsumerNode.length-1;S.liveConsumerNode[c]=S.liveConsumerNode[Q];S.liveConsumerIndexOfThis[c]=S.liveConsumerIndexOfThis[Q];S.liveConsumerNode.length--;S.liveConsumerIndexOfThis.length--;c<S.liveConsumerNode.length&&(Q=S.liveConsumerIndexOfThis[c],S=S.liveConsumerNode[c],JlH(S),S.producerIndexOfThis[Q]=c)};
zo=function(S){var c,Q;return S.consumerIsAlwaysLive||((Q=S==null?void 0:(c=S.liveConsumerNode)==null?void 0:c.length)!=null?Q:0)>0};
JlH=function(S){S.producerNode!=null||(S.producerNode=[]);S.producerIndexOfThis!=null||(S.producerIndexOfThis=[]);S.producerLastReadVersion!=null||(S.producerLastReadVersion=[])};
blc=function(S){S.liveConsumerNode!=null||(S.liveConsumerNode=[]);S.liveConsumerIndexOfThis!=null||(S.liveConsumerIndexOfThis=[])};
K5x=function(S){var c=Object.create(N5H);c.computation=S;S=function(){xxY(c);XiZ(c);if(c.value===xv)throw c.error;return c.value};
S[Br]=c;return S};
lhp=function(S,c){var Q=Object.create($xo);Q.value=S;c!==void 0&&(Q.equal=c);S=function(){XiZ(Q);return Q.value};
S[Br]=Q;return[S,function(f){return uJp(Q,f)},
function(f){B5p()||j6M(Q);uJp(Q,f(Q.value))}]};
uJp=function(S,c){B5p()||j6M(S);if(!S.equal(S.value,c)){S.value=c;S.version++;OlR++;F5Z(S);var Q;(Q=Y8Y)==null||Q(S)}};
Ix=function(S){var c=Xr(null);try{return S()}finally{Xr(c)}};
_.ny=function(S,c,Q){Q=Q===void 0?"":Q;S=lhp(S,c==null?void 0:c.equals);var f=S[0],U=f[Br];U.debugName=mRp(c==null?void 0:c.debugName,Q,"[signal]");if(!_.Uj.enablePerformanceTiming)return S;var a=S[1],X=S[2];return[f,function(z){CBp(function(){return void a(z)},U)},
function(z){CBp(function(){return void X(z)},U)}]};
CBp=function(S,c){ySo("signalSet",c.debugName);try{S()}finally{oCY("signalSet",c.debugName)}};
Dxp=function(S,c){var Q=_.A(_.ny(S,void 0,"cPpJzc"));S=Q.next().value;Q=Q.next().value;S[HlH]=Q;S[bQ]=c;return S};
pic=function(S){return!!S&&typeof S==="object"&&Object.getPrototypeOf(S)===Object.prototype};
hIM=function(S){return typeof S==="function"&&HlH in S&&typeof S[HlH]==="function"};
q8H=function(S,c){Object.defineProperty(S,bQ,{get:function(){return c}})};
Ky=function(S,c){if(Nj(S)){var Q=S.map(function(a){return Ky(a,c)});
q8H(Q,c);return Q}if(pic(S)){Q={};S=_.A(Object.entries(S));for(var f=S.next();!f.done;f=S.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;Q[f]=Ky(U,c)}q8H(Q,c);return Q}return Dxp(S,c)};
T5Y=function(S){if(Nj(S))return S.map(function(U){return T5Y(U)});
if(pic(S)){var c={};S=_.A(Object.entries(S));for(var Q=S.next();!Q.done;Q=S.next()){var f=_.A(Q.value);Q=f.next().value;f=f.next().value;c[Q]=T5Y(f)}return c}return hIM(S)?S():S};
s6Y=function(){var S={height:0,width:0};if(!pic(S))throw Error("Lb");var c=Symbol("Mb");return[Ky(S,c),function(Q,f){if(Q[bQ]===c)if(typeof f==="function"){var U=[].concat(_.Hs(T5Y(Q)));f=f(U)||U;wiY(Q,[].concat(_.Hs(f)))}else wiY(Q,f);else throw Error("Nb");}]};
wiY=function(S,c){if(hIM(S))S[HlH](c);else if(Nj(S)&&Nj(c))c=Ky(c,S[bQ]),S.length=0,S.push.apply(S,_.Hs(c));else if((pic(S)||Nj(S))&&(Nj(c)||typeof c==="object"&&c!==null)){c=_.A(Object.entries(c));for(var Q=c.next();!Q.done;Q=c.next()){var f=_.A(Q.value);Q=f.next().value;f=f.next().value;var U=S,a=U[Q];Object.hasOwn(S,Q)?wiY(a,f):U[Q]=Ky(f,S[bQ])}}else throw Error("Ob");};
MJr=function(S){return Object.create(Object.assign({},$v,S))};
ZlZ=function(){var S;return(S=ilZ)!=null?S:ilZ=MJr({consumerAllowSignalWrites:!0})};
_.uQ=function(S,c,Q){Q=Q===void 0?"":Q;S=K5x(S);var f=S[Br];f.debugName=mRp(c==null?void 0:c.debugName,Q,"[computed]");(c==null?void 0:c.equals)!=null&&(f.equal=c.equals);return S};
jd=function(S){var c=Xr(GDz);try{S()}finally{Xr(c)}};
vrp=function(S){if(!S.isDisposed)switch(S.effectType){case W5Z:grH.schedule(S);break;case eIz:kDr.schedule(S);break;case rlY:dxr.schedule(S);break;default:_.OZ(S.effectType)}};
L5p=function(S){PBp.push(S);return function(){var c=PBp.indexOf(S);c!==-1&&PBp.splice(c,1)}};
tJp=function(){if(lQ>0)_.Uj.flushRenderEffectsDuringRender&&grH.flush();else for(var S=_.A(ErZ),c=S.next();!c.done;c=S.next())c.value.flush()};
RIR=function(S){Yv=!0;try{for(var c=_.A(S),Q=c.next();!Q.done;Q=c.next()){for(var f=Q.value,U=[f],a=f;a.parent!==void 0;)a=a.parent,VJr(a)&&S.has(a)&&U.push(a);for(;U.length>0;){var X=U.pop();S.delete(X);X.run()}}}finally{Yv=!1}};
Cy=function(S){lQ--;if(S){S=_.A(ErZ);for(var c=S.next();!c.done;c=S.next())c.value.clear()}else lQ>0||Yv&&!_.Uj.flushRenderEffectsDuringRender||tJp()};
orp=function(S,c,Q){var f=ylZ(S);Hr={name:Q?f+" ("+Q+")":f,isReactive:S.componentType!==Df,parent:Hr};S=c();Hr=Hr.parent;return S};
py=function(){var S=Hr;return S?S.isReactive:!1};
qj=function(S,c){var Q=Hr;c&&(Hr=c);try{return S()}catch(a){S=a;ht(S,Hr);if(S!==mxY){SJc=Hr;c=[];for(var f=Sd;f;){var U=void 0;c.push((U=f.debugName)!=null?U:"[context]");U=void 0;f=(U=f.parent)!=null?U:null}cBr=c.reverse()}mxY=S;throw S;}finally{Hr=Q}};
ht=function(S,c){try{var Q=QRR(c);if(Q&&!S.componentStack&&(S.componentStack=Q,_.Uj.enableComponentStacksInErrorMessages)){var f=S.message+"\n\nComponent stack: "+Q;S.stack&&(S.stack=S.stack.replace(S.message,f));S.message=f}}catch(U){}};
QRR=function(S){if(Jt(S)&&S.name!==void 0&&S.isReactive!==void 0&&S.parent!==void 0||S===null){for(var c=0,Q="";c<20&&S;)Q+=S.name+" > ",S=S.parent,c++;S=Q.slice(0,-3)}else if(_.Uj.enableContextBasedComponentStacks){a:{for(S=S===void 0?Sd:S;S;){if(fhc(S))break a;c=void 0;S=(c=S.parent)!=null?c:null}S=null}S=S.getComponentStack().slice(0,20).join(" > ")}else S="";return S};
ylZ=function(S){return S.debugName||S.name||"[component]"};
fzH=function(S,c,Q){c=Object.create(c);c.effectFn=S;Q&&(c.debugName=Q);fy(c);c.componentStack=Hr;return c};
_.To=function(S,c){S=fzH(S,UqZ,c);vrp(S)};
_.wX=function(S){var c=Sd;if(c){var Q=Hr;hjz(c,function(){var f=Xr(ZlZ());try{qj(function(){return void S()},Q)}catch(U){throw _.Uj.enableContextBasedComponentStacks&&ht(U),U;
}finally{Xr(f)}})}};
sj=function(S,c){var Q={};(c===void 0||c)&&fy(Q);c=_.cr(Q);try{S(Q)}finally{_.cr(c)}return function(){return void qpH(Q)}};
_.Zf=function(S){return typeof S==="function"?S():(S==null?0:S[JBz])?S.get():S};
_.Go=function(S,c){S=fzH(S,azH,c);vrp(S)};
ABz=function(S){if(Sd)throw Error("sb");sj(S,!1)};
Wr=function(S,c){S=_.cr(S);try{return Ix(c)}finally{_.cr(S)}};
_.gX=function(S,c){var Q=QRR(SJc),f,U;var a=(U=(f=cBr)==null?void 0:f.slice())!=null?U:[];c={componentStack:Q,contextTrace:a,errorSeverity:3,featureFlags:Rjx(),tagName:c};return[S,c]};
zJz=function(S,c,Q){if(Object.hasOwnProperty.call(Xtx,S)&&(S=Xtx[S],Object.hasOwnProperty.call(S,c)&&(S=S[c],S instanceof Array))){for(var f=null,U=!1,a=0,X=S.length;a<X;++a){var z=S[a],x=z.contingentAttribute;if(!x)return z.contract;f===null&&(f={});x=Object.hasOwnProperty.call(f,x)?f[x]:f[x]=Q(x);if(x===z.requiredValue)return z.contract;x==null&&(U=!0)}if(U)return null}c=O6M[c];return typeof c==="number"?c:null};
Bep=function(S,c,Q){var f=null;(S=xqZ[S])&&(f=S[c]);return typeof f!=="number"&&((S=xqZ["*"])&&(f=S[c]),typeof f!=="number")?!1:!0===FOz[f][String(Q).toLowerCase()]};
nMT=function(S,c){c=zJz(S.toLowerCase(),c,function(){var f;(f=_.Uj.handleError)==null||f.call.apply(f,[_.Uj].concat(_.Hs(_.gX(Error("Sb"),S.toLowerCase()))))});
if(c===null)return null;var Q;return(Q=Izz[c])!=null?Q:null};
b6c=function(S,c,Q){if(Q===null||Q===void 0)return Q;S=nMT(S,c);return S===null?Q:S(c,Q)};
NeY=function(){};
ed=function(S,c){for(;S.length>c;)S.pop()};
KOc=function(S){S=Array(S);ed(S,0);return S};
$qx=function(S,c,Q){if(Q==null)S.removeAttribute(c);else{var f;(f=c.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":c.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?S.setAttributeNS(f,c,Q):S.setAttribute(c,Q)}};
uLY=function(S,c,Q){S[c]=Q};
lzz=function(S,c,Q){S=S.style;if(typeof Q==="string")S.cssText=Q;else{S.cssText="";for(var f in Q)if(jRc.call(Q,f)){c=S;var U=f,a=Q[f];U.indexOf("-")>=0?c.setProperty(U,a):c[U]=a}}};
YJz=function(S,c,Q){var f=typeof Q;f==="object"||f==="function"?S[c]=Q:$qx(S,c,Q)};
CHo=function(){var S=new NeY;S[kv.default]=YJz;S.style=lzz;return S};
H6z=function(S,c,Q,f){(f[c]||f[kv.default])(S,c,Q)};
ptY=function(S,c,Q){c=new DqH(c,Q);return S.__incrementalDOMData=c};
rX=function(S,c){if(S.__incrementalDOMData)return S.__incrementalDOMData;var Q=S.nodeType===1?S.localName:S.nodeName,f=S.nodeType===1?S.getAttribute("key"):null;c=ptY(S,Q,S.nodeType===1?f||c:null);if(S.nodeType===1&&(S=S.attributes,Q=S.length)){f=c._attrsArr||(c._attrsArr=KOc(Q*2));for(var U=0,a=0;U<Q;U+=1,a+=2){var X=S[U],z=X.value;f[a]=X.name;f[a+1]=z}}return c};
hJz=function(S,c,Q,f,U){return c==Q&&f==U};
qJY=function(S){for(var c=dX,Q=vr();Q!==S;){var f=Q.nextSibling;c.removeChild(Q);Pr.deleted.push(Q);Q=f}};
vr=function(){return Ly?Ly.nextSibling:dX.firstChild};
Ej=function(){Ly=vr()};
sRx=function(S,c,Q){Ej();var f;a:{if(f=Ly){do{var U=f,a=S,X=c,z=rX(U,X);if(Tez(U,a,z.nameOrCtor,X,z.key))break a}while(c&&(f=f.nextSibling))}f=null}f||(S==="#text"?(Q=tt.createTextNode(""),ptY(Q,"#text",null),S=Q):(f=tt,U=dX,typeof S==="function"?f=new S:f=(U=S==="svg"?"http://www.w3.org/2000/svg":S==="math"?"http://www.w3.org/1998/Math/MathML":U==null||rX(U).nameOrCtor==="foreignObject"?null:U.namespaceURI)?f.createElementNS(U,S):f.createElement(S),ptY(f,S,c),S=f,Q&&S.setAttribute("nonce",Q)),Pr.created.push(S),
f=S);Q=f;if(Q!==Ly){if(wtz.indexOf(Q)>=0)for(S=dX,c=Q.nextSibling,f=Ly;f!==null&&f!==Q;)U=f.nextSibling,S.insertBefore(f,c),f=U;else dX.insertBefore(Q,Ly);Ly=Q}};
M8T=function(S,c,Q){sRx(S,c,Q);dX=Ly;Ly=null;return dX};
i6o=function(){qJY(null);Ly=dX;dX=dX.parentNode};
Vi=function(){Ly=dX.lastChild};
WOR=function(S,c){c=c===void 0?{}:c;var Q=c.matches===void 0?hJz:c.matches;return function(f,U,a){var X=Pr,z=tt,x=wtz,I=Rx,n=yi,b=Ly,N=dX,l=Tez;tt=f.ownerDocument;Pr=new Z6Y(f);Tez=Q;Rx=[];yi=[];Ly=null;var H=dX=f.parentNode,q,w=Gfx.call(f);if((q=w.nodeType===11||w.nodeType===9?w.activeElement:null)&&f.contains(q)){for(w=[];q!==H;)w.push(q),q=q.parentNode||(H?q.host:null);H=w}else H=[];wtz=H;try{return S(f,U,a)}finally{f=Pr,ox&&f.deleted.length>0&&ox(f.deleted),tt=z,Pr=X,Tez=l,Rx=I,yi=n,Ly=b,dX=N,
wtz=x}}};
gMM=function(S,c,Q,f){SG.push(H6z);SG.push(S);SG.push(c);SG.push(Q);SG.push(f)};
kfT=function(S,c,Q){var f=yi;c=c._attrsArr||(c._attrsArr=KOc(f.length));for(var U=!c.length||!1,a=0;a<f.length;a+=2){var X=f[a];if(U)c[a]=X;else if(c[a]!==X)break;var z=f[a+1];if(U||c[a+1]!==z)c[a+1]=z,gMM(S,X,z,Q)}if(a<f.length||a<c.length){for(a=U=a;a<c.length;a+=2)cY[c[a]]=c[a+1];for(a=U;a<f.length;a+=2)U=f[a],X=f[a+1],cY[U]!==X&&gMM(S,U,X,Q),c[a]=U,c[a+1]=X,delete cY[U];ed(c,f.length);for(var x in cY)gMM(S,x,void 0,Q),delete cY[x]}S=eJo;eJo=Q=SG.length;for(x=S;x<Q;x+=5)(0,SG[x])(SG[x+1],SG[x+
2],SG[x+3],SG[x+4]);eJo=S;ed(SG,S);ed(f,0)};
Q0=function(S){sRx("#text",null);var c=Ly;var Q=rX(c);if(Q.text!==S){Q=Q.text=S;for(var f=1;f<arguments.length;f+=1)Q=(0,arguments[f])(Q);c.data!==Q&&(c.data=Q)}};
EMR=function(S,c,Q){if(Q===!1&&rBp.has(c))$qx(S,c,null);else if(c!=="idomKey"&&c!=="skip"&&c!=="skipchildren"&&c!=="children"&&c!=="el")if(c.startsWith("on"))if(c[2]===":")if(Q===void 0||Q===null){var f;(f=_.Uj.handleError)==null||f.call.apply(f,[_.Uj].concat(_.Hs(_.gX(Error("Wb`"+c),S.tagName))));S[c]=void 0}else{var U=c.slice(3);f=py();if(U==="jsaction"){Q=_.A(Array.isArray(Q)?Q:[Q]);for(var a=Q.next();!a.done;a=Q.next()){a=a.value;if(typeof a!=="object"||a===null||typeof a.selfReg!=="function")throw Error("Zb`"+
c);a.selfReg(0,S,f?_.wX:function(){})}}else{if(typeof Q!=="object"||Q===null)throw Error("Xb`"+c+"`"+typeof Q);
if(typeof Q.getFn!=="function")throw Error("Yb`"+c+"`"+Object.keys(Q));if(Q.selfReg)Q.selfReg(0,S,U,f?_.wX:function(){});
else if(f&&S["on"+U]===void 0){var X=Q.getFn(0);S.addEventListener(U,X);_.wX(function(){return void S.removeEventListener(U,X)})}else if(f||!dqz.includes(U))S["on"+U]=Q.getFn(0)}}else vMp(S,c,Q);
else{if(c.startsWith("data-")&&typeof Q==="string")try{Q=PHY(Q)}catch(z){Q="zSoyz"}typeof Q!=="function"||S._disposeEffects!=null?(_.Uj.enableAttributeSanitization&&(Q=b6c(S.tagName,c,Q)),c==="style"?("function"==typeof _.fb&&Q instanceof _.fb&&(Q=Q.toString()),LOx(S,c,Q)):c.startsWith("prop:")?(c=c.slice(5),S[c]=Q):vMp(S,c,Q)):(S._signalProps||(S._signalProps=[]),S._signalValues||(S._signalValues=[]),S._signalProps.push(c))}};
t8o=function(S,c,Q){Q=(Q===void 0?{}:Q).isReactive;if(c==null?0:c.el){var f=c.el;if(typeof f==="function")f(S);else{var U;(U=f.onRender)==null||U.call(f,S);S._disposeRef||(S._disposeRef=function(){var a;(a=f.onUnmount)==null||a.call(f);delete S._disposeRef},Q&&_.wX(function(){var a;
return void((a=S._disposeRef)==null?void 0:a.call(S))}))}}};
V8p=function(S){return Jt(S)&&Up in S};
RJH=function(S){return V8p(S)?S[Up].flattened:S};
yBY=function(S,c){var Q=_.YD.apply(2,arguments),f;c=(f=c)!=null?f:{};f={};return f.type=S,f.props=c,f.children=Q,f[JS]=!0,f};
_.ak=function(S){return S.children};
AS=function(S){var c=oMo!==yBY;oMo=S?mqY:yBY;return c};
_.Xp=function(S){return _.c_(S)?"nodeType"in S:!1};
Op=function(){return document.createTextNode("")};
z_=function(S){S=document.createTextNode(String(S));S._isSignalTextNode=!0;return S};
fEp=function(S){var c=document.createElement("div");if(SHr(S)&&MdY(S))_.kD(c,MdY(S));else if(S instanceof pc)_.kD(c,S);else if(ccc(S)){if(S.contentKind!==QTo)throw Error("Vb");S=h5(S.toString());_.kD(c,S)}S=_.A(c.childNodes);for(var Q=S.next();!Q.done;Q=S.next())Q.value._isSafeOrSanitizedHtmlNode=!0;return c};
xC=function(S){S=typeof S;return S==="string"||S==="number"||S==="boolean"};
UPc=function(S){return S instanceof A5||In(S)||"function"==typeof _.v7&&S instanceof _.v7||"function"==typeof _.fb&&S instanceof _.fb};
Jcz=function(S,c){var Q=S.parentElement;if(!Q)return c;Q.replaceChild(c,S);return c};
aET=function(S,c){var Q=S[0].parentElement;if(Q)if(S[0].previousSibling||S[S.length-1].nextSibling){Q.insertBefore(c,S[0]);for(var f=S.length-1;f>=0;f--)Q.removeChild(S[f])}else Q.textContent="",Q.appendChild(c);return c};
Acc=function(S,c){if(S[0].parentElement)for(var Q=S[0].parentElement,f=c.length,U=S.length,a=f,X=0,z=0,x=S[U-1].nextSibling,I=null;X<U||z<a;)if(S[X]===c[z])X++,z++;else{for(;S[U-1]===c[a-1];)U--,a--;if(U===X)for(var n=a<f?z?c[z-1].nextSibling:c[a-z]:x;z<a;){var b=c[z++];Q.insertBefore(b,n)}else if(a===z)for(;X<U;)n=S[X],I&&I.has(n)||Q.removeChild(n),X++;else if(S[X]===c[a-1]&&c[z]===S[U-1])n=S[--U].nextSibling,Q.insertBefore(c[z++],S[X++].nextSibling),Q.insertBefore(c[--a],n),S[U]=c[a];else{if(!I)for(I=
new Map,n=z;n<a;)I.set(c[n],n++);n=I.get(S[X]);if(n==null)Q.removeChild(S[X]),X++;else if(z<n&&n<a){b=X;for(var N=1,l=void 0;++b<U&&b<a&&(l=I.get(S[b]))!=null&&l===n+N;)N++;if(N>n-z)for(b=S[X];z<n;)Q.insertBefore(c[z++],b);else Q.replaceChild(c[z++],S[X++])}else X++}}return c};
xPY=function(S,c){var Q;c!=null?Q=c:Q=_.lJY(document).getAppContext();Q.get(XGx).JSC$25553_getEventTarget().dispatchEvent(new O1Z(z0r,S,QTo))};
BQT=function(S){if(Array.isArray(S)){if(S.length>1)throw Error("hc`"+S.length+"`"+S.map(FYH).join(", "));S=S[0]}if(S==null)return null;if(!(S instanceof _.ZQ)){var c,Q;if((c=window)==null?0:(Q=c.trustedTypes)==null?0:Q.isScript(S))throw Error("gc");if(String(S).trim().length===0)return null;throw Error("ic`"+FYH(S));}return S};
IER=function(S){if(Array.isArray(S)){if(S.length>1)throw Error("jc`"+S.length+"`"+S.map(FYH).join(", "));S=S[0]}if(S==null)return null;if(!lRH(S)){if(String(S).trim().length===0)return null;throw Error("kc`"+FYH(S));}return S};
FYH=function(S){return"("+typeof S+") "+(S!=null&&typeof S==="object"?S.constructor.name:typeof S)+" "+S};
BY=function(S,c){function Q(){U=!1;c.isControlFlowComponent&&lQ++;var a=f[0],X=f[Up].flattened,z=AS(!0);try{var x=S(),I=nLZ(a,x,f);Array.isArray(I)||(f[Up].flattened=[I]);var n=f[Up].flattened;if(X&&(!Array.isArray(X)||X.length!==0)){var b=Array.isArray(X)?X[0]:X,N=b[Fp],l=b._disposeEffects;b._disposeEffects=void 0;b=Array.isArray(n)?n[0]:n;b[Fp]=N;b[Fp]&&(b[Fp].numNodes=b===n?1:n.length);b._disposeEffects=l}f[0]=I;c.isControlFlowComponent&&Cy(!1)}catch(H){throw c.isControlFlowComponent&&Cy(!0),H;
}finally{AS(z)}}
c=c===void 0?{}:c;var f=b1z(),U=!0;_.Uj.legacyTriggerSoyRendererEvents&&k_Z();_.Go(function(){(NQZ==null?0:NQZ.logger)&&!U?(NQZ.logger.logGraft(f[Up].flattened[0].parentElement,Q),NQZ.logger.resetBuilder()):Q()},c.debugName);
return f};
nLZ=function(S,c,Q){for(;typeof c==="function";)c=c();if(c!=null&&c[JS]){var f,U,a;(a=_.Uj.handleError)==null||a.call.apply(a,[_.Uj].concat(_.Hs(_.gX(Error("lc`"+((f=c.type)==null?void 0:f.TAG_NAME)),(U=c.type)==null?void 0:U.TAG_NAME))))}if(S==null)return c==null?Op():xC(c)?z_(c):UPc(c)?z_(c.toString()):_.Xp(c)?c:c.length===0?Op():KYM(c,Q);if(_.Xp(S)){if(c==null)return Jcz(S,Op());if(xC(c))return $Pp(S,c);if(UPc(c))return $Pp(S,c.toString());if(_.Xp(c))return Jcz(S,c);if(c.length===0)return Jcz(S,
Op());c=KYM(c,Q);Acc([S],Q[Up].flattened);return c}S=Ik(S);if(c==null)return aET(S,Op());if(xC(c))return aET(S,z_(c));if(UPc(c))return aET(S,z_(c.toString()));if(_.Xp(c))return Acc(S,[c])[0];if(c.length===0)return aET(S,Op());c=KYM(c,Q);Acc(S,Q[Up].flattened);return c};
$Pp=function(S,c){S.nodeType===Node.TEXT_NODE?S.textContent!==String(c)&&(S.textContent=String(c)):S=Jcz(S,z_(c));return S};
Ik=function(S,c,Q){return ucH(S,c!=null?c:[],Q===void 0?!1:Q)};
KYM=function(S,c){var Q=Ik(S,void 0,!0);if(Q.length===0)return Op();c[Up].flattened=Q;return S};
ucH=function(S,c,Q,f,U){c=c===void 0?[]:c;Q=Q===void 0?!1:Q;U=U===void 0?-1:U;if(S==null)return c;if(S instanceof nb)return S=S.render(),ucH(S,c,Q,f,U);if(_.Xp(c)&&c.nodeType===Node.ELEMENT_NODE)switch(c.tagName){case "SCRIPT":Q=BQT(S);Q!==null&&_.g_(c,Q);return;case "STYLE":Q=IER(S);Q!==null&&(c.textContent=_.YCT(Q));return}xC(S)&&(S=z_(S),f&&Q&&(f[U]=S));if(ccc(S)||S instanceof pc||SHr(S)){Q=fEp(S);Q=Array.from(Q.childNodes);Q=_.A(Q);for(S=Q.next();!S.done;S=Q.next())jTp(c,S.value);return c}UPc(S)&&
(S=z_(S.toString()),f&&Q&&(f[U]=S));if(_.Xp(S))return jTp(c,S);if(Array.isArray(S)){for(var a=0;a<S.length;a++)ucH(S[a],c,Q,S,a);return c}if(typeof S==="function"){S=BY(S,{debugName:"qmF2ne"})[0];if(Array.isArray(S)){Q=_.A(S);for(S=Q.next();!S.done;S=Q.next())jTp(c,S.value);return c}f&&Q&&(f[U]=S);return jTp(c,S)}if(S!=null&&S[JS]){f=AS(!0);U=oMo;try{a=U.apply(null,[S.type,S.props].concat(_.Hs(S.children)))}finally{AS(f)}return ucH(a,c,Q)}var X;(X=_.Uj.handleError)==null||X.call.apply(X,[_.Uj].concat(_.Hs(_.gX(Error("mc")))));
return c};
b1z=function(S){var c={};c=Object.assign([],(c[Up]={flattened:[]},c));if(!S)return c;c[0]=KYM(S,c);return c};
jTp=function(S,c){Array.isArray(S)?S.push(c):S.appendChild(c);return S};
bW=function(S){if(!_.Uj.enableLazyTsx)return S;if(Array.isArray(S)){for(var c=0;c<S.length;c++)S[c]=bW(S[c]);return S}return S instanceof nb?(S=S.render(),bW(S)):S};
YHr=function(S,c){var Q,f,U=ylZ(S),a=function(l){f=l;l=AS(!0);var H=Xr(NR);ySo("render",U);try{Q=bW(S(c))}finally{oCY("render",U),Xr(H),AS(l)}};
a=_.Uj.enableContextPerComponent?clY(a,U):sj(a,_.Uj.alwaysTrackContexts||!!Sd);fhc(f);if(!c.renderedFromIdom){var X=_.cr(f);try{return lEz(S,c,Q),Q}finally{_.cr(X)}}!V8p(Q)&&Array.isArray(Q)&&(Q=b1z(Q));var z=RJH(Q);X=Array.isArray(z)?z[0]:z;var x=!1;if(X){var I,n=(I=c==null?void 0:c.idomKey)!=null?I:S;I=z!==X;X._disposeEffects=a;var b=X[Fp]||{},N=V8p(Q)?Q:b.sourceDynamicRange;Object.assign(b,{key:n,numNodes:I?z.length:1,context:f,higherOrder:!!X[Fp],sourceDynamicRange:N});X[Fp]=b}else x=!0;(function(){var l=
_.cr(f);try{lEz(S,c,z)}finally{_.cr(l)}})();
x&&a();return Q};
C5p=function(S){var c={},Q;for(Q in S)c={prev$jscomp$23:void 0,next$jscomp$32:void 0},c.prev$jscomp$23=Kb[Q],c.next$jscomp$32=S[Q],Kb[Q]=function(f){return function(){var U=_.YD.apply(0,arguments);f.prev$jscomp$23.apply(null,_.Hs(U));f.next$jscomp$32.apply(null,_.Hs(U))}}(c)};
H1H=function(){if(py())throw Error("nc");return $C};
DPZ=function(S,c){if(!S.__unmounted&&c){S.__unmounted=!0;try{S.didUnmount()}catch(U){var Q,f;(f=_.Uj.handleError)==null||f.call.apply(f,[_.Uj].concat(_.Hs(_.gX(U,(Q=S.JSC$8251___type)==null?void 0:Q.TAG_NAME))))}Kb.didUnmount(S);S.el=null;c.__instance&&delete c.__instance}};
h0c=function(S,c,Q){S._signalProps!=null&&S._disposeEffects==null&&((Q===void 0?0:Q)?S._disposeEffects=sj(function(){return void pGZ(S,c)},_.Uj.alwaysTrackContexts||!!Sd):pGZ(S,c))};
pGZ=function(S,c){_.Go(function(){for(var Q=S._signalProps,f=S._signalValues,U=0;U<Q.length;U++){var a=Q[U],X=c[a]();f[U]!==X&&(f[U]=X,EMR(S,a,X))}},"e3YVbb")};
qHZ=function(S,c,Q){var f,U=[];S._disposeEffects=sj(function(){_.Go(function(){var a=Q();if(a===null||a===void 0)a="";if(xC(a)||a===null)f!=null||(f=document.createTextNode("")),f.parentNode!==S&&(f._isSignalTextNode=!0,S.insertBefore(f,c)),f.textContent=String(a);else if(ccc(a)||a instanceof pc||SHr(a)){for(var X=U.length>0?U[U.length-1].nextSibling:c,z=_.A(U),x=z.next();!x.done;x=z.next())S.removeChild(x.value);a=fEp(a);U=Array.from(a.childNodes);a=_.A(U);for(z=a.next();!z.done;z=a.next())S.insertBefore(z.value,
X)}else throw x=(z=(X=Hr)==null?void 0:X.name)!=null?z:"unknown",Error("cc`"+x+"`"+typeof a);},"VvDgC")},_.Uj.alwaysTrackContexts||!!Sd)};
sTz=function(S,c){var Q=_.YD.apply(2,arguments);c!=null||(c={});return!_.Uj.enableLazyTsx||Hr!=null&&!py()?TQR(S,c,Q):new wGZ(S,c,Q)};
TQR=function(S,c,Q){if(S===_.ak)return Q;if(typeof S==="function")return Hr&&!py()&&(c.renderedFromIdom=!0),orp(S,function(){var a=Mex(S,c,Q);if(a)return a;Q.length>0&&(c.children=Q.length===1?Q[0]:Q);if(S.componentType===Df){var X;clY(function(){var z=c;if(S.componentType!==Df)X=!1;else{z||(z={});var x=new uW(z,S),I=Xr(NR);try{var n=x.render(z)}finally{Xr(I)}n instanceof HTMLElement?(n.__instance=x,x.el=n,x.JSC$8251___type=S,S.TAG_NAME=n.tagName.toLowerCase(),Kb.didPatch(x),X=n):X=n}},S.name);
if(X)return X}return YHr(S,c)},c.debugInstance);
var f=i1Z(S,c),U;for(U in c)EMR(f,U,c[U]);h0c(f,c);Ik(Q,f);t8o(f,c,{isReactive:!0});Z1Y(f,c);return f};
i1Z=function(S,c){S=(GeY.has(S.toLowerCase())?0:WYo.has(S.startsWith("svg:")?S.replace("svg:",""):S))?document.createElementNS("http://www.w3.org/2000/svg",S.startsWith("svg:")?S.replace("svg:",""):S):gLc(S,c)||document.createElement(S);S[e0H]=!0;return S};
keM=function(S){if(S){var c;(c=S._disposeRef)==null||c.call(S);var Q;(Q=S._disposeEffects)==null||Q.call(S);S.__instance&&S.__instance instanceof jG&&(c=S.__instance,DPZ(c,S),c instanceof uW&&c.disposeEffects());for(c=0;c<S.childNodes.length;c++)keM(S.childNodes[c])}};
dPM=function(S){rcY.push(S)===1&&requestAnimationFrame(function(){setTimeout(function(){var c=[].concat(_.Hs(rcY));rcY=[];c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;try{for(var f=0;f<Q.length;f++)keM(Q[f])}catch(U){f=Q=void 0,(f=(Q=_.Uj).handleError)==null||f.call.apply(f,[Q].concat(_.Hs(_.gX(U))))}}})})};
_.B=function(S,c){return oMo.apply(null,[S,c].concat(_.Hs(_.YD.apply(2,arguments))))};
vLp=function(S,c){c=c===void 0?new Map:c;S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,!c.has(Q)){var f=void 0,U=(f=Q.producerNode)!=null?f:[];c.set(Q,U);vLp(U,c)}return c};
_.K=function(S){var c=S.cond;if(c===void 0)return S.else&&S.else();var Q=_.uQ(function(){return!!c()},void 0,"JHVi8"),f=function(){var U=c();
if(!U){var a;(a=_.Uj.handleError)==null||a.call.apply(a,[_.Uj].concat(_.Hs(_.gX(P5M.nonNullableCondIsNull()))))}return U};
return BY(function(){var U=Q(),a;sj(function(){var X=Xr(NR);try{a=bW(U?S.then(f):S.else&&S.else())}finally{Xr(X)}},!0);
return a},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
LYY=function(S){return _.K(S)};
_.lW=function(S){return S.keyBy==="INDEX"?ELo(S):tec(S)};
VeT=function(S){S=_.A(S);for(var c=S.next();!c.done;c=S.next()){var Q=void 0;(Q=c.value)==null||Q()}};
tec=function(S){var c=S.keyBy===void 0||S.keyBy==="REFERENCE",Q=c?function(n){return n}:S.keyBy,f=[],U=[],a=[],X=[],z=[],x=[],I=!0;
_.wX(function(){VeT(X)});
return BY(function(){var n=S.each(),b=n.length;if(b===0){if(f.length===0&&!I)return a;VeT(X);f=n;U=[];for(n=0;n<f.length;n++)U.push(Q(f[n]));a=[];X=[];z=[];x=[];S.fallback&&(X[0]=R0r(function(){a[0]=bW(S.fallback())}));
I=!1;return a}for(var N=new ycY,l=f.length-1;l>=0;l--)N.push(U[l],l);l=Array(b);for(var H=Array(b),q=Array(b),w=Array(b),g=Array(c?0:b),r={i$jscomp$443:0};r.i$jscomp$443<b;r={i$jscomp$443:r.i$jscomp$443,item$jscomp$103:void 0,key$jscomp$524:void 0},r.i$jscomp$443++){r.item$jscomp$103=n[r.i$jscomp$443];r.key$jscomp$524=Q(r.item$jscomp$103);var E=N.pop(r.key$jscomp$524);E!=null?(q[r.i$jscomp$443]=a[E],H[r.i$jscomp$443]=U[E],l[r.i$jscomp$443]=X[E],w[r.i$jscomp$443]=z[E],c||(g[r.i$jscomp$443]=x[E]),jd(function(v){return function(){w[v.i$jscomp$443](v.i$jscomp$443);
if(!c)g[v.i$jscomp$443](v.item$jscomp$103)}}(r)),delete X[E]):l[r.i$jscomp$443]=R0r(function(v){return function(){var t=_.A(_.ny(v.i$jscomp$443,void 0,"Fqk1zd")),V=t.next().value;
t=t.next().value;w[v.i$jscomp$443]=t;H[v.i$jscomp$443]=v.key$jscomp$524;if(c)q[v.i$jscomp$443]=bW(S.children(v.item$jscomp$103,V));else{var AZ=_.A(_.ny(v.item$jscomp$103,void 0,"GBj5de"));t=AZ.next().value;AZ=AZ.next().value;g[v.i$jscomp$443]=AZ;q[v.i$jscomp$443]=bW(S.children(t,V))}}}(r))}VeT(X);
f=n;U=H;a=q;X=l;z=w;x=g;I=!1;return q},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
ELo=function(S){var c=[],Q=[],f=[],U=[],a=!1;_.wX(function(){for(var X=_.A(U),z=X.next();!z.done;z=X.next())z=z.value,z()});
return BY(function(){var X=S.each();a&&X.length>0&&(U.pop()(),c.pop(),a=!1);for(var z=Array(X.length),x={i$jscomp$444:0};x.i$jscomp$444<X.length;x={i$jscomp$444:x.i$jscomp$444},x.i$jscomp$444++)if(x.i$jscomp$444<c.length)c[x.i$jscomp$444]!==X[x.i$jscomp$444]&&(jd(function(n){return function(){return void Q[n.i$jscomp$444](X[n.i$jscomp$444])}}(x)),c[x.i$jscomp$444]=X[x.i$jscomp$444]),z[x.i$jscomp$444]=f[x.i$jscomp$444];
else{var I=R0r(function(n){return function(){c[n.i$jscomp$444]=X[n.i$jscomp$444];var b=_.A(_.ny(X[n.i$jscomp$444],void 0,"kGMqJe")),N=b.next().value;b=b.next().value;Q[n.i$jscomp$444]=b;z[n.i$jscomp$444]=bW(S.children(N,n.i$jscomp$444))}}(x));
U[x.i$jscomp$444]=I}for(;c.length>X.length;)c.pop(),U.pop()(),Q.pop();X.length===0&&!a&&S.fallback&&(x=R0r(function(){z[0]=bW(S.fallback())}),U[0]=x,a=!0);
return f=z},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
R0r=function(S){var c=Sd;return sj(function(Q){var f=Xr(NR);try{Q.parent=c,S(Q)}finally{Xr(f)}},!1)};
_.YC=function(S){return S};
_.HY=function(S){return{isDefault:!0,children:S.children}};
_.DJ=function(S){var c=oLH(S),Q=_.uQ(function(){return mPY(c)},void 0,"F1PF4");
return BY(function(){var f=Q(),U;sj(function(){var a=Xr(NR);try{U=bW(f())}finally{Xr(a)}});
return U},{debugName:S.debugInstance,
isControlFlowComponent:!0})};
oLH=function(S){S=S.children;return Array.isArray(S)?S:[S]};
SPR=function(S){var c=S.props;S=S.getChildren()[0];return c.when?{when:c.when,children:S}:{isDefault:!0,children:S}};
mPY=function(S){var c=function(){return null};
S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,Q!=null&&Q[JS]&&(Q=Q.type===_.HY?{isDefault:!0,children:Q.children[0]}:{when:Q.props.when,children:Q.children[0]}),Q instanceof nb&&(Q=SPR(Q)),Q.isDefault)c=Q.children;else if(Q.when())return Q.children;return c};
QhT=function(S){var c=null,Q,f={get value(){var a,X;(X=(a=U).validateGetValue)==null||X.call(a);return U.__value},set value(a){U.__hasBeenSet=!0;U.__value=a}},U=(f.__value=null,f.__hasBeenSet=!1,f.__hasErrored=!1,f.onRender=function(a){if(Q&&a!==Q){Q._disposeRef=void 0;var X;(X=c)==null||X()}Q=a;c=S(a)||null},f.onUnmount=function(){var a;
(a=c)==null||a();c=null},f[cOT]=!0,f);
return U};
fmM=function(S){var c=H1H();if(c==null)throw _.pb.PRIMITIVE_INVALID_HOOK_CALL();var Q=c.hookCounter++;c.hooks||(c.hooks=[]);var f=c.hooks;f[Q]||(f[Q]={key:S,host:c});if(S!==f[Q].key){if(c.JSC$8251___type){var U;S=(U=c.JSC$8251___type)==null?void 0:U.name}else S=c instanceof uW?ylZ(c.functionComponent):"<"+c.el.tagName.toLowerCase()+">";throw _.pb.OUT_OF_ORDER_HOOK_CALL(S);}return f[Q]};
UmM=function(S,c){return!S||S.length!==(c==null?void 0:c.length)||S.some(function(Q,f){return Q!==c[f]})};
JOT=function(S,c){var Q=fmM("onChange"),f=H1H();UmM(Q.deps,c)&&(Q.deps=c,Q.pendingEffect=S,f.__syncEffects||(f.__syncEffects=[]),f.__syncEffects.push(Q))};
_.hS=function(S,c){var Q=Q===void 0?{}:Q;var f=Q.appContext;Q=_.Uj.legacyTriggerSoyRendererEvents;var U=qj(function(){var a=Xr(NR);try{return sj(function(){var X=_.lJY(_.qk(S)),z;var x=ejT({rootElement:{value:S},appContext:f||(X==null?void 0:(z=X.getOptionalAppContext)==null?void 0:z.call(X)),dispatcher:X});X=_.cr(x);x=AS(!0);lQ++;try{Ik(c(),S),Cy(!1)}catch(I){throw Cy(!0),I;}finally{AS(x),_.cr(X)}},!1)}catch(X){throw _.Uj.enableContextBasedComponentStacks&&ht(X),X;
}finally{Xr(a)}});
S[amp]=!0;Q&&xPY(S,f);return function(){S.textContent="";U();S[amp]=!1}};
_.qR=function(S){if(VJr(ax)){var c;(c=_.Uj.handleError)==null||c.call.apply(c,[_.Uj].concat(_.Hs(_.gX(Error("bc")))))}var Q=Sd,f=Hr;Promise.resolve().then(function(){if(Q&&!Q.isDisposed){var U=_.cr(Q);try{qj(function(){return void S()},f)}catch(a){throw _.Uj.enableContextBasedComponentStacks&&ht(a),a;
}finally{_.cr(U)}}})};
T_=function(S,c){JOT(function(){return Ix(S)},c)};
_.wC=function(S){py()?_.qR(function(){Ix(S)}):JOT(function(){return Ix(S)},[])};
XnH=function(S){var c=[].concat(_.Hs(S));S.length=0;S=_.A(c);for(c=S.next();!c.done;c=S.next()){c=c.value;AOR(c);var Q=c.pendingEffect;c.pendingEffect=null;if(Q=Q==null?void 0:Q())c.pendingCleanup=Q}};
AOR=function(S){var c=S.pendingCleanup;S.pendingCleanup=null;c==null||c()};
O$r=function(S,c){if(py())return S();var Q=fmM("useMemoInternal");UmM(Q.deps,c)&&(Q.deps=c,Q.value=S());return Q.value};
zbp=function(S,c){return O$r(S,c)};
sp=function(S){return O$r(S,[])};
MR=function(S){return sp(function(){return{value:S}})};
_.iW=function(S,c){if(!S)return null;S=Object.keys(S);S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var f=Q.toLowerCase();if(f.indexOf(c,f.length-c.length)>-1)return Q}return null};
_.G_=function(){var S=arguments,c=_.ZJ;S.length>1?c[S[0]]=S[1]:S.length===1&&Object.assign(c,S[0])};
_.WY=function(S,c){return S in _.ZJ?_.ZJ[S]:c};
_.gC=function(S,c){return!!_.WY(S,c)};
xmY=function(S){var c=_.ZJ.EXPERIMENT_FLAGS;return c?c[S]:void 0};
BKH=function(S){FGM.forEach(function(c){return c(S)})};
_.kC=function(S){return S&&window.yterr?function(){try{return S.apply(this,arguments)}catch(c){_.eG(c)}}:S};
_.eG=function(S){var c=_.rC("yt.logging.errors.log");c?c(S,"ERROR",void 0,void 0,void 0,void 0,void 0):(c=_.WY("ERRORS",[]),c.push([S,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.G_("ERRORS",c));BKH(S)};
_.dC=function(S,c,Q,f,U){var a=_.rC("yt.logging.errors.log");a?a(S,"WARNING",c,Q,f,void 0,U):(a=_.WY("ERRORS",[]),a.push([S,"WARNING",c,Q,f,void 0,U]),_.G_("ERRORS",a))};
nQT=function(S,c){c=S.split(c);for(var Q={},f=0,U=c.length;f<U;f++){var a=c[f].split("=");if(a.length===1&&a[0]||a.length===2)try{var X=Imr(a[0]||""),z=Imr(a[1]||"");if(X in Q){var x=Q[X];Array.isArray(x)?_.oH(x,z):Q[X]=[x,z]}else Q[X]=z}catch(N){var I=N,n=a[0],b=String(nQT);I.args=[{key:n,value:a[1],query:S,method:b$H===b?"unchanged":b}];NKM.hasOwnProperty(n)||_.dC(I)}}return Q};
KGz=function(S){var c=[];_.Cn.forEach(S,function(Q,f){var U=_.vY(f);_.PY(Array.isArray(Q)?Q:[Q],function(a){a==""?c.push(U):c.push(U+"="+_.vY(a))})});
return c.join("&")};
_.Lb=function(S){S.charAt(0)==="?"&&(S=S.substring(1));return nQT(S,"&")};
_.Ep=function(S){return S.indexOf("?")!==-1?(S=(S||"").split("#")[0],S=S.split("?",2),_.Lb(S.length>1?S[1]:S[0])):{}};
_.tS=function(S,c){return $mZ(S,c||{},!0)};
umz=function(S,c){return $mZ(S,c||{},!1)};
$mZ=function(S,c,Q){var f=S.split("#",2);S=f[0];f=f.length>1?"#"+f[1]:"";var U=S.split("?",2);S=U[0];U=_.Lb(U[1]||"");for(var a in c)if(Q||!_.Cn.containsKey(U,a))U[a]=c[a];return _.V0(S,U)+f};
SJ=function(S){if(!c)var c=window.location.href;var Q=_.Rk(S)[1]||null,f=_.ok(S);return Q&&f?mA(S,c):f?_.ok(c)===f&&(Number(_.Rk(c)[4]||null)||null)===(Number(_.Rk(S)[4]||null)||null):!0};
_.lmx=function(S){S=jhR(S);return S===null?!1:S[0]==="com"&&S[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
jhR=function(S){S=_.ok(S);return S!==null?S.split(".").reverse():null};
Imr=function(S){return S&&S.match(YPR)?S:ci(S)};
_.QS=function(S){return new COY(S)};
_.fl=function(){H$o||(H$o=new DmH);return H$o};
hbY=function(S){var c=_.U8,Q,f;_.O(function(U){Q=_.fl();return(f=Q.resolve(_.QS(c)))?(S(f),U.return(Promise.resolve(f))):U.return(Q.resolve(new pnM(c)).then(function(a){S(a);return a}))})};
_.u=function(S){S=Jl(S);return typeof S==="string"&&S==="false"?!1:!!S};
_.a6=function(S,c){S=Jl(S);return S===void 0&&c!==void 0?c:Number(S||0)};
qPr=function(S){S=Jl(S);return Array.isArray(S)?_.D0(S,function(c){return Number(c||0)}):[Number(S||0)]};
_.Al=function(S){S=Jl(S);return S!==void 0?String(S):""};
_.XJ=function(S){S=Jl(S);return Array.isArray(S)?_.D0(S,function(c){return String(c||"")}):[String(S||"")]};
TKT=function(){return _.WY("EXPERIMENTS_TOKEN","")};
Jl=function(S){return _.WY("EXPERIMENT_FLAGS",{})[S]};
wnY=function(){for(var S=[],c=_.WY("EXPERIMENTS_FORCED_FLAGS",{}),Q=_.A(Object.keys(c)),f=Q.next();!f.done;f=Q.next())f=f.value,S.push({key:f,value:String(c[f])});Q=_.WY("EXPERIMENT_FLAGS",{});f=_.A(Object.keys(Q));for(var U=f.next();!U.done;U=f.next())U=U.value,U.startsWith("force_")&&c[U]===void 0&&S.push({key:U,value:String(Q[U])});return S};
MRz=function(){if(!shc)return null;var S=shc();return"open"in S?S:null};
_.i$p=function(S){switch(_.O8(S)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
_.O8=function(S){return S&&"status"in S?S.status:-1};
_.zD=function(S,c){typeof S==="function"&&(S=_.kC(S));return window.setTimeout(S,c)};
_.xr=function(S,c){typeof S==="function"&&(S=_.kC(S));return window.setInterval(S,c)};
_.FJ=function(S){window.clearTimeout(S)};
GLz=function(S){S=_.Ep(S);for(var c=_.A(Z$Z),Q=c.next();!Q.done;Q=c.next())if(S[Q.value]!==void 0)return!0;return!1};
ebp=function(S,c,Q,f,U,a,X,z){Q=Q===void 0?"GET":Q;f=f===void 0?"":f;z=z===void 0?!1:z;var x=MRz();if(!x)return null;var I=function(){(x&&"readyState"in x?x.readyState:0)===4&&c&&_.kC(c)(x)};
"onloadend"in x?x.addEventListener("loadend",I,!1):x.onreadystatechange=I;_.u("debug_forward_web_query_parameters")&&(S=WGZ(S,window.location.search));x.open(Q,S,!0);a&&(x.responseType=a);X&&(x.withCredentials=!0);Q=Q==="POST"&&(window.FormData===void 0||!(f instanceof FormData));if(U=gQT(S,U))for(var n in U)x.setRequestHeader(n,U[n]),"content-type"===n.toLowerCase()&&(Q=!1);Q&&x.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(z&&"setAttributionReporting"in XMLHttpRequest.prototype){S=
{eventSourceEligible:!0,triggerEligible:!1};try{x.setAttributionReporting(S)}catch(b){_.dC(b)}}x.send(f);return x};
gQT=function(S,c){c=c===void 0?{}:c;var Q=SJ(S),f=_.WY("INNERTUBE_CLIENT_NAME"),U=_.u("web_ajax_ignore_global_headers_if_set"),a;for(a in kLH){var X=_.WY(kLH[a]),z=a==="X-Goog-AuthUser"||a==="X-Goog-PageId";a!=="X-Goog-Visitor-Id"||X||(X=_.WY("VISITOR_DATA"));var x;if(!(x=!X)){if(!(x=Q||(_.ok(S)?!1:!0))){x=S;var I;if(I=_.u("add_auth_headers_to_remarketing_google_dot_com_ping")&&a==="Authorization"&&(f==="TVHTML5"||f==="TVHTML5_UNPLUGGED"||f==="TVHTML5_SIMPLY"))I=jhR(x),I=I===null?!1:I[1]==="google"?
!0:I[2]==="google"?I[0]==="au"&&I[1]==="com"?!0:I[0]==="uk"&&I[1]==="co"?!0:!1:!1;I&&(x=_.Bi(x)||"",x=x.split("/"),x="/"+(x.length>1?x[1]:""),I=x==="/pagead");x=I?!0:!1}x=!x}x||U&&c[a]!==void 0||f==="TVHTML5_UNPLUGGED"&&z||(c[a]=X)}"X-Goog-EOM-Visitor-Id"in c&&"X-Goog-Visitor-Id"in c&&delete c["X-Goog-Visitor-Id"];if(Q||!_.ok(S))c["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(Q||!_.ok(S)){try{var n=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(b){}n&&(c["X-YouTube-Time-Zone"]=
n)}document.location.hostname.endsWith("youtubeeducation.com")||!Q&&_.ok(S)||(c["X-YouTube-Ad-Signals"]=KGz(rOo()));return c};
_.dmo=function(S,c){var Q=_.ok(S);_.u("debug_handle_relative_url_for_query_forward_killswitch")||!Q&&SJ(S)&&(Q=document.location.hostname);var f=_.Bi(S);f=(Q=Q&&(Q.endsWith("youtube.com")||Q.endsWith("youtube-nocookie.com")))&&f&&f.startsWith("/api/");if(!Q||f)return S;var U=_.Lb(c),a={};_.PY(Z$Z,function(X){U[X]&&(a[X]=U[X])});
return umz(S,a)};
vQH=function(S,c){c.method="POST";c.postParams||(c.postParams={});return _.I6(S,c)};
POz=function(S,c){var Q=_.WY("XSRF_FIELD_NAME"),f;c.headers&&(f=c.headers["Content-Type"]);return!c.excludeXsrf&&(!_.ok(S)||c.withCredentials||_.ok(S)===document.location.hostname)&&c.method==="POST"&&(!f||f==="application/x-www-form-urlencoded")&&!(c.postParams&&c.postParams[Q])};
_.I6=function(S,c){var Q=c.format||"JSON";S=LGZ(S,c);var f=EQR(S,c),U=!1,a=tRz(S,function(x){if(!U){U=!0;z&&_.FJ(z);var I=_.i$p(x),n=null,b=400<=x.status&&x.status<500,N=500<=x.status&&x.status<600;if(I||b||N)n=VRY(S,Q,x,c.convertToSafeHtml);I&&(I=RbM(Q,x,n));n=n||{};b=c.context||_.QY;I?c.onSuccess&&c.onSuccess.call(b,x,n):c.onError&&c.onError.call(b,x,n);c.onFinish&&c.onFinish.call(b,x,n)}},c.method,f,c.headers,c.responseType,c.withCredentials);
f=c.timeout||0;if(c.onTimeout&&f>0){var X=c.onTimeout;var z=_.zD(function(){U||(U=!0,a.abort(),_.FJ(z),X.call(c.context||_.QY,a))},f)}return a};
LGZ=function(S,c){c.includeDomain&&(S=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+S);var Q=_.WY("XSRF_FIELD_NAME");if(c=c.urlParams)c[Q]&&delete c[Q],S=_.tS(S,c);return S};
EQR=function(S,c){var Q=_.WY("XSRF_FIELD_NAME"),f=_.WY("XSRF_TOKEN"),U=c.postBody||"",a=c.postParams;POz(S,c)&&(a||(a={}),a[Q]=f);(_.u("ajax_parse_query_data_only_when_filled")&&a&&Object.keys(a).length>0||a)&&typeof U==="string"&&(U=_.Lb(U),_.Cn.extend(U,a),U=c.postBodyFormat&&c.postBodyFormat==="JSON"?JSON.stringify(U):_.nl(U));a=U||a&&!_.Cn.isEmpty(a);!yOc&&a&&c.method!=="POST"&&(yOc=!0,_.eG(Error("Hc")));return U};
VRY=function(S,c,Q,f){var U=null;switch(c){case "JSON":try{var a=Q.responseText}catch(X){throw f=Error("Ic"),f.params=S,_.dC(f),X;}S=Q.getResponseHeader("Content-Type")||"";a&&S.indexOf("json")>=0&&(a.substring(0,5)===")]}'\n"&&(a=a.substring(5)),U=JSON.parse(a));break;case "XML":if(S=(S=Q.responseXML)?oQY(S):null)U={},_.PY(S.getElementsByTagName("*"),function(X){U[X.tagName]=mmx(X)})}f&&SMp(U);
return U};
SMp=function(S){if(_.c_(S))for(var c in S)c==="html_content"||aH(c,"_html")?S[c]=h5(S[c]):SMp(S[c])};
RbM=function(S,c,Q){if(c&&c.status===204)return!0;switch(S){case "JSON":return!!Q;case "XML":return Number(Q&&Q.return_code)===0;case "RAW":return!0;default:return!!Q}};
oQY=function(S){return S?(S=("responseXML"in S?S.responseXML:S).getElementsByTagName("root"))&&S.length>0?S[0]:null:null};
mmx=function(S){var c="";_.PY(S.childNodes,function(Q){c+=Q.nodeValue});
return c};
cGR=function(S){if(S.name==="JavaException")return!0;S=S.stack;return S.includes("chrome://")||S.includes("-extension://")||S.includes("webkit-masked-url://")};
QYR=function(S){if(!S.stack)return!0;var c=!S.stack.includes("\n");return c&&S.stack.includes("ErrorType: ")||c&&S.stack.includes("Anonymous function (Unknown script")||S.stack.toLowerCase()==="not available"||S.fileName==="user-script"||S.fileName.startsWith("user-script:")?!0:!1};
_.bB=function(S){_.C9.call(this);this.JSC$8485_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!S};
UET=function(S,c){var Q=S.length,f=0,U=function(){return S.charCodeAt(f++)};
do{var a=fqT(U);if(a===Infinity)break;var X=a>>3;switch(a&7){case 0:a=fqT(U);if(X===c)return a;break;case 1:if(X===c)return;f+=8;break;case 2:a=fqT(U);if(X===c)return S.substr(f,a);f+=a;break;case 5:if(X===c)return;f+=4;break;default:return}}while(f<Q)};
fqT=function(S){var c=S(),Q=c&127;if(c<128)return Q;c=S();Q|=(c&127)<<7;if(c<128)return Q;c=S();Q|=(c&127)<<14;if(c<128)return Q;c=S();return c<128?Q|(c&127)<<21:Infinity};
aqY=function(S,c,Q,f){if(S)if(Array.isArray(S)){var U=f;for(f=0;f<S.length&&!(S[f]&&(U+=JGM(f,S[f],c,Q),U>500));f++);f=U}else if(typeof S==="object")for(U in S){if(S[U]){var a=U;var X=S[U],z=c,x=Q;a=typeof X!=="string"||a!=="clickTrackingParams"&&a!=="trackingParams"?0:(X=UET(atob(X.replace(/-/g,"+").replace(/_/g,"/")),2))?JGM(a+".ve",X,z,x):0;f+=a;f+=JGM(U,S[U],c,Q);if(f>500)break}}else Q[c]=Nx(S),f+=Q[c].length;else Q[c]=Nx(S),f+=Q[c].length;return f};
JGM=function(S,c,Q,f){Q+="."+S;S=Nx(c);f[Q]=S;return Q.length+S.length};
Nx=function(S){try{return(typeof S==="string"?S:String(JSON.stringify(S))).substr(0,500)}catch(c){return"unable to serialize "+typeof S+" ("+c.message+")"}};
AGo=function(S){switch(S){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}};
_.$r=function(S,c,Q,f,U){_.Kl.set(S,c,{maxAge:Q,path:"/",domain:f===void 0?"youtube.com":f,secure:U===void 0?!1:U})};
_.XdY=function(S,c,Q){_.Kl.remove(S,c===void 0?"/":c,Q===void 0?"youtube.com":Q)};
_.uB=function(){if(_.u("embeds_web_enable_cookie_detection_fix")){if(!_.QY.navigator.cookieEnabled)return!1}else if(!_.Kl.isEnabled())return!1;if(!_.Kl.isEmpty())return!0;_.u("embeds_web_enable_cookie_detection_fix")?_.Kl.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.Kl.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.Kl.get("TESTCOOKIESENABLED")!=="1")return!1;_.Kl.remove("TESTCOOKIESENABLED");return!0};
OPY=function(){var S=_.QY.navigator;return S?S.connection:void 0};
zzZ=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(S){}};
_.F1T=function(){var S=OPY();if(S){var c=xET[S.type||"unknown"]||"CONN_UNKNOWN";S=xET[S.effectiveType||"unknown"]||"CONN_UNKNOWN";c==="CONN_CELLULAR_UNKNOWN"&&S!=="CONN_UNKNOWN"&&(c=S);if(c!=="CONN_UNKNOWN")return c;if(S!=="CONN_UNKNOWN")return S}};
IqY=function(){var S=OPY();if(S!=null&&S.effectiveType)return BNz.hasOwnProperty(S.effectiveType)?BNz[S.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.lB=function(){try{return _.jJ(),!0}catch(S){return!1}};
_.jJ=function(S){if(_.WY("DATASYNC_ID")!==void 0)return _.WY("DATASYNC_ID");throw new _.Yr("Datasync ID not set",S===void 0?"unknown":S);};
_.Cl=function(S){this.mechanism=S};
Hi=function(S){this.mechanism=S};
Dh=function(S){this.storage_=S;this.cachedIsStorageAvailable_=null};
nUT=function(){var S=null;try{S=_.QY.localStorage||null}catch(c){}Dh.call(this,S)};
bPp=function(){var S=null;try{S=_.QY.sessionStorage||null}catch(c){}Dh.call(this,S)};
pl=function(S,c){this.mechanism_=S;this.JSC$8587_prefix_=c+"::"};
_.NNT=function(S){var c=new nUT;return c.isAvailable()?S?new pl(c,S):c:null};
_.K1x=function(S){var c=new bPp;return c.isAvailable()?S?new pl(c,S):c:null};
uuz=function(){var S;return(S=$Ez())==null?void 0:S.get("LAST_RESULT_ENTRY_KEY",!0)};
_.TD=function(S){jYZ||(_.hl?_.hl.logError(S):(_.qx.push({type:"ERROR",payload:S}),_.qx.length>10&&_.qx.shift()))};
w5=function(S,c){jYZ||(_.hl?_.hl.logEvent(S,c):(_.qx.push({type:"EVENT",eventType:S,payload:c}),_.qx.length>10&&_.qx.shift()))};
s8=function(S){if(S.indexOf(":")>=0)throw Error("Pc");};
Mx=function(S){return S.substr(0,S.indexOf(":"))||S};
CxR=function(){return(lqz||YMM)&&iB("applewebkit")&&!iB("version")&&(!iB("safari")||iB("gsa/"))};
iB=function(S){var c=_.bM();return c?c.toLowerCase().indexOf(S)>=0:!1};
pdT=function(S,c,Q,f){c=Mx(c);var U=S instanceof Error?S:Error("Qc`"+S);if(U instanceof Zh)return U;S={objectStoreNames:Q,dbName:c,dbVersion:f};if(U.name==="QuotaExceededError")return new Zh("QUOTA_EXCEEDED",S);if(_.GD&&U.name==="UnknownError")return new Zh("QUOTA_MAYBE_EXCEEDED",S);if(U instanceof HPz)return new Zh("MISSING_INDEX",Object.assign({},S,{objectStore:U.objectStore,index:U.index}));if(U.name==="InvalidStateError"&&DEM.some(function(a){return U.message.includes(a)}))return new Zh("EXECUTE_TRANSACTION_ON_CLOSED_DB",
S);
if(U.name==="AbortError")return new Zh("UNKNOWN_ABORT",S,U.message);U.args=[Object.assign({},S,{name:"IdbError",originalName:U.name})];U.level="WARNING";return U};
Wi=function(S,c,Q){var f=uuz();return new Zh("IDB_NOT_SUPPORTED",{context:{caller:S,publicName:c,version:Q,hasSucceededOnce:f==null?void 0:f.hasSucceededOnce}})};
hzY=function(S){if(!S)throw Error();throw S;};
qMR=function(S){return S};
TNH=function(S,c,Q){var f=function(){try{S.removeEventListener("success",U),S.removeEventListener("error",a)}catch(X){}},U=function(){c(S.result);
f()},a=function(){Q(S.error);
f()};
S.addEventListener("success",U);S.addEventListener("error",a)};
wdZ=function(S){return new Promise(function(c,Q){TNH(S,c,Q)})};
kr=function(S){return new g5(new eJ(function(c,Q){TNH(S,c,Q)}))};
sYx=function(S,c){return new g5(new eJ(function(Q,f){var U=function(){var a=S?c(S):null;a?a.then(function(X){S=X;U()},f):Q()};
U()}))};
iPp=function(S,c,Q){return new Promise(function(f,U){var a=c!==void 0?self.indexedDB.open(S,c):self.indexedDB.open(S);var X=Q.blocked,z=Q.blocking,x=Q.terminated,I=Q.upgrade,n=Q.closed,b,N=function(){b||(b=new d5(a.result,{closed:n}));return b};
a.addEventListener("upgradeneeded",function(l){try{if(l.newVersion===null)throw Error("Vc");if(a.transaction===null)throw Error("Wc");l.dataLoss&&l.dataLoss!=="none"&&w5("IDB_DATA_CORRUPTED",{reason:l.dataLossMessage||"unknown reason",dbName:Mx(S)});var H=N(),q=new MBT(a.transaction);I&&I(H,function(w){return l.oldVersion<w&&l.newVersion>=w},q);
q.done.catch(function(w){U(w)})}catch(w){U(w)}});
a.addEventListener("success",function(){var l=a.result;z&&l.addEventListener("versionchange",function(){z(N())});
l.addEventListener("close",function(){w5("IDB_UNEXPECTEDLY_CLOSED",{dbName:Mx(S),dbVersion:l.version});x&&x()});
f(N())});
a.addEventListener("error",function(){U(a.error)});
X&&a.addEventListener("blocked",function(){X()})})};
ZPY=function(S,c,Q){Q=Q===void 0?{}:Q;return iPp(S,c,Q)};
_.Ll=function(S,c){c=c===void 0?{}:c;var Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return _.X1(X,2),Q=self.indexedDB.deleteDatabase(S),f=c,(U=f.blocked)&&Q.addEventListener("blocked",function(){U()}),_.F(X,wdZ(Q),4);
if(X.nextAddress!=2)return _.Pi(X,0);a=_.Bs(X);throw pdT(a,S,"",-1);})};
W1Z=function(S,c){var Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,_.E8(G$Y,c),2);Q=f.yieldResult;return f.return(_.tl(Q,["databases"],{enableRetries:!0,mode:"readwrite"},function(U){var a=U.objectStore("databases");return a.get(S.actualName).then(function(X){if(X?S.actualName!==X.actualName||S.publicName!==X.publicName||S.userIdentifier!==X.userIdentifier:1)return a.put(S).then(function(){})})}))})};
_.VS=function(S,c){var Q;return _.O(function(f){if(f.nextAddress==1)return S?_.F(f,_.E8(G$Y,c),2):f.return();Q=f.yieldResult;return f.return(Q.delete("databases",S))})};
_.gUp=function(S,c){var Q,f;return _.O(function(U){return U.nextAddress==1?(Q=[],_.F(U,_.E8(G$Y,c),2)):U.nextAddress!=3?(f=U.yieldResult,_.F(U,_.tl(f,["databases"],{enableRetries:!0,mode:"readonly"},function(a){Q.length=0;return R6(a.objectStore("databases"),{},function(X){S(X.getValue())&&Q.push(X.getValue());return X.continue()})}),3)):U.return(Q)})};
ezT=function(S,c){return _.gUp(function(Q){return Q.publicName===S&&Q.userIdentifier!==void 0},c)};
dEY=function(){var S,c,Q,f;return _.O(function(U){switch(U.nextAddress){case 1:S=uuz();if((c=S)==null?0:c.hasSucceededOnce)return U.return(!0);var a;if(a=k$z)a=/WebKit\/([0-9]+)/.exec(_.bM()),a=!!(a&&parseInt(a[1],10)>=600);a&&(a=/WebKit\/([0-9]+)/.exec(_.bM()),a=!(a&&parseInt(a[1],10)>=602));if(a||yS)return U.return(!1);try{if(Q=self,!(Q.indexedDB&&Q.IDBIndex&&Q.IDBKeyRange&&Q.IDBObjectStore))return U.return(!1)}catch(X){return U.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return U.return(!1);
_.X1(U,2);f={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.F(U,W1Z(f,rGY),4);case 4:return _.F(U,_.VS("yt-idb-test-do-not-use",rGY),5);case 5:return U.return(!0);case 2:return _.Bs(U),U.return(!1)}})};
Pxp=function(){if(vUZ!==void 0)return vUZ;jYZ=!0;return vUZ=dEY().then(function(S){jYZ=!1;var c;if((c=$Ez())!=null&&c.expiringStorage_){var Q;c={hasSucceededOnce:((Q=uuz())==null?void 0:Q.hasSucceededOnce)||S};var f;(f=$Ez())==null||f.set("LAST_RESULT_ENTRY_KEY",c,2592E3,!0)}return S})};
o6=function(){return _.rC("ytglobal.idbToken_")||void 0};
_.S8=function(){var S=o6();return S?Promise.resolve(S):Pxp().then(function(c){(c=c?rGY:void 0)&&_.m5("ytglobal.idbToken_",c);return c})};
L1z=function(S){if(!_.lB())throw S=new Zh("AUTH_INVALID",{dbName:S}),_.TD(S),S;var c=_.jJ();return{actualName:S+":"+c,publicName:S,userIdentifier:c}};
EUp=function(S,c,Q,f){var U,a,X,z,x,I;return _.O(function(n){switch(n.nextAddress){case 1:return a=(U=Error().stack)!=null?U:"",_.F(n,_.S8(),2);case 2:X=n.yieldResult;if(!X)throw z=Wi("openDbImpl",S,c),_.u("ytidb_async_stack_killswitch")||(z.stack=z.stack+"\n"+a.substring(a.indexOf("\n")+1)),_.TD(z),z;s8(S);x=Q?{actualName:S,publicName:S,userIdentifier:void 0}:L1z(S);_.X1(n,3);return _.F(n,W1Z(x,X),5);case 5:return _.F(n,ZPY(x.actualName,c,f),6);case 6:return n.return(n.yieldResult);case 3:return I=
_.Bs(n),_.X1(n,7),_.F(n,_.VS(x.actualName,X),9);case 9:_.Pi(n,8);break;case 7:_.Bs(n);case 8:throw I;}})};
tBp=function(S,c,Q){Q=Q===void 0?{}:Q;return EUp(S,c,!1,Q)};
VBY=function(S,c,Q){Q=Q===void 0?{}:Q;return EUp(S,c,!0,Q)};
RzT=function(S,c){c=c===void 0?{}:c;var Q,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,_.S8(),2);if(U.nextAddress!=3){Q=U.yieldResult;if(!Q)return U.return();s8(S);f=L1z(S);return _.F(U,_.Ll(f.actualName,c),3)}return _.F(U,_.VS(f.actualName,Q),0)})};
yGH=function(S,c,Q){S=S.map(function(f){return _.O(function(U){return U.nextAddress==1?_.F(U,_.Ll(f.actualName,c),2):_.F(U,_.VS(f.actualName,Q),0)})});
return Promise.all(S).then(function(){})};
oUY=function(S){var c=c===void 0?{}:c;var Q,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,_.S8(),2);if(U.nextAddress!=3){Q=U.yieldResult;if(!Q)return U.return();s8(S);return _.F(U,ezT(S,Q),3)}f=U.yieldResult;return _.F(U,yGH(f,c,Q),0)})};
mET=function(S,c){c=c===void 0?{}:c;var Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,_.S8(),2);if(f.nextAddress!=3){Q=f.yieldResult;if(!Q)return f.return();s8(S);return _.F(f,_.Ll(S,c),3)}return _.F(f,_.VS(S,Q),0)})};
ct=function(S,c){return SzR(S,c)};
QIp=function(S){return _.E8(czM(),S)};
f5M=function(S,c,Q,f){var U,a,X;return _.O(function(z){switch(z.nextAddress){case 1:return U={config:S,hashData:c,timestamp:f!==void 0?f:(0,_.Qk)()},_.F(z,QIp(Q),2);case 2:return a=z.yieldResult,_.F(z,a.clear("hotConfigStore"),3);case 3:return _.F(z,a.put("hotConfigStore",U),4);case 4:return X=z.yieldResult,z.return(X)}})};
UDY=function(S,c,Q,f,U){var a,X,z;return _.O(function(x){switch(x.nextAddress){case 1:return a={config:S,hashData:c,configData:Q,timestamp:U!==void 0?U:(0,_.Qk)()},_.F(x,QIp(f),2);case 2:return X=x.yieldResult,_.F(x,X.clear("coldConfigStore"),3);case 3:return _.F(x,X.put("coldConfigStore",a),4);case 4:return z=x.yieldResult,x.return(z)}})};
JzH=function(S){var c,Q;return _.O(function(f){return f.nextAddress==1?_.F(f,QIp(S),2):f.nextAddress!=3?(c=f.yieldResult,Q=void 0,_.F(f,_.tl(c,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(U){return _.f6(U.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(a){Q=a.getValue()})}),3)):f.return(Q)})};
a5p=function(S){var c,Q;return _.O(function(f){return f.nextAddress==1?_.F(f,QIp(S),2):f.nextAddress!=3?(c=f.yieldResult,Q=void 0,_.F(f,_.tl(c,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(U){return _.f6(U.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(a){Q=a.getValue()})}),3)):f.return(Q)})};
Azp=function(){return _.O(function(S){return _.F(S,oUY("ytGcfConfig"),0)})};
X2p=function(){return"INNERTUBE_API_KEY"in _.ZJ&&"INNERTUBE_API_VERSION"in _.ZJ};
_.UJ=function(){return{innertubeApiKey:_.WY("INNERTUBE_API_KEY"),innertubeApiVersion:_.WY("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.WY("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.WY("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.WY("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.WY("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.WY("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.WY("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.WY("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.gC("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.gC("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.WY("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.ntY=function(S){var c={client:{hl:S.innertubeContextHostLanguage,gl:S.innertubeContextGeoLocation,clientName:S.innertubeContextClientName,clientVersion:S.innertubeContextClientVersion,configInfo:S.innertubeContextClientConfigInfo}};navigator.userAgent&&(c.client.userAgent=String(navigator.userAgent));var Q=_.QY.devicePixelRatio;Q&&Q!=1&&(c.client.screenDensityFloat=String(Q));Q=TKT();Q!==""&&(c.client.experimentsToken=Q);Q=wnY();Q.length>0&&(c.request={internalExperimentFlags:Q});O8R(S,void 0,c);
zWZ(void 0,c);xDc(void 0,c);FqR(S,void 0,c);BSZ(void 0,c);_.u("start_client_gcf")&&I5Y(void 0,c);_.WY("DELEGATED_SESSION_ID")&&!_.u("pageid_as_header_web")&&(c.user={onBehalfOfUser:_.WY("DELEGATED_SESSION_ID")});!_.u("fill_delegate_context_in_gel_killswitch")&&(S=_.WY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(c.user=Object.assign({},c.user,{serializedDelegationContext:S}));S=_.WY("INNERTUBE_CONTEXT");var f;if(_.u("enable_persistent_device_token")&&(S==null?0:(f=S.client)==null?0:f.rolloutToken)){var U;
c.client.rolloutToken=S==null?void 0:(U=S.client)==null?void 0:U.rolloutToken}f=Object;U=f.assign;S=c.client;Q={};for(var a=_.A(Object.entries(_.Lb(_.WY("DEVICE","")))),X=a.next();!X.done;X=a.next()){var z=_.A(X.value);X=z.next().value;z=z.next().value;X==="cbrand"?Q.deviceMake=z:X==="cmodel"?Q.deviceModel=z:X==="cbr"?Q.browserName=z:X==="cbrver"?Q.browserVersion=z:X==="cos"?Q.osName=z:X==="cosver"?Q.osVersion=z:X==="cplatform"&&(Q.platform=z)}c.client=U.call(f,S,Q);return c};
O8R=function(S,c,Q){S=S.innertubeContextClientName;if(S==="WEB"||S==="MWEB"||S===1||S===2)if(c){Q=_.JB(c,b8z,96)||new b8z;var f=NSR();f=Object.keys(Kqp).indexOf(f);f=f===-1?null:f;f!==null&&_.aR(Q,3,f);_.Qx(c,96,Q)}else Q&&(Q.client.mainAppWebInfo=(f=Q.client.mainAppWebInfo)!=null?f:{},Q.client.mainAppWebInfo.webDisplayMode=NSR())};
zWZ=function(S,c){var Q=_.rC("yt.embedded_player.embed_url");Q&&(S?(c=_.JB(S,$DZ,7)||new $DZ,_.bN(c,4,Q),_.Qx(S,7,c)):c&&(c.thirdParty={embedUrl:Q}))};
xDc=function(S,c){var Q;if(_.u("web_log_memory_total_kbytes")&&((Q=_.QY.navigator)==null?0:Q.deviceMemory)){var f;Q=(f=_.QY.navigator)==null?void 0:f.deviceMemory;S?_.AB(S,95,w1(Q*1E6)):c&&(c.client.memoryTotalKbytes=""+Q*1E6)}};
FqR=function(S,c,Q){if(S.appInstallData)if(c){var f;Q=(f=_.JB(c,XL,62))!=null?f:new XL;_.bN(Q,6,S.appInstallData);_.Qx(c,62,Q)}else Q&&(Q.client.configInfo=Q.client.configInfo||{},Q.client.configInfo.appInstallData=S.appInstallData)};
BSZ=function(S,c){var Q=_.F1T();Q&&(S?_.aR(S,61,uFY[Q]):c&&(c.client.connectionType=Q));_.u("web_log_effective_connection_type")&&(Q=IqY())&&(S?_.aR(S,94,jIY[Q]):c&&(c.client.effectiveConnectionType=Q))};
_.C2Z=function(S,c,Q){Q=Q===void 0?{}:Q;var f={};_.WY("EOM_VISITOR_DATA")?f={"X-Goog-EOM-Visitor-Id":_.WY("EOM_VISITOR_DATA")}:f={"X-Goog-Visitor-Id":Q.visitorData||_.WY("VISITOR_DATA","")};if(c&&c.includes("www.youtube-nocookie.com"))return f;c=Q.authorization||_.WY("AUTHORIZATION");c||(S?c="Bearer "+_.rC("gapi.auth.getToken")().access_token:(l5x.instance||(l5x.instance=new l5x),S=Yzr(),_.u("pageid_as_header_web")||delete S["X-Goog-PageId"],f=Object.assign({},f,S)));c&&(f.Authorization=c);return f};
I5Y=function(S,c){var Q=H8p();if(Q){var f=Q.coldConfigData,U=Q.coldHashData;Q=Q.hotHashData;if(S){var a;c=(a=_.JB(S,XL,62))!=null?a:new XL;f=_.bN(c,1,f);_.bN(f,3,U).setHotHashData(Q);_.Qx(S,62,c)}else c&&(c.client.configInfo=c.client.configInfo||{},f&&(c.client.configInfo.coldConfigData=f),U&&(c.client.configInfo.coldHashData=U),Q&&(c.client.configInfo.hotHashData=Q))}};
OJ=function(S){for(var c=S.length;--c>=0;)S[c]=0};
DDc=function(S,c,Q,f,U){this.static_tree=S;this.extra_bits=c;this.extra_base=Q;this.elems=f;this.max_length=U;this.has_stree=S&&S.length};
p2Y=function(S,c){this.dyn_tree=S;this.max_code=0;this.stat_desc=c};
zf=function(S,c){S.pending_buf[S.pending++]=c&255;S.pending_buf[S.pending++]=c>>>8&255};
xM=function(S,c,Q){S.bi_valid>16-Q?(S.bi_buf|=c<<S.bi_valid&65535,zf(S,S.bi_buf),S.bi_buf=c>>16-S.bi_valid,S.bi_valid+=Q-16):(S.bi_buf|=c<<S.bi_valid&65535,S.bi_valid+=Q)};
FL=function(S,c,Q){xM(S,Q[c*2],Q[c*2+1])};
hWz=function(S,c){var Q=0;do Q|=S&1,S>>>=1,Q<<=1;while(--c>0);return Q>>>1};
qzo=function(S,c,Q){var f=Array(16),U=0,a;for(a=1;a<=15;a++)f[a]=U=U+Q[a-1]<<1;for(Q=0;Q<=c;Q++)U=S[Q*2+1],U!==0&&(S[Q*2]=hWz(f[U]++,U))};
TST=function(S){var c;for(c=0;c<286;c++)S.dyn_ltree[c*2]=0;for(c=0;c<30;c++)S.dyn_dtree[c*2]=0;for(c=0;c<19;c++)S.bl_tree[c*2]=0;S.dyn_ltree[512]=1;S.opt_len=S.static_len=0;S.last_lit=S.matches=0};
w2Y=function(S){S.bi_valid>8?zf(S,S.bi_buf):S.bi_valid>0&&(S.pending_buf[S.pending++]=S.bi_buf);S.bi_buf=0;S.bi_valid=0};
sIR=function(S,c,Q){w2Y(S);zf(S,Q);zf(S,~Q);Bt.arraySet(S.pending_buf,S.window,c,Q,S.pending);S.pending+=Q};
MLz=function(S,c,Q,f){var U=c*2,a=Q*2;return S[U]<S[a]||S[U]===S[a]&&f[c]<=f[Q]};
i8x=function(S,c,Q){for(var f=S.heap[Q],U=Q<<1;U<=S.heap_len;){U<S.heap_len&&MLz(c,S.heap[U+1],S.heap[U],S.depth)&&U++;if(MLz(c,f,S.heap[U],S.depth))break;S.heap[Q]=S.heap[U];Q=U;U<<=1}S.heap[Q]=f};
eWT=function(S,c,Q){var f=0;if(S.last_lit!==0){do{var U=S.pending_buf[S.d_buf+f*2]<<8|S.pending_buf[S.d_buf+f*2+1];var a=S.pending_buf[S.l_buf+f];f++;if(U===0)FL(S,a,c);else{var X=IR[a];FL(S,X+256+1,c);var z=Z8Z[X];z!==0&&(a-=GZM[X],xM(S,a,z));U--;X=U<256?n6[U]:n6[256+(U>>>7)];FL(S,X,Q);z=WqM[X];z!==0&&(U-=gtY[X],xM(S,U,z))}}while(f<S.last_lit)}FL(S,256,c)};
kZY=function(S,c){var Q=c.dyn_tree,f=c.stat_desc.static_tree,U=c.stat_desc.has_stree,a=c.stat_desc.elems,X,z=-1;S.heap_len=0;S.heap_max=573;for(X=0;X<a;X++)Q[X*2]!==0?(S.heap[++S.heap_len]=z=X,S.depth[X]=0):Q[X*2+1]=0;for(;S.heap_len<2;){var x=S.heap[++S.heap_len]=z<2?++z:0;Q[x*2]=1;S.depth[x]=0;S.opt_len--;U&&(S.static_len-=f[x*2+1])}c.max_code=z;for(X=S.heap_len>>1;X>=1;X--)i8x(S,Q,X);x=a;do X=S.heap[1],S.heap[1]=S.heap[S.heap_len--],i8x(S,Q,1),f=S.heap[1],S.heap[--S.heap_max]=X,S.heap[--S.heap_max]=
f,Q[x*2]=Q[X*2]+Q[f*2],S.depth[x]=(S.depth[X]>=S.depth[f]?S.depth[X]:S.depth[f])+1,Q[X*2+1]=Q[f*2+1]=x,S.heap[1]=x++,i8x(S,Q,1);while(S.heap_len>=2);S.heap[--S.heap_max]=S.heap[1];X=c.dyn_tree;x=c.max_code;f=c.stat_desc.static_tree;U=c.stat_desc.has_stree;a=c.stat_desc.extra_bits;var I=c.stat_desc.extra_base,n=c.stat_desc.max_length,b,N=0;for(b=0;b<=15;b++)S.bl_count[b]=0;X[S.heap[S.heap_max]*2+1]=0;for(c=S.heap_max+1;c<573;c++){var l=S.heap[c];b=X[X[l*2+1]*2+1]+1;b>n&&(b=n,N++);X[l*2+1]=b;if(!(l>
x)){S.bl_count[b]++;var H=0;l>=I&&(H=a[l-I]);var q=X[l*2];S.opt_len+=q*(b+H);U&&(S.static_len+=q*(f[l*2+1]+H))}}if(N!==0){do{for(b=n-1;S.bl_count[b]===0;)b--;S.bl_count[b]--;S.bl_count[b+1]+=2;S.bl_count[n]--;N-=2}while(N>0);for(b=n;b!==0;b--)for(l=S.bl_count[b];l!==0;)f=S.heap[--c],f>x||(X[f*2+1]!==b&&(S.opt_len+=(b-X[f*2+1])*X[f*2],X[f*2+1]=b),l--)}qzo(Q,z,S.bl_count)};
rzT=function(S,c,Q){var f,U=-1,a=c[1],X=0,z=7,x=4;a===0&&(z=138,x=3);c[(Q+1)*2+1]=65535;for(f=0;f<=Q;f++){var I=a;a=c[(f+1)*2+1];++X<z&&I===a||(X<x?S.bl_tree[I*2]+=X:I!==0?(I!==U&&S.bl_tree[I*2]++,S.bl_tree[32]++):X<=10?S.bl_tree[34]++:S.bl_tree[36]++,X=0,U=I,a===0?(z=138,x=3):I===a?(z=6,x=3):(z=7,x=4))}};
dDz=function(S,c,Q){var f,U=-1,a=c[1],X=0,z=7,x=4;a===0&&(z=138,x=3);for(f=0;f<=Q;f++){var I=a;a=c[(f+1)*2+1];if(!(++X<z&&I===a)){if(X<x){do FL(S,I,S.bl_tree);while(--X!==0)}else I!==0?(I!==U&&(FL(S,I,S.bl_tree),X--),FL(S,16,S.bl_tree),xM(S,X-3,2)):X<=10?(FL(S,17,S.bl_tree),xM(S,X-3,3)):(FL(S,18,S.bl_tree),xM(S,X-11,7));X=0;U=I;a===0?(z=138,x=3):I===a?(z=6,x=3):(z=7,x=4)}}};
vtH=function(S){var c=4093624447,Q;for(Q=0;Q<=31;Q++,c>>>=1)if(c&1&&S.dyn_ltree[Q*2]!==0)return 0;if(S.dyn_ltree[18]!==0||S.dyn_ltree[20]!==0||S.dyn_ltree[26]!==0)return 1;for(Q=32;Q<256;Q++)if(S.dyn_ltree[Q*2]!==0)return 1;return 0};
bH=function(S,c,Q){S.pending_buf[S.d_buf+S.last_lit*2]=c>>>8&255;S.pending_buf[S.d_buf+S.last_lit*2+1]=c&255;S.pending_buf[S.l_buf+S.last_lit]=Q&255;S.last_lit++;c===0?S.dyn_ltree[Q*2]++:(S.matches++,c--,S.dyn_ltree[(IR[Q]+256+1)*2]++,S.dyn_dtree[(c<256?n6[c]:n6[256+(c>>>7)])*2]++);return S.last_lit===S.lit_bufsize-1};
K6=function(S,c){S.msg=Nq[c];return c};
$M=function(S){for(var c=S.length;--c>=0;)S[c]=0};
uH=function(S){var c=S.state,Q=c.pending;Q>S.avail_out&&(Q=S.avail_out);Q!==0&&(Bt.arraySet(S.output,c.pending_buf,c.pending_out,Q,S.next_out),S.next_out+=Q,c.pending_out+=Q,S.total_out+=Q,S.avail_out-=Q,c.pending-=Q,c.pending===0&&(c.pending_out=0))};
Ht=function(S,c){var Q=S.block_start>=0?S.block_start:-1,f=S.strstart-S.block_start,U=0;if(S.level>0){S.strm.data_type===2&&(S.strm.data_type=vtH(S));kZY(S,S.l_desc);kZY(S,S.d_desc);rzT(S,S.dyn_ltree,S.l_desc.max_code);rzT(S,S.dyn_dtree,S.d_desc.max_code);kZY(S,S.bl_desc);for(U=18;U>=3&&S.bl_tree[P2z[U]*2+1]===0;U--);S.opt_len+=3*(U+1)+5+5+4;var a=S.opt_len+3+7>>>3;var X=S.static_len+3+7>>>3;X<=a&&(a=X)}else a=X=f+5;if(f+4<=a&&Q!==-1)xM(S,c?1:0,3),sIR(S,Q,f);else if(S.strategy===4||X===a)xM(S,2+(c?
1:0),3),eWT(S,j8,lH);else{xM(S,4+(c?1:0),3);Q=S.l_desc.max_code+1;f=S.d_desc.max_code+1;U+=1;xM(S,Q-257,5);xM(S,f-1,5);xM(S,U-4,4);for(a=0;a<U;a++)xM(S,S.bl_tree[P2z[a]*2+1],3);dDz(S,S.dyn_ltree,Q-1);dDz(S,S.dyn_dtree,f-1);eWT(S,S.dyn_ltree,S.dyn_dtree)}TST(S);c&&w2Y(S);S.block_start=S.strstart;uH(S.strm)};
Dz=function(S,c){S.pending_buf[S.pending++]=c};
p6=function(S,c){S.pending_buf[S.pending++]=c>>>8&255;S.pending_buf[S.pending++]=c&255};
LqH=function(S,c){var Q=S.max_chain_length,f=S.strstart,U=S.prev_length,a=S.nice_match,X=S.strstart>S.w_size-262?S.strstart-(S.w_size-262):0,z=S.window,x=S.w_mask,I=S.prev,n=S.strstart+258,b=z[f+U-1],N=z[f+U];S.prev_length>=S.good_match&&(Q>>=2);a>S.lookahead&&(a=S.lookahead);do{var l=c;if(z[l+U]===N&&z[l+U-1]===b&&z[l]===z[f]&&z[++l]===z[f+1]){f+=2;for(l++;z[++f]===z[++l]&&z[++f]===z[++l]&&z[++f]===z[++l]&&z[++f]===z[++l]&&z[++f]===z[++l]&&z[++f]===z[++l]&&z[++f]===z[++l]&&z[++f]===z[++l]&&f<n;);
l=258-(n-f);f=n-258;if(l>U){S.match_start=c;U=l;if(l>=a)break;b=z[f+U-1];N=z[f+U]}}}while((c=I[c&x])>X&&--Q!==0);return U<=S.lookahead?U:S.lookahead};
qq=function(S){var c=S.w_size,Q;do{var f=S.window_size-S.lookahead-S.strstart;if(S.strstart>=c+(c-262)){Bt.arraySet(S.window,S.window,c,c,0);S.match_start-=c;S.strstart-=c;S.block_start-=c;var U=Q=S.hash_size;do{var a=S.head[--U];S.head[U]=a>=c?a-c:0}while(--Q);U=Q=c;do a=S.prev[--U],S.prev[U]=a>=c?a-c:0;while(--Q);f+=c}if(S.strm.avail_in===0)break;U=S.strm;Q=S.window;a=S.strstart+S.lookahead;var X=U.avail_in;X>f&&(X=f);X===0?Q=0:(U.avail_in-=X,Bt.arraySet(Q,U.input,U.next_in,X,a),U.state.wrap===
1?U.adler=EtY(U.adler,Q,X,a):U.state.wrap===2&&(U.adler=hB(U.adler,Q,X,a)),U.next_in+=X,U.total_in+=X,Q=X);S.lookahead+=Q;if(S.lookahead+S.insert>=3)for(f=S.strstart-S.insert,S.ins_h=S.window[f],S.ins_h=(S.ins_h<<S.hash_shift^S.window[f+1])&S.hash_mask;S.insert&&!(S.ins_h=(S.ins_h<<S.hash_shift^S.window[f+3-1])&S.hash_mask,S.prev[f&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=f,f++,S.insert--,S.lookahead+S.insert<3););}while(S.lookahead<262&&S.strm.avail_in!==0)};
tLM=function(S,c){for(var Q;;){if(S.lookahead<262){qq(S);if(S.lookahead<262&&c===0)return 1;if(S.lookahead===0)break}Q=0;S.lookahead>=3&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,Q=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart);Q!==0&&S.strstart-Q<=S.w_size-262&&(S.match_length=LqH(S,Q));if(S.match_length>=3)if(Q=bH(S,S.strstart-S.match_start,S.match_length-3),S.lookahead-=S.match_length,S.match_length<=S.max_lazy_match&&S.lookahead>=3){S.match_length--;
do S.strstart++,S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart;while(--S.match_length!==0);S.strstart++}else S.strstart+=S.match_length,S.match_length=0,S.ins_h=S.window[S.strstart],S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+1])&S.hash_mask;else Q=bH(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++;if(Q&&(Ht(S,!1),S.strm.avail_out===0))return 1}S.insert=S.strstart<2?S.strstart:2;return c===4?(Ht(S,
!0),S.strm.avail_out===0?3:4):S.last_lit&&(Ht(S,!1),S.strm.avail_out===0)?1:2};
Tf=function(S,c){for(var Q,f;;){if(S.lookahead<262){qq(S);if(S.lookahead<262&&c===0)return 1;if(S.lookahead===0)break}Q=0;S.lookahead>=3&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,Q=S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart);S.prev_length=S.match_length;S.prev_match=S.match_start;S.match_length=2;Q!==0&&S.prev_length<S.max_lazy_match&&S.strstart-Q<=S.w_size-262&&(S.match_length=LqH(S,Q),S.match_length<=5&&(S.strategy===1||S.match_length===3&&
S.strstart-S.match_start>4096)&&(S.match_length=2));if(S.prev_length>=3&&S.match_length<=S.prev_length){f=S.strstart+S.lookahead-3;Q=bH(S,S.strstart-1-S.prev_match,S.prev_length-3);S.lookahead-=S.prev_length-1;S.prev_length-=2;do++S.strstart<=f&&(S.ins_h=(S.ins_h<<S.hash_shift^S.window[S.strstart+3-1])&S.hash_mask,S.prev[S.strstart&S.w_mask]=S.head[S.ins_h],S.head[S.ins_h]=S.strstart);while(--S.prev_length!==0);S.match_available=0;S.match_length=2;S.strstart++;if(Q&&(Ht(S,!1),S.strm.avail_out===0))return 1}else if(S.match_available){if((Q=
bH(S,0,S.window[S.strstart-1]))&&Ht(S,!1),S.strstart++,S.lookahead--,S.strm.avail_out===0)return 1}else S.match_available=1,S.strstart++,S.lookahead--}S.match_available&&(bH(S,0,S.window[S.strstart-1]),S.match_available=0);S.insert=S.strstart<2?S.strstart:2;return c===4?(Ht(S,!0),S.strm.avail_out===0?3:4):S.last_lit&&(Ht(S,!1),S.strm.avail_out===0)?1:2};
VLR=function(S,c){for(var Q,f,U,a=S.window;;){if(S.lookahead<=258){qq(S);if(S.lookahead<=258&&c===0)return 1;if(S.lookahead===0)break}S.match_length=0;if(S.lookahead>=3&&S.strstart>0&&(f=S.strstart-1,Q=a[f],Q===a[++f]&&Q===a[++f]&&Q===a[++f])){for(U=S.strstart+258;Q===a[++f]&&Q===a[++f]&&Q===a[++f]&&Q===a[++f]&&Q===a[++f]&&Q===a[++f]&&Q===a[++f]&&Q===a[++f]&&f<U;);S.match_length=258-(U-f);S.match_length>S.lookahead&&(S.match_length=S.lookahead)}S.match_length>=3?(Q=bH(S,1,S.match_length-3),S.lookahead-=
S.match_length,S.strstart+=S.match_length,S.match_length=0):(Q=bH(S,0,S.window[S.strstart]),S.lookahead--,S.strstart++);if(Q&&(Ht(S,!1),S.strm.avail_out===0))return 1}S.insert=0;return c===4?(Ht(S,!0),S.strm.avail_out===0?3:4):S.last_lit&&(Ht(S,!1),S.strm.avail_out===0)?1:2};
RWp=function(S,c){for(var Q;;){if(S.lookahead===0&&(qq(S),S.lookahead===0)){if(c===0)return 1;break}S.match_length=0;Q=bH(S,0,S.window[S.strstart]);S.lookahead--;S.strstart++;if(Q&&(Ht(S,!1),S.strm.avail_out===0))return 1}S.insert=0;return c===4?(Ht(S,!0),S.strm.avail_out===0?3:4):S.last_lit&&(Ht(S,!1),S.strm.avail_out===0)?1:2};
we=function(S,c,Q,f,U){this.good_length=S;this.max_lazy=c;this.nice_length=Q;this.max_chain=f;this.func=U};
yzz=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 Bt.Buf16(1146);this.dyn_dtree=new Bt.Buf16(122);this.bl_tree=new Bt.Buf16(78);$M(this.dyn_ltree);$M(this.dyn_dtree);$M(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new Bt.Buf16(16);this.heap=new Bt.Buf16(573);$M(this.heap);this.heap_max=this.heap_len=0;this.depth=new Bt.Buf16(573);$M(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};
otz=function(S,c){if(!S||!S.state||c>5||c<0)return S?K6(S,-2):-2;var Q=S.state;if(!S.output||!S.input&&S.avail_in!==0||Q.status===666&&c!==4)return K6(S,S.avail_out===0?-5:-2);Q.strm=S;var f=Q.last_flush;Q.last_flush=c;if(Q.status===42)if(Q.wrap===2)S.adler=0,Dz(Q,31),Dz(Q,139),Dz(Q,8),Q.gzhead?(Dz(Q,(Q.gzhead.text?1:0)+(Q.gzhead.hcrc?2:0)+(Q.gzhead.extra?4:0)+(Q.gzhead.name?8:0)+(Q.gzhead.comment?16:0)),Dz(Q,Q.gzhead.time&255),Dz(Q,Q.gzhead.time>>8&255),Dz(Q,Q.gzhead.time>>16&255),Dz(Q,Q.gzhead.time>>
24&255),Dz(Q,Q.level===9?2:Q.strategy>=2||Q.level<2?4:0),Dz(Q,Q.gzhead.os&255),Q.gzhead.extra&&Q.gzhead.extra.length&&(Dz(Q,Q.gzhead.extra.length&255),Dz(Q,Q.gzhead.extra.length>>8&255)),Q.gzhead.hcrc&&(S.adler=hB(S.adler,Q.pending_buf,Q.pending,0)),Q.gzindex=0,Q.status=69):(Dz(Q,0),Dz(Q,0),Dz(Q,0),Dz(Q,0),Dz(Q,0),Dz(Q,Q.level===9?2:Q.strategy>=2||Q.level<2?4:0),Dz(Q,3),Q.status=113);else{var U=8+(Q.w_bits-8<<4)<<8;U|=(Q.strategy>=2||Q.level<2?0:Q.level<6?1:Q.level===6?2:3)<<6;Q.strstart!==0&&(U|=
32);Q.status=113;p6(Q,U+(31-U%31));Q.strstart!==0&&(p6(Q,S.adler>>>16),p6(Q,S.adler&65535));S.adler=1}if(Q.status===69)if(Q.gzhead.extra){for(U=Q.pending;Q.gzindex<(Q.gzhead.extra.length&65535)&&(Q.pending!==Q.pending_buf_size||(Q.gzhead.hcrc&&Q.pending>U&&(S.adler=hB(S.adler,Q.pending_buf,Q.pending-U,U)),uH(S),U=Q.pending,Q.pending!==Q.pending_buf_size));)Dz(Q,Q.gzhead.extra[Q.gzindex]&255),Q.gzindex++;Q.gzhead.hcrc&&Q.pending>U&&(S.adler=hB(S.adler,Q.pending_buf,Q.pending-U,U));Q.gzindex===Q.gzhead.extra.length&&
(Q.gzindex=0,Q.status=73)}else Q.status=73;if(Q.status===73)if(Q.gzhead.name){U=Q.pending;do{if(Q.pending===Q.pending_buf_size&&(Q.gzhead.hcrc&&Q.pending>U&&(S.adler=hB(S.adler,Q.pending_buf,Q.pending-U,U)),uH(S),U=Q.pending,Q.pending===Q.pending_buf_size)){var a=1;break}a=Q.gzindex<Q.gzhead.name.length?Q.gzhead.name.charCodeAt(Q.gzindex++)&255:0;Dz(Q,a)}while(a!==0);Q.gzhead.hcrc&&Q.pending>U&&(S.adler=hB(S.adler,Q.pending_buf,Q.pending-U,U));a===0&&(Q.gzindex=0,Q.status=91)}else Q.status=91;if(Q.status===
91)if(Q.gzhead.comment){U=Q.pending;do{if(Q.pending===Q.pending_buf_size&&(Q.gzhead.hcrc&&Q.pending>U&&(S.adler=hB(S.adler,Q.pending_buf,Q.pending-U,U)),uH(S),U=Q.pending,Q.pending===Q.pending_buf_size)){a=1;break}a=Q.gzindex<Q.gzhead.comment.length?Q.gzhead.comment.charCodeAt(Q.gzindex++)&255:0;Dz(Q,a)}while(a!==0);Q.gzhead.hcrc&&Q.pending>U&&(S.adler=hB(S.adler,Q.pending_buf,Q.pending-U,U));a===0&&(Q.status=103)}else Q.status=103;Q.status===103&&(Q.gzhead.hcrc?(Q.pending+2>Q.pending_buf_size&&uH(S),
Q.pending+2<=Q.pending_buf_size&&(Dz(Q,S.adler&255),Dz(Q,S.adler>>8&255),S.adler=0,Q.status=113)):Q.status=113);if(Q.pending!==0){if(uH(S),S.avail_out===0)return Q.last_flush=-1,0}else if(S.avail_in===0&&(c<<1)-(c>4?9:0)<=(f<<1)-(f>4?9:0)&&c!==4)return K6(S,-5);if(Q.status===666&&S.avail_in!==0)return K6(S,-5);if(S.avail_in!==0||Q.lookahead!==0||c!==0&&Q.status!==666){f=Q.strategy===2?RWp(Q,c):Q.strategy===3?VLR(Q,c):sJ[Q.level].func(Q,c);if(f===3||f===4)Q.status=666;if(f===1||f===3)return S.avail_out===
0&&(Q.last_flush=-1),0;if(f===2&&(c===1?(xM(Q,2,3),FL(Q,256,j8),Q.bi_valid===16?(zf(Q,Q.bi_buf),Q.bi_buf=0,Q.bi_valid=0):Q.bi_valid>=8&&(Q.pending_buf[Q.pending++]=Q.bi_buf&255,Q.bi_buf>>=8,Q.bi_valid-=8)):c!==5&&(xM(Q,0,3),sIR(Q,0,0),c===3&&($M(Q.head),Q.lookahead===0&&(Q.strstart=0,Q.block_start=0,Q.insert=0))),uH(S),S.avail_out===0))return Q.last_flush=-1,0}if(c!==4)return 0;if(Q.wrap<=0)return 1;Q.wrap===2?(Dz(Q,S.adler&255),Dz(Q,S.adler>>8&255),Dz(Q,S.adler>>16&255),Dz(Q,S.adler>>24&255),Dz(Q,
S.total_in&255),Dz(Q,S.total_in>>8&255),Dz(Q,S.total_in>>16&255),Dz(Q,S.total_in>>24&255)):(p6(Q,S.adler>>>16),p6(Q,S.adler&65535));uH(S);Q.wrap>0&&(Q.wrap=-Q.wrap);return Q.pending!==0?0:1};
mDo=function(S){if(!(this instanceof mDo))return new mDo(S);S=this.options=Bt.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},S||{});S.raw&&S.windowBits>0?S.windowBits=-S.windowBits:S.gzip&&S.windowBits>0&&S.windowBits<16&&(S.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new SmR;this.strm.avail_out=0;var c=this.strm;var Q=S.level,f=S.method,U=S.windowBits,a=S.memLevel,X=S.strategy;if(c){var z=1;Q===-1&&(Q=6);U<0?(z=0,U=-U):U>15&&
(z=2,U-=16);if(a<1||a>9||f!==8||U<8||U>15||Q<0||Q>9||X<0||X>4)c=K6(c,-2);else{U===8&&(U=9);var x=new yzz;c.state=x;x.strm=c;x.wrap=z;x.gzhead=null;x.w_bits=U;x.w_size=1<<x.w_bits;x.w_mask=x.w_size-1;x.hash_bits=a+7;x.hash_size=1<<x.hash_bits;x.hash_mask=x.hash_size-1;x.hash_shift=~~((x.hash_bits+3-1)/3);x.window=new Bt.Buf8(x.w_size*2);x.head=new Bt.Buf16(x.hash_size);x.prev=new Bt.Buf16(x.w_size);x.lit_bufsize=1<<a+6;x.pending_buf_size=x.lit_bufsize*4;x.pending_buf=new Bt.Buf8(x.pending_buf_size);
x.d_buf=x.lit_bufsize;x.l_buf=3*x.lit_bufsize;x.level=Q;x.strategy=X;x.method=f;if(c&&c.state){c.total_in=c.total_out=0;c.data_type=2;Q=c.state;Q.pending=0;Q.pending_out=0;Q.wrap<0&&(Q.wrap=-Q.wrap);Q.status=Q.wrap?42:113;c.adler=Q.wrap===2?0:1;Q.last_flush=0;if(!cbc){f=Array(16);for(a=X=0;a<28;a++)for(GZM[a]=X,U=0;U<1<<Z8Z[a];U++)IR[X++]=a;IR[X-1]=a;for(a=X=0;a<16;a++)for(gtY[a]=X,U=0;U<1<<WqM[a];U++)n6[X++]=a;for(X>>=7;a<30;a++)for(gtY[a]=X<<7,U=0;U<1<<WqM[a]-7;U++)n6[256+X++]=a;for(U=0;U<=15;U++)f[U]=
0;for(U=0;U<=143;)j8[U*2+1]=8,U++,f[8]++;for(;U<=255;)j8[U*2+1]=9,U++,f[9]++;for(;U<=279;)j8[U*2+1]=7,U++,f[7]++;for(;U<=287;)j8[U*2+1]=8,U++,f[8]++;qzo(j8,287,f);for(U=0;U<30;U++)lH[U*2+1]=5,lH[U*2]=hWz(U,5);QBp=new DDc(j8,Z8Z,257,286,15);f8H=new DDc(lH,WqM,0,30,15);UOZ=new DDc([],JbM,0,19,7);cbc=!0}Q.l_desc=new p2Y(Q.dyn_ltree,QBp);Q.d_desc=new p2Y(Q.dyn_dtree,f8H);Q.bl_desc=new p2Y(Q.bl_tree,UOZ);Q.bi_buf=0;Q.bi_valid=0;TST(Q);Q=0}else Q=K6(c,-2);Q===0&&(c=c.state,c.window_size=2*c.w_size,$M(c.head),
c.max_lazy_match=sJ[c.level].max_lazy,c.good_match=sJ[c.level].good_length,c.nice_match=sJ[c.level].nice_length,c.max_chain_length=sJ[c.level].max_chain,c.strstart=0,c.block_start=0,c.lookahead=0,c.insert=0,c.match_length=c.prev_length=2,c.match_available=0,c.ins_h=0);c=Q}}else c=-2;if(c!==0)throw Error(Nq[c]);S.header&&(c=this.strm)&&c.state&&c.state.wrap===2&&(c.state.gzhead=S.header);if(S.dictionary){var I;typeof S.dictionary==="string"?I=a8Y(S.dictionary):Abp.call(S.dictionary)==="[object ArrayBuffer]"?
I=new Uint8Array(S.dictionary):I=S.dictionary;S=this.strm;a=I;X=a.length;if(S&&S.state)if(I=S.state,c=I.wrap,c===2||c===1&&I.status!==42||I.lookahead)c=-2;else{c===1&&(S.adler=EtY(S.adler,a,X,0));I.wrap=0;X>=I.w_size&&(c===0&&($M(I.head),I.strstart=0,I.block_start=0,I.insert=0),Q=new Bt.Buf8(I.w_size),Bt.arraySet(Q,a,X-I.w_size,I.w_size,0),a=Q,X=I.w_size);Q=S.avail_in;f=S.next_in;U=S.input;S.avail_in=X;S.next_in=0;S.input=a;for(qq(I);I.lookahead>=3;){a=I.strstart;X=I.lookahead-2;do I.ins_h=(I.ins_h<<
I.hash_shift^I.window[a+3-1])&I.hash_mask,I.prev[a&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=a,a++;while(--X);I.strstart=a;I.lookahead=2;qq(I)}I.strstart+=I.lookahead;I.block_start=I.strstart;I.insert=I.lookahead;I.lookahead=0;I.match_length=I.prev_length=2;I.match_available=0;S.next_in=f;S.input=U;S.avail_in=Q;I.wrap=c;c=0}else c=-2;if(c!==0)throw Error(Nq[c]);this._dict_set=!0}};
XqY=function(S,c){c=c||{};c.gzip=!0;c=new mDo(c);c.push(S,!0);if(c.err)throw c.msg||Nq[c.err];return c.result};
zro=function(S,c){var Q=OKz();Q&&Q.publish.call(Q,S.toString(),S,c)};
nyT=function(S,c,Q){var f=OKz();if(!f)return 0;var U=f.subscribe(S.toString(),function(a,X){var z=_.rC("ytPubsub2Pubsub2SkipSubKey");z&&z==U||(z=function(){if(xOZ[U])try{if(X&&S instanceof FMT&&S!=a)try{var x=S.dataClass,I=X;if(!I.args||!I.version)throw Error("Yc");try{if(!x.version_){var n=new x;x.version_=n.version}var b=x.version_}catch(N){}if(!b||I.version!=b)throw Error("Zc");try{X=Reflect.construct(x,_.VY(I.args))}catch(N){throw N.message="yt.pubsub2.Data.deserialize(): "+N.message,N;}}catch(N){throw N.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+S.toString()+": "+N.message,N;}c.call(Q||window,X)}catch(N){_.eG(N)}},BPp[S.toString()]?_.rC("yt.scheduler.instance")?_.Mq.addLowPriorityJob(z):_.zD(z,0):z())});
xOZ[U]=!0;I8Y[S.toString()]||(I8Y[S.toString()]=[]);I8Y[S.toString()].push(U);return U};
$Oc=function(){var S=bKc,c=nyT(NPY,function(Q){S.apply(void 0,arguments);KMT(c)});
return c};
KMT=function(S){var c=OKz();c&&(typeof S==="number"&&(S=[S]),_.PY(S,function(Q){c.unsubscribeByKey(Q);delete xOZ[Q]}))};
OKz=function(){return _.rC("ytPubsub2Pubsub2Instance")};
uTZ=function(S,c,Q){Q=Q===void 0?{sampleRate:.1}:Q;Math.random()<Math.min(.02,Q.sampleRate/100)&&zro("meta_logging_csi_event",{timerName:S,timelineData:c})};
_.jBZ=function(S){return S?(S=S.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.GR(S):null:null};
_.iH=function(S){return S?(S=S.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.XK(S):null:null};
YmH=function(){l8z||(l8z=_.iH(_.WY("WORKER_SERIALIZATION_URL")));return l8z||void 0};
_.HKZ=function(){var S=YmH();CZo||S===void 0||(CZo=new Worker(_.Oy(S),void 0));return CZo};
_.DOr=function(){return typeof Worker==="function"&&YmH()?!0:!1};
_.TPx=function(){if(_.DOr()&&!pqz){var S=function(Q){Q=Q.data;if(Q.op==="gzippedGelBatch"){var f=hrY.get(Q.key);f&&(qmY(Q.gzippedBatch,f.latencyPayload,f.url,f.options,f.sendFn),hrY.delete(Q.key))}},c=_.HKZ();
c&&(c.addEventListener("message",S),c.onerror=function(){hrY.clear()},pqz=!0)}};
WMc=function(S,c,Q,f,U){U=U===void 0?!1:U;var a={startTime:(0,_.Qk)(),ticks:{},infos:{}};if(Zz)try{var X=wqM(c);if(X!=null&&(X>sBM||X<MDY))f(S,Q);else{if(_.u("gzip_gel_with_worker")&&(_.u("initial_gzip_use_main_thread")&&!iKx||!_.u("initial_gzip_use_main_thread"))){pqz||_.TPx();var z=_.HKZ();if(z&&!U){hrY.set(ZKc,{latencyPayload:a,url:S,options:Q,sendFn:f});z.postMessage({op:"gelBatchToGzip",serializedBatch:c,key:ZKc});ZKc++;return}}var x=XqY(Ghr(c));qmY(x,a,S,Q,f)}}catch(I){_.dC(I),f(S,Q)}else f(S,
Q)};
qmY=function(S,c,Q,f,U){iKx=!1;var a=(0,_.Qk)();c.ticks.gelc=a;Gf++;_.u("disable_compression_due_to_performance_degredation")&&a-c.startTime>=gyZ&&(erZ++,_.u("abandon_compression_after_N_slow_zips")?Gf===_.a6("compression_disable_point")&&erZ>khp&&(Zz=!1):Zz=!1);rbr(c);f.headers||(f.headers={});f.headers["Content-Encoding"]="gzip";f.postBody=S;f.postParams=void 0;U(Q,f)};
dOY=function(S){var c=c===void 0?!1:c;var Q=Q===void 0?!1:Q;var f=(0,_.Qk)(),U={startTime:f,ticks:{},infos:{}},a=c?_.rC("yt.logging.gzipForFetch",!1):!0;if(Zz&&a){if(!S.body)return S;try{var X=Q?S.body:typeof S.body==="string"?S.body:JSON.stringify(S.body);a=X;if(!Q&&typeof X==="string"){var z=wqM(X);if(z!=null&&(z>sBM||z<MDY))return S;Q=c?{level:1}:void 0;a=XqY(Ghr(X),Q);var x=(0,_.Qk)();U.ticks.gelc=x;if(c){Gf++;if((_.u("disable_compression_due_to_performance_degredation")||_.u("disable_compression_due_to_performance_degradation_lr"))&&
x-f>=gyZ)if(erZ++,_.u("abandon_compression_after_N_slow_zips")||_.u("abandon_compression_after_N_slow_zips_lr")){c=erZ/Gf;var I=khp/_.a6("compression_disable_point");Gf>0&&Gf%_.a6("compression_disable_point")===0&&c>=I&&(Zz=!1)}else Zz=!1;rbr(U)}}S.headers=Object.assign({},{"Content-Encoding":"gzip"},S.headers||{});S.body=a;return S}catch(n){return _.dC(n),S}}else return S};
wqM=function(S){try{return(new Blob(S.split(""))).size}catch(c){return _.dC(c),null}};
rbr=function(S){_.u("gel_compression_csi_killswitch")||!_.u("log_gel_compression_latency")&&!_.u("log_gel_compression_latency_lr")||uTZ("gel_compression",S,{sampleRate:.1})};
vyR=function(){this.blockSize=-1};
Wt=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var S=1;S<this.blockSize;++S)this.pad_[S]=0;this.total_=this.inbuf_=0;this.reset()};
LMT=function(S){S=Object.assign({},S);delete S.Authorization;var c=_.PZo();if(c){var Q=new Wt;Q.update(_.WY("INNERTUBE_API_KEY"));Q.update(c);S.hash=_.mV(Q.digest(),3)}return S};
e8=function(){EyY||(EyY=new _.ge("yt.innertube"));return EyY};
tDR=function(S,c,Q,f){if(f)return null;f=e8().get("nextId",!0)||1;var U=e8().get("requests",!0)||{};U[f]={method:S,request:c,authState:LMT(Q),requestTime:Math.round((0,_.Qk)())};e8().set("nextId",f+1,86400,!0);e8().set("requests",U,86400,!0);return f};
VDR=function(S){var c=e8().get("requests",!0)||{};delete c[S];e8().set("requests",c,86400,!0)};
ybT=function(S){var c=e8().get("requests",!0);if(c){for(var Q in c){var f=c[Q];if(!(Math.round((0,_.Qk)())-f.requestTime<6E4)){var U=f.authState,a=LMT(_.C2Z(!1));_.Cn.equals(U,a)&&(U=f.request,"requestTimeMs"in U&&(U.requestTimeMs=Math.round((0,_.Qk)())),RrZ(S,f.method,U,{}));delete c[Q]}}e8().set("requests",c,86400,!0)}};
oyo=function(S){var c;return(S=S==null?void 0:(c=S.error)==null?void 0:c.code)&&S>=400&&S<=599?!1:!0};
mOz=function(S){var c;S=S==null?void 0:(c=S.error)==null?void 0:c.code;return!(S!==400&&S!==415)};
c4x=function(){if(S_c)return S_c();var S={};S_c=ct("LogsDatabaseV2",{objectStores:(S.LogsRequestsStore={addedAtVersion:2},S),shared:!1,upgrade:function(c,Q,f){Q(2)&&kM(c,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});Q(3);Q(5)&&(f=f.objectStore("LogsRequestsStore"),f.JSC$8646_wrapped.indexNames.contains("newRequest")&&f.JSC$8646_wrapped.deleteIndex("newRequest"),re(f,"newRequestV2",["status","interface","timestamp"]));Q(7)&&c.JSC$8631_wrapped.objectStoreNames.contains("sapisid")&&c.JSC$8631_wrapped.deleteObjectStore("sapisid");
Q(9)&&c.JSC$8631_wrapped.objectStoreNames.contains("SWHealthLog")&&c.JSC$8631_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return S_c()};
de=function(S){return _.E8(c4x(),S)};
fOY=function(S,c){var Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return Q={startTime:(0,_.Qk)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.F(X,de(c),2);if(X.nextAddress!=3)return f=X.yieldResult,U=Object.assign({},S,{options:JSON.parse(JSON.stringify(S.options)),interface:_.WY("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.F(X,f.put("LogsRequestsStore",U),3);a=X.yieldResult;Q.ticks.tc=(0,_.Qk)();QMx(Q);return X.return(a)})};
U6H=function(S,c){var Q,f,U,a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1)return Q={startTime:(0,_.Qk)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.F(n,de(c),2);if(n.nextAddress!=3)return f=n.yieldResult,U=_.WY("INNERTUBE_CONTEXT_CLIENT_NAME",0),a=[S,U,0],X=[S,U,(0,_.Qk)()],z=IDBKeyRange.bound(a,X),x="prev",_.u("use_fifo_for_networkless")&&(x="next"),I=void 0,_.F(n,_.tl(f,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(b){return _.f6(b.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:z,direction:x},function(N){N.getValue()&&(I=N.getValue(),S==="NEW"&&(I.status="QUEUED",N.update(I)))})}),3);
Q.ticks.tc=(0,_.Qk)();QMx(Q);return n.return(I)})};
J4p=function(S,c){var Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,de(c),2);Q=f.yieldResult;return f.return(_.tl(Q,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(U){var a=U.objectStore("LogsRequestsStore");return a.get(S).then(function(X){if(X)return X.status="QUEUED",a.put(X).then(function(){return X})})}))})};
aOZ=function(S,c,Q,f){Q=Q===void 0?!0:Q;var U;return _.O(function(a){if(a.nextAddress==1)return _.F(a,de(c),2);U=a.yieldResult;return a.return(_.tl(U,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(X){var z=X.objectStore("LogsRequestsStore");return z.get(S).then(function(x){return x?(x.status="NEW",Q&&(x.sendCount+=1),f!==void 0&&(x.options.compress=f),z.put(x).then(function(){return x})):g5.resolve(void 0)})}))})};
A4M=function(S,c){var Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,de(c),2);Q=f.yieldResult;return f.return(Q.delete("LogsRequestsStore",S))})};
XVZ=function(S){var c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,de(S),2);c=f.yieldResult;Q=(0,_.Qk)()-2592E6;return _.F(f,_.tl(c,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(U){return R6(U.objectStore("LogsRequestsStore"),{},function(a){if(a.getValue().timestamp<=Q)return a.delete().then(function(){return a.continue()})})}),0)})};
OJY=function(){_.O(function(S){return _.F(S,oUY("LogsDatabaseV2"),0)})};
QMx=function(S){_.u("nwl_csi_killswitch")||uTZ("networkless_performance",S,{sampleRate:1})};
_.x6T=function(S){return _.E8(zMY(),S)};
FSY=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,_.x6T(S),2);c=f.yieldResult;Q=(0,_.Qk)()-2592E6;return _.F(f,_.tl(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(U){return R6(U.objectStore("SWHealthLog"),{},function(a){if(a.getValue().timestamp<=Q)return a.delete().then(function(){return a.continue()})})}),0)})};
Bho=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,_.x6T(S),2);c=Q.yieldResult;return _.F(Q,c.clear("SWHealthLog"),0)})};
_.vt=function(S,c,Q,f,U,a,X){U=U===void 0?"":U;a=a===void 0?!1:a;X=X===void 0?!1:X;if(S)if(Q&&!iB("cobalt"))_.dC(new _.Yr("Legacy referrer-scrubbed ping detected")),S&&IOT(S,void 0,{scrubReferrer:!0});else if(U)ebp(S,c,"POST",U,f);else if(_.WY("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||f||X)ebp(S,c,"GET","",f,void 0,a,X);else{b:{try{c:{var z=new nkp({url:S});if(z.urlParamValues_.dsh==="1")var x=null;else{var I=z.urlParamValues_.ae;if(I==="1"){var n=z.urlParamValues_.adurl;if(n)try{x={version:3,directUrl:decodeURIComponent(n),
asyncUrl:H9H(z.JSC$7513_url_,"act=1","ri=1",bJY(z))};break c}catch(H){}}x=I==="2"?{version:4,directUrl:H9H(z.JSC$7513_url_,"dct=1","suid="+z.suid_,""),asyncUrl:H9H(z.JSC$7513_url_,"act=1","ri=1","suid="+z.suid_)}:null}}if(x){var b=_.Bi(S);var N=!(!b||!b.endsWith("/aclk")||_.v1(S,"ri")!=="1");break b}}catch(H){}N=!1}if(N){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(S,"")){var l=!0;break b}}catch(H){}l=!1}l?(c&&c(),Q=!0):Q=!1}else Q=!1;Q||IOT(S,c)}};
IOT=function(S,c,Q){Q=Q===void 0?{}:Q;var f=new Image,U=""+NhZ++;KSZ[U]=f;f.onload=f.onerror=function(){c&&KSZ[U]&&c();delete KSZ[U]};
Q.scrubReferrer&&(f.referrerPolicy="no-referrer");f.src=S};
Pt=function(S,c){$6o(S,c==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
uUr=function(S){var c;return((c=document.featurePolicy)==null?0:c.allowedFeatures().includes("attribution-reporting"))?S+"&nis=6":S+"&nis=5"};
jMo=function(S){if(!S)return!1;try{var c;if(((c=_.Lb(S))==null?void 0:c.asm)==="4")return!0}catch(Q){_.eG(Q)}return!1};
$6o=function(S,c){c?(S=uUr(S),_.vt(S,void 0,void 0,void 0,"",!0,!0)):_.vt(S)};
Y_p=function(){lOR||(lOR=new _.ge("yt.offline"));return lOR};
ClZ=function(S){if(_.u("offline_error_handling")){var c=Y_p().get("errors",!0)||{};c[S.message]={name:S.name,stack:S.stack};S.level&&(c[S.message].level=S.level);Y_p().set("errors",c,2592E3,!0)}};
D6M=function(S,c,Q,f){f=f===void 0?!1:f;c=_.u("web_fp_via_jspb")?Object.assign({},c):c;_.u("use_cfr_monitor")&&HJc(S,c);if(_.u("use_request_time_ms_header"))c.headers&&SJ(S)&&(c.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Qk)())));else{var U;if((U=c.postParams)==null?0:U.requestTimeMs)c.postParams.requestTimeMs=Math.round((0,_.Qk)())}Q&&Object.keys(c).length===0?_.vt(S):c.compress?c.postBody?(typeof c.postBody!=="string"&&(c.postBody=JSON.stringify(c.postBody)),WMc(S,c.postBody,
c,_.I6,f)):WMc(S,JSON.stringify(c.postParams),c,vQH,f):_.I6(S,c)};
pVR=function(S,c){_.u("use_event_time_ms_header")&&SJ(S)&&(c.headers||(c.headers={}),c.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.Qk)())));return c};
_.q_Y=function(){hMr||(hMr=new _.L6({logOfflineErrors:!0,enablePolling:!0}));return hMr};
HJc=function(S,c){var Q=c.onError?c.onError:function(){};
c.onError=function(U,a){EJ().requestComplete(S,!1);Q(U,a)};
var f=c.onSuccess?c.onSuccess:function(){};
c.onSuccess=function(U,a){EJ().requestComplete(S,!0);f(U,a)}};
_.ThZ=function(){return _.ok(document.location.toString())!=="www.youtube-nocookie.com"};
_.MmH=function(){return _.rC("ytNetworklessLoggingInitializationOptions")?_.wVc.isNwlInitialized:_.sMY};
iJH=function(S,c){if(_.u("polymer_on_demand_shady_dom")){var Q;var f=(Q=S.__shady_native_firstElementChild)!=null?Q:S.firstElementChild}else f=S.firstElementChild;for(;f;){if(S=c(f)?f:iJH(f,c))return S;f=f.nextElementSibling}return null};
GWz=function(){var S=document;if("visibilityState"in S)return S.visibilityState;var c=ZJr+"VisibilityState";if(c in S)return S[c]};
_.WSH=function(S,c){var Q;tB(S,function(f){Q=c[f];return!!Q});
return Q};
_.RR=function(S){var c=gkR(S);c?c.focus(void 0):_.Vk(S)};
gkR=function(S){return(S=iJH(S,function(c){return _.yk(c)?eMp(c)&&!!c.offsetParent:!1}))?S:null};
_.Vk=function(S,c){S.hasAttribute("tabindex")||S.setAttribute("tabindex","-1");S.focus(c)};
kWZ=function(S,c,Q,f){f=f===void 0?{}:f;S.addEventListener&&(c!="mouseenter"||"onmouseenter"in document?c!="mouseleave"||"onmouseenter"in document?c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"):c="mouseout":c="mouseover");return _.Cn.findKey(oR,function(U){var a=typeof U[4]==="boolean"&&U[4]==!!f,X=_.c_(U[4])&&_.c_(f)&&_.Cn.equals(U[4],f);return!!U.length&&U[0]==S&&U[1]==c&&U[2]==Q&&(a||X)})};
_.Se=function(S,c,Q,f){f=f===void 0?{}:f;if(!S||!S.addEventListener&&!S.attachEvent)return"";var U=kWZ(S,c,Q,f);if(U)return U;U=++r4Y.count+"";var a=!(c!="mouseenter"&&c!="mouseleave"||!S.addEventListener||"onmouseenter"in document);var X=a?function(z){z=new mO(z);if(!_.Mk(z.relatedTarget,function(x){return x==S},!0))return z.currentTarget=S,z.type=c,Q.call(S,z)}:function(z){z=new mO(z);
z.currentTarget=S;return Q.call(S,z)};
X=_.kC(X);S.addEventListener?(c=="mouseenter"&&a?c="mouseover":c=="mouseleave"&&a?c="mouseout":c=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(c="MozMousePixelScroll"),d6p()||typeof f==="boolean"?S.addEventListener(c,X,f):S.addEventListener(c,X,!!f.capture)):S.attachEvent("on"+c,X);oR[U]=[S,c,Q,X,f];return U};
_.Plz=function(S,c,Q){var f=f===void 0?{}:f;var U=_.Se(S,c,function(){_.vkT(U);Q.apply(S,arguments)},f)};
_.vkT=function(S){S&&(typeof S=="string"&&(S=[S]),_.PY(S,function(c){if(c in oR){var Q=oR[c],f=Q[0],U=Q[1],a=Q[3];Q=Q[4];f.removeEventListener?d6p()||typeof Q==="boolean"?f.removeEventListener(U,a,Q):f.removeEventListener(U,a,!!Q.capture):f.detachEvent&&f.detachEvent("on"+U,a);delete oR[c]}}))};
cG=function(S){this.callback_=S;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(S=0;S<4;S++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.Se(window,"mousemove",(0,_.H1)(this.onMouseMove_,this));this.timerId_=_.xr((0,_.H1)(this.checkPosition_,this),25)};
Ekz=function(){var S={};var c=S.preferMobileEvents===void 0?!1:S.preferMobileEvents;S=S.enableScrollEventListener===void 0?!0:S.enableScrollEventListener;if(_.rC("_lact",window)==null){var Q=parseInt(_.WY("LACT"),10);Q=isFinite(Q)?Date.now()-Math.max(Q,0):-1;_.m5("_lact",Q,window);_.m5("_fact",Q,window);Q==-1&&_.Q1();_.Se(document,"keydown",_.Q1);_.Se(document,"keyup",_.Q1);_.Se(document,"mousedown",_.Q1);_.Se(document,"mouseup",_.Q1);c?_.Se(window,"touchmove",function(){LSZ("touchmove",200)},{passive:!0}):
(_.Se(window,"resize",function(){LSZ("resize",200)}),S&&_.Se(window,"scroll",function(){LSZ("scroll",200)}));
new cG(function(){LSZ("mouse",100)});
_.Se(document,"touchstart",_.Q1,{passive:!0});_.Se(document,"touchend",_.Q1,{passive:!0})}};
LSZ=function(S,c){tmR[S]||(tmR[S]=!0,_.Mq.addLowPriorityJob(function(){_.Q1();tmR[S]=!1},c))};
_.Q1=function(){_.rC("_lact",window)==null&&Ekz();var S=Date.now();_.m5("_lact",S,window);_.rC("_fact",window)==-1&&_.m5("_fact",S,window);(S=_.rC("ytglobal.ytUtilActivityCallback_"))&&S()};
_.f1=function(){var S=_.rC("_lact",window);return S==null?-1:Math.max(Date.now()-S,0)};
_.Ac=function(S,c,Q){var f=_.UH();if(f&&c){var U=f.subscribe(S,function(){var a=arguments,X=function(){Jc[U]&&c.apply&&typeof c.apply=="function"&&c.apply(Q||window,a)};
try{_.Vmz[S]?X():_.zD(X,0)}catch(z){_.eG(z)}},Q);
Jc[U]=!0;aT[S]||(aT[S]=[]);aT[S].push(U);return U}return 0};
_.RMz=function(S){var c=_.UH();c&&(typeof S==="number"?S=[S]:typeof S==="string"&&(S=[parseInt(S,10)]),_.PY(S,function(Q){c.unsubscribeByKey(Q);delete Jc[Q]}))};
_.y4Y=function(S,c){var Q=_.UH();Q&&Q.publish.apply(Q,arguments)};
_.m6T=function(S){var c=_.UH();if(c)if(c.clear(S),S)okY(S);else for(var Q in aT)okY(Q)};
_.UH=function(){return _.QY.ytPubsubPubsubInstance};
okY=function(S){aT[S]&&(S=aT[S],_.PY(S,function(c){Jc[c]&&delete Jc[c]}),S.length=0)};
Srp=function(){var S,c;return"h5vcc"in Xc&&((S=Xc.h5vcc.traceEvent)==null?0:S.traceBegin)&&((c=Xc.h5vcc.traceEvent)==null?0:c.traceEnd)?1:"performance"in Xc&&Xc.performance.mark&&Xc.performance.measure?2:0};
cqM=function(S){var c=Srp();switch(c){case 1:Xc.h5vcc.traceEvent.traceBegin("YTLR",S);break;case 2:Xc.performance.mark(S+"-start");break;case 0:break;default:_.OZ(c,"unknown trace type")}};
Q1T=function(S){var c=Srp();switch(c){case 1:Xc.h5vcc.traceEvent.traceEnd("YTLR",S);break;case 2:c=S+"-start";var Q=S+"-end";Xc.performance.mark(Q);Xc.performance.measure(S,c,Q);break;case 0:break;default:_.OZ(c,"unknown trace type")}};
fIz=function(S){var c,Q;(Q=(c=window).onerror)==null||Q.call(c,S.message,"",0,0,S)};
U_M=function(S){if(_.u("web_lifecycle_error_handling_killswitch"))return S();try{return S()}catch(c){fIz(c)}};
Jqc=function(S){return[S.auth===void 0?"undefined":S.auth,S.isJspb===void 0?"undefined":S.isJspb,S.cttAuthInfo===void 0?"undefined":S.cttAuthInfo,S.tier===void 0?"undefined":S.tier].join("/")};
_.Y=function(S,c){if(S)return S[c.name]};
Fc=function(){var S=_.rC("yt.logging.ims");S||(S=new OH,_.m5("yt.logging.ims",S));return S};
IIz=function(S,c){if(S.endpoint==="log_event"){aIc(S);var Q=AqZ(S),f=X0z(S.payload)||"",U=OUo(f),a=200;if(U){if(U.enabled===!1&&!_.u("web_payload_policy_disabled_killswitch"))return;a=zfZ(U.tier);if(a===400){x_H(S,c);return}}BG[Q]=!0;Q={cttAuthInfo:Q,isJspb:!1,tier:a};Fc().storePayload(Q,S.payload);FvM(c,!1,Q,BMc(f))}};
bUx=function(S,c,Q){if(c.endpoint==="log_event"){aIc(void 0,c);var f=AqZ(c,!0),U=OUo(S),a=200;if(U){if(U.enabled===!1&&!_.u("web_payload_policy_disabled_killswitch"))return;a=zfZ(U.tier);if(a===400){nnZ(S,c,Q);return}}BG[f]=!0;f={cttAuthInfo:f,isJspb:!0,tier:a};Fc().storePayload(f,ca(c.payload));FvM(Q,!0,f,BMc(S))}};
FvM=function(S,c,Q,f){c=c===void 0?!1:c;f=f===void 0?!1:f;S&&(IT=new S);S=_.a6("tvhtml5_logging_max_batch_ads_fork")||_.a6("tvhtml5_logging_max_batch")||_.a6("web_logging_max_batch")||100;var U=(0,_.Qk)(),a=NMx(c,Q.tier),X=a.lastDebounceQueueFromLogTimeMs;f&&(a.useVideoStatsEndPoint=!0);f=0;Q&&(f=Fc().getSequenceCount(Q));var z=function(){KvM({writeThenSend:!0},c,Q.tier)};
f>=1E3?z():f>=S?$_R||($_R=uVp(function(){z();$_R=void 0},0)):U-X>=10&&(j1Z(c,Q.tier),a.lastDebounceQueueFromLogTimeMs=U)};
x_H=function(S,c){if(S.endpoint==="log_event"){_.u("more_accurate_gel_parser")&&Fc().storePayload({isJspb:!1},S.payload);aIc(S);var Q=AqZ(S),f=new Map;f.set(Q,[S.payload]);var U=X0z(S.payload)||"";c&&(IT=new c);return new _.n1(function(a,X){IT&&IT.isReady()?lIz(f,IT,a,X,{bypassNetworkless:!0},!0,BMc(U)):a()})}};
nnZ=function(S,c,Q){if(c.endpoint==="log_event"){aIc(void 0,c);var f=AqZ(c,!0),U=new Map;U.set(f,[ca(c.payload)]);Q&&(IT=new Q);return new _.n1(function(a){IT&&IT.isReady()?Yrp(U,IT,a,{bypassNetworkless:!0},!0,BMc(S)):a()})}};
AqZ=function(S,c){var Q="";if(S.dangerousLogToVisitorSession)Q="visitorOnlyApprovedKey";else if(S.cttAuthInfo){if(c===void 0?0:c){c=S.cttAuthInfo.token;Q=S.cttAuthInfo;var f=new Cwx;Q.videoId?f.setVideoId(Q.videoId):Q.playlistId&&b5(f,2,HUZ,g1(Q.playlistId));D_T[c]=f}else c=S.cttAuthInfo,Q={},c.videoId?Q.videoId=c.videoId:c.playlistId&&(Q.playlistId=c.playlistId),p0z[S.cttAuthInfo.token]=Q;Q=S.cttAuthInfo.token}return Q};
KvM=function(S,c,Q){S=S===void 0?{}:S;c=c===void 0?!1:c;new _.n1(function(f,U){var a=NMx(c,Q),X=a.useVideoStatsEndPoint;a.useVideoStatsEndPoint=!1;hfH(a.queueTimer);hfH(a.queueMaxTimer);a.queueMaxTimer=0;IT&&IT.isReady()?Q===void 0&&_.u("enable_web_tiered_gel")?qrT(f,U,S,c,300,X):qrT(f,U,S,c,Q,X):(j1Z(c,Q),f())})};
qrT=function(S,c,Q,f,U,a){var X=IT;Q=Q===void 0?{}:Q;f=f===void 0?!1:f;U=U===void 0?200:U;a=a===void 0?!1:a;var z=new Map,x=new Map,I={isJspb:f,cttAuthInfo:void 0,tier:U},n={isJspb:f,cttAuthInfo:void 0};if(f){c=_.A(Object.keys(BG));for(U=c.next();!U.done;U=c.next())U=U.value,x=_.u("enable_web_tiered_gel")?Fc().smartExtractMatchingEntries({keys:[I,n],sizeLimit:1E3}):Fc().extractMatchingEntries({isJspb:!0,cttAuthInfo:U}),x.length>0&&z.set(U,x),(_.u("web_fp_via_jspb_and_json")&&Q.writeThenSend||!_.u("web_fp_via_jspb_and_json"))&&
delete BG[U];Yrp(z,X,S,Q,!1,a)}else{z=_.A(Object.keys(BG));for(I=z.next();!I.done;I=z.next())I=I.value,n=_.u("enable_web_tiered_gel")?Fc().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:I,tier:U},{isJspb:!1,cttAuthInfo:I}],sizeLimit:1E3}):Fc().extractMatchingEntries({isJspb:!1,cttAuthInfo:I}),n.length>0&&x.set(I,n),(_.u("web_fp_via_jspb_and_json")&&Q.writeThenSend||!_.u("web_fp_via_jspb_and_json"))&&delete BG[I];lIz(x,X,S,c,Q,!1,a)}};
j1Z=function(S,c){S=S===void 0?!1:S;c=c===void 0?200:c;var Q=function(){KvM({writeThenSend:!0},S,c)},f=NMx(S,c),U=f===TMH||f===w0z?5E3:s1p;
_.u("web_gel_timeout_cap")&&!f.queueMaxTimer&&(U=uVp(function(){Q()},U),f.queueMaxTimer=U);
hfH(f.queueTimer);U=_.WY("LOGGING_BATCH_TIMEOUT",_.a6("web_gel_debounce_ms",1E4));_.u("shorten_initial_gel_batch_timeout")&&M$c&&(U=iUz);U=uVp(function(){_.a6("gel_min_batch_size")>0?Fc().getSequenceCount({cttAuthInfo:void 0,isJspb:S,tier:c})>=ZUp&&Q():Q()},U);
f.queueTimer=U};
lIz=function(S,c,Q,f,U,a,X){U=U===void 0?{}:U;var z=Math.round((0,_.Qk)()),x=S.size,I=G4p(X);S=_.A(S);var n=S.next();for(X={};!n.done;X={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},n=S.next()){var b=_.A(n.value);n=b.next().value;b=b.next().value;X.batchRequest=_.Cn.unsafeClone({context:_.ntY(c.config_||_.UJ())});if(!_.yY(b)&&!_.u("throw_err_when_logevent_malformed_killswitch")){f();break}X.batchRequest.events=b;
(b=p0z[n])&&Wvp(X.batchRequest,n,b);delete p0z[n];X.dangerousLogToVisitorSession=n==="visitorOnlyApprovedKey";gnc(X.batchRequest,z,X.dangerousLogToVisitorSession);efZ(U);X.onSuccess$jscomp$3=function(N){_.u("start_client_gcf")&&_.Mq.addLowPriorityJob(function(){return _.O(function(l){return _.F(l,k4Y(N),0)})});
x--;x||Q()};
X.networkFailures=0;X.onError$jscomp$5=function(N){return function(){N.networkFailures++;if(U.bypassNetworkless&&N.networkFailures===1)try{RrZ(c,I,N.batchRequest,rqc({writeThenSend:!0},N.dangerousLogToVisitorSession,N.onSuccess$jscomp$3,N.onError$jscomp$5,a)),M$c=!1}catch(l){_.eG(l),f()}x--;x||Q()}}(X);
try{RrZ(c,I,X.batchRequest,rqc(U,X.dangerousLogToVisitorSession,X.onSuccess$jscomp$3,X.onError$jscomp$5,a)),M$c=!1}catch(N){_.eG(N),f()}}};
Yrp=function(S,c,Q,f,U,a){f=f===void 0?{}:f;var X=Math.round((0,_.Qk)()),z={value:S.size},x=new Map([].concat(_.Hs(S)));x=_.A(x);for(var I=x.next();!I.done;I=x.next()){var n=_.A(I.value).next().value,b=S.get(n);I=new d_R;var N=c.config_||_.UJ(),l=new NP,H=new vnR;_.bN(H,1,N.innertubeContextHostLanguage);_.bN(H,2,N.innertubeContextGeoLocation);_.aR(H,16,N.innertubeContextClientNameFieldNumber);_.bN(H,17,N.innertubeContextClientVersion);if(N.innertubeContextClientConfigInfo){var q=N.innertubeContextClientConfigInfo,
w=new XL;q.coldConfigData&&_.bN(w,1,q.coldConfigData);q.appInstallData&&_.bN(w,6,q.appInstallData);q.coldHashData&&_.bN(w,3,q.coldHashData);q.hotHashData&&w.setHotHashData(q.hotHashData);_.Qx(H,62,w)}(q=_.QY.devicePixelRatio)&&q!=1&&_.AB(H,65,_.zO(q));q=TKT();q!==""&&_.bN(H,54,q);q=wnY();if(q.length>0){w=new PwM;for(var g=0;g<q.length;g++){var r=new K1;r.setKey(q[g].key);b5(r,2,LvR,g1(q[g].value));$L(w,15,K1,r)}_.Qx(l,5,w)}O8R(N,H);zWZ(l);xDc(H);FqR(N,H);BSZ(H);_.u("start_client_gcf")&&I5Y(H);_.WY("DELEGATED_SESSION_ID")&&
!_.u("pageid_as_header_web")&&(N=new u5,_.bN(N,3,_.WY("DELEGATED_SESSION_ID")));!_.u("fill_delegate_context_in_gel_killswitch")&&(q=_.WY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(w=_.JB(l,u5,3)||new u5,N=l,q=_.bN(w,18,q),_.Qx(N,3,q));N=H;q=_.A(Object.entries(_.Lb(_.WY("DEVICE",""))));for(w=q.next();!w.done;w=q.next())g=_.A(w.value),w=g.next().value,g=g.next().value,w==="cbrand"?_.bN(N,12,g):w==="cmodel"?_.bN(N,13,g):w==="cbr"?_.bN(N,87,g):w==="cbrver"?_.bN(N,88,g):w==="cos"?_.bN(N,18,
g):w==="cosver"?_.bN(N,19,g):w==="cplatform"&&_.aR(N,42,AGo(g));l.setClient(H);_.Qx(I,1,l);if(H=D_T[n])a:{if(_.bG(H,je(H,HUZ,1)))l=1;else if(H.getPlaylistId())l=2;else break a;_.Qx(I,4,H);H=I.getContext()||new NP;N=_.JB(H,u5,3)||new u5;q=new l5;q.setToken(n);_.aR(q,1,l);$L(N,12,l5,q);_.Qx(H,3,N)}delete D_T[n];n=n==="visitorOnlyApprovedKey";EnY()||_.YL(I,2,X);!n&&(l=_.WY("EVENT_ID"))&&(H=t$z(),N=new V$Y,_.bN(N,1,l),_.YL(N,2,H),_.Qx(I,5,N));efZ(f);if(_.u("jspb_serialize_with_worker")&&(l=_.HKZ())&&
f.writeThenSend){_.RfH.set(yqZ,{client:c,resolve:Q,networklessOptions:f,isIsolated:U,useVSSEndpoint:a,dangerousLogToVisitorSession:n,requestsOutstanding:z});l.postMessage({op:"gelBatchToSerialize",batchRequest:ca(I),clientEvents:b,key:yqZ});yqZ++;break}if(b){l=[];for(H=0;H<b.length;H++)try{l.push(new C1(b[H]))}catch(E){_.eG(new _.Yr("Transport failed to deserialize "+String(b[H])))}b=l}else b=[];b=_.A(b);for(l=b.next();!l.done;l=b.next())$L(I,3,C1,l.value);b={startTime:(0,_.Qk)(),ticks:{},infos:{}};
I=I.serialize();b.ticks.geljspc=(0,_.Qk)();_.u("log_jspb_serialize_latency")&&uTZ("gel_jspb_serialize",b,{sampleRate:.1});_.onp(I,c,Q,f,U,a,n,z)}};
_.onp=function(S,c,Q,f,U,a,X,z){f=f===void 0?{}:f;z=z===void 0?{value:0}:z;a=G4p(a);f=rqc(f,X,function(x){_.u("start_client_gcf")&&_.Mq.addLowPriorityJob(function(){return _.O(function(I){return _.F(I,k4Y(x),0)})});
z.value--;z.value||Q()},function(){z.value--;
z.value||Q()},U);
f.headers["Content-Type"]="application/json+protobuf";f.postBodyFormat="JSPB";f.postBody=S;RrZ(c,a,"",f);M$c=!1};
efZ=function(S){_.u("always_send_and_write")&&(S.writeThenSend=!1)};
rqc=function(S,c,Q,f,U){S={retry:!0,onSuccess:Q,onError:f,networklessOptions:S,dangerousLogToVisitorSession:c,bypassMonitoring:!!U,headers:{},postBodyFormat:"",postBody:"",compress:_.u("compress_gel")||_.u("compress_gel_lr")};EnY()&&(S.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.Qk)())));return S};
gnc=function(S,c,Q){EnY()||(S.requestTimeMs=String(c));_.u("unsplit_gel_payloads_in_logs")&&(S.unsplitGelPayloadsInLogs=!0);!Q&&(c=_.WY("EVENT_ID"))&&(Q=t$z(),S.serializedClientEventId={serializedEventId:c,clientCounter:String(Q)})};
t$z=function(){var S=_.WY("BATCH_CLIENT_COUNTER")||0;S||(S=Math.floor(Math.random()*65535/2));S++;S>65535&&(S=1);_.G_("BATCH_CLIENT_COUNTER",S);return S};
Wvp=function(S,c,Q){if(Q.videoId)var f="VIDEO";else if(Q.playlistId)f="PLAYLIST";else return;S.credentialTransferTokenTargetId=Q;S.context=S.context||{};S.context.user=S.context.user||{};S.context.user.credentialTransferTokens=[{token:c,scope:f}]};
aIc=function(S,c){var Q=_.Al("il_payload_scraping")==="enable_il_payload_scraping";if(!_.rC("yt.logging.transport.enableScrapingForTest"))if(Q)m_Z=[],_.m5("yt.logging.transport.enableScrapingForTest",!0),_.m5("yt.logging.transport.scrapedPayloadsForTesting",m_Z),_.m5("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.m5("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.m5("yt.logging.transport.scrapeClientEvent",!0);else return;Q=_.rC("yt.logging.transport.scrapedPayloadsForTesting");var f=_.rC("yt.logging.transport.payloadToScrape");c&&(c=_.rC("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(c.payload)())&&Q.push(c);c=_.rC("yt.logging.transport.scrapeClientEvent");if(f&&f.length>=1)for(var U=0;U<f.length;U++)if(S&&S.payload[f[U]])if(c)Q.push(S.payload);else{var a=void 0;Q.push(((a=S)==null?void 0:a.payload)[f[U]])}_.m5("yt.logging.transport.scrapedPayloadsForTesting",
Q)};
EnY=function(){return _.u("use_request_time_ms_header")||_.u("lr_use_request_time_ms_header")};
uVp=function(S,c){return _.u("transport_use_scheduler")===!1?_.zD(S,c):_.u("logging_avoid_blocking_during_navigation")||_.u("lr_logging_avoid_blocking_during_navigation")?_.HG(_.Mq,function(){if(_.SXT().currentState==="none")S();else{var Q={};_.SXT().install((Q.none={callback:S},Q))}},c):_.HG(_.Mq,S,c)};
hfH=function(S){_.u("transport_use_scheduler")?_.Mq.cancelJob(S):_.FJ(S)};
k4Y=function(S){var c,Q,f,U,a,X,z,x,I,n;return _.O(function(b){return b.nextAddress==1?(f=(c=S)==null?void 0:(Q=c.responseContext)==null?void 0:Q.globalConfigGroup,U=_.Y(f,c2x),X=(a=f)==null?void 0:a.hotHashData,z=_.Y(f,QWR),I=(x=f)==null?void 0:x.coldHashData,(n=_.fl().resolve(_.QS(DE)))?X?U?_.F(b,fcz(n,X,U),2):_.F(b,fcz(n,X),2):b.jumpTo(2):b.return()):I?z?_.F(b,UKM(n,I,z),0):_.F(b,UKM(n,I),0):b.jumpTo(0)})};
NMx=function(S,c){c=c===void 0?200:c;return S?c===300?TMH:J2T:c===300?w0z:acH};
OUo=function(S){if(_.u("enable_web_tiered_gel")){S=A2p[S||""];var c,Q,f,U=_.fl().resolve(_.QS(DE))==null?void 0:(c=XIc())==null?void 0:(Q=c.loggingHotConfig)==null?void 0:(f=Q.eventLoggingConfig)==null?void 0:f.payloadPolicies;if(U)for(c=0;c<U.length;c++)if(U[c].payloadNumber===S)return U[c]}};
X0z=function(S){S=Object.keys(S);S=_.A(S);for(var c=S.next();!c.done;c=S.next())if(c=c.value,A2p[c])return c};
zfZ=function(S){switch(S){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}};
BMc=function(S){return S==="gelDebuggingEvent"};
G4p=function(S){return(S===void 0?0:S)&&_.u("vss_through_gel_video_stats")?"video_stats":"log_event"};
hc=function(S,c,Q,f){f=f===void 0?{}:f;var U={},a=Math.round(f.timestamp||(0,_.Qk)());U.eventTimeMs=a<Number.MAX_SAFE_INTEGER?a:0;U[S]=c;S=_.f1();U.context={lastActivityMs:String(f.timestamp||!isFinite(S)?-1:S)};f.sequenceGroup&&!_.u("web_gel_sequence_info_killswitch")&&(S=U.context,c=f.sequenceGroup,c={index:OvY(c),groupKey:c},S.sequence=c,f.endOfSequence&&delete p1[f.sequenceGroup]);(f.sendIsolatedPayload?x_H:IIz)({endpoint:"log_event",payload:U,cttAuthInfo:f.cttAuthInfo,dangerousLogToVisitorSession:f.dangerousLogToVisitorSession},
Q)};
OvY=function(S){p1[S]=S in p1?p1[S]+1:0;return p1[S]};
_.Te=function(S,c,Q){Q=Q===void 0?{}:Q;var f=qP;_.gC("ytLoggingEventsDefaultDisabled",!1)&&qP===qP&&(f=null);hc(S,c,f,Q)};
_.wQ=function(){if(_.u("web_fp_via_jspb")){var S=!0;S=S===void 0?!1:S;var c=zox;zox=[];if(c){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,S?hc(Q.payloadName,Q.payload,qP,Q.options):_.Te(Q.payloadName,Q.payload,Q.options)}KvM(void 0,!0);if(!_.u("web_fp_via_jspb_and_json"))return}KvM(void 0,!1)};
xKZ=function(S,c){var Q;if((Q=c)==null?0:Q.componentStack)return c;if(S=S.componentStack)c||(c={}),c.componentStack=S;return c};
Fdc=function(){_.PY(_.WY("ERRORS")||[],function(S){_.sH.apply(null,S)});
_.G_("ERRORS",[])};
_.MP=function(S){_.sH(S)};
_.i5=function(S){_.sH(S,"WARNING")};
BHo=function(S){S instanceof Error?_.sH(S):(S=_.c_(S)?JSON.stringify(S):String(S),S=new _.Yr(S),S.name="RejectedPromiseError",_.i5(S))};
IcZ=function(S,c,Q,f,U,a){c=c===void 0?"Unknown file":c;Q=Q===void 0?0:Q;var X=!1,z=xmY("log_window_onerror_fraction");if(z&&Math.random()<z)X=!0;else{z=document.getElementsByTagName("script");for(var x=0,I=z.length;x<I;x++)if(z[x].src.indexOf("/debug-")>0){X=!0;break}}X&&(X=!1,U?X=!0:(typeof S==="string"?z=S:ErrorEvent&&S instanceof ErrorEvent?(X=!0,z=S.message,c=S.filename,Q=S.lineno,f=S.colno):(z="Unknown error",c="Unknown file",Q=0),U=new _.Yr(z),U.name="UnhandledWindowError",U.message=z,U.fileName=
c,U.lineNumber=Q,isNaN(f)?delete U.columnNumber:U.columnNumber=f),_.u("wiz_enable_component_stack_propagation_killswitch")||(a=xKZ(U,a)),a&&_.ZE(U,a),X?_.sH(U):_.i5(U))};
_.sH=function(S,c,Q,f,U,a,X,z){a=a===void 0?{}:a;a.name=Q||_.WY("INNERTUBE_CONTEXT_CLIENT_NAME",1);a.version=f||_.WY("INNERTUBE_CONTEXT_CLIENT_VERSION");Q=a;c=c===void 0?"ERROR":c;X=X===void 0?!1:X;c=c===void 0?"ERROR":c;X=X===void 0?!1:X;if(S&&(S.hasOwnProperty("level")&&S.level&&(c=S.level),_.u("console_log_js_exceptions")&&(f=[],f.push("Name: "+S.name),f.push("Message: "+S.message),S.hasOwnProperty("params")&&f.push("Error Params: "+JSON.stringify(S.params)),S.hasOwnProperty("args")&&f.push("Error args: "+
JSON.stringify(S.args)),f.push("File name: "+S.fileName),f.push("Stacktrace: "+S.stack),f=f.join("\n"),window.console.log(f,S)),!(nzz>=5))){f=[];U=_.A(bvY);for(a=U.next();!a.done;a=U.next()){a=a.value;try{a()&&f.push(a())}catch(w){}}f=[].concat(_.Hs(NHH),_.Hs(f));var x=KdY(S);U=x.message||"Unknown Error";a=x.name||"UnknownError";var I=x.stack||S.stacktrace||"Not available";if(I.startsWith(a+": "+U)){var n=I.split("\n");n.shift();I=n.join("\n")}n=x.lineNumber||"Not available";x=x.fileName||"Not available";
var b=0;if(S.hasOwnProperty("args")&&S.args&&S.args.length)for(var N=0;N<S.args.length&&!(b=aqY(S.args[N],"params."+N,Q,b),b>=500);N++);else if(S.hasOwnProperty("params")&&S.params){var l=S.params;if(typeof S.params==="object")for(N in l){if(l[N]){var H="params."+N,q=Nx(l[N]);Q[H]=q;b+=H.length+q.length;if(b>500)break}}else Q.params=Nx(l)}if(f.length)for(N=0;N<f.length&&!(b=aqY(f[N],"params.context."+N,Q,b),b>=500);N++);navigator.vendor&&!Q.hasOwnProperty("vendor")&&(Q["device.vendor"]=navigator.vendor);
N={message:U,name:a,lineNumber:n,fileName:x,stack:I,params:Q,sampleWeight:1};Q=Number(S.columnNumber);isNaN(Q)||(N.lineNumber=N.lineNumber+":"+Q);if(S.level==="IGNORED")S=0;else a:{S=$KY();Q=_.A(S.messageWeights);for(f=Q.next();!f.done;f=Q.next())if(f=f.value,N.message&&N.message.match(f.messageRegExp)){S=f.weight;break a}S=_.A(S.callbackWeights);for(Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,Q.callback(N)){S=Q.weight;break a}S=1}N.sampleWeight=S;S=_.A(uBZ);for(Q=S.next();!Q.done;Q=S.next())if(Q=
Q.value,Q.patternsForType[N.name])for(U=_.A(Q.patternsForType[N.name]),f=U.next();!f.done;f=U.next())if(a=f.value,f=N.message.match(a.regexp)){N.params["params.error.original"]=f[0];U=a.groups;a={};for(n=0;n<U.length;n++)a[U[n]]=f[n+1],N.params["params.error."+U[n]]=f[n+1];N.message=Q.messageFn(a);break}N.params||(N.params={});S=$KY();N.params["params.errorServiceSignature"]="msg="+S.messageWeights.length+"&cb="+S.callbackWeights.length;N.params["params.serviceWorker"]="false";_.QY.document&&_.QY.document.querySelectorAll&&
(N.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new Ge(jWp,"sample")).constructor!==Ge&&(N.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(N);if(N.sampleWeight!==0&&!lcp.has(N.message)){if(X&&_.u("web_enable_error_204"))YXR(c===void 0?"ERROR":c,N);else{c=c===void 0?"ERROR":c;c==="ERROR"?(C7R.publish("handleError",N),_.u("record_app_crashed_web")&&HvZ===0&&N.sampleWeight===1&&(HvZ++,X={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.u("report_client_error_with_app_crash_ks")||(X.systemHealth={crashData:{clientError:{logMessage:{message:N.message}}}}),_.Te("appCrashed",X)),DKY++):c==="WARNING"&&C7R.publish("handleWarning",N);if(_.u("kevlar_gel_error_routing")){X=c;z=z===void 0?{}:z;b:{S=_.A(pIY);for(Q=S.next();!Q.done;Q=S.next())if(iB(Q.value.toLowerCase())){S=!0;break b}S=!1}if(S)z=void 0;else{Q={stackTrace:N.stack};N.fileName&&(Q.filename=N.fileName);S=N.lineNumber&&N.lineNumber.split?N.lineNumber.split(":"):[];S.length!==
0&&(S.length!==1||isNaN(Number(S[0]))?S.length!==2||isNaN(Number(S[0]))||isNaN(Number(S[1]))||(Q.lineNumber=Number(S[0]),Q.columnNumber=Number(S[1])):Q.lineNumber=Number(S[0]));S={level:"ERROR_LEVEL_UNKNOWN",message:N.message,errorClassName:N.name,sampleWeight:N.sampleWeight};X==="ERROR"?S.level="ERROR_LEVEL_ERROR":X==="WARNING"&&(S.level="ERROR_LEVEL_WARNNING");Q={isObfuscated:!0,browserStackInfo:Q};z.pageUrl=window.location.href;z.kvPairs=[];_.WY("FEXP_EXPERIMENTS")&&(z.experimentIds=_.WY("FEXP_EXPERIMENTS"));
f=_.WY("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!xmY("web_disable_gel_stp_ecatcher_killswitch")&&f)for(U=_.A(Object.keys(f)),a=U.next();!a.done;a=U.next())a=a.value,z.kvPairs.push({key:a,value:String(f[a])});if(f=N.params)for(U=_.A(Object.keys(f)),a=U.next();!a.done;a=U.next())a=a.value,z.kvPairs.push({key:"client."+a,value:String(f[a])});f=_.WY("SERVER_NAME");U=_.WY("SERVER_VERSION");f&&U&&(z.kvPairs.push({key:"server.name",value:f}),z.kvPairs.push({key:"server.version",value:U}));z={errorMetadata:z,
stackTrace:Q,logMessage:S}}z&&(_.Te("clientError",z),(X==="ERROR"||_.u("errors_flush_gel_always_killswitch"))&&_.wQ())}_.u("suppress_error_204_logging")||YXR(c,N)}try{lcp.add(N.message)}catch(w){}nzz++}}};
YXR=function(S,c){var Q=c.params||{};S={urlParams:{a:"logerror",t:"jserror",type:c.name,msg:c.message.substr(0,250),line:c.lineNumber,level:S,"client.name":Q.name},postParams:{url:_.WY("PAGE_NAME",window.location.href),file:c.fileName},method:"POST"};Q.version&&(S["client.version"]=Q.version);if(S.postParams){c.stack&&(S.postParams.stack=c.stack);c=_.A(Object.keys(Q));for(var f=c.next();!f.done;f=c.next())f=f.value,S.postParams["client."+f]=Q[f];if(Q=_.WY("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(c=
_.A(Object.keys(Q)),f=c.next();!f.done;f=c.next())f=f.value,S.postParams[f]=Q[f];(Q=_.WY("LAVA_VERSION"))&&(S.postParams["lava.version"]=Q);Q=_.WY("SERVER_NAME");c=_.WY("SERVER_VERSION");Q&&c&&(S.postParams["server.name"]=Q,S.postParams["server.version"]=c)}_.I6(_.WY("ECATCHER_REPORT_HOST","")+"/error_204",S)};
_.hoz=function(S,c){c=c===void 0?"ERROR":c;var Q=Q===void 0?{}:Q;var f=_.rC("ytbin.polymer.shared.lib.tampering.info");f&&(f=f())&&(Q["params.tamperingInfo"]=f.sort().join(","));_.sH(S,c,void 0,void 0,!0,Q)};
_.ZE=function(S){var c=_.YD.apply(1,arguments);S.args||(S.args=[]);Array.isArray(S.args)&&S.args.push.apply(S.args,_.Hs(c))};
qXp=function(S){S.level="IGNORED"};
THZ=function(S,c){NHH.push(S);c();NHH.pop()};
gQ=function(S,c){for(var Q in c)c.hasOwnProperty(Q)&&(S=_.WG(S,Q,c[Q]));return S};
_.wIZ=function(S,c,Q){Q=Q===void 0?!1:Q;if(!S)return null;if(S.adInfoDialogEndpoint||S.backstageImageUploadEndpoint||S.confirmDialogEndpoint||S.clientActionEndpoint||S.createBackstagePostDialogEndpoint||S.createCommentReplyDialogEndpoint||S.flowEndpoint||S.guideBuilderEndpoint||S.liveChatDialogEndpoint||S.modalEndpoint||S.openPopupAction||S.shareEndpoint||S.shareEntityEndpoint||S.showLiveChatItemEndpoint||S.subscriptionManagerEndpoint||S.unlimitedCreateFamilyEndpoint||S.unlimitedFamilyFlowEndpoint||
S.updateCommentDialogEndpoint||S.updateCommentReplyDialogEndpoint||S.userFeedbackEndpoint||S.videoEditorEndpoint||S.ypcCancelSurveyEndpoint)return c=_.a6("polymer_report_client_url_requested_rate"),!Q&&Math.random()<c&&_.i5(new _.Yr("urlForEndpoint used on client endpoint",S)),null;var f=_.a6("polymer_report_missing_web_navigation_endpoint_rate");if(S.liveChatEndpoint||S.liveChatReplayEndpoint)f=0;if(!S.commandMetadata&&!S.clickTrackingParams&&Math.random()<f){var U={},a;for(a in S)U[a]="1";_.i5(new _.Yr("Missing navigation data",
U))}U="";if(S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.url)U=S.commandMetadata.webCommandMetadata.url;else if(S.searchEndpoint)Math.random()<f&&_.i5(new _.Yr("Should not manually handle search",S)),U="/results?search_query="+encodeURIComponent(S.searchEndpoint.query).replace(/%20/g,"+"),S.searchEndpoint.params&&(U+="&sp="+S.searchEndpoint.params);else if(S.watchEndpoint)Math.random()<f&&_.i5(new _.Yr("Should not manually handle watch",S)),U="/watch?v="+
S.watchEndpoint.videoId,S.watchEndpoint.playlistId&&(U+="&list="+S.watchEndpoint.playlistId),S.watchEndpoint.index&&(U+="&index="+S.watchEndpoint.index),S.watchEndpoint.startTimeSeconds&&(U+="&t="+S.watchEndpoint.startTimeSeconds);else if(S.browseEndpoint)f=S.browseEndpoint.browseId,(a=S.browseEndpoint.canonicalBaseUrl)?U=a:f&&(U=f.substr(0,2),U=U==="FE"?f==="FEwhat_to_watch"?"/":f==="FEmy_videos"?"/my_videos":"/feed/"+f.substr(2):U==="VL"?"/playlist?list="+f.substr(2):"/channel/"+f),U&&S.browseEndpoint.query&&
(U=gQ(U+"/search",{query:S.browseEndpoint.query})),U&&S.browseEndpoint.params&&(U=gQ(U,{params:S.browseEndpoint.params}));else{if(S.urlEndpoint)return S.urlEndpoint.url;S.signInEndpoint?(U="https://accounts.google.com/ServiceLogin",f={},_.Cn.extend(f,c||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),c=f):S.uploadEndpoint?U="//www.youtube.com/upload":S.liveChatEndpoint?(U=S.liveChatEndpoint,f=_.Cn.clone(U),_.c_(U.continuation)&&(a=Object.keys(U.continuation)[0],
f.continuation=U.continuation[a].continuation),U=gQ("/youtubei/v1/live_chat/get_live_chat",f)):S.liveChatReplayEndpoint?(U=_.Cn.clone(S.liveChatReplayEndpoint),U.currentPlayerState&&(_.Cn.extend(U,U.currentPlayerState),delete U.currentPlayerState),U=gQ("/youtubei/v1/live_chat/get_live_chat_replay",U)):S.liveChatItemContextMenuEndpoint?U=gQ("/youtubei/v1/live_chat/get_item_context_menu",S.liveChatItemContextMenuEndpoint):S.liveChatPurchaseMessageEndpoint?U=gQ("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
S.liveChatPurchaseMessageEndpoint):S.openSuperStickerBuyFlowCommand?U=gQ("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",S.openSuperStickerBuyFlowCommand):S.videoEditEndpoint?U=gQ("/edit",{video_id:S.videoEditEndpoint.videoId}):S.liveDashboardEndpoint?U=S.liveDashboardEndpoint.videoId?gQ("/live_dashboard",{v:S.liveDashboardEndpoint.videoId}):"/live_dashboard":S.signalNavigationEndpoint&&S.signalNavigationEndpoint.signal&&S.signalNavigationEndpoint.signal==="WEBCAM"?U="/webcam":S.getPdgBuyFlowCommand&&
(U=gQ(S.getPdgBuyFlowCommand.buyflowApiPath,{params:S.getPdgBuyFlowCommand.params}))}return U||Q?gQ(U,c||{}):(_.i5(new _.Yr("Error: Can't construct url for endpoint","keys:"+Object.keys(S).sort().join(","),S)),null)};
sWz=function(S){if(S){if(S.browseEndpoint)return!!S.browseEndpoint.nofollow;if(S.watchEndpoint)return!!S.watchEndpoint.nofollow;if(S.urlEndpoint)return!!S.urlEndpoint.nofollow}return!1};
_.ivZ=function(S,c){var Q=c+S,f=Mwo.get(Q);if(f)return f;S=c+"-"+S.replace(/([A-Z])/g,"-$1").toLowerCase();Mwo.set(Q,S);return S};
Zvo=function(S){var c=_.iW(S,"action")||_.iW(S,"command")||_.iW(S,"endpoint");if(!c)return null;c=_.ivZ(c,"yt");_.Y(S,_.ee)&&(c+="-"+_.Y(S,_.ee).signal.toLowerCase().replace(/_/g,"-"));return c};
eoZ=function(S){try{var c=Object.keys(S)}catch(U){return[]}for(var Q=0;Q<c.length;Q++){var f=c[Q];if(Gvx.test(f)||WdZ.test(f))return gzR(S[f])}return[]};
gzR=function(S){return S.command?[S.command]:S.onExecutionAction?[S.onExecutionAction]:S.onResponseReceivedCommand?[S.onResponseReceivedCommand]:S.updateFlowCommand?[S.updateFlowCommand]:S.clientActions?S.clientActions:S.action?[S.action]:S.actions||S.commands||S.onResponseReceivedActions||S.onResponseReceivedCommands||S.onResponseReceivedEndpoints||[]};
r2M=function(S,c){c=c===void 0?!1:c;var Q=_.fl().resolve(_.QS(kL));Q||(Q=new kvR,_.fl().addProvider({provide:kL,useValue:Q}));return Q&&S&&!_.Cn.isEmpty(S)?Q.getUrl(S,c):""};
dKz=function(S,c,Q){Q=Q===void 0?"":Q;if(c){S.data=c;var f=r2M(c);f?(DQ(S,f),sWz(c)||!SJ(f)?S.rel="nofollow":S.removeAttribute("rel"),_.Y(c,_.rQ)&&_.Y(c,_.rQ).target==="TARGET_NEW_WINDOW"?S.target="_blank":Q?S.target=Q:S.removeAttribute("target")):(S.removeAttribute("href"),S.removeAttribute("rel"),S.removeAttribute("target"))}};
_.L1=function(S,c){var Q=Sd;if(py())vzM(S,function(){var a=_.YD.apply(0,arguments);Wr(Q,function(){c.apply(null,_.Hs(a))})});
else{var f=_.dQ.getInstance(),U=MR(c);JOT(function(){U.value=c});
_.wC(function(){var a={},X=_.vG(f,(a[S]=function(){var z=_.YD.apply(0,arguments);Wr(Q,function(){U.value.apply(U,_.Hs(z))})},a));
return function(){var z={};_.PG(f,(z[S]="",z),X)}})}};
_.EH=function(S,c){return P7T(S,!1,c)};
_.tc=function(S,c){return P7T(S,!0,c)};
P7T=function(S,c,Q){return py()?LdM(S,c,Q):EzZ(S,c,Q)};
EzZ=function(S,c,Q){return sp(function(){return LdM(S,c,Q)})};
LdM=function(S,c,Q){var f=QhT(function(U){f.__value&&f.__value===U||(f.__count=f.__count?f.__count+1:1);f.value=U;var a=function(){var X=Xr(null);try{return Q==null?void 0:Q(U)}finally{Xr(X)}}();
return function(){a==null||a();f.value=null}});
S!==_.V1&&(f.__expectedTagName=S);f.__optional=c;f.isIdom=!py();return f};
twR=function(S){var c=Sd,Q=Hr;return{getFn:function(){return function(f){c.isDisposed||qj(function(){return Ix(function(){return S(f)})},Q)!==!0&&f.stopPropagation()}}}};
RT=function(S){if(typeof S.children==="function")return S.children(),null;S=_.A(S.children);for(var c=S.next();!c.done;c=S.next())c=c.value,c();return null};
VwR=function(S){var c;return((c=S.prototype)==null?void 0:c.render)===void 0};
Rop=function(S){S=S.items.map(S.children);return S.length>0&&typeof S[0]==="string"?S.join(""):S};
ozR=function(S,c,Q){Q=Q===void 0?!1:Q;qj(function(){return y2z(S,c,Q)})};
y2z=function(S,c,Q){var f=null;lQ++;Q=(Q===void 0?0:Q)?mKR:S2z;try{f=Q(S,function(){y1(c)}),Cy(!1)}catch(U){throw Cy(!0),U;
}return f===null?S:f};
y1=function(S){if(S!==void 0&&S!==null)if(S instanceof nb)for(var c=dX;vr()!=null&&e0H in vr()&&c.contains(vr());)Ej();else if(Array.isArray(S))for(c=_.A(S),S=c.next();!S.done;S=c.next())y1(S.value);else if(S instanceof A5||"function"==typeof _.v7&&S instanceof _.v7||"function"==typeof _.fb&&S instanceof _.fb)Q0(S.toString());else if(_.Xp(S)){if(vr()!==S){var Q,f;c=(f=(Q=Hr)==null?void 0:Q.name)!=null?f:"unknown";throw Error("fc`"+S.tagName+"`"+c);}Ej()}else if(ccc(S)||S instanceof pc||SHr(S))for(c=
fEp(S),c=Array.from(c.childNodes),c=_.A(c),S=c.next();!S.done;S=c.next())dX.appendChild(S.value),Ej();else if(In(S)&&(S=S.toString()),Q=typeof S,Q==="boolean"||Q==="number"||Q==="string")Q0(S);else if(typeof S==="function"){c=dX;var U=vr();U&&(U._isSignalTextNode||U._isSafeOrSanitizedHtmlNode)||qHZ(c,U,S);Ej()}else if(S.type===Rop)y1(S.type(Object.assign({},S.props,{children:S.children[0]})));else{Kb.beforeVisit(S);if(typeof S.type==="string"){a:{S.__open||M8T(S.type,S.props.idomKey);U=dX;for(c in S.props)if(S.props[c]!==
caz){var a=S.props[c];Q=yi;Q.push(c);Q.push(a)}c=_.Uj.attributes;c=c===void 0?oT:c;a=dX;Q=rX(a);kfT(a,Q,c);h0c(U,S.props,!0);if((S.props.skip||S.props.skipchildren)&&dX.hasChildNodes())Vi();else{if(S.type==="style"&&IER(S.children)===null){Vi();c=void 0;break a}y1(S.children)}i6o();S.__open&&(S.__open=!1);t8o(U,S.props);c=U}return c}if(S.type===_.ak)y1(S.children);else if(!QZo(S)){c=S;try{fLR(c)}catch(X){S=X,(a=_.Uj.handleError)==null||a.call.apply(a,[_.Uj].concat(_.Hs(_.gX(S,(U=c.type)==null?void 0:
U.TAG_NAME))))}c.__open&&(i6o(),c.__open=!1)}}};
Uor=function(S,c){var Q;VwR(S)?Q=new uW(c,S):Q=new S(c);Q.JSC$8251___type=S;Q.__updateContext={nextState:Q.state,isForced:!1};return Q};
fLR=function(S){var c=S.type,Q=c.TAG_NAME;if(c===RT)S.props.children=S.children,c(S.props);else{S.children.length>0&&(S.props.children=S.children);var f;(f=S.props).idomKey||(f.idomKey=c);if(Q){var U=M8T(Q,S.props.idomKey);S.__open=!0;var a=U.__instance}a||(a=Uor(c,S.props),a.props=null,U&&(U.__instance=a,a.el=U));var X;Q=((X=a.__updateContext)!=null?X:{nextState:a.state,isForced:!1}).nextState;a.__updateContext=void 0;c.getDerivedStateFromProps&&(Q=c.getDerivedStateFromProps(S.props,Q));a.props=
S.props;a.state=Q;X=function(){var z=a;Kb.beforeRender(z);var x=z.render(z.props);Kb.afterRender(z,x);x?(z.props.idomKey&&(x.props.idomKey=z.props.idomKey),z=x):z=void 0;if(x=z)if(x.__open=S.__open,z=y1(x),S.__open=x.__open,!c.TAG_NAME)if(z)c.TAG_NAME=z.tagName.toLowerCase(),z.__instance=a,a.el=z;else{var I;if((I=a.hooks)==null?0:I.length){var n;(n=_.Uj.handleError)==null||n.call.apply(n,[_.Uj].concat(_.Hs(_.gX(Error("ld")))))}}a.didPatch();Kb.didPatch(a)};
(Q=a.functionComponent)?orp(Q,X,a.props.debugInstance):X()}};
QZo=function(S){var c=S.type;if(!VwR(c)||c===RT||c.componentType===Df)return!1;S.props.children=S.children.length>1?S.children:S.children[0];var Q,f=(Q=S.props.idomKey)!=null?Q:S.type,U;if(vr()&&((U=vr()[Fp])==null?void 0:U.key)===f){var a=vr(),X=a[Fp];if(!X)throw Error("ec`"+a.tagName);var z;(z=X.updateSignalsFromIdomProps)==null||z.call(X,S.props);JaZ(X);return!0}if(aLp.has(c.name))throw z=c.name,c=(X=(a=Hr)==null?void 0:a.name)!=null?X:"unknown",Error("dc`"+z+"`"+c);Mex(S.type,S.props,S.children);
S.props.renderedFromIdom=!0;(z=orp(S.type,function(){return YHr(S.type,S.props)},S.props.debugInstance))&&AaY(z);
return!0};
X3p=function(S){for(var c=0;c<Ik(S).length;c++)Ej()};
JaZ=function(S){var c=O4H();if(c)X3p(c);else for(var Q=0;Q<S.numNodes;Q++)(c=O4H())?X3p(c):Ej()};
O4H=function(){var S;return(S=vr()[Fp])==null?void 0:S.sourceDynamicRange};
AaY=function(S){S=RJH(S);S=Array.isArray(S)?S:[S];S=_.A(S);for(var c=S.next();!c.done;c=S.next())dX.insertBefore(c.value,vr()),Ej()};
zDc=function(S){var c=H1H(),Q=sp(function(){return{value:typeof S==="function"?S():S}});
return[Q.value,function(f){if($C!==null){var U;(U=_.Uj.handleError)==null||U.call.apply(U,[_.Uj].concat(_.Hs(_.gX(Error("md")))))}Q.value=typeof f==="function"?f(Q.value):f;c.__updateContext={nextState:c.state,isForced:!0};f=_.cr(c.effectContext);U=AS(!1);try{if(c.el){var a,X={},z=(X.props=c.props,X.type=c.JSC$8251___type,X.children=(a=c.props.children)!=null?a:[],X[JS]=!0,X);try{ozR(c.el,z,!0)}catch(n){var x,I;(I=_.Uj.handleError)==null||I.call.apply(I,[_.Uj].concat(_.Hs(_.gX(n,(x=c.JSC$8251___type)==
null?void 0:x.TAG_NAME))))}}}finally{AS(U),_.cr(f)}}]};
mY=function(S,c){var Q=Sd,f=function(U){Wr(Q,function(){c(U)})};
window.addEventListener(S,f,void 0);_.wX(function(){window.removeEventListener(S,f,void 0)})};
_.cn=function(S,c){var Q=Sd;_.wC(function(){var f,U=(f=c.observer)!=null?f:_.fl().resolve(SR);if(f=S.value){var a=xop(f),X=[];c.showOption&&X.push(U.observe(f,function(){Wr(Q,function(){c.visibilityCallback(!0)})},c.showOption));
c.hideOption&&X.push(U.observe(f,function(){Wr(Q,function(){c.visibilityCallback(!1)})},c.hideOption));
c.prescanOption&&c.prescanCallback&&X.push(U.observe(f,function(){Wr(Q,function(){c.prescanCallback()})},c.prescanOption));
var z;a.visibilityMonitorKeys=((z=a.visibilityMonitorKeys)!=null?z:[]).concat(X)}})};
xop=function(S){var c;return(c=S.polymerController)!=null?c:S};
_.Qu=function(S){S.componentType=Df};
ndR=function(S,c){var Q=FZZ;return _.B(_.ak,null,m2(_.Uj.enableLazyTsx,function(){return _.B(Bjx,{id:Q,value:S,children:c})},function(){var f=ILr(Q,S);
fy(f);f=_.cr(f);try{return c()}finally{_.cr(f)}}))};
Bjx=function(S){var c=S.children;S=ILr(S.id,S.value);fy(S);S=_.cr(S);try{return _.B(_.ak,null,bW(c()))}finally{_.cr(S)}};
ILr=function(S,c){return Object.assign(Object.create(b4z),{id:S,contextValue:c})};
Njz=function(S){var c,Q=Sd;_.Go(function(){var f=_.cr(Q),U=AS(!c);try{if(c)ozR(c,S.children(),!0);else if(c=bW(S.children()),!(c instanceof Element))throw Error("nd");}finally{AS(U),_.cr(f)}});
return c};
_.KZT=function(S,c){var Q;c=sj(function(){var f=AS(!0);try{Q=Ik(S())}finally{AS(f)}},c===void 0?!1:c);
return[Q,c]};
uiY=function(S){S=S.buf.charCodeAt(S.pos++);return $oz[S]};
f$=function(S){var c=0,Q=0;do{var f=uiY(S);c|=(f&31)<<Q;Q+=5}while(f&32);return c<0?c+4294967296:c};
Y2p=function(S,c,Q){jZY(S,c);S[c][lLo].unshift(Q)};
jZY=function(S,c){if(!S[c]||!S[c][lLo]){var Q=S[c],f=Q?[Q]:[];S[c]=function(){for(var U=_.A(f),a=U.next();!a.done;a=U.next())a.value.apply(this,arguments)};
S[c][lLo]=f}};
C8z=function(S){if(!S)return[];var c=[];S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Array.isArray(Q)?c.push.apply(c,_.Hs(C8z(Q))):c.push(Q);return c};
_.JO=function(S,c){if(S&&H4z.test(S)||S==="//")return S;if(DoY===void 0){DoY=!1;try{var Q=new URL("b","http://a");Q.pathname="c%20d";DoY=Q.href==="http://a/c%20d"}catch(f){}}c||(c=document.baseURI||window.location.href);if(DoY)try{return(new URL(S,c)).href}catch(f){return S}UP||(UP=document.implementation.createHTMLDocument("temp"),UP.base=UP.createElement("base"),UP.head.appendChild(UP.base),UP.anchor=UP.createElement("a"),UP.body.appendChild(UP.anchor));UP.base.href=c;UP.anchor.href=S;return UP.anchor.href||
S};
hDZ=function(S,c){return S.replace(p3R,function(Q,f,U,a){return f+"'"+_.JO(U.replace(/["']/g,""),c)+"'"+a})};
q2H=function(S){return S.substring(0,S.lastIndexOf("/")+1)};
sZM=function(){TjH=!1;for(var S=ah.length,c=0;c<S;c++){var Q=ah[c];if(Q)try{Q()}catch(f){setTimeout(function(){throw f;})}}ah.splice(0,S);
w3r+=S};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(S){console.log("["+S.is+"]: registered")};
i4x=function(S){MyM.push(S)};
AO=function(S){return Z4M[S]||(Z4M[S]=S.indexOf("-")<0?S:S.replace(Gsx,function(c){return c[1].toUpperCase()}))};
Xm=function(S){return Z4M[S]||(Z4M[S]=S.replace(WZR,"-$1").toLowerCase())};
gdz=function(S,c){var Q=c.parentInfo&&gdz(S,c.parentInfo);if(Q)for(S=Q.firstChild,Q=0;S;S=S.nextSibling){if(c.parentIndex===Q++)return S}else return S};
eDz=function(S,c){S=S._methodHost||S;return function(Q){if(S[c])S[c](Q,Q.detail);else console.warn("listener method `"+c+"` not defined")}};
OP=function(S){return S.indexOf(".")>=0};
zL=function(S){var c=S.indexOf(".");return c===-1?S:S.slice(0,c)};
ksr=function(S,c){return S.indexOf(c+".")===0};
xQ=function(S,c){return c.indexOf(S+".")===0};
Fm=function(S,c,Q){return c+Q.slice(S.length)};
rax=function(S,c){return S===c||ksr(S,c)||xQ(S,c)};
Bn=function(S){if(Array.isArray(S)){for(var c=[],Q=0;Q<S.length;Q++)for(var f=S[Q].toString().split("."),U=0;U<f.length;U++)c.push(f[U]);return c.join(".")}return S};
doz=function(S){return Array.isArray(S)?Bn(S).split("."):S.toString().split(".")};
Ih=function(S,c,Q){c=doz(c);for(var f=0;f<c.length;f++){if(!S)return;S=S[c[f]]}Q&&(Q.path=c.join("."));return S};
vdz=function(S,c,Q){var f=doz(c),U=f[f.length-1];if(f.length>1){for(c=0;c<f.length-1;c++)if(S=S[f[c]],!S)return;S[U]=Q}else S[c]=Q;return f.join(".")};
P8T=function(S,c,Q){var f=S[c];if(!f)f=S[c]={};else if(!S.hasOwnProperty(c)&&(f=S[c]=Object.create(S[c]),Q))for(var U in f)for(S=f[U],c=f[U]=Array(S.length),Q=0;Q<S.length;Q++)c[Q]=S[Q];return f};
bO=function(S,c,Q,f,U,a){if(c){var X=!1,z=n$++,x;for(x in Q){var I=U?zL(x):x;if(I=c[I])for(var n=0,b=I.length,N=void 0;n<b&&(N=I[n]);n++)N.info&&N.info.lastRun===z||U&&!LZz(x,N.trigger)||(N.info&&(N.info.lastRun=z),N.fn(S,x,Q,f,N.info,U,a),X=!0)}return X}return!1};
LZz=function(S,c){if(c){var Q=c.name;return Q==S||!(!c.structured||!ksr(Q,S))||!(!c.wildcard||!xQ(Q,S))}return!0};
EdZ=function(S,c,Q,f,U){c=typeof U.method==="string"?S[U.method]:U.method;Q=U.property;c?c.call(S,S.__data[Q],f[Q]):U.dynamicFn||console.warn("observer method `"+U.method+"` not defined")};
tyY=function(S,c,Q,f){Q={value:Q,queueProperty:!0};f&&(Q.path=f);(0,_.Nm)(S).dispatchEvent(new CustomEvent(c,{detail:Q}))};
Vyx=function(S,c,Q,f,U,a){a=(f=(a?zL(c):c)!=c?c:null)?Ih(S,f):S.__data[c];f&&a===void 0&&(a=Q[c]);tyY(S,U.eventName,a,f)};
RDY=function(S,c,Q,f,U){Q=S.__data[c];K$&&(Q=K$(Q,U.attrName,"attribute",S));S._propertyToAttribute(c,U.attrName,Q)};
odc=function(S){var c=S.constructor.__orderedComputedDeps;if(!c){c=new Map;for(var Q=S.__computeEffects,f=yaY(S),U=f.counts,a=f.ready,X=f.total;f=a.shift();)c.set(f,c.size),(f=Q[f])&&f.forEach(function(z){z=z.info.methodInfo;--X;--U[z]===0&&a.push(z)});
X!==0&&console.warn("Computed graph for "+S.localName+" incomplete; circular?");S.constructor.__orderedComputedDeps=c}return c};
yaY=function(S){var c=S.__computeInfo,Q={};S=S.__computeEffects;var f=[],U=0,a;for(a in c){var X=c[a];U+=Q[a]=X.args.filter(function(x){return!x.literal}).length+(X.dynamicFn?1:0)}for(var z in S)c[z]||f.push(z);
return{counts:Q,ready:f,total:U}};
SeZ=function(S,c,Q,f,U){c=moH(S,c,Q,f,U);if(c===$Q)return!1;U=U.methodInfo;if(S.__dataHasAccessor&&S.__dataHasAccessor[U])return S._setPendingProperty(U,c,!0);S[U]=c;return!1};
fez=function(S,c,Q,f,U,a,X){Q.bindings=Q.bindings||[];f={kind:f,target:U,parts:a,literal:X,isCompound:a.length!==1};Q.bindings.push(f);f.target&&f.kind!="attribute"&&f.kind!="text"&&!f.isCompound&&f.parts[0].mode==="{"&&(Q=f.parts[0],a=Q.negate,f.listenerEvent=Q.event||Xm(U)+"-changed",f.listenerNegate=a);U=c.nodeInfoList.length;for(Q=0;Q<f.parts.length;Q++){var z=f.parts[Q];z.compoundIndex=Q;a=S;X=c;var x=f,I=z,n=U;if(!I.literal)if(x.kind==="attribute"&&x.target[0]==="-")console.warn("Cannot set attribute "+
x.target+' because "-" is not a valid attribute starting character');else for(z=I.dependencies,x={index:n,binding:x,part:I,evaluator:a},I=0;I<z.length;I++)n=z[I],typeof n=="string"&&(n=c8p(n),n.wildcard=!0),a._addTemplatePropertyEffect(X,n.rootProperty,{fn:QiY,info:x,trigger:n})}};
QiY=function(S,c,Q,f,U,a,X){X=X[U.index];var z=U.binding,x=U.part;a&&x.source&&c.length>x.source.length&&z.kind=="property"&&!z.isCompound&&X.__isPropertyEffectsClient&&X.__dataHasAccessor&&X.__dataHasAccessor[z.target]?(Q=Q[c],c=Fm(x.source,z.target,c),X._setPendingPropertyOrPath(c,Q,!1,!0)&&S._enqueueClient(X)):(c=U.evaluator._evaluateBinding(S,x,c,Q,f,a),c!==$Q&&(z.isCompound&&(Q=X.__dataCompoundStorage[z.target],Q[x.compoundIndex]=c,c=Q.join("")),z.kind==="attribute"||z.target!=="textContent"&&
(z.target!=="value"||X.localName!=="input"&&X.localName!=="textarea")||(c=c==void 0?"":c),x=c,K$&&(x=K$(x,z.target,z.kind,X)),z.kind=="attribute"?S._valueToNodeAttribute(X,x,z.target):(z=z.target,X.__isPropertyEffectsClient&&X.__dataHasAccessor&&X.__dataHasAccessor[z]?X.__readOnly&&X.__readOnly[z]||X._setPendingProperty(z,x)&&S._enqueueClient(X):S._setUnmanagedPropertyToNode(X,z,x))))};
Usp=function(S,c,Q){if(Q.listenerEvent){var f=Q.parts[0];S.addEventListener(Q.listenerEvent,function(U){var a=Q.target,X=f.source,z=f.negate,x=U.detail,I=x&&x.path;I?(X=Fm(a,X,I),U=x&&x.value):U=U.currentTarget[a];c.__readOnly&&c.__readOnly[X]||!c._setPendingPropertyOrPath(X,z?!U:U,!0,!!I)||x&&x.queueProperty||c._invalidateProperties()})}};
J8Y=function(S,c,Q,f,U,a){a=c.static||a&&(typeof a!=="object"||a[c.methodName]);U={methodName:c.methodName,args:c.args,methodInfo:U,dynamicFn:a};for(var X=0,z=void 0;X<c.args.length&&(z=c.args[X]);X++)z.literal||S._addPropertyEffect(z.rootProperty,Q,{fn:f,info:U,trigger:z});a&&S._addPropertyEffect(c.methodName,Q,{fn:f,info:U});return U};
moH=function(S,c,Q,f,U){f=S._methodHost||S;var a=f[U.methodName];if(a)return S=S._marshalArgs(U.args,c,Q),S===$Q?$Q:a.apply(f,S);U.dynamicFn||console.warn("method `"+U.methodName+"` not defined")};
aeo=function(S){for(var c="",Q=0;Q<S.length;Q++)c+=S[Q].literal||"";return c};
OST=function(S){if(S=S.match(/([^\s]+?)\(([\s\S]*)\)/)){var c={methodName:S[1],static:!0,args:A8x};return S[2].trim()?XKY(S[2].replace(/\\,/g,"&comma;").split(","),c):c}return null};
XKY=function(S,c){c.args=S.map(function(Q){Q=c8p(Q);Q.literal||(c.static=!1);return Q},this);
return c};
c8p=function(S){S=S.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var c={name:S,value:"",literal:!1},Q=S[0];Q==="-"&&(Q=S[1]);Q>="0"&&Q<="9"&&(Q="#");switch(Q){case "'":case '"':c.value=S.slice(1,-1);c.literal=!0;break;case "#":c.value=Number(S),c.literal=!0}c.literal||(c.rootProperty=zL(S),c.structured=OP(S),c.structured&&(c.wildcard=S.slice(-2)==".*",c.wildcard&&(c.name=S.slice(0,-2))));return c};
zBz=function(S,c,Q){S=Ih(S,Q);S===void 0&&(S=c[Q]);return S};
xso=function(S,c,Q,f){f={indexSplices:f};uO&&!S._overrideLegacyUndefined&&(c.splices=f);S.notifyPath(Q+".splices",f);S.notifyPath(Q+".length",c.length);uO&&!S._overrideLegacyUndefined&&(f.indexSplices=[])};
jR=function(S,c,Q,f,U,a){xso(S,c,Q,[{index:f,addedCount:U,removed:a,object:c,type:"splice"}])};
Fwx=function(S){S=hDZ((S.body?S.body:S).textContent,S.baseURI);var c=document.createElement("style");c.textContent=S;return c};
IeT=function(S){S=S.trim().split(/\s+/);for(var c=[],Q=0;Q<S.length;Q++)c.push.apply(c,_.Hs(BJz(S[Q])));return c};
BJz=function(S){var c=lO.import(S);if(!c)return console.warn("Could not find style data in module named",S),[];if(c._styles===void 0){S=[];S.push.apply(S,_.Hs(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c)));var Q=c.querySelector("template");Q&&S.push.apply(S,_.Hs(naY(Q,c.assetpath)));c._styles=S}return c._styles};
naY=function(S,c){if(!S._styles){for(var Q=[],f=S.content.querySelectorAll("style"),U=0;U<f.length;U++){var a=f[U],X=a.getAttribute("include");X&&Q.push.apply(Q,_.Hs(IeT(X).filter(function(z,x,I){return I.indexOf(z)===x})));
c&&(a.textContent=hDZ(a.textContent,c));Q.push(a)}S._styles=Q}return S._styles};
bSp=function(S){return(S=lO.import(S))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(S){var c=[];S=S.querySelectorAll("link[rel=import][type~=css]");for(var Q=0;Q<S.length;Q++){var f=S[Q];if(f.import){var U=f.import;if((f=f.hasAttribute("shady-unscoped"))&&!U._unscopedStyle){var a=Fwx(U);a.setAttribute("shady-unscoped","");U._unscopedStyle=a}else U._style||(U._style=Fwx(U));c.push(f?U._unscopedStyle:U._style)}}return c};
KwT=function(S){S=S.trim().split(/\s+/);for(var c="",Q=0;Q<S.length;Q++)c+=NJZ(S[Q]);return c};
NJZ=function(S){var c=lO.import(S);if(c&&c._cssText===void 0){var Q=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(c),f=c.querySelector("template");f&&(Q+=$sH(f,c.assetpath));c._cssText=Q||null}c||console.warn("Could not find style data in module named",S);return c&&c._cssText||""};
$sH=function(S,c){var Q="";S=naY(S,c);for(c=0;c<S.length;c++){var f=S[c];f.parentNode&&f.parentNode.removeChild(f);Q+=f.textContent}return Q};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(S){var c="";S=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S);for(var Q=0;Q<S.length;Q++)c+=S[Q].textContent;return c};
YQ=function(S,c){return{index:S,removed:[],addedCount:c}};
jix=function(S,c,Q,f){var U=0,a=0,X=0,z=0,x=Math.min(c-U,f-a);if(U==0&&a==0)a:{for(X=0;X<x;X++)if(S[X]!==Q[X])break a;X=x}if(c==S.length&&f==Q.length){z=S.length;for(var I=Q.length,n=0;n<x-X&&uZz(S[--z],Q[--I]);)n++;z=n}U+=X;a+=X;c-=z;f-=z;if(c-U==0&&f-a==0)return[];if(U==c){for(c=YQ(U,0);a<f;)c.removed.push(Q[a++]);return[c]}if(a==f)return[YQ(U,c-U)];x=U;X=a;f=f-X+1;z=c-x+1;c=Array(f);for(I=0;I<f;I++)c[I]=Array(z),c[I][0]=I;for(I=0;I<z;I++)c[0][I]=I;for(I=1;I<f;I++)for(n=1;n<z;n++)if(S[x+n-1]===
Q[X+I-1])c[I][n]=c[I-1][n-1];else{var b=c[I-1][n]+1,N=c[I][n-1]+1;c[I][n]=b<N?b:N}x=c.length-1;X=c[0].length-1;f=c[x][X];for(S=[];x>0||X>0;)x==0?(S.push(2),X--):X==0?(S.push(3),x--):(z=c[x-1][X-1],I=c[x-1][X],n=c[x][X-1],b=I<n?I<z?I:z:n<z?n:z,b==z?(z==f?S.push(0):(S.push(1),f=z),x--,X--):b==I?(S.push(3),x--,f=I):(S.push(2),X--,f=n));S.reverse();c=void 0;x=[];for(X=0;X<S.length;X++)switch(S[X]){case 0:c&&(x.push(c),c=void 0);U++;a++;break;case 1:c||(c=YQ(U,0));c.addedCount++;U++;c.removed.push(Q[a]);
a++;break;case 2:c||(c=YQ(U,0));c.addedCount++;U++;break;case 3:c||(c=YQ(U,0)),c.removed.push(Q[a]),a++}c&&x.push(c);return x};
lep=function(S,c){return jix(S,S.length,c,c.length)};
uZz=function(S,c){return S===c};
C9M=function(S){if(S instanceof YeZ)return S.value;throw Error("Ed`"+S);};
HSH=function(S,c){for(var Q in c)Q===null?S.style.removeProperty(Q):S.style.setProperty(Q,c[Q])};
DsY=function(S,c){return(S=window.getComputedStyle(S).getPropertyValue(c))?S.trim():""};
wKY=function(S){requestAnimationFrame(function(){pKp?pKp(S):(qer||(qer=new Promise(function(c){TJz=c}),document.readyState==="complete"?TJz():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&TJz()})),qer.then(function(){S&&S()}))})};
iSZ=function(S){sip=S&&S.shimcssproperties?!1:M9z||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
eBz=function(S){if(!(ZSz.indexOf(S)>-1)&&S!=="touchend"&&GIH&&WwZ&&gaY)return{passive:!0}};
vaY=function(S){for(var c=kIz?["click"]:ZSz,Q=0,f;Q<c.length;Q++)f=c[Q],S?(r8z.length=0,document.addEventListener(f,dsY,!0)):document.removeEventListener(f,dsY,!0)};
C$=function(S){var c=S.type;return ZSz.indexOf(c)>-1?c==="mousemove"?(c=S.buttons===void 0?1:S.buttons,S instanceof window.MouseEvent&&!P9x&&(c=Lwc[S.which]||0),!!(c&1)):(S.button===void 0?0:S.button)===0:!1};
Eaz=function(S){if(S.type==="click"){if(S.detail===0)return!0;var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);if(!c.nodeType||c.nodeType!==Node.ELEMENT_NODE)return!0;c=c.getBoundingClientRect();var Q=S.pageX;S=S.pageY;return!(Q>=c.left&&Q<=c.right&&S>=c.top&&S<=c.bottom)}return!1};
t9o=function(S,c,Q){S.movefn=c;S.upfn=Q;document.addEventListener("mousemove",c);document.addEventListener("mouseup",Q)};
Hn=function(S){document.removeEventListener("mousemove",S.movefn);document.removeEventListener("mouseup",S.upfn);S.movefn=null;S.upfn=null};
V9Z=function(S,c){for(var Q=document.elementFromPoint(S,c),f=Q;f&&f.shadowRoot&&!window.ShadyDOM;){var U=f;f=f.shadowRoot.elementFromPoint(S,c);if(U===f)break;f&&(Q=f)}return Q};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){var c=RBz(S);return c.length>0?c[0]:S.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){var c=S.type,Q=S.currentTarget.__polymerGestures;if(Q&&(Q=Q[c])){if(!S.__polymerGesturesHandled&&(S.__polymerGesturesHandled={},c.slice(0,5)==="touch")){var f=S.changedTouches[0];c==="touchstart"&&S.touches.length===1&&(y8T=f.identifier);if(y8T!==f.identifier)return;GIH||(c==="touchstart"||c==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S)}f=
S.__polymerGesturesHandled;if(!f.skip){for(var U=0,a;U<Dm.length;U++)a=Dm[U],Q[a.name]&&!f[a.name]&&a.flow&&a.flow.start.indexOf(S.type)>-1&&a.reset&&a.reset();for(U=0;U<Dm.length;U++)a=Dm[U],Q[a.name]&&!f[a.name]&&(f[a.name]=!0,a[c](S))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){var c=S.changedTouches[0],Q=S.type;if(Q==="touchstart")oaz=c.clientX,msc=c.clientY,SIc=!1;else if(Q==="touchmove"&&!SIc){SIc=!0;Q="auto";for(var f=RBz(S),U=0,a;U<f.length;U++)if(a=f[U],a.__polymerGesturesTouchAction){Q=a.__polymerGesturesTouchAction;break}f=!1;U=Math.abs(oaz-c.clientX);c=Math.abs(msc-c.clientY);S.cancelable&&(Q==="none"?f=!0:Q==="pan-x"?f=c>U:Q==="pan-y"&&(f=U>c));f?S.preventDefault():
p$("track")}};
qm=function(S,c,Q){return hO[c]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,c,Q),!0):!1};
TL=function(S,c,Q){return hO[c]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S,c,Q),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S,c,Q){var f=hO[c],U=f.deps,a=f.name,X=S.__polymerGestures;X||(S.__polymerGestures=X={});for(var z=0,x,I;z<U.length;z++)x=U[z],kIz&&ZSz.indexOf(x)>-1&&x!=="click"||((I=X[x])||(X[x]=I={_count:0}),I._count===0&&S.addEventListener(x,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,eBz(x)),I[a]=(I[a]||0)+1,I._count=(I._count||0)+1);S.addEventListener(c,Q);f.touchAction&&_.wK(S,f.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S,c,Q){var f=hO[c],U=f.deps;f=f.name;var a=S.__polymerGestures;if(a)for(var X=0,z,x;X<U.length;X++)z=U[X],(x=a[z])&&x[f]&&(x[f]=(x[f]||1)-1,x._count=(x._count||1)-1,x._count===0&&S.removeEventListener(z,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,eBz(z)));S.removeEventListener(c,Q)};
cWY=function(S){Dm.push(S);for(var c=0;c<S.emits.length;c++)hO[S.emits[c]]=S};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S){for(var c=0,Q;c<Dm.length;c++){Q=Dm[c];for(var f=0,U;f<Q.emits.length;f++)if(U=Q.emits[f],U===S)return Q}return null};
_.wK=function(S,c){GIH&&S instanceof HTMLElement&&sP.run(function(){S.style.touchAction=c});
S.__polymerGesturesTouchAction=c};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(S,c,Q){c=new Event(c,{bubbles:!0,cancelable:!0,composed:!0});c.detail=Q;(0,_.Nm)(S).dispatchEvent(c);c.defaultPrevented&&(S=Q.preventer||Q.sourceEvent)&&S.preventDefault&&S.preventDefault()};
p$=function(S){S=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);S.info&&(S.info.prevent=!0)};
Mm=function(S,c,Q,f){c&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,S,{x:Q.clientX,y:Q.clientY,sourceEvent:Q,preventer:f,prevent:function(U){return p$(U)}})};
QCr=function(S,c,Q){if(S.prevent)return!1;if(S.started)return!0;Q=Math.abs(S.y-Q);return Math.abs(S.x-c)>=5||Q>=5};
f6o=function(S,c,Q){if(c){var f=S.moves[S.moves.length-2],U=S.moves[S.moves.length-1],a=U.x-S.x,X=U.y-S.y,z=0;if(f){var x=U.x-f.x;z=U.y-f.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(c,"track",{state:S.state,x:Q.clientX,y:Q.clientY,dx:a,dy:X,ddx:x,ddy:z,sourceEvent:Q,hover:function(){return V9Z(Q.clientX,Q.clientY)}})}};
JWr=function(S,c,Q){var f=Math.abs(c.clientX-S.x),U=Math.abs(c.clientY-S.y),a=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(Q||c);!a||U$x[a.localName]&&a.hasAttribute("disabled")||!(isNaN(f)||isNaN(U)||f<=25&&U<=25||Eaz(c))||S.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(a,"tap",{x:c.clientX,y:c.clientY,sourceEvent:c,preventer:Q})};
a6T=function(S,c,Q,f,U){var a;U&&(a=typeof Q==="object"&&Q!==null)&&(f=S.__dataTemp[c]);f=f!==Q&&(f===f||Q===Q);a&&f&&(S.__dataTemp[c]=Q);return f};
XZM=function(){if(iO&&!Zm){if(!AWo){AWo=!0;var S=document.createElement("style");S.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(S)}return!0}return!1};
znz=function(){return ODM};
x$c=function(S,c){ODM=S;Object.setPrototypeOf(S,c.prototype);new c;ODM=null};
FlM=function(S,c){for(var Q=0;Q<c.length;Q++){var f=c[Q];if(!!S!=!!f.__hideTemplateChildren__)if(f.nodeType===Node.TEXT_NODE)S?(f.__polymerTextContent__=f.textContent,f.textContent=""):f.textContent=f.__polymerTextContent__;else if(f.localName==="slot")if(S)f.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.Nm)((0,_.Nm)(f).parentNode).replaceChild(f.__polymerReplaced__,f);else{var U=f.__polymerReplaced__;U&&(0,_.Nm)((0,_.Nm)(U).parentNode).replaceChild(f,U)}else f.style&&(S?(f.__polymerDisplay__=
f.style.display,f.style.display="none"):f.style.display=f.__polymerDisplay__);f.__hideTemplateChildren__=S;f._showHideChildren&&f._showHideChildren(S)}};
BDY=function(S){return(S=S.__dataHost)&&S._methodHost||S};
bDH=function(S,c,Q){var f=Q.mutableData?I6c:GL;Wn.mixin&&(f=Wn.mixin(f));var U=function(){return f.apply(this,arguments)||this};
_.C(U,f);U.prototype.__templatizeOptions=Q;U.prototype._bindTemplate(S);nuZ(U,S,c,Q);return U};
jCo=function(S,c,Q,f){var U=Q.forwardHostProp;if(U&&c.hasHostProps){var a=S.localName=="template",X=c.templatizeTemplateClass;if(!X){if(a){var z=Q.mutableData?NDp:KlZ;X=function(){return z.apply(this,arguments)||this};
_.C(X,z);X=c.templatizeTemplateClass=X}else{var x=S.constructor;X=function(){return x.apply(this,arguments)||this};
_.C(X,x);X=c.templatizeTemplateClass=X}var I=c.hostProps,n;for(n in I)X.prototype._addPropertyEffect("_host_"+n,X.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:$$Y(U)}),X.prototype._createNotifyingProperty("_host_"+n);gK&&f&&ufR(c,Q,f)}S.__dataProto&&Object.assign(S.__data,S.__dataProto);if(a)x$c(S,X),S.__dataTemp={},S.__dataPending=null,S.__dataOld=null,S._enableProperties();else{Object.setPrototypeOf(S,X.prototype);c=c.hostProps;for(var b in c)b="_host_"+b,b in S&&(c=S[b],delete S[b],S.__data[b]=
c)}}};
$$Y=function(S){return function(c,Q,f){S.call(c.__templatizeOwner,Q.substring(6),f[Q])}};
nuZ=function(S,c,Q,f){var U=Q.hostProps||{},a;for(a in f.instanceProps){delete U[a];var X=f.notifyInstanceProp;X&&S.prototype._addPropertyEffect(a,S.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:l6H(X)})}if(f.forwardHostProp&&c.__dataHost)for(var z in U)Q.hasHostProps||(Q.hasHostProps=!0),S.prototype._addPropertyEffect(z,S.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:YIZ()})};
l6H=function(S){return function(c,Q,f){S.call(c.__templatizeOwner,c,Q,f[Q])}};
YIZ=function(){return function(S,c,Q){S.__dataHost._setPendingPropertyOrPath("_host_"+c,Q[c],!0,!0)}};
Wn=function(S,c,Q){if(eR&&!BDY(S))throw Error("Kd");Q=Q||{};if(S.__templatizeOwner)throw Error("Ld");S.__templatizeOwner=c;var f=(c?c.constructor:GL)._parseTemplate(S),U=f.templatizeInstanceClass;U||(U=bDH(S,f,Q),f.templatizeInstanceClass=U);var a=BDY(S);jCo(S,f,Q,a);Q=function(){return U.apply(this,arguments)||this};
_.C(Q,U);Q.prototype._methodHost=a;Q.prototype.__dataHost=S;Q.prototype.__templatizeOwner=c;Q.prototype.__hostProps=f.hostProps;return Q};
ufR=function(S,c,Q){Q=Q.constructor._properties;S=S.propertyEffects;c=c.instanceProps;for(var f in S)if(!(Q[f]||c&&c[f]))for(var U=S[f],a=0;a<U.length;a++){var X=U[a].info.part;if(!X.signature||!X.signature.static){console.warn("Property '"+f+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
CVc=function(S,c){for(var Q;c;)if(Q=c.__dataHost?c:c.__templatizeInstance)if(Q.__dataHost!=S)c=Q.__dataHost;else return Q;else c=(0,_.Nm)(c).parentNode;return null};
kQ=function(S){return S.localName==="slot"};
HDo=function(){for(var S=rK.prototype,c="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),Q={},f=0;f<c.length;Q={method$jscomp$30:void 0},f++)Q.method$jscomp$30=c[f],S[Q.method$jscomp$30]=function(U){return function(){return this.node[U.method$jscomp$30].apply(this.node,arguments)}}(Q)};
D$p=function(S,c){for(var Q={},f=0;f<c.length;Q={name$jscomp$380:void 0},f++)Q.name$jscomp$380=c[f],Object.defineProperty(S,Q.name$jscomp$380,{get:function(U){return function(){return this.node[U.name$jscomp$380]}}(Q),
configurable:!0})};
pZT=function(){for(var S=rK.prototype,c=["textContent","innerHTML","className"],Q={},f=0;f<c.length;Q={name$jscomp$381:void 0},f++)Q.name$jscomp$381=c[f],Object.defineProperty(S,Q.name$jscomp$381,{get:function(U){return function(){return this.node[U.name$jscomp$381]}}(Q),
set:function(U){return function(a){this.node[U.name$jscomp$381]=a}}(Q),
configurable:!0})};
hnx=function(){vn=document.documentElement.getAttribute("dir");vn=document.documentElement.getAttribute("dir");for(var S=0;S<Pn.length;S++){var c=Pn[S];c.__autoDirOptOut||c.setAttribute("dir",vn)}};
sCo=function(){L$=!0;requestAnimationFrame(function(){L$=!1;qIT(TDZ);setTimeout(function(){for(var S=0,c=EP.length;S<c;S++)wZH(EP.shift())})})};
qIT=function(S){for(;S.length;)wZH(S.shift())};
wZH=function(S){var c=S[0],Q=S[1];S=S[2];try{Q.apply(c,S)}catch(f){setTimeout(function(){throw f;})}};
_.M0Z=function(S,c,Q){L$||sCo();TDZ.push([S,c,Q])};
_.tO=function(S,c,Q){L$||sCo();EP.push([S,c,Q])};
Gwx=function(S,c){c=c===void 0?!1:c;if(!iDp||!ZDR||!iDp.handlesDynamicScoping)return null;var Q=ZDR.ScopingShim;if(!Q)return null;var f=Q.scopeForNode(S),U=(0,_.Nm)(S).getRootNode(),a=function(X){if((0,_.Nm)(X).getRootNode()===U){var z=Array.from(iDp.nativeMethods.querySelectorAll.call(X,"*"));z.push(X);for(X=0;X<z.length;X++){var x=z[X];if((0,_.Nm)(x).getRootNode()===U){var I=Q.currentScopeForNode(x);I!==f&&(I!==""&&Q.unscopeNode(x,I),Q.scopeNode(x,f))}}}};
a(S);return c?(c=new MutationObserver(function(X){for(var z=0;z<X.length;z++)for(var x=X[z],I=0;I<x.addedNodes.length;I++){var n=x.addedNodes[I];n.nodeType===Node.ELEMENT_NODE&&a(n)}}),c.observe(S,{childList:!0,
subtree:!0}),c):null};
Wlz=function(){document.body.removeAttribute("unresolved")};
d$p=function(S){var c=S=S.replace(guH,"").replace(enZ,""),Q=new kwT;Q.start=0;Q.end=c.length;for(var f=Q,U=0,a=c.length;U<a;U++)if(c[U]==="{"){f.rules||(f.rules=[]);var X=f,z=X.rules[X.rules.length-1]||null;f=new kwT;f.start=U+1;f.parent=X;f.previous=z;X.rules.push(f)}else c[U]==="}"&&(f.end=U+1,f=f.parent||Q);return rWp(Q,S)};
rWp=function(S,c){var Q=c.substring(S.start,S.end-1);S.parsedCssText=S.cssText=Q.trim();S.parent&&(Q=c.substring(S.previous?S.previous.end:S.parent.start,S.start-1),Q=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(Q),Q=Q.replace(vuR," "),Q=Q.substring(Q.lastIndexOf(";")+1),Q=S.parsedSelector=S.selector=Q.trim(),S.atRule=Q.indexOf("@")===0,S.atRule?Q.indexOf("@media")===0?S.type=4:Q.match(PVT)&&(S.type=7,S.keyframesName=S.selector.split(vuR).pop()):Q.indexOf("--")===
0?S.type=1E3:S.type=1);if(Q=S.rules)for(var f=0,U=Q.length,a=void 0;f<U&&(a=Q[f]);f++)rWp(a,c);return S};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(S){return S.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var c=arguments[1],Q=6-c.length;Q--;)c="0"+c;return"\\"+c})};
LlY=function(S,c,Q){Q=Q===void 0?"":Q;var f="";if(S.cssText||S.rules){var U=S.rules;if(U&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(U))for(var a=0,X=U.length,z=void 0;a<X&&(z=U[a]);a++)f=LlY(z,c,f);else c?c=S.cssText:(c=S.cssText,c=c.replace(Euz,"").replace(t0p,""),c=c.replace(V0x,"").replace(RnZ,"")),(f=c.trim())&&(f="  "+f+"\n")}f&&(S.selector&&(Q+=S.selector+" {\n"),Q+=f,S.selector&&(Q+="}\n\n"));return Q};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(S){S=S[0];return!!S&&!!S.selector&&S.selector.indexOf("--")===0};
ouY=function(S){if(S=yWR[S])S._applyShimCurrentVersion=S._applyShimCurrentVersion||0,S._applyShimValidatingVersion=S._applyShimValidatingVersion||0,S._applyShimNextVersion=(S._applyShimNextVersion||0)+1};
m$p=function(S){return S._applyShimCurrentVersion===S._applyShimNextVersion};
cwc=function(S){S._applyShimValidatingVersion=S._applyShimNextVersion;S._validating||(S._validating=!0,S9z.then(function(){S._applyShimCurrentVersion=S._applyShimNextVersion;S._validating=!1}))};
fvZ=function(S){if(!S)return"";typeof S==="string"&&(S=d$p(S));return LlY(S,QKM)};
U7p=function(S){!S.__cssRules&&S.textContent&&(S.__cssRules=d$p(S.textContent));return S.__cssRules||null};
avc=function(S,c,Q,f){if(S){var U=!1,a=S.type;if(f&&a===4){var X=S.selector.match(Jwr);X&&(window.matchMedia(X[1]).matches||(U=!0))}a===1?c(S):Q&&a===7?Q(S):a===1E3&&(U=!0);if((S=S.rules)&&!U)for(U=0,a=S.length,X=void 0;U<a&&(X=S[U]);U++)avc(X,c,Q,f)}};
Awx=function(S,c){var Q=S.indexOf("var(");if(Q===-1)return c(S,"","","");a:{var f=0;var U=Q+3;for(var a=S.length;U<a;U++)if(S[U]==="(")f++;else if(S[U]===")"&&--f===0)break a;U=-1}f=S.substring(Q+4,U);Q=S.substring(0,Q);S=Awx(S.substring(U+1),c);a=f.indexOf(",");if(a===-1)return c(Q,f.trim(),"",S);U=f.substring(0,a).trim();f=f.substring(a+1).trim();return c(Q,U,f,S)};
X$Y=function(S){if(Vu!==void 0)return Vu;if(S.__cssBuild===void 0){var c=S.getAttribute("css-build");if(c)S.__cssBuild=c;else{a:{c=S.localName==="template"?S.content.firstChild:S.firstChild;if(c instanceof Comment&&(c=c.textContent.trim().split(":"),c[0]==="css-build")){c=c[1];break a}c=""}if(c!==""){var Q=S.localName==="template"?S.content.firstChild:S.firstChild;Q.parentNode.removeChild(Q)}S.__cssBuild=c}}return S.__cssBuild||""};
zpZ=function(S,c,Q,f){for(var U=c._noAccessors,a=Object.getOwnPropertyNames(c),X=0;X<a.length;X++){var z=a[X];if(!(z in f))if(U)S[z]=c[z];else{var x=Object.getOwnPropertyDescriptor(c,z);x&&(x.configurable=!0,Object.defineProperty(S,z,x))}}for(var I in OjZ)c[I]&&(Q[I]=Q[I]||[],Q[I].push(c[I]))};
x7z=function(S,c,Q){c=c||[];for(var f=S.length-1;f>=0;f--){var U=S[f];U?Array.isArray(U)?x7z(U,c):c.indexOf(U)<0&&(!Q||Q.indexOf(U)<0)&&c.unshift(U):console.warn("behavior is null, check for missing or 404 import")}return c};
F9x=function(S,c){for(var Q in c){var f=S[Q],U=c[Q];S[Q]=!("value"in U)&&f&&"value"in f?Object.assign({value:f.value},U):U}};
nsz=function(S,c,Q){var f={},U=function(){return c.apply(this,arguments)||this};
_.C(U,c);U._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(X)for(var x=0,I;x<X.length;x++)I=X[x],I.properties&&this.createProperties(I.properties),I.observers&&this.createObservers(I.observers,I.properties);S.properties&&this.createProperties(S.properties);S.observers&&this.createObservers(S.observers,S.properties);this._prepareTemplate()}else c._finalizeClass.call(this)};
U.prototype.created=function(){c.prototype.created.call(this);var x=f.created;if(x)for(var I=0;I<x.length;I++)x[I].call(this)};
U.prototype._registered=function(){var x=U.prototype;if(!x.hasOwnProperty("__hasRegisterFinished")){x.__hasRegisterFinished=!0;c.prototype._registered.call(this);iO&&z(x);x=Object.getPrototypeOf(this);var I=f.beforeRegister;if(I)for(var n=0;n<I.length;n++)I[n].call(x);if(I=f.registered)for(n=0;n<I.length;n++)I[n].call(x)}};
U.prototype._applyListeners=function(){c.prototype._applyListeners.call(this);var x=f.listeners;if(x)for(var I=0;I<x.length;I++){var n=x[I];if(n)for(var b in n)this._addMethodEventListenerToNode(this,b,n[b])}};
U.prototype._ensureAttributes=function(){var x=f.hostAttributes;if(x)for(var I=x.length-1;I>=0;I--){var n=x[I],b;for(b in n)this._ensureAttribute(b,n[b])}c.prototype._ensureAttributes.call(this)};
U.prototype.ready=function(){c.prototype.ready.call(this);var x=f.ready;if(x)for(var I=0;I<x.length;I++)x[I].call(this)};
U.prototype.attached=function(){c.prototype.attached.call(this);var x=f.attached;if(x)for(var I=0;I<x.length;I++)x[I].call(this)};
U.prototype.detached=function(){c.prototype.detached.call(this);var x=f.detached;if(x)for(var I=0;I<x.length;I++)x[I].call(this)};
U.prototype.attributeChanged=function(x,I,n){c.prototype.attributeChanged.call(this);var b=f.attributeChanged;if(b)for(var N=0;N<b.length;N++)b[N].call(this,x,I,n)};
_.Rh.Object.defineProperties(U,{properties:{configurable:!0,enumerable:!0,get:function(){var x={};if(X)for(var I=0;I<X.length;I++)F9x(x,X[I].properties);F9x(x,S.properties);return x}},
observers:{configurable:!0,enumerable:!0,get:function(){var x=[];if(X)for(var I=0,n;I<X.length;I++)n=X[I],n.observers&&(x=x.concat(n.observers));S.observers&&(x=x.concat(S.observers));return x}}});
if(Q){Array.isArray(Q)||(Q=[Q]);var a=c.prototype.behaviors;var X=x7z(Q,null,a);U.prototype.behaviors=a?a.concat(Q):X}var z=function(x){if(X)for(var I=X,n=0;n<I.length;n++)zpZ(x,I[n],f,Bar);zpZ(x,S,f,Ivo)};
iO||z(U.prototype);U.generatedFrom=S;return U};
$7r=function(S){var c=typeof S!=="string"?S:{is:S,notifyObserversOnUndefined:!0};c.fastInit===void 0&&(c.fastInit=!0);return function(Q){if(!c.disableInheritanceCheck&&Object.getPrototypeOf(Q.prototype).constructor!==_.yu)throw Error("Pd");var f=Q.prototype;f.is=c.is;Y2p(f,"created",function(){this.hostElement=this;this.polymerController=this});
bjp(f,Q,c.fastInit);c.notifyObserversOnUndefined&&(f._overrideLegacyUndefined=!0);if(Naz)for(var U=_.A(Object.getOwnPropertyNames(f)),a=U.next();!a.done;a=U.next()){a=a.value;var X=Object.getOwnPropertyDescriptor(f,a);X.enumerable===!1&&(X.enumerable=!0,Object.defineProperty(f,a,X))}if("template"in Q)var z=function(){return Q.template};
else c.template!==void 0&&(z=c.template);if(z!==void 0){var x;Object.defineProperty(f,"_template",{get:function(){x===void 0&&(x=z());return x},
set:function(I){x=I},
configurable:!0,enumerable:!0})}Polymer(f);Q[K9p]=f}};
uqz=function(S){S=S===void 0?{}:S;S.fastInit===void 0&&(S.fastInit=!0);return function(c){if(!S.disableInheritanceCheck&&Object.getPrototypeOf(c.prototype).constructor!==oh)throw Error("Qd");bjp(c.prototype,c,S.fastInit)}};
bjp=function(S,c,Q){Q=Q===void 0?!1:Q;jKZ(c);Q?Y2p(S,"created",function(){this.disableEnforceFastDefaultValuesCheck||lvT(c,this)}):Y2p(S,"ready",function(){for(var f={},U=_.A(C8z(this.behaviors)),a=U.next();!a.done;a=U.next())a=a.value,a.properties&&Object.assign(f,Y9p(this,a.properties));
Object.assign(f,Y9p(this,this.properties));lvT(c,this);U=_.A(Object.keys(f));for(a=U.next();!a.done;a=U.next())a=a.value,this[a]=f[a]})};
lvT=function(S,c){if(Naz){S=new S;for(var Q=_.A(Object.getOwnPropertyNames(S)),f=Q.next();!f.done;f=Q.next())f=f.value,c[f]=S[f];for(Q=c;Q&&Q!==Object.prototype;Q=Object.getPrototypeOf(Q)){f=_.A(Object.getOwnPropertyNames(Q));for(var U=f.next();!U.done;U=f.next())U=U.value,S.hasOwnProperty(U)||Object.defineProperty(S,U,Cex(c,U))}}else S.apply(c)};
Cex=function(S,c){return{get:function(){var Q=S[c];return Q instanceof Function?Q.bind(S):Q},
set:function(Q){S[c]=Q}}};
Y9p=function(S,c){if(!c)return{};for(var Q={},f=_.A(Object.keys(c)),U=f.next();!U.done;U=f.next())if(U=U.value,!c[U].readOnly){var a=S[U];a!==void 0&&(Q[U]=a)}return Q};
jKZ=function(S){var c=new S;S=S.prototype.properties||{};for(var Q=_.A(Object.keys(S)),f=Q.next();!f.done;f=Q.next())if(f=f.value,c.hasOwnProperty(f)){var U=S[f];typeof U==="function"&&(S[f]=U={type:U});c[f]!=null&&U.type===Object&&(U.type=HjZ(c[f].constructor))}};
HjZ=function(S){for(var c=_.A(D7r),Q=c.next();!Q.done;Q=c.next())if(Q=Q.value,S===Q)return Q;return Object};
p$x=function(S){return function(c,Q){c.behaviors=c.behaviors||[];c.behaviors.push(S||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",c,Q).prototype:void 0));Object.defineProperty(c,Q,{get:function(){return this},
enumerable:!0,configurable:!0})}};
hpp=function(S){S=S===void 0?{}:S;return function(c,Q){c.properties=c.properties||{};S.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?S.type=HjZ(Reflect.getMetadata("design:type",c,Q)):S.type=String);var f=S,U=c.properties[Q];c.properties[Q]=U?Object.assign({},U,f):f}};
q9Z=function(S){return function(c,Q){c.listeners=c.listeners||{};c.listeners[S]=Q}};
TaM=function(){var S=_.YD.apply(0,arguments);if(S.length===0)throw Error("Rd");return function(c,Q){c.observers=c.observers||[];c.observers.push(Q+"("+S.join(",")+")")}};
w$z=function(){var S=_.YD.apply(0,arguments);return function(c,Q,f){var U=Object.getOwnPropertyDescriptor(c,Q).get,a="__compute__"+Q;Object.defineProperty(c,a,{value:U,enumerable:!0});c.properties=c.properties||{};U=c.properties[Q];U||(U={},c.properties[Q]=U);U.computed=a+"("+S.join(",")+")";f.get=void 0}};
_.mG=function(S,c,Q){_.C9.call(this);this.JSC$9260_id_=null;this.usingListeners_=!1;this.JSC$9260_listener_=S;this.handler_=Q;this.JSC$9260_win_=c||window;this.callback_=(0,_.H1)(this.JSC$9262_doAction_,this)};
SB=function(S){this.range_=S};
cd=function(S){this.range_=S};
UM=function(S,c,Q){_.C9.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=S;this.scrollTimer_=new _.Q7(50);this.JSC$9339_eventHandler_=new _.fP(this);this.scrollDelta_=new _.pn;this.containerIsActuallyContent_=S.tagName==="BODY"||S.tagName==="HTML";this.containerBounds_=sKZ(S);this.containerIsActuallyContent_&&(S=_.B5(),this.containerBounds_.height=S.height,this.containerBounds_.width=S.width);this.margin_=c||0;if(c){if(c=this.containerBounds_.clone(),S=this.margin_){var f=
Math.min(S,c.height*.25);c.top+=f;c.height-=2*f;S=Math.min(S,c.width*.25);c.left+=S;c.width-=2*S}}else c=this.containerBounds_;this.scrollBounds_=c;Q||this.JSC$9339_eventHandler_.listen(_.qk(this.containerNode_),"mousemove",this.JSC$9341_onMouseMove);this.JSC$9339_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9341_onTick_)};
_.JG=function(S){this.mechanism=S};
aY=function(S,c){this.JSC$9437_key_=S;this.JSC$9437_value_=c};
ijH=function(S){if(S>=55296&&S<=57343||S>1114111)return"\ufffd";S in MPT&&(S=MPT[S]);var c="";S>65535&&(S-=65536,c+=String.fromCharCode(S>>>10&1023|55296),S=56320|S&1023);return c+=String.fromCharCode(S)};
Zjo=function(S,c){return S<c?1:-1};
W9c=function(){return function(S){return S.charAt(1)==="#"?S.charAt(2)==="X"||S.charAt(2)==="x"?ijH(parseInt(S.substr(3),16)):ijH(parseInt(S.substr(2),10)):GVr[S.slice(1,-1)]}};
kVo=function(S){return S.slice(1,S.length-1).trim().replace(gsp,function(c){return epc[c]||" "})};
AG=function(S){return S===32||S===9};
Xu=function(S,c){return c<S.length?S.charCodeAt(c):-1};
rwH=function(S){for(;S;){if(S._lastLineBlank)return!0;var c=S.type;if(c==="list"||c==="item")S=S._lastChild;else break}return!1};
OM=function(S){if(d7M.test(S)){var c=1,Q=0,f=0;for(S[Q]=="|"&&Q++;Q<S.length;){switch(S[Q]){case "|":f=1;break;case " ":break;case "\t":break;default:f&&(f=0,c++)}Q++}return vsY.test(S)?-c:c}return 0};
PeR=function(S){return S=="table"||S=="row"||S=="cell"};
L9M=function(){return new z$("document",[[1,1],[0,0]])};
Esc=function(){};
xU=function(){var S={safe:!1};S=S||{};S.softbreak=S.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=S};
osZ=function(S,c){var Q="";if(S)if(S=S.toLowerCase(),S===" "||tPx.test(S))Q="space";else if(VPx.test(S))Q="esc";else if(S.length==1){if(!c||Rpx.test(S))Q=S}else Q=ywp.test(S)?S.replace("arrow",""):S=="multiply"?"*":S;return Q};
Qro=function(S,c){var Q=S.hasModifiers;if(c.key)Q=osZ(c.key,Q);else if(c.detail&&c.detail.key)Q=osZ(c.detail.key,Q);else{Q=c.keyIdentifier;var f="";Q&&(Q in m7H?f=m7H[Q]:SYT.test(Q)?(Q=parseInt(Q.replace("U+","0x"),16),f=String.fromCharCode(Q).toLowerCase()):f=Q.toLowerCase());(Q=f)||(Q=c.keyCode,f="",Number(Q)&&(Q>=65&&Q<=90?f=String.fromCharCode(32+Q):Q>=112&&Q<=123?f="f"+(Q-112+1):Q>=48&&Q<=57?f=String(Q-48):Q>=96&&Q<=105?f=String(Q-96):f=cPz[Q]),Q=f);Q=Q||""}return Q===S.key&&(!S.hasModifiers||
!!c.shiftKey===!!S.shiftKey&&!!c.ctrlKey===!!S.ctrlKey&&!!c.altKey===!!S.altKey&&!!c.metaKey===!!S.metaKey)};
UJr=function(S){return S.length===1?{combo:S,key:S,event:"keydown"}:S.split("+").reduce(function(c,Q){var f=Q.split(":");Q=f[0];f=f[1];Q in fxo?(c[fxo[Q]]=!0,c.hasModifiers=!0):(c.key=Q,c.event=f||"keydown");return c},{combo:S.split(":").shift()})};
JPR=function(S){return S.trim().split(" ").map(function(c){return UJr(c)})};
axY=function(S,c){if(S&&S.fn){var Q=S.fn;S.fn=function(){try{Q.apply(this,arguments)}catch(f){if(f instanceof Fu)console.warn("Argument '"+f.arg+"'"+(c?" for method '"+c+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw f;}}}return S};
APY=function(){var S=_.YD.apply(0,arguments);return S.length===0?function(c){return c}:S.length===1?S[0]:S.reduce(function(c,Q){return function(){return c(Q.apply(null,_.Hs(_.YD.apply(0,arguments))))}})};
Xgo=function(){var S=_.YD.apply(0,arguments);return function(c){return function(Q,f){Q=c(Q,f);var U=function(){throw Error("Be");},a={getState:Q.getState,
dispatch:function(X){return U.apply(null,[X].concat(_.Hs(_.YD.apply(1,arguments))))}};
f=S.map(function(X){return X(a)});
U=APY.apply(null,_.Hs(f))(Q.dispatch);return Object.assign({},Q,{dispatch:U})}}};
xJz=function(S){Object.keys(S).forEach(function(c){var Q=S[c];if(typeof Q(void 0,{type:OWz})==="undefined")throw Error("Ce`"+c);if(typeof Q(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+zYZ()})==="undefined")throw Error("De`"+c+"`"+OWz);})};
Bd=function(S){for(var c=Object.keys(S),Q={},f=0;f<c.length;f++){var U=c[f];typeof S[U]==="function"&&(Q[U]=S[U])}var a=Object.keys(Q);try{xJz(Q)}catch(z){var X=z}return function(z,x){z=z===void 0?{}:z;if(X)throw X;for(var I=!1,n={},b=0;b<a.length;b++){var N=a[b],l=z[N],H=(0,Q[N])(l,x);if(typeof H==="undefined")throw z=x&&x.type,Error("Ee`"+(z?'"'+String(z)+'"':"(unknown type)")+"`"+N);n[N]=H;I=I||H!==l}return(I=I||a.length!==Object.keys(z).length)?n:z}};
FJT=function(S,c,Q){function f(){if(n)throw Error("Fe");return z}
function U(l){if(typeof l!=="function")throw Error("Ge`"+typeof l);if(n)throw Error("He");var H=!0;I===x&&(I=x.slice());I.push(l);return function(){if(H){if(n)throw Error("Ie");H=!1;I===x&&(I=x.slice());var q=I.indexOf(l);I.splice(q,1);x=null}}}
function a(l){if(typeof l!=="object"||l===null)var H=!1;else{for(H=l;Object.getPrototypeOf(H)!==null;)H=Object.getPrototypeOf(H);H=Object.getPrototypeOf(l)===H}if(!H)throw Error("Je`"+typeof l);if(typeof l.type==="undefined")throw Error("Ke");if(n)throw Error("Le");try{n=!0,z=X(z,l)}finally{n=!1}H=x=I;for(var q=0;q<H.length;q++)(0,H[q])();return l}
if(typeof c==="function"&&typeof Q==="function"||typeof Q==="function"&&typeof arguments[3]==="function")throw Error("Me");typeof c==="function"&&typeof Q==="undefined"&&(Q=c,c=void 0);if(typeof Q!=="undefined"){if(typeof Q!=="function")throw Error("Ne`"+typeof Q);return Q(FJT)(S,c)}if(typeof S!=="function")throw Error("Oe`"+typeof S);var X=S,z=c,x=[],I=x,n=!1;a({type:OWz});var b={},N=(b.dispatch=a,b.subscribe=U,b.getState=f,b.replaceReducer=function(l){if(typeof l!=="function")throw Error("Pe`"+
typeof l);X=l;a({type:Bro});return N},b[IxY]=function(){var l={};
return l.subscribe=function(H){function q(){H.next&&H.next(f())}
if(typeof H!=="object"||H===null)throw new TypeError("Qe`"+typeof H);q();return{unsubscribe:U(q)}},l[IxY]=function(){return this},l},b);
return N};
nHM=function(S){function c(){U&&(U=!1,S());a&&f()}
function Q(){requestAnimationFrame(c)}
function f(){var z=Date.now();if(U){if(z-X<2)return;a=!0}else U=!0,a=!1,setTimeout(Q,20);X=z}
var U=!1,a=!1,X=0;return f};
IY=function(S){return typeof S==="number"?S:parseFloat(S)||0};
bWc=function(S){return _.YD.apply(1,arguments).reduce(function(c,Q){return c+IY(S["border-"+Q+"-width"])},0)};
_.D=function(S,c){c=qg(h5(c));S.innerHTML=c};
$JZ=function(S){var c=Nro;c||(c=KJM(),c=Nro=_.Cn.transpose(c));c=c[S];return typeof c==="string"?c:_.nP(S)};
uax=function(S){S=String(S).toLowerCase();var c=KJM()[S];return typeof c==="string"?c:_.bx(S)};
jrY=function(S){S=S.toLowerCase();S=KJM()[S];return typeof S==="string"?S:null};
KJM=function(){if(!lxY){for(var S=Object.assign({},YYp),c=_.A(CRZ),Q=c.next();!Q.done;Q=c.next())Q=Q.value,S[Q.toLowerCase()]=Q;lxY=S}return lxY};
pgH=function(S,c){var Q=window.customElements;return Q&&Q.get(S)||HWz[S]===!0?2:c.name==="HTMLUnknownElement"?1:c.name==="HTMLElement"&&DJT.test(S)?3:0};
TrT=function(S,c){switch(c){case "innerHTML":return hYc(S)===1?2:null;case "textContent":return S=hYc(S),S===1||S===6?1:null;default:var Q,f;return(f=(Q=qYp[S.localName])==null?void 0:Q[c])!=null?f:null}};
hYc=function(S){var c=S.localName,Q=pgH(c,S.constructor);switch(Q){case 0:case 1:return wgR(c,S);case 3:case 2:return 1;default:_.OZ(Q,"got an unknown element classification")}};
wgR=function(S,c){var Q=Object.hasOwnProperty.call(srY,S)?srY[S]:null;return Q!==null?Q:Object.hasOwnProperty.call(MpH,S)&&c instanceof SVGElement?MpH[S]:null};
iWp=function(S,c){return c};
G1p=function(S){return(S=S.split(ZWp,2))?{url:S[0],metadata:S[1]}:null};
gHz=function(S){var c=String(S.url).replace(WJp,encodeURIComponent);if(S=S.metadata){WJp.lastIndex=0;if(WJp.test(S))return null;c+=" "+S}return c};
dJx=function(S){function c(I){var n=I.localName;if(!I.getAttribute("is")&&pgH(n,I.constructor)===2){var b;return(b=x)!=null?b:x=document.createElement("polyresinuncustomized")}(I=z[n])||(I=z[n]=document.createElement(n));return I}
var Q=S.reportHandler||void 0,f=S.safeTypesBridge||eYr,U=/^$/;if(S=S.allowedIdentifierPrefixes){S=_.A(S);for(var a=S.next();!a.done;a=S.next())U=new RegExp(U.source+"|^"+_.k1Z(a.value))}Q&&Q(!1,"initResin",null);var X=rPo(U,f,Q),z={},x=null;return function(I,n,b){var N=I.nodeType;if(N!==Node.ELEMENT_NODE){if(N===Node.TEXT_NODE){n=I.parentElement;b=!n;if(n&&n.nodeType===Node.ELEMENT_NODE){N=n.localName;var l=pgH(N,n.constructor);switch(l){case 0:case 1:n=wgR(N,n);b=n===1||n===6;break;case 3:case 2:b=
!0;break;default:_.OZ(l,"got an unknown element classification")}}if(b)return function(g){return""+f(g,"STRING",g)}}return function(g){if(!g&&g!==document.all)return g;
Q&&Q(!0,"Failed to sanitize "+(I.parentElement&&I.parentElement.nodeName)+" #text node to value "+g,I.parentElement);return NE}}var H=I.localName;
N=c(I);var q=null;switch(b){case "attribute":if(uax(n)in N)break;return function(g){return g};
case "property":if(n in N){q=TrT(N,n);break}if((l=jrY(n))&&l in N)break;return function(g){return g};
default:_.OZ(b,"got an unknown resin type, expected either 'property' or 'attribute'")}var w=b==="attribute"?n.toLowerCase():$JZ(n);q||(q=zJz(H,w,function(g){var r=I.getAttribute(g);return!r||/[\[\{]/.test(g)?null:r}));
return function(g){var r=KP,E=null;if(!g&&g!==document.all)return g;if(q!=null){var v=X[q],t=v.safeType;E=v.safeReplacement;t&&(r=f(g,t,KP));r===KP&&(v.filterString?(r=String(f(g,"STRING",g)),r=v.filterString(H,w,r)):v.filterRaw&&(r=v.filterRaw(H,w,g,I)),r===E&&(r=KP))}r===KP&&(r=E||NE,Q&&Q(!0,"Failed to sanitize attribute of <"+H+">: <"+H+" "+w+'="'+g+'">',I));return r}}};
rPo=function(S,c,Q){return[,{filterRaw:function(f,U,a){return a},
filterString:void 0,safeReplacement:void 0,safeType:void 0},{filterRaw:void 0,filterString:void 0,safeReplacement:void 0,safeType:"HTML"},{filterRaw:void 0,filterString:void 0,safeReplacement:vHz,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:vHz,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:NE,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:PRz,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(f,U,a){a=
String(a).toLowerCase();return Bep(f,U,a)?a:NE},
safeReplacement:NE,safeType:void 0},,{filterRaw:void 0,filterString:function(f,U,a){return S.test(a)?a:NE},
safeReplacement:NE,safeType:"CONSTANT"},{filterRaw:function(f,U,a,X){if(typeof a==="string")var z=(z=a.match(LJR))?z.map(G1p).filter(Boolean):[];else if(Array.isArray(a))z=a;else return vHz;var x=z;z=[];var I=[],n={};if(Array.isArray(x))for(var b=0,N=x.length;b<N;++b){var l=x[b],H=l&&l.url;if(H){var q=c(H,"URL",n);if(q){var w=q!==n;(w?z:I).push({url:w?q:H,metadata:l.metadata})}}}else I.push(x);x=I.length?JSON.stringify(I):null;I=KP;if(z.length){if(!Array.isArray(z))throw Error();I=z.map(gHz).filter(Boolean).join(" , ")||
KP}x&&Q&&Q(!0,"Failed to sanitize attribute value of <"+f+">: <"+f+" "+U+'="'+a+'">: '+x,X);return I===KP?vHz:I},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
EHo=function(S){var c=dJx(S);return function(Q,f,U,a){return a||a===document.all?c(Q,f,U)(a):a}};
$U=function(S,c){function Q(){function U(z,x,I){for(x=Reflect.getMetadata("parameters",z)||[];x.length<=I;)x.push(null);x[I]=x[I]||[];x[I].push(X);Reflect.defineMetadata(x,z);return z}
var a=_.YD.apply(0,arguments);if(this instanceof Q)return f.apply(this,a),this;var X=new (Function.prototype.bind.apply(Q,[null].concat(_.Hs(a))));U.annotation=X;return U}
var f=tpz(c);Q.prototype.toString=function(){return"@"+S};
return Q.annotationCls=Q};
tpz=function(S){return function(){var c=_.YD.apply(0,arguments),Q=this;S.forEach(function(f,U){U=c[U];if(Array.isArray(f))Q[f[0]]=U&&U!==void 0?U:f[1];else for(var a in f)Q[a]=U&&U[a]!==void 0?U[a]:f[a]})}};
VpH=function(S){return S!==void 0&&S!==null};
ux=function(S){if(typeof S==="string")return S;if(S===void 0||S===null)return""+S;if(S.overriddenName)return S.overriddenName;if(S.name)return S.name;S=S.toString();var c=S.indexOf("\n");return c===-1?S:S.substring(0,c)};
RYT=function(S){S.__forward_ref__=RYT;S.toString=function(){return ux(this())};
return S};
jB=function(S){return typeof S==="function"&&S.hasOwnProperty("__forward_ref__")&&S.__forward_ref__===RYT?S():S};
yPY=function(S){return S?S.map(function(c){return new (Function.prototype.bind.apply(c.type.annotationCls,[null].concat(_.Hs(c.args?c.args:[]))))}):[]};
oHc=function(S){for(var c=[],Q=0;Q<S.length;++Q){if(c.indexOf(S[Q])>-1){c.push(S[Q]);break}c.push(S[Q])}return c};
mJz=function(S){return S.length>1?" ("+oHc(S.slice().reverse()).map(function(c){return ux(c.token)}).join(" -> ")+")":""};
cMZ=function(S,c,Q,f){if(f){var U=Error("Xe``"+(f instanceof Error?f.message:f));U.ngOriginalError=f}else U=Error();U.addKey=SRz;U.keys=[c];U.injectors=[S];U.constructResolvingMessage=Q;U.message=U.constructResolvingMessage();U.ngOriginalError=f;return U};
SRz=function(S,c){this.injectors.push(S);this.keys.push(c);this.message=this.constructResolvingMessage()};
QlT=function(S,c){return cMZ(S,c,function(){return"No provider for "+ux(this.keys[0].token)+"!"+mJz(this.keys)})};
f$p=function(S,c){return cMZ(S,c,function(){return"Cannot instantiate cyclic dependency!"+mJz(this.keys)})};
U1r=function(S,c,Q){return cMZ(S,Q,function(){var f=ux(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+f+"!"+mJz(this.keys)+"."},c)};
JMY=function(S,c){for(var Q=[],f=0,U=c.length;f<U;f++){var a=c[f];a&&a.length!=0?Q.push(a.map(ux).join(" ")):Q.push("?")}return Error("af`"+ux(S)+"`"+Q.join(", ")+"`"+ux(S))};
FCr=function(S){var c=void 0,Q=void 0;if(S&&S.useClass!==void 0){c=S.useClass;var f=jB(S.useClass);var U=a$r.factory(f);f=AMM(f)}else S&&S.useExisting!==void 0?(U=function(a){return a},f=[XlT(lx.get(jB(S.useExisting)))]):S&&S.useFactory!==void 0?(U=S.useFactory,f=Oxz(S.useFactory,S.deps)):(Q=S.useValue,U=function(){return S.useValue},f=zdx);
return new x1x(U,f,c,Q)};
I$T=function(S){return new BOp(lx.get(jB(S.provide)),[FCr(S)],S.multi)};
bxp=function(S){S=nqR(S,[]).map(I$T);for(var c=new Map,Q=0;Q<S.length;Q++){var f=S[Q],U=c.get(f.key.id);if(U){if(f.multiProvider!==U.multiProvider)throw Error("cf`"+U+"`"+f);if(f.multiProvider)for(var a=0;a<f.resolvedFactories.length;a++)U.resolvedFactories.push(f.resolvedFactories[a]);else c.set(f.key.id,f)}else U=void 0,f.multiProvider?U=new BOp(f.key,f.resolvedFactories.slice(),f.multiProvider):U=f,c.set(f.key.id,U)}return Array.from(c.values())};
nqR=function(S,c){S.forEach(function(Q){if(Q instanceof NOY)c.push({provide:Q,useClass:Q});else if(Q&&typeof Q=="object"&&Q.provide!==void 0)c.push(Q);else if(Q instanceof Array)nqR(Q,c);else throw Error("$e`"+Q);});
return c};
Oxz=function(S,c){if(c){var Q=c.map(function(f){return[f]});
return c.map(function(f){return KCZ(S,f,Q)})}return AMM(S)};
AMM=function(S){var c=a$r.parameters(S);if(!c)return[];if(c.some(function(Q){return Q==null}))throw JMY(S,c);
return c.map(function(Q){return KCZ(S,Q,c)})};
KCZ=function(S,c,Q){var f=null,U=!1;if(!Array.isArray(c))return c instanceof $1H?uNz(c.token,U,null):uNz(c,U,null);for(var a=null,X=0;X<c.length;++X){var z=c[X];if(z instanceof NOY)f=z;else if(z instanceof $1H)f=z.token;else if(z instanceof jlz)U=!0;else if(z instanceof l$x||z instanceof YRT)a=z}f=jB(f);if(f!=null)return uNz(f,U,a);throw JMY(S,Q);};
uNz=function(S,c,Q){return new Crz(lx.get(jB(S)),c,Q)};
Hxp=function(S,c){for(var Q=Array(S.providers.length),f=0;f<S.providers.length;++f){var U=f;if(f<0||f>=S.providers.length)throw Error("bf`"+f);Q[U]=c(S.providers[f])}return Q};
D1z=function(S){return typeof S==="function"&&a$r.parameters(S).every(function(c){return!!c})};
qRp=function(S){var c=plr;hdZ.get(S)||hdZ.set(S,new c);return hdZ.get(S)};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(S)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(S)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S,c){var Q,f;if(S.contains(c))return!0;S=_.YU(S).querySelectorAll("content,slot");for(Q=0;Q<S.length;++Q){var U=_.YU(S[Q]).getDistributedNodes();for(f=0;f<U.length;++f)if(U[f].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(U[f],c))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){S.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(S)&&S.preventDefault();S.targetTouches&&(S=S.targetTouches[0],TOT=S.pageX,wlR=S.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 S=0,c=CP.length;S<c;S++)document.addEventListener(CP[S],_._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 S=0,c=CP.length;S<c;S++)document.removeEventListener(CP[S],_._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(S){var c=_.YU(S).rootTarget;S.type!=="touchmove"&&slY!==c&&(slY=c,MWT=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.YU(S).path));if(!MWT.length)return!0;if(S.type==="touchstart")return!1;S=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(S);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(MWT,S.deltaX,S.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){for(var c=[],Q=S.indexOf(ixp),f=0;f<=Q;f++)if(S[f].nodeType===Node.ELEMENT_NODE){var U=S[f],a=U.style;a.overflow!=="scroll"&&a.overflow!=="auto"&&(a=window.getComputedStyle(U));a.overflow!=="scroll"&&a.overflow!=="auto"||c.push(U)}return c};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S,c,Q){if(c||Q)for(var f=Math.abs(Q)>=Math.abs(c),U=0;U<S.length;U++){var a=S[U];if(f?Q<0?a.scrollTop>0:a.scrollTop<a.scrollHeight-a.clientHeight:c<0?a.scrollLeft>0:a.scrollLeft<a.scrollWidth-a.clientWidth)return a}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(S){var c={deltaX:S.deltaX,deltaY:S.deltaY};"deltaX"in S||("wheelDeltaX"in S&&"wheelDeltaY"in S?(c.deltaX=-S.wheelDeltaX,c.deltaY=-S.wheelDeltaY):"wheelDelta"in S?(c.deltaX=0,c.deltaY=-S.wheelDelta):"axis"in S?(c.deltaX=S.axis===1?S.detail:0,c.deltaY=S.axis===2?S.detail:0):S.targetTouches&&(S=S.targetTouches[0],c.deltaX=TOT-S.pageX,c.deltaY=wlR-S.pageY));return c};
ZxY=function(S){this.element=S;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
WCZ=function(S){this.element=S;this.color=window.getComputedStyle(S).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");_.YU(this.waveContainer).appendChild(this.wave);GEY(this)};
Hd=function(S,c){for(var Q in S)if(Q.toLowerCase()===c.toLowerCase())return S[Q]};
gqc=function(S,c){for(var Q in S)if(Q.toLowerCase()===c.toLowerCase()){delete S[Q];break}};
kEZ=function(S){S=_.Cn.clone(S);for(var c=0;c<edp.length;++c){var Q=edp[c],f=Hd(S,Q);f&&(S["X-Goog-Upload-Header-"+Q]=f,gqc(S,Q))}return S};
rMZ=function(S){S=_.Cn.clone(S);gqc(S,"X-Goog-Upload-Status")};
vqz=function(S){return d1Y.some(function(c){return c.test(S)})};
tWT=function(S,c){var Q;var f=(Q=S.formContent)==null?void 0:Q.locale;Q=f==null?void 0:f.split("-")[0];f=f&&PrZ.includes(f)?f:Q&&PrZ.includes(Q)?Q:void 0;f=(f!=null?f:"en").replaceAll("-","_").toLowerCase();var U;S=((U=S.initializationData)==null?0:U.useNightlyRelease)?"nightly":"live";var a;return(c==null?0:(a=c.getEnableAlohaBinarySplit)==null?0:a.call(c))?_.QN(LCT,S):_.QN(Eqo,S,f)};
yMp=function(S,c,Q,f){if(VWM&&Rdz===c)return VWM;Rdz=c;var U=tWT(S,f);return VWM=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(a,X){var z=_.Nf("SCRIPT");_.eS(z,U);z.onload=function(){c.feedbackV2GlobalObject?a(c.feedbackV2GlobalObject):X(Error("ff"))};
z.onerror=function(){X(Error("gf`"+U.toString()))};
Q.body.appendChild(z)})};
SnY=function(S,c,Q,f){if(oqZ&&m1x===c)return oqZ;m1x=c;var U=tWT(S,f);return oqZ=c.feedbackV2GlobalObject?Promise.resolve(c.feedbackV2GlobalObject):new Promise(function(a,X){var z=_.Nf("SCRIPT");_.eS(z,U);z.onload=function(){c.feedbackV2GlobalObject?a(c.feedbackV2GlobalObject):X(Error("ff"))};
z.onerror=function(){X(Error("gf`"+U.toString()))};
Q.body.appendChild(z)})};
c3o=function(S,c,Q,f,U){U=U===void 0?!0:U;var a,X,z,x,I;return _.O(function(n){switch(n.nextAddress){case 1:return a=Date.now(),_.F(n,yMp(S,Q,f,c),2);case 2:X=n.yieldResult;if(!(U||((x=S.initializationData)==null?0:x.useNightlyRelease)||((I=S.initializationData)==null?0:I.isLocalServer))){z=X.initializeFeedbackClient(S,a,c);n.jumpTo(3);break}return _.F(n,X.initializeFeedbackClientAsync(S,a,c),4);case 4:z=n.yieldResult;case 3:return z.initiateAloha(),n.return(z)}})};
QaM=function(S,c,Q,f){var U,a,X;return _.O(function(z){if(z.nextAddress==1)return U=Date.now(),_.F(z,SnY(S,Q,f.document,c),2);if(z.nextAddress!=3)return a=z.yieldResult,_.F(z,a.initializeFeedbackClientAsync(S,U,c,f),3);X=z.yieldResult;X.initiateAloha();return z.return(X)})};
fgc=function(S,c,Q){var f=!0;f=f===void 0?!0:f;var U,a,X,z,x,I,n,b,N,l;return _.O(function(H){U=Q||_.QY;if((a=c)==null?0:(z=(X=a).getEnableAlohaBinarySplit)==null?0:z.call(X)){x=U;if(x.isFormOpened)throw I=Error("hf"),I.name="DuplicateFormError",I;x.isFormOpened=!0;S.callbacks=S.callbacks||{};n=S.callbacks.onClose||function(){};
S.callbacks.onClose=function(q){x.isFormOpened=!1;n(q)};
try{return H.return(QaM(S,c,x,U))}catch(q){throw x.isFormOpened=!1,q;}}else{b=U;if(b.isFormOpened)throw N=Error("hf"),N.name="DuplicateFormError",N;b.isFormOpened=!0;S.callbacks=S.callbacks||{};l=S.callbacks.onClose||function(){};
S.callbacks.onClose=function(q){b.isFormOpened=!1;l(q)};
try{return H.return(c3o(S,c,b,U.document,f))}catch(q){throw b.isFormOpened=!1,q;}}_.IN(H)})};
XHT=function(S,c){return _.O(function(Q){return Q.return(new Promise(function(f){var U=UUz(c!=null?c:"")+"/aloha_form_properties?productId="+S;J3Z(U,function(a){a=a.target;var X=null;try{var z=JSON,x=z.stringify;if(a.JSC$7833_xhr_){var I=a.JSC$7833_xhr_.responseText;I.indexOf(")]}'\n")==0&&(I=I.substring(5));var n=(0,_.Dq)(I)}else n=void 0;X=QAx(agY,x.call(z,n))}catch(b){x=new agY,n=A3Y(),n=_.pP(n,13,!1),n=_.pP(n,14,!0),n=_.pP(n,15,!0),n=_.pP(n,20,!1),X=_.Qx(x,1,n)}f(X)},"GET","",{},2E3,!0)}))})};
UUz=function(S){return vqz(S)?S:"https://www.google.com/tools/feedback"};
FLx=function(S){S=S.match(new RegExp(O0Z,"gi"))||[];S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;a:{var Q=_.A(zCT);for(var f=Q.next();!f.done;f=Q.next())if(f.value.test(c)){Q=!1;break a}Q=!0}if(!Q)a:{Q=_.A(xUY);for(f=Q.next();!f.done;f=Q.next())if(f.value.test(c)){Q=!0;break a}Q=!1}if(Q)return!0}return!1};
BTz=function(S){switch(S){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"}};
n5Y=function(S){if(window.crypto&&window.crypto.getRandomValues)try{var c=Array(S),Q=new Uint8Array(S);window.crypto.getRandomValues(Q);for(var f=0;f<c.length;f++)c[f]=Q[f];return c}catch(a){}c=Array(S);for(Q=0;Q<S;Q++){f=Date.now();for(var U=0;U<f%23;U++)c[Q]=Math.random();c[Q]=Math.floor(Math.random()*256)}if(IgZ)for(Q=1,f=0;f<IgZ.length;f++)c[Q%S]^=c[(Q-1)%S]/4^IgZ.charCodeAt(f),Q++;return c};
hG=function(S){S=n5Y(S);for(var c=[],Q=0;Q<S.length;Q++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(S[Q]&63));return c.join("")};
NTz=function(S){S&&_.Te("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:b0M,clientScreenNonce:S})};
KLc=function(S){return _.WY("client-screen-nonce-store",{})[S===void 0?0:S]};
$UR=function(S,c){c=c===void 0?0:c;var Q=_.WY("client-screen-nonce-store");Q||(Q={},_.G_("client-screen-nonce-store",Q));Q[c]=S};
uSz=function(S){S=S===void 0?0:S;return S===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+S};
jaZ=function(S){return _.WY(uSz(S===void 0?0:S))};
_.T$=function(S){return(S=jaZ(S===void 0?0:S))?new _.qE({veType:S,youtubeData:void 0,jspbYoutubeData:void 0}):null};
lgz=function(){var S=_.WY("csn-to-ctt-auth-info");S||(S={},_.G_("csn-to-ctt-auth-info",S));return S};
YnR=function(){return Object.values(_.WY("client-screen-nonce-store",{})).filter(function(S){return S!==void 0})};
_.wN=function(S){S=KLc(S===void 0?0:S);if(!S&&!_.gC("USE_CSN_FALLBACK",!0))return null;S||(S="UNDEFINED_CSN");return S?S:null};
H0Z=function(S){for(var c=_.A(Object.values(CSY)),Q=c.next();!Q.done;Q=c.next())if(_.wN(Q.value)===S)return!0;return!1};
DUZ=function(S,c,Q){var f=lgz();(Q=_.wN(Q))&&delete f[Q];c&&(f[S]=c)};
sM=function(S){return lgz()[S]};
_.ME=function(S,c,Q,f){Q=Q===void 0?0:Q;if(S!==KLc(Q)||c!==_.WY(uSz(Q)))if(DUZ(S,f,Q),$UR(S,Q),_.G_(uSz(Q),c),c=function(){setTimeout(function(){NTz(S)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(c)}catch(U){c()}else c()};
pHp=function(S,c){c=c===void 0?"":c;var Q=[],f;for(f in S)if(S.hasOwnProperty(f)){var U=c!==""?c+"."+f:f;typeof S[f]==="object"?Q.push.apply(Q,_.Hs(pHp(S[f],U))):Q.push([U,S[f]])}Q.sort();return Q};
_.Zq=function(S){var c=_.YD.apply(1,arguments);if(!ix(S)||c.some(function(f){return!ix(f)}))throw Error("jf");
c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())hCM(S,Q.value)};
hCM=function(S,c){for(var Q in c)if(ix(c[Q])){if(Q in S&&!ix(S[Q]))throw Error("kf");Q in S||(S[Q]={});hCM(S[Q],c[Q])}else if(qnZ(c[Q])){if(Q in S&&!qnZ(S[Q]))throw Error("lf");Q in S||(S[Q]=[]);TTp(S[Q],c[Q])}else S[Q]=c[Q];return S};
TTp=function(S,c){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,ix(Q)?S.push(hCM({},Q)):qnZ(Q)?S.push(TTp([],Q)):S.push(Q);return S};
ix=function(S){return typeof S==="object"&&!Array.isArray(S)};
qnZ=function(S){return typeof S==="object"&&Array.isArray(S)};
saZ=function(S){for(var c=_.A(Object.entries(wHH)),Q=c.next();!Q.done;Q=c.next())if(Q=_.A(Q.value),Q.next(),Q=Q.next().value,Q==="SLI_STATUS_"+S)return Q;return"SLI_STATUS_UNKNOWN"};
_.G$=function(S,c,Q,f){return M1z(S,c,function(){return new _.i0z(S,c,Q,f)})};
_.Z0T=function(){return _.G$("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
GNo=function(){return _.G$("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
Wd=function(){return _.G$("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
WLp=function(){return _.G$("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
g5o=function(){return _.G$("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
eCx=function(){return _.G$("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
dUp=function(S){S&&(S.dataset?S.dataset[kNY()]="true":_.r_([_.SC(r3c)],S,"data-loaded","true".toString()))};
v5r=function(S){return S?S.dataset?S.dataset[kNY()]:S.getAttribute("data-loaded"):null};
kNY=function(){return PSY.loaded||(PSY.loaded="loaded".replace(/\-([a-z])/g,function(S,c){return c.toUpperCase()}))};
_.kU=function(S,c,Q){LLY(S,c,Q===void 0?null:Q)};
_.t1x=function(S,c){S&&c&&(S=""+_.Qd(c),(S=E5x[S])&&_.RMz(S))};
LLY=function(S,c,Q){Q=Q===void 0?null:Q;var f=_.V1x(S),U=document.getElementById(f),a=U&&v5r(U),X=U&&!a;a?c&&c():(c&&(a=_.Ac(f,c),c=""+_.Qd(c),E5x[c]=a),X||(U=RCx(S,f,function(){v5r(U)||(dUp(U),_.y4Y(f),_.zD(function(){_.m6T(f)},0))},Q)))};
RCx=function(S,c,Q,f){f=f===void 0?null:f;var U=_.Nf("SCRIPT");U.id=c;U.onload=function(){Q&&setTimeout(Q,0)};
U.onreadystatechange=function(){switch(U.readyState){case "loaded":case "complete":U.onload()}};
f&&U.setAttribute("nonce",f);_.eS(U,_.p9(S));S=document.getElementsByTagName("head")[0]||document.body;S.insertBefore(U,S.firstChild);return U};
_.V1x=function(S){var c=document.createElement("a");DQ(c,S);return"js-"+rN(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
y3p=function(S){var c=_.WY("INNERTUBE_HOST_OVERRIDE");c&&(S=String(c)+String(_.dN(S)));return S};
o5T=function(S){var c={};_.u("json_condensed_response")&&(c.prettyPrint="false");return S=umz(S,c)};
_.vd=function(S){return SJ(S)?"same-origin":"include"};
_.Pd=function(S){return SJ(S)?"same-origin":"cors"};
LP=function(S,c,Q){Q=Q===void 0?{}:Q;S={method:c===void 0?"POST":c,mode:_.Pd(S),credentials:_.vd(S)};c={};for(var f=_.A(Object.keys(Q)),U=f.next();!U.done;U=f.next())U=U.value,Q[U]&&(c[U]=Q[U]);Object.keys(c).length>0&&(S.headers=c);return S};
_.EM=function(S,c){c=c===void 0?{}:c;return"service:"+S+"/"+Object.keys(c).sort().map(function(Q){return Q+":"+c[Q]}).join("/")};
mUT=function(S){var c,Q,f,U;S=(c=_.Y(S,_.tG))==null?void 0:(Q=c.watchEndpointSupportedOnesieConfig)==null?void 0:(f=Q.html5PlaybackOnesieConfig)==null?void 0:(U=f.commonConfig)==null?void 0:U.url;if(!S)return[];c=new _.V7(S);return c.JSC$8068_domain_?["https://"+c.JSC$8068_domain_+"/generate_204"]:[]};
_.QzZ=function(){return SbZ()||CxR()||cmz&&iB("version/")?!0:_.WY("EOM_VISITOR_DATA")?!1:!0};
fAz=function(S){var c=S.docid||S.video_id||S.videoId||S.id;if(c)return c;c=S.raw_player_response;c||(S=S.player_response)&&(c=JSON.parse(S));return c&&c.videoDetails&&c.videoDetails.videoId||null};
UIc=function(S){return S.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
RY=function(S){return!isNaN(Number(S))&&!_.Xo(S)};
_.SL=function(S,c,Q,f){f=f===void 0?!0:f;var U=_.WY("VALID_SESSION_TEMPDATA_DOMAINS",[]),a=_.ok(window.location.href);a&&U.push(a);a=_.ok(S);if(_.dp(U,a)||!a&&_.UT(S,"/"))if(U=document.createElement("a"),DQ(U,S),S=U.href)if(S=_.dN(S),S=_.m1(S))f&&!c.csn&&(c.itct||c.ved)&&(c=Object.assign({csn:_.wN()},c)),Q?(Q=parseInt(Q,10),isFinite(Q)&&Q>0&&JmM(S,c,Q)):JmM(S,c)};
Amz=function(S){var c=_.WY("VALID_SESSION_TEMPDATA_DOMAINS",[]),Q=_.ok(window.location.href);Q&&c.push(Q);Q=_.ok(S);if(!(_.dp(c,Q)||!Q&&_.UT(S,"/")))return null;S=_.dN(S);(S=_.m1(S))?(S=aAT(S),S=(S=_.Kl.get(S,void 0)||null)?_.Lb(S):{}):S=null;return S};
JmM=function(S,c,Q){S=aAT(S);c=c?_.nl(c):"";Q=Q||5;_.QzZ()&&_.$r(S,c,Q)};
aAT=function(S){for(var c=_.A(Xmz),Q=c.next();!Q.done;Q=c.next())S=_.c2(S,Q.value);return"ST-"+rN(S).toString(36)};
Ofz=function(S,c){S.commandMetadata&&_.Y(S.commandMetadata,_.Qw)&&_.Y(S.commandMetadata,_.Qw).url&&(S=_.Ep(_.Y(S.commandMetadata,_.Qw).url).adurl)&&_.lmx(S)&&_.SL(_.dN(S),{encoded_ad_playback_context:c})};
_.z7x=function(S){if(S.requestFullscreen)S=S.requestFullscreen(void 0);else if(S.webkitRequestFullscreen)S=S.webkitRequestFullscreen();else if(S.mozRequestFullScreen)S=S.mozRequestFullScreen();else if(S.msRequestFullscreen)S=S.msRequestFullscreen();else if(S.webkitEnterFullscreen)S=S.webkitEnterFullscreen();else return Promise.reject(Error("uf"));return S instanceof Promise?S:Promise.resolve()};
_.Uz=function(S){var c;_.WSH(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.f8()==S&&(c=document):c=S;if(c&&(S=_.WSH(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],c))){S.call(c)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.f8=function(){var S=S===void 0?!1:S;var c=_.WSH(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(S)for(;c&&c.shadowRoot;)c=c.shadowRoot.fullscreenElement;return c?c:null};
_.Jz=function(S,c){c=c===void 0?!0:c;S.addEventListener("wheel",xIc);S.overscrollConfig={cooldown:c}};
_.aI=function(S){S.overscrollConfig=void 0;S.removeEventListener("wheel",xIc)};
xIc=function(S){var c=S.deltaY,Q=S.target,f=null;if(window.Polymer&&window.Polymer.Element){if(Q=S.path||S.composedPath&&S.composedPath()){Q=_.A(Q);for(var U=Q.next();!U.done&&(U=U.value,!Fto(U,c));U=Q.next())if(U.overscrollConfig){f=U;break}}}else for(;Q&&!Fto(Q,c);){if(Q.overscrollConfig){f=Q;break}Q=Q.parentElement}f&&(c=f.overscrollConfig,c.cooldown?(f=S.deltaY,Q=c.lastDeltaY||0,c.lastDeltaY=f,U=c.lastStopped||0,Q&&U&&Q>0==f>0?Math.abs(Q)>=Math.abs(f)?(f=U+1200,Q=!1):(f=U+600,Q=!0):(f=Date.now()+
600,Q=!0),f>Date.now()&&(S.preventDefault(),Q&&(c.lastStopped=Date.now()))):S.preventDefault())};
Fto=function(S,c){return c<0&&S.scrollTop>0||c>0&&S.scrollTop<S.scrollHeight-S.clientHeight-1?(S=getComputedStyle(S).overflowY,S=="auto"||S=="scroll"):!1};
_.Az=function(S,c,Q,f){f||(f={bubbles:!0,cancelable:!1,composed:!0});Q!==null&&Q!==void 0&&(f.detail=Q);var U=new CustomEvent(c,f);_.u("untrack_fire_custom_event_killswitch")?S.dispatchEvent(U):Ix(function(){return void S.dispatchEvent(U)});
return U};
_.XF=function(S,c,Q,f){c=new BkT(c,!(f===void 0||!f),Q);_.Az(S,"yt-action",c);return c.returnValue};
_.Oz=function(S,c,Q){return _.XF(S,c,Q,!0)};
_.zZ=function(S,c,Q){return _.XF(S,c,Q)[0]};
_.FF=function(S,c,Q,f){c&&c.length&&c.forEach(function(U){var a=Zvo(U);a&&(_.u("handle_service_request_actions")&&U.commandMetadata&&U.commandMetadata.webCommandMetadata&&U.commandMetadata.webCommandMetadata.sendPost?_.xt(Q?Q:S,[U]):_.Oz(S,a,[U,Q,f]))})};
_.xt=function(S,c){var Q=[S];c&&Q.push.apply(Q,c);c=_.XF(S,"yt-service-request",Q);return c.length>0&&(c=c[0],_.Az(S,"yt-service-request-sent",c),c&&c.ajaxPromise)?(c.ajaxPromise.then(function(f){_.Az(S,"yt-service-request-completed",f)},function(f){_.Az(S,"yt-service-request-error",{error:f,
params:Q})},S),c.ajaxPromise):_.B2()};
_.n8=function(S,c){if(_.u("handle_service_request_actions"))_.FF(c,S,c);else{S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var f=void 0;((f=_.Y(Q,_.II))==null?0:f.commands)?_.n8(_.Y(Q,_.II).commands,c):(f=void 0,((f=_.Y(Q,_.b2))==null?0:f.actions)?_.n8(_.Y(Q,_.b2).actions,c):(f=void 0,((f=_.Y(Q.commandMetadata,_.Qw))==null?0:f.sendPost)?_.xt(c,[Q]):_.FF(c,[Q],c)))}}};
_.nmo=function(S,c,Q){c=c===void 0?{}:c;typeof c==="function"&&(c={callback:c});Q||c._c&&c._c.jsl&&c._c.jsl.h||_.Cn.extend(c,{_c:{jsl:{h:_.WY("GAPI_HINT_PARAMS")}}});(c.gapiHintOverride||_.WY("GAPI_HINT_OVERRIDE"))&&(Q=_.Ep(document.location.href).gapi_jsh)&&_.Cn.extend(c,{_c:{jsl:{h:Q}}});IAo(S,c)};
_.K8=function(S,c,Q){c=c===void 0?{}:c;S=(S=S in ND?ND[S]:Q)||"";Q={};for(var f in c){Q={key$jscomp$789:Q.key$jscomp$789};Q.key$jscomp$789=f;var U=function(a){return function(){return String(c[a.key$jscomp$789])}}(Q);
S=S.replace(new RegExp("\\$\\{"+Q.key$jscomp$789+"\\}","gi"),U);S=S.replace(new RegExp("\\$"+Q.key$jscomp$789,"gi"),U)}return S};
_.$t=function(S,c){return bfM(S in ND?ND[S]:{},c)};
bfM=function(S,c){var Q=_.WY("I18N_PLURAL_RULES");Q||(Q=function(f){return f==1?"one":"other"});
return(S=S["case"+c]||S[Q(c)])?S.replace("#",c.toString()):c+""};
$IR=function(S){var c=Nkp(S),Q=document.getElementById(c),f=Q&&v5r(Q);f||Q&&!f||(Q=KtM(S,c,function(){if(!v5r(Q)){dUp(Q);_.y4Y(c);var U=_.u2(_.m6T,c);_.zD(U,0)}}))};
KtM=function(S,c,Q){var f=document.createElement("link");f.id=c;f.onload=function(){Q&&setTimeout(Q,0)};
S=_.p9(S);_.d_(f,S,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(f);return f};
Nkp=function(S){var c=_.Nf("A");DQ(c,B7(S));return"css-"+rN(c.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.jzc=function(S){var c=uzM();S!==c&&(c=_.jL(),!_.u("web_autonav_allow_off_by_default")&&S||_.l2(0,141,!0),_.l2(0,140,!S),c.save())};
uzM=function(){var S=_.jL();return _.u("web_autonav_allow_off_by_default")&&!S.getFlag(141)&&_.WY("AUTONAV_OFF_BY_DEFAULT")?!1:!S.getFlag(140)};
lAz=function(S,c){var Q,f;S=((Q=S.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(f=Q.videoAuthorizationToken)==null?void 0:f.credentialTransferTokens)||[];for(Q=0;Q<S.length;++Q)if(S[Q].scope===c)return S[Q].token||void 0};
YbY=function(S){for(var c=0,Q=0;Q<S.length;Q++)c=c*31+S.charCodeAt(Q),Q<S.length-1&&(c%=0x800000000000);return c%1E5};
_.Yt=function(S){return _.rC("ytcsi."+(S||"")+"data_")||CdY(S)};
_.HfM=function(S){S=_.Yt(S);S.metadata||(S.metadata={});return S.metadata};
_.DIZ=function(S){S=_.Yt(S);S.tick||(S.tick={});return S.tick};
_.C8=function(S){S=_.Yt(S);if(S.gel){var c=S.gel;c.gelInfos||(c.gelInfos={});c.gelTicks||(c.gelTicks={})}else S.gel={gelTicks:{},gelInfos:{}};return S.gel};
_.pmo=function(S){S=_.C8(S);S.gelInfos||(S.gelInfos={});return S.gelInfos};
h7Y=function(S){var c=_.Yt(S).nonce;c||(c=hG(16),_.Yt(S).nonce=c);return c};
CdY=function(S){var c={tick:{},info:{}};_.m5("ytcsi."+(S||"")+"data_",c);return c};
qbH=function(){var S=_.rC("ytcsi.debug");S||(S=[],_.m5("ytcsi.debug",S),_.m5("ytcsi.reference",{}));return S};
_.H2=function(S){S=S||"";var c=TkT();if(c[S])return c[S];var Q=qbH(),f={timerName:S,info:{},tick:{},span:{},jspbInfo:[]};Q.push(f);return c[S]=f};
wmp=function(S){S=S||"";var c=TkT();c[S]&&delete c[S];var Q=qbH(),f={timerName:S,info:{},tick:{},span:{},jspbInfo:[]};Q.push(f);c[S]=f};
TkT=function(){var S=_.rC("ytcsi.reference");if(S)return S;qbH();return _.rC("ytcsi.reference")};
_.MVo=function(S){return szp[S]||"LATENCY_ACTION_UNKNOWN"};
Wtp=function(S,c,Q){Q=Q===void 0?{}:Q;var f=!1;_.gC("ytLoggingEventsDefaultDisabled",!1)&&(f=!0);f=f?null:qP;Q=Q===void 0?{}:Q;var U=Math.round(Q.timestamp||(0,_.Qk)());_.YL(c,1,U<Number.MAX_SAFE_INTEGER?U:0);U=new ifH;if(Q.lact)_.YL(U,1,isFinite(Q.lact)?Q.lact:-1);else if(Q.timestamp)_.YL(U,1,-1);else{var a=_.f1();_.YL(U,1,isFinite(a)?a:-1)}if(Q.sequenceGroup&&!_.u("web_gel_sequence_info_killswitch")){a=Q.sequenceGroup;var X=OvY(a),z=new ZfT;_.YL(z,2,X);_.bN(z,1,a);_.Qx(U,3,z);Q.endOfSequence&&delete GrZ[Q.sequenceGroup]}_.Qx(c,
33,U);(Q.sendIsolatedPayload?nnZ:bUx)(S,{endpoint:"log_event",payload:c,cttAuthInfo:Q.cttAuthInfo,dangerousLogToVisitorSession:Q.dangerousLogToVisitorSession},f)};
_.p8=function(){return(_.u("csi_use_time_origin")||_.u("csi_use_time_origin_tvhtml5"))&&_.D5.timeOrigin?Math.floor(_.D5.timeOrigin):_.D5.timing.navigationStart};
_.gmY=function(S,c){_.hz("_start",S,c)};
_.qD=function(S,c){if(!_.u("web_csi_action_sampling_enabled")||!_.Yt(c).actionDisabled){var Q=_.H2(c||"");_.Zq(Q.info,S);S.loadType&&(Q=S.loadType,_.HfM(c).loadType=Q);_.Zq(_.pmo(c),S);Q=h7Y(c);c=_.Yt(c).cttAuthInfo;e7z().info(S,Q,c)}};
krc=function(){var S,c,Q,f;return((f=_.fl().resolve(_.QS(DE))==null?void 0:(S=XIc())==null?void 0:(c=S.loggingHotConfig)==null?void 0:(Q=c.csiConfig)==null?void 0:Q.debugTicks)!=null?f:[]).map(function(U){return Object.values(U)[0]})};
_.hz=function(S,c,Q){if(!_.u("web_csi_action_sampling_enabled")||!_.Yt(Q).actionDisabled){var f=h7Y(Q),U;if(U=_.u("web_csi_debug_sample_enabled")&&f){(_.fl().resolve(_.QS(DE))==null?0:XIc())&&!rmR&&(rmR=!0,_.hz("gcfl",(0,_.Qk)(),Q));var a,X,z;U=(_.fl().resolve(_.QS(DE))==null?void 0:(a=XIc())==null?void 0:(X=a.loggingHotConfig)==null?void 0:(z=X.csiConfig)==null?void 0:z.debugSampleWeight)||0;if(a=U!==0)b:{a=krc();if(a.length>0)for(X=0;X<a.length;X++)if(S===a[X]){a=!0;break b}a=!1}a?(U=YbY(f)%U!==
0,_.Yt(Q).debugTicksExcludedLogged||(a={},a.debugTicksExcluded=U,_.qD(a,Q)),_.Yt(Q).debugTicksExcludedLogged=!0):U=!1}if(!U){S[0]!=="_"&&dIM(S,Q,c);U=_.H2(Q||"");U.tick[S]=c||(0,_.Qk)();if(U.callback&&U.callback[S])for(U=_.A(U.callback[S]),a=U.next();!a.done;a=U.next())a=a.value,a();U=_.C8(Q);U.gelTicks&&(U.gelTicks[S]=!0);a=_.DIZ(Q);U=c||(0,_.Qk)();_.u("log_repeated_ytcsi_ticks")?S in a||(a[S]=U):a[S]=U;a=_.Yt(Q).cttAuthInfo;S==="_start"?e7z().baseline(f,c,a):e7z().tick(S,f,c,a);_.vmZ(Q);return U}}};
dIM=function(S,c,Q){if(_.D5.mark)if(S.startsWith("mark_")||(S="mark_"+S),c&&(S+=" ("+c+")"),Q===void 0||_.u("web_csi_disable_alt_time_performance_mark"))_.D5.mark(S);else{Q=_.u("csi_use_performance_navigation_timing")?Q-_.D5.timeOrigin:Q-(_.D5.timeOrigin||_.D5.timing.navigationStart);try{_.D5.mark(S,{startTime:Q})}catch(f){}}};
Pdc=function(){var S,c=(S=_.D5.getEntriesByType)==null?void 0:S.call(_.D5,"mark");c&&c.forEach(function(Q){if(Q.name.startsWith("mark_")){var f;(f=_.D5.clearMarks)==null||f.call(_.D5,Q.name)}})};
_.LtT=function(){switch(GWz()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.EmM=function(S){var c={},Q=function(a,X,z){X=X.match("_rid")?X.split("_rid")[0]:X;typeof z==="number"&&(z=JSON.stringify(z));a.requestIds?a.requestIds.push({endpoint:X,id:z}):a.requestIds=[{endpoint:X,id:z}]};
S=_.A(Object.entries(S));for(var f=S.next();!f.done;f=S.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;switch(f){case "GetBrowse_rid":Q(c,f,U);break;case "GetGuide_rid":Q(c,f,U);break;case "GetHome_rid":Q(c,f,U);break;case "GetPlayer_rid":Q(c,f,U);break;case "GetSearch_rid":Q(c,f,U);break;case "GetSettings_rid":Q(c,f,U);break;case "GetTrending_rid":Q(c,f,U);break;case "GetWatchNext_rid":Q(c,f,U);break;case "yt_red":c.isRedSubscriber=!!U;break;case "yt_ad":c.isMonetized=!!U}}return c};
VVo=function(S,c,Q,f,U,a){if(!_.u("web_csi_action_sampling_enabled")||!_.Yt(a).actionDisabled){var X=_.C8(a);if(X.gelSpans)X.gelSpans[S]=!0;else{var z={};X.gelSpans=(z[S]=!0,z)}tVR++;S={spanName:S,spanLengthUsec:String(Math.round(c*1E3)),spanNonce:tVR};f&&(S.spanInfo=f);U&&(S.parentSpanNonce=U);Q&&(S.spanStartTimeUsec=String(Math.round(Q*1E3)));_.H2(a||"").span[String(S.spanName)]=S;Q=_.C8(a);Q.gelSpans||(Q.gelSpans={});_.Zq(Q.gelSpans,S);Q=h7Y(a);a=_.Yt(a).cttAuthInfo;e7z().span(S,Q,a);return S.spanNonce}};
_.R7x=function(S){var c=_.TZ("aft",S);if(c)return c;c=_.WY((S||"")+"TIMING_AFT_KEYS",["ol"]);for(var Q=c.length,f=0;f<Q;f++){var U=_.TZ(c[f],S);if(U)return U}return NaN};
_.ymr=function(S,c){_.m5("ytglobal.timing"+(c||"")+"ready_",S)};
_.TZ=function(S,c){if(S=_.DIZ(c)[S])return typeof S==="number"?S:S[S.length-1]};
_.vmZ=function(S){var c=_.TZ("_start",S),Q=_.R7x(S),f=!omR;c&&Q&&f&&(zro(mIz,new SET(Math.round(Q-c),S)),omR=!0)};
Q8M=function(S){CdY(S);c1H();Pdc();S||(_.WY("TIMING_ACTION")&&_.G_("PREVIOUS_ACTION",_.WY("TIMING_ACTION")),_.G_("TIMING_ACTION",""))};
_.fPR=function(S){S=S===void 0?{}:S;_.kC(function(){wS();wmp();Q8M();_.ymr(!1);S.cttAuthInfo&&(_.Yt().cttAuthInfo=S.cttAuthInfo);_.G_("TIMING_AFT_KEYS",[]);S.isHot?_.sz({loadType:"hot"}):_.sz({loadType:"warm"});_.G_("TIMING_ACTION","");delete _.WY("TIMING_INFO",{}).yt_lt;_.kC(_.gmY)(S.startTime,void 0)})()};
_.MD=function(S,c,Q,f){c=c===void 0?{}:c;_.kC(function(){var U=Q?Q:S;USo(U);var a=c.sampleRate;if(!_.u("web_csi_action_sampling_enabled")||a===void 0||a<=1)a=!1;else{var X=h7Y(U);a=YbY(X)%a!==0}a&&(_.Yt(U).actionDisabled=!0);_.H2(U||"").info.actionType=S;c.cttAuthInfo&&(_.Yt(U).cttAuthInfo=c.cttAuthInfo);_.G_(U+"TIMING_ACTION",S);_.kC(_.gmY)(c.startTime,U);a={actionType:f||_.MVo(S)};c.logPreviousAction&&(a.previousAction=_.MVo(_.WY("TIMING_ACTION")));(X=_.wN())&&X!=="UNDEFINED_CSN"&&(a.clientScreenNonce=
X);_.sz(a,U);_.ymr(!0,U)})()};
USo=function(S){_.kC(function(){wS(S);wmp(S);Q8M(S)})()};
J1c=function(){_.kC(function(){var S=[],c;for(c in _.rC("ytcsi.".slice(0,-1)))c.endsWith("data_")&&S.push(c.slice(0,-5));S=_.A(S);for(c=S.next();!c.done;c=S.next())USo(c.value);wS()})()};
_.A1Z=function(S){return _.kC(function(){return _.aPZ("_start",S)})()};
_.sz=function(S,c,Q){_.kC(_.qD)(S,c,Q===void 0?!1:Q)};
_.i2=function(S,c,Q){return _.kC(_.hz)(S,c,Q)};
_.aPZ=function(S,c){return _.kC(function(){var Q=_.DIZ(c);return S in Q})()};
Owp=function(S){if(!_.u("universal_csi_network_ticks"))return"";S=_.Bi(S)||"";for(var c=Object.keys(X9x),Q=0;Q<c.length;Q++){var f=c[Q];if(S.includes(f))return f}return""};
xSx=function(S){if(!_.u("universal_csi_network_ticks"))return function(){};
var c=X9x[S];return c?(_.Z5(c),function(){var Q=_.u("universal_csi_network_ticks")?(Q=z1z[S])?_.Z5(Q):!1:!1;return Q}):function(){}};
_.Z5=function(S,c,Q){return _.kC(function(){if(_.aPZ(S,Q))return!1;_.i2(S,c,Q);return!0})()};
_.GZ=function(S,c,Q){_.kC(function(){if(!_.A1Z(Q)||_.aPZ(S,Q))return!1;_.i2(S,c,Q);return!0})()};
_.W2=function(S){return _.kC(_.TZ)(S,void 0)};
wS=function(S){_.A1Z(S)&&_.i2("aa",void 0,S)};
_.bwH=function(S,c,Q,f,U,a,X,z,x){var I=FuR();z=new _.qE({veType:c,youtubeData:a,jspbYoutubeData:z});a=gS({},I);U&&(a.cttAuthInfo=U);U={csn:I,pageVe:z.getAsJson()};_.u("expectation_logging")&&x&&x.screenCreatedLoggingExpectations&&(U.screenCreatedLoggingExpectations=x.screenCreatedLoggingExpectations);Q&&Q.visualElement?(U.implicitGesture={parentCsn:Q.clientScreenNonce,gesturedVe:Q.visualElement.getAsJson()},X&&(U.implicitGesture.gestureType=X)):Q&&_.i5(new _.Yr("newScreen() parent element does not have a VE - rootVe",
c));f&&(U.cloneCsn=f);S?hc("screenCreated",U,S,a):_.Te("screenCreated",U,a);zro(NPY,new B3M(I));eL.clear();IPY.clear();nop.clear();return I};
kt=function(S,c,Q,f,U){N3H(S,c,Q,[f],U===void 0?!1:U)};
N3H=function(S,c,Q,f,U){U=U===void 0?!1:U;for(var a=gS({cttAuthInfo:sM(c)||void 0},c),X=_.A(f),z=X.next();!z.done;z=X.next()){z=z.value;var x=z.getAsJson();(_.Cn.isEmpty(x)||!x.trackingParams&&!x.veType)&&_.i5(Error("vf"));if(_.u("no_client_ve_attach_unless_shown")){var I=KuY(z,c);if(x.veType&&!IPY.has(I)&&!nop.has(I)&&!U){if(!_.u("il_attach_cache_limit")||eL.size<1E3){eL.set(I,[S,c,Q,z]);return}_.u("il_attach_cache_limit")&&eL.size>1E3&&_.i5(new _.Yr("IL Attach cache exceeded limit"))}z=KuY(Q,c);
eL.has(z)?$SH(Q,c):nop.set(z,!0)}}f=f.filter(function(n){n.csn!==c?(n.csn=c,n=!0):n=!1;return n});
Q={csn:c,parentVe:Q.getAsJson(),childVes:_.D0(f,function(n){return n.getAsJson()})};
c==="UNDEFINED_CSN"?rS("visualElementAttached",a,Q):S?hc("visualElementAttached",Q,S,a):_.Te("visualElementAttached",Q,a)};
j8Y=function(S,c,Q,f,U){uxH(S,c,Q,U)};
uxH=function(S,c,Q,f){lPH(Q,c);var U=gS({cttAuthInfo:sM(c)||void 0},c);Q={csn:c,ve:Q.getAsJson(),eventType:1};f&&(Q.clientData=f);c==="UNDEFINED_CSN"?rS("visualElementShown",U,Q):S?hc("visualElementShown",Q,S,U):_.Te("visualElementShown",Q,U)};
YEY=function(S,c,Q,f){lPH(Q,c);var U=gS({cttAuthInfo:sM(c)||void 0},c);Q={csn:c,ve:Q.getAsJson(),eventType:4};f&&(Q.clientData=f);c==="UNDEFINED_CSN"?rS("visualElementShown",U,Q):S?hc("visualElementShown",Q,S,U):_.Te("visualElementShown",Q,U)};
C4T=function(S,c,Q,f,U){var a=(f=f===void 0?!1:f)?16:8;f=gS({cttAuthInfo:sM(c)||void 0,endOfSequence:f},c);Q={csn:c,ve:Q.getAsJson(),eventType:a};U&&(Q.clientData=U);c==="UNDEFINED_CSN"?rS("visualElementHidden",f,Q):S?hc("visualElementHidden",Q,S,f):_.Te("visualElementHidden",Q,f)};
DSr=function(S,c,Q,f,U){Hwz(S,c,Q,void 0,f,U)};
Hwz=function(S,c,Q,f,U){lPH(Q,c);f=f||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var a=gS({cttAuthInfo:sM(c)||void 0},c);Q={csn:c,ve:Q.getAsJson(),gestureType:f};U&&(Q.clientData=U);c==="UNDEFINED_CSN"?rS("visualElementGestured",a,Q):S?hc("visualElementGestured",Q,S,a):_.Te("visualElementGestured",Q,a)};
p9M=function(S,c,Q,f){var U=gS({cttAuthInfo:sM(c)||void 0},c);Q={csn:c,ve:Q.getAsJson(),clientData:f};c==="UNDEFINED_CSN"?rS("visualElementStateChanged",U,Q):S?hc("visualElementStateChanged",Q,S,U):_.Te("visualElementStateChanged",Q,U)};
h1M=function(){var S=n5Y(16);for(var c=[],Q=0;Q<S.length;Q++)c.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(S[Q]&63));return c.join("")};
rS=function(S,c,Q){qEM.push({payloadName:S,payload:Q,jspbPayload:void 0,options:c});T3o||(T3o=$Oc())};
bKc=function(S){if(qEM){for(var c=_.A(qEM),Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.payload&&(Q.payload.csn=S.csn,_.Te(Q.payloadName,Q.payload,Q.options));qEM.length=0}T3o=0};
KuY=function(S,c){return""+S.getAsJson().veType+S.getAsJson().veCounter+c};
lPH=function(S,c){if(_.u("no_client_ve_attach_unless_shown")){var Q=KuY(S,c);IPY.set(Q,!0);$SH(S,c)}};
$SH=function(S,c){S=KuY(S,c);eL.has(S)&&(c=eL.get(S)||[],kt(c[0],c[1],c[2],c[3],!0),eL.delete(S))};
gS=function(S,c){_.u("log_sequence_info_on_gel_web")&&(S.sequenceGroup=c);return S};
_.dS=function(S,c,Q){_.kC(kt)(void 0,S,c,Q)};
_.v2=function(S,c,Q){_.kC(N3H)(void 0,S,c,Q)};
_.P2=function(S,c){_.kC(j8Y)(void 0,S,c,void 0,void 0,void 0)};
_.L8=function(S,c,Q){_.kC(function(){_.PY(c,function(f){YEY(void 0,S,f,Q)})})()};
_.Ez=function(S,c,Q,f){_.kC(function(){_.PY(c,function(U){C4T(void 0,S,U,Q,f)})})()};
_.tz=function(S,c,Q){_.kC(DSr)(void 0,S,c,Q,void 0)};
_.Vw=function(S,c,Q,f){_.kC(Hwz)(void 0,S,c,Q,f,void 0)};
_.yw=function(S,c,Q){_.kC(p9M)(void 0,S,c,Q,void 0)};
w9Y=function(S,c){oI.set(S,c)};
s8p=function(S){return mq?mq.enabledSpans?!!mq.enabledSpans[S]:!0:!1};
MgR=function(S){if(!mq)throw Error("yf");mq.processors.push(S)};
iwp=function(S,c){if(S){c=c===void 0?1:c;if(S&&(S.endTime=performance.now(),c&&(S.status=c),c=mq)){c=_.A(c.processors);for(var Q=c.next();!Q.done;Q=c.next()){var f=void 0,U=void 0;(U=(f=Q.value).onSpanEnd)==null||U.call(f,S)}}if(c=mq){if(S!==c.activeSpan)throw Error("zf");var a;c.activeSpan=(a=c.activeSpan)==null?void 0:a.parent}}};
Zwz=function(S,c,Q){var f;if((f=mq)&&s8p(S)){var U=f.nextSpanId++,a=f.activeSpan;S={id:U,parent:a,name:S,attributes:c,traceId:a?a.traceId:U,sessionId:f.sessionId,startTime:performance.now(),status:0};if(f.activeSpan){var X;(X=f.activeSpan).children||(X.children=[]);f.activeSpan.children.push(S)}f=_.A(f.processors);for(X=f.next();!X.done;X=f.next())U=c=void 0,(U=(c=X.value).onSpanStart)==null||U.call(c,S);f=S}else f=void 0;S=mq;f=f&&S?S.activeSpan=f:void 0;if(!f)return Q();try{var z=Q(f);iwp(f);return z}catch(x){throw iwp(f,
2),x;}};
GgR=function(S,c){var Q=Object.keys(S);S=new _.Yr("[Command Handler] "+c,{filteredCommandNames:Q,originalCommand:S});_.sH(S)};
Wuc=function(S,c){GgR(S,c+" was called but not set")};
goo=function(S){return function(){return new S}};
SD=function(S){return function(){return _.fl().resolve(S)}};
e1H=function(S,c){var Q=_.Y(S,_.ee);if(Q&&(Q=c[Q.signal]))return Q();S=_.A(Object.keys(S));for(Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,c[Q]&&(Q=c[Q]))return Q()};
cq=function(S,c,Q,f){return{browseEndpoint:{browseId:S},commandMetadata:{webCommandMetadata:{url:c,rootVe:Q,webPageType:f===void 0?"WEB_PAGE_TYPE_BROWSE":f}}}};
kgz=function(S,c,Q){var f=c=c===void 0?0:c;Q=Q===void 0?0:Q;var U=Q-f;return _.Q5(S,"PPSV",void 0,void 0,(U>600?0:U<60||Q<=0||f/Q>.9)?0:c)};
_.Q5=function(S,c,Q,f,U){var a="/watch?v="+S;S={videoId:S};c&&(S.playlistId=c,a+="&list="+c);f&&(a+="&pp="+f);U&&(S.startTimeSeconds=U,a+="&t="+U+"s");c={watchEndpoint:S,commandMetadata:{webCommandMetadata:{url:a,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};Q&&(c.clickTrackingParams=Q);f&&(_.Y(c,_.tG).playerParams=f);return c};
r1p=function(S){return{browseEndpoint:{browseId:"VL"+S},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+S,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
dSz=function(S){if(S){var c;if(S){var Q=(c=_.Y(S.commandMetadata,_.Qw))==null?void 0:c.url;c=!(!Q||Q==="/service_ajax")}else c=!1;if(c)return S;var f;if(S=(f=_.Y(S,_.II))==null?void 0:f.commands)for(f=_.A(S),S=f.next();!S.done;S=f.next())if(S=dSz(S.value))return S}};
_.fK=function(S){return{runs:[{text:S}]}};
voY=function(S,c){return S&&c?{runs:[{text:S,navigationEndpoint:c}]}:void 0};
Um=function(S){return S?_.fK(S):void 0};
_.Jb=function(S){return S?{simpleText:S}:void 0};
_.aB=function(S){var c=S.type;S=S.payload;c={type:c};S!==void 0&&(c.payload=S);return c};
P4R=function(S,c,Q){for(var f=Object.assign({},S),U=_.A(Object.keys(c)),a=U.next();!a.done;a=U.next()){a=a.value;var X=S[a],z=c[a];if(z===void 0)delete f[a];else if(X===void 0)f[a]=z;else if(Array.isArray(z)&&Array.isArray(X))f[a]=Q?[].concat(_.Hs(X),_.Hs(z)):z;else if(!Array.isArray(z)&&_.c_(z)&&!Array.isArray(X)&&_.c_(X))f[a]=P4R(X,z,Q);else if(typeof z===typeof X)f[a]=z;else return c=new _.Yr("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:a,originalValue:X,updateValue:z}),
_.sH(c),S}return f};
tgo=function(S){if(!S.length)return"";try{if(LuZ)return LuZ.decode(S);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(S)}catch(X){}for(var c=0,Q=[],f=S.length;c<f;){for(var U=0;U<1024&&c<f;){var a=S[c++];if(a<128)Eor[U++]=a;else{if(a<224)a=(a&31)<<6|S[c++]&63;else if(a<240)a=(a&15)<<12|(S[c++]&63)<<6|S[c++]&63;else{if(U+1===1024){--c;break}a=(a&7)<<18|(S[c++]&63)<<12|(S[c++]&63)<<6|S[c++]&63;a-=65536;Eor[U++]=55296|a>>10;a=56320|a&1023}Eor[U++]=a}}a=String.fromCharCode.apply(String,
Eor);U<1024&&(a=a.substring(0,U));Q.push(a)}return Q.join("")};
R1c=function(S,c){var Q;if((Q=Vgr)==null?0:Q.encodeInto)return c=Vgr.encodeInto(S,c),c.read<S.length?S.length*4:c.written;for(var f=Q=0;f<S.length;f++){var U=S.charCodeAt(f);U<128?c[Q++]=U:(U<2048?c[Q++]=U>>6|192:((U&64512)===55296&&f+1<S.length&&(S.charCodeAt(f+1)&64512)===56320?(U=65536+((U&1023)<<10)+(S.charCodeAt(++f)&1023),c[Q++]=U>>18|240,c[Q++]=U>>12&63|128):c[Q++]=U>>12|224,c[Q++]=U>>6&63|128),c[Q++]=U&63|128)}return Q};
y1o=function(S,c){S=new Uint8Array(S);c&&S.set(c);return S};
_.XT=function(S){S=new ooM(new mSr([_.Od(decodeURIComponent(S))]));if(SWo(S,2)){var c=Ab(S);var Q=S.pos;var f=S.arrayView;Q=Q===void 0?0:Q;var U=c===void 0?-1:c;Q=Q===void 0?0:Q;U=U===void 0?-1:U;if(f.totalLength&&U){U<0&&(U=f.totalLength-Q);f.focus(Q);if(!(Q-f.arrayPos+U<=f.arrays[f.arrayIdx].length)){var a=f.arrayIdx,X=f.arrayPos;f.focus(Q+U-1);X=new Uint8Array(f.arrayPos+f.arrays[f.arrayIdx].length-X);for(var z=0,x=a;x<=f.arrayIdx;x++)X.set(f.arrays[x],z),z+=f.arrays[x].length;f.arrays.splice(a,
f.arrayIdx-a+1,X);f.arrayIdx=0;f.arrayPos=0;f.focus(Q)}a=f.arrays[f.arrayIdx];f=new DataView(a.buffer,a.byteOffset+Q-f.arrayPos,U)}else f=new DataView(new ArrayBuffer(0));f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength);S.pos+=c;c=f}else c=void 0;c=c?tgo(c):void 0;S=SWo(S,4)?Ab(S):void 0;f=ckY[S];if(typeof f==="undefined")throw S=new _.Yr("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:S}),_.sH(S),S;return{entityTypeFieldNumber:S,entityType:f,entityId:c}};
_.xy=function(S,c,Q){Q=Q===void 0?0:Q;var f=new Q0p;if(Vgr)S=Vgr.encode(S);else{var U=new Uint8Array(Math.ceil(S.length*1.2)),a=R1c(S,U);U.length<a&&(U=new Uint8Array(a),a=R1c(S,U));U.length>a&&(U=U.subarray(0,a));S=U}S!==void 0&&(Om(f,18),U=S.length,Om(f,U),zh(f,U),f.buf.set(S,f.pos),f.pos+=U);S=f2Y[c];if(typeof S==="undefined")throw Q=new _.Yr("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:c}),_.sH(Q),Q;S!==void 0&&(Om(f,32),Om(f,S));Om(f,40);Om(f,1);c=new Uint8Array(f.buf.buffer,
f.buf.byteOffset,f.pos);return encodeURIComponent(_.mV(c,Q))};
UYo=function(S){S=S.key||S.id;if(!S)throw Error("Af");return S};
a2Y=function(S,c){S=S===void 0?{}:S;return JkH(S,c)};
AkR=function(S,c,Q,f){if(f===void 0)return f=Object.assign({},S[c]||{}),Q=(delete f[Q],f),f={},Object.assign({},S,(f[c]=Q,f));var U={},a={};return Object.assign({},S,(a[c]=Object.assign({},S[c],(U[Q]=f,U)),a))};
XEz=function(S,c,Q,f,U){var a=S[c];if(a==null||!a[Q])return S;f=P4R(a[Q],f,U==="REPEATED_FIELDS_MERGE_OPTION_APPEND");U={};a={};return Object.assign({},S,(a[c]=Object.assign({},S[c],(U[Q]=f,U)),a))};
_.FT=function(S,c,Q){return S[c]?S[c][Q]||null:null};
zkx=function(){if(OLz)return OLz();var S={};OLz=ct("PersistentEntityStoreDb",{objectStores:(S.EntityStore={addedAtVersion:1},S.EntityAssociationStore={addedAtVersion:2},S),shared:!1,upgrade:function(c,Q){Q(1)&&re(kM(c,"EntityStore",{keyPath:"key"}),"entityType","entityType");Q(2)&&(c=kM(c,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),re(c,"byParentEntityKey","parentEntityKey"),re(c,"byChildEntityKey","childEntityKey"))},
version:3});return OLz()};
xYz=function(S){return _.E8(zkx(),S)};
Bq=function(S){return window.Int32Array?new Int32Array(S):Array(S)};
B6o=function(S){return _.E8(FUY(),S)};
I2c=function(S){return new IB("WRONG_DATA_TYPE",{encoderVersion:S})};
nNY=function(S){return S instanceof Error?new IB("UNKNOWN_ENCODE_ERROR",{originalMessage:S.message}):new IB("UNKNOWN_ENCODE_ERROR")};
bLp=function(S){return S instanceof Error?new IB("UNKNOWN_DECODE_ERROR",{originalMessage:S.message}):new IB("UNKNOWN_DECODE_ERROR")};
N6T=function(S,c){S=S instanceof IB?S:c(S);_.sH(S);throw S;};
KUH=function(S){S=(new TextEncoder).encode(S).subarray(0,16);var c=new Uint8Array(16);c.set(S);return c};
ugR=function(S){var c=$YY[S];if(c)return c;_.i5(new _.Yr("Entity model not found.",{entityType:S}))};
_.nK=function(){j0M||(j0M=l2Y());return j0M};
l2Y=function(){var S,c,Q;return _.O(function(f){if(f.nextAddress==1)return _.X1(f,2),_.F(f,_.S8(),4);if(f.nextAddress!=2){S=f.yieldResult;if(!S||!_.lB()||typeof _.QY.BroadcastChannel==="undefined")return f.return();c=new YWH;return f.return(new bZ(S,c))}Q=_.Bs(f);Q instanceof Error&&_.sH(Q);return f.return()})};
_.NO=function(S,c){var Q;return _.O(function(f){if(f.nextAddress==1){Q=S.mutations;if(!Q||Q.length<=0)return f.return();c&&c.dispatch(_.aB({type:"ENTITY_LOADED",payload:Q}));return _.F(f,CKx(Q),2)}Q.length=0;_.IN(f)})};
CKx=function(S){var c;return _.O(function(Q){return Q.nextAddress==1?_.F(Q,_.nK(),2):(c=Q.yieldResult)?_.F(Q,_.KK(c,"readwrite",function(f){for(var U={},a=_.A(S),X=a.next(),z={};!X.done;z={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},X=a.next())z.mutation$jscomp$4=X.value,z.mutation$jscomp$4.entityKey&&HLT(z.mutation$jscomp$4)&&(z.mutationEntityType$jscomp$3=(0,_.Cn.getAnyKey)(z.mutation$jscomp$4.payload),X=void 0,z.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(X=function(x){return function(){return _.DYp(f,
x.mutation$jscomp$4.payload[x.mutationEntityType$jscomp$3],x.mutationEntityType$jscomp$3)}}(z)),z.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(X=function(x){return function(){return pEH(f,x.mutation$jscomp$4.entityKey)}}(z)),z.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(X=function(x){return function(){return hkY(f,x.mutation$jscomp$4.entityKey,x.mutation$jscomp$4.payload[x.mutationEntityType$jscomp$3],x.mutationEntityType$jscomp$3)}}(z)),X&&(U[z.mutation$jscomp$4.entityKey]=
U[z.mutation$jscomp$4.entityKey]?U[z.mutation$jscomp$4.entityKey].then(X):X()));
return g5.all(Object.values(U))}),0):Q.return()})};
HLT=function(S){var c;S=(c=S.options)==null?void 0:c.persistenceOption;return S==="ENTITY_PERSISTENCE_OPTION_PERSIST"||S==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
wER=function(S,c){var Q,f;_.O(function(U){if(U.nextAddress==1)return _.F(U,_.nK(),2);if(U.nextAddress!=3)return(Q=U.yieldResult)?_.F(U,_.KK(Q,"readonly",function(a){var X={},z=Object.keys(c).map(function(x){var I=c[x]?[].concat(_.Hs(c[x])):[];return qWx(a,x,I,X)});
return g5.all(z).then(function(){return X})}),3):U.return();
f=U.yieldResult;Object.keys(f).length>0&&S.dispatch(T6Z(f));_.IN(U)})};
qWx=function(S,c,Q,f){return $y(S,c,Q).then(function(U){f[c]=s0p(Q,U)})};
s0p=function(S,c){if(c.length!==S.length)throw Error("Df");return c.reduce(function(Q,f,U){Q[S[U]]=f;return Q},{})};
ZLp=function(S){var c=S.filter(function(U){var a;return(U==null?void 0:(a=U.transferEntity)==null?void 0:a.transferState)==="TRANSFER_STATE_COMPLETE"}).length,Q=S.filter(function(U){var a;
return(U==null?void 0:(a=U.transferEntity)==null?void 0:a.transferState)==="TRANSFER_STATE_FAILED"}).length,f=S.filter(function(U){var a;
return(U==null?void 0:(a=U.transferEntity)==null?void 0:a.transferState)&&M5r.includes(U.transferEntity.transferState)});
if(!(c||f!=null&&f.length))return 0;c=_.iLM(f)+c;S=S.length-Q;return S===0?0:Math.round(c*100/S)/100};
_.iLM=function(S){var c=[];c=c.concat.apply(c,_.Hs(S.filter(function(a){return a.streamEntity}).map(function(a){var X=Object.assign({},a.streamEntity),z,x=(z=a.transferEntity)==null?void 0:z.transferState;
X.streamsProgress=X.streamsProgress||[];X.streamsProgress=X.streamsProgress.map(function(I){var n=Object.assign({},I);n.numBytesDownloaded=x==="TRANSFER_STATE_COMPLETE"?I.numTotalBytes:I.numBytesDownloaded;return n});
return X}).map(function(a){return a.streamsProgress})));
var Q=S=0;c=_.A(c);for(var f=c.next();!f.done;f=c.next()){var U=f.value;f=Number(U.numBytesDownloaded);U=Number(U.numTotalBytes);Q+=isNaN(f)?0:f;S+=isNaN(U)?0:U}return S===0?0:Math.round(Q*100/S)/100};
GST=function(S){if(!S||!S.expirationTimestamp||!S.action)return!1;var c=(0,_.Qk)()/1E3;return Number(S.expirationTimestamp)>=c};
uZ=function(S){return S&&S.expirationTimestamp&&S.action?GST(S)&&S.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.jD=function(S){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(S||"TRANSFER_STATE_UNKNOWN")};
WUc=function(S){var c=new Q0p;if(S!==void 0){var Q=Math.ceil(Math.log2(S.length*4+2)/7);Q=Q===void 0?2:Q;Om(c,10);c.submessagePosStack.push(c.pos);c.submessagePosStack.push(Q);c.pos+=Q;zh(c,S.length*1.2);Q=R1c(S,c.buf.subarray(c.pos));c.pos+Q>c.buf.length&&(zh(c,Q),Q=R1c(S,c.buf.subarray(c.pos)));c.pos+=Q;S=c.submessagePosStack.pop();Q=c.submessagePosStack.pop();for(var f=c.pos-Q-S;S--;){var U=S?128:0;c.view.setUint8(Q++,f&127|U);f>>=7}}c=new Uint8Array(c.buf.buffer,c.buf.byteOffset,c.pos);return(new TextDecoder("utf-8")).decode(c)};
_.lZ=function(S){var c=0;S=_.A(S);for(var Q=S.next(),f={};!Q.done;f={transferState$jscomp$3:void 0},Q=S.next()){var U=Q.value,a=void 0;Q=(a=U.streamEntity)!=null?a:{};a=void 0;f.transferState$jscomp$3=(a=U.transferEntity)==null?void 0:a.transferState;a=U=void 0;((U=Q)==null?0:(a=U.streamsProgress)==null?0:a.length)&&Q.streamsProgress.forEach(function(X){return function(z){z=Number(X.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?z.numTotalBytes:z.numBytesDownloaded);isFinite(z)&&(c+=z)}}(f))}return c};
gNp=function(S){return S.some(function(c){var Q;if(!(c==null?0:(Q=c.transferEntity)==null?0:Q.transferState)){var f;return!(c==null?0:(f=c.policyEntity)==null?0:f.action)||c.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return M5r.includes(c.transferEntity.transferState)})};
ekz=function(S,c){if(!c)return!1;if(_.u("of_pb_en_po_ks"))return!0;var Q;S=(Q=_.FT(S,"offlineVideoPolicy",_.xy(c,"offlineVideoPolicy")))!=null?Q:void 0;return!!S&&uZ(S)};
_.rkY=function(S){var c=["TRANSFER_STATE_COMPLETE"];c=c===void 0?kSY:c;return S.filter(function(Q){var f,U;return c.includes((U=(f=Q.transferEntity)==null?void 0:f.transferState)!=null?U:"TRANSFER_STATE_UNKNOWN")})};
dYR=function(S,c){if(c){var Q,f=(Q=_.FT(S,"playbackData",_.xy(c,"playbackData")))!=null?Q:null,U;Q=(U=_.FT(S,"transfer",_.xy(c,"transfer")))!=null?U:null;var a;U=(a=_.FT(S,"offlineVideoStreams",_.xy(c,"offlineVideoStreams")))!=null?a:null;var X;S=(X=_.FT(S,"offlineVideoPolicy",_.xy(c,"offlineVideoPolicy")))!=null?X:null;if(f||Q||U||S)return{playbackDataEntity:f,transferEntity:Q,streamEntity:U,policyEntity:S}}};
_.Yy=function(S){var c=S.playbackData;if(!c)return[];var Q=[];c=_.A(Object.keys(c));for(var f=c.next();!f.done;f=c.next()){var U=f.value;if(!vNz(S,_.XT(U).entityId)&&(f=dYR(S,_.XT(U).entityId))){var a=void 0,X=void 0;U=(X=Number((a=_.FT(S,"playbackData",U))==null?void 0:a.streamDownloadTimestampSeconds))!=null?X:(0,_.Qk)();Q.push({entity:f,streamDownloadTimestamp:U})}}return Q.sort(function(z,x){var I=z.streamDownloadTimestamp,n=x.streamDownloadTimestamp;return n===I?z.entity.streamEntity&&!x.entity.streamEntity?
1:-1:n-I}).map(function(z){return z.entity})};
j7Y=function(S){return _.rkY(_.Yy(S))};
_.lVT=function(S){return _.Yy(S).filter(function(c){var Q;if(((Q=c.policyEntity)==null?0:Q.action)&&c.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var f;if((f=c.transferEntity)==null?0:f.transferState){var U;return M5r.includes((U=c.transferEntity)==null?void 0:U.transferState)}return!0})};
vNz=function(S,c){var Q;return((Q=_.FT(S,"downloadStatusEntity",_.xy(c,"downloadStatusEntity")))==null?void 0:Q.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Y$H=function(S){var c;if(S==null?0:(c=S.playbackDataEntity)==null?0:c.key)return _.XT(S.playbackDataEntity.key).entityId;var Q;if(S==null?0:(Q=S.transferEntity)==null?0:Q.key)return _.XT(S.transferEntity.key).entityId;var f;if(S==null?0:(f=S.streamEntity)==null?0:f.key)return _.XT(S.streamEntity.key).entityId;var U;if(S==null?0:(U=S.policyEntity)==null?0:U.key)return _.XT(S.policyEntity.key).entityId};
HOp=function(S){var c=new Set,Q;S=(Q=S.mainDownloadsListEntity)==null?void 0:Q[Cco];var f;if(!(S==null?0:(f=S.downloads)==null?0:f.length))return c;var U;S==null||(U=S.downloads)==null||U.forEach(function(a){(a==null?0:a.videoItem)&&c.add(a.videoItem)});
return c};
CK=function(S,c){if(c){var Q=_.FT(S,"mainVideoEntity",_.xy(c,"mainVideoEntity")),f=_.FT(S,"downloadStatusEntity",_.xy(c,"downloadStatusEntity")),U=_.FT(S,"ytMainChannelEntity",_.xy(c,"ytMainChannelEntity")),a={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};S=dYR(S,c);f=(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.u("woffle_render_failed_download_state_ks")&&(f==null?void 0:f.downloadState)==="DOWNLOAD_STATE_FAILED";!S&&f&&(S=a);if(S&&Q&&
U)return Object.assign({},{videoEntity:Q,channelEntity:U},S)}};
pxr=function(S,c){return D9T(S,c)==="TRANSFER_STATE_COMPLETE"&&ekz(S,c)};
h6M=function(S,c){if(!c)return!1;var Q;S=(Q=_.FT(S,"playbackData",_.xy(c,"playbackData")))!=null?Q:void 0;return!!S&&!!S.playerResponseJson};
D9T=function(S,c){if(!c)return"TRANSFER_STATE_UNKNOWN";var Q=_.FT(S,"transfer",_.xy(c,"transfer"));if(Q){var f;return(f=Q.transferState)!=null?f:"TRANSFER_STATE_UNKNOWN"}Q=_.FT(S,"offlineOrchestrationActionWrapperEntity",_.xy(c,"offlineOrchestrationActionWrapperEntity"));S=_.FT(S,"mainVideoEntity",_.xy(c,"mainVideoEntity"));return Q||S?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
q$Y=function(S,c){if(!c)return"TRANSFER_STATE_UNKNOWN";if(S=_.FT(S,"transfer",_.xy(c,"transfer"))){var Q;return(Q=S.transferState)!=null?Q:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
T9T=function(S,c){return c&&(S=_.FT(S,"videoPlaybackPositionEntity",_.xy(c,"videoPlaybackPositionEntity")),S==null?0:S.lastPlaybackPositionSeconds)?Number(S.lastPlaybackPositionSeconds):0};
s7p=function(S,c){return wxc(S).some(function(Q){var f;return(Q==null?void 0:(f=Q.mainPlaylistEntity)==null?void 0:f.playlistId)===c})};
iOZ=function(S,c,Q){var f=MsH(S,c);if(!f.length)return[];c=[];f=_.A(f);for(var U=f.next();!U.done;U=f.next()){U=U.value;var a=CK(S,U);Q&&D9T(S,U)!=="TRANSFER_STATE_COMPLETE"||a&&c.push(a)}return c};
MsH=function(S,c){if(!c)return[];var Q=_.xy(c,"mainPlaylistEntity"),f;c=(f=S.mainPlaylistEntity)==null?void 0:f[Q];f=[];if(c==null||!c.videos)return f;c=_.A(c.videos);for(Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var U=void 0,a=void 0,X=void 0,z=(U=S)==null?void 0:(a=U.mainPlaylistVideoEntity)==null?void 0:(X=a[Q])==null?void 0:X.video;z&&(Q=_.XT(z).entityId)&&f.push(Q)}return f};
ZOZ=function(S,c){if(c){var Q=_.FT(S,"mainPlaylistEntity",_.xy(c,"mainPlaylistEntity")),f=_.FT(S,"mainPlaylistDownloadStateEntity",_.xy(c,"mainPlaylistDownloadStateEntity"));S=_.FT(S,"ytMainChannelEntity",_.xy(c,"ytMainChannelEntity"));if(f&&Q)return Object.assign({},{mainPlaylistEntity:Q,mainPlaylistDownloadStateEntity:f},!!S&&{channelEntity:S})}};
wxc=function(S){return Gpz(S).sort(function(c,Q){return Q.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedPlaylistEntities})};
Gpz=function(S){var c=S.mainPlaylistDownloadStateEntity,Q=[];if(!c)return Q;for(var f=_.A(Object.keys(c)),U=f.next();!U.done;U=f.next()){var a=U.value;U=ZOZ(S,_.XT(a).entityId);var X=void 0;a=Number((X=c[a])==null?void 0:X.addedTimestampMillis);X=isNaN(a)?(0,_.Qk)():a;U!==void 0&&Q.push({downloadedPlaylistEntities:U,addedTimestampMillis:X})}return Q};
WIR=function(S){var c,Q=(c=S.mainPlaylistVideoEntity)!=null?c:{};return new Set(wxc(S).reduce(function(f,U){f=f===void 0?[]:f;var a,X;U==null||(a=U.mainPlaylistEntity)==null||(X=a.videos)==null||X.forEach(function(z){var x;(z=(x=Q[z])==null?void 0:x.video)&&f.push(z)});
return f},[]))};
g1Z=function(S){return"downloadedMusicPlaylistEntities"in S};
e6r=function(S){return"mainPlaylistEntity"in S&&"mainPlaylistDownloadStateEntity"in S};
kpr=function(S){return"videoEntity"in S&&"channelEntity"in S};
rep=function(S){var c=S.musicPlaylistDownloadMetadataEntity,Q=[];if(!c)return Q;for(var f=_.A(Object.keys(c)),U=f.next();!U.done;U=f.next()){U=U.value;a:{var a=S,X=_.XT(U).entityId;if(X){var z=_.FT(a,"musicPlaylist",_.xy(X,"musicPlaylist"));a=_.FT(a,"musicPlaylistDownloadMetadataEntity",_.xy(X,"musicPlaylistDownloadMetadataEntity"));if(z&&a){z={musicPlaylistEntity:z,musicPlaylistDownloadStateEntity:a};break a}}z=void 0}a=void 0;U=Number((a=c[U])==null?void 0:a.addedTimestampMillis);U=isNaN(U)?(0,_.Qk)():
U;z!==void 0&&Q.push({downloadedMusicPlaylistEntities:z,addedTimestampMillis:U})}return Q};
d9z=function(S){var c=new Set;S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,"musicPlaylistEntity"in Q&&"musicPlaylistDownloadStateEntity"in Q){Q=_.A(Q.musicPlaylistEntity.tracks);for(var f=Q.next();!f.done;f=Q.next())c.add(f.value)}return c};
v1p=function(S,c){if(c){var Q=_.FT(S,"musicTrack",_.xy(c,"musicTrack")),f=_.FT(S,"musicArtist",_.xy(c,"musicArtist"))||{};if((S=dYR(S,c))&&Q&&f)return Object.assign({},{musicTrackEntity:Q,musicArtistEntity:f},S)}};
Pcp=function(S){var c=S.musicTrackDownloadMetadataEntity,Q=[];if(!c)return[];c=_.A(Object.keys(c));for(var f=c.next();!f.done;f=c.next()){var U=f.value;f=v1p(S,_.XT(U).entityId);var a=void 0;U=Number((a=_.FT(S,"musicTrackDownloadMetadataEntity",U))==null?void 0:a.addedTimestampMillis);a=isNaN(U)?(0,_.Qk)():U;f!==void 0&&Q.push({downloadedMusicEntities:f,addedTimestampMillis:a})}return Q};
tsR=function(S,c){if(!c)return[];if(Object.values(LIH).includes(c))return E1Y(S,c);c=_.xy(c,"musicPlaylist");var Q;S=(Q=S.musicPlaylist)==null?void 0:Q[c];Q=[];if(S==null||!S.tracks)return Q;S=_.A(S.tracks);for(c=S.next();!c.done;c=S.next())(c=_.XT(c.value).entityId)&&Q.push(c);return Q};
E1Y=function(S,c){var Q=new Set,f=rep(S).map(function(a){return a.downloadedMusicPlaylistEntities});
f=d9z(f);f=_.A(f);for(var U=f.next();!U.done;U=f.next())(U=_.XT(U.value).entityId)&&Q.add(U);return VsH(S).downloadedMusicEntities.filter(function(a){var X;if((X=a.musicTrackEntity)!=null&&X.videoId){a=a.musicTrackEntity;if(X=c==="PPOM"?!0:!Q.has(a.videoId))b:switch(a=a.musicVideoType,c){case "PPSE":X=a==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:X=a!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}a=X}else a=!1;return a}).map(function(a){var X;
return(X=a.musicTrackEntity)==null?void 0:X.videoId})};
VsH=function(S){var c=Pcp(S).sort(function(Q,f){return f.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return"downloadedMusicEntities"in Q?Q.downloadedMusicEntities:g1Z(Q)?Q.downloadedMusicPlaylistEntities:{}});
S=rep(S).sort(function(Q,f){return f.addedTimestampMillis-Q.addedTimestampMillis}).map(function(Q){return"downloadedMusicEntities"in Q?Q.downloadedMusicEntities:g1Z(Q)?Q.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:c,downloadedMusicPlaylistEntities:S}};
yeZ=function(S,c){c=_.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?tsR(S,c):MsH(S,c);if(!c.length)return"TRANSFER_STATE_UNKNOWN";c=c.map(function(Q){return q$Y(S,Q)});
return R6M(c)};
R6M=function(S){var c=new Set(S);if(c.has("TRANSFER_STATE_FAILED")&&c.size===1)return"TRANSFER_STATE_FAILED";c.delete("TRANSFER_STATE_FAILED");if(c.has("TRANSFER_STATE_UNKNOWN")&&c.size===1)return"TRANSFER_STATE_PRE_TRANSFER";c.delete("TRANSFER_STATE_UNKNOWN");if(c.has("TRANSFER_STATE_PRE_TRANSFER")&&c.size===1||c.size===0)return"TRANSFER_STATE_PRE_TRANSFER";S=c.has("TRANSFER_STATE_TRANSFERRING");c=c.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return S||c?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
Hq=function(S){var c=S.mainVideoDownloadStateEntity,Q=[];if(!c)return[];c=_.A(Object.keys(c));for(var f=c.next();!f.done;f=c.next()){var U=f.value;if(!vNz(S,_.XT(U).entityId)){f=CK(S,_.XT(U).entityId);var a=void 0,X=void 0;U=(X=Number((a=_.FT(S,"mainVideoDownloadStateEntity",U))==null?void 0:a.addedTimestampMillis))!=null?X:(0,_.Qk)();f!==void 0&&Q.push({downloadedVideoEntities:f,addedTimestampMillis:U})}}return Q};
o1Y=function(S){return Hq(S).sort(function(c,Q){return Q.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return c.downloadedVideoEntities})};
_.SaR=function(S){var c=WIR(S),Q=_.D8(S),f=HOp(S),U=Hq(S).filter(function(X){var z,x;if((X==null?void 0:(z=X.downloadedVideoEntities)==null?void 0:(x=z.transferEntity)==null?void 0:x.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var I,n;X=X==null?void 0:(I=X.downloadedVideoEntities)==null?void 0:(n=I.videoEntity)==null?void 0:n.key;return _.u("kevlar_use_library_entity")?X&&(f.has(X)||Q[X]):X&&!c.has(X)}),a=Gpz(S).filter(function(X){return yeZ(S,X.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Hs(U),_.Hs(a)).sort(function(X,z){return z.addedTimestampMillis-X.addedTimestampMillis}).map(function(X){return m9M(X)})};
cpz=function(S,c){if(c&&ekz(S,c)){var Q,f,U=(f=(Q=_.FT(S,"playbackData",_.xy(c,"playbackData")))!=null?Q:void 0)==null?void 0:f.playerResponseJson;if(U){try{var a=JSON.parse(U);var X=_.FT(S,"transfer",_.xy(c,"transfer")),z=T9T(S,c);z&&(a=Object.assign({},a,{playerConfig:Object.assign({},a.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+z*1E3}}})}));a.cotn=X==null?void 0:X.cotn}catch(x){}return a}}};
_.UBz=function(S){var c,Q,f;S=(f=(Q=((c=S.downloadsPageViewConfigurationEntity)!=null?c:{})[_.QJT])==null?void 0:Q.smartDownloadsOptInBannerVisibility)!=null?f:{};var U;return(U=_.Y(S,fwY))!=null?U:{}};
_.D8=function(S){var c,Q,f;S=(f=(Q=((c=S.mainDownloadsListEntity)!=null?c:{})[_.Jpx])==null?void 0:Q.downloads)!=null?f:[];c={};Q=_.A(S);for(f=Q.next();!f.done;f=Q.next())S=void 0,c[(S=f.value.videoItem)!=null?S:""]=!0;return c};
awp=function(S){var c=_.D8(S);if(Object.keys(c).length===0)return!1;var Q=S.mainVideoEntity;if(!Q)return!0;Q=_.A(Object.keys(Q));for(var f=Q.next();!f.done;f=Q.next()){f=f.value;var U=_.XT(f).entityId;if(c[f]&&!vNz(S,U))return!1}return!0};
_.pK=function(S){var c=_.D8(S);return Hq(S).sort(function(Q,f){return Q.addedTimestampMillis-f.addedTimestampMillis}).map(function(Q){return Q.downloadedVideoEntities}).filter(function(Q){var f;
return(Q=Q==null?void 0:(f=Q.videoEntity)==null?void 0:f.key)&&!!c[Q]})};
m9M=function(S){return"downloadedVideoEntities"in S?S.downloadedVideoEntities:"downloadedPlaylistEntities"in S?S.downloadedPlaylistEntities:{}};
ApY=function(S){var c=_.D8(S),Q=WIR(S),f=Hq(S).filter(function(U){var a,X;return(U=U==null?void 0:(a=U.downloadedVideoEntities)==null?void 0:(X=a.videoEntity)==null?void 0:X.key)&&!c[U]&&!Q.has(U)});
S=Gpz(S);return[].concat(_.Hs(f),_.Hs(S)).sort(function(U,a){return a.addedTimestampMillis-U.addedTimestampMillis}).map(function(U){return m9M(U)})};
_.hb=function(S){if(!_.u("kevlar_use_library_entity"))return ApY(S);var c=Hq(S).filter(function(f){var U,a;if(U=f=f==null?void 0:(U=f.downloadedVideoEntities)==null?void 0:(a=U.videoEntity)==null?void 0:a.key){var X,z,x;U=((z=(X=S.mainDownloadsListEntity)==null?void 0:X[Cco])==null?0:(x=z.downloads)==null?0:x.length)?HOp(S).has(f):!1}return U}),Q=Gpz(S);
return[].concat(_.Hs(c),_.Hs(Q)).sort(function(f,U){return U.addedTimestampMillis-f.addedTimestampMillis}).map(function(f){return m9M(f)})};
XAR=function(S){var c=_.D8(S),Q=WIR(S);return o1Y(S).filter(function(f){var U;return(f=f==null?void 0:(U=f.videoEntity)==null?void 0:U.key)&&!c[f]&&!Q.has(f)})};
Okx=function(S){if(!_.u("kevlar_use_library_entity"))return XAR(S);var c=_.D8(S),Q=HOp(S);return o1Y(S).filter(function(f){var U;return(f=f==null?void 0:(U=f.videoEntity)==null?void 0:U.key)&&!c[f]&&Q.has(f)})};
zOT=function(S,c){c=_.xy(c,"settingEntity");var Q,f,U;return!!((U=(f=((Q=S.settingEntity)!=null?Q:{})[c])==null?void 0:f.settingOptionValue)!=null?U:{}).boolValue};
_.qO=function(S){var c=_.pK(S);if(gNp(c))return 0;var Q=[];c=_.A(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var U=void 0,a=void 0;if((U=f)==null?0:(a=U.videoEntity)==null?0:a.key)U=_.XT(f.videoEntity.key).entityId,f=S,U=_.xy(U,"mainVideoDownloadStateEntity"),f=_.FT(f,"mainVideoDownloadStateEntity",U),(f=Number(f==null?void 0:f.addedTimestampMillis))&&Q.push(f)}return Math.max.apply(Math,_.Hs(Q))};
_.Th=function(S){return S.ui.richGridMiniMode};
_.wP=function(S){return S.ui.richGridItemsPerRow};
_.xBo=function(S){return S.ui.richGridSlimItemsPerRow};
_.FxZ=function(S){return S.ui.guideIsExpanded};
_.sm=function(S){return S.ui.miniplayerIsActive};
_.Bxx=function(S){return S.ui.singleOptionSurveyIsActive};
_.MO=function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.IwM=function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.ncY=function(S){return S.ui.inlinePreviewIsActive};
_.bkZ=function(S){return S.ui.inlinePreviewIsEnabled};
_.NxM=function(S){return S.ui.miniplayerPlaybackState};
Kxx=function(S){return S.ui.isOnline};
_.$BZ=function(S){return S.ui.frostedGlassMode};
_.iZ=function(S,c){return D9T(S.entities,c)};
_.Z8=function(S,c){return yeZ(S.entities,c)};
uPp=function(S,c){var Q;if(c){var f;S=(f=_.FT(S.entities,"offlineVideoPolicy",_.xy(c,"offlineVideoPolicy")))==null?void 0:f.action}else S=void 0;return(Q=S)!=null?Q:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
jJc=function(S,c){var Q;c?(S=_.FT(S.entities,"offlineVideoPolicy",_.xy(c,"offlineVideoPolicy")),S=Number(S==null?void 0:S.expirationTimestamp)):S=void 0;return(Q=S)!=null?Q:0};
_.lwc=function(S){return _.Yy(S.entities).length};
Yax=function(S,c){return CK(S.entities,c)};
CAz=function(S,c){return ZOZ(S.entities,c)};
Gh=function(S,c){return(S=CK(S.entities,c))?_.iLM([S]):0};
_.HkH=function(S,c){var Q=_.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(Q){var f=S.entities;var U=tsR(f,c);if(U.length){var a=[];U=_.A(U);for(var X=U.next();!X.done;X=U.next())(X=v1p(f,X.value))&&a.push(X);f=a}else f=[]}else f=iOZ(S.entities,c);var z;if(Q){var x=S.entities;c?(c=_.xy(c,"musicPlaylist"),x=(z=x.musicPlaylist)==null?void 0:z[c],z=x!=null&&x.tracks?x.tracks.length:0):z=0}else z=S.entities,c?(c=_.xy(c,"mainPlaylistEntity"),z=(x=z.mainPlaylistEntity)==null?void 0:x[c],z=z!=null&&z.videos?
z.videos.length:0):z=0;return f.length!==z?0:f?ZLp(f):0};
_.DBr=function(S){return S.download.isLeaderTab};
_.pAz=function(S,c,Q){if(!c&&Q){var f=S.entities;if(Q){var U=WUc(Q),a,X;c=(X=(a=_.FT(f,"offlineabilityEntity",_.xy(U,"offlineabilityEntity")))==null?void 0:a.addToOfflineButtonState)!=null?X:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else a=S.entities,c?(X=WUc(c),c=(U=(f=_.FT(a,"offlineabilityEntity",_.xy(X,"offlineabilityEntity")))==null?void 0:f.addToOfflineButtonState)!=null?U:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):c="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return c};
hOz=function(S,c){S=S.entities;if(c){c=WUc(c);var Q,f;c=(f=(Q=_.FT(S,"offlineabilityEntity",_.xy(c,"offlineabilityEntity")))==null?void 0:Q.addToOfflineButtonState)!=null?f:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else c="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return c};
_.qax=function(S){var c=S.entities;S=Kxx(S);var Q=zOT(c,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.u("kevlar_modern_downloads_page")&&Q)var f=!1;else{var U,a;c=(a=(U=((f=c.downloadsPageViewConfigurationEntity)!=null?f:{})[_.QJT])==null?void 0:U.smartDownloadsOptInBannerVisibility)!=null?a:{};f=S?!!c.visibleWithConnection:!!c.visibleWithoutConnection}return f};
_.Txz=function(S){return zOT(S.entities,"SMART_DOWNLOADS_ENABLED")};
_.wAr=function(S){return awp(S.entities)};
sJo=function(S){return _.pK(S.entities).every(function(c){var Q;return(c==null?void 0:(Q=c.transferEntity)==null?void 0:Q.transferState)&&!M5r.includes(c.transferEntity.transferState)})};
_.MTM=function(S,c){return vNz(S.entities,c)};
ikc=function(S,c){if(c){var Q,f;S=(f=(Q=_.FT(S.entities,"downloadStatusEntity",_.xy(c,"downloadStatusEntity")))==null?void 0:Q.downloadState)!=null?f:"DOWNLOAD_STATE_UNKNOWN"}else S="DOWNLOAD_STATE_UNKNOWN";return S};
Wq=function(S,c){return T9T(S.entities,c)};
gcz=function(S){S=_.Zkz(S);var c=S.hours===void 0?0:S.hours,Q=S.minutes===void 0?0:S.minutes,f=S.seconds===void 0?0:S.seconds,U=c>0;S=[];U&&(c=_.GFH(c),S.push(c));c=U;c=c===void 0?!1:c;Q=(["af","be","lt"].includes(_.gP)||c)&&Q<10?Wxo().format(Q):(new Intl.NumberFormat("en-u-nu-latn")).format(Q);S.push(Q);Q=Wxo().format(f);S.push(Q);Q=":";"da fi id si sr sr-Latn".split(" ").includes(_.gP)&&(Q=".");return S.join(Q)};
_.Zkz=function(S){var c=S.hours||0,Q=S.minutes||0,f=S.seconds||0;c=f+Q*60+c*3600+(S.days||0)*86400+(S.weeks||0)*604800+(S.months||0)*2629800+(S.years||0)*31557600;if(c<=0)return{hours:0,minutes:0,seconds:0};S=c;c=Math.floor(S/3600);S%=3600;Q=Math.floor(S/60);f=Math.floor(S%60);return{hours:c,minutes:Q,seconds:f}};
_.GFH=function(S){S=(new Intl.NumberFormat("en-u-nu-latn")).format(S);var c=["fr"],Q="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(_.gP)?S.replace(",","\u00a0"):c.includes(_.gP)?S.replace(",","\u202f"):Q.includes(_.gP)?S.replace(",","."):S};
Wxo=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
eOp=function(S){try{return(new _.eD(5)).format(S)}catch(c){}};
ky=function(S){return{thumbnailOverlayDownloadingRenderer:{state:S}}};
kFT=function(S){if(S=eOp(S))return{thumbnailOverlaySidePanelRenderer:{text:_.fK(S),icon:{iconType:"PLAYLISTS"}}}};
rpz=function(){var S=_.K8("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.fK(S),icon:{iconType:"PLAY_ALL"}}}};
dBo=function(S){S=_.rP(S,2);return _.gP!=="ru"&&_.gP!=="es_419"&&_.gP!=="es-419"&&_.gP!=="es"&&_.gP!=="es_US"&&_.gP!=="es-US"&&_.gP!=="fr"&&_.gP!=="pl"&&_.gP!=="it"&&_.gP!=="nl"&&_.gP!=="uk"&&_.gP!=="fr_CA"&&_.gP!=="fr-CA"||S===""?S:S[0].toLocaleUpperCase()+S.substring(1)};
PAR=function(S){return function(c){var Q=S(),f=_.rP(c,Q.dateFormat);c=_.rP(c,Q.timeFormat);var U=vcp.DATETIMEFORMATS[Q.joinerStyle];U=U.replace(/'(?!')/g,"");U=U.replace("{0}",c);U=U.replace("{1}",f);return Q.capitalize(U)}};
Lxr=function(S){return S?typeof S.seconds==="string"&&(S.nanos===void 0||typeof S.nanos==="number"):!1};
EcR=function(S){return new Date(Number(S.seconds)*1E3+(S.nanos||0)*1E-6)};
_.rP=function(S,c){if(typeof S.getTime==="function")S={date:S};else if(Lxr(S))S={date:EcR(S)};else if(typeof Lxr(S.timestamp)&&typeof S.i18nInternalSecondsEastOfUtc==="number")S={date:EcR(S.timestamp),timeZone:dP(-S.i18nInternalSecondsEastOfUtc/60)};else throw Error("Ef`"+JSON.stringify(S));var Q=S;S=Q.date;Q=Q.timeZone;c=tTT(c).format(S,Q);_.gP==="zh-TW"&&(S=Q?Number(tTT("H").format(S,Q)):S.getHours(),c=S<5?c.replace("\u4e0a\u5348","\u51cc\u6668"):S<8?c.replace("\u4e0a\u5348","\u65e9\u4e0a"):S<12?
c.replace("\u4e0a\u5348","\u4e0a\u5348"):S<13?c.replace("\u4e0b\u5348","\u4e2d\u5348"):S<19?c.replace("\u4e0b\u5348","\u4e0b\u5348"):c.replace("\u4e0b\u5348","\u665a\u4e0a"));return c};
tTT=function(S){if(VTH.has(S))return VTH.get(S);var c=ROZ(S);c=ypz(c);ocx!==!0&&(ocx=!0);mBz=!0;mBz=!1;c=new vq(c,vcp);VTH.set(S,c);return c};
ROZ=function(S){return(new vq(S,vcp)).patternParts_.map(function(c){return c.type===0?"'"+c.text+"'":c.text}).join("")};
ypz=function(S){return _.gP==="en"||_.gP==="es_US"||_.gP==="es-US"?S:S.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(c,Q,f){return"H".repeat(Q.length)+f})};
AAp=function(S,c){Scz||(_.Pq=_.cAx,Scz=new QFT);var Q=Scz;a:if(S=fCT(S),c=fCT(c||new Date),S>c)Q=S.getTime()-c.getTime()>6048E5?_.rP(S,1):UiT(S);else{for(var f=0;JAT(S,12*(f+1))<c;)++f;if(f>0)Q=Q.format(-f,0);else{for(f=0;JAT(S,f+1)<c;)++f;if(f>0)Q=Q.format(-f,2);else{S=c.getTime()-S.getTime();c=_.A(aCY);for(f=c.next();!f.done;f=c.next()){f=f.value;var U=f.unit,a=Math.floor(S/f.unitDuration);if(a>=(f.threshold===void 0?1:f.threshold)){Q=Q.format(-a,U);break a}}Q=Q.format(-0,7)}}}return Q};
fCT=function(S){if(typeof S.getTime==="function")return S;if(Lxr(S))return EcR(S);throw Error("Ff`"+JSON.stringify(S));};
JAT=function(S,c){for(var Q=0,f;;++Q)if(f=new Date(S.getFullYear(),S.getMonth()+c,S.getDate()-Q,S.getHours(),S.getMinutes(),S.getSeconds()),f.getMonth()===(S.getMonth()+c)%12)return f};
_.LK=function(S){return{runs:[{text:S}]}};
_.Em=function(S){if(S&&S.simpleText)return S.simpleText;var c="";if(S&&S.runs)for(var Q=0;Q<S.runs.length;Q++)S.runs[Q].text&&(c+=S.runs[Q].text);return c};
Otr=function(S,c,Q,f){return S.videoEntity&&!S.policyEntity&&Q!=="DOWNLOAD_STATE_FAILED"?[ky("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:uZ(S.policyEntity)&&c!=="TRANSFER_STATE_FAILED"&&c!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?c==="TRANSFER_STATE_PAUSED_BY_USER"?[ky("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.jD(c)?[ky("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:S.videoEntity.lengthSeconds?XLp(S.videoEntity.lengthSeconds,f):[]:
[ky("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
XLp=function(S,c){var Q=[{thumbnailOverlayTimeStatusRenderer:{text:_.fK(gcz({seconds:S})),style:"DEFAULT"}}];c&&(S=c<=0||S<=0?0:c>=S?100:Math.ceil(c*100/S),S>0&&Q.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:S}}));return Q};
zeM=function(S,c,Q,f,U){if(c==="TRANSFER_STATE_UNKNOWN"||!S)return{};if(_.jD(c)||c==="TRANSFER_STATE_PRE_TRANSFER")var a=[ky("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var X,z;if(c==="TRANSFER_STATE_COMPLETE"&&((X=S.mainPlaylistEntity)==null?0:(z=X.videos)==null?0:z.length)){if(_.u("web_modern_collections_v2")){var x;var I=(a=S.mainPlaylistEntity)==null?void 0:(x=a.videos)==null?void 0:x.length;a=(a=eOp(I))?{thumbnailOverlayBottomPanelRenderer:{text:_.fK(a),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var n;a=kFT((I=S.mainPlaylistEntity)==null?void 0:(n=I.videos)==null?void 0:n.length)}var b;a=[rpz(),Object.assign({},(b=a)!=null?b:{})]}else a=[]}b=a;a:if(c==="TRANSFER_STATE_PRE_TRANSFER")Q=Um(_.K8("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE")Q=Um(_.K8("WAITING_TO_DOWNLOAD"));else if(_.jD(c))Q=Math.floor(Q*100).toString(),Q=Um(_.K8("DOWNLOADING_PERCENT",{percent:Q},"Downloading... "+Q+"%"));else{if(f&&(_.u("playlist_is_offline_selector_killswitch")&&
(U=_.fl().resolve(_.L6).isNetworkAvailable()),U)){Q=voY(_.K8("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),r1p(f));break a}Q=void 0}c=c==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.K8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},b.length?{thumbnailOverlays:b}:{},Q?{viewPlaylistText:Q}:{viewPlaylistText:_.LK("")},c.length?{badges:c}:{})};
xiR=function(S,c,Q,f,U,a){if(c==="TRANSFER_STATE_UNKNOWN"||!S)return{};if(f==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var X=Otr(S,c,f);if(S.videoEntity&&!S.policyEntity&&f!=="DOWNLOAD_STATE_FAILED"){var z=_.K8("WAITING_TO_DOWNLOAD");if(z)return{shortViewCountText:_.LK(z),publishedTimeText:void 0,thumbnailOverlays:X}}if(!uZ(S.policyEntity)){a=S.policyEntity&&!GST(S.policyEntity)?_.K8("DOWNLOAD_EXPIRED",{},"Download expired"):
_.K8("TRANSFER_FAILED",{},"Download failed");var x;if((x=S.policyEntity)==null?0:x.shortMessageForDisabledAction)a=S.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:Um(a),publishedTimeText:void 0,thumbnailOverlays:X}}if(c==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.LK(_.K8("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:X};if(c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.LK(_.K8("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:X};if(c==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(x=_.K8("WAITING_TO_DOWNLOAD"),f==="DOWNLOAD_STATE_PAUSED"&&(x=_.K8("DOWNLOAD_PAUSED",{},"Download paused")),x))return{shortViewCountText:_.LK(x),publishedTimeText:void 0,thumbnailOverlays:X};if(_.jD(c))return S=Math.floor(Q*100).toString(),{shortViewCountText:_.LK(_.K8("DOWNLOADING_PERCENT",{percent:S},"Downloading... "+S+"%")),publishedTimeText:void 0,thumbnailOverlays:X};c=void 0;S.videoEntity.publishedTimestampMillis&&
(c=new Date,U&&(c=new Date(U)),c=Um(AAp(new Date(Number(S.videoEntity.publishedTimestampMillis)),c)));U=[];_.u("kevlar_woffle_badge_killswitch")||(U=[{metadataBadgeRenderer:{label:_.K8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var I;S=Um((I=S.videoEntity.localizedStrings)==null?void 0:I.viewCount);return Object.assign({},a?{shortViewCountText:void 0}:{shortViewCountText:S},a?{}:{publishedTimeText:c},{badges:U,thumbnailOverlays:X})};
B2Y=function(S,c){S=S===void 0?F6o:S;switch(c.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:c.payload.playlistId,inviteLinkURL:c.payload.inviteLinkUrl};default:return S}};
nAM=function(S,c){S=S===void 0?ICo:S;switch(c.type){case "SET_CURRENT_FORM_ID":return c=c.payload.formId,S.currentFormId===c?S:{currentFormId:c,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var Q=c.payload;c=Q.groupId;Q=Q.command;if(S.currentFormId){var f=Object.assign({},S.commandsMap);f[c]=Q;S=Object.assign({},S,{commandsMap:f})}return S;case "RESET_COMMAND_MAP":return Object.assign({},S,{commandsMap:{}});default:return S}};
N2p=function(S,c){S=S===void 0?btp:S;switch(c.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},S,{guideIsExpanded:c.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},S,{scrollAtTop:c.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},S,{guideIsVisibleButNotPersistent:c.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},S,{miniplayerIsActive:c.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},S,{singleOptionSurveyIsActive:c.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},S,{slimlineSurveyRatingSelectedIndex:c.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},S,{richGridMiniMode:c.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},S,{richGridItemsPerRow:c.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},S,{richGridSlimItemsPerRow:c.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},S,{richGridContainerWidth:c.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},S,{richGridStyle:c.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},S,{currentPageType:c.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},S,{inlinePreviewIsActive:c.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},S,{inlinePreviewIsEnabled:c.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},S,{darkModeIsEnabled:c.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
S,{miniplayerPlaybackState:c.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},S,{tabGesturesIsActive:c.payload});case "SET_ONLINE_STATUS":return Object.assign({},S,{isOnline:c.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},S,{chipBarIsSticky:c.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},S,{frostedGlassMode:c.payload});default:return S}};
$iM=function(S,c){S=S===void 0?K6o:S;switch(c.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},S,{transcription:c.payload});case "SET_OVERLAY_STATE":return Object.assign({},S,{overlay:c.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return S}};
qcx=function(){return Bd(Object.assign({},{continuation:u2c,entities:a2Y,download:jFR,reportChannelAbuse:lCx,share:YcZ,talkToRecs:Cnr,ui:N2p,voiceSearch:$iM,watch:Htx,ypc:DiM,shorts:pLY,radioButtonGroup:nAM,collabInviteLink:B2Y},heH))};
sFR=function(){return _.u("web_player_entities_middleware")?new tb(qcx(),[T2p,wLx]):new tb(qcx(),[T2p])};
_.V5=function(){Mno||(Mno=sFR());return Mno};
itM=function(S,c,Q){if(S.length)return{titleText:_.fK(c!=null?c:_.K8("DOWNLOADS",void 0,"Downloads")),contents:S.map(function(f){var U=f.videoEntity;f={videoId:U.videoId,title:Um(U.title),shortBylineText:Um(f.channelEntity.title),thumbnail:U.thumbnail};var a=U.videoId?Wq(_.V5().getState(),U.videoId):0;U.videoId&&Q?f.navigationEndpoint=_.Q5(U.videoId,Q,void 0,void 0,a):U.videoId&&(f.navigationEndpoint=kgz(U.videoId,a,U.lengthSeconds));U.lengthSeconds&&(f.thumbnailOverlays=XLp(U.lengthSeconds,a));return{playlistPanelVideoRenderer:f}}),
totalVideos:S.length}};
Ztc=function(S){return(S=(0,_.Cn.getValueByKeys)(S,"playlistId"))?{playlistId:S}:null};
G7x=function(){return{}};
W6z=function(S,c){return new _.n1(function(Q,f){S.then(function(U){if(U){if(U=c(U))return Q(U);f()}},f)})};
gAr=function(S){var c,Q,f,U=(c=S.contents)==null?void 0:(Q=c.twoColumnWatchNextResults)==null?void 0:(f=Q.autoplay)==null?void 0:f.autoplay,a,X,z;c=(a=S.contents)==null?void 0:(X=a.twoColumnWatchNextResults)==null?void 0:(z=X.playlist)==null?void 0:z.playlist;return U&&c&&c.playlistId?{rawResponse:S,autoplayRenderer:U,playlistPanelRenderer:c,playlistId:c.playlistId}:null};
k7p=function(S){var c=c===void 0?"UNKNOWN_INTERFACE":c;if(S.length===1)return S[0];var Q=eeH[c];if(Q){Q=new RegExp(Q);for(var f=_.A(S),U=f.next();!U.done;U=f.next())if(U=U.value,Q.exec(U))return U}var a=[];Object.entries(eeH).forEach(function(X){var z=_.A(X);X=z.next().value;z=z.next().value;c!==X&&a.push(z)});
Q=new RegExp(a.join("|"));S.sort(function(X,z){return X.length-z.length});
f=_.A(S);for(U=f.next();!U.done;U=f.next())if(U=U.value,!Q.exec(U))return U;return S[0]};
_.RB=function(S){return"/youtubei/v1/"+k7p(S)};
_.y5=function(S){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:S}}}}};
_.oB=function(S){return _.y5(_.LK(S))};
rAz=function(S,c){var Q={mode:"NORMAL"};S&&(Q.autoplayVideo=S.navigationEndpoint,Q.nextButtonVideo=S.navigationEndpoint);c&&(Q.previousButtonVideo=c.navigationEndpoint);return Q};
PnZ=function(S,c,Q){if(!Q||!Q.sets)return{sets:[rAz(S,c)]};var f=Q.sets.find(function(X){return X.mode==="NORMAL"}),U=(0,_.Cn.unsafeClone)(Q);
if(!f)return U.sets.push(rAz(S,c)),U;if(!S)return Q;f=_.Cn.getValueByKeys.apply(null,[f].concat(_.Hs(dix)));var a=_.Cn.getValueByKeys.apply(null,[S].concat(_.Hs(vAY)));if(f===a)return Q;U.sets=U.sets.filter(function(X){return X.mode!=="NORMAL"});
U.sets.push(rAz(S,c));return U};
L6R=function(S){return!!S.playlistPanelVideoRenderer&&!S.playlistPanelVideoRenderer.unplayableText};
EAH=function(S){return!!S.playlistPanelVideoRenderer&&!!S.playlistPanelVideoRenderer.title};
tnp=function(S,c){if(c.contents&&!(S>=c.contents.length)&&(S=c.contents.slice(S).find(L6R)))return S.playlistPanelVideoRenderer};
Vnr=function(S,c){if(c.contents)return(c=c.contents.find(function(Q){return!!Q.playlistPanelVideoRenderer&&Q.playlistPanelVideoRenderer.videoId===S}))?c.playlistPanelVideoRenderer:void 0};
Reo=function(S,c){return c.contents?c.contents.findIndex(function(Q){return!!Q.playlistPanelVideoRenderer&&Q.playlistPanelVideoRenderer.videoId===S}):-1};
yAZ=function(S,c){return c.contents?c.contents.findIndex(function(Q){return!!Q.playlistPanelVideoRenderer&&Q.playlistPanelVideoRenderer.playlistSetVideoId===S}):-1};
oAz=function(S,c){S.contents&&c!==-1&&S.contents.splice(c,1).length===1&&S.totalVideos!==void 0&&(--S.totalVideos,delete S.videoCountText)};
_.miZ=function(S){var c=[];if(!S||!S.contents)return c;S=_.A(S.contents);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q.playlistPanelVideoRenderer&&Q.playlistPanelVideoRenderer.videoId&&c.push(Q.playlistPanelVideoRenderer.videoId);return c};
_.Sxr=function(S){if(S&&S.contents)return(S=S.contents.find(function(c){return!!c.playlistPanelVideoRenderer&&!!c.playlistPanelVideoRenderer.selected})||S.contents[S.currentIndex])?S.playlistPanelVideoRenderer:void 0};
cKR=function(S,c,Q,f,U,a,X){U=U===void 0?!1:U;a=a===void 0?!1:a;X=X===void 0?!1:X;if(S.contents&&S.contents.length!==0){f&&(S.contents=S.contents.filter(f));f=S.contents.length;for(var z=0;z<f;z++){var x=S.contents[z].playlistPanelVideoRenderer;x&&(z===c?(a&&delete x.menu,x.indexText=_.LK("\u25b6")):U||S.isInfinite||x.indexText===void 0?delete x.indexText:x.indexText=_.LK((z+1+Q).toString()))}S.currentIndex=c+Q;X&&(delete S.videoCountText,S.totalVideos=f)}};
_.mM=function(S){S=Qtz(S);if(S){var c=S.length;var Q=-62%c;Q<0&&(Q=c+Q);S=S.slice(c-Q)+S.slice(0,c-Q)}else S="";Q="";for(c=0;c<S.length&&S[c]!==fMZ;c++)Q+=S[c];return Q};
_.Uuo=function(S,c){var Q=document.body;c=c===void 0?function(z){return z}:c;
var f,U=null;S=_.A(S);for(f=S.next();!f.done;f=S.next()){var a=f.value;f=void 0;var X=(f=a[2])!=null?f:"div";f=document.createElement(X);U||(U=f);X=a[0];a=a[1];X&&(f.id=c(X));if(a)for(a=_.A(a),X=a.next();!X.done;X=a.next())f.classList.add(c(X.value));Q.appendChild(f);Q=f}return[U,Q]};
JKY=function(S,c){for(var Q="",f=0;f<c;f++)Q+=S.charAt(Math.floor(Math.random()*S.length));return Q};
Sm=function(S){return JKY("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",S)};
cV=function(S){return JKY("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",S)};
QI=function(S){return JKY("0123456789",S)};
fJ=function(){var S=performance.now(),c=new Date;var Q="2."+c.getFullYear()+String(c.getMonth()+1).padStart(2,"0")+String(c.getDate()).padStart(2,"0");for(var f,U=Math.floor(Math.random()*11)+15,a=[],X=0;X<U;X++)a.push(Math.floor(Math.random()*26476865)+24547720);f=a.join(",");var z=Sm(10),x=Sm(100),I=Sm(102),n=Sm(106),b=Sm(108),N=Sm(11),l=Sm(1140),H=Sm(123),q=Sm(14),w=Sm(16),g=Sm(1900),r=Sm(23),E=Sm(26),v=Sm(34),t=Sm(397),V=Sm(44),AZ=Sm(5),IH=Sm(72),Nr=Sm(74),Hc=Sm(75),qr=Sm(88),wp=Sm(91),Pc="rr1---sn-4g5e6nze rr4---sn-q4fl6nsd rr4---sn-q4flrnlz rr5---sn-q4fl6ndz rr1---sn-q4flrnle rr1---sn-hgn7rn7y rr3---sn-q4flrnss rr3---sn-q4fl6nz7 rr3---sn-q4fl6n66 rr1---sn-q4fzene7 rr2---sn-q4fl6n6s rr3---sn-q4fl6nzy rr5---sn-q4flrn7y rr1---sn-q4flrnsd rr1---sn-q4flrn7r rr4---sn-ntqe6n7r rr5---sn-q4fl6ndl rr1---sn-ntqe6nee rr2---sn-q4fl6nd6 rr4---sn-q4flrnes".split(" ");
var ex=Pc[Math.floor(Math.random()*Pc.length)];var yd=(new Date("2010-01-01")).getTime();var op=(new Date(yd+Math.random()*((new Date).getTime()-yd))).toISOString().split("T")[0];for(var DT,B_=[],zJ=0;zJ<4;zJ++)B_.push(Math.floor(Math.random()*100));DT=B_.join(".");var Qp=Number(QI(5)),xl=Number(QI(6)),xZ=Number(QI(7)),hj=Number(QI(9)),OT=QI(1),uu=QI(10),sd=QI(16),LT=QI(19),Ci=QI(2),t$=QI(20),kp=QI(21),Ed=QI(3),J$=QI(4),ez=QI(5),$0=QI(6),$l=QI(7),h$=QI(8),FE=QI(9);var an=JKY("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var XE=[cV(5),cV(5),cV(5)].join("%2C"),ui=[QI(3),QI(5),QI(5)].join("%2C"),gN=cV(0),rd=cV(1),pT=cV(10),og=cV(108),Aj=cV(11),sh=cV(12),zC=cV(13),Cb=cV(14),y0=cV(15),yx=cV(16),eB=cV(17),lM=cV(18),ZZ=cV(19),rp=cV(2),bu=cV(20),AU=cV(22),qV=cV(23),B8=cV(24),Ki=cV(266),ni=cV(3),uE=cV(30),FA=cV(34),ap=cV(35),bo=cV(36),At=cV(4),iY=cV(40),j6=cV(43),r5=cV(47),Sy=cV(5),vc=cV(6),UZ=cV(7),W8=cV(75),Rg=cV(8),on=cV(80),U7=cV(9),Ba="https://www."+cV(12)+".com",Dv={},pj={},M0={},E0o={},iF={},of={},mT={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:f}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:Q},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+cV(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:Q},{key:"client.name",value:"WEB"},{key:"client.fexp",value:f}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:kp+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+cV(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:iY,ypcGetOfflineUpsellEndpoint:{params:on}},trackingParams:ap+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&cnr="+Ci+"&ratebypass=yes&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&c=WEB&txp="+$l+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:xl,width:640,height:360,lastModified:sd,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$l,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+ui+"&mn="+
XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&cnr="+Ci+"&ratebypass=yes&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&c=WEB&txp="+$l+"&n="+w+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+og+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:xl,width:1280,
height:720,lastModified:sd,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$l,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+ui+"&mn="+XE+"&ms="+
XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+FE+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:xZ,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:FE,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xZ,approxDurationMs:$l},{itag:248,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+ui+"&mn="+XE+"&ms="+XE+"&mv="+
rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+FE+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:xZ,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:FE,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:399,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+FE+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:xZ,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:FE,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xZ,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:136,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+FE+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:xZ,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:FE,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xl,approxDurationMs:$l},{itag:247,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+ui+"&mn="+
XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+FE+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:xZ,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:FE,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:398,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+FE+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:xZ,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:FE,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:135,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:xl,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xl,approxDurationMs:$l},{itag:244,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+ui+"&mn="+
XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+og+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:xl,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:397,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:xl,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:134,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:xl,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xl,highReplication:!0,approxDurationMs:$l},{itag:243,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:xl,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:396,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:xl,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:133,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:xl,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xl,approxDurationMs:$l},{itag:242,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+ui+"&mn="+
XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:xl,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:395,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:xl,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:xl,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:160,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:xl,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Qp,approxDurationMs:$l},{itag:278,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+ui+"&mn="+
XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+b+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/webm; codecs="vp9"',bitrate:xl,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Qp,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:394,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&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="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=video%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Qp,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Qp,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:$l},{itag:140,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=audio%2Fmp4&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:xl,
initRange:{start:"0",end:"631"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xl,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$l,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+
Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=audio%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+$l+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/webm; codecs="opus"',bitrate:Qp,initRange:{start:"0",end:"265"},indexRange:{start:Ed,
end:J$},lastModified:sd,contentLength:$l,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Qp,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$l,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=audio%2Fwebm&ns="+
B8+"&gir="+ni+"&clen="+$l+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+n+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/webm; codecs="opus"',bitrate:Qp,initRange:{start:"0",end:"265"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:$l,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Qp,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:$l,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+ex+".googlevideo.com/videoplayback?expire="+uu+"&ei="+r+"&ip="+DT+"&id=o-AF"+j6+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+ui+"&mn="+XE+"&ms="+XE+"&mv="+rd+"&mvi="+OT+"&pl="+Ci+"&initcwndbps="+$l+"&siu="+OT+"&spc="+V+"&vprv="+OT+"&svpuc="+OT+"&mime=audio%2Fwebm&ns="+B8+"&gir="+ni+"&clen="+h$+"&dur="+h$+"&lmt="+sd+"&mt="+uu+"&fvip=3&keepalive="+ni+"&c=WEB&txp="+
$l+"&n="+yx+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+x+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+b,mimeType:'audio/webm; codecs="opus"',bitrate:xl,initRange:{start:"0",end:"265"},indexRange:{start:Ed,end:J$},lastModified:sd,contentLength:h$,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:xl,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:$l,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="+FE+"&docid="+N+"&ei="+r+"&feature="+z+"&fexp="+gN+"&ns="+rp+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+rd+"&el="+pT+"&len="+J$+"&of="+AU+
"&uga="+Ci+"&vm="+Ki},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+FE+"&docid="+N+"&ei="+r+"&feature="+z+"&fexp="+gN+"&ns="+rp+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+rd+"&el="+pT+"&len="+J$+"&of="+AU+"&uga="+Ci+"&vm="+Ki},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+FE+"&docid="+N+"&ei="+r+"&feature="+z+"&fexp="+gN+"&ns="+rp+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
rd+"&el="+pT+"&len="+J$+"&of="+AU+"&uga="+Ci+"&vm="+Ki},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+r+"&m="+qr+"&oid="+AU+"&plid="+w+"&pltype="+UZ+"&ptchn="+AU+"&ptk="+q+"&video_id="+N},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+FE+"&docid="+N+"&ei="+r+"&event="+Cb+"&feature="+z+"&fexp="+gN+"&ns="+rp+"&plid="+w+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+rd},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+N+"&ei="+r+"&feature="+
z+"&len="+J$+"&ns="+rp+"&plid="+w+"&ver="+OT,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+N+"&caps="+ni+"&opi="+FE+"&xoaf="+OT+"&hl="+rp+"&ip="+DT+"&ipbits="+OT+"&expire="+uu+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+DT+"&key="+ni+"&lang="+AZ,name:{simpleText:lM},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+N+"&caps="+ni+"&opi="+FE+"&xoaf="+OT+"&hl="+rp+"&ip="+DT+"&ipbits="+OT+"&expire="+uu+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+DT+"&key="+ni+"&kind="+ni+"&lang="+rp,name:{simpleText:y0},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:Aj,title:pT,lengthSeconds:"1155",keywords:[pT,sh,bu,lM],
channelId:B8,isOwnerViewing:!1,shortDescription:Rg,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+FA,width:168,height:94},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+FA,width:196,height:110},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+v,width:246,height:138},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+v,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
N+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:$l,author:zC,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:$l,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+AU+"/featured_channel.jpg?v="+Rg,width:40,height:40}]},trackingParams:ap+"=",navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"/channel/"+B8,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:B8}},channelName:zC,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:At}]},subscribed:!1,enabled:!0,type:"FREE",channelId:B8,showPreferences:!1,subscribedButtonText:{runs:[{text:pT}]},unsubscribedButtonText:{runs:[{text:vc}]},trackingParams:ap+"=",unsubscribeButtonText:{runs:[{text:vc}]},serviceEndpoints:[{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[B8],params:Rg}},{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:iY,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:ap+"=",dialogMessages:[{runs:[{text:lM},{text:At},{text:Cb}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:Cb}]},serviceEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[B8],params:Rg}},accessibility:{label:ZZ},trackingParams:ap+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:eB}]},accessibility:{label:Sy},trackingParams:ap+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:vc}},unsubscribeAccessibility:{accessibilityData:{label:Sy}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:h$},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[B8],params:Rg}},unsubscribeCommand:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[B8],params:Rg}},addToWatchLaterCommand:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:Aj,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:Aj}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+N+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+bo+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
N+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+Aj,width:1280,height:720},title:{simpleText:eB},description:{simpleText:UZ},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+pT,externalChannelId:B8,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:$l,category:"Travel & Events",publishDate:op,ownerChannelName:zC,uploadDate:op}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:pT},trackingParams:ap+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:iY,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:ap+"="}}],headerText:{simpleText:zC},icon:{infoCardIconRenderer:{trackingParams:ap+"="}},closeButton:{infoCardIconRenderer:{trackingParams:ap+"="}},trackingParams:ap+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:ap+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+Aj+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:an,interpreterSafeUrl:(Dv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+uE+".js",Dv),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:At},{text:yx,bold:!0}]},endpoint:{clickTrackingParams:iY,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:ap+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:vc}]},actionButton:{buttonRenderer:{text:{runs:[{text:UZ}]},navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+N,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
N,target:"TARGET_NEW_WINDOW"}},trackingParams:ap+"="}},trackingParams:ap+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+IH+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+IH+"=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:$l,endMs:$l,title:{accessibility:{accessibilityData:{label:ZZ}},simpleText:zC},metadata:{simpleText:ZZ},callToAction:{simpleText:zC},dismiss:{simpleText:At},endpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"/channel/"+B8,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:B8}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:Cb}]},subscribed:!1,enabled:!0,type:"FREE",channelId:B8,showPreferences:!1,
subscribedButtonText:{runs:[{text:Aj}]},unsubscribedButtonText:{runs:[{text:zC}]},trackingParams:ap+"=",unsubscribeButtonText:{runs:[{text:UZ}]},serviceEndpoints:[{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[B8],params:Rg}},{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:iY,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:ap+
"=",dialogMessages:[{runs:[{text:U7},{text:U7},{text:vc}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:eB}]},serviceEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[B8],params:Rg}},accessibility:{label:eB},trackingParams:ap+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:U7}]},
accessibility:{label:yx},trackingParams:ap+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:bu}},unsubscribeAccessibility:{accessibilityData:{label:Sy}}}},trackingParams:ap+"=",isSubscribe:!0,id:t$}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+v,width:168,height:94},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+FA,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+v,width:246,height:138},{url:"https://i.ytimg.com/vi/"+N+"/hqdefault.jpg?sqp=-oaymwE"+bo+"G&rs="+v,width:336,height:188},{url:"https://i.ytimg.com/vi/"+N+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:$l,endMs:$l,title:{accessibility:{accessibilityData:{label:sh}},simpleText:UZ},metadata:{simpleText:At},endpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
Aj,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:Aj,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+ex+".googlevideo.com/videoplayback?source=youtube&oeis="+OT+"&c=WEB&oad="+J$+"&ovd="+J$+"&oaad="+ez+"&oavd="+ez+"&ocs="+Ed+"&oewis="+OT+"&oputc="+OT+"&ofpcc="+OT+"&siu="+OT+"&msp="+OT+"&odepv="+OT+
"&id=o-AF"+j6+"&ip="+DT+"&initcwndbps="+$l+"&mt="+uu+"&oweuc="+gN}}}}},trackingParams:ap+"=",id:t$,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:Sy}},simpleText:yx},style:"DEFAULT"}}]}}],startMs:$l,trackingParams:ap+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:OT,offsetEndMilliseconds:ez},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";ord="+uu+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+Ed+";dc_sk="+OT+";dc_ctype="+Ci+";dc_ref=http://www.youtube.com/video/"+Aj+";dc_pubid="+OT+";dc_btype=23?gclid="+wp+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+OT+"&ns="+OT+"&event="+OT+"&device="+OT+"&content_v="+N+"&el="+pT+"&ei="+r+"&devicever="+Q+"&bti="+$l+"&format="+$0+"&break_type="+OT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+OT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+DT+"&slot_pos="+OT+"&slot_len="+OT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+ui+"&ad_len="+ez+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
Aj+"&aqi="+r+"&ad_rmp="+OT+"&sli="+OT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+
";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$l+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&ctype="+Ed+"&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"+
l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_engaged_view&ctype="+Ed+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+";dc_rui="+OT+";dc_exteid="+LT+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+qV+"&ad_cpn=[AD_CPN]&id="+vc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vc+"&dc_pubid="+OT+"&dc_exteid="+t$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+qV+"&ad_cpn=[AD_CPN]&id="+vc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+OT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vc+"&avm="+OT+"&dc_pubid="+OT+"&dc_exteid="+
t$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
I+"&sig="+qV+"&ad_cpn=[AD_CPN]&id="+vc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+OT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vc+"&dc_pubid="+OT+"&dc_exteid="+t$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:iY,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+
Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/mqdefault.jpg",width:320,height:180}]},trackingParams:ap+"="},trackingParams:ap+
"=",templatedCountdown:{templatedAdText:{text:UZ,isTemplated:!0,trackingParams:ap+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:Cb,isTemplated:!1,trackingParams:ap+"="},trackingParams:ap+"="}},trackingParams:ap+"=",skipOffsetMilliseconds:5E3}},trackingParams:ap+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:UZ},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ap+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:ZZ,isTemplated:!1,trackingParams:ap+"="},trackingParams:ap+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ZZ,isTemplated:!0,trackingParams:ap+"="}},trackingParams:ap+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:iY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(pj.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+rp+"&origin=www.youtube.com&ata_theme="+At,pj),trackingParams:ap+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:ap+"="}},hoverText:{runs:[{text:yx}]},trackingParams:ap+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+r5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ap+"="},headline:{text:bu,isTemplated:!1,trackingParams:ap+"="},description:{text:bu,
trackingParams:ap+"="},actionButton:{buttonRenderer:{text:{simpleText:At},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ap+"="}},startMs:OT,trackingParams:ap+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:sh},elementId:zC}},elementId:Aj,trackingParams:ap+"=",legacyInfoCardVastExtension:zC,sodarExtensionData:{siub:Rg,bgub:zC,scs:ZZ,bgp:y0},externalVideoId:Aj,adLayoutLoggingData:{serializedAdServingDataEntry:bu},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+r5+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ap+"="},
headline:{text:Aj,isTemplated:!1,trackingParams:ap+"="},description:{text:Sy,isTemplated:!1,trackingParams:ap+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:zC},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+";dc_rui="+OT+";dc_exteid="+
t$+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+
OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:ap+"="}},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+FE+";dc_trk_cid="+
FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ap+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:ap+"="},abandonCommands:{commands:[{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+
OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:iY,commandExecutorCommand:{commands:[{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:bu,isTemplated:!1,trackingParams:ap+
"="},trackingParams:ap+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:U7},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$l+";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="+FE+";dc_trk_cid="+FE+";ord="+uu+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+Ed+";dc_sk="+OT+";dc_ctype="+Ci+";dc_ref=http://www.youtube.com/video/"+Aj+";dc_pubid="+OT+";dc_btype=23?gclid="+wp+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+OT+"&ns="+OT+"&event="+OT+"&device="+OT+"&content_v="+N+"&el="+pT+"&ei="+r+"&devicever="+Q+"&bti="+$l+"&format="+$0+"&break_type="+OT+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+OT+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+DT+"&slot_pos="+OT+"&slot_len="+OT+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
ui+"&ad_len="+ez+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+Aj+"&aqi="+r+"&ad_rmp="+OT+"&sli="+OT}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+
E+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$l+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=video_skip_shown&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]",offsetMilliseconds:5E3},{baseUrl:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&ctype="+Ed+"&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"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_engaged_view&ctype="+Ed+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+qV+"&ad_cpn=[AD_CPN]&id="+
vc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vc+"&dc_pubid="+OT+"&dc_exteid="+t$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+
"&sig="+qV+"&ad_cpn=[AD_CPN]&id="+vc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+OT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vc+"&avm="+OT+"&dc_pubid="+OT+"&dc_exteid="+t$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+I+"&sig="+qV+"&ad_cpn=[AD_CPN]&id="+vc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+OT},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+vc+"&dc_pubid="+OT+"&dc_exteid="+t$+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+$0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+
Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},csiParameters:[{key:"ad_at",value:"15_2_1"}],playerVars:"suppress_creator_endscreen=1&is_trueview_action=1&length_seconds=15",
playerOverlay:{instreamAdPlayerOverlayRenderer:{skipOrPreviewRenderer:{skipAdRenderer:{preskipRenderer:{adPreviewRenderer:{thumbnail:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+N+"/mqdefault.jpg",width:320,height:180}]},trackingParams:ap+"="},trackingParams:ap+"=",templatedCountdown:{templatedAdText:{text:lM,isTemplated:!0,trackingParams:ap+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:yx,isTemplated:!1,trackingParams:ap+"="},trackingParams:ap+"="}},
trackingParams:ap+"=",skipOffsetMilliseconds:5E3}},trackingParams:ap+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:pT},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:UZ,isTemplated:!1,trackingParams:ap+"="},trackingParams:ap+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:ZZ,
isTemplated:!0,trackingParams:ap+"="}},trackingParams:ap+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:iY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(M0.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+rp+"&origin=www.youtube.com&ata_theme="+At,M0),trackingParams:ap+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:ap+"="}},hoverText:{runs:[{text:sh}]},trackingParams:ap+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nr+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ap+"="},headline:{text:sh,isTemplated:!1,trackingParams:ap+"="},description:{text:UZ,trackingParams:ap+"="},actionButton:{buttonRenderer:{text:{simpleText:sh},navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ap+"="}},startMs:OT,trackingParams:ap+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:Cb},elementId:sh}},elementId:U7,trackingParams:ap+"=",legacyInfoCardVastExtension:lM,sodarExtensionData:{siub:y0,bgub:lM,scs:At,bgp:Cb},externalVideoId:Aj,adLayoutLoggingData:{serializedAdServingDataEntry:Cb},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nr+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:ap+"="},headline:{text:Aj,
isTemplated:!1,trackingParams:ap+"="},description:{text:Sy,isTemplated:!1,trackingParams:ap+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:U7},navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:ap+"="}},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+
OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:ap+"="},abandonCommands:{commands:[{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=video_abandon&ad_mt=[AD_MT]&ad_tos=[AD_TOS]&ad_wat=[AD_WAT]&final=[FINAL]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+Ci+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:iY,commandExecutorCommand:{commands:[{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:Rg,isTemplated:!1,trackingParams:ap+"="},trackingParams:ap+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:sh},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+OT+";dc_exteid="+t$+";met="+OT+";ecn"+OT+"="+OT+";etm1="+OT+";eid1="+
$l+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:zC}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:y0}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:ez,offsetEndMilliseconds:$0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+Ci+"&token=ALHj"+t+"&index="+OT+"&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="+Q+"&m_pos_ms="+ez}},adSlotLoggingData:{serializedSlotAdServingDataEntry:vc}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:$0,offsetEndMilliseconds:$0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+Ed+"&token=ALHj"+t+"&index="+OT+"&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="+
Q+"&m_pos_ms="+$0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Aj}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$0,offsetEndMilliseconds:$0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+Ed+"&token=ALHj"+t+"&index="+OT+"&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="+
Q+"&m_pos_ms="+$0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:y0}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$0,offsetEndMilliseconds:$0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+Ed+"&token=ALHj"+t+"&index="+OT+"&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="+
Q+"&m_pos_ms="+$0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:lM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:$0,offsetEndMilliseconds:Ci},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+Ed+"&token=ALHj"+t+"&index="+OT+"&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="+
Q+"&m_pos_ms="+$0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Rg}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:Ci,offsetEndMilliseconds:Ci},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+r+"&m_pos="+Ci+"&token=ALHj"+t+"&index="+OT+"&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="+
Q+"&m_pos_ms="+Ci}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eB}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:U7,isTemplated:!1,trackingParams:ap+"="},description:{text:zC,isTemplated:!1,trackingParams:ap+"="},actionButton:{buttonRenderer:{text:{simpleText:eB},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+r5+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:ap+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Hc+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:ap+"="},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+
";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:iY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(E0o.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+rp+"&origin=www.youtube.com&ata_theme="+At,E0o),trackingParams:ap+"="}},popupType:"DIALOG"}},trackingParams:ap+"="}},hoverText:{runs:[{text:Sy}]},trackingParams:ap+"="}},adVideoId:Aj,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Rg},associatedCompositePlayerBytesLayoutId:yx}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:lM}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:Rg,isTemplated:!1,trackingParams:ap+"="},description:{text:y0,isTemplated:!1,trackingParams:ap+"="},actionButton:{buttonRenderer:{text:{simpleText:UZ},navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+
H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ap+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nr+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:ap+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+W8+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:ap+"="},navigationEndpoint:{clickTrackingParams:iY,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+
OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:iY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(iF.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+rp+"&origin=www.youtube.com&ata_theme="+At,iF),trackingParams:ap+"="}},popupType:"DIALOG"}},trackingParams:ap+"="}},
hoverText:{runs:[{text:yx}]},trackingParams:ap+"="}},adVideoId:Aj,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+Aj+"&cid="+E+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:pT},associatedCompositePlayerBytesLayoutId:yx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:Cb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:ZZ,
isTemplated:!1,trackingParams:ap+"="},description:{text:sh,isTemplated:!1,trackingParams:ap+"="},actionButton:{buttonRenderer:{text:{simpleText:sh},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+
Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+
v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:ap+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+r5+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:ap+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Hc+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:ap+
"="},navigationEndpoint:{clickTrackingParams:iY,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+FE+";dc_trk_cid="+FE+";dc_dbm_token="+b+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+OT+";ord="+FE+";dc_rui="+OT+";dc_exteid="+t$+";dc_av="+OT+";dc_sk="+OT+";dc_ctype="+Ci+";dc_pubid="+OT+";dc_btype=3?gclid="+wp+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+l+"____________"+H+"AxAA&ase=2&num="+OT+"&cid="+E+"&ad_cpn=%5BAD_CPN%5D&sig="+v+"&adurl="+Ba+"&label=video_click_to_advertiser_site&ctype="+Ed+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:ap+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:iY,openPopupAction:{popup:{aboutThisAdRenderer:{url:(of.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+g+"&hl="+rp+"&origin=www.youtube.com&ata_theme="+At,of),trackingParams:ap+"="}},popupType:"DIALOG"}},trackingParams:ap+
"="}},hoverText:{runs:[{text:UZ}]},trackingParams:ap+"="}},adVideoId:Aj,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+l+"____________"+H+"AxAA&sigh="+N+"&cid="+E+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:Aj},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:yx}},adSlotLoggingData:{serializedSlotAdServingDataEntry:zC}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:uE,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:uE,command:{innertubeCommand:{clickTrackingParams:iY,ypcGetOfflineUpsellEndpoint:{params:on}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:ap+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:uu,nanos:hj}}}},hBp=JSON.stringify(mT),Sf=performance.now()-S;return{objectRepresentation:mT,jsonRepresentation:hBp,generationTime:Sf}};
aMx=function(S,c){if(S===c)return!0;if(!S||!c||typeof S!==typeof c)return!1;if(S instanceof Array&&c instanceof Array){if(S.length!==c.length)return!1;for(var Q=0;Q<S.length;Q++)if(!aMx(S[Q],c[Q]))return!1;return!0}if(typeof S==="object"&&typeof c==="object"&&S&&c){for(Q in S)if(!(Q in c&&aMx(S[Q],c[Q])))return!1;for(var f in c)if(!(f in S))return!1;return!0}return!1};
_.J4=function(){if(!U_){U_=new B1(new AKp);var S=_.a6("client_streamz_web_flush_count",-1);S!==-1&&(U_.invocationLimit=S)}return U_};
aM=function(S,c,Q,f){if(S===c)return!0;if(Array.isArray(S)&&Array.isArray(c)){if(S.length!==c.length)return!1;for(var U=0;U<S.length;U++)if(!aM(S[U],c[U],Q,f))return!1;return!0}if(S instanceof Set||c instanceof Set){if(S instanceof Set&&c instanceof Set){if(S.size!==c.size)return!1;f=_.A(S.values());for(U=f.next();!U.done;U=f.next())if(!c.has(U.value))return!1;return!0}return!1}if(S instanceof Function){if(f)return!0;S.name===""&&_.sH(Error("Jf"),"ERROR");return!1}if(S instanceof Date&&c instanceof
Date)return S.getTime()===c.getTime();if(S instanceof Object&&c instanceof Object){if(Xbo(S)&&Xbo(c))try{return S.equals(c)}catch(X){_.sH(Error("Kf`"+X),"ERROR")}U=Object.getOwnPropertyNames(S).filter(function(X){return Q?S[X]!==void 0:!0});
var a=Object.getOwnPropertyNames(c).filter(function(X){return Q?c[X]!==void 0:!0});
if(U.length!==a.length)return!1;U=_.A(U);for(a=U.next();!a.done;a=U.next())if(a=a.value,!aM(S[a],c[a],Q,f))return!1;return!0}return!1};
Xbo=function(S){S=Object.getPrototypeOf(S).equals;return S instanceof Function&&S.length===1};
_.xur=function(){return _.O(function(S){if(S.nextAddress==1)return OMY!==2?S.jumpTo(2):_.F(S,zSY(),3);S.nextAddress!=2&&(OMY=S.yieldResult);return S.return(OMY)})};
_.IMY=function(){return _.O(function(S){if(S.nextAddress==1)return _.u("ab_pl_man")?Fnc!==2?S.jumpTo(2):_.F(S,BcZ(),3):S.return(1);S.nextAddress!=2&&(Fnc=S.yieldResult);return S.return(Fnc)})};
NcR=function(){return _.O(function(S){if(S.nextAddress==1)return _.u("ab_fk_sk_cl")?nRz!==2?S.jumpTo(2):_.F(S,bMp(),3):S.return(1);S.nextAddress!=2&&(nRz=S.yieldResult);return S.return(nRz)})};
_.u6p=function(){return _.O(function(S){if(S.nextAddress==1)return _.u("ab_det_apb_b")?Knz!==2?S.jumpTo(2):_.F(S,$uo(),3):S.return(1);S.nextAddress!=2&&(Knz=S.yieldResult);return S.return(Knz)})};
Yxp=function(){var S;return _.O(function(c){if(c.nextAddress==1)return _.F(c,Promise.all([_.xur(),_.u6p(),_.IMY(),NcR()]),2);if(c.nextAddress!=3)return jtr()?c.return(!0):_.F(c,_.lMx(),3);S=c.yieldResult;return c.return(S===0)})};
jtr=function(){var S=!1,c=function(Q,f){CsH.increment(f,Q);Q===0&&(S=!0)};
c(_.HMz(),"j.s_");c(OMY,"f.i_");c(Knz,"a.b_");c(Fnc,"p.m_");c(nRz,"i.f_");Duo===2&&(Duo=_.pbR(hSZ));c(Duo,"e.h_");_.u("ks_det_gpbl")||c(_.qxo(),"p.i_");_.u("ks_get_o_pp")||c(_.TcZ(),"g.o_");_.u("ab_deg_unex_thr")||c(_.wbp(),"a.o_");c(stM,"s.t_");_.u("ab_det_sc_inj_enf")&&c(_.MET(),"s.i_");c(iMM,"d.p_");c(_.ZMY(_.A4),"o.p_");c(_.G3H()===0?0:_.WnT(),"o.a_");return _.u("debug_sk_em_precheck")?!0:S};
eSY=function(){var S=[].concat(_.Hs(gRz));try{var c=fJ();S.push({jsonRepresentation:c.jsonRepresentation,objectRepresentation:c.objectRepresentation})}catch(Q){S=[].concat(_.Hs(gRz))}return S};
k3p=function(){var S=["adPlacements","adSlots"];try{return S.filter(function(){return!0}).length!==S.length?0:1}catch(c){return 0}};
_.TcZ=function(){if(k3p()===0)return 0;var S=fJ(),c=S.objectRepresentation,Q=(0,_.Cn.unsafeClone)(c),f=[];if(c&&typeof c==="object")for(var U in c)f.push(U);else return 4;S=S.objectRepresentation.adPlacements;if(!(S&&S.length>0))return 4;try{if(!aMx(f,Object.getOwnPropertyNames(c)))return 0}catch(a){return 0}return aMx(Q,c)?1:0};
_.ZMY=function(S){if(!S||!S.length||typeof S==="string")return 0;for(var c=Object.getOwnPropertyNames(Object.prototype),Q=0;Q<S.length;Q++)for(var f=_.mM(S[Q]),U=_.A(c),a=U.next();!a.done;a=U.next())if(f===a.value)return 0;return 1};
rKp=function(S){var c=_.mM(S[1]);if(S[0]===null)return c;S=S[0];for(var Q={},f=0;f<S.length;f++){var U=_.mM(S[f]);if(f===0)Q[U]=c;else{var a={};a[U]=Q;Q=a}}return Q};
_.G3H=function(){for(var S=_.XU,c=0;c<S.length;c++){var Q=rKp(S[c]),f=[];f.push(Q);if(f.length===0)return 0}return 1};
_.WnT=function(){for(var S=_.XU,c={},Q=0;Q<S.length;c={uMy:void 0},Q++){var f=[rKp(S[Q])];c.uMy=[];f.forEach(function(U){return function(a){U.uMy[U.uMy.length]=a}}(c));
if(c.uMy.length===0)return 0}return 1};
_.HMz=function(){for(var S=_.A(eSY()),c=S.next();!c.done;c=S.next()){var Q=c.value;c=Q.jsonRepresentation;Q=Q.objectRepresentation;try{var f=JSON.parse(c);if(!aM(f,Q,!1,!1))return 0}catch(U){return 0}}return 1};
_.MET=function(){try{var S=_.XJ("ab_det_sc_inj_val");S.length===1&&S[0]===""&&(S=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var c=document.querySelectorAll("script"),Q=_.A(c),f=Q.next();!f.done;f=Q.next())for(var U=f.value,a=_.A(S),X=a.next();!X.done;X=a.next()){var z=X.value;c=void 0;if((c=U.textContent)==null?0:c.includes(z))return 0}}catch(x){return 4}return 1};
_.lMx=function(){var S,c,Q,f,U,a,X;return _.O(function(z){switch(z.nextAddress){case 1:_.X1(z,2),S=_.A(gRz),c=S.next();case 4:if(c.done)return z.return(1);f=Q=c.value;U=f.jsonRepresentation;a=f.objectRepresentation;return _.F(z,(new Response(U,{status:200})).json(),7);case 7:X=z.yieldResult;if(!aM(X,a,!1,!1))return z.return(0);c=S.next();z.jumpTo(4);break;case 2:return _.Bs(z),z.return(4)}})};
_.wbp=function(){try{btoa("abc")}catch(S){return 0}return 1};
zSY=function(){var S,c,Q,f,U,a,X,z,x,I,n;return _.O(function(b){switch(b.nextAddress){case 1:_.X1(b,2),S=_.A(eSY()),c=S.next();case 4:if(c.done)return b.return(1);f=Q=c.value;U=f.jsonRepresentation;a=f.objectRepresentation;X=btoa(U);z="data:application/json;base64,"+X;x=new Request(z);Object.defineProperty(x,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(x,"method",{get:function(){return"POST"}});
Object.defineProperty(x,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(x,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(x,"body",{get:function(){return new ReadableStream}});
return _.F(b,fetch(x),7);case 7:return I=b.yieldResult,_.F(b,I.json(),8);case 8:n=b.yieldResult;if(!aM(n,a,!1,!1))return b.return(0);c=S.next();b.jumpTo(4);break;case 2:return _.Bs(b),b.return(4)}})};
_.pbR=function(S){if(!S||!S.length||typeof S==="string")return 0;for(var c=function(U){return _.mM(U)},Q=2,f=0;f<S.length&&(Q=_.duM(_.Uuo(S[f],c)),Q!==0);f++);
return Q};
_.duM=function(S){var c=_.A(S);S=c.next().value;c=c.next().value;try{var Q=document.createElement("div");document.body.appendChild(Q);var f=getComputedStyle(Q).display;document.body.removeChild(Q);if(f==="none")return 4;var U=getComputedStyle(c).display==="none"?0:1;document.body.removeChild(S);return U}catch(a){return 4}};
bMp=function(){var S,c,Q;return _.O(function(f){S=new _.O_;c=document.createElement("button");c.classList.add("ytp-ad-skip-button");c.style.opacity="0";c.style.height="0px";c.style.width="0px";c.style.padding="0px";c.style.border="none";Q=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.onclick=function(){S.resolve(0);Q()};
document.body.appendChild(c);setTimeout(function(){Q();S.resolve(1)},50);
return f.return(S.promise)})};
BcZ=function(){var S,c,Q,f,U,a,X;return _.O(function(z){S=new _.O_;c=document.createElement("ytd-player");try{document.body.prepend(c)}catch(x){return z.return(4)}Q=function(){c.parentElement&&c.parentElement.removeChild(c)};
c.getElementsByTagName("div").length>0?f=c.getElementsByTagName("div")[0]:(f=document.createElement("div"),c.appendChild(f));U=document.createElement("div");f.appendChild(U);a=document.createElement("video");X=new Blob([new Uint8Array([26,69,223,163,159,66,134,129,1,66,247,129,1,66,242,129,4,66,243,129,8,66,130,132,119,101,98,109,66,135,129,4,66,133,129,2,24,83,128,103,1,255,255,255,255,255,255,255,21,73,169,102,153,42,215,177,131,15,66,64,77,128,134,67,104,114,111,109,101,87,65,134,67,104,114,111,
109,101,22,84,174,107,169,174,167,215,129,1,115,197,135,207,96,156,234,24,157,175,131,129,1,85,238,129,1,134,133,86,95,86,80,56,224,138,176,129,1,186,129,1,83,192,129,1,31,67,182,117,1,255,255,255,255,255,255,255,231,129,0,160,204,161,162,129,0,0,0,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,229,106,0,117,161,165,166,163,238,129,1,165,158,16,2,0,157,1,42,1,0,1,0,11,199,8,133,133,136,153,132,136,63,130,0,12,13,96,0,254,232,120,0,160,187,161,152,129,3,233,0,177,
1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,129,0,160,188,161,152,129,7,208,0,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,229,106,0,117,161,155,166,153,238,129,1,165,148,177,1,0,47,17,252,0,24,0,48,63,244,12,0,0,0,254,232,120,0,251,130,3,233])],{type:"video/webm"});a.src=_.nc(_.lo(X));a.ontimeupdate=function(){Q();S.resolve(0)};
U.appendChild(a);a.classList.add("html5-main-video");setTimeout(function(){U.classList.add("ad-interrupting")},200);
setTimeout(function(){Q();S.resolve(1)},5E3);
return z.return(S.promise)})};
vRT=function(S,c){var Q,f;return _.O(function(U){switch(U.nextAddress){case 1:Q=[],f=0;case 2:if(!(f<3)){U.jumpTo(4);break}return _.F(U,fetch(S,{cache:"no-store",method:c}).then(function(a){Q.push(a.status)}).catch(function(){Q.push(-1)}),3);
case 3:f++;U.jumpTo(2);break;case 4:return U.return(Q)}})};
PsR=function(S){return S.domainLookupStart===0&&S.domainLookupEnd===0&&S.connectStart===0&&S.connectEnd===0};
Lnr=function(S,c,Q){Q=Q===void 0?"GET":Q;var f,U,a,X,z,x,I,n,b,N;return _.O(function(l){if(l.nextAddress==1)return _.F(l,Promise.all([vRT(S,Q),vRT(c,Q)]),2);f=l.yieldResult;U=_.A(f);a=U.next().value;X=U.next().value;z=a;x=X;if(Math.min.apply(Math,_.Hs(x))!==Math.max.apply(Math,_.Hs(x))||Math.min.apply(Math,_.Hs(z))!==Math.max.apply(Math,_.Hs(z)))return l.return(2);if(Math.min.apply(Math,_.Hs(x))===Math.min.apply(Math,_.Hs(z)))return l.return(1);n=(I=performance.getEntriesByName(S))==null?void 0:I[0];
N=(b=performance.getEntriesByName(c))==null?void 0:b[0];return n&&N?PsR(N)?l.return(1):PsR(n)?l.return(0):l.return(1):l.return(2)})};
$uo=function(){var S;return _.O(function(c){var Q=[];var f;var U,a,X;(U=f=(U=fJ().objectRepresentation.streamingData)==null?void 0:(a=U.formats)==null?void 0:(X=a[0])==null?void 0:X.url)&&U&&!f.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(U=U.replace("initcwndbps","ctier=L&initcwndbps"),U=U.replace("%2Crequiressl%2C","%2Crequiressl%2Cctier%2C"),f={testUrl:U,baseUrl:f,method:"GET"}):f=void 0;f&&Q.push(f);_.u("ab_net_tp_e")&&Q.push({testUrl:_.QY.location.origin+"/ad_companion",baseUrl:_.QY.location.origin+
"/generate_204",method:"OPTIONS"});if(_.u("ad_net_pb_ab")){var z;b:{f=/api\/stats\/ads/;var x,I,n,b;U=(z=fJ().objectRepresentation.adPlacements)==null?void 0:(x=z[0])==null?void 0:(I=x.adPlacementRenderer)==null?void 0:(n=I.renderer)==null?void 0:(b=n.linearAdSequenceRenderer)==null?void 0:b.linearAds;if(U!=null&&U.length&&(z=_.Y(U[0],ERp))&&(z=z.pings,z!=null&&z.impressionPings))for(x=[].concat(_.Hs(z.impressionPings)),z.progressPings&&(x=[].concat(_.Hs(x),_.Hs(z.progressPings))),z=_.A(x),x=z.next();!x.done;x=
z.next())if(x=x.value,x.baseUrl&&f.test(x.baseUrl)){z=x.baseUrl.replace("https://www.youtube.com","");break b}z=void 0}z&&Q.push({testUrl:_.QY.location.origin+z,baseUrl:_.QY.location.origin+"/feed/download",method:"GET"})}if(_.u("ad_net_pb_pbp")){var N;b:{z=/api\/stats\/qoe/;if(x=fJ().objectRepresentation.playbackTracking){I=[];I.push(x==null?void 0:(N=x.videostatsPlaybackUrl)==null?void 0:N.baseUrl);var l;I.push(x==null?void 0:(l=x.videostatsDelayplayUrl)==null?void 0:l.baseUrl);var H;I.push(x==
null?void 0:(H=x.videostatsWatchtimeUrl)==null?void 0:H.baseUrl);var q;I.push(x==null?void 0:(q=x.ptrackingUrl)==null?void 0:q.baseUrl);var w;I.push(x==null?void 0:(w=x.qoeUrl)==null?void 0:w.baseUrl);var g;I.push(x==null?void 0:(g=x.atrUrl)==null?void 0:g.baseUrl);N=_.A(I);for(l=N.next();!l.done;l=N.next())if((l=l.value)&&z.test(l)){N=l.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}N=void 0}N&&Q.push({testUrl:_.QY.location.origin+N,baseUrl:_.QY.location.origin+
"/feed/download",method:"GET"})}Q=Q.length!==0?Q[Math.floor(Math.random()*Q.length)]:void 0;return(S=Q)?c.return(Lnr(S.testUrl,S.baseUrl,S.method)):c.return(4)})};
_.qxo=function(){if(_.QY.nnD===void 0||_.QY.nnD===null||typeof _.QY.nnD!=="function")return 2;try{return _.QY.nnD()===!0?0:1}catch(S){return 0}};
tEM=function(S){switch(S){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.OZ(S,"unknown result type")}};
_.VEY=function(S,c){var Q=Number(_.WY("CATSTAT",0));if(c.bj2===void 0)return Q;c=c.bj2;S=tEM(S);return Q&~(3<<c)|S<<c};
RSH=function(S){var c,Q;if((S=(c=S.auxiliaryUi)==null?void 0:(Q=c.messageRenderers)==null?void 0:Q.bkaEnforcementMessageViewModel)&&S.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return S};
oRz=function(){for(var S=_.A(Object.values(_.yKH)),c=S.next();!c.done;c=S.next())c=c.value,c.isAsync&&c.bj2&&_.G_("CATSTAT",_.VEY(2,c))};
_.BV=function(S,c){S=_.zW("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",S);(c===void 0?0:c)?_.muH(S,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.xk(_.FU(),S,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
cNz=function(){if(!SLY){if(Polymer.Base){var S=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{S.apply(this,arguments)}catch(b){_.eG(b)}};
var c=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{c.apply(this,arguments)}catch(b){_.eG(b)}};
var Q=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{Q.apply(this,arguments)}catch(b){_.eG(b)}};
var f=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{f.apply(this,arguments)}catch(b){_.eG(b)}};
var U=Polymer.Base._listen,a=new WeakMap;Polymer.Base._listen=function(b,N,l){var H=function(){try{l.apply(this,arguments)}catch(q){_.eG(q)}};
a.set(l,H);U.call(this,b,N,H)};
var X=Polymer.Base._unlisten;Polymer.Base._unlisten=function(b,N,l){X.call(this,b,N,a.get(l))}}if(Polymer.Async){var z=Polymer.Async,x=z._atEndOfMicrotask;
z._atEndOfMicrotask=function(){try{x.apply(z,arguments)}catch(b){_.eG(b)}}}if(Polymer.RenderStatus){var I=Polymer.RenderStatus,n=I.afterNextRender;
I.afterNextRender=function(b,N,l){n.call(I,b,function(){try{N.apply(this,arguments)}catch(H){_.eG(H)}},l)}}SLY=!0}};
_.IM=function(S){var c=S?_.Bi(S):"";if(c){if(c.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(c.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(c.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(c.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(c.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return _.u("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(c.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===
0)return"music";c=c.toLowerCase();if(c==="/")return"home";if(c==="/channel_memberships")return"channel-memberships-shopfront";if(c.indexOf("/feed/trending")===0)return"trending";if(c.indexOf("/feed/explore")===0)return"explore";if(c.indexOf("/live")===0)return"live";if(c.indexOf("/results")===0)return"search";if(c.indexOf("/sports")===0)return"sports";if(c.indexOf("/fashion")===0||c.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(c))return"news";
if(/^\/(learning)|(@learning)(\/.*)?$/.test(c))return _.u("web_browse_enable_learning_journey")?"learning_journey_browse":"learning";if(c.indexOf("/channel/")===0||c.indexOf("/user/")===0||c.indexOf("/gaming")===0||c.indexOf("/post/")===0)return"channel";if(QQZ(S))return"show";if(c==="/playlist"||c.indexOf("/playlist/")===0||c==="/view_play_list"||c.indexOf("/view_play_list/")===0||c.indexOf("/show/")===0)return"playlist";if(c==="/feed/history"||c.indexOf("/feed/history/")===0)return"history";if(c===
"/new")return"labs";if(c==="/feed/subscriptions")return"subscriptions";if(c.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";if(c==="/history_controls")return"standalone";if(c.indexOf("/account")===0||c==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(c.indexOf("/paid_memberships")===0||c.indexOf("/refund")===0||c.indexOf("/purchases")===0||c.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(c.indexOf("/product")===0)return"yts-products";if(c.indexOf("/premium")===
0||c.indexOf("/musicpremium")===0)return c.indexOf("/premium/offers")===0||c.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(c==="/cart/checkout"||c==="/cart")return"ypc-checkout";if(c.indexOf("/feed/downloads")===0||c.indexOf("/redeem")===0||c.indexOf("/reporthistory")===0)return"browse";if(c.indexOf("/hashtag")===0)return"hashtag-landing-page";if(c.indexOf("/handle")===0)return"handle";if(c.indexOf("/source")===0)return"audio-pivot";if(c.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";
if(c.indexOf("/playables")===0)return"playables";if(c.indexOf("/create/live/join")===0)return"open-in-app";if(c.indexOf("/shorts")===0)return"shorts";if(c.indexOf("/feed/channels")===0)return"subscriptions-channels";(c=S?_.Bi(S):"")&&c.indexOf("/watch")===0&&_.u("web_watch_enable_learning_journey")?(S=_.Ep(S),S=!!S.list&&S.list.indexOf("LJPP")===0):S=!1;if(S)return"learning_journey_watch"}};
_.nJ=function(S){var c,Q;(S=(Q=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:Q.url)&&(c=_.IM(S));return c};
QQZ=function(S){var c=S?_.Bi(S):"";if(!c)return!1;c=c.toLowerCase();return c.indexOf("/show/")===0||c.indexOf("/playlist")===0&&(S=_.Ep(S),S.list&&S.list.indexOf("EL")===0)?!0:!1};
ul=function(S){var c="unknown",Q;var f=((Q=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:Q.webPageType)||"";f?(Q=f.toLowerCase(),Q.startsWith("web_page_type_")&&(Q=Q.slice(14))):Q=f;Q&&fpZ[Q.toUpperCase()]?c=fpZ[Q.toUpperCase()]:_.Y(S,_.KJ)||_.Y(S,UcZ)?c="browse":_.Y(S,_.$k)?c="search":_.Y(S,_.tG)&&(c="watch");c==="watch"&&_.nJ(S||null)==="learning_journey_watch"&&(c="learning_journey_watch");c==="unknown"&&_.i5(Error("Mf`"+JSON.stringify({clickTrackingParams:S==null?void 0:S.clickTrackingParams,
commandMetadata:S==null?void 0:S.commandMetadata,allEndpointKeys:Object.keys(S||[])})));return c};
_.jm=function(S){if(!_.JNM||S)_.JNM=_.B5();return _.JNM};
_.apM=function(S){return!!_.Y(S,_.tG)||!!_.Y(S,_.ll)&&_.u("kevlar_enable_shorts_prefetch")};
_.ANH=function(S,c){S=_.Y(S,_.tG)||_.Y(S,_.ll);return"v"+S.videoId+(S.playlistId?"-pl"+S.playlistId:"")+(c?"-an1":"")+(S.params?"-pr"+S.params:"")};
Yk=function(S){return function(){return new S}};
CJ=function(S){var c=_.fl();return function(){return c.resolve(S)}};
OmY=function(S){var c=_.a6("web_pbj_log_warning_rate",0);c=c>0&&Math.random()<c;if(!_.Y(S,_.ll))return c&&_.i5(Error("Pf")),!1;var Q;return _.u("shorts_controller_retrieve_seedless_sequence_v2")&&((Q=_.Y(S,_.ll))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:XJZ(S)?!0:(c&&_.i5(Error("Qf")),!1)};
XJZ=function(S){var c=(_.Y(S,_.tG)||_.Y(S,_.ll)).videoId;if(!c||!z5Y.test(c))return!1;var Q;return(S=(Q=_.Y(S.commandMetadata,_.Qw))==null?void 0:Q.url)&&(S.includes(c)||S.startsWith("/clip"))?!0:!1};
_.Fyo=function(){var S=_.jL();return S.getFlag(192)?S.getFlag(190):!(_.u("web_watch_cinematics_disabled_by_default")||_.u("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&xcz())};
_.HV=function(S,c,Q){var f={};f.currentUrl=c;f.vis=S.vis!==void 0?S.vis:0;f.splay=!1;c=_.jL();f.autoCaptionsDefaultOn=c.getFlag(66);c.getFlag(141)?c.getFlag(140)?f.autonavState="STATE_OFF":f.autonavState="STATE_ON":f.autonavState="STATE_NONE";f.html5Preference="HTML5_PREF_WANTS";isNaN(_.WY("STS"))||(f.signatureTimestamp=_.WY("STS"));S.autonav&&(f.autoplay=!0,f.autonav=!0);S.mutedAutoplay&&(f.autoplay=!0,f.mutedAutoplay=!0);S.inlinePlayback&&(f.autoplay=!0,f.autonav=!1,f.isInlineUnmutedPlayback=!!S.inlineUnmuted);
f.referer=Q;f.lactMilliseconds=S.lact!==void 0?S.lact.toString():"-1";_.u("enable_unknown_lact_fix_on_html5")&&f.lactMilliseconds==="-1"&&_.i5(new _.Yr("Unknown LACT is set in playbackContext.",{"lact in tempData":S.lact||"undefined",autonav:S.autonav||"undefined"}));S={};c.getFlag(194)&&(S.hasShownAmbientMode=!0);c.getFlag(192)&&(S.hasToggledOffAmbientMode=!0);_.Fyo()&&(S.watchAmbientModeEnabled=!0);f.watchAmbientModeContext=S;return f};
B4x=function(S){var c={},Q=S.pbis||0;Q&&(c.playbackBeginsInSeconds=Q);S.prefetch_reason&&S.prefetch_reason==="hc_pbis"&&(c.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return c};
_.pJ=function(S){S=S===void 0?!1:S;var c=_.jL(),Q="USER_INTERFACE_THEME_LIGHT";c.getFlag(165)?Q="USER_INTERFACE_THEME_DARK":c.getFlag(174)?Q="USER_INTERFACE_THEME_LIGHT":_.DO()&&(Q="USER_INTERFACE_THEME_DARK");return S?Q:IpH()||Q};
_.nJZ=function(){return!_.u("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.DO=function(){return _.nJZ()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.h4=function(){var S=_.jL();return _.nJZ()&&!S.getFlag(165)&&!S.getFlag(174)};
IpH=function(){var S=S===void 0?window.location.href:S;if(_.u("kevlar_disable_theme_param"))return null;var c=_.Bi(S);if(_.bmo(c))return"USER_INTERFACE_THEME_DARK";try{var Q=_.Ep(S).theme;return N4o.get(Q)||null}catch(f){}return null};
_.bmo=function(S){return _.u("enable_dark_theme_only_on_shorts")?!(S==null||!S.startsWith("/shorts/")):!1};
_.ulH=function(S,c,Q,f,U){c=c===void 0?!1:c;Q=Q===void 0?!1:Q;var a=_.WY("INNERTUBE_CONTEXT");if(!a)return _.sH(Error("Tf")),{};a=(0,_.Cn.unsafeClone)(a);_.u("web_no_tracking_params_in_shell_killswitch")||delete a.clickTracking;a.client||(a.client={});var X=a.client;X.clientName==="MWEB"&&X.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(X.clientFormFactor=_.WY("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");X.screenWidthPoints=window.innerWidth;X.screenHeightPoints=window.innerHeight;X.screenPixelDensity=
Math.round(window.devicePixelRatio||1);X.screenDensityFloat=window.devicePixelRatio||1;X.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());X.userInterfaceTheme=_.pJ();if(!c){var z=_.F1T();z&&(X.connectionType=z);_.u("web_log_effective_connection_type")&&(z=IqY())&&(a.client.effectiveConnectionType=z)}var x;if(_.u("web_log_memory_total_kbytes")&&((x=_.QY.navigator)==null?0:x.deviceMemory)){var I;x=(I=_.QY.navigator)==null?void 0:I.deviceMemory;a.client.memoryTotalKbytes=""+x*1E6}c&&f&&!_.u("web_it_context_set_original_url_ks")&&
(X.originalUrl=Kyp(_.QY.location.href,f).toString());_.u("web_gcf_hashes_innertube")&&(z=H8p())&&(I=z.coldConfigData,x=z.coldHashData,z=z.hotHashData,a.client.configInfo=a.client.configInfo||{},I&&(a.client.configInfo.coldConfigData=I),x&&(a.client.configInfo.coldHashData=x),z&&(a.client.configInfo.hotHashData=z));I=_.Ep(_.QY.location.href);!_.u("web_populate_internal_geo_killswitch")&&I.internalcountrycode&&(X.internalGeo=I.internalcountrycode);!_.u("web_populate_client_screen_killswitch")&&U&&(X.clientScreen=
U);X.clientName==="MWEB"||X.clientName==="WEB"?(X.mainAppWebInfo||(X.mainAppWebInfo={}),X.mainAppWebInfo.graftUrl=f||_.QY.location.href,_.u("kevlar_woffle")&&_.q6.instance&&(f=_.q6.instance,X.mainAppWebInfo.pwaInstallabilityStatus=!f.appInstalledEventFired&&f.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),X.mainAppWebInfo.webDisplayMode=NSR(),X.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):X.clientName==="TVHTML5"&&
(!_.u("web_lr_app_quality_killswitch")&&(f=_.WY("LIVING_ROOM_APP_QUALITY"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{appQuality:f})),f=_.WY("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(X.tvAppInfo=Object.assign(X.tvAppInfo||{},{certificationScope:f}));!_.u("web_populate_time_zone_itc_killswitch")&&(f=zzZ())&&(X.timeZone=f);(f=TKT())?X.experimentsToken=f:delete X.experimentsToken;X=wnY();f=_.$cM();f=(0,_.Cn.getValues)(f.tokenJars);a.request=Object.assign({},a.request,{internalExperimentFlags:X,consistencyTokenJars:f});
!_.u("web_prequest_context_killswitch")&&(X=_.WY("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(a.request.externalPrequestContext=X);f=_.jL();X=f.getFlag(58);f=f.get("gsml","");a.user=Object.assign({},a.user);X&&(a.user.enableSafetyMode=X);f&&(a.user.lockedSafetyMode=!0);_.u("warm_op_csn_cleanup")?Q&&(c=_.wN())&&(a.clientScreenNonce=c):!c&&(c=_.wN())&&(a.clientScreenNonce=c);S&&(a.clickTracking={clickTrackingParams:S});if(S=_.rC("yt.mdx.remote.remoteClient_"))a.remoteClient=S;_.TW.getInstance().setLocationOnInnerTubeContext(a);
try{var n=rOo(),b=n.bid;delete n.bid;a.adSignalsInfo={params:[],bid:b};for(var N=_.A(Object.entries(n)),l=N.next();!l.done;l=N.next()){var H=_.A(l.value),q=H.next().value,w=H.next().value;n=q;b=w;S=void 0;(S=a.adSignalsInfo.params)==null||S.push({key:n,value:""+b})}var g,r;if(((g=a.client)==null?void 0:g.clientName)==="TVHTML5"||((r=a.client)==null?void 0:r.clientName)==="TVHTML5_UNPLUGGED"){var E=_.WY("INNERTUBE_CONTEXT");E.adSignalsInfo&&(a.adSignalsInfo.advertisingId=E.adSignalsInfo.advertisingId,
a.adSignalsInfo.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",a.adSignalsInfo.limitAdTracking=E.adSignalsInfo.limitAdTracking)}}catch(v){_.sH(v)}return a};
_.jQz=function(S){var c=new wh(_.WY("ONE_PICK_URL",""));c.urlParamMap_.set("hostId",S);(S=_.WY("GAPI_LOCALE"))&&c.urlParamMap_.set("hl",S);(S=_.WY("SESSION_INDEX"))&&c.urlParamMap_.set("authuser",S);(S=_.WY("DELEGATED_SESSION_ID"))&&c.urlParamMap_.set("groupId",S);return c};
YLY=function(){var S=_.fl(),c=S.resolve(_.s_);S=S.resolve(_.M6);return new lpY(c,S)};
Hmp=function(S){if(window.IntersectionObserver)return new CvM(S,400);throw new TypeError("$f");};
pJz=function(){var S=Hammer.TouchAction,c=S.prototype.preventDefaults;S.prototype.preventDefaults=function(Q){var f=this.actions.indexOf("pan-down")>-1;if(!f)return c.call(this,Q);if(!DcZ){var U=Q.srcEvent;Q=Q.direction;var a;if((a=this.manager)==null?0:a.session.prevented)U.preventDefault();else if(f&&Q&Hammer.DIRECTION_DOWN)return this.preventSrc(U)}}};
h5Y=function(S){if(!S||S.size===0)return Hammer.DIRECTION_ALL;if(S.size===2){if(S.has("up")&&S.has("down"))return Hammer.DIRECTION_VERTICAL;if(S.has("right")&&S.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(S.size===1){if(S.has("up"))return Hammer.DIRECTION_UP;if(S.has("down"))return Hammer.DIRECTION_DOWN;if(S.has("right"))return Hammer.DIRECTION_RIGHT;if(S.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.T4Y=function(){return qLT?Promise.resolve(qLT):new Promise(function(S,c){var Q=self.indexedDB.open("swpushnotificationsdb");Q.onerror=c;Q.onsuccess=function(){var f=Q.result;if(f.objectStoreNames.contains("swpushnotificationsstore"))qLT=f,S(qLT);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.T4Y()};
Q.onupgradeneeded=wJM})};
wJM=function(S){S=S.target.result;S.objectStoreNames.contains("swpushnotificationsstore")&&S.deleteObjectStore("swpushnotificationsstore");S.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
MIM=function(S){var c=sQR(),Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.X1(f,2),_.F(f,S.match(c,{cacheName:"yt-appshell-assets"}),4);case 4:Q=f.yieldResult;_.Pi(f,3);break;case 2:_.Bs(f);case 3:return f.return(Q)}})};
sQR=function(){var S=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?imp.registration.scope:Zmo;S.endsWith("/")&&(S=S.slice(0,-1));return S+"/app_shell_home"};
Gyz=function(S){S.map(function(c){return c.source}).join("|")};
_.WyY=function(S){return _.O(function(c){return c.return(MIM(S))})};
gJZ=function(){var S=window.caches,c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,_.WyY(S),2);c=Q.yieldResult;return Q.return(!!c)})};
LyZ=function(){_.O(function(S){if(S.nextAddress==1){if(e5H)return S.jumpTo(0);e5H=!0;if(_.u("enable_system_health_primes_monitoring"))return _.xr(kyx,3E4),rNM(),S.return();if(!(Math.random()<_.a6("web_system_health_fraction")))return S.jumpTo(0);dcz={heightPixels:screen.height,widthPixels:screen.width};il&&!isNaN(il.jsHeapSizeLimit)&&(dcz.memoryTotalKbytes=String(Math.round(il.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(dcz.devicePixelRatio=window.devicePixelRatio);return _.F(S,vJH(),4)}_.xr(kyx,
3E4);return _.F(S,PvR(),0)})};
vJH=function(){return _.O(function(S){if(S.nextAddress==1)return ZO.intersectionObserverPresent="IntersectionObserver"in window,ZO.serviceWorkerPresent="serviceWorker"in navigator,ZO.webSharePresent="share"in navigator,ZO.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,ZO.cacheStoragePresent="caches"in window,ZO.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,ZO.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
ZO.webkitTemporaryStoragePresent="webkitTemporaryStorage"in GW&&GW.webkitTemporaryStorage&&"queryUsageAndQuota"in GW.webkitTemporaryStorage,ZO.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.F(S,Pxp(),2);ZO.indexedDbPresent=S.yieldResult;ZO.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;ZO.broadcastChannelPresent="BroadcastChannel"in window;ZO.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(ZO.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,ZO.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.IN(S)})};
kyx=function(){var S=9E4+Math.random()*2E3;_.f1()>S||(_.u("enable_system_health_primes_monitoring")?rNM():PvR())};
PvR=function(){var S;return _.O(function(c){if(c.nextAddress==1)return _.F(c,EJR(),2);S=c.yieldResult;_.Te("systemHealthCaptured",S);_.IN(c)})};
rNM=function(){var S={metric:{}},c=tIz();c.networkEvents.length&&(S.metric.networkEvents=VIY(c));_.Te("systemHealthCaptured",S)};
EJR=function(){var S,c,Q,f,U,a,X,z,x,I;return _.O(function(n){switch(n.nextAddress){case 1:S={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)};c=window.screen;_.u("enable_is_extended_monitoring")&&c&&"isExtended"in c&&(S.isExtended=!!c.isExtended);Q={metric:{staticContext:dcz,dynamicContext:S,webMetric:R5Y,webApiSupport:ZO}};
if(f=_.wN())Q.csn=f;il&&(Q.metric.webMetric.currentHeapKbytes=Math.round(il.usedJSHeapSize/1E3));window.matchMedia&&(Q.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,Q.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,Q.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in GW&&typeof GW.getBattery==="function")){n.jumpTo(2);break}return _.F(n,GW.getBattery(),3);case 3:if(U=
n.yieldResult)Q.metric.dynamicContext.chargingStatus=U.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(Q.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(ZO.storageEstimatePresent)return _.F(n,navigator.storage.estimate(),8);if(!ZO.webkitTemporaryStoragePresent){n.jumpTo(5);break}return _.F(n,yNx(),7);case 7:a=n.yieldResult;n.jumpTo(5);break;case 8:a=n.yieldResult;case 5:return Q.metric.dynamicContext.deviceStorageQuotaMbytes=((X=a)==null?0:X.quota)?String(Math.round(a.quota/
1048576/10)*10):"-1",Q.metric.dynamicContext.deviceStorageUsageMbytes=((z=a)==null?0:z.usage)?String(Math.round(a.usage/1048576/10)*10):"-1",x=Q.metric.dynamicContext,_.F(n,gJZ(),9);case 9:return x.hasAppShell=n.yieldResult,I=tIz(),I.networkEvents.length&&(Q.metric.networkEvents=VIY(I)),n.return(Q)}})};
yNx=function(){return new Promise(function(S){var c;ZO.webkitTemporaryStoragePresent&&(c=GW.webkitTemporaryStorage)!=null&&c.queryUsageAndQuota?GW.webkitTemporaryStorage.queryUsageAndQuota(function(Q,f){S({usage:Q,quota:f})}):S(void 0)})};
_.WV=function(S){S&=16777215;S=[(S&16711680)>>16,(S&65280)>>8,S&255];return oJx(S[0],S[1],S[2])};
_.gh=function(S){S=[(S&16711680)>>>16,(S&65280)>>>8,S&255,(S&4278190080)>>>24];var c=_.mcp(S,function(Q){return Q==(Q&255)});
S[3]=(S[3]/255).toFixed(3);if(!c)throw Error("ag`"+S.join(","));return"rgba("+S.join(",")+")"};
_.StR=function(S){return[(S&16711680)>>>16,(S&65280)>>>8,S&255]};
_.cvo=function(S){S=S.map(function(c){c/=255;return c<=.03928?c/12.92:Math.pow((c+.05)/1.05,2.4)});
return S[0]*.2126+S[1]*.7152+S[2]*.0722};
em=function(S,c){S=_.StR(S);return"rgba("+S[0]+", "+S[1]+", "+S[2]+", "+c+")"};
_.QvZ=function(){try{return!!self.localStorage}catch(S){return!1}};
a4Y=function(){if(f4Y())_.i5(Error("bg"));else{var S=document.createElement("iframe");S.style.display="none";var c=c===void 0?window.location.href:c;var Q=_.iH(_.WY("PERSIST_IDENTITY_IFRAME_URL"));c=Q?Q:(new URL(c)).host.indexOf("studio")===0?_.QN(U3z,"persist_identity"):_.QN(Jvc,"persist_identity");_.KEo(S,1,c);S.id="persist_identity";var f;(f=document.body)==null||f.appendChild(S)}};
f4Y=function(){var S=AvY;S||(S=document.querySelector("#persist_identity"));return S};
XCp=function(){var S=!1;try{S=!!window.sessionStorage.getItem("session_logininfo")}catch(c){S=!0}return(_.WY("INNERTUBE_CLIENT_NAME")==="WEB"||_.WY("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&S};
OsZ=function(S,c){if(!XCp())return!1;c||(c=_.WY("LOGIN_INFO"));return c?(S.session_logininfo=c,!0):!1};
x3z=function(S,c){S=S===void 0?!1:S;if((c===void 0||!c)&&zuM!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.gC("LOG_STICKINESS",!1)){c=_.wN();var Q=_.T$(),f={identityStickinessData:{initialState:zuM}};c&&Q&&_.yw(c,Q,f)}if(c=f4Y())if(Q=c.src?(new URL(c.src)).origin:"*",S){var U;(U=c.contentWindow)==null||U.postMessage({action:"clear"},Q)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(S=window.sessionStorage.getItem("session_logininfo"))){var a;(a=c.contentWindow)==null||a.postMessage({loginInfo:S},Q)}};
_.kk=function(S){S=S===void 0?!0:S;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.G_("LOGIN_INFO",""),S&&window.sessionStorage.setItem("from_switch_account","1"),x3z(!0,S)}catch(c){}};
F8x=function(S){S&&(S.startsWith("https://accounts.google.com/AddSession")?_.kk():S.startsWith("https://accounts.google.com/ServiceLogin")?_.kk():S.startsWith("https://myaccount.google.com")&&_.L9(S).getPath().endsWith("/youtubeoptions")&&_.kk())};
rh=function(S,c){F8x(S);if(_.gC("LOGGED_IN",!0)&&XCp()){var Q=Amz(S);Q==null&&(Q={});OsZ(Q,c)&&_.SL(S,Q)}};
BLc=function(){function S(c){for(c=c.target;c&&c.nodeName!=="A";)if(c=c.parentNode,!(c&&c instanceof HTMLElement))return;if(c&&!c.hasAttribute("download")&&c.getAttribute("rel")!=="external"&&c.href)return c.href}
document.addEventListener("mousedown",function(c){c.button!==0&&(c=S(c))&&rh(c)});
document.addEventListener("click",function(c){(c=S(c))&&rh(c)})};
bsz=function(){var S=new I4p;try{if(_.gC("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(z){S.increment(5,!1);return}if(_.WY("LOGIN_INFO")){var c=nOR?nOR:window.location;_.WY("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&a4Y();var Q=Amz(c.href);Q==null&&(Q={});var f=Q.session_logininfo,U=Number(window.sessionStorage.getItem("stickiness_reload")),a=f===_.WY("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
U>=2||a)U>=2?S.increment(2,a):a?S.increment(7,a):window.sessionStorage.getItem("session_logininfo")||(S.increment(3,a),zuM="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.WY("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.WY("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))S.increment(4,a),window.sessionStorage.removeItem("stickiness_reload");
else if(U<2){window.sessionStorage.setItem("stickiness_reload",String(U+1));var X=c.href;X=_.c2(X,"sttick");rh(X,window.sessionStorage.getItem("session_logininfo"));X=_.tS(X,{sttick:U});S.increment(U,a);_.P7(c,X)}}else S.increment(6,!1)}else _.kk(!1)}catch(z){}};
_.dh=function(S,c,Q,f,U){c=c===void 0?{}:c;Q=Q===void 0?"":Q;f=f===void 0?window:f;S=_.V0(S,c);rh(S);Q=_.jS(S+Q,U);_.P7(f.location,Q)};
_.NLz=function(S,c,Q,f,U){U=U===void 0?!1:U;Q&&_.SL(S,Q);Q=_.jS(S);var a=_.nc(Q);S!=a&&_.dC(Error("cg`"+S));S=a;c=c||rN(S).toString(36);try{if(U)return U=S,U=uUr(U),rh(U),_.sy(window,U,c,"attributionsrc")}catch(X){_.eG(X)}rh(S);return _.sy(window,Q,c,f)};
K8T=function(S){if(S.urlEndpoint){if(S=_.Ep(S.urlEndpoint.url),S.adurl)return ci(S.adurl)}else if(S.watchEndpoint)return"//www.youtube.com/watch?v="+S.watchEndpoint.videoId;return null};
$3M=function(S){if(!S||!S.reportingPings)return null;var c={};S.reportingPings.forEach(function(Q){Q.pingType in c?c[Q.pingType].push(Q.url):c[Q.pingType]=[Q.url]});
return{adpings:KGz(c)}};
_.vV=function(){return{isShellLoad:_.gC("IS_SHELL_LOAD",!1)}};
jvR=function(){navigator.serviceWorker.getRegistrations().then(function(S){S.forEach(uyr)})};
uyr=function(S){S&&_.l4Y(Ytp,S.scope)};
_.l4Y=function(S,c){c={scope:c||_.Al("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.Oy(S),c)};
PV=function(S,c,Q,f){if(c&&c.serializedYpcCujLoggingParams){if(Q){var U={};U.transactionErrorType=Q;f&&(U.errorMessage=f);c.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:U}}}Q={};Q.ypcCujContext=c;S=_.zW("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",S,Q);_.xk(_.FU(),S,"FLOW_TYPE_YPC_ACQUISITION")}};
_.Cgz=function(S,c,Q,f){var U={};U.serializedTransactionFlowLoggingParams=c;Q&&(U.errorType=Q);f&&(U.errorMessage=f);_.Te(S,U);_.wQ()};
_.Hso=function(S){S&&_.Cgz("transactionFlowStarted",S)};
_.D3Z=function(S){S&&_.Cgz("transactionFlowCancelled",S)};
_.LJ=function(S,c,Q){c&&_.Cgz("transactionFlowFailed",c,S,Q)};
pCz=function(S){var c=document.querySelector("ytd-app")||document.querySelector("ytmusic-app");c&&(c.inert=S)};
_.E_=function(){this.megabloxUrl_=null};
_.t4=function(S){try{var c=huT==null?void 0:huT.composedPath(S)}catch(Q){c=S.composedPath?S.composedPath():[]}return c&&c.length>0?c:S.composedPath?S.composedPath():[]};
_.VI=function(S){return _.t4(S)[0]};
_.RM=function(S){if(!(S instanceof Element))return null;S=S.classList?Array.from(S.classList):void 0;if(!S)return null;var c=S.indexOf("style-scope");return c>-1&&c+1<S.length?S[c+1]:null};
yI=function(S){if(!(S instanceof HTMLElement))return null;var c=S&&(S.$$||S.polymerController)?S.tagName.toLowerCase():null;return c?c:_.RM(S)};
qtz=function(S,c){return S.replace(/[^a-z]*[^\s]+/g,function(Q){return Q+".style-scope."+c})};
TLT=function(S,c){return c?S.split(",").map(function(Q){return qtz(Q.trim(),c)}).join(", "):S};
_.oM=function(S){var c,Q,f,U;return(U=(f=(Q=(c=S.root)!=null?c:S.shadowRoot)!=null?Q:S.__shady_native_shadowRoot)!=null?f:S.__shady_shadowRoot)!=null?U:S};
mS=function(S){return S instanceof ShadowRoot?ShadowRoot:S instanceof DocumentFragment?DocumentFragment:S instanceof Document?Document:HTMLElement};
wCZ=function(S){var c,Q,f;return(f=(Q=(c=S.parentElement)!=null?c:S.__shady_native_parentElement)!=null?Q:S.__shady_parentElement)!=null?f:null};
svY=function(S){var c,Q,f;return(f=(Q=(c=S.parentNode)!=null?c:S.__shady_native_parentNode)!=null?Q:S.__shady_parentNode)!=null?f:null};
Mrr=function(S){var c,Q,f;return(f=(Q=(c=S.__shady_parentNode)!=null?c:S.__shady_native_parentNode)!=null?Q:S.parentNode)!=null?f:null};
isc=function(S){var c,Q;return(Q=(c=svY(S))!=null?c:S.host)!=null?Q:null};
Zsp=function(S){var c,Q,f;return(f=(Q=(c=S.nextSibling)!=null?c:S.__shady_native_nextSibling)!=null?Q:S.__shady_nextSibling)!=null?f:null};
GKz=function(S){var c,Q,f;return(f=(Q=(c=S.previousSibling)!=null?c:S.__shady_native_previousSibling)!=null?Q:S.__shady_previousSibling)!=null?f:null};
W8p=function(S){var c,Q,f;return(f=(Q=(c=S.nextElementSibling)!=null?c:S.__shady_native_nextElementSibling)!=null?Q:S.__shady_nextElementSibling)!=null?f:null};
gOH=function(S){var c,Q,f;return(f=(Q=(c=S.previousElementSibling)!=null?c:S.__shady_native_previousElementSibling)!=null?Q:S.__shady_previousElementSibling)!=null?f:null};
euY=function(S){var c,Q,f;return new Set([].concat(_.Hs((c=S.children)!=null?c:[]),_.Hs((Q=S.__shady_native_children)!=null?Q:[]),_.Hs((f=S.__shady_children)!=null?f:[])))};
kKM=function(S){var c,Q,f;return new Set([].concat(_.Hs((c=S.childNodes)!=null?c:[]),_.Hs((Q=S.__shady_native_childNodes)!=null?Q:[]),_.Hs((f=S.__shady_childNodes)!=null?f:[])))};
rvo=function(S){if(!S)return null;var c=_.RM(S);if(!c){var Q;return(Q=Node.prototype.getRootNode)==null?void 0:Q.call(S)}c=c.toUpperCase();for(S=wCZ(S);S&&S.tagName!==c;)S=wCZ(S);return S?_.oM(S):null};
d3Y=function(S){for(;S&&!(S instanceof HTMLElement);)S=isc(S);return S};
vOY=function(S){var c=d3Y(S);return S===c?_.RM(S):c?yI(c):null};
PgM=function(S){return(S=d3Y(S))?yI(S):null};
L8Y=function(S){if(S instanceof Comment)return!1;if(S instanceof Text){var c,Q;if(((Q=(c=S.textContent)==null?void 0:c.trim())!=null?Q:"")==="")return!1}return!0};
S$=function(S,c,Q){var f=c(S);for(Q=Q===void 0?PgM(S):Q;f&&(vOY(f)!==Q||!L8Y(f));)S=f,f=c(S);return f};
EOo=function(S,c,Q){if(!c)return null;S=PgM(S);return vOY(c)===S&&L8Y(c)?c:S$(c,Q,S)};
trH=function(S){return S$(S,Mrr,_.RM(S))};
Vrp=function(S){return S$(S,W8p)};
Ruz=function(S){return S$(S,Zsp)};
yvp=function(S){return S$(S,gOH)};
oOM=function(S){return S$(S,GKz)};
m3T=function(S){return EOo(S,S.firstChild||S.__shady_native_firstChild||S.__shady_firstChild||null,Zsp)};
S6x=function(S){var c,Q,f;var U=(f=(Q=(c=S.firstElementChild)!=null?c:S.__shady_native_firstElementChild)!=null?Q:S.__shady_firstElementChild)!=null?f:null;return EOo(S,U,W8p)};
cdM=function(S){var c,Q,f;var U=(f=(Q=(c=S.lastChild)!=null?c:S.__shady_native_lastChild)!=null?Q:S.__shady_lastChild)!=null?f:null;return EOo(S,U,GKz)};
Q5p=function(S){var c,Q,f;var U=(f=(Q=(c=S.lastElementChild)!=null?c:S.__shady_native_lastElementChild)!=null?Q:S.__shady_lastElementChild)!=null?f:null;return EOo(S,U,gOH)};
fjo=function(S){var c=PgM(S);return Array.from(kKM(S)).filter(function(Q){return vOY(Q)===c})};
U0c=function(S){var c=yI(S);return Array.from(euY(S)).filter(function(Q){return _.RM(Q)===c})};
_.c0=function(S,c,Q){if(S instanceof HTMLElement&&_.RM(S)===Q){var f=Array.from(S.classList).indexOf("style-scope");if(f===-1)S.classList.add("style-scope"),S.classList.add(c);else if(!(f+1>=S.classList.length)){f=S.classList[f+1];var U,a;S==null||(U=S.classList)==null||(a=U.replace)==null||a.call(U,f,c)}}if(S instanceof HTMLElement||S instanceof DocumentFragment)for(U=_.A(euY(S)),a=U.next();!a.done;a=U.next())_.c0(a.value,c,Q);return S};
Q_=function(S,c){if(S instanceof HTMLElement&&_.RM(S)===c){var Q=Array.from(S.classList).indexOf("style-scope");Q===-1||Q+1>=S.classList.length||S.classList.remove("style-scope",S.classList[Q+1])}if(S instanceof HTMLElement||S instanceof DocumentFragment){Q=_.A(S.children);for(var f=Q.next();!f.done;f=Q.next())Q_(f.value,c)}return S};
_.Jdz=function(S,c){return mS(S).prototype.appendChild.call(S,c)};
ajR=function(S,c){if(S===c)return!0;S=kKM(S);return Array.from(S).some(function(Q){return ajR(Q,c)})};
_.Ur=function(S,c){if(S instanceof fU)return S;(c==null?0:c.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(S,"ownerDocument")&&Object.defineProperty(S,"ownerDocument",{get:function(){return window.document}});
return new fU(S)};
XuY=function(){var S=fU.prototype,c=[].concat(_.Hs(Adx?[]:["getRootNode"]),["setAttribute","removeAttribute"]);c=_.A(c);for(var Q=c.next(),f={};!Q.done;f={method$jscomp$48:void 0},Q=c.next())f.method$jscomp$48=Q.value,S[f.method$jscomp$48]=function(U){return function(){return this.host[U.method$jscomp$48].apply(this.host,arguments)}}(f)};
zlp=function(){var S=fU.prototype,c=[].concat(_.Hs(Adx?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Hs(OEp?[]:["querySelector","querySelectorAll"]));c=_.A(c);for(var Q=c.next(),f={};!Q.done;f={method$jscomp$49:void 0},Q=c.next())f.method$jscomp$49=Q.value,S[f.method$jscomp$49]=function(U){return function(){return this.root[U.method$jscomp$49].apply(this.root,arguments)}}(f)};
BlZ=function(){var S=fU.prototype,c=[].concat(_.Hs(x0H?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Hs(FrR?[]:["parentNode"]));c=_.A(c);for(var Q=c.next(),f={};!Q.done;f={prop$jscomp$62:void 0},Q=c.next())f.prop$jscomp$62=Q.value,Object.defineProperty(S,f.prop$jscomp$62,{get:function(U){return function(){return this.host[U.prop$jscomp$62]}}(f),
configurable:!0})};
bEZ=function(){var S=fU.prototype,c=["activeElement"].concat(_.Hs(x0H?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Hs(IjZ?[]:["children"]),_.Hs(nFp?[]:["lastChild"]));c=_.A(c);for(var Q=c.next(),f={};!Q.done;f={prop$jscomp$63:void 0},Q=c.next())f.prop$jscomp$63=Q.value,Object.defineProperty(S,f.prop$jscomp$63,{get:function(U){return function(){return this.root[U.prop$jscomp$63]}}(f),
configurable:!0})};
Nlo=function(){for(var S=fU.prototype,c=_.A(["innerHTML","textContent"]),Q=c.next(),f={};!Q.done;f={prop$jscomp$64:void 0},Q=c.next())f.prop$jscomp$64=Q.value,Object.defineProperty(S,f.prop$jscomp$64,{get:function(U){return function(){return this.root[U.prop$jscomp$64]}}(f),
set:function(U){return function(a){this.root[U.prop$jscomp$64]=a}}(f),
configurable:!0})};
Krz=function(S){var c=fU.prototype;S=_.A(Object.entries(S));for(var Q=S.next(),f={};!Q.done;f={fn$jscomp$360:void 0},Q=S.next()){var U=_.A(Q.value);Q=U.next().value;U=U.next().value;f.fn$jscomp$360=U;c[Q]=function(a){return function(){return a.fn$jscomp$360.apply(null,[this.host.node||this.host].concat(_.Hs(arguments)))}}(f)}};
udc=function(){for(var S=fU.prototype,c=_.A(Object.entries($0z)),Q=c.next(),f={};!Q.done;f={fn$jscomp$361:void 0},Q=c.next()){var U=_.A(Q.value);Q=U.next().value;U=U.next().value;f.fn$jscomp$361=U;Object.defineProperty(S,Q,{get:function(a){return function(){return a.fn$jscomp$361.apply(null,[this.host.node||this.host].concat(_.Hs(arguments)))}}(f),
configurable:!0})}};
_.Jq=function(S){return S instanceof j5r||S instanceof Document?S:new j5r(S)};
ljo=function(){for(var S=j5r.prototype,c=_.A("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),Q=c.next(),f={};!Q.done;f={method$jscomp$50:void 0},Q=c.next())f.method$jscomp$50=Q.value,S[f.method$jscomp$50]=function(U){return function(){return HTMLElement.prototype[U.method$jscomp$50].call.apply(HTMLElement.prototype[U.method$jscomp$50],[this.node].concat(_.Hs(arguments)))}}(f)};
Y6Y=function(){for(var S=j5r.prototype,c=_.A("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),Q=c.next(),f={};!Q.done;f={prop$jscomp$65:void 0},Q=c.next())f.prop$jscomp$65=Q.value,Object.defineProperty(S,f.prop$jscomp$65,{get:function(U){return function(){var a;return(a=this.node["__shady_native_"+U.prop$jscomp$65])!=null?a:this.node[U.prop$jscomp$65]}}(f),
configurable:!0})};
_.a1=function(S,c,Q){Q===void 0&&(Q=!S.classList.contains(c));Q?S.classList.add(c):S.classList.remove(c)};
_.Aq=function(S,c,Q){Q===void 0&&(Q=!S.hasAttribute(c));if(c==="class")throw Error("gg");Q?_.Jq(S).setAttribute(c,""):_.Jq(S).removeAttribute(c)};
CFc=function(S){return(S.localName!=="slot"?[]:(0,_.XV)(S).assignedNodes({flatten:!0})).filter(function(c){return c.nodeType===Node.ELEMENT_NODE})};
_.HEY=function(S){return(S=_.Ur(S).querySelector("slot"))&&S.localName==="slot"?CFc(S):[]};
_.Or=function(S,c){window.ShadyCSS&&window.ShadyCSS.styleSubtree(S,c)};
z4=function(S,c){var Q=c.bind(S);return function(f){Q(f,f.detail)}};
_.xn=function(S,c){var Q=D0p.get(S);Q||(Q=new WeakMap,D0p.set(S,Q));if(Q.has(c))return Q.get(c);if(_.u("web_fi_listen_disable_bound_fn_helper")){var f=c.bind(S);S=function(U){f(U,U==null?void 0:U.detail)}}else S=z4(S,c);
Q.set(c,S);return S};
q6M=function(S,c){puY(S);S.created[hlZ].push(c)};
puY=function(S){if(!S.created||!S.created[hlZ]){var c=S.created,Q=c?[c]:[];S.created=function(){for(var f=_.A(Q),U=f.next();!U.done;U=f.next())U.value.apply(this)};
S.created[hlZ]=Q}};
TlZ=function(S){return function(){var c=_.YD.apply(0,arguments);return function(Q,f,U){S.apply(null,_.Hs(c))(Q,f,U)}}};
wuM=function(){return function(){var S=_.YD.apply(0,arguments);return function(c,Q,f){p$x.apply(null,_.Hs(S))(c,Q,f)}}};
_.p=function(S){return wuM()(S)};
_.M=function(){return TlZ(w$z).apply(null,_.Hs(_.YD.apply(0,arguments)))};
_.FV=function(S){return _.u("pbcm_fi_listen_decorators")?s5x(S):TlZ(q9Z)(S)};
s5x=function(S){return function(c,Q){q6M(c,function(){var f=this[Q],U=_.u("web_fi_listen_disable_bound_fn_helper")?function(a){f(a,a.detail)}.bind(this):z4(this,f);
MXp.has(S)?qm(this.hostElement,S,U):this.hostElement.addEventListener(S,U)})}};
_.B0=function(){return TlZ(TaM).apply(null,_.Hs(_.YD.apply(0,arguments)))};
_.Z=function(S){S=S===void 0?{}:S;return TlZ(hpp)(S)};
_.I1=function(S){if(S.hostElement&&S!==S.hostElement){var c=_.YU(S.hostElement);c=S.renderIdom?c:c.shadowRoot}c||(S=S.root,c=S instanceof Node?_.YU(S):null);return c};
_.nU=function(S){return iEH?ZEZ(S):function(c,Q){Object.defineProperty(c,Q,{get:function(){var f;return(f=_.I1(this))==null?void 0:f.querySelector(S)},
enumerable:!0,configurable:!0})}};
ZEZ=function(S){return function(c,Q){Object.defineProperty(c,Q,{get:function(){var f,U=(f=_.Ur(this.hostElement))==null?void 0:f.querySelector(S);if(U)return U;var a;return(a=_.I1(this))==null?void 0:a.querySelector(S)},
enumerable:!0,configurable:!0})}};
_.bw=function(S){return iEH?GTp(S):function(c,Q){Object.defineProperty(c,Q,{get:function(){var f;return(f=_.I1(this))==null?void 0:f.querySelectorAll(S)},
enumerable:!0,configurable:!0})}};
GTp=function(S){return function(c,Q){Object.defineProperty(c,Q,{get:function(){var f,U=(f=_.Ur(this.hostElement))==null?void 0:f.querySelectorAll(S);if(U==null?0:U.length)return U;var a;return(a=_.I1(this))==null?void 0:a.querySelectorAll(S)},
enumerable:!0,configurable:!0})}};
Wro=function(S){return function(c){if(![_.yu,_.W].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("hg");$7r(Object.assign({},typeof S!=="string"?S:{is:S,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(c)}};
_.KU=function(){var S=S===void 0?{}:S;return function(c){if(![oh,_.N_].includes(Object.getPrototypeOf(c.prototype).constructor))throw Error("ig");uqz(Object.assign({},S,{disableInheritanceCheck:!0}))(c)}};
elY=function(S,c){gFZ[S]!=null||(gFZ[S]=new Set);gFZ[S].add(c)};
_.$n=function(){var S=_.B0.apply(null,_.Hs(_.YD.apply(0,arguments)));return function(c,Q){elY(c.is,Q);S(c,Q)}};
lw=function(S,c,Q){if(uw(S)&&!kTz.has(c)){c=c.replace(/^JSC\$[\d]+_/,"");c=c.replace(/\.\d+(\.|$)/g,function(a,X){return".#"+X});
j$[S]!=null||(j$[S]={});var f,U;(f=j$[S])[U=c]!=null||(f[U]=new Set);j$[S][c].has(Q)||(j$[S][c].add(Q),_.Te("polymerPropertyAccessEvent",{componentName:S,propertyName:c,accessType:Q}))}};
rdp=function(){return _.u("polymer_property_access_logging_debug")||_.u("polymer_enable_property_access_logging")};
uw=function(S){if(_.u("polymer_property_access_logging_debug"))return!0;if(!_.u("polymer_enable_property_access_logging"))return!1;d0z||(d0z=Date.now());return(rN(S)+d0z)%100<_.a6("polymer_property_access_logging_percent")};
vFR=function(S,c){return uw(c)&&S.hostElement.loggingStatus?new Proxy(S,{get:function(Q,f,U){if(Q.hostElement.loggingStatus.bypassProxyController)return Q[f];Q.hostElement.loggingStatus.isExternalGet=!0;var a=Q[f];Q.hostElement.loggingStatus.isExternalGet=!1;if(a instanceof Function)return function(){var X=_.YD.apply(0,arguments);try{return Q.hostElement.loggingStatus.currentExternalCall=f,lw(c,f,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),a.apply(this===U?Q:this,X)}finally{Q.hostElement.loggingStatus.currentExternalCall=
void 0}};
lw(c,f,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return a},
set:function(Q,f,U){if(Q.hostElement.loggingStatus.bypassProxyController)return Q[f]=U,!0;Q.hostElement.loggingStatus.isRendererStamper?lw(c,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):Q.hostElement.loggingStatus.isDeclarativeExternal||lw(c,f,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{Q.hostElement.loggingStatus.currentExternalSet=f,Q[f]=U}finally{Q.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):S};
PFo=function(S,c){S&&S.loggingStatus&&!S.loggingStatus.isDeclarativeExternal&&!S.loggingStatus.isExternalGet&&S.loggingStatus.currentExternalSet!==c&&lw(S.tagName.toLowerCase(),c,"PROPERTY_ACCESS_GET_INTERNAL")};
Yn=function(S,c,Q){S&&(Q||S.loggingStatus&&!S.loggingStatus.isInitializing&&!S.loggingStatus.isDefiningPropertyAccessor&&S.loggingStatus.currentExternalSet!==c)&&lw(S.tagName.toLowerCase(),c,"PROPERTY_ACCESS_SET_INTERNAL")};
LrZ=function(){return{_definePropertyAccessor:function(S,c){var Q=this,f=Q.hostElement.loggingStatus;f&&(f.isDefiningPropertyAccessor=!0);var U=Q[S];U!==void 0&&(Q.__data?Q._setPendingProperty(S,U):(Q.__dataProto!=null||(Q.__dataProto={}),Q.__dataProto[S]=U));f&&(f.isDefiningPropertyAccessor=!1);Object.defineProperty(this,S,{get:function(){PFo(Q.hostElement,S);return this.__data[S]},
set:function(a){c||this._setPendingProperty(S,a,!0)&&this._invalidateProperties()}})},
created:function(){var S=this._setPendingProperty.bind(this);this._setPendingProperty=function(c,Q,f){Yn(this.hostElement,c);return S.apply(this,[c,Q,f])}}}};
EFz=function(S){rdp()&&_.p(CU.prototype)(S.prototype,"__templateBindingLoggingBehavior")};
tXx=function(S,c){if(c.resolvedFactories.length!==S.resolvedFactories.length)return!0;c=_.A(c.resolvedFactories.entries());for(var Q=c.next();!Q.done;Q=c.next()){var f=_.A(Q.value);Q=f.next().value;f=f.next().value;if(f.providerClass){if(f.providerClass!==S.resolvedFactories[Q].providerClass)return!0}else if(f.providerValue){if(f.providerValue!==S.resolvedFactories[Q].providerValue)return!0}else if(f.factory!==S.resolvedFactories[Q].factory)return!0}return!1};
VXY=function(S,c){S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,Q.constructor===Array)VXY(Q,c);else{var f=c;f.has(Q)||(Q.inject&&f.add(Q),Q.behaviors&&VXY(Q.behaviors,f))}};
H0=function(S,c){var Q=S[c];S[c]=function(){var f=_.YD.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(Q)return Q.apply(this,f)}};
m0R=function(){_.DI.Class=function(Q,f){Q=RlZ(Q,f);H0(Q.prototype,"created");return Q};
H0(pU.prototype,"_initializeProperties");H0(_.hq.prototype,"_initializeProperties");if(ydz)H0(oFc,"created");else{var S=function(){H0(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))S();else{var c=customElements.define;customElements.define=function(Q,f,U){c.call(customElements,Q,f,U);Q==="tp-yt-iron-list"&&(S(),customElements.define=c)}}}};
c7p=function(S,c){S.prototype.behaviors=S.prototype.behaviors||[];S.prototype.behaviors.unshift(SuM.InjectBehavior);S.prototype.provide=c};
_.wM=function(S){return function(c){if(!S.disableElementRegistration){S.noInjection||c7p(c,S.providers);var Q=c.prototype;Q.__templateHelpers||p$x(q_.prototype)(Q,"__templateHelpers");Q=S.is;QPp||(QPp=Date.now());(rN(Q)+QPp)%100<_.a6("polymer_log_prop_change_observer_percent")&&p$x(T4.prototype)(c.prototype,"__propertyObserverObserver");c.prototype.behaviors=c.prototype.behaviors||[];c.prototype.behaviors.unshift(_.frH.YtHostElementBehavior);EFz(c);Wro({is:S.is,notifyObserversOnUndefined:S.notifyObserversOnUndefined!==
!1,fastInit:S.fastInit,template:S.template,disableEnforceFastDefaultValuesCheck:!0})(c)}}};
_.e=function(S){return _.wM({is:S.is,template:S.template,disableElementRegistration:S.disableElementRegistration,cssBuildOptOut:S.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
arM=function(S,c){if(Uno){S=new S;for(var Q=_.A(Object.getOwnPropertyNames(S)),f=Q.next();!f.done;f=Q.next())f=f.value,c[f]=S[f];for(Q=c;Q&&Q!==Object.prototype;Q=Object.getPrototypeOf(Q)){f=_.A(Object.getOwnPropertyNames(Q));for(var U=f.next();!U.done;U=f.next())U=U.value,S.hasOwnProperty(U)||Object.defineProperty(S,U,J7r(c,U))}}else S.apply(c)};
J7r=function(S,c){return{get:function(){var Q=S[c];return Q instanceof Function?Q.bind(S):Q},
set:function(Q){S[c]=Q}}};
XeY=function(S,c){for(var Q=S._noAccessors,f=_.A(Object.getOwnPropertyNames(S)),U=f.next();!U.done;U=f.next())if(U=U.value,!A7M.has(U))if(Q)c[U]=S[U];else{var a=Object.getOwnPropertyDescriptor(S,U);a&&(a.configurable=!0,Object.defineProperty(c,U,a))}};
O3R=function(S,c,Q){return function(f){if(Q){var U=Q();f.model=U}if(S[c])S[c](f,f.detail)}};
sr=function(S){var c=[];if(typeof S==="string")S.length>0&&c.push.apply(c,_.Hs(S.split(".")));else{S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,typeof Q==="string"?c.push.apply(c,_.Hs(Q.split("."))):c.push(Q)}return c};
zTY=function(S,c){if(c[c.length-1]!=="*"&&c[c.length-1]!=="splices"){for(var Q=0;Q<c.length;Q++){if(!S)return;S=S[c[Q]]}return S}};
xnY=function(S,c){if(S.length>c.length)return!1;for(var Q=0;Q<S.length;Q++)if(S[Q]!==c[Q])return!1;return!0};
BVx=function(S,c,Q){if(c.type==="compute"){var f=c.getter.bind(Q);var U=c.args}else f=function(){return Q[c.method.methodName].apply(Q,_.Hs(_.YD.apply(0,arguments)))},U=c.method.args;
Fhr(S,c.propertyKey,f,U,c.value)};
n9T=function(S,c){if(c.readOnly){var Q=Object.getOwnPropertyDescriptor(S.model,c.propertyKey);Object.defineProperty(S.model,c.propertyKey,{get:Q.get,set:function(){}});
S.model[Irz(c.propertyKey)]=Q.set}};
b3R=function(S,c,Q){if(Q){var f=c.propertyKey,U=c.selector;c=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Hs(c.selectorArgs.map(function(a){return{type:"path",path:a}})));
Fhr(S,f,function(a){var X=_.YD.apply(1,arguments);return U.apply(null,[Q.getState()].concat(_.Hs(X)))},c)}};
KhY=function(S,c,Q){var f=_.nP(c.propertyKey)+"-changed";NVZ(S,function(U){var a={value:U.value,queueProperty:!0};U.path.split(".").length>1&&(a.path=U.path);Q.dispatchEvent(new CustomEvent(f,{detail:a}))},[{type:"wildcard",
path:c.propertyKey}])};
$nz=function(S,c,Q){NVZ(S,function(){Q[c.method.methodName].apply(Q,_.Hs(_.YD.apply(0,arguments)))},c.method.args)};
Irz=function(S){return"_set"+(S.charAt(0).toUpperCase()+S.slice(1))};
ubZ=function(){var S,c=sj(function(Q){S=Q},!1);
return[S,c]};
H3H=function(S){S=S.trim().replace(jPH,",").replace(lrY,"$1");var c=S[0];c==="-"&&(c=S[1]);if(c>="0"&&c<="9")return{type:"literal",value:Number(S)};if(c==="'"||c==='"')return{type:"literal",value:S.slice(1,-1)};if(c=S.match(Yuo)){c=c[1];var Q=CjY[c];if(Q)return{type:Q,path:S.slice(0,-(c.length+1))}}return{type:"path",path:S}};
quY=function(S){var c=S.match(DnR);if(c)return S={methodName:c[1],args:pex},c[2].trim()&&(c=c[2].replace(hTp,"&comma;").split(","),S.args=c.map(H3H)),S};
TVo=function(S,c,Q,f){f=f===void 0?!1:f;c=_.nP(c);var U=K$;U&&(Q=U(Q,c,"attribute",S));M_(S,Q,c,f)};
M_=function(S,c,Q,f){c=wex(c,f===void 0?!1:f);c===void 0?S.removeAttribute(Q):S.setAttribute(Q,c)};
wex=function(S,c){switch(typeof S){case "object":case "function":if(S instanceof Date)return S.toString();if(S){if((c===void 0?0:c)&&!_.u("polymer_reflect_objects_as_boolean_killswitch"))return S?"":void 0;c=window.trustedTypes?window.trustedTypes.isHTML(S)||window.trustedTypes.isScript(S)||window.trustedTypes.isScriptURL(S):void 0;if(c)return S;try{return JSON.stringify(S)}catch(Q){_.i5(Error("Eg`"+S))}}break;case "boolean":return S?"":void 0;default:return S!==null&&S!==void 0?S.toString():void 0}};
sPY=function(S){if(S===void 0)throw Error("Fg");return S};
Whc=function(S,c,Q,f){var U=Mjc(f);if(U.length){f=Q;var a="property";i3c.test(Q)?a="attribute":Q[Q.length-1]==="$"&&(Q=Q.slice(0,-1),a="attribute");var X=Z3Z(U);X&&a==="attribute"&&(Q==="class"&&S.hasAttribute("class")&&(X+=" "+S.getAttribute(Q)),M_(S,X,Q));a==="attribute"&&f==="disable-upgrade$"&&S.setAttribute("disable-upgrade","");S.localName==="input"&&f==="value"&&S.setAttribute("value","");S.removeAttribute(f);a==="property"&&(Q=_.bx(Q));c=sPY(c);G0Y(c,a,Q,U);return!0}return Q.slice(0,3)===
"on-"?(S.removeAttribute(Q),(a=c).events!=null||(a.events=[]),c.events.push({name:Q.slice(3),value:f}),!0):Q==="id"?(c.id=f,!0):!1};
Mjc=function(S){for(var c=[],Q=0,f;(f=g9Z.exec(S))!==null;){f.index>Q&&c.push({type:"literal",value:S.slice(Q,f.index)});var U=f[1][0];Q=!!f[2];f=f[3].trim();if(U==="{")throw Error("Gg");(U=quY(f))?c.push({type:"method",negate:Q,signature:U}):c.push({type:"path",negate:Q,path:f});Q=g9Z.lastIndex}Q&&Q<S.length&&(S=S.substring(Q))&&c.push({type:"literal",value:S});return c};
Z3Z=function(S){for(var c="",Q=0;Q<S.length;Q++){var f=S[Q];f.type==="literal"&&(c+=f.value)}return c};
G0Y=function(S,c,Q,f){S.bindings!=null||(S.bindings=[]);S.bindings.push({kind:c,target:Q,parts:f})};
v9Y=function(S,c,Q){var f=!1;if(S.localName==="template"){f=Q;var U=c.stripWhitespace;U=eTo(S,U===void 0?!1:U);var a=S.content.ownerDocument.createDocumentFragment();U.content=a;a.appendChild(S.content);f&&(f.templateInfo=U);f=!0}else S.localName==="slot"&&(c.hasInsertionPoint=!0);if(S.firstChild&&(U=Q,S.localName!=="script"&&S.localName!=="style")){a=0;for(var X=S.firstChild;X;){var z=X;if(z.localName==="template"){var x=z.getAttribute("is");if((X=x==="dom-if")||x==="dom-repeat"){z.removeAttribute("is");
x=z.ownerDocument.createElement("ps-"+x);z.parentNode.replaceChild(x,z);x.appendChild(z);var I=Array.from(z.attributes);I=_.A(I);for(var n=I.next();!n.done;n=I.next())n=n.value,X?k0Y.has(n.name)&&M_(x,n.value,n.name):r7o.has(n.name)?M_(x,n.value,n.name):dnp.has(n.name),z.removeAttribute(n.name);X=x}else X=z}if(X.nodeType===Node.TEXT_NODE){z=void 0;x=S;for(I=X;((z=I.nextSibling)==null?void 0:z.nodeType)===Node.TEXT_NODE;)n=void 0,(n=I).textContent!=null||(n.textContent=""),I.nextSibling.textContent&&
(I.textContent+=I.nextSibling.textContent),x.removeChild(I.nextSibling);if(c.stripWhitespace&&X.textContent&&!X.textContent.trim()){S.removeChild(X);X=X.nextSibling;continue}}v9Y(X,c,{parentIndex:a,parentInfo:U});X.parentNode&&a++;X=X.nextSibling}}var b;if((b=S.hasAttributes)==null?0:b.call(S)){b=Q=sPY(Q);U=!1;a=Array.from(S.attributes);a=_.A(a);for(z=a.next();!z.done;z=a.next())z=z.value,U=Whc(S,b,z.name,z.value)||U;f=U||f}S.nodeType===Node.TEXT_NODE&&(b=Mjc(S.textContent),b.length&&(S.textContent=
Z3Z(b)||" ",Q=sPY(Q),G0Y(Q,"text","textContent",b),f=!0));Q&&f&&(Q.infoIndex=c.nodeInfoList.push(Q)-1)};
eTo=function(S,c){c={nodeInfoList:[],stripWhitespace:(c===void 0?!1:c)||S.hasAttribute("strip-whitespace")};v9Y(S.content,c);return c};
Pjx=function(S){Object.assign(S,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
E9z=function(S,c,Q){c.signalCache!=null||(c.signalCache={});var f=c.signalCache[Q];if(!f){var U=Q.split(".");f=!Lhz(S,U[0]);if(U.length>1&&f){var a=S.getPathMutationSignal(U);f=function(){var X=Wr(S.owner,function(){return S.getWithPath([U[0]])}),z,x=(z=a())==null?void 0:z.value;
return{rootWasDefined:X!==void 0,value:x}}}else f=function(){var X=S.getWithPath(U);
return{rootWasDefined:X!==void 0,value:X}};
c.signalCache[Q]=f}return f()};
Vjz=function(S,c,Q,f,U){c=c.parts.map(function(X,z){if(X.type==="literal"){Q.partWasDefined!=null||(Q.partWasDefined=[]);var x;(x=Q.partWasDefined)[z]||(x[z]=X.value!==void 0);return X.value}var I;if(X.type==="method"){var n,b=(n=(I=Q.partWasDefined)==null?void 0:I[z])!=null?n:!1;b||(b=X.signature.args.every(function(H){return H.type==="literal"}));
var N=!1,l=!0;I=X.signature.args.map(function(H){if(H.type==="literal")return H.value;if(H.type!=="path")throw Error("Hg`"+H.type);var q=E9z(S,Q,H.path);H=q.value;q=q.rootWasDefined;N||(N=q);l&&(l=q);return H});
b||(b=U===1?l:N);Q.partWasDefined!=null||(Q.partWasDefined={});Q.partWasDefined[z]=b;if(!b)return;I=(z=E9z(S,Q,X.signature.methodName).value)&&typeof z==="function"?z.apply(f,I):void 0}else n=E9z(S,Q,X.path),I=n.value,Q.partWasDefined!=null||(Q.partWasDefined={}),(b=Q.partWasDefined)[z]||(b[z]=I!==void 0||n.rootWasDefined);X.negate&&(I=!I);return I});
if(c.length===1){var a;return((a=Q.partWasDefined)==null?0:a[0])?c[0]:tjx}return c.join("")};
RTo=function(S){return typeof S==="object"&&!!S&&"notifyPath"in S&&"canNotifyPath"in S};
y7Z=function(S){return typeof S==="object"&&!!S&&"notifyPath"in S};
o9Y=function(S){return"polymerController"in S};
mno=function(S,c){c=""+sr(c)[0];if(RTo(S))return S.canNotifyPath(c);if(o9Y(S)&&RTo(S.polymerController))return S.polymerController.canNotifyPath(c);if(y7Z(S)){var Q;return!((Q=S.properties)==null||!Q[c])}if(o9Y(S)&&y7Z(S.polymerController)){var f;return!((f=S.polymerController.properties)==null||!f[c])}return!1};
S4H=function(S,c,Q){RTo(S)||y7Z(S)?S.notifyPath(c,Q):o9Y(S)&&(RTo(S.polymerController)||y7Z(S.polymerController))&&S.polymerController.notifyPath(c,Q)};
Q2Z=function(S,c,Q){if(Q!==tjx){S.kind==="attribute"||S.target!=="textContent"&&(S.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(Q=Q===void 0?"":Q);var f,U=(f=cLr.Polymer)==null?void 0:f.sanitizeDOMValue;U&&(Q=U(Q,S.target,S.kind,c));if(S.kind==="attribute"){S=S.target;if(S==="class"||S==="name"||S==="slot")c=(0,_.XV)(c);M_(c,Q,S)}else if(S=S.target,Q!==c[S]||typeof Q==="object")c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!0,lw(c.localName,S,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
c[S]=Q,c.loggingStatus&&(c.loggingStatus.isDeclarativeExternal=!1)}};
fNY=function(S,c,Q,f){var U=c.parts[0];if(c.parts.length!==1||U.type!=="path"||!mno(Q,c.target))return!1;var a=_.A(U.path.split(".")),X=a.next().value,z=ya(a);if(Lhz(S,X))return!1;f.signalCache!=null||(f.signalCache={});a=f.signalCache[U.path];var x;a=(x=a)==null?void 0:x().value;if((a==null?void 0:a.path)!==void 0){f=sr(a.path);var I=sr(U.path);f=[c.target].concat(_.Hs(f.slice(I.length-1)));S4H(Q,f,U.negate?!a.value:a.value);return!0}var n=iw(S,X);var b=n.getChangeRecordSignal(z),N=!1;a=function(){if(!N){var H=
Wr(S.owner,function(){return n.getWithPath([])});
N||(N=H!==void 0)}return{value:b(),rootWasDefined:N}};
f.signalCache[U.path]=a;f.partWasDefined!=null||(f.partWasDefined={});a=a();(I=f.partWasDefined)[0]||(I[0]=a.rootWasDefined);var l=Wr(S.owner,function(){return n.getWithPath(z)});
f.partWasDefined[0]&&Wr(S.owner,function(){return void Q2Z(c,Q,U.negate?!l:l)});
return!0};
U5c=function(S,c,Q,f,U,a){if(!fNY(S,c,Q,f)){var X=Vjz(S,c,f,U,a);Wr(S.owner,function(){return void Q2Z(c,Q,X)})}};
JLT=function(S,c,Q,f,U,a){Q=_.A(Q);for(var X=Q.next(),z={};!X.done;z={infoIndex:void 0},X=Q.next()){X=X.value;var x=X.bindings;z.infoIndex=X.infoIndex;X=X.parentInfo;if(x){x=_.A(x);for(var I=x.next(),n={};!I.done;n={b$jscomp$252:void 0,bindingCtx$jscomp$4:void 0},I=x.next()){n.b$jscomp$252=I.value;if(z.infoIndex===void 0)throw Error("Ig");n.bindingCtx$jscomp$4={};S.effect(function(b,N){return function(){U&&!U()||U5c(S,b.b$jscomp$252,c[N.infoIndex],b.bindingCtx$jscomp$4,f,a)}}(n,z))}}X&&JLT(S,c,[X],
f,U,a)}};
aNc=function(S,c){S=(c.parentInfo?aNc(S,c.parentInfo):S).firstChild;for(var Q=0;S;S=S.nextSibling)if(c.parentIndex===Q++)return S;throw Error("Jg");};
XMZ=function(S,c,Q,f){S=document.importNode(S.content,!0);S.__noInsertionPoint=!(f==null?0:f.hasInsertionPoint);for(var U=Array(c.length),a={},X=0;X<c.length;X++){var z=c[X],x=aNc(S,z);U[X]=x;z.id&&(a[z.id]=x);if(z.templateInfo){var I=x.parentElement;I&&(I.templateInfo=z.templateInfo,I.parentSignalProxy=Q,I.eventListenerHost=f.eventListenerHost,I.stampingEnabled=f.enabledSignal)}I=void 0;if((I=z.events)==null?0:I.length)for(I=0;I<z.events.length;I++){var n=z.events[I];ALH(f.eventListenerHost,x,n.name,
n.value,f.getModel)}}JLT(Q,U,c,f.thisCtx,f.enabledSignal,f.methodInvocationRequirement);return{root:S,nodes:U,nodesById:a}};
z8Y=function(S,c){S=S();var Q;(Q=O2z.ShadyCSS)==null||Q.prepareTemplate(S,c);c=eTo(S);return{template:S,nodeInfoList:c.nodeInfoList,hasInsertionPoint:c.hasInsertionPoint}};
Bip=function(){x5p=!1;for(var S=ZI.length,c=0;c<S;c++){var Q=ZI[c];if(Q)try{Q()}catch(f){Promise.resolve().then(function(){throw f;})}}ZI.splice(0,S);
Fzp+=S};
Nip=function(S){x5p||(x5p=!0,INp.textContent=(n3Y++).toString());ZI.push(S);return b2Z++};
_.gM=function(S,c,Q){G4++;S=c?new KzH(G4,S,c,Q):new $5p(G4,S);W0.set(G4,S);return G4};
uWp=function(S){(S=W0.get(S))&&S.cancel()};
lNM=function(S,c){S=j2c.get(S);return S?(c=S.get(c))?c:null:null};
_.e$=function(S,c,Q,f){var U=lNM(S,c);if(!U){U=new Y4H;var a=j2c.get(S);a||(a=new Map,j2c.set(S,a));a.set(c,U)}S=Q.bind(S);U.run(S,f,void 0)};
_.CXo=function(S,c){var Q;(Q=lNM(S,c))==null||Q.cancel()};
H2p=function(S){var c;(c=lNM(S,"doRender"))==null||c.flush()};
kn=function(S){var c;return(c=S.hostElement)!=null?c:S};
D5x=function(S){var c=S.indexOf(".");return c===-1?S:S.slice(0,c)};
pMM=function(S,c,Q,f,U,a){a=(U=(f=a?D5x(c):c)?c:null)?S.get(U):S.__data[c];U&&a===void 0&&(a=Q[c]);_.Az(S.hostElement,UIc(f)+"-changed",{value:a,queueProperty:!0,path:U!=null?U:void 0},{bubbles:!1,composed:!1})};
h8R=function(S,c){S.__isReflecting=!0;TVo(S.hostElement,c,S.__data[c]);S.__isReflecting=!1};
q4p=function(S){if(S._onIronRequestResizeNotifications){var c=S._onIronRequestResizeNotifications.bind(S);S._onIronRequestResizeNotifications=function(Q){_.VI(Q)!==S.hostElement&&c(Q)}}S._ariaActiveAttributeChanged&&(S._ariaActiveAttributeChanged=S._ariaActiveAttributeChanged.bind(S.hostElement));
S._activeChanged&&(S._activeChanged=function(Q){S.toggles?M_(S.hostElement,Q?"true":"false",S.ariaActiveAttribute):S.hostElement.removeAttribute(S.ariaActiveAttribute);S._changedButtonState()});
S._asyncClick&&(S._asyncClick=function(){_.gM(function(){S.hostElement.click()},1)});
!S.keyEventTarget||S.keyEventTarget instanceof EventTarget||(S.keyEventTarget=kn(S.keyEventTarget));S._disabledChanged&&(S._disabledChanged=S._disabledChanged.bind(S.hostElement));S._observeItems&&(S._observeItems=function(Q){var f=kn(Q);return _.YU(f).observeNodes(function(U){S._updateItems();S._updateSelected();_.Az(f,"iron-items-changed",U,{bubbles:!1,cancelable:!1})})});
S._updateItems&&S._updateItems===_.rM._updateItems&&(S._updateItems=function(){var Q=_.YU(S.hostElement).queryDistributedElements(S.selectable||"*");Q=Array.prototype.filter.call(Q,S._bindFilterItem);S._setItems(Q)});
S._computeKeyboardClass&&(S._computeKeyboardClass=function(Q){_.a1(S.hostElement,"keyboard-focus",Q)});
S.ensureRipple&&(S.ensureRipple=function(Q){if(S.hasRipple&&!S.hasRipple()){if(!S._createRipple)return;S._ripple=S._createRipple();S._ripple.noink=S.noink;var f=S._rippleContainer||S.hostElement;f&&_.Ur(f).appendChild(S._ripple)}var U;if(Q&&((U=S._ripple)==null?0:U.uiDownAction)){f=_.Ur(S._rippleContainer||S.hostElement);var a;U=(a=Q.composedPath())==null?void 0:a[0];f.contains(U)&&S._ripple.uiDownAction(Q)}});
S._updateMultiselectable&&(S._updateMultiselectable=function(Q){Q?S.hostElement.setAttribute("aria-multiselectable","true"):S.hostElement.removeAttribute("aria-multiselectable")})};
TiY=function(S,c,Q){Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next())arM(f.value.constructor,S);arM(c.constructor,S)};
s2T=function(S,c){S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,Q.type==="signal"){var f=Q.propertyKey;if(c.hasOwnProperty(f)&&c[f]!=null&&Q.attributeType===Object){a:{f=c[f].constructor;for(var U=_.A(wMp),a=U.next();!a.done;a=U.next())if(a=a.value,f===a){f=a;break a}f=Object}Q.attributeType=f}}};
M7z=function(){};
i2o=function(S){var c;return(c=S.hostElement)!=null?c:S};
Z2T=function(){throw Error("Ng");};
G9T=function(S,c){S.constructor.prototype.useSignals=!0;var Q=new S.constructor;TiY(Q,S,c.behaviors);s2T(c.reactiveSchemas,Q);Q={};for(var f=_.A(c.reactiveSchemas),U=f.next();!U.done;U=f.next())U=U.value,U.type==="signal"&&(Q[U.propertyKey]=U.attributeType);var a={copyPropertiesToProto:Z2T,didRegister:!1,typesForSignals:Q},X=["disable-upgrade"].concat(_.Hs(c.observedAttributes)),z=function(x){dM.call(this,S,c,a,x)};
_.C(z,dM);_.Rh.Object.defineProperties(z,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return X}}});
a.copyPropertiesToProto=function(){for(var x=0;x<c.behaviors.length;x++)XeY(c.behaviors[x],z.prototype);XeY(S,z.prototype)};
c.legacyOptimizations||a.copyPropertiesToProto();z.prototype.is=S.is;return z};
Wzz=function(S,c){if(Object.getPrototypeOf(c.prototype).constructor!==_.W)throw Error("Og");c.prototype.is=S.is;return G9T(c.prototype,S)};
g3x=function(S){return S.type==="compute"||S.type==="computeWithMethod"};
e8T=function(S){for(var c=S.reactiveSchemas.filter(g3x),Q=new Map,f=new Map,U=new Map,a=_.A(c),X=a.next();!X.done;X=a.next())X=X.value,Q.set(X.propertyKey,X),f.set(X.propertyKey,[]),U.set(X.propertyKey,0);a=0;c=_.A(c);for(X=c.next();!X.done;X=c.next()){X=X.value;for(var z=_.A(X.type==="computeWithMethod"?X.method.args:X.args),x=z.next();!x.done;x=z.next())x=x.value,x.type!=="literal"&&(x=x.path.split(".")[0],f.has(x)&&(f.get(x).push(X.propertyKey),U.set(X.propertyKey,U.get(X.propertyKey)+1),a++))}X=
[].concat(_.Hs(f.keys())).filter(function(I){return U.get(I)===0});
for(c=[];X.length;)for(z=X.shift(),c.push(Q.get(z)),z=_.A(f.get(z)),x=z.next();!x.done;x=z.next())x=x.value,U.set(x,U.get(x)-1),a--,U.get(x)===0&&X.push(x);Q=S.reactiveSchemas.filter(function(I){return!g3x(I)});
S.reactiveSchemas=[].concat(_.Hs(Q),_.Hs(c))};
k9Z=function(S,c){if(c.properties)for(var Q=_.A(Object.entries(c.properties)),f=Q.next();!f.done;f=Q.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;S.properties[f]=typeof U==="function"?{type:U}:U}c.observers&&S.observers.push.apply(S.observers,_.Hs(c.observers));c.disabledPolySiReactions&&S.disabledPolySiReactions.push.apply(S.disabledPolySiReactions,_.Hs(c.disabledPolySiReactions))};
rLT=function(S,c){for(var Q=c.length-1;Q>=0;Q--){var f=c[Q];Array.isArray(f)?rLT(S,f):S.indexOf(f)<0&&S.unshift(f)}};
d5T=function(S,c){S.reactiveSchemas=S.reactiveSchemas.filter(function(Q){return Q.type==="observe"&&c.includes(Q.method.methodName)||g3x(Q)&&c.includes(Q.propertyKey)?!1:!0})};
PXT=function(S,c){var Q=c.prototype,f,U,a={is:S.is,reactiveSchemas:[],observedAttributes:[],behaviors:[SuM.InjectBehavior,q_.prototype],disableElementRegistration:S.disableElementRegistration,provide:(f=S.providers)!=null?f:[],reactivityMode:S.reactivityMode,signalProperties:(U=Q.signalProperties)!=null?U:[]};"template"in c?a.templateGetter=function(){return c.template}:S.getTemplate&&(a.templateGetter=S.getTemplate);
Q.behaviors&&rLT(a.behaviors,Q.behaviors);v3Z(a,c);return a};
v3Z=function(S,c){for(var Q=c.prototype,f={properties:{},observers:[],disabledPolySiReactions:[]},U=_.A(S.behaviors),a=U.next();!a.done;a=U.next())k9Z(f,a.value);k9Z(f,Q);if(S.signalProperties)for(Q=_.A(S.signalProperties),U=Q.next();!U.done;U=Q.next())delete f.properties[U.value];Q=_.A(Object.entries(f.properties));for(U=Q.next();!U.done;U=Q.next()){a=_.A(U.value);U=a.next().value;a=a.next().value;var X=void 0;if((X=S.signalProperties)==null||!X.includes(U)){X=void 0;var z=S,x=a.type;if(!x)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{x=Reflect.getMetadata("design:type",c,U);for(var I=_.A(Lzr),n=I.next();!n.done;n=I.next())if(n=n.value,x===n){x=n;break a}x=Object}else x=String;a.computed||a.selector||(z.reactiveSchemas.push({type:"signal",propertyKey:U,value:a.value,attributeType:x,readOnly:a.readOnly}),z.observedAttributes.push(_.nP(U)));a.reflectToAttribute&&z.reactiveSchemas.push({type:"reflect",propertyKey:U});if(a.computed){x=quY(a.computed);if(!x)throw Error("Pg");z.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:U,method:x,value:a.value})}a.observer&&z.reactiveSchemas.push({type:"observe",method:{methodName:a.observer,args:[{type:"path",path:U}]}});a.notify&&z.reactiveSchemas.push({type:"notify",propertyKey:U});a.selector&&z.reactiveSchemas.push({type:"redux",propertyKey:U,selector:a.selector,selectorArgs:(X=a.selectorArgs)!=null?X:[]})}}E3z&&e8T(S);c=_.A(f.observers);for(U=c.next();!U.done;U=c.next())Q=S,U=U.value,(a=quY(U))?Q.reactiveSchemas.push({type:"observe",method:a}):console.log('Warning: unable to parse observe declaration: "'+
U+'"');d5T(S,f.disabledPolySiReactions)};
t7p=function(S,c){for(var Q=0;Q<c.length;Q++){var f=c[Q],U=void 0;(U=f).showHideApi!=null||(U.showHideApi={});U=void 0;!!S!==!((U=f.showHideApi)==null||!U.hideTemplateChildren)&&(f.nodeType===Node.TEXT_NODE?S?(f.showHideApi.polymerTextContent=f.textContent,f.textContent=""):(U=void 0,f.textContent=(U=f.showHideApi.polymerTextContent)!=null?U:null):f instanceof Element&&f.localName==="slot"?S?(f.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.XV)((0,_.XV)(f).parentNode).replaceChild(f.showHideApi.polymerReplaced,
f)):(U=f.showHideApi.polymerReplaced)&&(0,_.XV)((0,_.XV)(U).parentNode).replaceChild(f,U):f instanceof HTMLElement&&f.style&&(S?(f.showHideApi.polymerDisplay=f.style.display,f.style.display="none"):f.style.display=f.showHideApi.polymerDisplay));f.showHideApi.hideTemplateChildren=S;f.showHideChildren&&f.showHideChildren(S)}};
R8H=function(){if(!V7p){var S=document.createElement("style");S.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(S);V7p=!0}};
v0=function(){return _.u("disable_hidden_dom_if_using_stamper")||_.u("creator_disable_hidden_dom_if_using_stamper")};
yLZ=function(S,c){var Q=_.P0().getState();return c?S.apply(null,[Q].concat(_.Hs(c))):S(Q)};
SSo=function(){if(o3z)return o3z;var S=_.A(_.ny(0,void 0,"Nl6eIe")),c=S.next().value;S.next();var Q=S.next().value;_.P0().subscribe(function(){m5Y(Q)});
return o3z=c};
m5Y=function(S){_.u("delay_redux_signal_update_killswitch")?S(function(c){return c+1}):cTY||(cTY=!0,Promise.resolve().then(function(){S(function(c){return c+1});
cTY=!1}))};
_.P0=function(){return QSM.getAppStore()};
LU=function(S,c){return QSM.getSelectFn()(S,c)};
_.Er=function(S){QSM.getDispatchFn()(S)};
fYo=function(S,c){var Q={},f;for(f in S)Q[f]=c(S[f],f);return Q};
_.tq=function(S,c){return function(){var Q;return(Q=_.Zf(S))!=null?Q:c}};
_.V_=function(S,c){var Q=Object.assign({},S),f;for(f in c)c.hasOwnProperty(f)&&(Q[f]=_.tq(S[f],c[f]));return Q};
UFo=function(S,c,Q){S instanceof Element&&(Q.debugName||(Q.debugName="<"+S.tagName.toLowerCase()+(S.tagName.includes("-")?">":"."+S.className+">")),_.u("ytwiz_enable_debug_component_props")&&(S.debugProps||(S.debugProps=fYo(c,function(f){return function(){return f()}}))))};
JTM=function(S){var c;if(!(c=R1.traceAllComponents)){var Q;c=(Q=mq)==null?void 0:Q.activeSpan;c=(c==null?void 0:c.name)!=="ytComponent"}return c?Zwz("ytComponent",{},S):S()};
_.y_=function(S,c){var Q=function(f){return JTM(function(U){var a=aYM={};var X;if(((X=Q)==null?0:X.idomCompat)&&f.renderedFromIdom){var z;X=typeof Q.idomCompat==="object"?(z=Q)==null?void 0:z.idomCompat.callbacks:{};X=_.A(ATc(f,X,Q.debugName));z=X.next().value;X.next();X=X.next().value;var x=XXo(S,z);a.privateValue=x;aYM=void 0;UFo(x,z,Q);a={debugName:Q.debugName};U&&a&&Object.assign(U.attributes,a);U=RJH(x);U=Array.isArray(U)?U[0]:U;U[Fp]||(U[Fp]={});U[Fp].updateSignalsFromIdomProps=X;OXY(z,x);return x}X=
fYo(f,ztM);z=XXo(S,X);a.privateValue=z;aYM=void 0;UFo(z,X,Q);a={debugName:Q.debugName};U&&a&&Object.assign(U.attributes,a);OXY(X,z);return z})};
Q.debugName=c===void 0?"":c;return Q};
XXo=function(S,c){S=S(c);return bW(S)};
xFM=function(S,c){S[c]||(S=new _.Yr("IDOM interop setter undefined. Key:",c),_.sH(S))};
ztM=function(S,c){return c==="children"||c==="ref"||typeof S==="function"||S===void 0?S:function(){return _.Zf(S)}};
ATc=function(S,c,Q){var f={},U={},a={},X={},z;for(z in S){X={key$jscomp$894:X.key$jscomp$894};X.key$jscomp$894=z;var x=S[X.key$jscomp$894];if(X.key$jscomp$894==="children"||X.key$jscomp$894==="ref")f[X.key$jscomp$894]=x;else if(typeof x==="function")X.key$jscomp$894 in c||x.length>0?(a[X.key$jscomp$894]=x,f[X.key$jscomp$894]=function(n){return function(){return a[n.key$jscomp$894].apply(a,_.Hs(_.YD.apply(0,arguments)))}}(X)):f[X.key$jscomp$894]=x;
else if(!(S[X.key$jscomp$894]===void 0&&X.key$jscomp$894 in c)){var I=_.A(_.ny(S[X.key$jscomp$894],{debugName:"__cwis:"+Q+":"+X.key$jscomp$894},"WAasgc"));x=I.next().value;I=I.next().value;f[X.key$jscomp$894]=x;U[X.key$jscomp$894]=I}}return[f,U,function(n){var b={},N;for(N in n)b={key$jscomp$895:b.key$jscomp$895,val$jscomp$117:void 0},b.key$jscomp$895=N,b.val$jscomp$117=n[b.key$jscomp$895],b.key$jscomp$895!=="children"&&b.key$jscomp$895!=="ref"&&(typeof b.val$jscomp$117==="function"?b.key$jscomp$895 in
c?a[b.key$jscomp$895]=b.val$jscomp$117:b.val$jscomp$117.length>0&&(a[b.key$jscomp$895]=b.val$jscomp$117,_.i5(new _.Yr("Callback detected that was not set in the idomCompat callbacks map. Key:",b.key$jscomp$895))):b.key$jscomp$895 in c&&b.val$jscomp$117===void 0||(xFM(U,b.key$jscomp$895),jd(function(l){return function(){U[l.key$jscomp$895](l.val$jscomp$117)}}(b))))}]};
IYZ=function(S,c,Q){var f=nsz(S.prototype,FkY,S.prototype.behaviors);f.prototype.is=c;f.prototype.localName=c;Q&&Boz(f,Q);return function(U){U&&(f.prototype.hostElement=U);var a=new f;a.root=a;a.hostElement=U;return a}};
Boz=function(S,c){var Q;Object.defineProperty(S.prototype,"_template",{get:function(){Q===void 0&&(Q=c());return Q},
set:function(f){Q=f},
configurable:!0,enumerable:!0})};
$FY=function(S,c,Q,f){function U(){if(!l){for(var H=new Set,q=_.A(n),w=q.next();!w.done;w=q.next()){w=w.value;for(var g=_.A(Object.getOwnPropertyNames(w)),r=g.next();!r.done;r=g.next()){r=r.value;var E=void 0,v=(E=Object.getOwnPropertyDescriptor(w,r))==null?void 0:E.value;v&&v instanceof Function&&!o1(r)&&(!z[r]||_.u("polymer_forward_method_killswitch"))&&H.add(r)}}q=_.A(Object.entries(Object.getOwnPropertyDescriptors(S.prototype)));for(w=q.next();!w.done;w=q.next())g=_.A(w.value),w=g.next().value,
g=g.next().value,g.value instanceof Function&&!o1(w)&&H.add(w);l=H}return l}
ngo(S,c,f==null?void 0:f.providers);bjp(S.prototype,S,!0);var a=IYZ(S,c,Q),X,z=(X=S.prototype.properties)!=null?X:{},x,I,n=(I=(x=S.prototype.behaviors)==null?void 0:x.flat(Infinity))!=null?I:[];Q=_.A(n);for(X=Q.next();!X.done;X=Q.next())z=Object.assign({},X.value.properties,z);var b=[].concat(_.Hs(bXz),_.Hs(Object.keys(z).map(function(H){return _.nP(H)}))),N=!1,l;
return{ctor:function(H,q){var w=a(H),g,r;H=[].concat(_.Hs((g=f==null?void 0:f.allowedProps)!=null?g:[]),_.Hs((r=f==null?void 0:f.allowedPropsFromBehaviors)!=null?r:[]));w.allowedProps=H.length>0?H:void 0;g={};r=_.A(b);for(H=r.next();!H.done;H=r.next())H=H.value,g[H]=_.bx(H);w.__dataAttributes=g;var E=w.ready.bind(w);w.ready=function(){q.beforeReady();E();if(uw(c)&&!N){var v=w.__templateInfo;if(v==null?0:v.hostProps){v=_.A(Object.keys(v.hostProps));for(var t=v.next();!t.done;t=v.next())lw(c,t.value,
"PROPERTY_ACCESS_GET_INTERNAL")}N=!0}};
w._overrideLegacyUndefined=!0;return w},
props:z,observedAttributes:b,getInitialMethods:U,getPropsToForwardBeforeRegister:function(){for(var H=[],q=new Set,w=_.A(Object.keys(z)),g=w.next();!g.done;g=w.next())g=g.value,H.push([g,z[g].readOnly]),q.add(g);w=U();g=_.A(Object.keys(Object.getOwnPropertyDescriptors(S.prototype)));for(var r=g.next();!r.done;r=g.next())r=r.value,!NoH(r)||w.has(r)||q.has(r)||(H.push([r,!1]),q.add(r));q=_.A(KkZ);for(w=q.next();!w.done;w=q.next())H.push([w.value,!0]);return H},
getPropsToForwardBeforeReady:function(H){for(var q=[],w=_.A(Object.entries(H)),g=w.next();!g.done;g=w.next()){var r=_.A(g.value);g=r.next().value;r=r.next().value;if(NoH(g)&&!(r instanceof Function)&&(q.push([g,!1]),uw(c))){var E=r=void 0;(E=(r=H)._createPropertyAccessor)==null||E.call(r,g)}}return q},
shouldForwardProp:NoH,shouldLog:uw}};
ngo=function(S,c,Q){c7p(S,Q);S.prototype.behaviors.unshift(uvR);if(rdp()){if(uw(c)){var f;(f=S.prototype).behaviors!=null||(f.behaviors=[]);S.prototype.behaviors.unshift(LrZ())}EFz(S)}_.p(q_.prototype)(S.prototype,"__templateHelpers")};
o1=function(S){return jSc.has(S)||S.startsWith("__compute__")};
NoH=function(S){return!o1(S)&&!S.startsWith("_")&&!S.endsWith("_")};
DFM=function(S,c){function Q(){var N=x();N=_.A(N);for(var l=N.next();!l.done;l=N.next()){var H=_.A(l.value);l=H.next().value;H=H.next().value;lYo(b.prototype,l,H)}f=!0}
var f=!1,U=S.ctor,a=S.getInitialMethods,X=S.observedAttributes,z=S.getPropsToForwardBeforeReady,x=S.getPropsToForwardBeforeRegister,I=S.shouldForwardProp,n=S.shouldLog,b=function(){var N=HTMLElement.call(this)||this;N.didForwardDynamicProps=!1;N.loggingStatus={};f||Q();N.inst=U(N,{beforeReady:function(){N.didForwardDynamicProps||(N.forwardDynamicProps(),N.didForwardDynamicProps=!0)}});
N.controllerProxy=vFR(N.inst,c);N.forwardMethods();return N};
_.C(b,HTMLElement);b.prototype.forwardMethods=function(){for(var N=this,l=_.A(this.inst.getExtraMethodsToForward()),H=l.next(),q={};!H.done;q={method$jscomp$60:void 0},H=l.next()){var w=_.A(H.value);H=w.next().value;w=w.next().value;q.method$jscomp$60=w;this[H]=function(g){return function(){return g.method$jscomp$60.call.apply(g.method$jscomp$60,[N.inst].concat(_.Hs(_.YD.apply(0,arguments))))}}(q)}l=_.A(a());
for(q=l.next();!q.done;q=l.next())q=q.value,I(q)&&YSz(this,q),n(c)&&!o1(q)&&Cbz(this.inst,q)};
b.prototype.forwardDynamicProps=function(){var N=z(this.inst);N=_.A(N);for(var l=N.next();!l.done;l=N.next()){var H=_.A(l.value);l=H.next().value;H=H.next().value;lYo(this,l,H);n(c)&&!o1(l)&&HXY(this.inst,l)}};
b.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
b.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
b.prototype.attributeChangedCallback=function(N,l,H){this.inst.attributeChangedCallbackWrapper(N,l,H)};
_.Rh.Object.defineProperties(b.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return c}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.Rh.Object.defineProperties(b,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return X}}});
customElements.define(c,b)};
lYo=function(S,c,Q){S.hasOwnProperty(c)||Object.defineProperty(S,c,{get:function(){var f,U=((f=S.is)!=null?f:S.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||lw(U,c,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,f=this.polymerController[c],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,f},
set:function(f){if(!Q){var U,a=((U=S.is)!=null?U:S.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||lw(a,c,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=c,this.loggingStatus.bypassProxyController=!0,this.polymerController[c]!==f&&(U={},this.polymerController.setProperties((U[c]=f,U)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
YSz=function(S,c,Q){var f=S.polymerController;S[c]=function(){var U=_.YD.apply(0,arguments);S.loggingStatus.currentExternalCall=c;S.loggingStatus.bypassProxyController=!0;var a,X=((a=S.is)!=null?a:S.tagName).toLowerCase();lw(X,c,"PROPERTY_ACCESS_CALL_EXTERNAL");var z;a=(z=Q!=null?Q:f[c])==null?void 0:z.call.apply(z,[f].concat(_.Hs(U)));S.loggingStatus.currentExternalCall=void 0;S.loggingStatus.bypassProxyController=!1;return a}};
Cbz=function(S,c){var Q=S.hostElement,f=S[c];S[c]=function(){var U=_.YD.apply(0,arguments);if(Q.loggingStatus.currentExternalCall!==c){var a,X=((a=Q.is)!=null?a:Q.tagName).toLowerCase();lw(X,c,"PROPERTY_ACCESS_CALL_INTERNAL")}return f==null?void 0:f.apply(S,U)}};
HXY=function(S,c){var Q=Object.getOwnPropertyDescriptor(S,c);Q&&!Q.get&&Object.defineProperty(S,c,{get:function(){PFo(S.hostElement,c);return Q.value},
set:function(f){Yn(S.hostElement,c);Q.value=f}})};
pXp=function(S){return _.u("poly_si_dom_repeat_detached_fix_killswitch")||S.tagName!=="PS-DOM-REPEAT"?S.tagName==="DOM-REPEAT":!0};
qST=function(S,c){var Q=htZ(S);S instanceof Element&&Q.unshift(S);S=_.A(Q.filter(pXp));for(var f=S.next();!f.done;f=S.next()){var U=void 0;f=_.A((U=f.value.__instances)!=null?U:[]);for(U=f.next();!U.done;U=f.next())if(U=U.value,U.root){U=Array.from(U.root.children);U=_.A(U);for(var a=U.next();!a.done;a=U.next())Q.push.apply(Q,_.Hs(qST(a.value,c)))}}return Q.filter(function(X){return X.usePatchedLifecycles&&X.lifecycleIsConnected===c})};
htZ=function(S){var c=null;S instanceof Element?c=Element.prototype.querySelectorAll:S instanceof DocumentFragment&&(c=DocumentFragment.prototype.querySelectorAll);return c?Array.from(c.call(S,"*")):[]};
mv=function(S){Ix(function(){for(var c=_.A(qST(S,!1)),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;Q.lifecycleIsConnected=!0;try{var f=void 0,U=void 0,a=void 0,X=void 0;(f=(X=Q.polymerController)!=null?X:Q)==null||(a=(U=f).connectedCallback)==null||a.call(U)}catch(z){_.sH(z)}}})};
Sw=function(S){Ix(function(){for(var c=_.A(qST(S,!0)),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;Q.lifecycleIsConnected=!1;try{var f=void 0,U=void 0,a=void 0,X=void 0;(f=(X=Q.polymerController)!=null?X:Q)==null||(a=(U=f).disconnectedCallback)==null||a.call(U)}catch(z){_.sH(z)}}})};
GmY=function(){if(!ToZ){ToZ=!0;var S=[Node];cI&&S.push(cI.Wrapper);var c=Node.prototype.insertBefore,Q=Node.prototype.removeChild;S=_.A(S);for(var f=S.next(),U={};!f.done;U={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},f=S.next())f=f.value,U.nativeInsertBefore=f.prototype.insertBefore,f.prototype.insertBefore=function(X){return function(z,x){if(z instanceof DocumentFragment){var I=Array.from(z.children);z=X.nativeInsertBefore.call(this,z,x);
if(this.isConnected&&X.nativeInsertBefore===c)for(x=_.A(I),I=x.next();!I.done;I=x.next())mv(I.value);return z}I=z instanceof Element&&z.isConnected;x=X.nativeInsertBefore.call(this,z,x);I&&Sw(z);this.isConnected&&mv(z);return x}}(U),U.nativeAppendChild=f.prototype.appendChild,f.prototype.appendChild=function(X){return function(z){if(z instanceof DocumentFragment){var x=Array.from(z.children);
z=X.nativeAppendChild.call(this,z);if(this.isConnected){x=_.A(x);for(var I=x.next();!I.done;I=x.next())mv(I.value)}return z}x=z instanceof Element&&z.isConnected;I=X.nativeAppendChild.call(this,z);x&&Sw(z);this.isConnected&&mv(z);return I}}(U),U.nativeRemoveChild=f.prototype.removeChild,f.prototype.removeChild=function(X){return function(z){var x=z instanceof Element&&z.isConnected,I=X.nativeRemoveChild.call(this,z);
x&&Q===X.nativeRemoveChild&&Sw(z);return I}}(U),U.nativeReplaceChild=f.prototype.replaceChild,f.prototype.replaceChild=function(X){return function(z,x){if(z instanceof DocumentFragment){var I=Array.from(z.children);
z=X.nativeReplaceChild.call(this,z,x);if(this.isConnected)for(Sw(x),x=_.A(I),I=x.next();!I.done;I=x.next())mv(I.value);return z}I=z instanceof Element&&z.isConnected;var n=this.isConnected,b=X.nativeReplaceChild.call(this,z,x);n&&Sw(x);I&&Sw(z);n&&mv(z);return b}}(U);
S=[Element];cI&&S.push(cI.Wrapper);S=_.A(S);f=S.next();for(U={};!f.done;U={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},f=S.next())f=f.value,f.prototype.before=wXR(f.prototype.before),f.prototype.after=wXR(f.prototype.after),U.nativeReplaceWith=f.prototype.replaceWith,f.prototype.replaceWith=function(X){return function(){var z=_.YD.apply(0,arguments),x=_.A(sST(z)),I=x.next().value,
n=x.next().value;x=this.isConnected;X.nativeReplaceWith.apply(this,z);z=_.A(n);for(n=z.next();!n.done;n=z.next())Sw(n.value);if(x)for(Sw(this),I=_.A(I),x=I.next();!x.done;x=I.next())x=x.value,x instanceof Element&&mv(x)}}(U),U.nativeRemove=f.prototype.remove,f.prototype.remove=function(X){return function(){var z=this.isConnected;
X.nativeRemove.call(this);z&&Sw(this)}}(U),U.nativeInsertAdjacentElement=f.prototype.insertAdjacentElement,f.prototype.insertAdjacentElement=function(X){return function(z,x){var I=x.isConnected;
z=X.nativeInsertAdjacentElement.call(this,z,x);I&&Sw(x);z.isConnected&&mv(z);return z}}(U),U.nativeSetAttribute=f.prototype.setAttribute,f.prototype.setAttribute=function(X){return function(z,x){var I=M4p(this);
if(!I.usePatchedLifecycles)return X.nativeSetAttribute.call(this,z,x);var n=this.getAttribute(z);X.nativeSetAttribute.call(this,z,x);x=this.getAttribute(z);iXp(I,z,n,x)}}(U),U.nativeRemoveAttribute=f.prototype.removeAttribute,f.prototype.removeAttribute=function(X){return function(z){var x=M4p(this);
if(!x.usePatchedLifecycles)return X.nativeRemoveAttribute.call(this,z);var I=this.getAttribute(z);X.nativeRemoveAttribute.call(this,z);I!==null&&iXp(x,z,I,null)}}(U),U.nativeToggleAttribute=f.prototype.toggleAttribute,f.prototype.toggleAttribute=function(X){return function(z,x){var I=M4p(this);
if(!this.usePatchedLifecycles)return X.nativeToggleAttribute.call(this,z,x);var n=this.getAttribute(z),b=n!==null;x=X.nativeToggleAttribute.call(this,z,x);x!==b&&iXp(I,z,n,x?"":null);return x}}(U);
S=[Document,DocumentFragment,Element,ShadowRoot];cI&&S.push(cI.Wrapper);S=_.A(S);for(U=S.next();!U.done;U=S.next())U=U.value,U.prototype.prepend=wXR(U.prototype.prepend),U.prototype.append=wXR(U.prototype.append);(cI==null?void 0:cI.noPatch)===!0&&ZXo();document.readyState==="complete"?mv(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&mv(document.body)});
var a=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");a&&a.get&&a.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:a.enumerable,configurable:!0,get:a.get,set:function(X){X||Sw(this);a.set.call(this,X);return X}})}};
wXR=function(S){return function(){var c=_.YD.apply(0,arguments),Q=_.A(sST(c)),f=Q.next().value;Q=Q.next().value;S.apply(this,c);c=_.A(Q);for(Q=c.next();!Q.done;Q=c.next())Sw(Q.value);if(this.isConnected)for(f=_.A(f),c=f.next();!c.done;c=f.next())c=c.value,c instanceof Element&&mv(c)}};
ZXo=function(){for(var S=_.A(Wkz),c=S.next();!c.done;c=S.next()){c=c.value.prototype;for(var Q=_.A(ggZ),f=Q.next();!f.done;f=Q.next()){f=f.value;var U=Object.getOwnPropertyDescriptor(c,f);U&&Object.defineProperty(c,"__shady_native_"+f,U)}}};
iXp=function(S,c,Q,f){var U,a;if((U=S.polymerController)==null?0:(a=U.observedAttributes)==null?0:a.includes(c))if(S=S.polymerController,S.attributeChangedCallbackWrapper)S.attributeChangedCallbackWrapper.call(S,c,Q,f);else{var X;(X=S.attributeChangedCallback)==null||X.call(S,c,Q,f)}};
sST=function(S){var c=[],Q=[];S=_.A(S);for(var f=S.next();!f.done;f=S.next())f=f.value,f instanceof Element&&f.isConnected&&Q.push(f),f instanceof DocumentFragment?c.push.apply(c,_.Hs(Array.from(f.children))):c.push(f);return[c,Q]};
M4p=function(S){return!(S instanceof Element)&&S.node instanceof Element?S.node:S};
etY=function(S,c){var Q=c?["children"].concat(_.Hs(c)):["children"];c=[];Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next()){var U=f.value;if(S.hasOwnProperty(U)){f=S[U];f=typeof f==="function"?f():f;f=bW(Array.isArray(f)?f:[f]).flat();if(U!=="children"){U=UIc(U);for(var a=_.A(f),X=a.next();!X.done;X=a.next())X=X.value,X instanceof Element&&X.setAttribute("slot",U)}c.push(f)}}c.length===0?S=[]:(S=bW(_.B("div",null,c)),S=Array.from(S.childNodes));return S};
rTY=function(S,c,Q){var f={};_.Go(function(){var U={},a;for(a in c)if(c.hasOwnProperty(a)){var X=void 0,z=void 0;if(!(((X=Q.slotProps)==null?0:X.includes(a))||a==="children"||((z=Q.callbackProps)==null?0:z.includes(a))||a==="ref")&&(X=_.Zf(c[a]),f[a]!==X)){f[a]=X;z=void 0;var x=(z=S.hostElement)!=null?z:S;kmY.has(a)&&(x[a]=X);U[a]=X}}jd(function(){if(S.setProperties)S.setProperties(U);else for(var I=_.A(Object.entries(U)),n=I.next();!n.done;n=I.next()){var b=_.A(n.value);n=b.next().value;b=b.next().value;
S[n]=b}})})};
vgT=function(S,c,Q,f){var U=etY(Q,f.slotProps),a=(0,_.XV)(S);U=_.A(U);for(var X=U.next();!X.done;X=U.next())a.appendChild(X.value);rTY(c,Q,f);f=_.A(f.callbackProps||[]);U=f.next();for(a={};!U.done;a={kebabEventName:void 0,eventListener:void 0},U=f.next())X=U=U.value,String(U).substring(0,2)==="on"&&Q[X]?(a.kebabEventName=UIc(String(U).substring(2)),a.eventListener=Q[X],S.addEventListener(a.kebabEventName,a.eventListener),_.wX(function(n){return function(){S.removeEventListener(n.kebabEventName,n.eventListener)}}(a))):
c[X]=Q[X];
if(Q.ref){Q=_.A(dFY(Q.ref));var z=Q.next().value,x=Q.next().value,I=c.attached.bind(c);c.attached=function(){z(S);I()};
_.wX(function(){x()})}};
dFY=function(S){if(typeof S==="function"){var c;return[function(Q){c=S(Q)},
function(){var Q;(Q=c)==null||Q()}]}if(!S.onRender||!S.onUnmount)throw Error("Tg");
return[S.onRender,S.onUnmount]};
t4R=function(S,c,Q,f,U){f=f===void 0?{}:f;var a=Pbx,X=!1;a?(X=!0,Pbx=void 0):(LkH=c,a=document.createElement(c),LkH=void 0);var z=a;z.usePatchedLifecycles=!0;z.lifecycleIsConnected=!1;a.loggingStatus={};var x=Egz(S,c,a,f,U);_.wX(function(){z.lifecycleIsConnected&&(z.lifecycleIsConnected=!1,x.disconnectedCallback())});
X||vgT(a,x,Q,f);return a};
Egz=function(S,c,Q,f,U){U=U===void 0?$FY:U;V4r[c]!=null||(V4r[c]=U(S,c,f==null?void 0:f.getTemplate,f));var a=V4r[c],X=a.ctor;U=a.getInitialMethods;var z=a.getPropsToForwardBeforeReady;S=a.getPropsToForwardBeforeRegister;f=a.shouldForwardProp;var x=a.observedAttributes,I=a.shouldLog,n=X(Q,{beforeReady:function(){var b=n;b._takeAttributes?b._takeAttributes():b.setPropertiesFromInitialAttributeValues&&b.setPropertiesFromInitialAttributeValues();b=_.A(z(Q.polymerController));for(var N=b.next();!N.done;N=
b.next()){var l=_.A(N.value);N=l.next().value;l=l.next().value;lYo(Q,N,l);I(c)&&!o1(N)&&HXY(Q.polymerController,N)}Q.polymerController=vFR(n,c)}});
Q.polymerController=n;Q.polymerController.observedAttributes=x;a=_.A(n.getExtraMethodsToForward());for(X=a.next();!X.done;X=a.next())x=_.A(X.value),X=x.next().value,x=x.next().value,YSz(Q,X,x);U=_.A(U());for(a=U.next();!a.done;a=U.next())a=a.value,f(a)&&YSz(Q,a),I(c)&&!o1(a)&&Cbz(n,a);S=_.A(S());for(f=S.next();!f.done;f=S.next())U=_.A(f.value),f=U.next().value,U=U.next().value,lYo(Q,f,U);return n};
yTY=function(S,c){return QX===c?(S.isInert=!0,QX="",!0):Rto===c?(S.isInert=!0,Rto="",!0):!1};
ogY=function(S){var c=fv;fv=S;return c};
S0T=function(S){if(UX.has(S))Rto=S;else if(J2.has(S)&&fv&&mFp(fv)===S){var c;(c=fv)._numRenders!=null||(c._numRenders=0);fv._numRenders++;if(fv._numRenders>1)throw Error("Ug");return fv}};
c6c=function(S){UX.has(mFp(S))?Rto=mFp(S):J2.has(mFp(S))&&fv!==S&&(S._isInert=!0)};
mFp=function(S){var c;return(c=S==null?void 0:S.tagName.toLowerCase())!=null?c:""};
QmR=function(S,c){if(S.componentType===Df)throw Error("Vg");J2.add(c);var Q=function(){var f=HTMLElement.call(this)||this;f.is=c;if(LkH===c)return f.isInert=!0,f;f.createElement();return f};
_.C(Q,HTMLElement);Q.prototype.createElement=function(){if(!this.isInert){Pbx=this;var f=_.A(_.KZT(function(){return _.B(S,null)})).next().value;
Pbx=void 0;Pjx(this);return f}};
customElements.define(c,Q)};
UdH=function(S,c,Q,f,U){S.prototype.is=c;(f==null?0:f.useSink)?fnY(S,c,Q,f,U):(Q=$FY(S,c,Q,f),DFM(Q,c));return S};
fnY=function(S,c,Q,f,U){GmY();var a=_.y_(function(X){return t4R(S,c,X,Object.assign({},f,{getTemplate:Q}),U)},"a");
QmR(a,c);return a};
anr=function(S){return!J6p.has(S)};
Oaz=function(S,c,Q,f){function U(){if(!b){for(var N=new Set(A6Y),l=_.A(a.behaviors),H=l.next();!H.done;H=l.next()){H=H.value;for(var q=_.A(Object.getOwnPropertyNames(H)),w=q.next();!w.done;w=q.next()){w=w.value;var g=void 0,r=(g=Object.getOwnPropertyDescriptor(H,w))==null?void 0:g.value;r&&r instanceof Function&&(!I[w]||_.u("polymer_forward_method_killswitch"))&&N.add(w)}}l=_.A(Object.entries(Object.getOwnPropertyDescriptors(S.prototype)));for(H=l.next();!H.done;H=l.next())q=_.A(H.value),H=q.next().value,
q=q.next().value,q.value instanceof Function&&N.add(H);b=N}return b}
var a=PXT({is:c,disableElementRegistration:!1,getTemplate:Q,providers:f==null?void 0:f.providers,reactivityMode:f==null?void 0:f.reactivityMode},S);if((f==null?0:f.allowedProps)||(f==null?0:f.allowedPropsFromBehaviors)){var X,z;a.allowedProps=[].concat(_.Hs((X=f.allowedProps)!=null?X:[]),_.Hs((z=f.allowedPropsFromBehaviors)!=null?z:[]))}var x=Wzz(a,S);c=x.observedAttributes;var I={};Q=_.A(a.reactiveSchemas);for(f=Q.next();!f.done;f=Q.next())if(f=f.value,f.type==="signal")I[f.propertyKey]={readOnly:f.readOnly},
f.readOnly&&(I[Irz(f.propertyKey)]={readOnly:!0});else if(f.type==="compute"||f.type==="computeWithMethod"||f.type==="redux")I[f.propertyKey]={readOnly:!0};var n=a.reactiveSchemas.length,b;return{ctor:function(N,l){N=new x(N);N.beforeReady=l.beforeReady;return N},
props:I,observedAttributes:c,getInitialMethods:U,getPropsToForwardBeforeRegister:function(){for(var N=[],l=new Set,H=_.A(Xyx),q=H.next();!q.done;q=H.next())q=q.value,N.push([q,q!=="observers"&&q!=="properties"]),l.add(q);H=_.A(Object.keys(I));for(q=H.next();!q.done;q=H.next())q=q.value,N.push([q,I[q].readOnly]),l.add(q);H=U();q=_.A(Object.keys(Object.getOwnPropertyDescriptors(S.prototype)));for(var w=q.next();!w.done;w=q.next())w=w.value,!anr(w)||H.has(w)||l.has(w)||(N.push([w,!1]),l.add(w));N.push(["allowedProps",
!0]);return N},
getPropsToForwardBeforeReady:function(N){var l=[];N=_.A(Object.keys(N));for(var H=N.next();!H.done;H=N.next()){H=H.value;var q=U();anr(H)&&!q.has(H)&&l.push([H,!1])}N=_.A(a.reactiveSchemas.slice(n));for(H=N.next();!H.done;H=N.next())H=H.value,H.type!=="compute"&&H.type!=="computeWithMethod"&&H.type!=="redux"&&H.type!=="signal"||l.push([H.propertyKey,H.type==="signal"?H.readOnly:!0]);return l},
shouldForwardProp:anr,shouldLog:uw}};
_.k=function(S,c,Q,f){var U,a,X=(a=(U=f)==null?void 0:U.mode)!=null?a:0;f!=null||(f={});var z;(z=f).reactivityMode!=null||(z.reactivityMode=0);X===1&&_.XJ("creator_poly_si_disable_list").includes(c)&&(X=2);return X===1?UdH(S,c,Q,Object.assign({},f,{useSink:!0}),Oaz):UdH(S,c,Q,Object.assign({},f,{useSink:X===2}))};
_.aW=function(){return function(S,c,Q,f){var U,a,X=(a=(U=f)==null?void 0:U.mode)!=null?a:2;f!=null||(f={});var z;(z=f).reactivityMode!=null||(z.reactivityMode=0);if(X===0)throw Error("Wg`"+X);return fnY(S,c,Q,f,X===1?Oaz:void 0)}};
_.A2=function(S){return _.u("creator_poly_si_killswitch")?!1:_.u("force_all_poly_si_batches")&&(S==="poly_si_all_on_test_check"||S==="creator_poly_si_batch_050"?0:S)||document.documentElement.hasAttribute("use-signals")?!0:!S||_.u(S+"_holdback_enabled")&&_.u("kevlar_polysi_holdback")?!1:_.u(S)};
XB=function(S){return S?S.icon?S.icon.iconType.toLowerCase():S.customThumbnail?"member":"":""};
zHZ=function(S){if(!S)return"";S=_.A(S);for(var c=S.next();!c.done;c=S.next())if((c=c.value)&&c.liveChatAuthorBadgeRenderer&&(c=XB(c.liveChatAuthorBadgeRenderer))&&c!=="verified")return c;return""};
xdo=function(S,c){if(!S)return null;var Q;return((Q=S.find(function(f){return f&&f.liveChatAuthorBadgeRenderer?XB(f.liveChatAuthorBadgeRenderer)===c:!1}))==null?void 0:Q.liveChatAuthorBadgeRenderer)||null};
_.N$T=function(S){var c=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;S=FFr(S);c=FFr(c);var Q=B$M(S.hex);c=B$M(c.hex);var f=c[0]/255;var U=c[1]/255,a=c[2]/255,X=Math.max(f,U,a),z=Math.min(f,U,a),x=0,I=0,n=.5*(X+z);X!=z&&(X==f?x=60*(U-a)/(X-z):X==U?x=60*(a-f)/(X-z)+120:X==a&&(x=60*(f-U)/(X-z)+240),I=0<n&&n<=.5?(X-z)/(2*n):(X-z)/(2-2*n));f=[Math.round(x+360)%360,I,n];Q=InH(Q,c);for(S=nbM(S.hex);Q<4.5;){S=f[2]>=.5?S.darker((4.5-Q)/2):S.brighter((4.5-Q)/2);Q=S.toString();
U=bap(Q);if(!U.length)throw Error("Td`"+Q);Q=U;Q=InH(Q,c)}return S.hex()};
InH=function(S,c){S=_.cvo(S);c=_.cvo(c);return(Math.max(S,c)+.05)/(Math.min(S,c)+.05)};
_.OX=function(S){return"#"+("000000"+(S&16777215).toString(16)).slice(-6)};
_.KFp=function(S){for(var c=0,Q=0;Q<S.length;Q++)c=S.charCodeAt(Q)+((c<<5)-c);S="#";for(Q=0;Q<3;Q++)S+=("00"+(c>>Q*8&255).toString(16)).slice(-2);return S};
$dY=function(S){S=(S||"").split(":");S.length===1&&S.unshift("yt-icons");S[1]=S[1].toLowerCase();return S};
HaM=function(S,c){var Q=(c=c===void 0?!1:c)?uHR:jmo,f=c?lnz:Y0x;S.getIconNames().forEach(function(U){U=c?U:U.substring(U.indexOf(":")+1);S.name==="yt-icons"?C1c.add(U):U.includes("-filled")?Q.add(U):f.add(U)})};
zv=function(S,c,Q,f){Q=Q===void 0?!1:Q;f=f===void 0?!1:f;var U,a,X;return _.O(function(z){if(z.nextAddress==1)return _.F(z,Ddp,2);if(f)return z.return(C1c.has(S));U=Q?uHR:jmo;a=Q?lnz:Y0x;return c?(X=S.includes("-filled")?S:S.concat("-filled"),z.return(U.has(X))):z.return(a.has(S))})};
_.q0z=function(S){if(pyz(S))return S;var c=S=S.toLowerCase();(S=hHp.get(S))&&(c=S);return c};
_.xz=function(S){if(pyz(S))return S.toString();var c=T$z.get(S);if(c)return c;c=S.toLowerCase();var Q="yt-icons",f=c.replace(/_/g,"-");switch(S){case "MY_CHANNEL":c="account_circle";break;case "ADD_TO_LIBRARY":c="add";break;case "ALERT_WARN_RED":c="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":c="person_music";break;case "BLOCK_USER":c="block";break;case "CAPTIONS":c="closed_caption";break;case "CLOSED_CAPTION":Q="av";c="closed-caption";break;case "COLLECTION":Q="maps";c="layers";break;case "CONTACT":Q=
"icons";c="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":Q="ytcp-icons";c=f.split("creator-studio-")[1];break;case "DISMISSAL":c="close";break;case "DO_NOT_DISTURB":c="block";break;case "DOGFOOD":Q="icons";c="pets";break;case "DRAFT":c="paper_corner_folded";break;
case "EMPTY_LIKE":c="like_outline";break;case "EXIT_APP":c="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":c=f;break;case "GAMES":Q="ytg";c="my-games";break;case "GO_TO_PAGE":c="arrow-forward";break;case "GROUP":Q="social";break;case "HIDE":c="not_interested";break;case "INPUT_COMPONENT":Q="icons";c="settings-input-component";break;case "KIDS_BLOCK":c="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":Q="ytg";c="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":Q=
"ytg";c="membership-post-purchase";break;case "MULTIVIEW":c="screen_multi_view";break;case "MY_LOCATION":Q="maps";c=f;break;case "NOTIFICATIONS_INBOX":c="NOTIFICATIONS";break;case "NEXT":c="chevron_right";break;case "OFFLINE":c="power-settings-new";break;case "PAUSE":Q="miniplayer";break;case "PAYMENT":Q="icons";break;case "PHONE_DOWNLOAD":c="phone_download";break;case "PREMIUM_STANDALONE":Q="yt-logos";c="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":Q="yt-logos";c="premium_standalone_cairo";
break;case "QUESTION_ANSWER":c="question_answer";break;case "REDEEM":Q="icons";c="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":c="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":c="library_add";break;case "SCHOOL":Q="yt-sys-icons";c="creator_academy";break;case "SETTINGS_LIGHT":c="settings_applications";break;case "SETTINGS_MATERIAL":c="settings";break;case "SEARCH_HISTORY":c="watch_history";break;case "SHOPPING_BAG":c="bag";break;case "SOCIAL":case "PEOPLE":Q=
"yt-icons";c="people";break;case "STAFF_PICK":Q="ytg";c="spotlight";break;case "START_DVR":c="add";break;case "STOP_DVR":Q="av";c="stop";break;case "TAB_LIKED":c="like";break;case "TAB_INBOX":c="mail";break;case "TERMS_OF_SERVICE":Q="icons";c="description";break;case "TRENDING":c="fire";break;case "UNBLOCK_USER":c="remove";break;case "UNPLUGGED_DARK_THEME":Q="image";c="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":c="live";break;case "UNPLUGGED_SPORTS":Q="ytu";c="visibility-off";break;
case "VIDEOS":Q="av";c="play-circle-filled";break;case "YOUTUBE":Q="yt-logos";c="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":Q="yt-logos-ext";c="yt-logo-red-updated";break;case "YOUTUBE_LOGO":Q="yt-logos-ext";c="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":Q="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":Q="shorts";c=f;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":Q="yt-sys-icons";c="youtube_improve_tv";break;case "OUTLINE_BAG":Q=
"yt-sys-icons";c="bag";break;case "QUEUE_PLAY_LAST":Q="yt-sys-icons";c="list_queue_last";break;case "SLASH_CIRCLE_LEFT":c="slash_circle_left";break;case "SPEED_1_POINT_2X":c="1_point_2x";break;case "SPEED_1_POINT_5X":c="1_point_5x";break;case "SPEED_1_POINT_8X":c="1_point_8x";break;case "SPEED_POINT_2X":c="point_2x";break;case "SPEED_POINT_5X":c="point_5x";break;case "SPEED_POINT_8X":c="point_8x";break;case "SPEED_1X":c="1x";break;case "SPEED_2X":c="2x";break;case "TAB_BOOKMARK":c="bookmark";break;
case "OUTLINE_CLOCK_HALF_CIRCLE":Q="yt-sys-icons";c="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":Q="yt-sys-icons";c="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":Q="yt-sys-icons",c="tic_tac_toe"}c=Q+":"+c;T$z.set(S,c);return c};
pyz=function(S){var c;_.u("kevlar_use_wil_icons")?c=!!_.fl().resolve(_.FB).resolveIcon({iconName:S.toString()}):c=!1;return c};
_.IW=function(S,c,Q,f){Q=Q===void 0?{}:Q;f=f===void 0?!1:f;Q===null&&(Q={});var U=_.XJ("kevlar_command_handler_command_banlist");U=_.A(U);for(var a=U.next();!a.done;a=U.next())if(a=S?S.hasOwnProperty(a.value):void 0,a)return!1;U=_.Y(S.commandMetadata,_.Qw);return f&&U!=null&&U.url?!1:!c.disableCommandHandlerOverride&&_.BI.instance?(f=_.BI.instance,Q.form||(Q.form={element:c}),Q.form.element||(Q.form.element=c),!Q.clickedVisualElement&&c.visualElement&&(Q.clickedVisualElement=c.visualElement),f.resolveCommand(S,
Q),!0):!1};
wyo=function(S,c){S=nv(S);for(var Q=_.A(S.visibilityMonitorKeys||[]),f=Q.next();!f.done;f=Q.next())c.unobserveByKey(f.value);S.visibilityMonitorKeys=void 0};
Zap=function(S,c){if(_.wN()){if(_.u("kevlar_vimio_use_shared_monitor"))smM(S,c.data);else if(!smM(S,c.data))return;var Q=c.data,f=MuH(Q);if(_.u("enable_client_ve_spec_logging"))wyo(S,c.observer);else{var U=nv(S);U.trackedParams&&U.trackedParams!==f&&wyo(S,c.observer)}U=nv(S);!Q||U.data&&U.data===Q||(U.data=Q);iap(S,c);U.trackedParams=f}};
iap=function(S,c){var Q=c.observer;if(!Q&&_.u("web_skip_missing_vimio_observer")){var f,U;_.i5(new _.Yr("VisibilityObserver is not defined.",S.tagName,S.trackedParams,(f=c.data)==null?void 0:f.trackingParams,(U=c.data)==null?void 0:U.loggingDirectives))}else{var a=c.layer,X=c.visibilityCallback||function(){},z=c.prescanCallback,x=nv(S);
f=[];c.showOption&&f.push(Q.observe(S,function(){c.skipLogging&&c.skipLogging()||_.b7().reportShown(x,void 0,a);X(!0)},c.showOption));
c.hideOption&&f.push(Q.observe(S,function(){_.b7().reportHidden(x,void 0,a);X(!1)},c.hideOption));
c.prescanOption&&z&&f.push(Q.observe(S,function(){z()},c.prescanOption));
x.visibilityMonitorKeys=f}};
smM=function(S,c){S=nv(S);if(S.visualElement&&!c)return!0;if(!c)return!1;var Q=!1;if(_.u("enable_client_ve_spec_logging")){var f,U;Q=!!((f=c.loggingDirectives)==null?0:(U=f.clientVeSpec)==null?0:U.uiType)}f=MuH(c);if(!f&&!Q)return!1;_.u("mweb_component_visibility_logging")&&(S.veContainer||(S.veContainer={}),S.veContainer.trackingParams=f);if(S.trackedParams&&S.trackedParams===f)return!1;var a;if(_.u("enable_client_ve_spec_logging")&&((a=S.visualElement)==null?0:a.isClientVe())){var X;a=(X=S.visualElement)==
null?void 0:X.getAsJspb();var z,x,I,n;if(_.Qa(a,2)===((z=c.loggingDirectives)==null?void 0:(x=z.clientVeSpec)==null?void 0:x.uiType)&&_.Qa(a,3,-1)===((I=c.loggingDirectives)==null?void 0:(n=I.clientVeSpec)==null?void 0:n.elementIndex))return!1}if(_.u("enable_client_ve_spec_logging")){var b,N;!S.visualElement&&((b=c.loggingDirectives)==null?0:(N=b.clientVeSpec)==null?0:N.uiType)&&(z=c.loggingDirectives.clientVeSpec,c=z.uiType,X=z.elementIndex,z=z.clientYoutubeData,S.visualElement=_.NK(_.Kv(),{veType:c,
elementIndex:X,clientYouTubeData:z}))}return!0};
MuH=function(S){if(S==null?0:S.rendererContext){var c=_.Y(S.rendererContext,_.$z);if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams}return(S==null?0:S.loggingDirectives)?S.loggingDirectives.trackingParams:S==null?void 0:S.trackingParams};
nv=function(S){var c;return(c=S.polymerController)!=null?c:S};
eHo=function(S){_.b7();if(_.kC(u7().JSC$10510_elementShouldLogGesture).bind(u7())(S,4)){GXx(S);var c=WFp(S);gbx.set(S,c)}};
GXx=function(S){gbx.has(S)&&(gbx.get(S).cancel("untrack hover element"),gbx.delete(S))};
WFp=function(S){var c,Q=[],f=!1,U=new _.n1(function(a,X){jw(S,"mouseenter",_.kC(function(){var z,x,I;return _.O(function(n){if(n.nextAddress==1)return c=(0,_.Qk)(),z=kXc(S),Q.push(z),x=r6T(S,function(){f=!0;X(Error("Xg"))}),_.F(n,z,2);
if(n.nextAddress!=3)return x&&l7(x),I=ddp(S),Q.push(I),_.F(n,I,3);a();_.IN(n)})}))});
U.then(function(){var a=(0,_.Qk)()-c;a=Math.round(a);if(!(500>a||6E5<=a)){var X=S.getScreenLayer?S.getScreenLayer():void 0;X=_.wN(X)||"";var z=vbZ(_.b7(),S);_.Vw(X,S.visualElement?S.visualElement:_.Yz(z),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:a}})}eHo(S)},function(){Cv&&(Cv(),Cv=null);
f&&(GXx(S),eHo(S))});
return U};
kXc=function(S){var c;return(new _.n1(function(Q,f){Cv=function(){f(Error("Yg"))};
c=_.Mq.debounce(_.kC(function(){l7(U);Q()}),1,100);
var U=_.HI(S,"mousemove",c)})).thenCatch(function(){var Q=_.Mq.cancelDebouncedJobMap.get(c);
Q&&_.Mq.cancelJob(Q)})};
ddp=function(S){var c;return(new _.n1(function(Q,f){Cv=function(){f(Error("Zg"))};
c=jw(S,"mouseleave",_.kC(function(){Q()}))})).thenCatch(function(){l7(c)})};
r6T=function(S,c){return jw(S,"mouseleave",_.kC(c))};
LFr=function(S){P1M&&_.Dc.cancel(P1M);P1M=_.Dc.run(function(){_.Az(S,"yt-visibility-refresh");P1M=0})};
EbY=function(S){S=Number(S);return"rgba("+[S>>16&255,S>>8&255,S&255,(S>>24&255)/255].join()+")"};
Vuz=function(S){if(!S)return!1;if(_.Y(S,_.tuZ))return!0;var c;if(S=(c=_.Y(S,_.II))==null?void 0:c.commands)for(c=_.A(S),S=c.next();!S.done;S=c.next())if(_.Y(S.value,_.tuZ))return!0;return!1};
RHZ=function(S){var c=!0;c=c===void 0?!0:c;if(!S.useSignals&&!S.experimentalPropertiesChanged||_.u("experimental_templating_behavior_nopatch_killswitch")){var Q=S._propertiesChanged;S._propertiesChanged=function(f,U,a){c?S.debounceRender():S.doRender();Q&&Q.call(S,f,U,a)}}};
y6c=function(S,c){if(S.useSignals||S.experimentalPropertiesChanged)if(_.u("experimental_templating_behavior_nopatch_killswitch"))S.experimentalPropertiesChanged=function(){};
else return;var Q=new Set,f=[S].concat(_.Hs(S.behaviors));f=_.A(f);for(var U=f.next();!U.done;U=f.next()){U=U.value;for(var a in U.properties)Q.has(a)||(S._addPropertyEffect(a,"function",c),Q.add(a))}};
obM=function(){var S=Polymer.Element,c=S._prepareTemplate;S._prepareTemplate=function(){c.call(this);var Q=this.prototype;if(Q.experimentalTemplatingInUse&&Q.experimentalTemplatingInUse()&&Q.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.sH(Error("$g"));else{Q=this.template.content.childNodes;for(var f=Q.length-1;f>=0;f--){var U=Q[f];U.nodeName!=="STYLE"&&U.nodeName!=="LINK"&&U.nodeName!=="SCRIPT"&&U.nodeName!=="#comment"&&U.remove()}}}};
mdT=function(S){var c=!0;c=c===void 0?!0:c;obM();var Q=S.ready;S.ready=function(){this._template=null;Q.call(this)};
y6c(S,c?S.debounceRender:S.doRender)};
c_c=function(S,c,Q){if(Q===null||Q===void 0)return Q;var f=zJz(S.tagName.toLowerCase(),c,function(){throw Error("Sb");});
if(f===null)return Q;f=SqR[f];var U;if((U=f.isUnwrappable)==null?0:U.call(f,Q)){if(f.unwrap)return f.unwrap(Q);throw Error("ch");}return f.filterString?f.filterString(S.tagName,c,String(Q)):Q};
Q3Z=function(S,c,Q){var f=c[c.length-1]!=="$",U=c_c(S,c,Q);if(f)if(typeof U==="function"&&c.startsWith("reactiveon")&&c===c.toLowerCase()){var a=Sd;uLY(S,c.slice(8),function(X){Wr(a,function(){U(X)})})}else S[c]=U;
else Q=U==null?null:String(U),$qx(S,c.slice(0,-1),Q)};
h2=function(S){fsT.length===0&&requestAnimationFrame(function(){setTimeout(function(){var c=fsT.slice();fsT.length=0;c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;try{Q()}catch(f){_.pv(f)}}})});
fsT.push(S)};
UzM=function(S){if(S){var c=S.component;if(c){var Q;c==null||(Q=c.events)==null||Q.publish("DISCONNECTED");var f;c==null||(f=c.onDisconnected)==null||f.call(c)}var U,a;(U=S.__spec)==null||(a=U.didUnmount)==null||a.call(U);for(c=0;c<S.childNodes.length;c++)UzM(S.childNodes[c])}};
Tv=function(S,c,Q){var f=c&&c.key,U=Rx;U[0]=S;U[1]=f;U[2]=void 0;for(var a in c)c.hasOwnProperty(a)&&(S=c[a],f=yi,f.push(a),f.push(S));c=Rx;a:{if(a=Rx[2])for(S=0;S<a.length;S+=2)if(a[S]==="nonce"){a=a[S+1];break a}a=""}a=M8T(c[0],c[1],a);S=rX(a);f=c[2];if(!S.staticsApplied&&(S.staticsApplied=!0,f&&f.length))if((U=S._attrsArr)&&U.length){for(U=0;U<f.length;U+=2)qK[f[U]]=U+1;U=S._attrsArr||(S._attrsArr=KOc(0));for(var X=0,z=0;z<U.length;z+=2){var x=U[z],I=U[z+1],n=qK[x];n?f[n]===I&&delete qK[x]:(U[X]=
x,U[X+1]=I,X+=2)}ed(U,X);for(var b in qK)H6z(a,b,f[qK[b]],oT),delete qK[b]}else for(b=0;b<f.length;b+=2)H6z(a,f[b],f[b+1],oT);kfT(a,S,oT);ed(c,0);Q&&Q(dX);i6o()};
J_Y=function(S){var c=S.toString().toLowerCase();return function(Q,f){Tv(c,Q,f)}};
_.wH=function(S,c,Q){Q===void 0?delete S[c.name]:S[c.name]=Q};
_.sX=function(S){var c={androidIncludeFontPadding:!1},Q=0,f=[],U=[],a=[];if(S.simpleText)return c.content=S.simpleText,c;if(S.runs===void 0)return c.content="",c;S=_.A(S.runs);for(var X=S.next();!X.done;X=S.next()){X=X.value;var z=X.text,x=void 0,I=(x=z)==null?void 0:x.length;if(z&&I){f.push(z);if(X.bold||X.italics||X.strikethrough||X.underline||X.textColor!=null&&X.textColor!==0||X.deemphasize){z=U;x=z.push;var n={startIndex:Q,length:I};X.bold&&(n.weightLabel="FONT_WEIGHT_MEDIUM");X.italics&&(n.italic=
!0);X.strikethrough&&(n.strikethrough="LINE_STYLE_SINGLE");X.underline&&(n.underline="LINE_STYLE_SINGLE");X.textColor!=null&&X.textColor!==0?document.documentElement.hasAttribute("dark")?n.fontColor=X.darkModeTextColor||X.textColor:n.fontColor=X.textColor:X.deemphasize&&(document.documentElement.hasAttribute("dark")?n.fontColor=parseInt("ff"+asc("#aaa").substring(1),16):n.fontColor=parseInt("ff"+asc("#606060").substring(1),16));x.call(z,n)}X.navigationEndpoint&&(z=a,x=z.push,n={startIndex:Q,length:I,
onTap:{innertubeCommand:X.navigationEndpoint}},X.loggingDirectives&&_.wH(n,A_p,X.loggingDirectives),x.call(z,n));Q+=I}}c.content=f.join("");c.styleRuns=U.length?U:void 0;c.commandRuns=a.length?a:void 0;return c};
OgY=function(S){if(S==null||!S.runs)return!0;S=_.A(S.runs);for(var c=S.next();!c.done;c=S.next())if(c=c.value,c.bracket||c.errorUnderline||c.deemphasize||_.Y(c,MK)||_.Y(c,Xwx))return!1;return!0};
zwR=function(S,c){return function(Q){var f=c.unit;if(f!==Q)throw Error("fh`"+S+"`"+f+"`"+Q);return c}};
i7=function(S){if(!((S==null?0:S.value)&&(S==null?0:S.unit)))return"";switch(S.unit){case "DIMENSION_UNIT_FRACTION":var c="%";break;default:c="px"}S=S.value;c==="%"&&(S*=100);return""+S+c};
xzp=function(S){try{return S()}catch(c){_.i5(c)}};
_.Gv=function(S){var c=_.Y(S,_.Zc);if(c)return c;if((c=_.Y(S,FiY))&&c.commands)return Btr(c.commands);if((c=_.Y(S,Isp))&&c.commands)return Btr(c.commands);if((S=_.Y(S,nIx))&&S.identifier&&S.command&&(bgr||(bgr=[]),!bgr.includes(S.identifier)))return bgr.push(S.identifier),_.Y(S.command,_.Zc)};
Btr=function(S){if(S.length!==0){var c=[];S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())(Q=_.Gv(Q.value))&&c.push(Q);return{commandExecutorCommand:{commands:c}}}};
_.gH=function(S){var c=S.defaultTarget,Q=S.elementConfig,f=S.elementsCommand,U=S.skipOnClick,a=S.forceNewState,X=S.additionalCommandArgs,z=S.innertubeCommand||_.Gv(f);if(z){S={};var x=NtR(z);f=x.navigatingCommand;x=x.href;f&&x?(S.href$=x,KiY(S,f,x,c),_.u("web_atagconfig_pointerdown")&&$zY(S,f),a&&(S["force-new-state$"]=!0)):(S.role$="button",S.href$="javascript:void(0);");_.Y(z,uRp)&&(S["aria-haspopup$"]=!0);U||(S.onclick=function(I){if(j3p(I)){var n=Object.assign({},{form:{element:I.target,event:I}},
X);I.preventDefault();_.WI(z,n)}});
return Object.assign({},Q,S)}};
lsz=function(S){if(S.length){if(S.length===1)return S[0];var c={};_.wH(c,_.II,{commands:S});return c}};
ew=function(S){return S&&S.href$!=="javascript:void(0);"};
NtR=function(S){var c,Q=((c=_.Y(S,_.II))==null?void 0:c.commands)||[S];S=_.A(Q);for(c=S.next();!c.done;c=S.next()){c=c.value;var f=void 0,U=void 0;Q=(U=_.Y((f=c)==null?void 0:f.commandMetadata,_.Qw))==null?void 0:U.url;_.u("web_remove_web_navigation_endpoint_data")||(f=void 0,Q=Q||((f=_.Y(c,YqY))==null?void 0:f.url));if(Q&&Q!=="/service_ajax"){if(f=Kc(Q,CkM))return S=_.nc(f),{navigatingCommand:c,href:S};_.i5(new _.Yr("AttributedString URL could not be sanitized",Q))}}return{}};
j3p=function(S){return S.button!==void 0?S.button===0&&!(S.shiftKey||S.altKey||S.metaKey||S.ctrlKey):!(S.shiftKey||S.altKey||S.metaKey||S.ctrlKey)};
KiY=function(S,c,Q,f){Q=!SJ(Q);var U,a,X;if((U=_.Y(c,_.KJ))!=null&&U.nofollow||(a=_.Y(c,_.tG))!=null&&a.nofollow||(X=_.Y(c,_.rQ))!=null&&X.nofollow||Q)S.rel$="nofollow";var z;c=((z=_.Y(c,_.rQ))==null?void 0:z.target)==="TARGET_NEW_WINDOW"?"_blank":f===void 0?"":f;S.target$=c};
$zY=function(S,c){c.clickTrackingParams&&(S.params={itct:c.clickTrackingParams});S.onpointerdown=function(Q){Hgc(Q)};
S._data=c};
DzZ=function(S){(S.loggingUrls||[]).forEach(function(c){Pt(c.baseUrl,c.attributionSrcMode)})};
pwH=function(S){S.currentTarget._data&&DzZ(S.currentTarget._data)};
Hgc=function(S){var c=S.currentTarget;S=xzp(function(){return c.href});
var Q=c.params;S&&_.SL(S,Q||{},8,!0)};
hwT=function(S,c){if(c=_.Y(c,_.rQ))(c==null?void 0:c.target)==="TARGET_NEW_WINDOW"&&(S.target="_blank"),c.nofollow&&(S.rel="nofollow")};
qqc=function(S){S=_.Y(S==null?void 0:S.commandMetadata,_.Qw);return(S==null?0:S.url)?S.url:null};
_.kz=function(S,c){(S=_.Gv(S))&&_.WI(S,c)};
_.WI=function(S,c){hbY(function(Q){c?Q.resolveCommand(S,c):Q.resolveCommand(S)})};
MoR=function(S,c){var Q=["yt-core-attributed-string__link"];c!=null&&c.noLinkColor||((c==null?0:c.isOverlay)?Q.push("yt-core-attributed-string__link--overlay-call-to-action-color"):Q.push("yt-core-attributed-string__link--call-to-action-color"),(c==null?0:c.linkInheritColor)&&Q.push("yt-core-attributed-string--link-inherit-color"));Q={className:Q.join(" "),tabindex$:"0"};var f=S.onTap||S.onLongPress;if(!f)return Q;var U=TtZ(S);U&&(Q["aria-label$"]=U);c=_.gH({elementsCommand:f,elementConfig:Q,skipOnClick:!(c==
null||!c.skipOnClick),forceNewState:!0});S.onLongPress&&(f=new wwp(function(){var a=_.Gv(S.onLongPress);a&&_.fl().resolve(_.U8).resolveCommand(a)}),c&&s3z(f,c));
return c||Q};
TtZ=function(S){var c,Q;return(c=S.onTapOptions)==null?void 0:(Q=c.accessibilityInfo)==null?void 0:Q.accessibilityLabel};
igz=function(S){var c=S;S<=16777215&&(c+=parseInt("ff000000",16));return _.gh(c)};
ZgR=function(S){var c=S.isDarkTheme;var Q=S.extension;S=S.runColor;var f=void 0;if(Q=Q==null?void 0:Q.colorMap){c=c?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";Q=_.A(Q);for(var U=Q.next();!U.done;U=Q.next())if(U=U.value,c===U.key){f=U.value;break}}f==null&&S&&(f=S);if(f)return igz(f)};
rH=function(S){var c=S.config;var Q=S.image;var f=S.imageConfig;var U=S.imageWrapperConfig;var a=S.run;var X=S.tag;var z=S.textLength;var x=S.startIndex===void 0?0:S.startIndex;S=S.length;x===void 0&&(x=0);a={run:a,startIndex:x,endIndex:S!==void 0?x+S:z,tag:X};Q&&(a.image=Q);f&&(a.imageConfig=f);U&&(a.imageWrapperConfig=U);c&&(a.config=c);return a};
Wic=function(S,c){var Q=[];Q.push("yt-core-attributed-string");(c==null?0:c.className)&&Q.push(c==null?void 0:c.className);(c==null?0:c.ellipsisTruncate)?Q.push("yt-core-attributed-string--ellipsis-truncate"):(c==null?0:c.noWrap)?Q.push("yt-core-attributed-string--white-space-no-wrap"):(c==null?0:c.noPreWrap)||Q.push("yt-core-attributed-string--white-space-pre-wrap");(c==null?0:c.linkInheritColor)&&Q.push("yt-core-attributed-string--link-inherit-color");S.alignment&&Q.push(GAp(S.alignment));S.lineBreakMode&&
Q.push("yt-core-attributed-string--word-wrapping");return Q.join(" ")};
gIY=function(S){if(S.weight)return S.weight;switch(S.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}};
ewz=function(S){switch(S){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"}};
GAp=function(S){switch(S){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"}};
PI=function(S,c,Q){var f=c;S.content&&Q&&(Q=S.content.indexOf("\n"),Q!==-1&&(f=Math.min(c,Q)));if(!S.content||S.content.length<=f)c=S;else if(S.attachmentRuns||S.commandRuns||S.decorationRuns||S.styleRuns||S.paragraphStyleRuns){c=dH(S.content,f);Q=f;var U=S.attachmentRuns;if(U){var a=[];U=_.A(U);for(var X=U.next();!X.done;X=U.next())X=Object.assign({},X.value),X.startIndex===void 0||X.startIndex>=Q||(X.length||(X.length=0),X.length+X.startIndex>Q&&(X.length=Q-X.startIndex),a.push(X));Q=a}else Q=void 0;
a=kAp(f,S.commandRuns);U=f;var z=S.decorationRuns;if(z){X=[];z=_.A(z);for(var x=z.next();!x.done;x=z.next()){x=x.value;var I=_.Y(x.textDecorator,vI);if(I&&I.startIndex!==void 0&&!(I.startIndex>=U)){x=Object.assign({},x,{textDecorator:{highlightTextDecorator:Object.assign({},I)}});I=_.Y(x.textDecorator,vI);if(!I.length||I.length+I.startIndex>U)I.length=U-I.startIndex;X.push(x)}}U=X}else U=void 0;X=kAp(f,S.styleRuns);if(z=S.paragraphStyleRuns)for(S=[],z=_.A(z),x=z.next();!x.done;x=z.next()){var n=x.value;
x=Object.assign({},n);if(!(x.startIndex===void 0||x.startIndex>=f)){if(!x.length||x.length+x.startIndex>f)x.length=f-x.startIndex;I=[];var b=void 0,N=void 0;if((b=n)==null?0:(N=b.listGroup)==null?0:N.listItems)for(n=_.A(n.listGroup.listItems),b=n.next();!b.done;b=n.next())if(b=Object.assign({},b.value),!(b.startIndex===void 0||b.startIndex>=f)){if(!b.length||b.length+b.startIndex>f)b.length=f-b.startIndex;I.push(b)}I.length>0&&(x.listGroup||(x.listGroup={}),x.listGroup=Object.assign({},x.listGroup,
{listItems:I}));S.push(x)}}else S=void 0;c={content:c,attachmentRuns:Q,commandRuns:a,decorationRuns:U,styleRuns:X,paragraphStyleRuns:S}}else c=Object.assign({},S,{content:dH(S.content,f)});return c};
kAp=function(S,c){if(c){var Q=[];c=_.A(c);for(var f=c.next();!f.done;f=c.next())if(f=Object.assign({},f.value),!(f.startIndex===void 0||f.startIndex>=S)){if(!f.length||f.length+f.startIndex>S)f.length=S-f.startIndex;Q.push(f)}return Q}};
dH=function(S,c){var Q=c,f;if(f=Q>0)f=S.charCodeAt(Q-1),f=f>=55296&&f<=56319;f&&(Q=S.charCodeAt(Q),f=Q>=56320&&Q<=57343);f&&--c;return S.substring(0,c)};
PkH=function(S,c,Q){Q=Q===void 0?r_Y:Q;if(S){var f=_.fl().resolve(SR);f||_.u("mweb_no_observer_killswitch")?Zap(S,{data:c,observer:f,visibilityCallback:Q,hideOption:dzZ,showOption:vIz,layer:S.layer}):_.i5(new _.Yr("Warning: monitorVisibility called with null observer",S.tagName,c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams))}else _.i5(new _.Yr("Warning: monitorVisibility called with null element",c==null?void 0:c.loggingDirectives,c==null?void 0:c.trackingParams,c==null?void 0:
c.rendererContext))};
oIM=function(S,c){var Q=[],f=S.content.length,U,a=(U=_.fl().resolve(_.QS(_.Lv)))==null?void 0:U();if(S.paragraphStyleRuns){U=_.A(S.paragraphStyleRuns);for(var X=U.next();!X.done;X=U.next()){var z=Q.push,x=z.apply;var I=void 0;X=X.value;if((I=X.listGroup)!=null&&I.listItems){I=[];b:switch(X.listGroup.listType){case "LIST_TYPE_BULLET":var n="ul";break b;default:n="span"}I.push(rH({run:X,textLength:f,tag:n,config:{className:"yt-core-attributed-string__list-group"},startIndex:X.startIndex,length:X.length}));
n=_.A(X.listGroup.listItems);for(var b=n.next();!b.done;b=n.next()){b=b.value;b:switch(X.listGroup.listType){case "LIST_TYPE_BULLET":var N="li";break b;default:N="span"}I.push(rH({run:X,textLength:f,tag:N,startIndex:b.startIndex,length:b.length}))}X=I}else X=[];x.call(z,Q,_.Hs(X))}}if(S.styleRuns&&(c==null||!c.noStyleRuns))for(U=_.A(S.styleRuns),z=U.next();!z.done;z=U.next()){z=z.value;x=ZgR({extension:_.Y(z.styleRunExtensions,Lix),isDarkTheme:a===void 0?!1:a,runColor:z.fontColor});I=[];x&&I.push("yt-core-attributed-string--link-inherit-color");
z.italic&&I.push("yt-core-attributed-string--italicized");z.underline&&z.strikethrough?I.push("yt-core-attributed-string--underline-strikethrough",ewz(z.underline)):z.underline?I.push("yt-core-attributed-string--underlined",ewz(z.underline)):z.strikethrough&&I.push("yt-core-attributed-string--strikethrough",ewz(z.strikethrough));if(z.baselineOffset){a:switch(z.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":X="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":X=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:X="yt-core-attributed-string--baseline-offset-unknown"}I.push(X)}X=I.join(" ");I=z;n={};if(I.weight||I.weightLabel)n.fontWeight=gIY(I).toString();x&&(n.color=x);Q.push(rH({run:z,textLength:f,tag:"span",config:{className:X,style:n},startIndex:z.startIndex,length:z.length}))}if(S.decorationRuns)for(U=_.A(S.decorationRuns),z=U.next();!z.done;z=U.next())z=z.value,x={},z.textDecorator&&(n=z.textDecorator,X=a===void 0?!1:a,b=[],I=
_.Y(n,vI),n=_.Y(n,EIT),I?(n=b,b=n.concat,N=[],(X=ZgR({extension:_.Y(I.highlightTextDecoratorExtensions,toc),isDarkTheme:X,runColor:I.backgroundColor}))&&N.push("background-color: "+X+";"),I.backgroundCornerRadius!==void 0&&N.push("border-radius: "+I.backgroundCornerRadius+"px;"),I.leftPadding!==void 0&&N.push("padding-left: "+I.leftPadding+"px;"),I.rightPadding!==void 0&&N.push("padding-right: "+I.rightPadding+"px;"),I.topPadding!==void 0&&N.push("padding-top: "+I.topPadding+"px;"),I.bottomPadding!==
void 0&&N.push("padding-bottom: "+I.bottomPadding+"px;"),b=b.call(n,N)):n&&(I=b,b=I.concat,X=X?"#2ba640":"#107516",X=n.color?igz(n.color):X,X=["padding: 2px;","border-top: solid "+X+" 2px;","border-bottom: solid "+X+" 2px;","background: linear-gradient(135deg, "+X+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+X+" 3px, rgba(0, 0, 0, 0) 3px);"],b=b.call(I,X)),X=b.join(" "),x.style$=X,X=z.textDecorator,I=[],n=_.Y(X,EIT),_.Y(X,vI)?I.push("yt-core-attributed-string--highlight-text-decorator"):
n&&I.push("yt-core-attributed-string--bracket-text-decorator"),X=I.join(" "),x.className=X,x.dir="auto"),X=_.Y(z.textDecorator,vI),I=_.Y(z.textDecorator,EIT),n=_.Y(z.textDecorator,vI),b=_.Y(z.textDecorator,EIT),Q.push(rH({run:z,textLength:f,tag:"span",config:x,startIndex:(X==null?void 0:X.startIndex)||(I==null?void 0:I.startIndex)||0,length:(n==null?void 0:n.length)||(b==null?void 0:b.length)||0}));if(S.commandRuns&&(c==null||!c.noEndpoints))for(a=_.A(S.commandRuns),U=a.next();!U.done;U=a.next())U=
U.value,z=MoR(U,c),Q.push(rH({run:U,textLength:f,tag:"a",config:z,startIndex:U.startIndex,length:U.length}));if(S.attachmentRuns)for(S=_.A(S.attachmentRuns),a=S.next();!a.done;a=S.next()){a=a.value;x=z=void 0;U={className:"yt-core-attributed-string--inline-block-mod"};if((x=a.element)==null?0:x.properties){x=(z=a.element)==null?void 0:z.properties;z=[];x=_.Y(x,Vop);if(x==null?0:x.margin)x=x.margin,x.left&&z.push("margin-left: "+i7(x.left)+";"),x.right&&z.push("margin-right: "+i7(x.right)+";"),x.top&&
z.push("margin-top: "+i7(x.top)+";"),x.bottom&&z.push("margin-bottom: "+i7(x.bottom)+";");z=z.length!==0?z.join(" "):void 0;U.style$=z}X=void 0;z={alt:"",preserveHeight:!0,preserveWidth:!0};x=["yt-core-attributed-string__image-element"];if(a.alignment){a:switch(a.alignment){case "ALIGNMENT_BASELINE":I="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":I="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:I=
"yt-core-attributed-string__image-element--image-alignment-bottom"}x.push(I)}if((X=a.element)==null?0:X.properties)X=[],I=_.Y(a.element.properties,Vop),(I==null?0:I.height)&&X.push("height: "+i7(I.height)+";"),(I==null?0:I.width)&&X.push("width: "+i7(I.width)+";"),X=X.length!==0?X.join(" "):void 0,z.style$=X,I=void 0,X=((I=_.Y(a.element.properties,Rwr))==null?void 0:I.label)||"",z.alt=X;z.className=x.join(" ");x=void 0;n=I=void 0;X=((n=a.element)==null?0:n.type)?(I=_.Y(a.element.type,y_p))==null?
void 0:I.image:void 0;Q.push(rH({run:a,textLength:f,tag:"img",image:X,imageConfig:z,imageWrapperConfig:U,startIndex:a.startIndex,length:(x=a.length)!=null?x:0}))}if(c==null?0:c.headerRuns)for(c=_.A(c.headerRuns),S=c.next();!S.done;S=c.next())if(S=S.value,S.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(S.headerMapping)){a:{switch(S.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":a=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":a="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":a="yt-core-attributed-string--heading-3";break a}a=void 0}Q.push(rH({run:S,textLength:f,tag:"span",config:a?{className:a}:void 0,startIndex:S.startIndex,length:S.length}))}return Q};
_.EX=function(S){return(S==null?void 0:S.content)!==void 0};
mzz=function(S){return _.EX(S)?S:_.sX(S)};
SFZ=function(S){return S.image!==void 0&&S.imageConfig!==void 0};
cQo=function(S,c){if(c==null?0:c.userInput)for(S=_.A(S),c=S.next();!c.done;c=S.next())if(c=c.value,c.tag!=="a"&&c.tag!=="li"){var Q=void 0;(Q=c).config||(Q.config={});c.config.dir=c.tag==="ul"?_.fl().resolve(_.t2):"auto"}};
QOM=function(S){return function(c){var Q=S.run;(Q.onTap!==void 0||Q.onLongPress!==void 0)&&_.Y(Q,A_p)&&PkH(c,{loggingDirectives:_.Y(Q,A_p)})}};
fuY=function(S){return function(c){for(var Q in S)(oT[Q]||oT[kv["default"]])(c,Q,S[Q])}};
AQZ=function(S,c){UXc(c);var Q={data:null,start:0,end:S.length,parts:[]};c=_.A(c);for(var f=c.next();!f.done;f=c.next())f=f.value,JQZ(Q,f.startIndex,f.endIndex,f);aux(S,Q);return Q};
JQZ=function(S,c,Q,f){for(var U=_.A(S.parts),a=U.next();!a.done;a=U.next()){a=a.value;if(typeof a==="string")throw Error("hh");if(a.start<=c&&Q<=a.end){JQZ(a,c,Q,f);return}}S.parts.push({data:f,parts:[],start:c,end:Q})};
aux=function(S,c){for(var Q=c.parts.length;Q>=0;Q--){var f=c.parts[Q],U=c.parts[Q-1],a=Q===c.parts.length?c.end:f.start;U=Q===0?c.start:U.end;a!==U&&c.parts.splice(Q,0,S.slice(U,a));f&&aux(S,f)}};
UXc=function(S){S.sort(function(c,Q){if(c.startIndex<Q.startIndex)return-1;if(Q.startIndex<c.startIndex)return 1;c=c.endIndex-c.startIndex;Q=Q.endIndex-Q.startIndex;return c>Q?-1:Q>c?1:0})};
_.XDr=function(S){var c=S.thumbnails;if(c){S={sources:[]};c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f={};f.url=Q.url;f.width=Q.width;f.height=Q.height;S.sources.push(f)}return S}};
O5z=function(S,c,Q,f){if(!c)return S.length>=1?S[S.length-1]:null;if(f)for(var U=_.A(S),a=U.next();!a.done;a=U.next()){a=a.value;var X=void 0,z=(X=a.url)==null?void 0:X.indexOf(f);if(z!==void 0&&z>=0)return a}f=_.A(S);for(U=f.next();!U.done;U=f.next())if(U=U.value,U.width&&U.height&&(Q&&U.width>=c||!Q&&U.height>=c))return U;for(c=S.length-1;c>=0;c--)if(Q&&S[c].width||!Q&&S[c].height)return S[c];return S[0]};
_.zAY=function(S){var c;return(S=(c=S.sources)==null?void 0:c[0])?S.width/S.height:0};
_.xXH=function(S){if(S.sources){S=_.A(S.sources);for(var c=S.next();!c.done;c=S.next()){c=c.value;var Q=void 0;if((Q=c.clientResource)==null?0:Q.imageName)return c}}};
FPc=function(S){var c;if((c=S.clientResource)!=null&&c.imageColor)return _.gh(S.clientResource.imageColor)};
_.IuH=function(S,c,Q,f,U,a,X){if(!c||c.length===0||c[0].clientResource)return null;if(Q&&c[0].url)return c[0].url;f===void 0&&(f=!0);if(f){var z;S=Bvz*(U||(S==null?void 0:(z=S.getBoundingClientRect())==null?void 0:z.width)||0)}else{var x;S=Bvz*(a||(S==null?void 0:(x=S.getBoundingClientRect())==null?void 0:x.height)||0)}c=O5z(c,S,f,X);return(c==null?0:c.url)?c.url:(c==null?0:c.imageData)?c.imageData:null};
n_Y=function(S,c,Q){Q=Q?[Q]:[];S.opacity&&Q.push("opacity: "+S.opacity+";");c&&S.placeholderColor?(S=_.gh(S.placeholderColor),Q.push("background-color: "+S+";")):Q.push("background-color: transparent;");return Q.join(" ")};
b5z=function(S,c,Q,f,U){var a=["yt-core-image"];c&&a.push(c);Q||a.push("yt-core-image--fill-parent-height");f||a.push("yt-core-image--fill-parent-width");switch(S.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":a.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":a.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":a.push("yt-core-image--content-mode-center");break;default:a.push("yt-core-image--content-mode-scale-to-fill")}S.flipForRtlLayout&&
a.push("yt-core-image--flip-rtl");switch(U){case "TOP_START":var X;a.push(((X=document.body)==null?void 0:X.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return a.join(" ")};
KPT=function(S){var c;if(S==null?0:(c=S.clientResource)==null?0:c.imageName){var Q;S=(Q=S.clientResource)==null?void 0:Q.imageName;a:{switch(S){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":Q="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":Q="yt-logos-ext:yt-logo-updated";break a}Q=void 0}return Q||NvZ.get(S)||S}};
jOZ=function(S){return _.u("mweb_wiz_skip_render")?$XZ(S):uQo(S)};
$XZ=function(S){return function(c){var Q=M8T("wink-root");Vi();i6o();ozR(Q,_.B(S,c))}};
uQo=function(S){var c=c===void 0?!1:c;return function(Q){if(!c||!_.u("mweb_skip_keto_to_c3_if_no_data")||Q.data!==void 0){var f=AS(!1);try{var U=Q.children;_.u("mweb_render_outside_patch_killswitch")||dX?U?y1(_.B(S,Q,U)):y1(_.B(S,Q)):_.i5(new _.Yr("ketoToC3 called outside of a patch",{tagName:S.TAG_NAME}))}finally{AS(f)}}}};
luZ=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
CDp=function(S,c){S.onViewportEntered=c;YFx.observe(S)};
H5M=function(){var S={rootMargin:"10%",threshold:.01};_.u("mweb_enable_set_io_root_to_null_safari")?S.root=null:_.u("mweb_enable_set_io_root_to_body_safari")&&(S.root=document.body);return new IntersectionObserver(function(c,Q){c.filter(function(f){return f.intersectionRect.height>0}).forEach(function(f){f=f.target;
if(!_.u("mweb_enable_only_update_image_when_connected")||f.isConnected!==!1){var U;(U=f.onViewportEntered)==null||U.call(f);Q.unobserve(f)}})},S)};
DXY=function(S,c,Q,f,U){function a(){if(f){var z=f.loadedClass,x=f.notifyOnUnloaded;z&&_.VX(S,z);x&&S.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function X(){var z=Q(c,S);z&&S.getAttribute("src")!==z&&(_.u("mweb_enable_only_update_image_when_connected")&&S.isConnected===!1||z===S.src||(S.src=z),a())}
U=U===void 0?!0:U;S.removeAttribute("src");a();c&&(U?CDp(S,X):X())};
pDY=function(S,c,Q){if(!c)return!1;c=Q(c,S);Q=S.getAttribute("src");return c&&c===Q&&S.complete};
hAr=function(S,c){for(var Q in c)Q==="className"?S.className=c[Q]:(oT[Q]||oT[kv.default])(S,Q,c[Q])};
qFr=function(S,c,Q,f){jOZ(_.RW)({contentMode:c.contentMode,loadedClass:c.loadedClass,isPreloaded:c.isPreloaded,notifyOnLoaded:c.notifyOnLoaded,notifyOnUnloaded:c.notifyOnUnloaded,preferredThumbnail:c.preferredThumbnail,preserveHeight:c.preserveHeight,preserveWidth:c.preserveWidth,objectPosition:c.objectPosition,targetWidth:c.targetWidth,targetHeight:c.targetHeight,shouldShowPlaceholder:c.shouldShowPlaceholder,useWidth:c.useWidth,isToggled:c.isToggled,alt:c.alt,className:c.className,onerror:c.onerror,
onload:c.onload,style$:c.style$,color:c.color,width:c.width,height:c.height,"aria-hidden$":c["aria-hidden$"],draggable:c.draggable,"data-disabled$":c["data-disabled$"],data:S,callback:Q,renderLazy:f===void 0?!0:f,hideOn404:!1})};
wDr=function(S,c,Q){Q=Q===void 0?!1:Q;var f=S.sources!==void 0?S:_.XDr(S);if(f){var U=c.onload;c.onload=function(x){var I=x.target;Q&&I.naturalWidth===120||_.yX(I,"yt-core-image--loaded");c.notifyOnLoaded&&I.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));U==null||U(x)};
c.targetWidth&&c.preserveWidth&&(c.width=c.targetWidth);c.targetHeight&&c.preserveHeight&&(c.height=c.targetHeight);var a=_.xXH(f),X=a&&KPT(a);if(X)return(S=FPc(a))&&(c.color=S),{type:"icon",iconName:X,config:Object.assign({},c,c.alt?{}:{"aria-hidden$":"true"},{"aria-label$":c.alt,role:"img"})};if(S.sources===void 0){c.alt=S.accessibility&&S.accessibility.accessibilityData&&S.accessibility.accessibilityData.label||c.alt;c.style$=n_Y(S,c.shouldShowPlaceholder,c.style$);var z;c.isPreloaded=!((z=_.Y(S,
TvM))==null||!z.isPreloaded)}c.contentMode&&!f.contentMode&&(f.contentMode=c.contentMode);c.className=b5z(f,c.className,c.preserveHeight,c.preserveWidth,c.objectPosition);c.loadedClass="yt-core-image--loaded";return{type:"image",image:f,config:c}}};
_.oW=function(){var S=_.YD.apply(0,arguments);return _.tc(_.V1,function(c){var Q=S.map(function(f){return f(c)});
return function(){return void Q.forEach(function(f){return void(f==null?void 0:f())})}})};
md=function(S,c){var Q=c==null?void 0:c.initial;return _.uQ(function(){_.Zf(!0);return Q=S(Q)},{equals:c==null?void 0:c.isEqual},"rSlKsc")};
sOR=function(S,c){if(S===c)return!0;if(S===void 0||c===void 0)return!1;var Q,f,U,a,X,z,x,I;return S.content===c.content&&((Q=S.styleRuns)==null?void 0:Q.length)===((f=c.styleRuns)==null?void 0:f.length)&&((U=S.commandRuns)==null?void 0:U.length)===((a=c.commandRuns)==null?void 0:a.length)&&((X=S.attachmentRuns)==null?void 0:X.length)===((z=c.attachmentRuns)==null?void 0:z.length)&&((x=S.decorationRuns)==null?void 0:x.length)===((I=c.decorationRuns)==null?void 0:I.length)};
Z5H=function(S,c){if(S){var Q=mzz(S);if(Q!=null&&Q.content)if(_.u("attr_string_reactive"))jOZ(MKY)({text:S,config:c});else{var f=!(c==null||!c.ariaLabel)||!(Q.commandRuns&&Q.commandRuns.length!==0||Q.paragraphStyleRuns&&Q.paragraphStyleRuns.length!==0);S=f?c==null?void 0:c.ariaLabel:null;f=f?"text":null;Tv("span",{className:Wic(Q,c),dir$:(c==null?0:c.userInput)?"auto":void 0,"aria-label$":S,role$:f},function(){if(Q.styleRuns||Q.commandRuns||Q.attachmentRuns||Q.decorationRuns){var U=oIM(Q,c);cQo(U,
c);U=AQZ(Q.content,U);U=_.A(U.parts);for(var a=U.next();!a.done;a=U.next())i5o(a.value)}else Q0(Q.content)})}}};
i5o=function(S){typeof S==="string"?Q0(S):SFZ(S.data)?Tv("span",S.data.imageWrapperConfig,function(){qFr(S.data.image,S.data.imageConfig)}):Tv(S.data.tag,S.data.config,function(c){QOM(S.data)(c);
c=_.A(S.parts);for(var Q=c.next();!Q.done;Q=c.next())i5o(Q.value)})};
WPH=function(S){return S.parts.map(GUZ)};
GUZ=function(S){if(typeof S==="string")return S;S=SFZ(S.data)?_.B("span",{el:_.oW(fuY(S.data.imageWrapperConfig))},_.B(_.RW,Object.assign({},{data:S.data.image},S.data.imageConfig))):_.B(S.data.tag,{el:_.oW(QOM(S.data),fuY(S.data.config))},S.parts.map(GUZ));return bW(S)};
g_o=function(S,c){return S===c?!0:S===void 0||c===void 0?!1:S.noStyleRuns===c.noStyleRuns&&S.noLinkColor===c.noLinkColor&&S.noEndpoints===c.noEndpoints&&S.headerRuns===c.headerRuns&&S.isOverlay===c.isOverlay&&S.linkInheritColor===c.linkInheritColor&&S.userInput===c.userInput};
eAc=function(S){return function(){var c,Q,f,U,a,X,z,x,I,n,b,N,l,H;return{ariaLabel:(c=S.ariaLabel)==null?void 0:c.call(S),className:(Q=S.className)==null?void 0:Q.call(S),ellipsisTruncate:(f=S.ellipsisTruncate)==null?void 0:f.call(S),isOverlay:(U=S.isOverlay)==null?void 0:U.call(S),linkInheritColor:(a=S.linkInheritColor)==null?void 0:a.call(S),noEndpoints:(X=S.noEndpoints)==null?void 0:X.call(S),noStyleRuns:(z=S.noStyleRuns)==null?void 0:z.call(S),noLinkColor:(x=S.noLinkColor)==null?void 0:x.call(S),
noPreWrap:(I=S.noPreWrap)==null?void 0:I.call(S),noWrap:(n=S.noWrap)==null?void 0:n.call(S),skipOnClick:(b=S.skipOnClick)==null?void 0:b.call(S),stopPropagation:(N=S.stopPropagation)==null?void 0:N.call(S),userInput:(l=S.userInput)==null?void 0:l.call(S),headerRuns:(H=S.headerRuns)==null?void 0:H.call(S)}}};
kUZ=function(S){return S.value===""||S.value==="true"?!0:S.value==="false"?!1:isNaN(Number(S.value))?S.value:Number(S.value)};
c3=function(S,c){S=new rQx(S,c);_.sH(S);throw S;};
dXR=function(S,c,Q){var f=ogY(S);S._numRenders=0;try{var U=_.KZT(function(){return _.B(c,Object.assign({},Q))})}catch(X){var a=function(z){z.args||(z.args=[]);
z.args.push("Error in web component wrapper");z.args.push(S.tagName.toLowerCase());return z};
_.MP(X instanceof Error?a(X):new rQx("Wiz rendering error",S.tagName.toLowerCase()));throw X;}finally{ogY(f)}return U};
_.f4=function(S,c,Q){function f(n){var b={};n=_.A(n);for(var N=n.next();!N.done;N=n.next()){N=N.value;var l=void 0,H=void 0,q=void 0,w=_.bx((q=(H=(l=N).getAttribute)==null?void 0:H.call(l,"slot"))!=null?q:"children");if(l=b[w])l.push(N);else if(w in a||w==="children")b[w]=[N]}n=_.A(Object.keys(b));w=n.next();for(N={};!w.done;N={content$jscomp$55:void 0},w=n.next())w=w.value,w!=="children"&&(N.content$jscomp$55=b[w],b[w]=function(g){return function(){return g.content$jscomp$55}}(N));
return b}
Q=Q===void 0?{}:Q;S.componentType!==Df||c3("Components must be marked reactive to be used from web component wrapper.",c);UX.has(c)&&c3("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",c);var U,a=(U=Q.props)!=null?U:{};J2.add(c);var X=v_Z();U=function(){var n=X.apply(this,arguments)||this;n.rawProps={};n.queuingRender=!1;n.dispose=function(){};
n.isWebComponentWrapper=!0;n.isReparenting=!1;n.hasRendered=!1;return n};
_.C(U,X);U.prototype.render=function(){this.hasRendered=!0;for(var n=_.A([].concat(_.Hs(this.attributes))),b=n.next();!b.done;b=n.next())b=b.value,b.name!=="slot"&&this.removeAttribute(b.name);n=Object.assign({},this.componentProps,this.slotProps);b=_.A(dXR(this,S,n));n=b.next().value;b=b.next().value;!(n[0]instanceof Element)||n.length>1?c3("Wrapped Wiz components must return a single root element.",c):(n=n[0].tagName.toLowerCase(),n!==c&&c3("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(n+" !== '"+c),c),this.dispose=b)};
U.prototype.setUpProps=function(){for(var n=this.rawProps,b=this.attributes,N=_.A(Object.keys(a)),l=N.next();!l.done;l=N.next()){l=l.value;var H=void 0;((H=this)==null?0:H[l])&&this[l]!==PDr&&n[l]===void 0&&(n[l]=this[l],(H=Object.getOwnPropertyDescriptor(this.constructor.prototype,l))&&Object.defineProperty(this,l,H))}N=_.A(b);for(l=N.next();!l.done;l=N.next()){H=l.value;l=_.bx(H.name);var q=l==="class"&&!b.getNamedItem("class-name");if(l in a||q)H=kUZ(H),l!=="class"||n.className?n[l]=H:n.className=
H}b={};for(var w in a)a[w]!==_.Qn&&a[w]!==LPc&&(n[w]instanceof Function&&c3("Function props must be configured as STATIC, not SIGNAL.",c),l=_.A(_.ny(n[w],void 0,"Ri8MSe")),N=l.next().value,l=l.next().value,b[w]=l,n[w]=N);n=_.A([n,b]);this.componentProps=n.next().value;this.setters=n.next().value;this.slotProps=f(this.childNodes)};
U.prototype.connectedCallback=function(){QX===c&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in a&&!this.rawProps.data&&!this.getAttribute("data"),this.hasRendered||this.queuingRender||this.setUpProps(),this.queuingRender||this.render()))};
U.prototype.disconnectedCallback=function(){if(!this._isInert){var n;a:{if(_.E_x)for(n=this;n;){if(_.tKR.has(n)){n=!0;break a}n=n.parentElement}n=!1}if(n)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){n=_.A([].concat(_.Hs(this.attributes)));for(var b=n.next();!b.done;b=n.next())b=b.value,b.name!=="slot"&&this.removeAttribute(b.name)}this.innerText="";Pjx(this)}}};
U.prototype._setPendingPropertyOrPath=function(){};
U.prototype.notifyPath=function(){};
_.Rh.Object.defineProperties(U.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var z=_.A(Object.keys(a)),x=z.next(),I={};!x.done;I={prop$jscomp$104:void 0},x=z.next())I.prop$jscomp$104=x.value,x=void 0,((x=Q.legacyPolymer)==null?0:x.forwardHostProps)&&kmY.has(I.prop$jscomp$104)||Object.defineProperty(U.prototype,I.prop$jscomp$104,{set:function(n){return function(b){var N=this;this._isInert||(this.setters?jd(function(){var l,H;return void((H=(l=N.setters)[n.prop$jscomp$104])==null?void 0:H.call(l,b))}):(this.rawProps[n.prop$jscomp$104]=b,this.queuingRender&&n.prop$jscomp$104===
"data"&&b!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(I),
get:VKp.has(I.prop$jscomp$104)?void 0:function(){return PDr}});
customElements.define(c,U)};
_.RAp=function(S,c){return(S=_.U2(S,c))?_.nc(_.jS(S)):null};
_.Ja=function(S){if(S=_.U2(S,Number.MAX_VALUE,void 0,"width"))return _.jS(S)};
_.U2=function(S,c,Q,f){f=f===void 0?"width":f;if(!S||!S.length)return null;if(_.u("kevlar_tuner_should_always_use_device_pixel_ratio")){var U=window.devicePixelRatio;_.u("kevlar_tuner_should_clamp_device_pixel_ratio")?U=Math.min(U,_.a6("kevlar_tuner_clamp_device_pixel_ratio")):_.u("kevlar_tuner_should_use_thumbnail_factor")&&(U=_.a6("kevlar_tuner_thumbnail_factor"));yQZ=U}else yQZ||(yQZ=window.devicePixelRatio);U=yQZ;_.u("kevlar_tuner_should_always_use_device_pixel_ratio")?c*=U:U>1&&(c*=U);if(_.u("kevlar_tuner_min_thumbnail_quality"))return S[0].url||
null;U=S.length;if(_.u("kevlar_tuner_max_thumbnail_quality"))return S[U-1].url||null;if(Q)for(var a=0;a<U;a++)if(S[a].url.indexOf(Q)>=0)return S[a].url||null;for(Q=0;Q<U;Q++)if(S[Q][f]>=c)return S[Q].url||null;for(c=U-1;c>0;c--)if(S[c][f])return S[c].url||null;return S[0].url||null};
Swo=function(){aZ.size?setTimeout(function(){Aa(o_o)},0):mXz=0};
o_o=function(){var S=(0,_.Qk)(),c=null,Q=!1;aZ.forEach(function(U){U.loaded=!0;U.loadTime=S;U.pendingPaint=!1;var a=cnY.get(U);a&&a.resolve(S);c=U;Q||!U.ftlEligible&&U.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(Q=!0)});
var f;((f=c)==null?0:f.markDirty)&&c.markDirty();aZ.clear();mXz=0;Q&&QLZ(S)};
fkT=function(S){aZ.add(S);S.pendingPaint=!0;mXz||(mXz=_.Xi(_.Mq,Swo))};
ULY=function(S){S.loaded=!1;S.loadTime=Infinity;var c=cnY.get(S);c&&(c.reject(Error("nh")),cnY.delete(S));S.pendingPaint&&(aZ.delete(S),S.pendingPaint=!1)};
_.Jnp=function(S){var c=S.indexOf(":");return c===-1?{originalName:S}:{originalName:S.substring(0,c),datasyncId:S.substring(c+1)}};
_.AnY=function(){return _.O(function(S){if(akp!==void 0)return S.return(akp);akp=new Promise(function(c){var Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.X1(f,2),_.F(f,_.O2.open("test-only"),4);case 4:return _.F(f,_.O2.delete("test-only"),5);case 5:_.Pi(f,3);break;case 2:if(Q=_.Bs(f),Q instanceof Error&&Q.name==="SecurityError")return c(!1),f.return();case 3:c("caches"in window),_.IN(f)}})});
return S.return(akp)})};
zVr=function(){return _.O(function(S){if(S.nextAddress==1)return _.F(S,_.AnY(),2);if(!S.yieldResult)return S.return(void 0);XFz||(XFz=new ONx);return S.return(XFz)})};
xLz=function(S){var c,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:return _.F(a,zVr(),2);case 2:c=a.yieldResult;if(!c)throw Error("ph");return _.F(a,c.open("yt-player-local-img"),3);case 3:return Q=a.yieldResult,_.F(a,Q.match(S),4);case 4:f=a.yieldResult;if(!f)throw Error("qh");return _.F(a,f.blob(),5);case 5:return U=a.yieldResult,a.return(U)}})};
FQz=function(S,c){for(var Q in S)if(S.hasOwnProperty(Q)&&c[Q])return Q;return null};
BEz=function(S){return"stamp"+S.replace("-","_")+"_"};
IkY=function(S){var c=S.match(/\[\[([\w\.]+)\]\]/);if(c&&c.length>1)return c[1];_.sH(Error("sh`"+S));return null};
nKr=function(S){return S===void 0?_.gC("REUSE_COMPONENTS",!1):S||!1};
KQY=function(S,c,Q){Q&&(c.is?(bNx.has(c)&&(S=bNx.get(c),Q=S.listener,delete c[S.property],Q.type==="element"&&c.removeEventListener(Q.eventName,Q.handler),bNx.delete(c)),NEp(c)):c.__proto__==HTMLElement.prototype&&(c=new _.Yr("Rendererstamper removed a non custom element","Stamper: "+S+" element: "+(c&&c.nodeName)),_.i5(c)))};
$LH=function(S,c,Q,f){var U=c.node?c.node:c;_.Ur(Q).parentNode===U&&(c.removeChild(Q),KQY(S,Q,f));if(S=zs.get(Q))zs.delete(Q),_.Mq.cancelJob(S);Q.hidden=!1};
uDM=function(S,c,Q,f){if(c&&c.children&&(Q=c.children[Q]))if(_.gC("DEFERRED_DETACH"))for(;Q&&!zs.has(Q);){var U=S,a=c,X=Q,z=f;X.hidden=!0;U=_.HG(_.Mq,$LH.bind(null,U,a,X,z),0);zs.set(X,U);Q=Q.nextElementSibling}else for(;(X=c.lastElementChild)&&(c.removeChild(X),KQY(S,X,f),X!=Q););};
jLY=function(S){var c=_.EH("__slot-el");_.wC(function(){for(var Q=_.A(S.slotContent),f=Q.next();!f.done;f=Q.next())c.value.appendChild(f.value)});
return _.B("__slot-el",{el:c,skip:!0})};
_.xd=function(S,c,Q){Q=Q===void 0?lkY:Q;UX.add(c);var f;(f=Q).propNames!=null||(f.propNames=[]);var U=new Set(Q.propNames),a=v_Z();f=function(){var I=a.call(this)||this;I.props={};I.isUpdating=!1;I.hasAttached=!1;I.isInert=!1;I.updateQueued=!1;I.initialClasses=[];yTY(I,c);return I};
_.C(f,a);f.prototype.forwardKebabCaseProp=function(I,n){I=_.bx(I);if(U.has(I)||I==="children")this.props[I]=n};
f.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var I=_.A(this.initialClasses),n=I.next();!n.done;n=I.next())(n=n.value)&&this.classList.add(n);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
f.prototype.handleSlottedContent=function(){for(var I=new Map,n=_.A(this.children),b=n.next();!b.done;b=n.next()){b=b.value;var N=void 0,l=(N=b.getAttribute("slot"))!=null?N:"children";(N=I.get(l))?N.push(b):I.set(l,[b]);if(!b.getAttribute("key")){var H=void 0,q=void 0;b.setAttribute("key",l+"_"+((q=(H=N)==null?void 0:H.length)!=null?q:0))}}I=_.A(I);for(n=I.next();!n.done;n=I.next())b=_.A(n.value),n=b.next().value,b=b.next().value,this.forwardKebabCaseProp(n,_.B(jLY,{slotContent:b}))};
f.prototype.connectedCallback=function(){var I=this;if(!yTY(this,c)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var n=_.A(this.attributes),b=n.next();!b.done;b=n.next())b=b.value,this.forwardKebabCaseProp(b.name,kUZ(b));this.handleSlottedContent();Q.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){I.afterFirstPatch()});
this.hasAttached=!0}};
f.prototype.attributeChangedCallback=function(I,n,b){this.isInert||this.isUpdating||this.isConnected||I!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Hs(b.split(" ")))};
f.prototype.disconnectedCallback=function(){keM(this)};
f.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var I,n;ozR(this,_.B(S,Object.assign({},this.props,{idomKey:(n=(I=this.__incrementalDOMData)==null?void 0:I.key)!=null?n:c})),!0)}catch(N){var b=N instanceof Error?N:new _.Yr("Wiz rendering error");b.args||(b.args=[]);b.args.push("Error in deprecated web component wrapper");b.args.push(c.toLowerCase());_.sH(b);throw N;}finally{this.updateQueued=this.isUpdating=!1}}};
f.prototype.enqueueUpdate=function(){var I=this;return _.O(function(n){if(Q.synchronous)return I.update(),n.return();if(I.updateQueued)return n.return();I.updateQueued=!0;return n.return(Promise.resolve().then(function(){I.update()}))})};
f.prototype.notifyPath=function(){Q.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.Rh.Object.defineProperties(f,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var X=_.A(Q.propNames),z=X.next(),x={};!z.done;x={prop$jscomp$106:void 0},z=X.next())x.prop$jscomp$106=z.value,Object.defineProperty(f.prototype,x.prop$jscomp$106,{set:function(I){return function(n){this.isInert||n===this.props[I.prop$jscomp$106]||(this.props[I.prop$jscomp$106]=n,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(x)});
customElements.define(c,f)};
_.Ywr=function(S,c){return _.FT(S.entities,"markersEngagementPanelSyncEntity",c)};
C3p=function(S,c){return _.FT(S.entities,"fantasyWinProbabilityEntity",c)};
HNc=function(S,c){return _.FT(S.entities,"fantasyTeamEntity",c)};
DLz=function(S,c){return _.FT(S.entities,"fantasyPlayerEntity",c)};
pFZ=function(S,c){return _.FT(S.entities,"booleanEntity",c)};
hVH=function(S,c){return _.FT(S.entities,"qrCodeEntity",c)};
qwz=function(S){return _.FT(S.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
TEY=function(){if(Fi)return Fi;if(window.lottie)return Fi=Promise.resolve(window.lottie);var S=_.iH(_.WY("LOTTIE_URL"));return S?Fi=new Promise(function(c,Q){var f=document.createElement("script");f.addEventListener("load",function(){c(lottie)});
f.addEventListener("error",function(U){var a="Lottie library failed to load.";U?U.message&&(a+=" Original description: "+U.message,_.ZE(U,a)):U=Error(a);_.i5(U);Q(U)});
f.setAttribute("async","");_.eS(f,S);document.head.appendChild(f)}):Promise.reject(Error("th"))};
wFc=function(){return Fi?Fi:TEY()};
sLz=function(S){if(S)switch(S){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.u("kevlar_use_wil_icons"))return S=(S=qwz(_.V5().getState()))&&S.animationLightUrl&&S.animationDarkUrl?{name:"custom_animated_like_icon",nameDarkTheme:"custom_animated_like_icon_dark",path:S.animationLightUrl,pathDarkTheme:S.animationDarkUrl,lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"CUSTOM_LIKE",totalFrames:120,lazyLoad:!0}:void 0,S?S:B3.get("LIKE")}};
MhH=function(S){var c=sLz(S);if(c)return c;switch(S){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return B3.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return B3.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return B3.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return B3.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return B3.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return B3.get("NOTIFICATION_BELL")}};
ZNx=function(S,c){if(!S||iNM)c=!1;else{if(S.closest){var Q=!!sLz(c);Q=_.WY("ID_TOKEN")&&Q?!!S.closest("segmented-like-dislike-button-view-model"):!1}else Q=!1;if(!Q)if(S.closest)if(Q=!_.WY("ID_TOKEN"),S=S.closest("ytd-subscription-notification-toggle-button-renderer-next"),Q||!S)Q=!1;else{var f;Q=((f=S.data)==null?void 0:f.targetId)==="notification-bell"&&c!=="EXPAND_MORE"}else Q=!1;c=Q}return c};
GMz=function(S){var c,Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.X1(f,2),_.F(f,fetch(S),4);case 4:return c=f.yieldResult,_.F(f,c.json(),5);case 5:return f.return(f.yieldResult);case 2:Q=_.Bs(f),_.i5(Q),_.IN(f)}})};
WQZ=function(S,c){var Q,f,U;return _.O(function(a){if(a.nextAddress==1)return(Q=c?S.pathDarkTheme:S.path)?_.F(a,Promise.all([GMz(Q),TEY()]),2):a.return();f=a.yieldResult;U=f[0];IZ.set(Q,U);_.IN(a)})};
_.n4=function(){for(var S=_.YD.apply(0,arguments),c=!0,Q=_.A(S),f=Q.next();!f.done;f=Q.next())if(typeof f.value!=="string"){c=!1;break}return c?S.join(" ").trim()||void 0:function(){for(var U="",a=_.A(S),X=a.next();!X.done;X=a.next())if(X=X.value,typeof X==="function"&&(X=X()),X)if(typeof X==="string")U+=" "+X;else for(var z in X)if(X.hasOwnProperty(z)){var x=X[z];typeof x==="function"&&(x=x());x&&(U+=" "+z)}U=U.trim()||void 0;return _.Zf(U)}};
_.b8=function(S){var c;var Q=S.data;var f=S.className;var U=S.animationName;var a=S.animationRef;var X=(c=S.elRefForInterop)||_.EH("lottie-component"),z;_.wX(function(){var n;return void((n=z)==null?void 0:n.destroy())});
var x;_.To(function(){var n=_.Zf(U);if(n!==x){x=n;var b=Object.assign({},{animationName:n,animationRef:_.Zf(a)},_.Zf(Q));try{_.fl().resolve(gKz)().then(function(H){var q;(q=z)==null||q.destroy();q=b.animationRef;var w=b.listeners;H=H.loadAnimation(Object.assign({},{container:X.value},b.animationConfig));q&&(q.lottieEl=H);if(w)for(q=_.A(Object.entries(w)),w=q.next();!w.done;w=q.next()){var g=_.A(w.value);w=g.next().value;(g=g.next().value)&&H.addEventListener(w,g)}z=H})}catch(H){n=H;
var N="LottieComponent error.";n.message&&(N+=" Original description: "+n.message);_.ZE(n,N);_.i5(n);var l;((l=b.listeners)==null?0:l.error)&&b.listeners.error(n)}}},"Cu2JNe");
var I=_.n4("ytLottieComponentHost",f);return _.B(LYY,{cond:function(){return!c},
then:function(){return _.B("lottie-component",{class:I,el:X})}})};
kMR=function(S,c,Q,f){function U(X,z){if(c.value===z&&S!=null&&S.value){for(;S.value.firstChild;)S.value.removeChild(S.value.firstChild);S.value.classList.add("yt-spec-icon-shape");X(S.value,f)}}
Q=_.eVx(_.fl().resolve(_.FB),Q);if(typeof Q==="function")c.value=null,U(Q,null);else{var a=new _.n1(Q.then,Q);c.value=a;a.then(function(X){U(X,a)})}};
dLZ=function(S,c){var Q=document.createElement("div"),f=_.hS(Q,function(){return _.B(_.K,{cond:S,then:function(U){return _.B(rnT,{data:U,options:c})}})});
return[Q,f]};
_.No=function(){for(var S=[],c=_.A(_.YD.apply(0,arguments)),Q=c.next();!Q.done;Q=c.next())if(Q=Q.value)if(typeof Q==="string")S.push(Q);else{Q=_.A(Object.entries(Q));for(var f=Q.next();!f.done;f=Q.next()){var U=_.A(f.value);f=U.next().value;(U=U.next().value)&&S.push(f)}}return S.join(" ")};
EKH=function(S){var c=_.EH("animated-rolling-character"),Q=MR(),f=RY(S.character)||RY(S.previousCharacter);JOT(function(){if(S.marginMultiplier){var U;(U=Q.value)==null||U.cancel();f?(U=S.previousCharacter?Number(S.previousCharacter)+10:S.rollUp?0:30,S.shouldAnimate||(U-=vKz(S,U))):(U=S.rollUp?0:2,S.shouldAnimate||(U-=S.rollUp?-1:1));c.value.style.marginTop="-"+U*S.marginMultiplier+"px";S.shouldAnimate?Q.value=P3Z(c.value,S,U,f):c.value.style.display=S.character?"":"none"}});
return _.B("animated-rolling-character",{el:c,class:"animated-rolling-character-wiz"},m2(f,function(){for(var U=[],a=1;a<30;a++)U.push(_.B("div",null,a%10));return _.B(_.ak,null,_.B("div",null,"\u00a0"),U,_.B("div",null,"\u00a0"))},function(){return LQY(S.character)}))};
LQY=function(S){return _.B(_.ak,null,_.B("div",null,"\u00a0"),_.B(_.ak,null,m2(!S||_.Xo(S),function(){return _.B("div",null,"\u00a0")},function(){return _.B("div",null,S)})),_.B("div",null,"\u00a0"))};
P3Z=function(S,c,Q,f){Q=new Animation(new KeyframeEffect(S,[{transform:"translateY(0px)"},{transform:"translateY("+(f?vKz(c,Q):c.rollUp?-1:1)*c.marginMultiplier+"px)"}],thR),document.timeline);c.character?(S.style.display="",Q.onfinish=null):Q.onfinish=function(){S.style.display="none"};
Q.play();return Q};
vKz=function(S,c){var Q=Number(S.character)+10;if(S.previousCharacter)if(S.character){var f=Number(S.character),U=Number(S.previousCharacter);S=S.rollUp?U<f?Q:Q+10:U<f?Q-10:Q}else S=S.rollUp?30:0;else S=S.character==="0"?Q:S.rollUp?Q-10:Q+10;return c-S};
_.K4=function(S,c){return function(Q){var f={},U;for(U in Q){var a=void 0,X=void 0;((a=c)==null?0:(X=a.callbacks)==null?0:X[U])||(f[U]=Q[U])}return _.B(Njz,null,function(){for(var z in f)Q[z]=_.Zf(f[z]);Q.disableReactiveLogging=!0;return _.B(S,Object.assign({},Q))})}};
ynp=function(S,c,Q,f,U,a,X){Q=new Animation(new KeyframeEffect(S,[{transform:"translateY(0px)"},{transform:"translateY("+(a?Vhx(c,Q,f,U):f?-1:1)*X+"px)"}],RVp),document.timeline);c?(S.style.display="",Q.onfinish=null):Q.onfinish=function(){S.style.display="none"};
Q.play();return Q};
Vhx=function(S,c,Q,f){var U=Number(S)+10;c?S?(S=Number(S),c=Number(c),Q=Q?c<S?U:U+10:c<S?U-10:U):Q=Q?30:0:Q=S==="0"?U:Q?U-10:U+10;return f-Q};
mLY=function(S){var c=MR(),Q=MR();T_(function(){c.value=S.numberText;Q.value=S.numberValue},[S.numberText]);
var f=S.fontSizeMultiplier?S.heightPx*S.fontSizeMultiplier:S.heightPx,U=zbp(function(){if(S.numberText){var X=S.numberText;var z=S.forceRollUp||!Q.value||!S.numberValue||Q.value<S.numberValue;var x=!!S.shouldAnimate,I=c.value,n=[],b=0,N=0,l=(I?I.replace(/\D/g,"").length:0)-(X?X.replace(/\D/g,"").length:0);I=I?I.split(/(\d)/).filter(Boolean):[];for(X=X.split(/(\d)/).filter(Boolean);l<0;){var H=X[N];n.push({character:H,rollUp:z,marginMultiplier:f,shouldAnimate:x});N++;RY(H)&&l++}for(;b<l;)H=I[b],n.push({previousCharacter:H,
rollUp:z,marginMultiplier:f,shouldAnimate:x}),b++,RY(H)||l++;for(;N<X.length;)l=X[N],H=I[b],RY(l)===RY(H)?(N++,b++):RY(l)?(b++,l=void 0):RY(H)&&(N++,H=void 0),n.push({character:l,previousCharacter:H,rollUp:z,marginMultiplier:f,shouldAnimate:x});z=n}else z=[];return z},[S.numberText]),a=S.numberText?["height: "+f+"px;",
"line-height: "+S.heightPx+"px;"].join(" "):"";return _.B("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:a,dir:"ltr","aria-hidden":"true"},U.map(function(X){return _.B(oKr,Object.assign({},X))}))};
cxR=function(S){var c;return(c=SQR[S])!=null?c:"EVENT_SPAN_TYPE_UNKNOWN"};
Qer=function(S){var c=S.nodeName;if(S.id)return c+="#"+S.id;if(S.classList)for(var Q=_.A(S.classList),f=Q.next();!f.done;f=Q.next())c+="."+f.value;S.parentElement&&(c=Qer(S.parentElement)+" > "+c);return c};
fXY=function(S){return function(c){var Q=cxR(c.type);return Q==="EVENT_SPAN_TYPE_UNKNOWN"?S(c):Zwz("event",{type:Q,nodepath:c.target instanceof Element?Qer(c.target):void 0},function(){return S(c)})}};
_.$d=function(S){S&&s8p("event")&&(S=fXY(S));return twR(function(c){var Q,f=(Q=S)==null?void 0:Q(c);return typeof f==="boolean"?f:!0})};
jy=function(S){return function(){return S()?S():void 0}};
UQr=function(S){return new KeyframeEffect(S,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
Jxz=function(S){return new KeyframeEffect(S,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
_.l8=function(S){var c=md(function(Q){Q=Q?Ix(Q[0]):void 0;return _.ny(S(Q),void 0,"AwTxXe")},{isEqual:function(Q,f){return Ix(Q[0])===Ix(f[0])}});
return[function(){return c()[0]()},
function(Q){return void c()[1](Q)}]};
_.Yd=function(S){return function(){var c="",Q;for(Q in S){for(var f=S[Q];typeof f==="function";)f=f();f!==void 0&&f!==null&&(c+="; "+Q+": "+f)}return c.length>0?_.Zf(c.slice(2)):_.Zf()}};
aXH=function(S){switch(S){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"}};
zmp=function(S,c,Q,f,U,a){var X=Axx(S),z=X.disabled,x=X.iconPosition,I=X.style,n=X.focused,b=function(){return!!H()&&x()==="icon-only"},N=function(){return!!H()&&x()==="icon-only-40"},l=function(){return!!H()&&x()==="icon-with-label"},H=function(){return!!c||!(f==null||!f())};
return{type:function(){return I()==="call-to-action-inverse"?"text":I()==="overlay-dark"&&S().type!=="filled"&&S().type!=="tonal"?"tonal":S().type},
shouldFocus:function(){return(n()||(a==null?void 0:a()))&&!z()},
hasIconLeading:function(){return!!H()&&x()==="leading"},
hasIconTrailing:function(){return!!H()&&x()==="trailing"},
hasIconLeadingTrailing:function(){return!!H()&&!!(Q||U!=null&&U())&&x()==="leading-trailing"},
hasIconOnly:b,hasIconOnly40:N,hasIconWithLabel:l,iconButton:function(){return b()||N()||l()},
visiblyDisabled:function(){return(z()?"disabled":S().state)==="disabled"||z()},
overrideSmallSizeIcon:function(){return Xkz(S(),H())},
iconToRender:c?c:function(){return _.B(_.C4,{icon:f,size:function(){return H3(S(),!0)},
active:function(){return S().toggled},
iconFilter:function(){return OZY(S())}})},
secondaryIconToRender:Q?Q:function(){return _.B(_.C4,{icon:U,size:function(){return H3(S(),!0)},
active:function(){return S().toggled},
iconFilter:function(){return OZY(S())}})}}};
Axx=function(S){return{size:function(){return S().size},
style:function(){return S().style},
focused:function(){return S().focused},
disabled:function(){return S().disabled},
onTap:function(c){var Q,f;return(f=(Q=S()).onTap)==null?void 0:f.call(Q,c)},
alignByText:function(){return S().alignByText},
aTagConfig:function(){return S().aTagConfig},
customColors:function(){return S().customColors},
segmentedPosition:function(){return S().segmentedPosition},
toggled:function(){return S().toggled},
toggleable:function(){return S().toggleable},
accessibilityLabel:function(){return S().accessibilityLabel},
onToggle:function(c){var Q,f;return(f=(Q=S()).onToggle)==null?void 0:f.call(Q,c)},
iconPosition:function(){return S().iconPosition},
oneOffCustomTextWrap:function(){return S().oneOffCustomTextWrap},
disableTextEllipsis:function(){return S().disableTextEllipsis},
disableBackdropFilter:function(){return S().disableBackdropFilter},
tooltipText:function(){return S().tooltipText},
ariaHidden:function(){return S().ariaHidden},
tabIndex:function(){return S().tabIndex},
buttonText:function(){return S().buttonText},
formattedButtonText:function(){return S().formattedButtonText},
animatedTextProps:function(){return S().animatedTextProps}}};
xQT=function(S){return S.style==="overlay-dark"?4:S.style==="overlay"?S.type==="filled"?4:3:S.type==="filled"||S.style==="call-to-action-inverse"||S.style==="mono-inverse"?2:1};
Xkz=function(S,c){c=(S.iconPosition==="icon-only"||S.iconPosition==="icon-only-40"||S.iconPosition==="icon-with-label")&&c;return!S.segmentedPosition&&c&&S.size==="S"};
F7r=function(){return!_.u("web_disable_backdrop_filter")};
H3=function(S,c){switch(S.size){case "XS":return 16;case "S":return Xkz(S,c)?24:16;default:return 24}};
BzZ=function(S){switch(S){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"}};
IXZ=function(S){switch(S){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"}};
nXH=function(S){switch(S){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"}};
OZY=function(S){if(S.style==="overlay-dark"&&S.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
bZT=function(S){if(!S)return{};var c=S.color,Q=S.backgroundColor;S=S.borderColor;var f="";c&&(f+="color: "+c+";");Q&&(f+="background-color: "+Q+";");S&&(f+="border-color: "+S+";");return{style:f}};
jeM=function(S,c,Q){var f=S.buttonText,U=S.formattedButtonText,a=S.formattedButtonTextLegacy,X=S.animatedTextProps,z=S.style,x=S.size,I=S.focused,n=S.disabled,b=S.onTap,N=S.alignByText,l=S.aTagConfig,H=S.customColors,q=S.segmentedPosition,w=S.toggled,g=S.toggleable,r=S.accessibilityLabel,E=S.onToggle,v=S.iconPosition,t=S.oneOffCustomTextWrap,V=S.disableTextEllipsis,AZ=S.disableBackdropFilter,IH=S.tooltipText,Nr=S.ariaHidden,Hc=S.tabIndex,qr=S.state,wp=S.type;z==="call-to-action-inverse"&&(wp="text");
z==="overlay-dark"&&wp!=="filled"&&wp!=="tonal"&&(wp="tonal");var Pc=!!c&&v==="leading",ex=!!c&&v==="trailing",yd=!!c&&!!Q&&v==="leading-trailing",op=!!c&&v==="icon-only",DT=!!c&&v==="icon-only-40",B_=!!c&&v==="icon-with-label",zJ=op||DT||B_;n&&(qr="disabled");var Qp=qr==="disabled"||n;qr=Xkz(S,!!c);var xl={},xZ=(xl["yt-spec-button-shape-next"]=!0,xl[BzZ(wp)]=!0,xl[IXZ(z)]=!Qp,xl["yt-spec-button-shape-next--disabled"]=!!Qp,xl[nXH(x)]=!0,xl["yt-spec-button-shape-next--focused"]=!!I&&!n,xl["yt-spec-button-shape-next--icon-trailing"]=
ex,xl["yt-spec-button-shape-next--icon-leading"]=Pc,xl["yt-spec-button-shape-next--icon-leading-trailing"]=yd,xl["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=yd&&!(f||U),xl["yt-spec-button-shape-next--icon-button"]=op||B_,xl["yt-spec-button-shape-next--icon-only-default"]=DT,xl["yt-spec-button-shape-next--align-by-text"]=!!N,xl["yt-spec-button-shape-next--segmented-start"]=q==="start",xl["yt-spec-button-shape-next--segmented-end"]=q==="end",xl["yt-spec-button-shape-next--override-small-size-icon"]=
qr,xl["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=!!t,xl["yt-spec-button-shape-next--disable-text-ellipsis"]=!!V,xl["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!AZ&&F7r(),xl),hj=function(){if(X)jOZ(_.Nzp)(X);else if(a)a(v==="icon-with-label"||t?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(U){var t$=v==="icon-with-label"||t;Z5H(Object.assign({},U,t$?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:
{}),{noLinkColor:!0,noWrap:!t$})}else f&&Q0(f)},OT=function(t$){b==null||b(t$);
g&&(E==null||E(t$))},uu=l?K7r:$QM,sd=l?"aria-current$":"aria-pressed$",LT=function(){c&&(Pc||yd||zJ)&&function(){DL({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){c()})}();
(f||U||a||X)&&!zJ&&function(){DL({className:"yt-spec-button-shape-next__button-text-content"},function(){hj()})}();
ex&&function(){DL({className:"yt-spec-button-shape-next__icon"},function(){c()})}();
yd&&function(){DL({className:"yt-spec-button-shape-next__secondary-icon"},function(){Q()})}();
n||jOZ(_.p4)({model:{color:xQT(S)}})},Ci=function(){var t$={};
uu(Object.assign({},(t$.className=_.No(xZ),t$.onclick=l?void 0:OT,t$.disabled=n,t$["aria-disabled$"]=Qp,t$.style=n&&l?"pointer-events:none":void 0,t$[sd]=g?!!w:void 0,t$["aria-label$"]=r,t$.title$=IH!=null?IH:"",t$["aria-hidden$"]=Nr,t$.tabindex$=Hc,t$),l,bZT(H)),function(){LT()})};
B_?(x={},z=(x["yt-spec-button-shape-with-label"]=!0,x["yt-spec-button-shape-with-label--is-overlay"]=z==="overlay"||z==="overlay-dark",x),u7z({className:_.No(z)},function(){Ci();DL({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},hj)})):Ci()};
YQY=function(S,c){if(!Sd){var Q;ABz(function(){return Q=ndR(S,c)});
return Q}S.parent=lXp();return ndR(S,c)};
lXp=function(){var S=Hbp(Sd||void 0,FZZ);return CWZ(S)?void 0:S};
ha=function(S,c){_.WI(S,Object.assign({},c,{forceClickLogging:!0}))};
C$T=function(S,c,Q,f){var U=void 0;return function(a){var X=_.Gv(Q?S==null?void 0:S.onDisabledTap:S==null?void 0:S.onTap);if(X){var z;U=(z=U)!=null?z:c==null?void 0:c.value;if(X)if(_.u("web_button_vm_click_client_ve_killswitch"))ha(X,Object.assign({},{form:{element:U,event:a}},void 0));else{var x;z=X==null?void 0:X.clickTrackingParams;var I,n=S==null?void 0:(x=S.loggingDirectives)==null?void 0:(I=x.clientVeSpec)==null?void 0:I.uiType;x=n&&!z?_.qo(n):void 0;ha(X,Object.assign({},{form:{element:U,event:a}},
{clickedVisualElement:x}))}}f&&f(a)}};
HZo=function(S){switch(S){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"}};
DQR=function(S){switch(S){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"}};
pko=function(S){switch(S){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"}};
hmp=function(S){switch(S){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"}};
qQY=function(S,c){return _.FT(S.entities,"engagementToolbarStateEntityPayload",c)};
wkz=function(S){(S=_.Yz(S))&&_.Tzp(S)};
_.Tzp=function(S){var c=_.wN();c&&_.P2(c,S)};
seZ=function(S,c,Q){_.XF(S,"yt-open-popup-action",[c,Q||S])};
MFM=function(S,c){var Q=_.iW(S,"endpoint"),f=_.iW(S,"action");return(Q=f?f:Q)&&c&&(Q=c.navigationEndpointPopupMap[Q])&&(S=_.rC(Q,S),(Q=_.iW(S,"renderer"))&&c.supportedPopups.hasOwnProperty(Q))?{openPopupAction:{popupType:c.popupTypeMap[Q],popup:S}}:null};
iZM=function(S,c,Q,f){if(f){var U;Q=Q==null?void 0:(U=Q.data)==null?void 0:U.contents;(U=Q instanceof Array&&Q.length?Q[0]:Q)&&(Q=_.iW(U,"renderer"))&&f.supportedPopups.hasOwnProperty(Q)&&(c.stopPropagation(),seZ(S,{openPopupAction:{popupType:f.popupTypeMap[Q],popup:U}}))}};
W7x=function(S,c,Q,f){f=f===void 0?!1:f;var U=ZZp(c);if(U){U.href&&rh(U.href);var a=c.button;a=a!==void 0?a===0&&!Ts(c):!Ts(c);U.data&&a&&GPR(S,U,c,Q,f)}};
GPR=function(S,c,Q,f,U){U=U===void 0?!1:U;var a=_.a6("pbj_navigate_limit",-1)===0;gXx(c);_.fl().resolve(_.QS(kL));var X=c.data;if(Object.keys(X).length!==0)if(!_.u("unplugged_web_disable_actions_for_cec_endpoint")&&_.Y(X,_.II))_.u("endpoint_behavior_command_executor_fix_killswitch")||(Q.preventDefault(),Q.stopPropagation()),_.FF(S,[X],S);else if(f=MFM(X,f))X.loggingUrls&&X.loggingUrls.forEach(function(x){x.baseUrl&&_.vt(x.baseUrl)}),Q.preventDefault(),Q.stopPropagation(),seZ(S,f,c);
else{var z=emp(0,c.data,Q);if(S=c.getForm)S=S(),z.tempData=z.tempData||{},z.tempData=Object.assign({},z.tempData,S);S=_.t4(Q);if(f=S.find(function(x){return!!x.visualElement}))z.createScreenConfig=z.createScreenConfig||{},z.createScreenConfig.clickedVisualElement=f.visualElement;
if(!a)if(Q.preventDefault(),Q.stopPropagation(),_.Y(X,_.kPp)&&!U&&_.BI.instance)_.BI.instance.resolveCommand(X,z);else if(_.u("kevlar_command_handler_formatted_string")&&!U&&_.BI.instance&&rxY(X))U=S.find(function(x){return!!x.is})||Q.target,Q={form:Object.assign({},z,{event:Q,
element:U,originatingNode:c})},_.BI.instance.resolveCommand(X,Q);else{X=_.t4(Q);Q=[];for(U=0;U<X.length;U++)(a=X[U].is)&&Q.push(a);THZ({parents:Q.join(","),text:c.innerText},function(){_.Az(c,"yt-navigate",z)})}}};
dQc=function(S){if(S=ZZp(S))gXx(S),F8x(S.href)};
ZZp=function(S){S=_.t4(S);for(var c,Q=0;Q<S.length;Q++)if(c=S[Q],c.tagName==="A"&&c.classList.contains("yt-simple-endpoint")){if(!c.data)break;return c}return null};
Ts=function(S){return S.shiftKey||S.altKey||S.metaKey||S.ctrlKey};
vXY=function(S,c){var Q={itct:c.clickTrackingParams};_.u("kevlar_client_side_screens")&&(!_.Y(c,_.ll)||_.u("kevlar_exclude_endpoint_killswitch"))&&(Q.endpoint=JSON.stringify(c));_.u("enable_unknown_lact_fix_on_html5")&&_.fl().resolve(_.QS(_.wj))&&(Q.lact=_.f1());OsZ(Q);_.SL(S,Q)};
gXx=function(S){S.href&&Object.keys(S.data).length!==0&&vXY(S.href,S.data)};
rxY=function(S){for(var c=_.A(P$H),Q=c.next();!Q.done;Q=c.next())if(S[Q.value])return!1;return!0};
_.s2=function(S,c){if(c){var Q={};L7Z.forEach(function(f){f=EXo(c,f,"--yt-lightsource-");Object.assign(Q,f)});
tFM.forEach(function(f){f=EXo(c,f,"--yt-basic-");Object.assign(Q,f)});
_.Or(S,Q)}};
EXo=function(S,c,Q){var f={};f[Q+_.nP(c)]=S&&S[c]?_.gh(S[c]):"";return f};
_.i8=function(S,c,Q){Mo[S]||(Mo[S]={});Mo[S][c]=Q};
_.ZL=function(S){Mo[S]||(Mo[S]={});return Mo[S]};
VFp=function(S){if(!S)return{};var c=S.foregroundTitleColor,Q=S.backgroundColor;S=S.borderColor;var f="text";S?f="outline":Q&&(f="filled");return{type:f,customColors:{color:c?_.gh(c):void 0,backgroundColor:Q?_.gh(Q):void 0,borderColor:S?_.gh(S):void 0}}};
SlR=function(S){var c=S.renderer;var Q=S.element;var f=S.commandController;var U=S.onTapCallback;var a=S.skipCommandHandling;var X=S.overrides;var z=S.forceIcon;var x=S.forceModernIconButton;var I=S.forceDisabled;var n=S.isSubscribe===void 0?!1:S.isSubscribe;var b=S.isPressed===void 0?!1:S.isPressed;var N=S.useButtonSize===void 0?!1:S.useButtonSize;S=RmY(c);n&&(S.style="mono",S.type="filled");z=!c.icon||!z&&c.text?c.icon?c.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:x?"icon-only":"icon-only-40";z==="icon-only-40"&&(S.type="text");var l;x=Object;n=x.assign;N=yxo(c,N);b=!!c.isSelected||!_.u("web_propagate_is_pressed_killswitch")&&!!b;var H=c.isSelected!==void 0;I=I===void 0?c.isDisabled:I;var q=c.text?_.sX(c.text):void 0;var w,g,r,E=((w=c.accessibilityData)==null?void 0:(g=w.accessibilityData)==null?void 0:g.label)||((r=c.accessibility)==null?void 0:r.label);w=E?E:_.Em(c.text);Q=oXo(c,Q,f,U,a);f=mQp(c);f!=null&&f.length?(f=_.gH({innertubeCommand:lsz(f),
forceNewState:!0}),f=ew(f)?f:void 0):f=void 0;return n.call(x,{},S,N,{iconPosition:z},X,{focused:!1,toggled:b,toggleable:H,disabled:I,formattedButtonText:q,accessibilityLabel:w,onTap:Q,aTagConfig:f},VFp((l=c.colorData)==null?void 0:l.basicColorPaletteData),{oneOffCustomTextWrap:c.oneOffCustomTextWrap})};
oXo=function(S,c,Q,f,U){return function(a){var X=mQp(S);f(X,a);if(!U){X=_.A(X);for(var z=X.next();!z.done;z=X.next())ha(z.value,{form:{element:c,event:a},commandController:Q})}}};
mQp=function(S){var c=[];S.command&&c.push(S.command);S.serviceEndpoint&&c.push(S.serviceEndpoint);S.navigationEndpoint&&c.push(S.navigationEndpoint);return c};
yxo=function(S,c){if(c)switch(S.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(S.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
RmY=function(S){switch(S.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"}}};
_.Gs=function(S){return _.uQ(function(){SSo()();return LU(S)},void 0,"Icv7j")};
W3=function(S,c){return _.FT(S.entities,"likeStatusEntity",c)};
cyc=function(S,c){return _.FT(S.entities,"likeCountEntity",c)};
_.Qyx=function(S,c){return _.FT(S.entities,"stringEntity",c)};
fGp=function(S,c){if(!S)return!1;var Q,f=(Q=_.Y(S,_.b2))==null?void 0:Q.signal;if(f&&c.signalEndpointMap)return!!c.signalEndpointMap[f];var U;if((Q=(U=_.Y(S,_.gj))==null?void 0:U.request)&&c.continuationEndpointMap)return!!c.continuationEndpointMap[Q];for(var a in S)if(c.commandEndpointMap[a])return!0;return!1};
Ubp=function(S,c){if(c.streamingEndpointMap)for(var Q in S)if(c.streamingEndpointMap[Q]&&(S=c.streamingEndpointMap[Q]))return S()};
Jyr=function(S,c){var Q,f=(Q=_.Y(S,_.b2))==null?void 0:Q.signal;if(f&&c.signalEndpointMap&&(Q=c.signalEndpointMap[f]))return Q();var U;if((Q=(U=_.Y(S,_.gj))==null?void 0:U.request)&&c.continuationEndpointMap&&(U=c.continuationEndpointMap[Q]))return U();for(var a in S)if(c.commandEndpointMap[a]&&(S=c.commandEndpointMap[a]))return S()};
aGZ=function(S){var c={"Content-Type":"application/json"};_.WY("EOM_VISITOR_DATA")?c["X-Goog-EOM-Visitor-Id"]=_.WY("EOM_VISITOR_DATA"):_.WY("VISITOR_DATA")&&(c["X-Goog-Visitor-Id"]=_.WY("VISITOR_DATA"));c["X-Youtube-Bootstrap-Logged-In"]=_.WY("LOGGED_IN",!1);_.WY("DEBUG_SETTINGS_METADATA")&&(c["X-Debug-Settings-Metadata"]=_.WY("DEBUG_SETTINGS_METADATA"));S!=="cors"&&((S=_.WY("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(c["X-Youtube-Client-Name"]=S),(S=_.WY("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(c["X-Youtube-Client-Version"]=
S),(S=_.WY("CHROME_CONNECTED_HEADER"))&&(c["X-Youtube-Chrome-Connected"]=S),(S=_.WY("DOMAIN_ADMIN_STATE"))&&(c["X-Youtube-Domain-Admin-State"]=S),_.gC("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(S=_.WY("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(c["X-YouTube-Lava-Device-Context"]=S));return c};
Ayc=function(S,c){c.watchNextResponse||c.reelItemWatchResponse?c.watchNextResponse?S.content=c.watchNextResponse:S.content=c.reelItemWatchResponse:c.playerResponse?S.player=c.playerResponse:c.reelWatchSequenceResponse&&(S.reelSequence=c.reelWatchSequenceResponse)};
_.ey=function(S){if(!S)return null;for(var c=[],Q=0;Q<S.textSegments.length;Q++){var f=S.textSegments[Q];f.text?c.push(f):f.emojiId&&c.push({emoji_id:f.emojiId})}return{text_segments:c}};
F_x=function(S,c,Q,f,U,a,X){a=a===void 0?[]:a;var z=new _.kd;z.endpoint=Q;if(!Q)return _.MP(new _.Yr("handle undefined endpoint",c.tagName)),z;var x=eoZ(Q);x.length&&(_.FF(S,x,c,f),z.actions=x);Q.loggingUrls&&Q.loggingUrls.forEach(function(n){n.baseUrl&&Pt(n.baseUrl,n.attributionSrcMode)});
x=!_.u("web_skip_impression_click_killswitch")&&f&&f.impression;if(Q.clickTrackingParams&&!X4c(Q)&&!OdZ(c)&&!x&&(x=_.Kv(),!_.rj(x,c))){var I=c.getScreenLayer&&c.getScreenLayer();I?x.clickCommand(Q,null,I):x.clickCommand(Q,null)}x=!1;for(I=0;I<a.length;I++)if((0,a[I])(c,Q,f)){x=!0;break}!x&&zNz(Q)&&(z.ajaxPromise=xbY(S,c,Q,f,U,X));return z};
OdZ=function(S){var c;return(S=(c=S.data)==null?void 0:c.navigationEndpoint)&&!!S.clickTrackingParams};
X4c=function(S){var c=_.Y(S,_.b2);if(c&&(c=c.signal)&&BRr.indexOf(c)>=0)return!0;for(var Q in S)if(IGT.indexOf(Q)>=0)return!0;return!1};
zNz=function(S){var c;if(((c=_.Y(S,_.b2))==null?void 0:c.signal)==="CLIENT_SIGNAL")return!1;for(var Q in S)if(nSp.indexOf(Q)>=0)return!1;S=Object.keys(S);return S.length===1&&S[0]==="loggingUrls"?!1:!0};
YlT=function(S,c,Q,f,U,a,X){var z=_.dj.instance;if(z&&_.v3(z,f))var x=_.P3(z,f,U).then(function(n){return(n==null?0:n.data)?n:{data:n}});
else x=S.requestDataForServiceEndpoint(f,U),_.Y(f,bdY)||_.Y(f,NRZ)||_.Y(f,_.K_Y)||_.Y(f,$bc)||_.i5(new _.Yr("No RequestBuilder for endpoint",f));var I=_.L4();I.promise.thenCatch(function(){var n=_.iW(f,"action")||_.iW(f,"command")||_.iW(f,"endpoint");n&&(n=f[n],n.hasOwnProperty("onFailureAction")?_.FF(c,[n.onFailureAction],Q):n.hasOwnProperty("onFailureCommand")&&_.FF(c,n.onFailureCommand,Q));x.cancel("Resolver promise rejected")});
x.then(function(n){if(n){var b=n.error;if(b){if(a&&a.onServerError)a.onServerError(f,n);I.reject(new _.Yr("Response error",f,b))}else if(n=n.data)if(b=n.error){if(a&&a.onServerError)a.onServerError(f,n);I.reject(new _.Yr("Returned error",f,b))}else{uko(c,Q,n,f);jyz(n);if(b=gzR(n))for(var N=_.A(b),l=N.next();!l.done;l=N.next()){l=l.value;var H=_.fl().resolve(_.QS(lGT))||E2;if(!_.dj.instance||!H.some(function(w){return!!_.Y(f,w)})||_.u("kevlar_response_processor_allowlist_killswitch")){var q=H=void 0;
((q=_.Y((H=l)==null?void 0:H.commandMetadata,_.Qw))==null?0:q.sendPost)?_.xt(c,[l]):_.FF(c,[l],Q)}}(N=_.Y(n==null?void 0:n.frameworkUpdates,ta))&&X&&X(N);if(a&&a.onSuccess)a.onSuccess(f,n);I.resolve(new _.Vn(n,b))}}else I.reject(new _.Yr("Invalid service endpoint provided",f))},function(n){I.reject(n)});
return I.promise};
jyz=function(S){var c;(S=(c=_.Y(S==null?void 0:S.onResponseReceivedCommand,_.CCR))==null?void 0:c.continuationItems)&&(S==null?void 0:S.length)===1&&_.Y(S[0],HdM)&&_.i2("so_r",void 0,"search_overview_answer")};
xbY=function(S,c,Q,f,U,a){var X;return(X=c.getNetworkManager&&c.getNetworkManager()?c.getNetworkManager():_.fl().resolve(_.QS(_.s_)))?YlT(X,S,c,Q,f,U,a):_.pv("No network manager.")};
uko=function(S,c,Q,f){if(Q=Q.trackingParams||Q.loggingDirectives&&Q.loggingDirectives.trackingParams){var U;(_.Y(f,DbY)||_.Y(f,p4Z)||_.Y(f,hNz))&&f.clickTrackingParams?U=_.Yz(f.clickTrackingParams):_.u("web_graft_to_parent_command")&&f.clickTrackingParams&&(U=_.Yz(f.clickTrackingParams));var a;f=(a=c.getScreenLayer)==null?void 0:a.call(c);c=_.Kv().graftServerVe(Q,U,f);_.Oz(S,"yt-store-grafted-ve-action",[c])}};
_.qlo=function(S){var c=new Image;return new _.n1(function(Q,f){c.addEventListener("load",function(){Q()});
c.addEventListener("error",function(){f()});
c.src=S})};
TRz=function(S){return!!S};
w4p=function(S){return!!S};
syp=function(S,c,Q){var f=S.rowIndex;f!==void 0&&_.Oz(S.hostElement,"yt-section-reactive-dismissal",[f,c,Q])};
_.RZ=function(S,c,Q){S=_.A(S);for(var f=S.next();!f.done;f=S.next()){f=f.value;if(f===c)break;for(var U=_.A(Q),a=U.next();!a.done;a=U.next())if(a=a.value,f.tagName===a||!_.u("web_event_button_role_check_killswitch")&&f.role==="button"&&a==="BUTTON")return!0}return!1};
_.yn=function(S,c,Q){S=_.A(S);for(var f=S.next();!f.done;f=S.next()){f=f.value;if(f===c)break;for(var U=_.A(Q),a=U.next();!a.done;a=U.next())if(f.id===a.value)return!0}return!1};
MqR=function(S,c){if(!S&&!c)return"medium";S=Math.max(S||0,c||0);return S>=256?"large":S>=96?"medium":"small"};
idz=function(S){switch(S){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.S9=function(){var S=_.fl().resolve(_.QS(_.oZ));return S?(S=S.getCurrentPage())?_.mZ(S):null:null};
_.cK=function(){var S=_.S9();if(!S){var c=_.fl().resolve(_.QS(_.oZ)),Q=c?typeof c:"no page manager";c=c?c.getCurrentPage():null;Q=new _.Yr("Player is missing when requested.",Q,c?c.tagName:"no page");_.sH(Q)}return S};
_.mZ=function(S){return S&&S.getPlayer?S.getPlayer():null};
Zdp=function(S,c){S={args:{raw_player_response:S}};c&&(S.args=Object.assign({},S.args,c));return S};
GBz=function(S){if(S.args){if(S.args.raw_player_response)return S.args.raw_player_response;if(S.args.player_response)return JSON.parse(S.args.player_response)}};
_.W_H=function(S,c){var Q={url:"/watch?v="+S.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};S.playlistId&&(Q.url+="&list="+S.playlistId);S.playerParams&&(Q.url+="&pp="+S.playerParams);S={watchEndpoint:S,commandMetadata:{webCommandMetadata:Q}};c&&(S.clickTrackingParams=c);return S};
eNz=function(){return gST||!!_.rC("yt.player.Application")};
ryH=function(){return kBo||!!document.querySelector("link#player-css")};
vSz=function(){function S(){gST=!0;dbp.resolve()}
var c,Q;return _.O(function(f){dbp||(dbp=new _.O_,eNz()?S():(c=document.createElement("script"),c.addEventListener("load",S),Q=_.p9(_.WY("PLAYER_JS_URL")),_.eS(c,Q),document.head.appendChild(c)));return f.return(dbp.promise)})};
L_r=function(){function S(){kBo=!0;PCY.resolve()}
if(!PCY)if(PCY=new _.O_,ryH())S();else{var c=document.createElement("link");c.id="player-css";c.addEventListener("load",S);var Q=_.p9(_.WY("PLAYER_CSS_URL"));_.d_(c,Q,"stylesheet");document.head.appendChild(c)}return PCY.promise};
ESY=function(){return eNz()&&ryH()?Promise.resolve([]):Promise.all([vSz(),L_r()])};
tqz=function(S,c,Q){var f={args:{}};S&&(f.args.raw_player_response=S);c&&(f.args.raw_watch_next_response=c);Q&&(f.args=Object.assign({},f.args,Q));return f};
oSo=function(S,c,Q){var f=!1;f=f===void 0?!0:f;S=typeof S==="string"?_.Q8(document,S):S;var U=VqR+"_"+_.Qd(S),a=RNz[U];if(a&&f)return yyM(c,Q)?a.api.loadVideoByPlayerVars(c.args||null):a.loadNewVideoConfig(c),a.api;a=new fS(S,U,c,Q,void 0);RNz[U]=a;a.addOnDisposeCallback(function(){delete RNz[a.getId()]});
return a.api};
yyM=function(S,c){return c&&c.serializedExperimentFlags?c.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):S&&S.args&&S.args.fflags?S.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
mbR=function(){var S=new _.O_;S.resolved=!1;var c=S.resolve;S.resolve=function(Q){S.resolved=!0;c(Q)};
return S};
c0z=function(S){var c={};SgY().install((c.document_disposed={callback:S},c))};
Ue=function(S,c){if(!S&&Math.random()<=_.a6("kevlar_unified_player_logging_threshold")){S=Error("vh`"+(c?c:"Unspecified error"));if(_.u("kevlar_unified_player_throw_errors"))throw S;_.i5(S)}};
_.QGc=function(){var S=_.rC("ytDebugData.callbacks");S||(S={},_.m5("ytDebugData.callbacks",S));return S};
UeY=function(S,c){var Q=_.QGc();if(_.u("web_dd_iu")||fdz.includes(S))Q[S]=c};
J0H=function(){return _.O(function(S){return S.return({isLeader:_.DBr(_.V5().getState()),c:_.WY("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.WY("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
adZ=function(){var S;_.O(function(c){if(c.nextAddress==1)return UeY("APP_STATE",J0H),_.F(c,_.fl().resolve(_.J8),2);S=c.yieldResult;UeY("PI",function(){return _.O(function(Q){return Q.return(S.getVideoStats())})});
_.IN(c)})};
A0Y=function(S){var c=_.m1(_.dN(_.QY.location.href));S=_.m1(_.dN(S));return _.u("kevlar_clear_non_displayable_url_params")?c==ai(S):ai(c)==ai(S)};
ai=function(S){var c=_.XSo(S);S=S.slice(0);var Q=["frags"];_.u("kevlar_hide_pp_url_param")&&Q.push("pp");_.u("kevlar_hide_time_continue_url_param")&&Q.push("time_continue");Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next())f=f.value,S=_.c2(_.m1(S),f);return _.m1(S)+(c?"#"+c:"")};
A8=function(S,c){c=Number(c)*1E3;var Q=Math.round((0,_.Qk)()),f=Q.toString();S={innertubeResponse:S,serverDateTimestampMs:f,lastModifiedTimestampMs:f,expireTimestampMs:(Q+c).toString()};if(c=_.WY("INNERTUBE_CONTEXT_CLIENT_NAME"))S.clientName=c;return S};
zLc=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++OoH};
_.xep=function(){var S=_.T$(),c=_.wN();c&&S&&_.Ez(c,[S],!0)};
BWY=function(S){return S&&F$M.some(function(c){return S.includes(c)})};
$ex=function(S){var c=_.Y(S,_.rQ);if(!c)return!1;var Q=c.url,f=c.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!Q)return _.sH(Error("Ah")),!1;if(c.target==="TARGET_NEW_WINDOW"){var U={};_.u("resolve_url_parent_tracking_params")&&(!_.ok(Q)||mA(window.location.href,Q))&&(U={endpoint:S,itct:S.clickTrackingParams});OsZ(U);S=null;try{if(f)return S=_.NLz(Q,"_blank",U,void 0,f),IdY(_.fl().resolve(nVp),S,Q),!0}catch(N){_.sH(N)}_.SL(Q,U);c={target:"_blank",noopener:_.u("set_window_noopener_ks")&&
!c.allowOpener};S=window;f=In(Q)?Q:_.jS(typeof Q.href!="undefined"?Q.href:String(Q));U=self.crossOriginIsolated!==void 0;var a="strict-origin-when-cross-origin";window.Request&&(a=(new Request("/")).referrerPolicy);var X=c.noreferrer;if(U&&X&&a==="unsafe-url")throw Error("re");a=X&&!U;X=c.target||Q.target;var z=[],x=[],I=!1;for(b in c){var n=c[b];switch(b){case "width":case "height":case "top":case "left":z.push(b+"="+n);break;case "target":break;case "noopener":case "noreferrer":n?x.push(b):(I=!0,
x.push(b+"=false"));break;case "attributionsrc":z.push(b+(n?"="+n:""));break;default:z.push(b+"="+(n?1:0))}}var b=X!==void 0&&!["_blank","_self","_top","_parent",""].includes(X);b=pz()&&b;boo&&U&&z.length===0&&x.length>0&&!b&&!I?(x.length===2&&(x=["noreferrer"]),_.sy(S,f,X,x[0]),S=NWo()):(b=z.join(","),_.iM()&&S.navigator&&S.navigator.standalone&&X&&X!="_self"?(b=_.Nf("A"),DQ(b,f),b.target=X,a&&(b.rel="noreferrer"),((c=c.attributionsrc)||c==="")&&b.setAttribute("attributionsrc",c),c=document.createEvent("MouseEvent"),
c.initMouseEvent("click",!0,!0,S,1),b.dispatchEvent(c),S=NWo()):a?(S=_.sy(S,"",X,b),c=_.nc(f),S&&(S.opener=null,c===""&&(c="javascript:''"),c='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+XZ(c)+'">',c=h5(c),(f=S.document)&&f.write&&(f.write(qg(c)),f.close()))):((S=_.sy(S,f,X,b))&&c.noopener&&(S.opener=null),S&&c.noreferrer&&(S.opener=null)));IdY(_.fl().resolve(nVp),S,Q);return!0}c=_.Bi(Q);c=BWY(c)||Q==="https://studio.youtube.com/";f=!(!_.ok(Q)||mA(window.location.href,
Q));b=Q.indexOf("disable_polymer=1")>=0;if(f||b||c)rh(Q),wS(),_.dh(Q,void 0,void 0,window.top,K$Y);else return _.i5(new _.Yr("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",S)),!1;return!0};
_.ldz=function(S,c){c=c===void 0?0:c;if(!(_.Y(S,utY)||_.Y(S,jGc)||_.Y(S,_.rQ)&&_.Y(S,_.rQ).url))return!1;var Q,f=(Q=_.Y(S,_.rQ))==null?void 0:Q.url;Q=f?{externalLinkData:{url:f}}:null;return _.Kv().clickCommand(S,Q,c)};
YgY=function(S,c){return _.FT(S.entities,"subscriptionStateEntity",c)};
Cax=function(S,c){return _.FT(S.entities,"subscriptionNotificationStateEntity",c)};
Hop=function(S,c){return _.FT(S.entities,"upcomingEventReminderStateEntity",c)};
Dez=function(S,c){return _.FT(S.entities,"engagementToolbarSurfaceEntityPayload",c)};
pSp=function(S,c){return _.FT(S.entities,"triStateButtonStateEntityPayload",c)};
hLc=function(S,c){return _.FT(S.entities,"commerceCartCheckoutButtonEntity",c)};
_.qgT=function(S,c){return _.FT(S.entities,"playlistLoopStateEntity",c)};
TWY=function(S,c){return _.FT(S.entities,"commandEntity",c)};
sGZ=function(S,c,Q,f,U){U=U===void 0?{}:U;return function(a){var X,z;var x=((X=S.loggingDirectives)==null?0:(z=X.clientVeSpec)==null?0:z.uiType)?_.qo(S.loggingDirectives.clientVeSpec.uiType):void 0;U.clickedVisualElement||(U.clickedVisualElement=x);x=wSx(S,c);Q(x,a);x=_.A(x);for(X=x.next();!X.done;X=x.next()){X=X.value;z=f;var I=a,n=U;n.form?n.form.event=I:n.form={element:z,event:I};ha(X,n)}}};
wSx=function(S,c){var Q=[];c?(S.toggledCommand&&Q.push(S.toggledCommand),S.toggledServiceEndpoint&&Q.push(S.toggledServiceEndpoint)):(S.defaultCommand&&Q.push(S.defaultCommand),S.defaultServiceEndpoint&&Q.push(S.defaultServiceEndpoint),S.defaultNavigationEndpoint&&Q.push(S.defaultNavigationEndpoint));return Q};
MMp=function(S,c){var Q=S.toggledStyle||S.style,f;switch((f=c?Q:S.style)==null?void 0:f.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"}}};
_.Oe=function(){return _.O(function(S){return S.nextAddress==1?_.F(S,_.fl().resolve(_.J8),2):S.return(_.fl().resolve(ioR)())})};
_.zI=function(){return _.fl().resolve(ioR)()};
_.xa=function(){return sp(function(){return{lottieEl:void 0}})};
Zoo=function(S,c){return S.startsWith(c.uniqueId)};
G5o=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,_.Oe(),2);c=f.yieldResult;if((Q=c)==null||!Q.addEventListener)return FZ(),f.return();c.addEventListener("onCueRangeEnter",S);_.IN(f)})};
W$Y=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,_.Oe(),2);c=f.yieldResult;if((Q=c)==null||!Q.removeEventListener)return FZ(),f.return();c.removeEventListener("onCueRangeEnter",S);_.IN(f)})};
gVo=function(S){var c,Q,f,U,a;_.O(function(X){if(X.nextAddress==1)return _.F(X,_.Oe(),2);c=X.yieldResult;if((Q=c)==null||!Q.addCueRange)return FZ(),X.return();f=_.A(S.timings);for(U=f.next();!U.done;U=f.next())a=U.value,c.addCueRange(S.uniqueId+"-"+a,a/1E3,(a+100)/1E3);_.IN(X)})};
eLo=function(S){var c,Q,f,U,a;_.O(function(X){if(X.nextAddress==1)return _.F(X,_.Oe(),2);c=X.yieldResult;if((Q=c)==null||!Q.removeCueRange)return FZ(),X.return();f=_.A(S.timings);for(U=f.next();!U.done;U=f.next())a=U.value,c.removeCueRange(S.uniqueId+"-"+a);_.IN(X)})};
k5c=function(){var S,c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,_.Oe(),2);S=f.yieldResult;if((c=S)==null||!c.getPlayerState)return FZ(),f.return();Q=S.getPlayerState();return f.return(Q===2)})};
FZ=function(){_.i5(new _.Yr("Smartimation player does not exist or is corrupted"))};
r0Y=function(){try{var S;return(S=window.CSS)!=null&&S.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(c){return _.i5(new _.Yr("Smartimation CSS.supports threw an error")),!1}};
VMM=function(S,c,Q,f,U){var a=S.playlistId?deM:vVY;c=c();Q=Q();U=!!S.videoId&&U()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.jD(c))return PaM({data:S,actionType:a,disabled:U},Q);if(S.videoId&&f())return L$Y({data:S,actionType:a,disabled:U});switch(c){case "TRANSFER_STATE_UNKNOWN":return L$Y({data:S,actionType:a,disabled:U});case "TRANSFER_STATE_FAILED":return S.videoId?EVz({data:S,actionType:a,disabled:U}):tMo({data:S,actionType:a,disabled:U});case "TRANSFER_STATE_COMPLETE":return tMo({data:S,
actionType:a,disabled:U});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return PaM({data:S,actionType:a,disabled:U},Q);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return S.videoId?EVz({data:S,actionType:a,disabled:U}):L$Y({data:S,actionType:a,disabled:U});default:return L$Y({data:S,actionType:a,disabled:U})}};
RLz=function(S,c){var Q=S.onTapCommand,f=_.Gv(Q);if(S.videoId&&_.Y(f,_.BK))return _.Y(f,_.BK).action=c,Q;S.playlistId&&_.Y(f,_.Ii)&&(_.Y(f,_.Ii).action=c);return Q};
L$Y=function(S){var c=S.data;var Q=S.actionType;S=S.disabled;return{text:y0o,iconType:"OFFLINE_DOWNLOAD",onTap:RLz(c,Q.ACTION_ADD),disabled:S}};
PaM=function(S,c){var Q=S.data;var f=S.actionType;S=S.disabled;var U="OFFLINE_DOWNLOAD";c>=0&&c<=.1?U="OFFLINE_DOWNLOADING_ZERO":c>.1&&c<=.3?U="OFFLINE_DOWNLOADING_TWENTY":c>.3&&c<=.5?U="OFFLINE_DOWNLOADING_FORTY":c>.5&&c<=.7?U="OFFLINE_DOWNLOADING_SIXTY":c>.7&&c<1?U="OFFLINE_DOWNLOADING_EIGHTY":c===1&&(U="OFFLINE_PIN");return{text:oVY,iconType:U,onTap:RLz(Q,f.ACTION_REMOVE_WITH_PROMPT),disabled:S}};
tMo=function(S){var c=S.data;var Q=S.actionType;S=S.disabled;return{text:mex,iconType:"OFFLINE_PIN",onTap:RLz(c,Q.ACTION_REMOVE_WITH_PROMPT),disabled:S}};
EVz=function(S){var c=S.data;var Q=S.actionType;S=S.disabled;return{text:SDp,iconType:"OFFLINE_DOWNLOAD",onTap:RLz(c,Q.ACTION_RETRY),disabled:S}};
UhY=function(S){var c=cJc;QET.push(S);fHz||(c(function(){for(var Q=_.A(QET),f=Q.next();!f.done;f=Q.next())f=f.value,f();QET.length=0;fHz=!1}),fHz=!0)};
cJc=function(S){Promise.resolve().then(S)};
nS=function(S){S=_.A(zDc(S));var c=S.next().value,Q=S.next().value,f=!1;_.wC(function(){return function(){f=!0}});
return[c,function(U){UhY(function(){f&&!_.u("cow_prevent_state_setter_after_cleanup_killswitch")||Q(U)})}]};
JJZ=function(){var S=_.A(nS(!1)),c=S.next().value,Q=S.next().value;return function(){Q(!c)}};
aHx=function(S){return sp(function(){return{value:S}})};
AJZ=function(S,c){var Q=aHx(S),f=aHx(c);T_(function(){Q.value=S},[S]);
T_(function(){f.value=c},c&&c.length>=1?c:[void 0]);
var U=sp(function(){return{value:void 0}});
if(S!==Q.value||f.value!==c||U.value===void 0)U.value=LU(S,c);var a=JJZ();_.wC(function(){function X(){var x=LU(Q.value,c);x!==U.value&&(U.value=x,a())}
var z=_.P0().subscribe(X);X();return z});
return U.value};
_.b9=function(S,c){var Q=SSo();return _.uQ(function(){Q();return LU(S,[_.Zf(c)||""])},void 0,"HaeHEc")};
XWY=function(S){var c=_.b9(_.iZ,function(){return S().videoId}),Q=_.b9(_.Z8,function(){return S().playlistId});
return function(){return S().videoId?c:S().playlistId?Q:_.A(_.ny("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
OIY=function(S){var c=_.b9(Gh,function(){return S().videoId}),Q=_.b9(_.HkH,function(){return S().playlistId});
return function(){return S().videoId?c:S().playlistId?Q:_.A(_.ny(0,void 0,"K4tgOc")).next().value}};
zcR=function(S){var c=_.b9(_.MTM,function(){return S().videoId});
return function(){return S().videoId?c:_.A(_.ny(!1,void 0,"Oaxwcf")).next().value}};
xhz=function(S){var c=_.b9(hOz,function(){return S().videoId});
return function(){return S().videoId?c:_.A(_.ny("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
FjY=function(){return{}};
BfY=function(){var S,c;return(c=(S=_.fl().resolve(_.QS(_.Lv)))==null?void 0:S())!=null?c:!1};
nWY=function(S,c){S=S===void 0?IHZ:S;switch(c.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},S,{isOpen:c.payload});default:return S}};
NfZ=function(S,c){S=S===void 0?bIx:S;switch(c.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},S,{isAllowed:c.payload});default:return S}};
$ho=function(S,c){S=S===void 0?Kjr:S;switch(c.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},S,{errorMessage:c.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},S,{title:c.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},S,{privacy:c.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},S,{isDisabled:c.payload});default:return S}};
jEz=function(S,c){S=S===void 0?u0z:S;switch(c.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},S,{isOpen:c.payload});default:return S}};
YDc=function(S,c){S=S===void 0?lHo:S;switch(c.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},S,{isFullscreen:c.payload});case "SET_NAVIGATION_BUTTON":var Q=c.payload.targetId,f=Object.assign({},S.navigationButtons);f[Q]=c.payload.button;return Object.assign({},S,{navigationButtons:f});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},S,{topPanelId:c.payload});case "SET_SECONDARY_HEADER":return Q=c.payload.panelId,f=Object.assign({},S.secondaryHeader),f[Q]=c.payload.secondaryHeader,
Object.assign({},S,{secondaryHeader:f});default:return S}};
pWR=function(){return Bd(Object.assign({},{entities:a2Y,voiceSearch:$iM,engagementPanel:YDc,bottomSheet:nWY,cinematicSetting:NfZ,shorts:pLY,drawerLayout:jEz,createPlaylist:$ho,locationCollection:C_Z,reportChannel:HIp,reportForm:DhM},heH))};
hcz=function(S,c){_.Mq.addLowPriorityJob(function(){var Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:return _.X1(a,2),_.F(a,TEY(),4);case 4:return _.F(a,fetch(S),5);case 5:return Q=a.yieldResult,_.F(a,Q.json(),6);case 6:f=a.yieldResult;IZ.set(S,f);requestAnimationFrame(function(){c(f)});
_.Pi(a,0);break;case 2:U=_.Bs(a),_.i5(U),_.IN(a)}})})};
qDp=function(S){var c={animationConfig:{},listeners:{}},Q=function(){S(!0)};
c.listeners.data_failed=Q;c.listeners.error=Q;c.listeners.data_ready=function(){S(!1)};
return c};
sEc=function(S){var c=S.model;var Q=S.subscribed;var f=S.isOverlay;var U=S.element;var a=S.commandController;var X=S.notificationState;if(Q){var z,x;var I=(c==null?void 0:(z=c.buttonStyle)==null?void 0:z.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:c==null?void 0:(x=c.unsubscribeButtonContent)==null?void 0:x.buttonText}else{var n;I=c==null?void 0:(n=c.subscribeButtonContent)==null?void 0:n.buttonText}a:{var b;switch(c==null?void 0:(b=c.buttonStyle)==
null?void 0:b.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":z="S";break a;default:z="M"}}a:if(f)f="overlay";else switch(c.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":f="overlay";break a;default:f="mono"}a:if(Q)var N="tonal";else switch((N=c.buttonStyle)==
null?void 0:N.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":N="tonal";break a;default:N="filled"}return{style:f,type:N,state:c.disableSubscribeButton?"disabled":"active",size:z,focused:S.focused,toggled:Q,accessibilityLabel:TfH(c,Q,X),buttonText:I,iconPosition:c.disableNotificationBell?"none":"leading-trailing",onTap:wWY(c,Q,U,a),disableTextEllipsis:!!S.disableTextEllipsis}};
wWY=function(S,c,Q,f){return function(U){if(c){var a;var X=S.disableNotificationBell?_.Gv(S==null?void 0:(a=S.unsubscribeButtonContent)==null?void 0:a.onTapCommand):_.Gv(S==null?void 0:S.onShowSubscriptionOptions)}else{var z;X=_.Gv(S==null?void 0:(z=S.subscribeButtonContent)==null?void 0:z.onTapCommand)}X&&ha(X,{form:{element:Q==null?void 0:Q.value},commandController:f});U.stopPropagation()}};
TfH=function(S,c,Q){if(c){if(S==null?0:S.disableNotificationBell){var f;return S==null?void 0:(f=S.unsubscribeButtonContent)==null?void 0:f.accessibilityText}switch(Q){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var U;return S==null?void 0:(U=S.bellAccessibilityData)==null?void 0:U.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var a;return S==null?void 0:(a=S.bellAccessibilityData)==null?void 0:a.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var X;return S==null?void 0:(X=
S.bellAccessibilityData)==null?void 0:X.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var z;return S==null?void 0:(z=S.bellAccessibilityData)==null?void 0:z.disabledLabel;default:var x;return S==null?void 0:(x=S.unsubscribeButtonContent)==null?void 0:x.accessibilityText}}else{var I;return S==null?void 0:(I=S.subscribeButtonContent)==null?void 0:I.accessibilityText}};
MYR=function(S){if(S){switch(S){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":S="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":S="NOTIFICATIONS_OFF";break;default:S="NOTIFICATIONS_NONE"}return S}};
iIz=function(S,c,Q){Q.subscribed!==c&&((Q=Q.key)&&_.Er(_.Ns("subscriptionStateEntity",Q,{key:Q,subscribed:c})),S.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:c})),c||_.XF(S,"yt-unsubscribe-action"))};
Glz=function(S){S=_.Y(_.Gv(S),_.KS);var c,Q,f,U;return(U=_.Y(S==null?void 0:(c=S.panelLoadingStrategy)==null?void 0:(Q=c.inlineContent)==null?void 0:(f=Q.sheetViewModel)==null?void 0:f.content,ZIc))==null?void 0:U.listItems};
Wjc=function(S,c){if(S.onShowSubscriptionOptions&&c&&(S=Glz(S.onShowSubscriptionOptions),S!=null&&S.length)){var Q=MYR(c);S.forEach(function(f){f=_.Y(f,_.$a);var U,a,X,z,x=f==null?void 0:(U=f.leadingImage)==null?void 0:(a=U.sources)==null?void 0:(X=a[0])==null?void 0:(z=X.clientResource)==null?void 0:z.imageName;f&&x&&(f.isSelected=x===Q)})}};
gWz=function(S,c,Q,f){c&&Q?S.style.width=Q+"px":!c&&f&&(S.style.width=f+"px")};
ecY=function(S,c,Q){var f;(f=S.lottieEl)==null||f.goToAndPlay(0);var U;(U=c.lottieEl)==null||U.goToAndPlay(0);_.u9(_.Mq,function(){var a;(a=Q.lottieEl)==null||a.goToAndPlay(0)},300)};
j9=function(){return _.fl().resolve(_.QS(klz))||{}};
rJz=function(S){return typeof S==="function"};
_.l9=function(S){Object.keys(S);var c=function(Q,f){var U=c.mapping||S;if(!Q)return _.B(_.ak,null);if(Array.isArray(Q)&&(Q=dhc(U,c,Q),Array.isArray(Q))){if(!Q.length)return _.B(_.ak,null);if(Q.length>1){for(var a=!1,X=!1,z=[],x={},I=0;I<Q.length;x={data$jscomp$1855:void 0},I++)if(x.data$jscomp$1855=Q[I],x.data$jscomp$1855){var n=vWZ(x.data$jscomp$1855,U),b=n.mappingEntry;n=n.rendererName;b&&n&&(b&&(!rJz(b)&&P_Z(b)&&(X=!0),!rJz(b)&&b.asyncId||(a=!0)),z.push(Ljx(x.data$jscomp$1855,b,n,c,f)))}return X&&
!a?_.B(_.ak,null,EWc()):_.B(_.ak,null,z)}Q=Q[0]}if(!Q)return _.B(_.ak,null);Q=dhc(U,c,[Q])[0];if(!Q)return _.B(_.ak,null);a=vWZ(Q,U);U=a.mappingEntry;a=a.rendererName;return U&&a?_.B(_.ak,null,Ljx(Q,U,a,c,f)):_.B(_.ak,null)};
c.mapping=S;return c};
_.tYZ=function(S){var c=void 0,Q;for(Q in S)if(S.hasOwnProperty(Q)){c=Q;break}return c};
dhc=function(S,c,Q){var f,U=(f=j9().preProcessOptions)==null?void 0:f.idomOptions;if(!U)return Q;j9();return U.preProcessPropsIdom(S,Q,c.triggerRerender)};
vWZ=function(S,c){return(S=_.tYZ(S))?{mappingEntry:c[S],rendererName:S}:{mappingEntry:void 0,rendererName:void 0}};
Ljx=function(S,c,Q,f,U){if(!c)return _.B(_.ak,null);var a={};U&&U[Q]&&(a=Object.assign({},U[Q]));S[Q]!==void 0&&(a.data=S[Q]);if(rJz(c))return c.debugName||(c.debugName=Q),_.B(c,a);c.asyncId&&(f.pendingIdsMap=f.pendingIdsMap||{},f.pendingIdsMap[Q]=c.asyncId);return c.templateFn?c.templateFn(a):P_Z(c)?EWc():_.B(_.ak,null)};
P_Z=function(S){var c;return(c=S.showPlaceholder)!=null?c:j9().defaultShowPlaceholder};
EWc=function(){var S=j9().placeholder;return S()};
VYM=function(S){S=_.Y(S,_.Ya);return(S==null?void 0:S.iconName)&&!(S==null?0:S.title)};
oWY=function(S,c,Q){var f;return _.B(_.ak,null,S==null?void 0:(f=S.actions)==null?void 0:f.map(function(U){return _.B("div",{class:function(){var a={"yt-flexible-actions-view-model-wiz__action":!0};a["yt-flexible-actions-view-model-wiz__action--row-action"]=c;a["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(VYM(U))var X=!0;else if(X=_.Y(U,_.CS),(X==null?0:X.isToggled)&&VYM(X==null?void 0:X.toggledButtonViewModel)||(X==null||!X.isToggled)&&VYM(X==null?void 0:X.defaultButtonViewModel))X=
!0;else{var z;X=((z=_.Y(U,RcZ))==null?0:z.playlistId)?!0:!1}a=(a["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=X,a["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=Q,a);return _.No(a)}},yJp([U],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!c}}))}))};
mhT=function(S){var c=S.layout===1,Q,f=((Q=S.data)==null?void 0:Q.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";Q={};f=(Q["yt-flexible-actions-view-model-wiz"]=!0,Q["yt-flexible-actions-view-model-wiz--inline"]=!c,Q["yt-flexible-actions-view-model-wiz--scrollable"]=f,Q);var U,a;return _.B("yt-flexible-actions-view-model",{class:_.No(S.className,f)},(U=S.data)==null?void 0:(a=U.actionsRows)==null?void 0:a.map(function(X){if(c){var z;return _.B("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
oWY(X,c,!((z=S.data)==null||!z.respectActionIntrinsicWidth)))}return oWY(X,c,!1)}))};
S3Z=function(S,c){c=c===void 0?{shouldPersist:!0}:c;return{useUpdatableData:function(Q,f){var U=[],a=_.A(_.l8(function(){var I=Q();if(f!=null&&f.length&&U){var n=U.length>0;for(var b=!1,N=0;N<f.length;N++){var l=f[N]();n&&l!==U[N]&&(b=!0);U[N]=l}n=b}else n=!1;if(n)_.HK.remove(x());else if(n=_.HK.get(x()))return n;return I})),X=a.next().value,z=a.next().value,x=_.uQ(function(){return S(Q())},void 0,"VFraLb");
_.To(function(){if(x()!=null){De.set(x(),[X,z,!1]);var I=x();_.wX(function(){De.delete(I)})}},"Fdafud");
return[X,function(I){z(I);c.shouldPersist&&_.HK.set(x(),I)}]},
getData:function(Q){var f;return(f=De.get(S(Q)))==null?void 0:f[0]()},
updateData:function(Q,f){Q=S(Q);var U=De.get(Q);if(!U)return!1;var a=_.A(U);U=a.next().value;a=a.next().value;f=f(U());a(f);c.shouldPersist&&_.HK.set(Q,f);return!0},
useUpdatableDataIdom:function(Q,f){var U=S(Q),a=_.HK.get(U),X=_.A(nS(a!=null?a:Q)),z=X.next().value,x=X.next().value,I=MR(a!=null?a:Q);T_(function(){if(U!=null)return De.set(U,[function(){return I.value},
function(n){x(n);I.value=n},
De.has(U)]),_.Mq.addJob(function(){_.pS(_.Mq,function(){var n=De.get(U);n&&(n[2]=!1)},0)},8),function(){var n;
((n=De.get(U))==null?0:n[2])||De.delete(U)}},[U]);
T_(function(){z!==Q&&(x(Q),I.value=Q)},f?[].concat(_.Hs(f),[U]):[U]);
return[z,x]}}};
cDT=function(S){var c=_.A(_.ny(!0,void 0,"bKtO6d")),Q=c.next().value;c.next();return function(){var f=bW(S.children());return _.B(_.K,{cond:Q,then:function(){return f},
else:S.fallback})}()};
_.h8=function(S){var c=QuY(S),Q=c.data,f=c.mapping,U=c.wrapper;c=c.pendingFallback;var a=function(){return fiM(_.Zf(Q))},X=function(){var z=a(),x=[];
z=_.A(z);for(var I=z.next();!I.done;I=z.next()){var n=void 0;I=I.value;var b=void 0;for(n in I)if(!(!I).hasOwnProperty(n)){b=n;break}(n=b)&&x.push(n)}return x};
return S.data?_.B(cDT,{fallback:c},function(){return _.B(_.lW,{each:X},function(z,x){var I=U?function(b){return U(function(){return f[z](b,x)},n,x)}:function(b){return f[z](b,x)};
I.debugName||(I.debugName=String(z));if(!f[String(z)])return document.createComment("");var n=U4M(a,z,x);return _.B(I,{data:n})})}):_.B(_.ak,null)};
QuY=function(S){var c=S.targetId||JDx(S.children);if(!S.data||!c||_.u("mweb_new_replaceables_killswitch"))return Object.assign({},S,{mapping:S.children,wrapper:void 0});var Q="stamper-"+aiR++,f=function(){var z;return(z=typeof S.targetId==="function"?S.targetId(Q):S.targetId)!=null?z:Q};
c=_.A(ADH(function(){var z=fiM(S.data());z.targetId=f;return z})).next().value;
var U=Object.assign({},j9().replaceableMapping,S.children);if(S.replacementWrapper){var a=U.notificationTextRenderer,X=U.notificationMultiActionRenderer;a&&(U.notificationTextRenderer=function(z,x){return S.replacementWrapper(a({data:z.data},x))});
X&&(U.notificationMultiActionRenderer=function(z,x){return S.replacementWrapper(X({data:z.data},x))})}return Object.assign({},S,{data:c,
mapping:U,wrapper:function(z,x,I){return YQY({targetId:f,stamperIndex:I},z)}})};
U4M=function(S,c,Q){var f;return _.uQ(function(){var U=S()[Q()];if(U)f=U[c];else return _.i5(new _.Yr("Stamper failed to find "+String(c)+" at index "+Q()+" of data array of length "+(S().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),f;return U[c]},void 0,"k97xP")};
JDx=function(S){S=_.A(Object.keys(S));for(var c=S.next();!c.done;c=S.next())if(c=c.value,Xpo.includes(c)||Opr.includes(c)||z_z.includes(c))return!0;return!1};
fiM=function(S){return S?Array.isArray(S)?S:[S]:[]};
x4Y=function(S){return!(S==null||!S.iconName||(S==null?0:S.title))};
Fso=function(S){var c=_.Y(S.data.toggleButtonViewModel,_.CS),Q,f=(Q=S.data.dislikeEntityKey)!=null?Q:"",U=AJZ(W3,[f]);c=Object.assign({},c,{isToggled:U?U.likeStatus==="DISLIKE":c.isToggled});return _.B("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.B(_.qs,{data:c,buttonShapeOverrides:S.buttonShapeOverrideables,onToggle:function(a){U&&a!==(U.likeStatus==="DISLIKE")&&U.key&&_.Er(_.TI("likeStatusEntity",U.key,{likeStatus:a?"DISLIKE":"INDIFFERENT",hadUserInteraction:a}))}}))};
Iiz=function(S){var c=_.u("web_supports_animations_api"),Q=_.Y(S.data.toggleButtonViewModel,_.CS),f,U,a,X,z=_.A(nS({numberText:(X=(f=S.likeCountEntity)==null?void 0:(U=f.likeCountIfIndifferent)==null?void 0:U.content)!=null?X:"",numberValue:Number((a=S.likeCountEntity)==null?void 0:a.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),x=z.next().value,I=z.next().value,n,b,N,l;f=_.A(nS({numberText:(l=(n=S.likeCountEntity)==null?void 0:(b=n.likeCountIfLiked)==null?void 0:b.content)!=null?
l:"",numberValue:Number((N=S.likeCountEntity)==null?void 0:N.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));n=f.next().value;var H=f.next().value;b=_.A(nS());var q=b.next().value,w=b.next().value,g;b=(g=S.data.likeStatusEntityKey)!=null?g:"";var r,E;g=(E=(r=S.likeCountEntity)==null?void 0:r.key)!=null?E:"";var v=AJZ(W3,[b]),t=AJZ(cyc,[g]);r=zbp(function(){return(v==null?void 0:v.likeStatus)==="LIKE"},[v]);
T_(function(){var V,AZ=t&&((V=t.likeCountIfIndifferent)==null?void 0:V.content)!==x.numberText;if(!q&&AZ){var IH,Nr;I({numberText:(Nr=t==null?void 0:(IH=t.likeCountIfIndifferent)==null?void 0:IH.content)!=null?Nr:"",numberValue:Number(t==null?void 0:t.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var Hc,qr;H({numberText:(qr=t==null?void 0:(Hc=t.likeCountIfLiked)==null?void 0:Hc.content)!=null?qr:"",numberValue:Number(t==null?void 0:t.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[t]);
Q=Object.assign({},Q,{isToggled:r});c=c&&S.likeCountEntity;return _.B("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.B(_.qs,{data:Q,buttonShapeOverrides:S.buttonShapeOverrideables,animatedTextPropsDefault:c?x:void 0,animatedTextPropsToggled:c?n:void 0,onToggle:function(V){Bgp(V,v,q,w)},
style:function(){return S.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
Bgp=function(S,c,Q,f){Q&&_.Mq.cancelJob(Q);Q=_.Mq.addLowPriorityJob(function(){f(void 0)},5E3);
f(Q);c&&S!==(c.likeStatus==="LIKE")&&c.key&&_.Er(_.Ns("likeStatusEntity",c.key,{key:c.key,likeStatus:S?"LIKE":"INDIFFERENT",hadUserInteraction:S}))};
n8Y=function(S,c,Q,f){Q&&_.Mq.cancelJob(Q);Q=_.Mq.addLowPriorityJob(function(){f(void 0)},5E3);
f(Q);c&&S!==(c.likeStatus==="LIKE")&&c.key&&_.Er(_.Ns("likeStatusEntity",c.key,{key:c.key,likeStatus:S?"LIKE":"INDIFFERENT",hadUserInteraction:S}))};
Ksz=function(S){var c,Q=_.Y((c=S.data)==null?void 0:c.likeButtonViewModel,_.wJ),f;c=_.Y((f=S.data)==null?void 0:f.dislikeButtonViewModel,_.se);var U,a=(U=AJZ(W3,[(Q==null?void 0:Q.likeStatusEntityKey)||""]))!=null?U:Q==null?void 0:Q.likeStatusEntity;f=zbp(function(){var X=S.data,z;X=(X==null?void 0:(z=X.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"like-dislike",timings:X,enabled:(a==null?void 0:a.likeStatus)==="INDIFFERENT"&&X.length>0,experimentEnabled:X.length>0}},[S.data,
a]);return _.B("segmented-like-dislike-button-view-model",{class:_.No(S.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.B(Ms,{settings:f},_.B("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},Q?_.B(bpR,{data:Q,likeCountEntity:S.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,c?_.B(NgT,{data:c,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
$4r=function(S,c){var Q=oI.get(S)||{layerNode:c};Q.layerNode=c;w9Y(S,Q);S.getScreenLayer=function(){return i9(Q.layerNode)}};
ujM=function(S){var c;S=S.parentNode;for(var Q;S&&((c=oI.get(S))==null||!c.isRenderer)&&!((Q=S.polymerController)!=null?Q:S).isRenderer_;)S=S.parentNode||S.host;if(c=S)return oI.get(c)};
jup=function(S){if(S){oI.delete(S);var c=_.fl().resolve(SR);wyo(S,c)}};
Y3H=function(S,c,Q){if(Q===void 0?0:Q){if(Q=S.getAttribute("client-ve-type"),c.data&&!c.disableReactiveLogging||Q)_.Go(function(){lic(S,_.Zf(c.data))}),_.wX(function(){return void jup(S)})}else typeof c.data!=="function"&&lic(S,c.data)};
lic=function(S,c){Cmr++;HpZ(S,c)&&_.Mq.addJob(function(){_.pS(_.Mq,function(){if(HpZ(S,c)&&S.ownerDocument.documentElement===document.documentElement&&S){var Q;if(S.getAttribute("layer")){var f=Q=Number(S.getAttribute("layer")),U=oI.get(S);U?U.layerNode.layer=f:$4r(S,new D4Z(f));(f=ujM(S))&&(U=oI.get(S))!=null&&(U.layerNode.parent=f.layerNode)}else if(Q=oI.get(S))Q=i9(Q.layerNode);else{Q=i9;f=new D4Z;if(U=ujM(S))f.parent=U.layerNode;$4r(S,f);Q=Q(f)}Q!=null||(Q=0);f=S.getAttribute("client-ve-type");
U=Number(f);var a=!1;f=!1;var X=oI.get(S),z;if((z=X)&&!(z=X[ppp]!==c)&&(z=U)){var x;z=((x=oI.get(S))==null?void 0:x.clientVeType)===void 0}z&&(X[ppp]=c,a=f=X.isRenderer=!0);oI.has(S)&&(oI.get(S).clientVeType=U);S.visualElement&&(f=!0);if(_.u("wiz_next_ld_fix_client_ve_spec")){var I;x=((I=_.Y(c==null?void 0:c.rendererContext,_.$z))==null?void 0:I.loggingDirectives)||(c==null?void 0:c.loggingDirectives)}else x=c==null?void 0:c.loggingDirectives;x&&x.clientVeSpec&&(I=h_M(_.b7(),S),I=_.q3c(_.Kv(),x,I||
void 0,Q))&&(S.visualElement=I);!S.visualElement&&U&&a&&(S.veType=U,I=void 0,_.u("wiz_next_client_ve_parent_fix")&&(I=h_M(_.b7(),S)),I=_.NK(_.Kv(),S,I,Q),S.visualElement=I);f&&(I=_.fl().resolve(SR),Zap(S,{data:c,observer:I,layer:Q,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
HpZ=function(S,c){return(c==null?0:c.trackingParams)||(c==null?0:c.loggingDirectives)||_.Y(c==null?void 0:c.rendererContext,_.$z)||S.getAttribute("client-ve-type")?!0:!1};
wpZ=function(S){return _.u("cow_logging_in_component_wrapper")?function(c){Y3H(c,S,!0)}:TgZ};
TgZ=function(){};
_.suH=function(S,c){return _.FT(S.entities,"accountLinkStatusEntity",c)};
MZZ=function(S,c){return _.FT(S.entities,"hatsSurveyEntity",c)};
ipp=function(S,c){return _.FT(S.entities,"hatsSurveyStateEntity",c)};
Zpz=function(S,c){return _.FT(S.entities,"quantityIncrementerEntity",c)};
kuM=function(S){var c=S.data;var Q=S.className===void 0?"":S.className;var f=S.setMinWidth;S=S.forceIconOnly;var U=_.EH("account-link-button-view-model",wpZ({data:c}));f=f?"ytwAccountLinkButtonViewModelHostMinWidth":"";var a=_.b9(_.suH,function(){var b;return(b=_.Zf(c).accountLinkStatusEntityKey)!=null?b:""}),X=_.b9(_.suH,function(){var b;
return(b=_.Zf(c).accountLinkStatusSecondaryEntityKey)!=null?b:""}),z=function(){if(!_.u("web_account_link_secondary_killswitch")){var b,N;
return((b=a())==null?void 0:b.linked)||((N=X())==null?void 0:N.linked)}var l;return(l=a())==null?void 0:l.linked};
_.To(function(){var b=a();if(b){var N=Guc(new Wsp,g8x(new e_T,!!b.linked));_.Oe().then(function(l){l&&(l.setAccountLinkState(_.mV(N.JSC$10114_serializeBinary(),4)),l.updateAccountLinkingConfig(!!b.linked))})}},"lLLHt");
var x=function(){return _.Y(_.Zf(c).toggleButtonViewModel,_.CS)};
_.L1("yt-signal-action-show-account-link-dialog",function(){if(x()){var b=z()?x().toggledButtonViewModel:x().defaultButtonViewModel;b=_.Y(b,_.Ya);var N;if((N=a())==null?0:N.isWarning){N=_.Y(_.Zf(c).warningButtonViewModel,_.Ya);if(!N){_.dC(Error("Bh"));return}b=N}var l;(N=_.Gv((l=b)==null?void 0:l.onTap))&&_.n8([N],U.value)}else _.dC(Error("Ch"))});
var I=function(){var b=x();return Object.assign({},b,{isToggled:z()})},n=S?{iconPosition:"icon-only"}:{};
return _.B("account-link-button-view-model",{class:_.n4("ytwAccountLinkButtonViewModelHost",function(){return _.Zf(Q)},f),
el:U,"button-renderer":!0},_.B("div",null,_.B(_.K,{cond:function(){var b;if((b=a())==null?0:b.isWarning)return(b=_.Y(_.Zf(c).warningButtonViewModel,_.Ya))||_.dC(Error("Bh")),b},
then:function(b){return _.B(_.Ze,{data:b,buttonOverrides:n})},
else:function(){return _.B(_.qs,{data:I,buttonShapeOverrides:n})}})))};
rDc=function(S){switch(S){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
d4o=function(S){switch(S){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}};
v8c=function(S){switch(S){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"}};
_.Lso=function(S){var c=_.a6("web_generic_client_event_wait_period ",0);c||(c=3E5);var Q=Pmx.get(S);!_.u("enable_web_client_experiment_event_timeout_killswitch")&&Q&&(0,_.Qk)()-Q<c||(Pmx.set(S,(0,_.Qk)()),_.Te("genericClientExperimentEvent",{eventType:S}))};
E8z=function(S){switch(S){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""}};
tZR=function(S){if(!S)return"";var c,Q=(c=_.fl().resolve(_.QS(_.Lv)))==null?void 0:c(),f;if(!Q&&((f=S.vibrantColorPalette)==null?0:f.iconInactiveColor))return em(S.vibrantColorPalette.iconInactiveColor,"1");var U;return Q&&((U=S.darkColorPalette)==null?0:U.iconInactiveColor)?em(S.darkColorPalette.iconInactiveColor,"1"):S.color?em(S.color,"1"):S.sampledThumbnailColor?(S=S.sampledThumbnailColor,"rgba("+S.red+","+S.green+","+S.blue+");"):""};
_.GI=function(S,c){if(!S.includes("DATE_PLACEHOLDER"))return S;var Q=new Date(0);Q.setUTCSeconds(c);return S.replace("DATE_PLACEHOLDER",VZZ(Q))};
_.WK=function(S){return S!=null&&S.watch?S.watch.isTheaterMode:!1};
_.gJ=function(S){return S!=null&&S.watch?S.watch.isWatchFullscreen:!1};
_.e9=function(S){S=_.R_R(S);return _.u("web_watch_enable_single_column_grid_view")?S:!1};
_.R_R=function(S){return S.watch.isWatchNarrowWidth};
yDz=function(S,c,Q){return function(f){var U=S.command;U&&(ha(U,{form:{element:Q}}),c([U],f))}};
m4c=function(S,c,Q,f,U){return function(a){var X=o8M(S,c);X&&ha(X,{form:{element:Q},commandController:f});U&&a.stopPropagation()}};
o8M=function(S,c){if(S.signInEndpoint&&!_.u("web_subscribe_sign_in_endpoint_killswitch"))return S.signInEndpoint;if(c){if(S.serviceEndpoints)return S.serviceEndpoints[1];if(S.onUnsubscribeEndpoints)return S.onUnsubscribeEndpoints[0]}else{if(S.serviceEndpoints)return S.serviceEndpoints[0];if(S.onSubscribeEndpoints)return S.onSubscribeEndpoints[0]}};
SBY=function(S,c){var Q,f,U,a;c=c&&((Q=S.unsubscribeAccessibility)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label)||((U=S.subscribeAccessibility)==null?void 0:(a=U.accessibilityData)==null?void 0:a.label);return S.longSubscriberCountText?[c,_.Em(S.longSubscriberCountText)].filter(function(X){return X}).join(" "):c};
ka=function(S,c){return c||(S==null?0:S.isChannelDelegate)?"disabled":"active"};
cEp=function(S,c){var Q;switch((Q=S.style)==null?void 0:Q.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:ka(S)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:ka(S)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:ka(S,!0)};case "OVERLAY":return c?{style:"overlay",type:"tonal",state:ka(S)}:{style:"overlay",type:"filled",state:ka(S)};default:return c?{style:"mono",type:"tonal",state:ka(S)}:{style:"mono",type:"filled",state:ka(S)}}};
Q4p=function(S){switch(S){case "small":return"ytThumbnailOverlayProgressBarHostSmall";case "medium":return"ytThumbnailOverlayProgressBarHostMedium";case "large":return"ytThumbnailOverlayProgressBarHostLarge";default:return"ytThumbnailOverlayProgressBarHostMedium"}};
fSZ=function(S){switch(S){case "small":return"ytThumbnailBottomOverlayViewModelBadgeContainerSmall";case "medium":return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium";case "large":return"ytThumbnailBottomOverlayViewModelBadgeContainerLarge";default:return"ytThumbnailBottomOverlayViewModelBadgeContainerMedium"}};
UNo=function(S,c){var Q=S.map(function(f){return f.toString()});
return _.$d(function(f){if(Q.includes(f.key)){c&&f.preventDefault();var U;(U=f.currentTarget)==null||U.click()}})};
_.JEz=function(){return UNo(["Enter"])};
_.aSR=function(){return UNo(["Enter"," "],!0)};
_.rJ=function(S){if(S.composedPath)return S.composedPath();if(!S.__composedPath){for(var c=[],Q=S.target;Q;)c.push(Q),Q=Q.parentNode;c.push(window);S.__composedPath=c}return S.__composedPath};
_.dJ=function(S,c,Q){S=_.A(S);for(var f=S.next();!f.done;f=S.next()){f=f.value;if(f===c)break;for(var U=_.A(Q),a=U.next();!a.done;a=U.next())if(a=a.value,f.tagName===a||f.role==="button"&&a==="BUTTON")return!0}return!1};
Xzo=function(S,c){var Q,f=(Q=c.observer)!=null?Q:_.fl().resolve(SR);if(S){Q=AEr(S);var U=[];c.showOption&&U.push(f.observe(S,function(){c.visibilityCallback(!0)},c.showOption));
c.hideOption&&U.push(f.observe(S,function(){c.visibilityCallback(!1)},c.hideOption));
c.prescanOption&&c.prescanCallback&&U.push(f.observe(S,function(){c.prescanCallback()},c.prescanOption));
var a;Q.visibilityMonitorKeys=((a=Q.visibilityMonitorKeys)!=null?a:[]).concat(U)}};
AEr=function(S){var c;return(c=S.polymerController)!=null?c:S};
_.PK=function(S){return!!_.vK(S)};
_.xNz=function(S,c){var Q=lXp();T_(function(){var f=S.value;if(f)return OCR(f,c),zyZ(f,c,void 0,void 0,void 0,Q)},[c])};
_.LS=function(S,c,Q,f,U,a){var X=lXp();_.To(function(){var z=S.value;z&&(OCR(z,c(),a),z=zyZ(z,c(),Q,f,U,X),_.wX(z))},"GXtnHd")};
OCR=function(S,c,Q){var f=F3z(c),U=BwH(c);c=f&&ISY;var a=U&&n$R;(f||U)&&Xzo(S,{visibilityCallback:function(X){var z=_.fl().resolve(_.U8);X&&f?z.resolveCommand(f,{form:{element:Q?S:void 0},disableClickTracking:!0}):!X&&U&&z.resolveCommand(U,{form:{element:Q?S:void 0},disableClickTracking:!0})},
showOption:c,hideOption:a})};
zyZ=function(S,c,Q,f,U,a){var X=new Map;if(c=_.vK(c)){var z;S=(f==null?void 0:(z=f.onTap)==null?void 0:z.value)||S;Q=bCr(c,S,Q==null?void 0:Q.onTap,U,a);S.addEventListener("click",Q);X.set("click",Q)}return function(){for(var x=_.A(X),I=x.next();!I.done;I=x.next()){var n=_.A(I.value);I=n.next().value;n=n.next().value;S.removeEventListener(I,n)}}};
_.vK=function(S){var c;return(S=(c=_.Y(S,NwY))==null?void 0:c.onTap)&&_.Gv(S)};
F3z=function(S){var c;return(S=(c=_.Y(S,NwY))==null?void 0:c.onVisible)&&_.Gv(S)};
BwH=function(S){var c;return(S=(c=_.Y(S,NwY))==null?void 0:c.onHidden)&&_.Gv(S)};
bCr=function(S,c,Q,f,U){var a=function(z){_.fl().resolve(_.U8).resolveCommand(S,z)},X=function(z){f&&_.dJ(_.rJ(z),c,f)||a(z.target?{form:{element:z.target,
sourceData:S,mutationContext:U}}:void 0)};
Q&&(X=function(z){Q(z,a)});
return X};
K3x=function(S){switch(S){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}};
$NY=function(S){var c=S.numAvatarsInCluster;switch(S.clusterSize){case "small":return c===2?22:18;case "40":return c===2?24:22;default:return c===2?24:20}};
u8z=function(S,c){return function(Q){var f=Object.keys(c);_.To(function(){if(S()){for(var U=_.A(f),a=U.next();!a.done;a=U.next())a=a.value,Q.addEventListener(a,c[a]);_.wX(function(){for(var X=_.A(f),z=X.next();!z.done;z=X.next())z=z.value,Q.removeEventListener(z,c[z])})}},"bXZGfe")}};
j4c=function(S){switch($NY(S)){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""}};
lSZ=function(S){switch(S){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""}};
YBr=function(S){switch($NY(S)){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""}};
CpR=function(S){switch(S){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""}};
HCY=function(S){switch(S){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}};
DNZ=function(S){return S==="medium"||S==="48"||S==="large"||S==="extra-large"||S==="extra-extra-large"||S==="giant"};
pzo=function(S){return!!((S==null?0:S.includes(3))||(S==null?0:S.includes(5)))};
qBZ=function(S){return{size:hyZ(S.data.avatarImageSize),onTap:S.onTap,decorations:S.decorations||[],badgeText:S.badgeText,accessibilityText:S.accessibilityText,avatarButtonCustomClassName:S.avatarButtonCustomClassName,clusterLayoutConfig:S.clusterLayoutConfig}};
hyZ=function(S){switch(S){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"}};
Twr=function(S){switch(S){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}};
wzp=function(S){switch(S){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""}};
s4z=function(S){var c=S.layoutType==="AVATAR_STACK_LAYOUT_CLUSTER",Q,f=S.avatars&&S.avatars.length>0?(Q=_.Y(S.avatars[0],_.Ee))==null?void 0:Q.avatarImageSize:"AVATAR_SIZE_UNKNOWN";Q=Twr(f)||0;if(c){var U,a=(U=S.avatarClusterSize)!=null?U:"AVATAR_SIZE_M";c=Twr(a);var X,z,x=Math.min((z=(X=S.avatars)==null?void 0:X.length)!=null?z:0,4),I;return{avatars:((I=S.avatars)==null?void 0:I.slice(0,4))||[],avatarSizeInPx:Q,avatarStackStyle:{width:c+"px",height:c+"px",position:"relative"},avatarStyle:function(b){var N=
$NY({clusterSize:hyZ(a),numAvatarsInCluster:x,avatarIndex:b});var l=Twr(a);x===3&&b===2?(l=(l-N)/2,l=(_.WY("HTML_DIR")==="rtl"||document.body.getAttribute("dir")==="rtl"?-1:1)*l):l=void 0;return{position:"absolute",top:x===2&&b===1||x===3&&b===2||x===4&&b>=2?"0":void 0,bottom:x===2&&b===0||x>2&&b<2?"0":void 0,left:x===2&&b===1||x>2&&(b===1||b===3)?"0":void 0,right:x<=3&&b===0||x===4&&(b===0||b===2)?"0":void 0,transform:l?"translateX("+l+"px)":void 0,width:N+"px",height:N+"px"}},
avatarStackClass:void 0,avatarClass:void 0,clusterLayoutConfig:function(b){return{clusterSize:hyZ(S.avatarClusterSize),numAvatarsInCluster:x,avatarIndex:b}},
avatarButtonCustomClassName:void 0}}var n;return{avatars:((n=S.avatars)==null?void 0:n.slice())||[],avatarSizeInPx:Q,avatarStackClass:"yt-avatar-stack-view-model-wiz__avatars",avatarClass:wzp(f),avatarStyle:function(){return{}},
avatarStackStyle:{},clusterLayoutConfig:void 0,avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button"}};
M3M=function(S,c,Q){return function(){ha(S,{form:{element:c},commandController:Q})}};
iCp=function(S){switch(S){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
ZCT=function(S){switch(S){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"}};
GGM=function(S){var c=S.data;S=S.hidden===void 0?!1:S.hidden;var Q={};S={class:_.No("yt-page-indicator-view-model",(Q["yt-page-indicator-view-model__indicator--hidden"]=!c.indicatorCount,Q)),hidden:S};if(c.indicatorCount){Q=[];for(var f=0;f<c.indicatorCount;f++){var U={};U=_.No("yt-page-indicator-view-model__indicator",(U["yt-page-indicator-view-model__indicator--selected"]=c.selectedIndex===f,U));Q.push(_.B("div",{class:U}))}c=_.B(_.ak,null,Q)}else c=_.B(_.ak,null);return _.B("yt-page-indicator-view-model",
S,c)};
g$p=function(S){S&&(W3c(S)?delete S.inlinePlayerData:"inlinePlaybackEndpoint"in S&&delete S.inlinePlaybackEndpoint)};
eyY=function(S){if("accessibilityText"in S)return S.accessibilityText||"";if("title"in S){var c,Q,f;return((c=S.title)==null?void 0:(Q=c.accessibility)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label)||""}if("accessibility"in S){var U,a;return((U=S.accessibility)==null?void 0:(a=U.accessibilityData)==null?void 0:a.label)||""}return""};
W3c=function(S){return"inlinePlayerData"in S};
t8=function(S){return new kGo(S)};
_.rEp=function(S,c,Q,f,U,a){var X=function(I){I.preventDefault()},z=function(){var I=S.value;
if(I)return(I._data=c)?(I.addEventListener("touchstart",Hgc,{passive:!0}),I.addEventListener("click",pwH),c.clickTrackingParams&&(I.params={itct:c.clickTrackingParams}),hwT(I,c),DQ(I,qqc(c)||"")):I.addEventListener("click",X),function(){c?(I.removeEventListener("touchstart",Hgc,{passive:!0}),I.removeEventListener("click",pwH)):I.removeEventListener("click",X)}},x=function(){var I=S.value;
if(I){var n=_.gH({innertubeCommand:c,elementsCommand:Q,forceNewState:f,stopPropagation:a});if(n)return I._data=n._data,n["aria-haspopup$"]&&I.setAttribute("aria-haspopup",n["aria-haspopup$"].toString()),n["force-new-state$"]&&I.setAttribute("force-new-state",n["force-new-state$"].toString()),n.href$&&DQ(I,n.href$),n.rel$&&(I.rel=n.rel$),n.role$&&I.setAttribute("role",n.role$),n.target$&&(I.target=n.target$),I.params=n.params,n.onclick&&I.addEventListener("click",n.onclick),n.onpointerdown&&I.addEventListener("onpointerdown",
n.onpointerdown),function(){n.onclick&&I.removeEventListener("click",n.onclick);n.onpointerdown&&I.removeEventListener("onpointerdown",n.onpointerdown)}}};
T_(U?x:z,[c,Q])};
dNo=function(S){var c=S.children;var Q=S.className;var f=S.dir;var U=S.style;var a=S.role;var X=S.ariaSelected;var z=S.ariaLabel;var x=S.ariaHidden;var I=S.ariaLabelledby;var n=S.ariaDescribedby;var b=S.command;var N=S.elementsCommand;var l=S.forceNewState;var H=S.isPlaceholder;var q=S.tabIdentifier;var w=S.target;var g=S.tabIndex;var r=S.useATagConfig;var E=S.stopPropagation;S=_.EH("a");_.rEp(S,b,N,l,r,E);return _.B("a",{el:S,"on:click":_.$d(function(){return E===!1}),
class:Q,style:U,dir:f,role:a?a:b?void 0:"group","aria-hidden":x?!0:void 0,"aria-label":z,"aria-labelledby":I,"aria-describedby":n,"aria-selected":X,tabindex:g!==void 0?g:void 0,target:w,"tab-identifier":q,"force-new-state":l?!0:void 0,"is-placeholder":H?!0:void 0},c)};
v$o=function(S){var c=S.data;S=_.$d(function(){var U=_.Y(c.onTap,_.Zc);U&&_.fl().resolve(_.U8).resolveCommand(U);return!1});
var Q={sources:[{url:c.thumbnailUrl,width:120,height:90}]},f=c.rating&&c.ratingA11yLabel&&c.reviewsCount&&c.reviewsCountA11yLabel;return _.B("place-data-view-model",null,c.placeName&&c.placeCategory?_.B("div",{class:"yt-spec-place-data-view-model-shape","on:click":S},_.B(_.RW,{data:Q,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail"}),_.B(dNo,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.Y(c.onTap,_.Zc),forceNewState:!0,useATagConfig:!0},
_.B("h3",{class:"yt-spec-place-data-view-model-shape__name",title:c.placeName},c.placeName)),_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata"},f?_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.B("span",{class:"score",title:c.ratingA11yLabel},c.rating),_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.B(_.C4,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.B("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:c.reviewsCountA11yLabel},c.reviewsCount)):_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.B("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.B("span",{class:"category",title:c.placeCategory},c.placeCategory)))):null)};
PpZ=function(S){return function(c){S&&(S.thumbnailElRef=c.thumbnailElRef,S.thumbnail=c.thumbnail,S.thumbnailOverlays=c.thumbnailOverlays,S.thumbnailSize=c.thumbnailSize)}};
L3M=function(S){var c;return(c=S.sharedUi)==null?void 0:c.animatedThumbnailEnabled};
E$R=function(S){var c;return(c=S.sharedUi)==null?void 0:c.inlinePreviewEnabled};
_.t3H=function(S){var c;return(c=S.sharedUi)==null?void 0:c.currentPageSubType};
V3Y=function(S){switch(S){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"}};
o$x=function(S){var c=_.A(_.ny(!1,void 0,"RIOonf")),Q=c.next().value,f=c.next().value;_.wC(function(){var U=S==null?void 0:S();if(U){var a=_.fl().resolve(_.QS(RyZ));if(a){var X={triggeringElement:U,onDwellTriggeredFn:function(){f(!0)},
onDwellEndFn:function(){f(!1)}};
a.registerElement(X);_.wX(function(){yEY(a,X)})}}});
return Q};
mNp=function(S,c,Q){Q?Q(c):_.kz(c,S.target?{form:{element:S.target}}:void 0)};
_.V8=function(S,c,Q,f){_.To(function(){var U=S.value;if(U){var a=new Map,X,z=(X=c())==null?void 0:X.onTap;z&&(X=function(x){a:{var I=x.composedPath();I=_.A(I);for(var n=I.next();!n.done;n=I.next()){n=n.value;if(n===U)break;if(n.className.indexOf("HostIsClickableAdComponent")>=0||n.tagName==="A".toString()||n.tagName==="BUTTON".toString()){I=!0;break a}}I=!1}I||mNp(x,z,Q)},(f==null?0:f())||_.u("enable_web_home_top_landscape_image_layout_level_click")?(U.addEventListener("tap",X),a.set("tap",X)):(U.addEventListener("click",
X),a.set("click",X)));
_.wX(function(){for(var x=_.A(a),I=x.next();!I.done;I=x.next()){var n=_.A(I.value);I=n.next().value;n=n.next().value;U.removeEventListener(I,n)}})}},"g9MHN")};
S5Y=function(S,c){var Q,f=(Q=S.interaction)==null?void 0:Q.onTap;if(S=_.gH({elementsCommand:f,forceNewState:!0,skipOnClick:!0}))return S.onclick=function(U){j3p(U)&&(U.preventDefault(),f&&mNp(U,f,c))},ew(S)?S:void 0};
cro=function(S){switch(S){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
QXp=function(S){switch(S){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"}};
fUz=function(S){switch(S){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"}};
_.UMT=function(S){return _.u("rich_grid_enable_dynamic_offset")&&S?Math.max(Math.round((S-_.a6("rich_grid_dynamic_offset_anchor_width",1300))/100*_.a6("rich_grid_dynamic_offset_offset_per_100",10)),_.a6("rich_grid_dynamic_offset_lower_bound",-60)):0};
JrT=function(S,c){switch(c){case 4:return 16;case 1:return S<528?16:S<1024?32:48;case 2:return(S>=528?16:8)/2;case 3:return(S<528?16:S<1024?32:48)+(S>=528?16:8)/2;default:return 0}};
aUR=function(S){var c=S.originalContainerWidth;var Q=S.sizing;var f=S.standardUnit;if(S.isCompactList&&c<528)return 1;switch(Q){case "STANDARD":return f;case "COMPACT":return f+1;case "EXTRA_COMPACT":return _.u("web_responsive_extra_compact_2x")?f*2:_.u("web_responsive_current")?f===1?2:f%2===0?f/2*3:f+2:f<4?f*2:Math.ceil(f*3/2);case "MINI":return f>1?f*2:3;default:return f}};
XOz=function(S){var c=S.containerWidth;var Q=S.peek;var f=S.gutter;var U=S.numItems;S=S.ignoreMaxWidthLimit;c=Q?Math.max((c-Q-f*U)/U,0):Math.max((c-f*(U-1))/U,0);return S?c:Math.min(c,Arz)};
_.Ri=function(S){var c=S.containerWidth;var Q=S.hasPeek;var f=S.sizing;var U=S.marginSettings;var a=S.isCompactList;var X=S.enableFullBleedForSingleCol;var z=S.standardUnitMinWidth;f=f||"STANDARD";Q=!!Q;S=c>=528?16:8;var x=Q?c>=528?48:24:0;U=JrT(c,U);var I=Math.max(c-U*2,0);z=_.u("kevlar_disable_min_width_override")?void 0:z;z=Math.min(Math.max(Math.floor((I-x+S)/((z!=null?z:OqM)+_.UMT(c)+S)),1),6);var n=(X=!!X&&z===1)||z===1&&f!=="STANDARD";Q=Q||n?I:Math.min(I,(Arz+S)*z-S);f=aUR({originalContainerWidth:c,
sizing:f,standardUnit:z,isCompactList:a});return{itemWidth:XOz({containerWidth:Q,peek:x,gutter:S,numItems:f,ignoreMaxWidthLimit:n}),gutter:S,maxContainerWidth:Q,numItems:f,margin:X?0:U,contentMargin:JrT(c,1),typographyBump:XOz({containerWidth:Q,peek:x,gutter:S,numItems:z,ignoreMaxWidthLimit:n})>400&&!(a&&c<528),standardUnit:z}};
zaZ=function(S){switch(S){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.xMx=function(S){if(S){var c;if((c=S.responsiveContainerConfiguration)==null?0:c.responsiveSize)return zaZ(S.responsiveContainerConfiguration.responsiveSize);if(S.layoutSizing)switch(S.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"}}};
FNM=function(S){if(S.fullbleed)return 1;switch(S.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
bqx=function(S,c,Q,f,U,a,X,z){a:switch(S){case 4:a=!!(a&&a<100);break a;default:a=!1}a:switch(S){case 3:case 4:var x=f==="LOCKUP_CONTENT_TYPE_CHANNEL"||f==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:x=!1}a:switch(S){case 5:var I=!0;break a;case 4:I=!1;break a;default:I=!1}a:if(S===4&&f==="LOCKUP_CONTENT_TYPE_SOURCE")var n=1;else switch(S){case 3:n=1;break a;default:n=0}return{isOverlay:I,isCard:BBz(f,X),sizing:c!=null?c:"STANDARD",typographyBump:Q!=null?Q:!1,isTiny:a,isCentered:x,isCollection:IUT(f),
arrangement:n,addMarginForFullbleed:S===1&&f!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:S===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:n7p(f,U,z),disableRounding:S===5||BBz(f,X)||S===1&&f==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:IUT(f)?2:0,useLegacyTypography:!(z==null||!z.useLegacyTypography),useRichGridLegacyTypography:!(z==null||!z.useRichGridLegacyTypography)&&!_.u("web_enable_typography_bump")}};
IUT=function(S){switch(S){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}};
BBz=function(S,c){if(c&&S==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(S){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
n7p=function(S,c,Q){if(c&&(Q==null||!Q.alwaysRespectPodcastShowAspectRatio||S!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(S){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}};
NBo=function(S){switch(S){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"}};
uCp=function(S,c,Q){a:switch(S.badgeStyle){case "BADGE_OVERLAY":var f=!0;break a;default:f=!1}return{type:c?16:KNz(S.badgeStyle),brNzRatingBadgeType:$Mz(S.badgeStyle),text:S.badgeText,icon:S.iconName,isOverlay:f,modern:Q||_.u("web_modern_badge_view_model"),accessibilityText:S.accessibilityLabel}};
KNz=function(S){switch(S){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
$Mz=function(S){switch(S){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}};
lUp=function(S){var c=S.data?uCp(S.data,!!S.workaroundShortsIsThumbnailBadge,S.modern):void 0;return _.B("yt-badge-view-model",{class:_.No("yt-badge-view-model-wiz",S.class)},m2(c==null?void 0:c.brNzRatingBadgeType,function(){return _.B(jXH,{data:c})}),m2(c&&!c.brNzRatingBadgeType,function(){return _.B(_.y8,{data:c})}))};
_.oi=function(S){if(S){var c;return((c=_.fl().resolve(_.QS(_.Lv)))==null?0:c())?S.darkThemeImage:S.image}};
Hqo=function(S,c,Q,f,U,a){if(U&&a&&c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")return{width:U,height:a};if(!Q)return{};U=Q.size;Q=Q.allowFullWidth;if(c==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&Q)return{fullWidth:!0};if(U===void 0)return{};switch(S){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return{width:U,height:U};case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return{width:U,height:1/Y5c*U};case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return{width:U*
CUY,height:U};default:return(f==null?0:f.height)&&(f==null?0:f.width)?f.width/f.height>1?{maxWidth:U*CUY}:{maxWidth:U}:{maxWidth:U}}};
DMp=function(S){var c;return S&&((c=_.oi(S.themedImage))!=null?c:S.image)};
pOr=function(S){var c;return S==null?void 0:(c=S.sources)==null?void 0:c[0]};
q5Z=function(S,c){var Q,f;return!!((S==null?0:(Q=S.byline)==null?0:Q.hideAvatar)&&((f=_.Y(c,haT))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
TBM=function(S,c){var Q,f;return!!((S==null?0:(Q=S.byline)==null?0:Q.addPadding)&&((f=_.Y(c,haT))==null?void 0:f.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
wOc=function(S,c,Q,f){var U={},a=(U["yt-content-metadata-view-model-wiz__delimiter"]=!0,U["yt-content-metadata-view-model-wiz__delimiter--standalone"]=f,U);return m2(c-1>Q,function(){return _.B("span",{class:_.No(a),"aria-hidden":!0},S)})};
MkR=function(S,c){return _.B(_.mw,{text:S.text,linkInheritColor:!0,className:sXT(c),userInput:!0})};
Zqp=function(S){var c=S.metadataPart;var Q=S.isOverlay;var f=S.useMediumText;var U=S.hideAvatar;var a=1;c.maxLines!==void 0&&(a=c.maxLines);return _.B(_.ak,null,m2(c.avatarStack,function(){return iqz(c.avatarStack,{avatarStackViewModel:{isOverlay:Q,useMediumText:f,hideAvatar:U}})}),m2(c.text,function(){var X=a;
return _.B(_.ak,null,c.tooltip?_.B("span",{title:c.tooltip,role:"tooltip"},MkR(c,X)):MkR(c,X))}))};
sXT=function(S){switch(S){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"}};
G6Y=function(S){var c=S.metadataRow;var Q=S.isInline;var f=S.delimiter;var U=S.isOverlay;var a=S.useMediumText;var X=S.extensions;var z=q5Z(X==null?void 0:X.lockupMetadata,c);S=TBM(X==null?void 0:X.lockupMetadata,c);X=!(!((X==null?0:X.lockupMetadata)&&c.badges)||c.metadataParts);var x={};S=(x["yt-content-metadata-view-model-wiz__metadata-row"]=!0,x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=Q,x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=
S,x["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=X,x);var I,n;return _.B("div",{class:_.No(S)},(I=c.badges)==null?void 0:I.map(function(b){return _.B("div",{class:"yt-content-metadata-view-model-wiz__badge"},iqz(b))}),(n=c.metadataParts)==null?void 0:n.map(function(b,N){return _.B(_.ak,null,Zqp({metadataPart:b,
isOverlay:U,useMediumText:a,hideAvatar:z}),wOc(f,c.metadataParts.length,N,!1))}),m2(c.isSpacerRow&&!Q,function(){return _.B("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
WNx=function(S){var c=S.className;var Q=S.data;var f=S.layout===void 0?0:S.layout;var U=S.isOverlay===void 0?!1:S.isOverlay;var a=S.useMediumText;var X=S.extensions;S=_.EH("yt-content-metadata-view-model");var z=f===0;f={};f=(f["yt-content-metadata-view-model-wiz"]=!0,f["yt-content-metadata-view-model-wiz--inline"]=z,f["yt-content-metadata-view-model-wiz--tappable"]=_.PK(Q.rendererContext),f["yt-content-metadata-view-model-wiz--medium-text"]=a,f);_.xNz(S,Q.rendererContext);return _.B("yt-content-metadata-view-model",
{class:_.No(c,f),el:S},m2(Q.metadataRows,function(){return Q.metadataRows.map(function(x,I){return _.B(_.ak,null,G6Y({metadataRow:x,isInline:z,delimiter:Q.delimiter,isOverlay:U,useMediumText:a,extensions:X}),m2(z&&!x.isSpacerRow,function(){return wOc(Q.delimiter,Q.metadataRows.length,I,!0)}))})}))};
g7M=function(S){switch(S){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"}};
eax=function(S){switch(S.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"}}};
k6T=function(S){var c=_.t3H(_.P0().getState())||"";return S?S+c:""};
rrc=function(S){switch(S){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
v7x=function(S){var c=_.A(_.ny(void 0,void 0,"BIquNb")),Q=c.next().value,f=c.next().value,U=_.A(_.ny(void 0,void 0,"eR0GH"));c=U.next().value;var a=U.next().value;U=_.A(_.ny(void 0,void 0,"UmkP0"));var X=U.next().value,z=U.next().value;return{touchFeedbackEvents:{pointerUpEvent:Q,pointerDownEvent:c,pointerLeaveEvent:X},touchFeedbackOnPointerUp:_.$d(function(x){if(dMz(_.rJ(x)))return!1;f(x);a(void 0);z(void 0);return!0}),
touchFeedbackOnPointerDown:_.$d(function(x){S==null||S(x);if(dMz(_.rJ(x)))return!1;a(x);f(void 0);z(void 0);return!0}),
touchFeedbackOnPointerLeave:_.$d(function(x){dMz(_.rJ(x))||(z(x),a(void 0),f(void 0))})}};
dMz=function(S){var c=["BUTTON".toString()];S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value;for(var f=_.A(c),U=f.next();!U.done;U=f.next())if(Q.tagName===U.value)return!0}return!1};
PUZ=function(S){switch(S){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"}};
LNH=function(S){return S.scrollHeight-S.offsetHeight>1};
E7H=function(S,c){var Q;return PI(S,((Q=S.content)==null?void 0:Q.length)||0,!c)};
tkZ=function(S,c){c=E7H(S,c);var Q,f;return(((Q=S.content)==null?void 0:Q.length)||0)>(((f=c.content)==null?void 0:f.length)||0)};
yro=function(S,c,Q,f,U,a){if(!c||VkT){var X;return PI(S,((X=S.content)==null?void 0:X.length)||0,!0)}c=f.value;if(!Q.value||!c||!S.content)return S;Q=0;f=S.content.length;X=0;Rap||(Rap=Number(window.getComputedStyle(document.documentElement).getPropertyValue("font-size").replace("px","")));var z=Rap;for(U=U*a*z;Q<=f;)a=Math.floor(Q+(f-Q)/2),z=PI(S,a)||S,c.firstChild&&(c.firstChild.textContent=z.content),c.scrollHeight>U?f=a-1:(X=a,Q=a+1);return PI(S,X)};
o7o=function(S,c){var Q,f;return(((Q=S.content)==null?void 0:Q.length)||0)>(((f=c.content)==null?void 0:f.length)||0)};
mMZ=function(S){var c=S.isTruncated;var Q=S.isAbsoluteButton;var f=S.lineHeight;var U=S.contentRef.value,a=S.placeholderTruncationTextRef.value,X=S.truncationTextRef.value;S=S.appDirection==="rtl";if(U&&a){var z=a.offsetLeft;S&&(z=U.offsetWidth-a.offsetWidth-a.offsetLeft);if(c){c=a.offsetWidth;a=U.offsetWidth;var x=Q?a-c-70:z-70;f="linear-gradient(\n      to top, transparent 0%,\n      transparent "+f+"rem,\n      #000 "+f+"rem,\n      #000 100%), linear-gradient(\n      to "+((S?"left":"right")+
",\n      #000 0px,\n      #000 "+x+"px,\n      transparent "+(Q?a-c:x+70)+"px)");U.style.setProperty("-webkit-mask-image",f);U.style.setProperty("mask-image",f)}else U.style.setProperty("-webkit-mask-image",""),U.style.setProperty("mask-image","");Q?S?(X.style.setProperty("left","0"),X.style.setProperty("right","unset")):(X.style.setProperty("left",""),X.style.setProperty("right","0")):S?(X.style.setProperty("left","unset"),X.style.setProperty("right",z+"px")):(X.style.setProperty("left",z+"px"),
X.style.setProperty("right","unset"))}};
S1R=function(S,c,Q,f,U,a,X){var z=_.EH("truncated-text-content"),x=_.EH("truncated-text-content"),I=_.EH("button"),n=_.EH("button"),b=_.EH("button"),N=_.fl().resolve(_.t2),l=_.A(nS(E7H(S,U))),H=l.next().value,q=l.next().value;l=_.A(nS(_.u("enable_truncated_text_max_lines")?o7o(S,H):tkZ(S,U)));var w=l.next().value,g=l.next().value,r=MR(null);T_(function(){function E(){if(z.value&&I.value&&b.value)if(_.u("enable_truncated_text_max_lines")){var V=yro(S,U,z,x,c,Q);q(V);f||requestAnimationFrame(function(){if(z.value&&
I.value&&b.value){var AZ=LNH(z.value)||o7o(S,V);g(AZ);mMZ({isTruncated:AZ,isAbsoluteButton:LNH(z.value),lineHeight:Q,contentRef:z,placeholderTruncationTextRef:I,truncationTextRef:b,appDirection:N})}})}else q(E7H(S,U)),requestAnimationFrame(function(){if(z.value&&I.value&&b.value)if(LNH(z.value))g(!0),f||mMZ({isTruncated:!0,
isAbsoluteButton:!0,lineHeight:Q,contentRef:z,placeholderTruncationTextRef:I,truncationTextRef:b,appDirection:N});else{var AZ=tkZ(S,U);g(AZ);f||mMZ({isTruncated:AZ,isAbsoluteButton:!1,lineHeight:Q,contentRef:z,placeholderTruncationTextRef:I,truncationTextRef:b,appDirection:N})}})}
var v,t;(v=r.value)==null||(t=v.stop)==null||t.call(v);v=new _.S0(E,17);E();r.value=v},[S.content,
c,Q,N,f,a,X,U]);_.wC(function(){var E=function(){Rap=void 0;var t,V;(t=r.value)==null||(V=t.fire)==null||V.call(t)};
if(window.ResizeObserver){var v=new ResizeObserver(E);v.observe(z.value);return function(){var t,V;(t=r.value)==null||(V=t.stop)==null||V.call(t);v.disconnect()}}window.addEventListener("resize",E);
return function(){var t,V;(t=r.value)==null||(V=t.stop)==null||V.call(t);window.removeEventListener("resize",E)}});
return{isTruncated:w,displayText:H,contentRef:z,hiddenRef:x,placeholderTruncationTextRef:I,hiddenTruncationTextRef:n,truncationTextRef:b}};
cgo=function(S){return _.B("button",{"aria-disabled":!0,disabled:!0,class:S.className,el:S.elRef,style:"line-height: "+S.lineHeight+"rem;"},_.B(_.mw,{text:S.text}))};
Qsp=function(S){var c=S.text;var Q=S.alwaysShowTruncationText;var f=S.truncationText;var U=S.onExpandClick;var a=S.maxLines===void 0?2:S.maxLines;var X=S.disableTextMask===void 0?!1:S.disableTextMask;var z=S.textStyle===void 0?"default":S.textStyle;var x=S.accessibilityLabel===void 0?"":S.accessibilityLabel;var I=S.textSize===void 0?"small":S.textSize;var n=_.$d(function(){return void(U==null?void 0:U())});
a:switch(I){case "medium":var b=2;break a;case "large":b=2.2;break a;default:b=1.8}var N=S1R(c,a,b,X,S.alwaysTruncateAtMaxLines===void 0?!1:S.alwaysTruncateAtMaxLines,I,z),l=N.isTruncated;S=N.displayText;c=N.contentRef;var H=N.hiddenRef,q=N.placeholderTruncationTextRef,w=N.hiddenTruncationTextRef;N=N.truncationTextRef;var g={};Q=_.No((g["truncated-text-wiz__absolute-button"]=!X,g["truncated-text-wiz__bottom-button"]=X,g["truncated-text-wiz--hidden"]=!(Q||l),g));X={};z=_.No((X["truncated-text-wiz"]=
!0,X["truncated-text-wiz--overlay"]=z==="overlay",X["truncated-text-wiz--medium-text"]=I==="medium",X["truncated-text-wiz--large-text"]=I==="large",X["truncated-text-wiz--primary-text"]=z==="primary-text",X));I={};I=_.No((I["truncated-text-wiz__truncated-text-content"]=!0,I["truncated-text-wiz__truncated-text-content--hidden-text-content"]=!0,I));return _.B("truncated-text",{class:z,"on:click":n,style:"line-height: "+b+"rem;"},_.B("truncated-text-content",{class:"truncated-text-wiz__truncated-text-content",
el:c,style:"max-height: "+a*b+"rem;"},_.B(_.mw,{text:S}),_.B(cgo,{text:f,lineHeight:b,elRef:q,className:"truncated-text-wiz__inline-button"})),_.B("truncated-text-content",{class:I,el:H,style:"max-height: "+a*b+"rem;","aria-hidden":"true"},_.B(_.mw,{text:S}),_.B(cgo,{text:f,lineHeight:b,elRef:w,className:"truncated-text-wiz__inline-button"})),_.B("button",{"aria-label":x,class:Q,el:N,style:"line-height: "+b+"rem;"},_.B(_.mw,{text:f})))};
fbT=function(S){return{content:S!=null?S:""}};
abp=function(S){var c=S.data;var Q;S={class:S.className};a:switch(c.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var f="yt-video-attribute-view-model--vertical";break a;default:f="yt-video-attribute-view-model--horizontal"}a:switch(c.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var U="yt-video-attribute-view-model--image-small";break a;default:U="yt-video-attribute-view-model--image-large"}a:switch(c.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var a="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":a="yt-video-attribute-view-model--image-avatar";break a;default:a=""}a:switch(c.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var X="yt-video-attribute-view-model--metadata-header";break a;default:X=""}a:switch(c.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var z="yt-video-attribute-view-model--container-card";break a;default:z=""}var x=_.Gv(c.onTap)||_.vK(c.rendererContext)?"yt-video-attribute-view-model--clickable":"";
f=["yt-video-attribute-view-model",f,U,a,X,z,x].join(" ");if(c.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var I="";else U=c.lightColorPalette,a=c.darkColorPalette,X=((I=_.fl().resolve(_.QS(_.Lv)))==null?0:I())&&a?a:U,I=(I=X==null?void 0:X.section2Color)?_.gh(I):"";return _.B("yt-video-attribute-view-model",S,_.B("div",{class:f,style:_.Yd({"background-color":I})},_.B(dNo,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(Q=_.Gv(c.onTap))!=
null?Q:_.vK(c.rendererContext),role:"group",ariaLabel:c.title,forceNewState:!0},c.heroText||c.image?_.B(Uao,{data:c}):null,_.B(JgT,{data:c,sizeSmall:c.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
AgH=function(S){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:S.overflowMenuA11yLabel,onTap:function(c){c.preventDefault();c.stopPropagation();if(S.overflowMenuOnTap){var Q=_.gH({elementsCommand:S.overflowMenuOnTap,forceNewState:!0});if(Q==null?0:Q.onclick)Q.onclick(c)}}}};
Uao=function(S){S=S.data;var c,Q=((c=_.fl().resolve(_.QS(_.Lv)))==null?0:c())&&S.darkThemeImage?S.darkThemeImage:S.image;c=AgH(S);return _.B("div",{class:"yt-video-attribute-view-model__hero-section"},Q?_.B(_.RW,{data:Q,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):S.heroText?_.B("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.B("span",{class:"yt-video-attribute-view-model__hero-text"},S.heroText)):null,S.overflowMenuOnTap?
_.B("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.B(cZ,{data:c,iconName:"MORE_VERT"})):null)};
JgT=function(S){var c=S.data;S=S.sizeSmall;var Q=c.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",f=_.Gv(c.onTap)||_.vK(c.rendererContext);f=_.gH({innertubeCommand:f});f=ew(f);var U={};S={class:_.No("yt-video-attribute-view-model__metadata",(U["yt-video-attribute-view-model--small-font"]=S,U)),role:f?"link":"group"};f=_.B("h1",{class:"yt-video-attribute-view-model__title"},c.title);Q=c.subtitle?_.B("h4",{class:"yt-video-attribute-view-model__subtitle"},Q?_.B(Qsp,{text:fbT(c.subtitle),truncationText:fbT(c.subtitleTruncationText),
maxLines:2}):_.B("span",null,c.subtitle)):null;if(c.secondarySubtitle){U=c.secondarySubtitle;if(U!=null&&U.attachmentRuns){for(var a=[],X=_.A(U.attachmentRuns),z=X.next();!z.done;z=X.next())z=z.value,z.element&&a.push(Object.assign({},z,{element:Object.assign({},z.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));U=Object.assign({},U,{attachmentRuns:a})}U=_.B("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},
_.B(_.mw,{text:U}))}else U=null;return _.B("div",S,f,Q,U,c.buttonViewModel?Xfp(c.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
_.QV=function(S,c,Q,f,U){f=f===void 0?{}:f;if(!U||Math.random()<5E-4){c=c||null;Q=Q||null;S=S instanceof Error?S:new _.Yr(S);if(S.args)for(var a=_.A(S.args),X=a.next();!X.done;X=a.next())X=X.value,X instanceof Object&&(f=Object.assign({},X,f));f.category="H5 Ads Control Flow";c&&(f.slot=c?"slot:  "+c.slotType:"");Q&&(f.layout=Q?"layout:  "+Q.layoutType:"",f.layoutId=Q.layoutId);U&&(f.known_error_aggressively_sampled=!0);S.args=[f];_.i5(S)}};
_.Oer=function(S,c){_.XF(S,"yt-open-popup-action",[_.y5(c),S])};
_.fD=function(S,c){_.Oer(S,_.LK(c))};
xaZ=function(S){if(!S)return"";if(zFZ[S])return zFZ[S];UI||(UI=_.Nf("A"));UI.href!==S&&DQ(UI,S);var c=UI.pathname;zFZ[S]=c.startsWith("/")?c:"/"+c;return zFZ[S]};
FaR=function(){var S=xaZ(window.location.href);if(S==="/")return"home";if(S.startsWith("/results"))return"search";if(S.startsWith("/watch"))return"watch";if(S.startsWith("/shorts"))return"shorts";if(S.startsWith("/hashtag"))return"hashtag";if(S.startsWith("/create_channel"))return"create_channel";if(S.startsWith("/@")||S.startsWith("/user/")||S.startsWith("/channel/"))return"channel";if(S.startsWith("/experiments"))return"experiments";if(S.startsWith("/sponsor_channel"))return"sponsorship";if(S.startsWith("/select_site"))return"settings";
if(S.startsWith("/locate"))return"locate";if(S.startsWith("/redeem"))return"redeem";if(S.startsWith("/musicpremium")||S.startsWith("/premium")||S.startsWith("/red"))return"premium";if(S.startsWith("/paid_memberships"))return"paid_memberships";if(S.startsWith("/oops"))return"oops";if(S.startsWith("/clip"))return"clip";var c;return(JW==null?void 0:(c=JW.response)==null?void 0:c.page)==="404"?"404":S.startsWith("/feed/history")?"history":S.startsWith("/feed/library")?"library":S.startsWith("/feed/subscriptions")?
"subscriptions":S.startsWith("/feed/trending")?"trending":S.startsWith("/feed/news_destination")?"news":S.startsWith("/playlist")?"playlist":S.startsWith("/minor_moment")?"minor_moment":S.startsWith("/playable/")||S.match("^/playables/(?!saved).")?"mini_app":S.startsWith("/playables")?"playables":S.startsWith("/create/live/join")?"open_in_app":S.startsWith("/feed/explore")?"explore":"browse"};
_.bep=function(){var S=JW==null?void 0:JW.response,c=S==null?void 0:S.endpoint;if(!c)return(S==null?void 0:S.page)==="watch"?"watch":FaR();var Q;S=(Q=_.Y(c==null?void 0:c.commandMetadata,_.Qw))==null?void 0:Q.webPageType;Q=!1;if(S&&!BnY.includes(S))switch(S){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 f;return((f=_.Y(c==null?void 0:c.commandMetadata,_.Qw))==null?0:f.url)&&xaZ(_.Y(c.commandMetadata,_.Qw).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var U;return(c=(U=_.Y(c,_.KJ))==null?void 0:U.browseId)?Ibz[c]||"browse":"browse";default:Q=!0}if(_.Y(c,_.aC)||_.Y(c,n2T))return"sponsorship";U=xaZ(window.location.href);if(U.startsWith("/experiments"))return"experiments";if(U.startsWith("/create_channel"))return"create_channel";
if(_.Y(c,_.rQ)&&U.startsWith("/shorts"))return"shorts";if(_.Y(c,_.rQ)&&U.startsWith("/watch"))return"watch";Q&&(c=new _.Yr("Unsupported mWeb page type",{pathname:U,webPageType:S}),_.sH(c));return"browse"};
AW=function(S,c,Q,f){return S&&c?S!==Q||c!==f?(_.QV(Error("Ih"),void 0,void 0,{"stored-slot":S,"stored-layout":c,"latest-slot":Q,"latest-layout":f}),!1):!0:!1};
NnZ=function(S,c,Q){return S({targetId:c},function(f){return Q.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},f,{header:Q.continuationItems?Q.continuationItems[0]:void 0}):Object.assign({},f,{contents:Q.continuationItems?Q.continuationItems:[]})})};
KaY=function(S,c,Q,f){if(c=c.trackingParams){var U,a=(U=Q.getScreenLayer)==null?void 0:U.call(Q);Q=_.wN(a);U=_.T$(a);if(Q&&U){var X=_.Yz(c);_.u("combine_ve_grafts")?S.graftServerVe(c,U,a):_.dS(Q,U,X);f==null||f(X)}}};
u$p=function(S){var c;return((c=$ap.get(S))==null?void 0:c.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
Y1x=function(S,c){var Q={type:c.slotType,controlFlowManagerLayer:jsc.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};c.slotEntryTrigger&&(Q.entryTriggerType=c.slotEntryTrigger.triggerType);c.slotPhysicalPosition!==1&&(Q.slotPhysicalPosition=c.slotPhysicalPosition);if(S){Q.debugData={slotId:c.slotId};if(S=c.slotEntryTrigger)Q.debugData.slotEntryTriggerData=lbp(S);S=c.slotFulfillmentTriggers;Q.debugData.fulfillmentTriggerData=[];S=_.A(S);for(var f=S.next();!f.done;f=S.next())Q.debugData.fulfillmentTriggerData.push(lbp(f.value));
c=c.slotExpirationTriggers;Q.debugData.expirationTriggerData=[];c=_.A(c);for(S=c.next();!S.done;S=c.next())Q.debugData.expirationTriggerData.push(lbp(S.value))}return Q};
lbp=function(S,c){var Q={type:S.triggerType};c!=null&&(Q.category=c);S.triggeringSlotId!=null&&(Q.triggerSourceData||(Q.triggerSourceData={}),Q.triggerSourceData.associatedSlotId=S.triggeringSlotId);S.triggeringLayoutId!=null&&(Q.triggerSourceData||(Q.triggerSourceData={}),Q.triggerSourceData.associatedLayoutId=S.triggeringLayoutId);return Q};
CLr=function(S,c,Q,f){c={opportunityType:c};S&&(f||Q)&&(f=_.D0(f||[],function(U){return Y1x(S,U)}),c.debugData=Object.assign({},Q&&Q.length>0?{associatedSlotId:Q}:{},f.length>0?{slots:f}:{}));
return c};
Hex=function(S){return xu(S.opportunityAdapterMap).concat(xu(S.triggerAdapterMap)).concat(xu(S.fulfillmentAdapterFactoryMap)).concat(xu(S.slotAdapterFactoryMap)).concat(xu(S.layoutRenderingAdapterFactoryMap))};
xu=function(S){var c=[];S=_.A(S.values());for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q.isAdsControlFlowEventListener&&c.push(Q);return c};
BZ=function(S){var c=S.slotId,Q=S.slotType,f=S.slotPhysicalPosition;return c===void 0?new Ff("Cannot construct a slot due to the missing id.",{adSlotMetadata:S}):Q===void 0?new Ff("Cannot construct a slot due to the missing type.",{adSlotMetadata:S}):f===void 0?new Ff("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:S}):{slotId:c,slotType:Q,slotPhysicalPosition:f,managerLayer:"external",adSlotLoggingData:S.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new Dap}};
pfH=function(S){var c=S.layoutId,Q=S.layoutType;return c===void 0?new IC("Cannot construct a layout due to the missing id.",{adLayoutMetadata:S}):Q===void 0?new IC("Cannot construct a layout due to the missing type.",{adLayoutMetadata:S}):{layoutId:c,layoutType:Q,managerLayer:"external",adLayoutLoggingData:S.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new Dap,interactionLoggingAdsClientData:{}}};
hFY=function(S){if((S=S.value)&&S.querySelector("img")){var c=S.querySelector("img");c.addEventListener("error",function(){xLz(c.src).then(function(Q){(Q=_.lo(Q).toString())?c.src=Q:c.removeAttribute("src")}).catch(function(){c.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
bV=function(S,c){if(c&&(q1x(c.viewableCommand)||q1x(c.endOfSessionCommand))){S=S.value;var Q=Tnr(c==null?void 0:c.viewableCommand);c=Tnr(c==null?void 0:c.endOfSessionCommand);if(!nD){var f=_.a6("custom_active_view_tos_timeout_ms");nD=f>0&&f!==36E5?new wfY(ssH(),f):new wfY(ssH())}MUr(nD,S);ier(nD,S,Q,c)}};
N$=function(S){nD&&MUr(nD,S.value)};
ssH=function(){var S=_.WY("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(S==null?void 0:S.length)===2?S[1]:null};
q1x=function(S){S=_.Gv(S);return!(S==null||!S.loggingUrls)&&S.loggingUrls.length>0};
Tnr=function(S){if(!S)return[];var c=[],Q,f;((f=(Q=_.Gv(S))==null?void 0:Q.loggingUrls)!=null?f:[]).forEach(function(U){U.baseUrl&&c.push(U.baseUrl)});
return c};
ZeT=function(S){return S.shorts.isDesktopSmallWidth};
_.G2Z=function(S){return S.shorts.isWatchWhileMode};
_.KD=function(S){return S.shorts.isFullscreen};
_.$u=function(S){return S.shorts.isShortsPipActive};
g2Y=function(S){var c,Q;if(S=(c=_.Y(S.reelsAdCardButtoned,WaT))==null?void 0:(Q=c.animatedRenderingConfig)==null?void 0:Q.easeOutSeconds)return S+"s"};
k2T=function(S,c,Q){return _.O(function(f){return f.return(new Promise(function(U){var a=new Image;a.onload=function(){U(new eFx(S,c,Q,a.naturalWidth,a.naturalHeight))};
a.src=Q.toString()}))})};
rgx=function(S,c){return Math.round(S/1E-5)===Math.round(c/1E-5)};
daz=function(S,c){return Math.round(S/1E-5)===Math.round(c/1E-5)};
v2H=function(S,c){return S.year===c.year&&S.month===c.month&&S.day===c.day};
PLp=function(S,c){return S.year!==c.year?S.year<c.year:S.month!==c.month?S.month<c.month:S.day<c.day};
E2x=function(S){return S.day===LaM(S.year,S.month)?S.month===11?{year:S.year+1,month:0,day:1}:{year:S.year,month:S.month+1,day:1}:{year:S.year,month:S.month,day:S.day+1}};
tUo=function(){var S=new Date,c={year:S.getFullYear(),month:S.getMonth(),day:S.getDate()};return{start:c,end:{year:S.getFullYear()+2,month:S.getMonth(),day:S.getDate()},selectedDate:E2x(c)}};
VUp=function(S){return(new vq(2)).format(new Date(S.year,S.month,S.day))};
RFR=function(S){return{year:S.getFullYear(),month:S.getMonth(),day:S.getDate()}};
ygT=function(S,c){S=(S+(Number(c.utcOffsetSec)+(new Date(S*1E3)).getTimezoneOffset()*60))*1E3;c=RFR(new Date(S));return{date:c,secondsSinceMidnight:Math.floor((S-(new Date(c.year,c.month,c.day)).getTime())/1E3)}};
o2Y=function(S,c){c=c.months.findIndex(function(Q){return Q.year===S.year&&Q.month===S.month});
return c>=0?c:void 0};
max=function(S){if(!S)return!1;try{if(S.host&&S.host.tagName==="YT-FORMATTED-STRING"&&S.host.id==="contenteditable-textarea"||S.nodeType===Node.ELEMENT_NODE&&S.tagName==="YTD-COMMENTBOX")return!0}catch(c){return!1}return max(S.parentNode)};
uV=function(S){return S?!(S.tagName!=="A"||!S.href||!S.classList.contains("yt-simple-endpoint")):!1};
Skz=function(S){return S?S.tagName==="IMG"&&S.classList.contains("emoji"):!1};
cfH=function(S,c,Q){if(!S)return null;var f=uV(S);if(f&&Q)return c=S.pathname.substring(S.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(f&&!Q)return document.createTextNode("");if(Skz(S))return Q=S.alt,S=S.dataset.emojiId,!S&&c&&(c=_.j0(c,Q))&&c.isCustomEmoji&&(S=c.emojiId),S?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+S+">"):document.createTextNode(Q);f=S.cloneNode(!1);for(var U=0;U<S.childNodes.length;++U){var a=cfH(S.childNodes[U],c,Q);a&&f.appendChild(a)}return f};
lV=function(S){return S?uV(S)?S:lV(S.lastChild):null};
QfZ=function(S){return S?uV(S)?S:QfZ(S.firstChild):null};
f9Z=function(S){if(!S)return null;for(var c=S.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=lV(c))?S=c:S=(S=S.parentNode)?lV(S.previousElementSibling):null;return S};
U8c=function(S){if(!S)return null;for(var c=S.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=QfZ(c))?c:U8c(S.parentNode)};
Jfz=function(S){var c=_.Yu(),Q=c.JSC$9293_getStartNode();if(!max(Q.parentNode))return null;c=c.JSC$9293_getStartOffset();if(Q.nodeType===Node.TEXT_NODE){var f=_.Mk(Q,uV);if(f){if(S&&c===0||!S&&c===Q.length)return f}else{if(S&&c===Q.length)return!Q||Q.nodeName==="BR"||Q.nextElementSibling&&_.CD(Q.nextElementSibling,"display")==="block"?null:QfZ(Q.nextElementSibling);if(!S&&c===0)return Q?lV(Q.previousElementSibling):null}}if(Q.nodeType===Node.ELEMENT_NODE)if(S){if(0<=c&&c<Q.childNodes.length)return QfZ(Q.childNodes[c])}else if(0<
c&&c<=Q.childNodes.length)return lV(Q.childNodes[c-1]);return null};
a9p=function(S,c,Q){if(!S)return null;if(S.nodeType===Node.TEXT_NODE)if(Q){var f=f9Z(S);if(f&&!/^\s+\S/.test(S.wholeText.substr(0,c)))return f}else if((f=U8c(S))&&!/\S\s+/.test(S.wholeText.substr(c,S.wholeText.length)))return f;return S.nodeType===Node.ELEMENT_NODE?Q?f9Z(S.childNodes[c]):U8c(S.childNodes[c]):a9p(S.parentNode,c,Q)};
Afp=function(S){if(S.hasChildNodes())switch(S.tagName){case "DIV":case "A":case "SPAN":var c="";for(S=S.firstChild;S;S=S.nextSibling)c+=Afp(S);return c;default:return""}else switch(S.nodeType){case 3:return S.textContent;default:return""}};
HZ=function(S,c){return S.year===c.year&&S.month===c.month&&S.day===c.day};
D6=function(S,c){return S.year!==c.year?S.year<c.year:S.month!==c.month?S.month<c.month:S.day<c.day};
XRp=function(S){return{year:S.getFullYear(),month:S.getMonth(),day:S.getDate()}};
OYY=function(S){var c=dBo;c=c===void 0?dBo:c;c(new Date(S.year,S.month,S.day))};
pD=function(S){return XRp(new Date(Number(S.seconds)*1E3))};
z3z=function(S){return S.year!==void 0&&S.month!==void 0&&S.day!==void 0};
x8Y=function(S){return S.start!==void 0&&S.end!==void 0};
FTz=function(S){return x8Y(S)?S.start:S};
BIY=function(S){return x8Y(S)?S.end:void 0};
nPx=function(S,c){for(var Q=[],f=new Date(S.start.year,S.start.month);f.getFullYear()<S.end.year||f.getFullYear()===S.end.year&&f.getMonth()<=S.end.month;){var U=Q,a=U.push,X=f.getFullYear(),z=f.getMonth(),x=S,I=c,n=void 0,b=[],N=Object.freeze({extraCssClass:"invisible"}),l=new Date(X,z),H=XRp(l);l=l.getDay();for(var q=XRp(new Date);H.month===z;){l!==I9Y&&n||(n=Array.from({length:7}).fill(N),b.push(n));var w={date:{year:X,month:z,day:H.day},extraCssClass:"",debugClass:""};w.extraCssClass=I(w.date,
H,q,x).trim();n[(l-I9Y+7)%7]=w;H=H.day===LaM(H.year,H.month)?H.month===11?{year:H.year+1,month:0,day:1}:{year:H.year,month:H.month+1,day:1}:{year:H.year,month:H.month,day:H.day+1};l=(l+1)%7}a.call(U,{weeks:b,monthLabel:hW.SHORTMONTHS[z]+" "+X,year:X,month:z,monthLabelExtraCssClass:b[0][2]===N?"shift-down-label":""});f.setMonth(f.getMonth()+1)}return Q};
bYp=function(S,c){c=c.months.findIndex(function(Q){return Q.year===S.year&&Q.month===S.month});
return c>=0?c:void 0};
KTr=function(S,c){a:{var Q=Q===void 0?[2,3]:Q;Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next()){var U=new Date;if((new NIY(f.value)).parse(c,U,{validate:!0})){U.setHours(0,0,0,0);c=U;break a}}c=null}if(!c)return{isValid:!1,value:void 0};c=XRp(c);Q=S.end;return D6(c,S.start)||D6(Q,c)?{isValid:!1,value:void 0}:{isValid:!0,value:c}};
Ykp=function(S){var c=$8M;c=c===void 0?usp:c;var Q=S.columnsToShow||[],f=jfT(S.columnDimensions,S.columnsToShow,S.leftFloatingColumns,c);return Q.map(function(U,a){var X=S.columns[U];if(X===void 0)throw Error("Oh");var z=f?f[a]:"";var x=S.getCustomTooltip?S.getCustomTooltip(U,X.headerTooltipParagraphs):X.headerTooltipParagraphs;var I=l9r(S,U);return{type:U,index:a,style:z,classes:I,headerName:X.headerName||"",headerIcon:X.headerIcon,headerTooltipParagraphs:x||[],headerTooltipHelpContext:X.headerTooltipHelpContext,
sortOrders:X.sortOrders||[],selectionState:X.isSelectionCheckbox?S.selectionState:void 0}})};
l9r=function(S,c){var Q=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],f=S.columns[c];if(f===void 0)return"";var U=Q.includes("DEFAULTS")&&f.cssClass?[f.cssClass]:[];if(Q.includes("SORTING")){f.sortOrders&&f.sortOrders.length&&U.push("sortable");if(S.sorting&&S.sorting.columnType===c)a:switch(S.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var a="column-sorted";break a;default:a=""}else a="";a&&U.push(a)}Q.includes("FLOATING")&&(c=S.columnsToShow.indexOf(c),S.leftFloatingColumns&&c<S.leftFloatingColumns&&
U.push("floating-column"),S.leftFloatingColumns&&c===S.leftFloatingColumns-1&&U.push("last-floating-column"));Q.includes("RIGHT_ALIGN")&&f.rightAlignHeader&&U.push("right-align");return U.filter(function(X){return X}).join(" ")};
jfT=function(S,c,Q,f){Q=Q===void 0?0:Q;f=f===void 0?usp:f;if(S){var U=[],a=0;C0M(S,c,f).forEach(function(X,z){var x="min-width:"+X.minWidth+"px;padding-left:"+X.paddingLeft+"px;padding-right:"+X.paddingRight+"px;flex:"+X.flexGrow+" 0 "+X.minWidth+"px;";X.maxWidth!==Infinity&&(x=[x,"max-width:"+X.maxWidth+"px;"].join(""));a>0&&z<Q&&(x=[x,"left:"+a+"px;"].join(""));U.push(x);a+=X.minWidth+X.paddingLeft+X.paddingRight});
return U}};
C0M=function(S,c,Q){Q=Q===void 0?usp:Q;return c.map(function(f,U){f=S&&S[f]||{};var a=U===0?Q.paddingLeftFirstColumn:Q.padding;f.paddingLeft!==void 0&&(a=f.paddingLeft);U=U===c.length-1?Q.paddingRightLastColumn:Q.padding;f.paddingRight!==void 0&&(U=f.paddingRight);return{paddingLeft:a,paddingRight:U,minWidth:f.minWidth!==void 0?f.minWidth:Q.minWidth,maxWidth:f.maxWidth!==void 0?f.maxWidth:Q.maxWidth,flexGrow:f.flexGrow!==void 0?f.flexGrow:Q.flexGrow}})};
HYM=function(S){var c=S.reduce(function(f,U){var a=U.columnId,X={};U.headerText&&(X.headerName=_.Em(U.headerText));U.rightAlignHeader&&(X.rightAlignHeader=U.rightAlignHeader);var z;if((z=U.headerIcon)==null?0:z.iconType)X.headerIcon=_.xz(U.headerIcon.iconType);f[a]=X;return f},{}),Q=S.filter(function(f){return!f.hideColumn}).map(function(f){return f.columnId});
S=S.filter(function(f){return!!f.dimensions}).reduce(function(f,U){f[U.columnId]=U.dimensions;
return f},{});
return{columns:c,columnsToShow:Q,columnDimensions:S}};
_.D8Y=function(S){return S?S.simpleText?S.simpleText:S.runs?S.runs.map(function(c){return c.text}).join(""):"":""};
wRR=function(S){var c=S.data;var Q=S.onTap;var f=S.isSelected;var U=S.onFocusIn;if(!c)return{};S=pRz(c);f===void 0&&(f=c==null?void 0:c.isSelected);var a;return{text:h3Y(c,S),startIcon:(a=c.icon)==null?void 0:a.iconType,state:f?0:2,type:0,onTap:qkp(c,Q),accessibilityLabel:TIo(c,S),onFocusIn:function(){return U==null?void 0:U()}}};
h3Y=function(S,c){if(!c)return S.text?_.D8Y(S.text):void 0};
qkp=function(S,c){return function(Q){c==null||c(Q,S)}};
pRz=function(S){S=S.style&&S.style.styleType;return!VkT&&S==="STYLE_EXPLORE_LAUNCHER_CHIP"};
TIo=function(S,c){if(c){var Q,f,U;return(U=(Q=S.accessibilityData)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label)!=null?U:h3Y(S,!1)}};
q$=function(S){return{signalAction:{signal:S}}};
iYc=function(){return _.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?sfY:_.MAR};
ZYH=function(S,c){S=S===void 0?"SOFT_RELOAD_PAGE":S;c=c===void 0?49504:c;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.fK(_.K8("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:c}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:S}}]}}}};
Gxz=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.fK(_.K8("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:iYc()}};
WTo=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.fK(_.K8("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:iYc()}};
gPM=function(S,c){var Q=_.fK(_.K8("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),f=_.fK(_.K8("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),U={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.fK(_.K8("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};U.serviceEndpoint=S?S:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[q$("SOFT_RELOAD_PAGE")]}};return{title:Q,bodyText:f,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:U},
style:{value:c!=null?c:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
kxo=function(S){S=S===void 0?{}:S;return{title:_.fK(S.localizedZeroStateTitleText===void 0?"":S.localizedZeroStateTitleText),bodyText:_.fK(S.localizedZeroStateMessage===void 0?"":S.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fK(S.localizedZeroStateButtonText===void 0?"":S.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[e3p]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.vPY=function(S,c,Q,f,U,a,X,z){f=f===void 0?!1:f;U=U===void 0?!1:U;a=a===void 0?0:a;X=X===void 0?-Infinity:X;z=z===void 0?!1:z;var x=[],I=_.fK(_.K8("SMART_DOWNLOADS",void 0,"Smart downloads"));X=_.fK(rfM(a,X,S.length));a=void 0;f?S.length>0?a=d8Z(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.u("kevlar_manual_downloads_above"),I,X):z?a={alertBannerViewModel:{heading:{content:Q.localizedOptInBannerTitleText===void 0?"":Q.localizedOptInBannerTitleText},body:{content:Q.localizedPromptMessage===
void 0?"":Q.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.K8("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.K8("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:_.Jpx}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:U&&(a={backgroundPromoRenderer:{bodyText:_.fK(_.K8("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"}}}):U&&(a={alertBannerViewModel:{heading:{content:Q.localizedOptInBannerTitleText===void 0?"":Q.localizedOptInBannerTitleText},
body:{content:Q.localizedOptInMessage===void 0?"":Q.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.K8("TURN_ON",void 0,"Turn on"),accessibilityText:_.K8("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}}}}}});Q=_.fK(_.K8("YOUR_DOWNLOADS",void 0,"Your downloads"));U=void 0;c.length>0?(U=void 0,_.u("kevlar_display_downloads_numbers")&&(U=_.fK(_.$t("VIDEO_COUNT",c.length))),U=d8Z(c,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,Q,U)):f||S.length||(U={backgroundPromoRenderer:{bodyText:_.fK(_.K8("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}}}});a&&!_.u("kevlar_manual_downloads_above")&&x.push({richSectionRenderer:{content:a,loggingDirectives:{clientVeSpec:{uiType:139572}}}});U&&x.push({richSectionRenderer:{content:U,loggingDirectives:{clientVeSpec:{uiType:51721}}}});a&&_.u("kevlar_manual_downloads_above")&&x.push({richSectionRenderer:{content:a,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(c.length>0||f&&S.length>0)&&x.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.fK(_.K8("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:x}};
_.LTz=function(S){return P0z(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.EPH=function(S){return P0z(S,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
P0z=function(S,c){var Q=[];S=d8Z(S,c,!0);Q.push({richSectionRenderer:{content:S}});return{contents:Q}};
d8Z=function(S,c,Q,f,U){Q=Q===void 0?!1:Q;var a="RESPONSIVE_SIZE_STANDARD";_.u("kevlar_modern_downloads_compact")?a="RESPONSIVE_SIZE_COMPACT":_.u("kevlar_modern_downloads_extra_compact")&&(a="RESPONSIVE_SIZE_EXTRA_COMPACT");S={isExpanded:Q,contents:Tw(S),entitySelectorType:c,responsiveContainerConfiguration:{responsiveSize:a}};f&&(S.title=f);U&&(S.subtitle=U);Q||(_.u("kevlar_smart_downloads_show_more_button")?(S.showMoreButton={buttonRenderer:{accessibility:{label:_.K8("SHOW_MORE",void 0,"Show more")},
icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.fK(_.K8("SHOW_MORE",void 0,"Show more"))}},S.showLessButton={buttonRenderer:{accessibility:{label:_.K8("SHOW_LESS",void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.fK(_.K8("SHOW_LESS",void 0,"Show less"))}}):(S.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.K8("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}}}},S.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",accessibilityText:_.K8("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}}}},S.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.K8("VIEW_ALL",void 0,"View all"),accessibilityText:_.K8("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:cq("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:S}};
Tw=function(S){var c=[];S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,kpr(Q)){var f=c,U=f.push;var a=void 0;if(Q==null?0:(a=Q.videoEntity)==null?0:a.videoId){a=Wq(_.V5().getState(),Q.videoEntity.videoId);var X=_.V5().getState();var z=_.xy(Q.videoEntity.videoId,"mainVideoEntity");X=!!_.D8(X.entities)[z];X={videoId:Q.videoEntity.videoId,title:Um(Q.videoEntity.title),shortBylineText:Um(Q.channelEntity.title),thumbnail:Q.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:X&&_.u("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:kgz(Q.videoEntity.videoId,a,Q.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.K8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};Q.videoEntity.lengthSeconds&&(X.thumbnailOverlays=XLp(Q.videoEntity.lengthSeconds,a));X.isWatched=a>0;_.u("kevlar_modern_downloads_page")&&(X.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Q.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.K8("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},X.badges=void 0);Q=X}else Q={};U.call(f,{richItemRenderer:{content:{videoRenderer:Q},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(e6r(Q)){f=c;U=f.push;var x=z=a=void 0,I=void 0,n=void 0,b=void 0,N=void 0,l=void 0,H=void 0,q=void 0,w=void 0,g=void 0;X=Q.mainPlaylistEntity.playlistId;var r=Q==null?void 0:(g=Q.mainPlaylistEntity)==null?void 0:(w=g.thumbnailStyleData)==null?void 0:(q=w[0])==null?void 0:(H=q.value)==null?void 0:(l=H.collageThumbnail)==
null?void 0:l.coverThumbnail;if(X&&r){l=r1p(X);!_.u("enable_offline_playlist_page")&&(Q==null?0:(N=Q.mainPlaylistEntity)==null?0:N.videos)&&(N=Q==null?void 0:(b=Q.mainPlaylistEntity)==null?void 0:(n=b.videos)==null?void 0:n[0],n=_.XT(N).entityId,n=JSON.parse(n).videoId,n!==void 0&&(b=Wq(_.V5().getState(),n),l=_.Q5(n,X,void 0,void 0,b)));n=[];if(Q==null?0:(I=Q.mainPlaylistEntity)==null?0:(x=I.videos)==null?0:x.length)n=[rpz(),Object.assign({},(z=kFT(Q==null?void 0:Q.mainPlaylistEntity.videos.length))!=
null?z:{})];Q={playlistId:X,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:r}},navigationEndpoint:l,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:n,title:Um(Q.mainPlaylistEntity.title),shortBylineText:Um(Q==null?void 0:(a=Q.channelEntity)==null?void 0:a.title),badges:[{metadataBadgeRenderer:{label:_.K8("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.u("kevlar_modern_downloads_page")&&(Q.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:tAH,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:X,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.K8("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},Q.badges=void 0)}else Q=void 0;U.call(f,{richItemRenderer:{content:{playlistRenderer:Q},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return c};
rfM=function(S,c,Q){S=S?VAp(S):"";c!==void 0&&isFinite(c)?c===0?c=_.K8("UPDATING",void 0,"Updating..."):(c=AAp(new Date(c),new Date),c=_.K8("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var f="";S&&c&&(f=" \u2022 ");if(Q&&_.u("kevlar_display_downloads_numbers")){Q=_.$t("VIDEO_COUNT",Q);if(S||c)f=" \u2022 ";return Q+f+S+f+c}return S+f+c};
R3z=function(S){return wxc(S.entities).length};
_.yfz=function(S,c){var Q=zaZ(S.responsiveSize),f;S=!((f=S.responsiveMap)==null||!f.some(function(U){return U.containerSize==="CONTAINER_SIZE_NARROW"&&U.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:c,sizing:Q,enableFullBleedForSingleCol:!1,isCompactList:Q==="COMPACT"&&S}};
oPY=function(S,c){return _.FT(S.entities,"votingEntity",c)};
m8z=function(S){if(S){var c;return((c=_.fl().resolve(_.QS(_.Lv)))==null?0:c())?S.darkTheme:S.lightTheme}};
SKH=function(S,c){if(S.simpleText)return Object.assign({},S,{simpleText:dH(S.simpleText,c)});if(!S.runs)return S;for(var Q=Object.assign({},S,{runs:[]}),f=0,U=_.A(S.runs),a=U.next();!a.done;a=U.next())if(a=a.value,a.text)if(f+a.text.length<=c)Q.runs.push(a),f+=a.text.length;else return Q.runs.push(Object.assign({},a,{text:dH(a.text,c-f)})),Q;return S};
cYr=function(S,c){return _.FT(S.entities,"chipBarStateEntity",c)};
QDp=function(S,c){return _.FT(S.entities,"chipEntity",c)};
UWo=function(S,c,Q,f){return function(){var U=foZ.has(S.displayType)&&S.selected,a=U&&S.deselectCommand?S.deselectCommand:S.tapCommand;!a||U&&f||_.kz(a,{form:{element:c==null?void 0:c.value}});Q==null||Q()}};
JYz=function(S){switch(S){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""}};
aox=function(S,c){return{triggeringElement:S,onDwellTriggeredFn:function(){var Q={triggeringElement:S,loadVideoPreviewEventData:c},f=document.querySelector(".video-preview");f&&f.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:Q}))},
onDwellEndFn:function(){var Q=document.querySelector(".video-preview");Q&&Q.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
AYM=function(S,c){var Q=_.fl().resolve(_.QS(RyZ)),f=function(){var U=c();return Q&&U?aox(S.value,U):null};
_.To(function(){var U=f();Q&&U&&Promise.resolve().then(function(){Q.registerElement(U)});
_.wX(function(){Q&&U&&Promise.resolve().then(function(){yEY(Q,U)})})},"csPUge")};
OQH=function(S){var c=S.dataset.resizeObserverId;if(c)return c;c=""+X6R++;return S.dataset.resizeObserverId=c};
zPx=function(S,c){var Q=OQH(S);wD.has(Q)||wD.set(Q,new Set);wD.get(Q).add(c);sI.has(Q)&&c(Object.assign({},{target:S},sI.get(Q)))};
xWr=function(S){S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;var Q=OQH(c.target),f=Object.assign({},{target:c.target},sI.get(Q));if(f!=null&&f.contentRect?f.contentRect.width!==c.contentRect.width||f.contentRect.height!==c.contentRect.height:1)for(sI.set(Q,{borderBoxSize:c.borderBoxSize,contentBoxSize:c.contentBoxSize,contentRect:c.contentRect,devicePixelContentBoxSize:c.devicePixelContentBoxSize}),Q=_.A(wD.get(Q)||[]),f=Q.next();!f.done;f=Q.next())f=f.value,f(c)}};
Bqp=function(){return M$?M$:M$=new FHT(xWr)};
Ioz=function(S,c){var Q=OQH(S);wD.has(Q)&&(wD.get(Q).delete(c),wD.get(Q).size===0&&(wD.delete(Q),sI.delete(Q),M$.unobserve(S),delete S.dataset.resizeObserverId));wD.size===0&&M$&&(M$.disconnect(),M$=void 0)};
bQr=function(S,c){var Q=_.fl().resolve(SR);return nBH.map(function(f){return Q.observe(S,c,f)})};
NqH=function(S){var c=_.fl().resolve(SR);S.forEach(function(Q){c.unobserveByKey(Q)})};
_.uMc=function(S,c){var Q=Object.assign({},KHp,c);c=_.A(s6Y());var f=c.next().value,U=c.next().value,a=function(X){var z=X.contentRect.height;if((X=X.contentRect.width)||z||Q.canHaveZeroSize)f.width()===X&&f.height()===z||U(f,{height:z,width:X})};
_.wC(function(){var X=S instanceof HTMLElement?S:S.value,z=$WZ(a,Q.throttleMs),x=[];Q.useVisibilityObserver&&(x=bQr(X,function(I,n){requestAnimationFrame(function(){n==="visible"?(zPx(X,z),Bqp().observe(X)):Ioz(X,z)})}));
x.length||(zPx(X,z),Bqp().observe(X));_.wX(function(){x.length&&(NqH(x),x.length=0);Ioz(X,z)})});
return f};
loY=function(S){var c=S.data;var Q=S.callback;var f=S.enableSingleChipSelection;var U=S.disableChipsScrollAnimation;var a=_.tc("div"),X=MR(!1),z=MR(0);S={};S=_.A(nS(c.autoselectedChipIndex!=null?(S[c.autoselectedChipIndex]=!0,S):{}));var x=S.next().value,I=S.next().value,n=function(){var IH=a.value;return IH==null||IH.scrollLeft-1<=0},b=function(){var IH=a.value;
return IH==null?!1:IH.scrollLeft+1>=(IH==null?NaN:IH.scrollWidth)-(IH==null?NaN:IH.clientWidth)};
S=_.A(nS(n()));var N=S.next().value,l=S.next().value;S=_.A(nS(b()));var H=S.next().value,q=S.next().value;S=c.isHorizontallyScrollable;var w=function(IH){a.value!=null&&(_.WY("HTML_DIR")==="rtl"&&(IH=-IH),a.value.scrollBy({left:IH,behavior:U?"instant":"smooth"}))},g=function(){w(-320)},r=function(){w(320)},E=_.$d(function(IH){X.value=!0;
z.value=IH.clientX}),v=_.$d(function(IH){if(X.value){IH=IH.clientX;
var Nr=IH-z.value;z.value=IH;var Hc;(Hc=a.value)==null||Hc.scrollBy({left:-Nr})}}),t=_.$d(function(){var IH=n(),Nr=b();
IH!==N&&l(IH);Nr!==H&&q(Nr)});
mY("pointerup",function(){X.value&&(X.value=!1)});
var V={},AZ={};return _.B("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},m2(c.title,function(){return _.B("div",{class:"ytChipsShelfViewModelChipsShelfHeader"},_.B("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},c.title),jDY(c.overflowButton))}),_.B("div",{class:"ytChipsShelfViewModelChipsShelfContent"},m2(c.previousButton!=null,function(){var IH={};
return _.B("div",{class:_.No("ytChipsShelfViewModelLeftArrowContainer",(IH.ytChipsShelfViewModelLeftArrowContainerIsHidden=N,IH))},jDY(c.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:g}}))}),_.B("div",{el:a,
"on:pointerdown":E,"on:pointermove":v,"on:scroll":t,class:_.No("ytChipsShelfViewModelChipsScrollContainer",(V.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!S,V))},_.B("div",{class:_.No("ytChipsShelfViewModelChipsContainer",(AZ.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!S,AZ.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!S&&!1,AZ))},(c.contents||[]).map(function(IH,Nr){return _.B("div",{class:"ytChipsShelfViewModelChipWrapper"},jDY(IH,
{chipViewModel:{callback:function(Hc,qr){if(f){var wp={};I((wp[Nr]=qr,wp))}else wp={},I(Object.assign({},x,(wp[Nr]=qr,wp)));Q==null||Q(Hc,qr,Nr)},
disableDeselection:f,selected:!!x[Nr]}}))}))),m2(c.nextButton!=null,function(){var IH={};
return _.B("div",{class:_.No("ytChipsShelfViewModelRightArrowContainer",(IH.ytChipsShelfViewModelRightArrowContainerIsHidden=H,IH))},jDY(c.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:r}}))})))};
ChZ=function(S,c,Q,f,U){S=c?S.switchOffCommand:S.switchOnCommand;if(f&&U)YKY(S,Q,U);else{var a,X;(a=_.gH({elementsCommand:S}))==null||(X=a.onclick)==null||X.call(a,Q)}};
YKY=function(S,c,Q){S=_.gH({elementsCommand:S,additionalCommandArgs:{commandController:{onSuccess:function(){Q(!1)},
onServerError:function(){Q(!1)}}}});
if(S==null?0:S.onclick)S.onclick(c),Q(!0)};
DWz=function(S){if(S)return _.Y(S,HQT)};
w6z=function(S,c,Q){if(c)return[p6R];switch(S){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[iV];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return Q?[iV]:[hPY,iV];case "TRANSFER_STATE_PAUSED_BY_USER":return[qKT,iV];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[Tqc,iV];default:return[p6R]}};
sDZ=function(S,c,Q,f){return w6z(S,c,f).map(function(U){var a=U.text,X=U.iconType,z=U.videoAction;U=U.playlistAction;a=a?{content:a}:void 0;X=X&&{sources:[{clientResource:{imageName:X}}]};var x=(0,_.Cn.unsafeClone)(Q);if(x){var I=_.Y(x,_.BK),n=_.Y(x,_.Ii);I&&z?I.action=z:n&&U&&(n.action=U)}return{title:a,leadingImage:X,rendererContext:x&&{commandContext:{onTap:{innertubeCommand:x}}}}})};
Mfr=function(S){S=_.vK(S.rendererContext);var c;return(c=_.Y(S,_.Ii))==null?void 0:c.playlistId};
iQY=function(S){var c;return(c=S.listItems)==null?void 0:c.some(function(Q){var f;return _.PK((f=_.Y(Q,_.$a))==null?void 0:f.rendererContext)})};
GbZ=function(S){var c;return(c=S.listItems)==null?void 0:c.some(function(Q){Q=_.Y(Q,_.$a);return!!_.Y(Q==null?void 0:Q.leadingAccessory,ZQz)})};
Z6=function(S){var c=_.fl().resolve(_.QS(_.Lv));return c!=null&&c()?S.darkThemeColorPalette:S.lightThemeColorPalette};
WZ=function(S){return{primaryTextColor:Gw(S,0),secondaryTextColor:Gw(S,1),optionColor:Gw(S,2),backgroundColor:Gw(S,3),videoBackgroundColor:Gw(S,4)}};
Gw=function(S,c){if(S){switch(c){case 0:S=S.primaryTitleColor;break;case 1:S=S.secondaryTitleColor;break;case 2:S=S.surgeColor;break;case 3:S=S.section2Color;break;case 4:S=S.section3Color;break;default:return}if(S)return _.WV(S)}};
WHp=function(S){return S?_.gh(S):""};
gBp=function(S){return(S==null?void 0:S.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
ePr=function(S,c){var Q;return"linear-gradient(to bottom, "+((Q=c==null?void 0:c.map(function(f){var U=S?f.darkThemeColor:f.lightThemeColor;return U?_.gh(U)+" "+((f==null?void 0:f.startLocation)||0)*100+"%":"transparent"}))==null?void 0:Q.join(", "))+")"};
kbz=function(S,c,Q,f,U){if(!((f==null?0:f.height)&&(f==null?0:f.width)))return{size:0};var a=f.width;f=f.height;if(U)return c==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&a>f?{size:312/CUY}:c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(Q!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||S!==1&&S!==2||c!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&c!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&c!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(c==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||c==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||f===a)switch(S){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(c==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||f>a)switch(S){case 1:case 3:return{size:240*Y5c};default:return{size:360*Y5c}}switch(S){case 1:case 2:return{size:1/CUY*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.rYp=function(S){if(!("matchMedia"in window))return _.dC(Error("Ph")),function(){return!1};
var c=window.matchMedia(S);S=_.A(_.ny(c.matches,void 0,"jLJc8e"));var Q=S.next().value,f=S.next().value,U=function(a){f(a.matches)};
c.addEventListener?(c.addEventListener("change",U),_.wX(function(){c.removeEventListener("change",U)})):c.addListener&&(c.addListener(U),_.wX(function(){c.removeListener(U)}));
return Q};
dWR=function(S){return S==="IMAGE_BANNER_STYLE_INSET"||S==="IMAGE_BANNER_STYLE_UNKNOWN"};
vBY=function(){if(!("matchMedia"in window))return _.dC(Error("Ph")),function(){return 0};
var S=sp(function(){return window.matchMedia("(max-width: 527.9px)")}),c=sp(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),Q=sp(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),f=sp(function(){return window.matchMedia("(min-width: 1024px)")}),U=_.A(_.ny(S.matches,void 0,"og9kEc")),a=U.next().value,X=U.next().value;
U=_.A(_.ny(c.matches,void 0,"ybDWCb"));var z=U.next().value,x=U.next().value;U=_.A(_.ny(Q.matches,void 0,"o0Gfh"));var I=U.next().value,n=U.next().value;U=_.A(_.ny(f.matches,void 0,"yqUUgd"));var b=U.next().value,N=U.next().value,l=sp(function(){return function(g){X(g.matches)}}),H=sp(function(){return function(g){x(g.matches)}}),q=sp(function(){return function(g){n(g.matches)}}),w=sp(function(){return function(g){N(g.matches)}});
_.wC(function(){S.addEventListener?(S.addEventListener("change",l),c.addEventListener("change",H),Q.addEventListener("change",q),f.addEventListener("change",w)):S.addListener&&(S.addListener(l),c.addListener(H),Q.addListener(q),f.addListener(w));_.wX(function(){S.removeEventListener?(S.removeEventListener("change",l),c.removeEventListener("change",H),Q.removeEventListener("change",q),f.removeEventListener("change",w)):S.removeListener&&(S.removeListener(l),c.removeListener(H),Q.removeListener(q),
f.removeListener(w))})});
return function(){return a()?1:z()?2:I()?3:b()?4:0}};
PhY=function(S){var c=0;S=_.A([S.title,S.metadata,S.actions,S.description,S.attribution]);for(var Q=S.next();!Q.done;Q=S.next())Q.value&&c++;return c};
LHp=function(S){return S===1||S===2?1:0};
tfr=function(S){var c,Q=((c=_.fl().resolve(_.QS(_.Lv)))==null?0:c())&&S.data.darkThemeImage?S.data.darkThemeImage:S.data.image;c=_.B("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.B("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},Q?_.B(_.RW,{data:Q,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),EBH(S.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));Q=_.B(_.mw,{text:S.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var f=S.data;if(f.bodyText){var U=[];f=_.A(f.bodyText);for(var a=f.next();!a.done;a=f.next())U.push(_.B(_.mw,{text:a.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else U=_.B(_.ak,null);return _.B("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},c,Q,U,EBH(S.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.B(_.mw,{text:S.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.B(_.mw,{text:S.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
RPZ=function(S){S=(new VfZ).parse(S);return(new xU).render(S).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(c){var Q=c.split(":").map(Number),f=0,U=0;if(Q.length===3)Q=_.A(Q),f=Q.next().value,U=Q.next().value,Q=Q.next().value;else if(Q.length===2)Q=_.A(Q),U=Q.next().value,Q=Q.next().value;else if(Q.length===1)Q=_.A(Q).next().value;else throw Error("Qh");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(f*3600+U*60+Q)+'" role="button">'+c+"</span>"})};
yYZ=function(S){S=_.A(S.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var c=S.next(),Q={};!c.done;Q={clickHandler$jscomp$4:void 0},c=S.next()){c=c.value;Q.clickHandler$jscomp$4=function(U){U=Number(U.target.getAttribute("data-time"));if(isNaN(U))throw Error("Rh");var a;(a=_.zI())==null||a.seekTo(U,!0)};
var f=function(U){return function(a){a.key!=="Enter"&&a.key!=="Space"||(0,U.clickHandler$jscomp$4)(a)}}(Q);
c.setAttribute("tabindex","0");c.removeEventListener("click",Q.clickHandler$jscomp$4);c.removeEventListener("keydown",f);c.addEventListener("click",Q.clickHandler$jscomp$4);c.addEventListener("keydown",f)}};
oBp=function(){return _.B("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.B(gD,{percentWidth:100}),_.B(gD,{animationDelay:200}),_.B(gD,{animationDelay:400}),_.B(gD,{animationDelay:600}),_.B(gD,{animationDelay:800,percentWidth:60}),_.B("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.B(gD,{percentWidth:100}),_.B(gD,{animationDelay:200}),_.B(gD,{animationDelay:400}),_.B(gD,{animationDelay:600,percentWidth:50}))};
gD=function(S){return _.B("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(S.percentWidth===void 0?100:S.percentWidth)+"%"},_.B("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(S.animationDelay===void 0?0:S.animationDelay)+"ms"}))};
mWY=function(){var S=_.A(_.ny(function(){return""},void 0,"v2wS5e")),c=S.next().value;
return[function(){return c()()},
S.next().value]};
csp=function(S){S=S===void 0?{}:S;return{title:_.fK(S.localizedOptInBannerTitleText===void 0?"":S.localizedOptInBannerTitleText),titleLength:19,subtitle:_.fK(S.localizedOptInMessage===void 0?"":S.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fK(_.K8("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:_.fK(_.K8("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:[SGZ]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
Qcz=function(S,c){S=S?VAp(S):"";c!==void 0&&isFinite(c)?c===0?c=_.K8("UPDATING",void 0,"Updating..."):(c=AAp(new Date(c),new Date),c=_.K8("UPDATED_TIME",{relative_time:c},"Updated "+c)):c="";var Q="";S&&c&&(Q=" \u2022 ");return _.fK(S+Q+c)};
JsY=function(S,c,Q,f,U,a){c=c===void 0?0:c;var X=faZ[c],z=X.title,x=X.iconType,I=X.topButtonRenderer,n=X.sectionClientVE;X=X.videoClientVE;var b;if(c!==1||S.length){Q=[];S=_.A(S);for(f=S.next();!f.done;f=S.next()){var N=f.value;if(kpr(N))Q.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:N.videoEntity.videoId,title:Um(N.videoEntity.title),shortBylineText:Um(N.channelEntity.title),thumbnail:N.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:N.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.K8("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:X}}}}}});else if(e6r(N)){f=Q;var l=f.push;var H=void 0,q=void 0,w=void 0,g=void 0,r=void 0,E=void 0,v=void 0,t=void 0,V=N.mainPlaylistEntity.playlistId,AZ=N==null?void 0:(t=N.mainPlaylistEntity)==null?void 0:(v=t.thumbnailStyleData)==null?void 0:(E=v[0])==null?void 0:(r=E.value)==null?void 0:(g=r.collageThumbnail)==null?void 0:g.coverThumbnail;g=r1p(V);if(!_.u("enable_offline_playlist_page")&&
(N==null?0:(w=N.mainPlaylistEntity)==null?0:w.videos)){b:{w=N==null?void 0:(q=N.mainPlaylistEntity)==null?void 0:q.videos;q=_.V5().getState().entities;if(w!=null&&w.length&&q)for(w=_.A(w),r=w.next();!r.done;r=w.next())if(r=_.XT(r.value).entityId,(r=JSON.parse(r).videoId)&&q$Y(q,r)==="TRANSFER_STATE_COMPLETE"){q=r;break b}q=""}q!==void 0&&(g=Wq(_.V5().getState(),q),g=_.Q5(q,V,void 0,void 0,g))}q=voY(_.K8("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),r1p(V));N=V&&AZ&&q?{playlistId:V,navigationEndpoint:g,
viewPlaylistText:q,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:AZ}},title:Um(N.mainPlaylistEntity.title),shortBylineText:Um(N==null?void 0:(H=N.channelEntity)==null?void 0:H.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:U2r,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:V,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.K8("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:X}}}:
void 0;l.call(f,{gridPlaylistRenderer:N})}}X={gridRenderer:{items:Q}};c===1&&(b=Qcz(U,a))}else if(f){var IH=_.fK((l=Q==null?void 0:Q.localizedPromptMessage)!=null?l:"");X={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fK(_.K8("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.Jpx}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.fK(_.K8("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};b=Qcz(U,a)}else IH=_.fK(_.K8("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
X={};return{contents:[{shelfRenderer:{title:z,titleAnnotation:b,icon:{iconType:x},subtitle:IH,content:X,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:I}]}}}}],loggingDirectives:{clientVeSpec:{uiType:n}}}};
aaM=function(S,c,Q,f,U,a,X,z){Q=Q===void 0?{}:Q;f=f===void 0?!1:f;U=U===void 0?!1:U;a=a===void 0?!1:a;X=X===void 0?0:X;z=z===void 0?-Infinity:z;if(!c.length&&!S.length&&!f)return U?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:kxo(Q)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.fK(_.K8("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 x=[];S.length&&x.push(JsY(S,0));f?x.push(JsY(c,1,Q,a,X,z)):U&&x.push({contents:[{statementBannerRenderer:csp(Q)}]});(f&&c.length||S.length)&&x.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.fK(_.K8("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 x.map(function(I){return{itemSectionRenderer:I}})};
e0=function(S,c){if(typeof S!=="object")return null;S=_.A(Object.entries(S));for(var Q=S.next();!Q.done;Q=S.next()){var f=_.A(Q.value);Q=f.next().value;f=f.next().value;if(Q===c)return Q;if(f=e0(f,c))return Q+"."+f}return null};
ku=function(S){var c=S.content;return(S=S.styleRuns)&&c?{runs:S.map(function(Q){var f={text:c.slice(Q.startIndex,Q.startIndex+Q.length)};Q.fontColor&&(f.textColor=Q.fontColor);return f})}:{simpleText:c}};
Oup=function(S,c,Q,f){var U=Asx;f&&(S.quantity=f);if(!S.quantity||!S.maxQuantity)return{};f=S.minusButton;var a=S.plusButton,X,z,x,I;return{value:S.quantity,maxValue:S.maxQuantity,onChangeCallback:function(n){U(S,n)},
minusLabel:(X=_.Y(f,XvR))==null?void 0:X.label,minimumReachedLabel:(z=_.Y(f,XvR))==null?void 0:z.limitReachedLabel,plusLabel:(x=_.Y(a,XvR))==null?void 0:x.label,maximumReachedLabel:(I=_.Y(a,XvR))==null?void 0:I.limitReachedLabel,disabled:c,onRemoveCommand:Q}};
Asx=function(S,c){var Q=S.quantityIncrementerEntityKey;if(Q){var f={};f.quantity=c;_.Er(_.TI("quantityIncrementerEntity",Q,f));S.onChangeCommand&&_.kz(S.onChangeCommand)}};
zgY=function(S){return _.u("kevlar_comments_clone_data_killswitch")?S:_.Cn.unsafeClone(S)};
BGR=function(S,c){(S=x2T(S))&&(c?FBx.push({command:S,sourceData:{},commandContext:void 0}):_.fl().resolve(_.U8).resolveCommand(S))};
x2T=function(S){return _.Y(S,_.Zc)};
IaY=function(){var S=window.performance.timeOrigin+window.performance.now(),c=(new _.rD).setSeconds(S/1E9);return _.Ch(c,2,_.Y0(S%1E9),0)};
dD=function(S,c){var Q=_.Y(_.Y(S,_.Zc),nfM);Q&&(c&&(Q.serializedAdditionalMetadata=_.mV(c)),BGR(S,!0))};
buY=function(S){switch(S){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"}};
NGT=function(){return!!_.WY("ID_TOKEN")};
unx=function(S){return S instanceof Error&&S.cause instanceof KBR&&S.cause.rpcErrorCode!==void 0?!$2Z.includes(S.cause.rpcErrorCode):!0};
lap=function(){return _.V0(jcZ,{authuser:""+(_.WY("SESSION_INDEX")||0)})};
vZ=function(S,c,Q,f){Q=Q===void 0?"MINI_APP_SDK_API_UNSPECIFIED":Q;f=f===void 0?"":f;var U=new _.Yr;Q={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:f,sdkApi:Q};S instanceof Error&&(U.message=S.message,U.name=S.name,S.cause instanceof KBR&&S.cause.rpcErrorCode!==void 0&&(Q.rpcErrorCode=S.cause.rpcErrorCode));var a;(a=c.onError)==null||a.call(c,{loggingError:U,metadata:Q})};
CfZ=function(S,c,Q,f){switch(S){case "MINI_APP_SOURCE_GAMESNACKS":return new PZ(c,Q,f);default:return new YGY(c,Q,f)}};
Huz=function(S){switch(S){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"}};
D2c=function(S){switch(S){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"}};
pvr=function(S){switch(S){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"}};
hgp=function(){return Math.floor(Math.random()*4)+1};
qGx=function(S,c,Q,f){S=_.A(Object.entries(S));for(var U=S.next(),a={};!U.done;a={message$jscomp$957:void 0},U=S.next()){var X=_.A(U.value);U=X.next().value;X=X.next().value;a.message$jscomp$957=X;c.push(setTimeout(function(z){return function(){f(!1);Q(z.message$jscomp$957.text)}}(a),a.message$jscomp$957.delayMs));
Number(U)>0&&c.push(setTimeout(function(){f(!0)},a.message$jscomp$957.delayMs-400))}};
TGo=function(S,c){var Q=Q===void 0?r_Y:Q;_.u("mweb_fix_monitor_visibility_after_render")?S&&h2(function(){PkH(S,c,Q)}):h2(function(){PkH(S,c,Q)})};
scY=function(S){var c=S.data;var Q=S.uniqueId;S=S.overrides;var f,U=((f=c.timedAnimationData)==null?void 0:f.animationTiming)||[];return _.B("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.B(Ms,{settings:{uniqueId:Q,timings:U,experimentEnabled:U.length>0,enabled:U.length>0}},wvo(c.buttonRenderer,{buttonRenderer:{buttonOverrides:S}})))};
GYZ=function(S){McH||(McH=iuz(new _.eD(1,void 0,void 0,Zuz),0));var c=McH.format(Math.floor(S));c=_.gP==="be"||_.gP==="bg"||_.gP==="es"||_.gP==="et"||_.gP==="hu"||_.gP==="ka"||_.gP==="lv"||_.gP==="pl"||_.gP==="pt-PT"||_.gP==="sq"?c.replace(new RegExp("^(\\d)"+Zuz.GROUP_SEP.replace(".","\\.")+"(\\d+("+Zuz.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):c;return S>=1E3&&S<=9999&&c[1]==="."&&(_.gP==="sl"||_.gP==="it")?c.replace(".",""):c};
WBY=function(S,c){Tv("ytd-button-renderer",{data:S,className:c?c.className:"",overrides:c==null?void 0:c.buttonOverrides},Vi)};
kYY=function(S,c,Q,f){if(S)return f=f||S.likeStatus,c?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="LIKE",isDisabled:!S.likesAllowed,defaultIcon:{iconType:Q},defaultText:f==="LIKE"?S.likeCountWithUnlikeText:S.likeCountText,toggledText:f==="LIKE"?S.likeCountText:S.likeCountWithLikeText,defaultNavigationEndpoint:gfc(S,"LIKE"),defaultServiceEndpoint:egZ(S,"LIKE"),toggledServiceEndpoint:egZ(S,"INDIFFERENT"),defaultTooltip:_.Em(S.likeCountTooltipText),toggledTooltip:_.Em(S.likeCountTooltipText),
targetId:S.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:f==="DISLIKE",isDisabled:!S.likesAllowed,defaultIcon:{iconType:Q},defaultText:f==="DISLIKE"?S.dislikeCountWithUndislikeText:S.dislikeCountText,toggledText:f==="DISLIKE"?S.dislikeCountText:S.dislikeCountWithDislikeText,defaultNavigationEndpoint:gfc(S,"DISLIKE"),defaultServiceEndpoint:egZ(S,"DISLIKE"),toggledServiceEndpoint:egZ(S,"INDIFFERENT"),defaultTooltip:_.Em(S.dislikeCountTooltipText),
toggledTooltip:_.Em(S.dislikeCountTooltipText)}};
gfc=function(S,c){if(c==="LIKE")return S.likeCommand;if(c==="DISLIKE")return S.dislikeNavigationEndpoint};
egZ=function(S,c){var Q;return(Q=S.serviceEndpoints)==null?void 0:Q.find(function(f){var U;return((U=_.Y(f,_.LD))==null?void 0:U.status)===c})};
_.vfz=function(S,c,Q){return window.spf&&!_.u("web_disable_spfjs_client")?rsT(S,c,Q):d2o(S,c)};
rsT=function(S,c,Q){var f=null,U=(new _.n1(function(a,X){var z={};if(c){z.method=c.method;var x=c.postParams||{};POz(S,c)&&(x[_.WY("XSRF_FIELD_NAME")]=_.WY("XSRF_TOKEN"));z.postData=_.nl(x);c.type&&(z.type=c.type);x=c.headers}z.headers=gQT(S,x);_.u("debug_forward_web_query_parameters")&&(S=_.dmo(S,window.location.search));z.experimental_headers=z.headers;z.onError=function(I){I.err&&I.xhr&&(I.err.params={url:I.xhr.responseURL,response:I.xhr.responseText.substr(0,64)});X(I.err)};
z.onPartDone=function(I){Q&&Q.call(null,I.part)};
z.onDone=function(I){var n=PfY(I.response,"xsrf_token");mA(window.location.href,S)&&n&&_.G_("XSRF_TOKEN",n);if(n=PfY(I.response,"service_worker_killswitch"))_.G_("SERVICE_WORKER_KILLSWITCH",n),jvR();a(I.response)};
f=spf.request(S,z)})).then(LBx);
U.thenCatch(function(a){var X=a instanceof _.EI,z=a&&a.hasOwnProperty("params")&&a.params.response?a.params.response:"";a instanceof Error&&(z?X?qXp(a):z===')]}\'\n{"reload":"now"}'?qXp(a):(EfT(a,S,z),tcZ(a,z)?_.i5(a):_.sH(a)):qXp(a));f&&f.abort()});
return U};
LBx=function(S){if(S.type==="multipart"){var c=S.timing;S=S.parts.reduce(function(Q,f){Object.assign(Q,f);return Q},{});
S.timing=S.timing||{};Object.assign(S.timing,c);S.type="reduced"}return S};
d2o=function(S,c){c=c===void 0?{}:c;var Q=null,f=new _.n1(function(U,a){c.onFinish=function(X){if(X.readyState===XMLHttpRequest.DONE)if(X.status===200){if(X.responseType!=="json"){var z=X.response;z.substring(0,5)===")]}'\n"&&(z=z.substring(5));try{var x=JSON.parse(z)}catch(I){x=I}}else x=X.response;x instanceof Error?a(x):(z=PfY(x,"xsrf_token"),mA(window.location.href,S)&&z&&_.G_("XSRF_TOKEN",z),X=X.responseURL,window.performance&&window.performance.getEntriesByName?(z=window.performance.getEntriesByName(X).pop())?
X={responseStart:(0,_.Qk)()-(z.responseEnd-z.responseStart)}:(Math.random()<.01&&(z=Error("ci"),z.params=X,_.i5(z)),X={responseStart:-1}):X={responseStart:0},x.timing=x.timing||{},Object.assign(x.timing,X),U(x))}else a(Error("bi`"+X.status))};
(Q=_.I6(S,c))||a(Error("bi`"+Q.status))});
f.thenCatch(function(U){U instanceof Error&&(EfT(U,S),tcZ(U)&&(U.level="WARNING"))});
_.u("cancel_pending_navs")&&f.thenCatch(function(){Q.abort()});
return f};
PfY=function(S,c){var Q=S[c],f=S.parts;S.type==="multipart"&&f&&(Q=(S=f.find(function(U){return c in U}))&&S[c]);
return Q};
EfT=function(S,c,Q){var f=S.message||"";c={original:f,url:c};if(Q)if(f=f.match(/position:?\s*(\d+)/)){f=f&&Number(f[1])?Number(f[1]):0;var U=Math.max(f-25,0);c.position=f;c.response=Q.substring(U,f+25)}else c.response=Q.substring(0,50);_.ZE(S,c);try{S.message="JSON parse error"}catch(a){}};
tcZ=function(S,c){S=S.message||"";S=!!(S.indexOf("<")>=0||S.indexOf("end of ")>=0||S.indexOf("Unterminated string")>=0||S.indexOf("Unexpected EOF"));if(!S&&c)for(var Q=c.length,f=!1,U=0;U<Q;U++)if(f&&c[U]==="\\")U++;else if(c[U]==='"')f=!f;else if(c[U]==="<"&&!f){S=!0;break}return S};
VcZ=function(){return document.documentElement.hasAttribute("dark")};
_.Rgx=function(S,c){if(S!=="GFEEDBACK"&&S!=="GUIDED_HELP")_.eG(Error("di`"+S));else{var Q=_.fl().resolve(_.QS(_.oZ));if(Q&&(Q=Q.getCurrentPage())&&Q.getServiceTrackingParams&&(Q=Q.getServiceTrackingParams()))for(var f=0,U;U=Q[f++];)if(U.service===S){if(S=U.params)for(Q=0;f=S[Q++];)c[f.key]=f.value;break}}};
_.ysM=function(S){var c=_.S9();c&&(c=c.getPlayer())&&(c.pauseVideo(),S.playback_id=c.getVideoData().cpn,S.eid=c.getVideoData().eventId,Object.assign(S,c.getFeedbackProductData()))};
ofp=function(){var S={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.WY("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(S.enableAnonymousFeedback=!0);_.WY("SESSION_INDEX")&&(S.authuser=String(_.WY("SESSION_INDEX")));_.u("enable_pageid_for_feedback")&&_.WY("DELEGATED_SESSION_ID")&&(S.pageId=String(_.WY("DELEGATED_SESSION_ID")));return S};
_.tW=function(S){_.u("enable_ypc_spinners")&&_.XF(S,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},S])};
_.VV=function(S){_.u("enable_ypc_spinners")&&_.XF(S,"yt-close-popup-action",["yt-loading-renderer"])};
m2r=function(S){return new Promise(function(c,Q){_.WI({verifyCommand:{recaptchaToken:S.recaptchaResponse}},{commandController:{onSuccess:function(f,U){U||Q("ChallengeService did not return a response.");var a;c({challengeCompleted:(a=U.verified)!=null?a:!1})},
onServerError:function(f,U){Q(U)}}})})};
SOY=function(S,c,Q,f){c({recaptchaResponse:f}).then(function(U){U.challengeCompleted?_.uB()?(Q(3),_.fl().resolve(_.U8).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:S}})):Q(2):Q(4)},function(){Q(4)})};
cRz=function(S,c,Q){_.kU("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.WY("HL"),function(){var f;(f=window.grecaptcha)==null||f.ready(function(){var U=window.grecaptcha;U?(Q(U.render(S,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:SOY.bind(null,S,m2r,c)})),c(1)):c(4)})})};
QVo=function(S,c){return function(){switch(c()){case 0:return S().captchaLoadingMessage;case 1:return S().challengeReason;case 3:return S().captchaSuccessfulMessage;case 2:return S().captchaCookieSetFailureMessage;case 4:return S().captchaFailedMessage;default:return S().challengeReason}}()};
_.RC=function(){if(!fKr){var S=document.querySelector("#player.skeleton");S&&(_.K9(S),fKr=!0)}};
_.JRZ=function(){return Upc=jtr()};
XBT=function(){return _.O(function(S){return aKx!==void 0?S.return():_.F(S,ARR(),0)})};
ARR=function(){return _.O(function(S){if(S.nextAddress==1)return _.F(S,Yxp(),2);Upc=S.yieldResult;aKx=_.Mq.addLowPriorityJob(ARR,5E3);_.IN(S)})};
IKY=function(S){var c=c===void 0?OBR:c;var Q,f,U=(Q=S.responseContext)==null?void 0:(f=Q.mainAppWebResponseContext)==null?void 0:f.trackingParam;if(!U){c.increment("MISSING");var a,X,z,x,I,n;_.i5(new _.Yr("282054944_a",{rba:!!((a=S.responseContext)==null?0:(X=a.mainAppWebResponseContext)==null?0:X.loggedOut),jhL:((z=S.responseContext)==null?void 0:z.mainAppWebResponseContext)===void 0,v1w:S.responseContext===void 0,eZb:(x=S.playabilityStatus)==null?void 0:x.contextParams,f3c:(((I=S.streamingData)==
null?void 0:I.formats)||[]).length>0,ncW:(((n=S.streamingData)==null?void 0:n.adaptiveFormats)||[]).length>0,os:!!S.offlineState,cotn:S.cotn}));return 2}Q="";try{Q=zXo(U)}catch(l){return c.increment("C_ERROR"),_.sH(l),2}try{var b=_.xpT(Q);var N=FfH(b)}catch(l){return c.increment("P_ERROR"),_.sH(l),2}N=_.St(N,BYr,1,_.c1());U=[];N=_.A(N);for(b=N.next();!b.done;b=N.next())f=b.value,b=f.getPath(),Q=(0,_.Cn.getValueByKeys)(S,b.split(".")),Q=String(Q===void 0||Q===null?"":Q),f=f.getValue()||"",a=/[+\-\/_]/g,
Q.replace(a,"")!==f.replace(a,"")&&(c.increment("MISMATCH"),_.u("ab_mis_log_err")&&(Q=new _.Yr("282054944_p",{k0W:b,g:String(Q),e:String(f)}),_.sH(Q)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(b)||(b.match(/enforcementMessageViewModel/i)?U.push(3):U.push(2)));if(U.length>0)return Math.max.apply(Math,_.Hs(U));c.increment("SUCCESS");return 1};
NYY=function(S){var c=new yV;if(S.interpreterJavascript){var Q=_.jBZ(S.interpreterJavascript);Q=W7(Q).toString();var f=new n4z;_.bN(f,6,Q);_.Qx(c,1,f,gd)}else S.interpreterUrl&&(Q=_.iH(S.interpreterUrl),Q=_.Oy(Q).toString(),f=new _.bBM,_.bN(f,4,Q),_.Qx(c,2,f,gd));S.interpreterHash&&_.oC(c,3,S.interpreterHash,gd);S.program&&_.oC(c,4,S.program,gd);S.globalName&&_.oC(c,5,S.globalName,gd);S.clientExperimentsStateBlob&&_.oC(c,7,S.clientExperimentsStateBlob,gd);return c};
ml=function(S){var c={};S=_.A(S.split("&"));for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value.split("="),Q.length===2&&(c[Q[0]]=Q[1]);return c};
KfR=function(S){return Number(S.t)||7200};
p1r=function(){if(_.u("bg_st_hr"))return"havuokmhhs-0";var S,c=((S=performance)==null?void 0:S.timeOrigin)||0;return"havuokmhhs-"+Math.floor(c)};
$pM=function(){return new Promise(function(S){var c=window.top;c.ntpevasrs!==void 0?S(new SP(c.ntpevasrs)):(c.ntpqfbel===void 0&&(c.ntpqfbel=[]),c.ntpqfbel.push(function(Q){S(new SP(Q))}))})};
u9x=function(S){var c=S.aSm.bind(S);_.m5("yt.aba.att",c);S=S.izs.bind(S);_.m5("yt.aba.att2",S)};
lKp=function(S){switch(_.Bi(S.input)){case _.RB(jVZ):var c={};return c.encryptedVideoId=S.innerTubeRequest.externalVideoId,c}return{}};
Czc=function(S){switch(_.Bi(S.input)){case _.RB(jVZ):if(_.u("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.RB(c$):if(_.u("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&S.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.RB(YOM):var c,Q;if(_.u("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((Q=_.Y((c=S.config)==null?void 0:c.command,
DbY))==null?0:Q.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.Dpz=function(S){var c;if(S.playlistVideoRenderer&&((c=S.playlistVideoRenderer)==null?0:c.engagementBar))return HBT(S.playlistVideoRenderer.engagementBar);if(_.Y(S,QG)){var Q;if(S=(Q=_.Y(S,QG))==null?void 0:Q.engagementBar)return HBT(S)}return""};
HBT=function(S){if(!S)return"";S=_.Y(S,_.pBM);if(S==null||!S.actions)return"";S=_.A(S.actions);for(S=S.next();!S.done;S=S.next()){S=_.Y(S.value,_.hXT);var c=void 0;if((c=S)==null||!c.itemId)break;return S.itemId}return""};
_.qOr=function(S){var c;if(S.playlistVideoRenderer&&((c=S.playlistVideoRenderer)==null?0:c.videoId))return S.playlistVideoRenderer.videoId;if(_.Y(S,QG)){var Q,f;if(S=(Q=_.Y(S,QG))==null?void 0:(f=Q.playlistItemData)==null?void 0:f.videoId)return S}return""};
_.TYZ=function(S){var c;if(S.playlistVideoRenderer&&((c=S.playlistVideoRenderer)==null?0:c.voteCount))return S.playlistVideoRenderer.voteCount;if(_.Y(S,QG)){var Q,f;if(S=(Q=_.Y(S,QG))==null?void 0:(f=Q.playlistItemData)==null?void 0:f.voteCount)return S}return 0};
_.fj=function(S,c){return _.FT(S.entities,"flowStateEntity",c)};
sVc=function(S,c,Q,f){var U=void 0;S=_.A(S[c.iconName]||[]);for(var a=S.next();!a.done;a=S.next()){a=a.value;var X=c.iconSize;var z=c.iconStyle;X=!X||X===a[2];var x=wBM[a[0]];f&&f!==a[1]||!X||z&&z!==x?z=!1:U?(z=wBM[a[0]],z=!!c.iconStyle||z==="youtube_outline",X=U.version<=a[1],z=(!!c.iconSize||a[2]===24)&&z&&X):z=!0;z&&(U={name:c.iconName,style:wBM[a[0]],size:a[2],version:a[1],allowMirroring:!!a[3],url:Q(c.iconName,a)})}return U};
Mbx=function(S,c,Q,f){return S+(""+wBM[Q[0]]+((f===void 0?0:f)?"_experimental":"")+"/"+c+"/v"+Q[1]+"/")+(Q[2]+"px.svg")};
U9=function(S){return _.u("web_bookmark_playlist_save_icon")?"bookmark":S};
iBp=function(S,c){return Mbx("https://fonts.gstatic.com/s/i/",S,c)};
ZBY=function(S,c){return Mbx("https://fonts.gstatic.com/s/i/",S,c,!0)};
GjZ=function(S,c){return Mbx("https://www.gstatic.com/youtube/img/icons/web/",S,c)};
g4Y=function(S){var c=S.enabled;var Q=S.itemPlaybackModel;var f=S.thumbnailElRef;var U=S.containerElRef;var a=S.options;var X;_.To(function(){var z=U==null?void 0:U.value;var x,I=(x=f())==null?void 0:x.value;x=Q();var n=a();if(c&&x&&z&&I&&(n==null?0:n.thumbnail)){var b={data:x,hostElement:z},N,l,H=_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover")?[].concat(_.Hs((N=n.thumbnailOverlays)!=null?N:[]),_.Hs((l=x.overlays)!=null?l:[])):n.thumbnailOverlays||[],q,w;z={mediaRenderer:b,
lockupElement:z,thumbnailElement:I,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Gv((q=x.inlinePlayerData)==null?void 0:q.onVisible),navigationEndpoint:_.Gv((w=x.inlinePlayerData)==null?void 0:w.onSelect),thumbnail:n.thumbnail,thumbnailOverlays:H,accessibilityText:n.accessibilityText||""},thumbnailSize:n.thumbnailSize,enableRounding:n.enableRounding}}}else z=void 0;if(q=z){var g;(g=X)==null||Jw(g);X=t8(q);var r,E;((r=Q())==null?0:(E=r.inlinePlayerData)==null?0:E.forceImpAutoplay)&&
Wfp(X)}},"B33dEc");
_.wX(function(){var z;(z=X)==null||Jw(z)})};
eXc=function(S){S=atob(S);for(var c=[],Q=0;Q<S.length;Q++)c.push(S.charCodeAt(Q));return new Blob([new Uint8Array(c)],{type:"image/png"})};
rRZ=function(S,c,Q,f){f=f===void 0?"INSERTION_POSITION_UNSPECIFIED":f;return S({targetId:c},function(U){var a,X=(a=U.contents)!=null?a:[];a=Q!=null?Q:[];var z=kjR(X);switch(f){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},U,{contents:[].concat(_.Hs(X.slice(0,z)),_.Hs(a),_.Hs(X.slice(z+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},U,{contents:[].concat(_.Hs(a),_.Hs(X))});case "INSERTION_POSITION_LAST":return Object.assign({},U,{contents:[].concat(_.Hs(X),_.Hs(a))});
default:return U}})};
v4M=function(S,c,Q,f,U){U=U===void 0?"RELATIVE_INSERTION_POSITION_AFTER":U;return S({targetId:c},function(a){var X,z=(X=a.contents)!=null?X:[];X=dpY(z,Q);if(X<0)return a;X=U==="RELATIVE_INSERTION_POSITION_BEFORE"?X:X+1;return Object.assign({},a,{contents:[].concat(_.Hs(z.slice(0,X)),_.Hs(f),_.Hs(z.slice(X)))})})};
kjR=function(S){var c=S.findIndex(function(Q){return _.Y(Q,_.aK)});
return c>=0?c:S.length};
dpY=function(S,c){return S.findIndex(function(Q){a:{Q=_.A(Object.values(Q));for(var f=Q.next();!f.done;f=Q.next())if((f=f.value)&&f.targetId){Q=f.targetId;break a}Q=""}return Q===c})};
LfM=function(S,c,Q){return S({targetId:c},function(f){var U,a=(U=f.contents)!=null?U:[];return Object.assign({},f,{contents:Pzp(a,Q)})})};
Pzp=function(S,c){return S.filter(function(Q){var f=c.includes;a:{Q=_.A(Object.values(Q));for(var U=Q.next();!U.done;U=Q.next())if((U=U.value)&&U.targetId){Q=U.targetId;break a}Q=""}return!f.call(c,Q||"")})};
_.E4z=function(S,c){return{engagementPanelSectionListRenderer:{panelIdentifier:S,identifier:c,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
_.Vbo=function(S){var c,Q=(c=S.getOption("captions","tracklist",{includeAsr:!0}))!=null?c:[];return Q=tbc(Q,S)};
RXp=function(S){return S.getOption("captions","translationLanguages",{includeAsr:!0})||[]};
tbc=function(S,c){c=RXp(c);if(c==null||!c.length)return S;var Q=c.filter(function(X){return X});
c=S.filter(function(X){return X.languageCode.startsWith("en")});
Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next())if(f=f.value,c.length){var U=c[0],a=Object.assign({},U);U.languageCode!==f.languageCode&&(a.displayName=U.languageName+" >> "+f.languageName,a.translationLanguage=f,S.push(a))}return S};
yRZ=function(S,c,Q){S=_.Vbo(S);if(S.length)return Q?S.find(function(f){if(typeof(f==null?void 0:f.translationLanguage)==="object"){var U;return((U=f.translationLanguage)==null?void 0:U.languageCode)===c}return!1}):S==null?void 0:S.find(function(f){return f.languageCode===c})};
o4p=function(S){return S.getOption("captions","tracklist",{includeAsr:!0})};
mpY=function(S){return S.getOption("captions","tracklist",{includeAsr:!0})};
Sio=function(S){var c=mpY(S);if(c==null?0:c.length)return c;S.loadModule("captions");return mpY(S)};
cFc=function(S){var c=S.getOption("captions","track");if(c)return c;S.loadModule("captions");return S.getOption("captions","track")};
f7M=function(S){var c=Sio(S);if(c!=null&&c.length){var Q=cFc(S),f;return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.K8("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(Q==null?0:Q.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Hs(c.map(function(U){return{listItemViewModel:{title:{content:U.displayName},
isSelected:U.displayName===(Q==null?void 0:Q.displayName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:U.languageCode}}]}}}}}}}})),[{listItemViewModel:Object.assign({},{title:{content:_.K8("AUTO_TRANSLATE",void 0,"Auto-translate")},
isSelected:!!Q.translationLanguage,selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT"},!!Q.translationLanguage&&{selectionText:{content:(Q==null?void 0:(f=Q.translationLanguage)==null?void 0:f.languageName)||""}},{rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[Q9z(S)]}}}}}})}]),visibleElementCount:5}}}}}}}}};
Q9z=function(S){var c=RXp(S);if(c==null||!c.length)throw Error("Bi");var Q=cFc(S);S=c.filter(function(f){return!f.languageCode.startsWith("en")});
return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[].concat(_.Hs(S.map(function(f){var U;return{listItemViewModel:{title:{content:f.languageName},isSelected:f.languageName===(Q==null?void 0:(U=Q.translationLanguage)==null?void 0:U.languageName),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:f.languageCode,
isAutoTranslated:!0}}]}}}}}}}}))),
visibleElementCount:5}}}}}}}};
AFc=function(S){return new Promise(function(c,Q){if(S===void 0)_.sH(Error("Fi"),"ERROR"),Q(Error("Fi"));else{Q=new _.UAo;var f=_.JFc();Q=Q.init();var U=_.a7z(_.WY("YPC_MB_URL"),!0);Promise.all([Q,U]).then(function(){var a=payments.business.integration.ClientTokenFactory.createClientToken(S,f);c(a)})}})};
zGc=function(S,c,Q,f,U,a,X){var z=_.L4();Q=Q.replace(/-/g,"+").replace(/_/g,"/");var x=_.jL().get("hl"),I=_.Aw(_.E_),n=c==null?void 0:c.element;n&&_.tW(n);Xhp(c,!0);_.OAY(I,Q,z.resolve,function(){n&&_.VV(n)},function(b){n&&_.VV(n);
z.reject(b)},x,f?function(b){f&&_.P3(S,f,{backend_analytics:b})}:void 0,z.resolve,U,a,X);
return z.promise};
Xhp=function(S,c){!(S=S==null?void 0:S.element)||S.tagName!=="YT-BUTTON-RENDERER"&&S.tagName!=="YTD-BUTTON-RENDERER"||(S.disabled=c)};
xAZ=function(){var S=_.K8("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.fK(S),actionButton:{buttonRenderer:WTo()}}},popupType:"TOAST"}};
Fgz=function(){var S=_.K8("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.fK(S),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
BAx=function(S){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:S}]}}};
Xq=function(S,c,Q,f){var U;return _.O(function(a){if(a.nextAddress==1)return _.X1(a,2),_.F(a,S,4);if(a.nextAddress!=2)return(U=_.Yy(c.getState().entities).length>0)?a.return({title:_.fK(_.K8("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.fK(_.K8("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Gxz()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
a.return(gPM(Q,f));_.Bs(a);return a.return(gPM(Q,f))})};
I7Y=function(S,c){return c?c==="PPSV"||s7p(S,c):!1};
n6o=function(S){S.responseContext||(S.responseContext={});S.responseContext.maxAgeSeconds=0;return S};
zV=function(S){var c;return _.O(function(Q){return Q.nextAddress==1?_.F(Q,bAH(S,"service:topbar:fallback"),2):(c=Q.yieldResult)&&_.O9(c)?Q.return(n6o(_.O9(c))):Q.return()})};
NAY=function(S){var c;return _.O(function(Q){return Q.nextAddress==1?_.F(Q,bAH(S,"service:downloads_settings:fallback"),2):(c=Q.yieldResult)&&_.O9(c)?Q.return(c):Q.return()})};
bAH=function(S,c){var Q;return _.O(function(f){if(f.nextAddress==1)return S?_.F(f,S.get(c),2):f.return();Q=f.yieldResult;return!Q||!_.O9(Q)||!isNaN(Number(Q.data.expireTimestampMs))&&Q.isExpired()?f.return():f.return(Q)})};
KgM=function(S){var c=_.fl().resolve(xs).getState().entities;return S.playlistId?I7Y(c,S.playlistId):!1};
$Az=function(S,c){var Q;if(c==null?0:(Q=c.requestTemplate)==null?0:Q.panelId)S.panelId=c.requestTemplate.panelId;var f;if(c==null?0:(f=c.requestTemplate)==null?0:f.params)S.params=c.requestTemplate.params};
j9H=function(){if(uOY)return uOY();var S=!_.u("idb_response_store_auth_killswitch"),c={};uOY=ct("yt-it-response-store",{objectStores:(c.ResponseStore={addedAtVersion:1},c),shared:!S,upgrade:function(Q,f){f(1)&&(Q=kM(Q,"ResponseStore",{keyPath:["key","clientName"]}),re(Q,"byExpiration","expireTimestampMs"),re(Q,"byInterface","clientName"))},
version:1});return uOY()};
l7p=function(S){return _.E8(j9H(),S)};
CTT=function(S,c){var Q;return _.O(function(f){return f.nextAddress==1?_.F(f,_.S8(),2):(Q=f.yieldResult)?f.return(new YiY(S,c,Q)):f.return()})};
HAz=function(S){var c=Object.keys(S)[0];if(c)return S.screenExit&&(c=c+";"+S.screenExit.screen),c};
DAZ=function(S){var c=new Map;S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q!=null&&(c.has(Q.taskType)||c.set(Q.taskType,[]),c.get(Q.taskType).push(Q));return c};
phz=function(S){return!isNaN(S)&&S>0};
hGT=function(S){S=[].concat(_.Hs(S)).sort(function(Q,f){return Q-f});
var c=Math.floor(S.length/2);return S.length%2?S[c]:(S[c-1]+S[c])/2};
whx=function(S,c){S=S===void 0?IcZ:S;c=c===void 0?{}:c;_.m5("yt.logging.errors.log",_.sH);Fdc();qiM($KY(),c);window.onerror=S;TAZ=BHo;window.addEventListener("unhandledrejection",function(Q){if(Q.reason instanceof Error){var f=Q.reason;_.ZE(f,{source:"unhandledrejection"});f.name==="AbortError"&&(f.level="WARNING")}BHo(Q.reason);Q.preventDefault()})};
_.s9H=function(S){return S.a11y.ephemeralAction||null};
_.Mir=function(S){var c,Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V,AZ,IH,Nr,Hc,qr,wp,Pc,ex,yd,op,DT,B_,zJ,Qp,xl,xZ,hj,OT;return _.O(function(uu){if(uu.nextAddress==1)return _.F(uu,_.KK(S,{mode:"readonly",enableRetries:!0},function(sd){return $y(sd,"playbackData").then(function(LT){var Ci=LT.map(function(J$){return J$.transfer}).filter(function(J$){return!!J$}),t$=LT.map(function(J$){return J$.offlineVideoPolicy}).filter(function(J$){return!!J$}),kp=LT.filter(function(J$){return!!J$.key}).map(function(J$){return _.xy(_.XT(J$.key).entityId,
"downloadStatusEntity")});
Ci=$y(sd,"transfer",Ci);t$=$y(sd,"offlineVideoPolicy",t$);kp=$y(sd,"downloadStatusEntity",kp);var Ed=Ci.then(function(J$){J$=J$.reduce(function(ez,$0){($0==null?0:$0.offlineVideoStreams)&&ez.push.apply(ez,_.Hs($0.offlineVideoStreams));return ez},[]).filter(function(ez){return!!ez});
return $y(sd,"offlineVideoStreams",J$)});
return g5.all([Ci,t$,Ed,kp]).then(function(J$){var ez=_.A(J$);J$=ez.next().value;var $0=ez.next().value;var $l=ez.next().value;ez=ez.next().value;return[LT,J$,$0,$l,ez]})})}),2);
if(uu.nextAddress!=3)return c=uu.yieldResult,_.F(uu,_.KK(S,{mode:"readonly",enableRetries:!0},function(sd){return $y(sd,"mainDownloadsListEntity").then(function(LT){var Ci,t$;return(t$=(Ci=LT[0])==null?void 0:Ci.downloads)!=null?t$:[]})}),3);
Q=uu.yieldResult;f=_.A(c);U=f.next().value;a=f.next().value;X=f.next().value;z=f.next().value;x=f.next().value;I=U;n=a;b=X;N=z;l=x;H={};q={};w={};g={};r={};E=[];v=_.A(n);for(t=v.next();!t.done;t=v.next())(V=t.value)&&(H[V.key]=V);AZ=_.A(b);for(IH=AZ.next();!IH.done;IH=AZ.next())(Nr=IH.value)&&(q[Nr.key]=Nr);Hc=_.A(l);for(qr=Hc.next();!qr.done;qr=Hc.next())(wp=qr.value)&&(w[wp.key]=wp);Pc=_.A(N);for(ex=Pc.next();!ex.done;ex=Pc.next())(yd=ex.value)&&(g[yd.key]=yd);op=_.A(Q);for(DT=op.next();!DT.done;DT=
op.next())B_=DT.value,zJ=void 0,r[(zJ=B_.videoItem)!=null?zJ:""]=!0,B_.videoItem&&(xl=Qp=void 0,xZ=(xl=(Qp=_.XT(B_.videoItem))==null?void 0:Qp.entityId)!=null?xl:"",E.push({externalVideoId:xZ}));hj=I.filter(function(sd){if(!sd||!sd.key||!sd.offlineVideoPolicy)return!1;sd=_.XT(sd.key).entityId;sd=_.xy(sd,"downloadStatusEntity");var LT;return!(sd&&((LT=w[sd])==null?void 0:LT.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
OT=hj.map(function(sd){var LT=H[sd.transfer],Ci=[];if(LT==null?0:LT.offlineVideoStreams)for(var t$=_.A(LT.offlineVideoStreams),kp=t$.next();!kp.done;kp=t$.next())(kp=g[kp.value])&&Ci.push(kp);t$=q[sd.offlineVideoPolicy];kp=r;var Ed=sd==null?void 0:sd.playerResponseTimestamp,J$=_.XT(t$.key).entityId;sd=_.xy(J$,"mainVideoEntity");if(t$.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var ez="OFFLINE_VIDEO_STATE_DISABLED";t$.expirationTimestamp&&Number(t$.expirationTimestamp)<Date.now()/1E3&&(ez="OFFLINE_VIDEO_STATE_EXPIRED")}else if(t$.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")ez="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(LT==null?void 0:LT.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":ez="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":ez="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":ez="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":ez="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":ez="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":ez="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:ez="OFFLINE_VIDEO_STATE_UNKNOWN"}if(ez==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(LT==null?void 0:LT.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":ez="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":ez="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":ez=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}J$={id:J$,videoState:ez};if(LT==null?0:LT.cotn)J$.cotn=LT.cotn;if(LT==null?0:LT.maximumDownloadQuality)J$.selectedVideoQuality=LT==null?void 0:LT.maximumDownloadQuality;if(LT==null?0:LT.lastProgressTimeMs)J$.lastProgressTimeMs=LT.lastProgressTimeMs;Ed&&(J$.playerResponseSavedTimeMs=String(Number(Ed)*1E3));LT=String;Ed=0;Ci=_.A(Ci);for(ez=Ci.next();!ez.done;ez=Ci.next())if(ez=ez.value,ez.streamsProgress){ez=_.A(ez.streamsProgress);for(var $0=ez.next();!$0.done;$0=
ez.next()){var $l=void 0;Ed+=Number(($l=$0.value.numBytesDownloaded)!=null?$l:0)}}J$.downloadedBytes=LT(Ed);J$.selectedOfflineMode=kp[sd]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";t$.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(J$.offlinePlaybackDisabledReason=t$.offlinePlaybackDisabledReason);return J$});
return uu.return({offlineVideos:OT,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:E}}})})};
iAT=function(){var S;return _.O(function(c){return c.nextAddress==1?_.F(c,_.nK(),2):(S=c.yieldResult)?c.return(_.Mir(S)):c.return({state:"PES Unavailable"})})};
WgY=function(){var S,c,Q,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,_.nK(),2);if(U.nextAddress!=3)return(S=U.yieldResult)?_.F(U,ZAo(S),3):U.return({state:"PES Unavailable"});c=U.yieldResult;Q={};f=c.reduce(function(a,X){a[X.key]=X;return a},Q);
return U.return(GQz(f))})};
GQz=function(S){for(var c={},Q=[],f=_.A(Object.keys(S)),U=f.next();!U.done;U=f.next()){var a=U.value;U=S[a];var X=void 0;if(((X=U)==null?void 0:X.entityType)==="mainVideoEntity"){delete S[a];var z=U.data;U={};if(z){var x=void 0;X=(x=z.videoId)!=null?x:"vid-"+a;a=S;U.video=z;delete U.video.formattedDescription;delete U.video.thumbnail;z.owner&&(x=a[z.owner],x==null?0:x.data)&&(delete a[x.key],U.video.owner=x.data,delete U.video.owner.avatar);if(z=z.downloadState)if(x=a[z],x==null?0:x.data)if(delete a[z],
z=x.data.playbackData)if(x=a[z],x!=null&&x.data){delete a[z];z=x.data;delete z.playerResponseJson;U.playbackData=z;if(z.transfer&&(x=a[z.transfer],x==null?0:x.data)){delete a[x.key];var I=x.data;U.transfer=I;x=[];I=_.A(I.offlineVideoStreams||[]);for(var n=I.next();!n.done;n=I.next())if(n=a[n.value])delete a[n.key],x.push(n.data);x&&(U.streams=x)}(z=z.offlineVideoPolicy)&&(z=a[z])&&z.data&&(delete a[z.key],U.offlineVideoPolicy=z.data)}c[X]=U}}else U&&U.entityType==="offlineOrchestrationActionWrapperEntity"&&
U.data&&(delete S[U.key],X=U.data,a=void 0,Q.push({id:X.rootActionId,type:((a=X.actionProto)==null?void 0:a.actionType)||"",entity:U}))}c.wrapperEntities=Q;Object.keys(S).length>0&&(c.unknownKeys=S);return c};
g6x=function(){var S,c,Q,f,U,a,X,z,x;return _.O(function(I){if(I.nextAddress==1)return S=!!(new _.ge("")).expiringStorage_,f=!!((c=_.QY.crypto)==null?0:(Q=c.subtle)==null?0:Q.importKey),U=!!_.QY.BroadcastChannel,a=!!_.QY.navigator.locks,_.F(I,Pxp(),2);X=I.yieldResult;z=S&&f&&U&&a&&X;x={isSupported:z};if(z)return I.return(x);x.missingBrowserFeatures=[];X||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");S||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
f||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");U||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");a||x.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return I.return(x)})};
eGM=function(){var S;return!((S=Fq?Fq:null)==null||!S.window)};
_.rFz=function(S){if(_.Tz()&&_.xrz("Chromium")>=120){var c=_.kQT().mediaSession;try{c.setActionHandler("enterpictureinpicture",function(){S()})}catch(Q){}}};
dAo=function(S){for(var c=[],Q=_.A(document.styleSheets),f=Q.next(),U={};!f.done;U={node$jscomp$730:void 0},f=Q.next())U.node$jscomp$730=f.value.ownerNode,U.node$jscomp$730&&(U.node$jscomp$730 instanceof HTMLStyleElement||U.node$jscomp$730 instanceof HTMLLinkElement)&&c.push(new Promise(function(a){return function(X){var z=a.node$jscomp$730.cloneNode(!0);z.onload=function(){X()};
z.onerror=function(){_.i5(Error("hj"));X()};
S.document.head.appendChild(z)}}(U)));
return Promise.all(c)};
mAp=function(S){var c=[_.SC(v6p),_.SC(PTM),_.SC(LgT)];E6Z(window.document.documentElement,S.document.documentElement,[_.SC(tip),_.SC(Viz),_.SC(RGx),_.SC(yFc),_.SC(o6T)]);E6Z(window.document.body,S.document.body,c)};
E6Z=function(S,c,Q){S=_.A(S.attributes);for(var f=S.next();!f.done;f=S.next())if(f=f.value)try{_.r_(Q,c,f.name,f.value)}catch(U){}};
cVp=function(S,c){S=new _.B$(S.document.documentElement);S.start(Ssc,c);return S};
QUc=function(S){var c=S.document.documentElement;c.addEventListener("click",function(Q){W7x(c,Q)});
c.addEventListener("touchstart",function(Q){dQc(Q)});
c.addEventListener("mousedown",function(Q){dQc(Q)})};
Uyz=function(S,c,Q,f){f=f===void 0?!1:f;c=new fDT(c||S,Q||S);return{x:S.x+((f===void 0?0:f)?c.lengthX*-1:c.lengthX)*.2,y:S.y+((f===void 0?0:f)?c.lengthY*-1:c.lengthY)*.2}};
JVT=function(S){if(!S)return!1;var c=S.status==="OK"||S.status==="LIVE_STREAM_OFFLINE",Q,f,U,a=(U=(Q=S.errorScreen)==null?void 0:Q.playerLegacyDesktopYpcTrailerRenderer)!=null?U:(f=S.errorScreen)==null?void 0:f.ypcTrailerRenderer;return!!c||!!a};
_.aDx=function(S,c){if(!S)return!1;var Q,f=(Q=S.errorScreen)==null?void 0:Q.playerLegacyDesktopYpcOfferRenderer,U;c=!!(c==null?0:(U=c.playerOverlayRenderer)==null?0:U.gatedActionsOverlayRenderer);return!!JVT(S)||!!f||!!c};
OHT=function(S){return AVz(S,0,"gclid",S.search(XjM))>=0||AVz(S,0,"gad_source",S.search(XjM))>=0};
FKH=function(S){var c=[],Q=0;return{clear:function(){Q=c.length=0},
push:function(f){c[Q]=f;Q=(Q+1)%S},
iterate:function(){return function U(){var a,X,z,x;return _.zZY(U,function(I){switch(I.nextAddress){case 1:_.xp(I,2),a=c.length,X=0;case 4:if(!(X<a)){I.jumpTo(2);break}z=Q+X;x=_.xyH;return _.F(I,c[z%a],7);case 7:x(I.yieldResult);X++;I.jumpTo(4);break;case 2:_.O7(I),_.F1(I,0)}})}()}}};
IDo=function(){var S=BuY,c=R1.bufferSize;S||(S=[]);S=S.map(cxR);var Q=new Set(S),f=FKH(c);return{flush:function(){var U=Array.from(f.iterate());f.clear();U=U.map(function(a){return{name:a.name,timestamp:a.startTime,attributes:a.attributes}});
return JSON.stringify(U)},
onSpanStart:function(U){U.name==="event"&&Q.has(U.attributes.type)||f.push(U)}}};
niz=function(){var S=IDo(),c=S.flush;MgR({onSpanStart:S.onSpanStart});C7R.subscribe("handleError",function(Q){try{Q.params.breadcrumbs=c()}catch(f){_.sH(f,"WARNING")}})};
bHZ=function(S,c,Q){var f=S.endTime;if(f==null)throw Error("jj");Q=_.kC(VVo)(S.name,f-S.startTime,S.startTime,{webTracing:S.attributes},Q,c);if(S.children)for(S=_.A(S.children),f=S.next();!f.done;f=S.next())bHZ(f.value,c,Q)};
KKz=function(){for(var S={},c=_.A(R1.enabledSpansArray),Q=c.next();!Q.done;Q=c.next())S[Q.value]=!0;if(R1.exportToCsi||R1.exportBreadcrumbs)S={enabledSpans:S},mq={sessionId:S.sessionId||"",nextSpanId:0,activeSpan:void 0,processors:[],enabledSpans:S.enabledSpans};R1.exportBreadcrumbs&&niz();R1.exportToCsi&&MgR(NuH)};
$yp=function(S){return new Promise(function(c){window.setTimeout(c,S)})};
ueH=function(S){var c={bicf:function(a){S.aHW=a},
blc:function(){return S.getLatestChallengeResponse()},
bcr:function(a){S.i38.push(a)}},Q=window.top;
Q.ntpevasrs=c;if(Q.ntpqfbel!==void 0)for(var f=_.A(Q.ntpqfbel),U=f.next();!U.done;U=f.next())U=U.value,U(c);Q.ntpqfbel=void 0};
jUx=function(S){return _.O(function(c){if(c.nextAddress==1)return _.X1(c,2),_.F(c,S.xWY(),4);if(c.nextAddress!=2)return _.Pi(c,0);_.Bs(c);_.IN(c)})};
lDM=function(S){var c,Q;(c=S.ytcsi)==null||(Q=c.tick)==null||Q.call(c,"pot_ist")};
YsR=function(S){if(S instanceof Error){var c=_.rC("yt.logging.errors.log");c&&c(S,"WARNING")}};
CIc=function(S){try{var c=JSON.parse(S);if(c.bgChallenge)return c}catch(Q){}};
DyZ=function(){var S=window,c={networkStatusManagerPromise:_.fl().resolve(new pnM(_.L6)),initialChallengeSli:_.u("wpo_att_sli")?new _.i0z("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};S=S===void 0?window:S;var Q=S.ytAtR,f;c==null||(f=c.initialChallengeSli)==null||_.IK(f);if(Q){if(Q=CIc(Q)){var U;c==null||(U=c.initialChallengeSli)==null||_.nj(U,"SUCCESS");HHz(Q,c)}S.ytAtR=void 0}else S.ytAtRC=function(a){if(a=CIc(a)){var X;c==null||(X=c.initialChallengeSli)==null||
_.nj(X,"SUCCESS");HHz(a,c);S.ytAtRC=void 0}}};
qsx=function(){if(pjc)return pjc;try{var S=_.Nf("IFRAME");_.TR(S,_.QN(hZp));S.sandbox.add("allow-same-origin");S.style.display="none";document.body.appendChild(S);return pjc=S}catch(c){S=new _.Yr("Failed to create sandbox iframe"),_.sH(S)}};
TuZ=function(S){var c,Q;return(Q=S==null?void 0:(c=S.contentWindow)==null?void 0:c.fetch)!=null?Q:window.fetch};
wjR=function(S){var c,Q;return(Q=S==null?void 0:(c=S.contentWindow)==null?void 0:c.JSON.parse)!=null?Q:JSON.parse};
sUp=function(S){var c,Q;return(Q=S==null?void 0:(c=S.contentWindow)==null?void 0:c.Request)!=null?Q:window.Request};
ZHz=function(){if(GWz()==="hidden")var S="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else GWz()==="visible"&&(S="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",MaT=null);S&&iHZ(S)};
iHZ=function(S){if(S==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||S==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(Gdc===S)return;Gdc=S}var c=9E4+Math.random()*2E3;if(S!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.f1()>c)&&GWz()==="visible"){c=-1;MaT&&(c=Math.round((0,_.Qk)()-MaT));var Q=String;var f=_.rC("_fact",window);f=f==null||f==-1?-1:Math.max(Date.now()-f,0);_.Te("foregroundHeartbeat",{firstActivityMs:Q(f),clientDocumentNonce:b0M,index:String(WKT),lastEventDeltaMs:String(c),trigger:S});
_.m5("_fact",-1,window);WKT++;MaT=(0,_.Qk)()}};
_.giz=function(){try{return!!self.sessionStorage}catch(S){return!1}};
eZz=function(){var S=navigator;return new Promise(function(c,Q){var f;(f=S.webkitTemporaryStorage)!=null&&f.queryUsageAndQuota?S.webkitTemporaryStorage.queryUsageAndQuota(function(U,a){c({usage:U,quota:a})},function(U){Q(U)}):Q(Error("rj"))})};
kdx=function(S,c){var Q={errorSeverity:c.errorSeverity.toString(),wizFeatureFlags:Object.entries(c.featureFlags).join("\n")};xKZ(c,Q);c=c.errorSeverity;c===3?_.sH(S,"ERROR",void 0,void 0,void 0,Q):c===2&&_.sH(S,"WARNING",void 0,void 0,void 0,Q);_.u("cow_if_errors_in_popup")&&c===3&&S.message.indexOf("<If>")!==-1&&window.alert(S.message)};
rVT=function(S,c,Q){S.componentType!==Df&&Q instanceof HTMLElement&&c&&!_.u("cow_logging_in_component_wrapper")&&Y3H(Q,c,!0)};
taH=function(){if(!dyr){dyr=!0;var S=Object.assign({},{enableLazyTsx:_.u("mweb_enable_wiz_lazy_tsx")||_.u("kevlar_enable_wiz_lazy_tsx")||_.u("creator_enable_wiz_lazy_tsx")||vip,flushRenderEffectsDuringRender:!0},{handleError:kdx,enableComponentStacksInErrorMessages:!1});Object.assign(_.Uj,S);Mex=PIH;LKx();gLc=S0T;Z1Y=c6c;_.u("ytwiz_enable_debug_component_props")&&(S=document.body.firstElementChild,window.ng||S.__ngContext__||(S.__ngContext__={},S.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=
Eic))}};
LKx=function(){_.u("cow_logging_in_component_wrapper")?(OXY=function(S,c){c instanceof HTMLElement&&Y3H(c,S,!0)},lEz=function(){}):(OXY=function(){},lEz=rVT)};
VaM=function(S,c,Q){c=c===void 0?{}:c;var f,U=(f=_.Y(S.commandMetadata,_.Qw))==null?void 0:f.url;f=c.form||{};!Q||f.element||f.skipDefaultElement||(c.form=c.form||{},c.form.element=Q);if(U&&U!=="/service_ajax")return{type:0,command:S,form:c.form};if(_.u("kevlar_service_command_check")){if(_.v3(_.fl().resolve(_.M6),S))return Object.assign({},{type:1,command:S},c)}else{var a;if((a=_.Y(S.commandMetadata,_.Qw))==null?0:a.apiUrl)return Object.assign({},{type:1,command:S},c)}return{type:2,command:S,form:c.form}};
RZo=function(S){if(S.form){var c=S.form,Q=Object.assign({},c);c=c.element;Q=(delete Q.element,Q);if(c)return[_.xt(c,[S.command,Q,S.commandController])]}return[]};
yVz=function(S){if(S.form){var c=S.form,Q=Object.assign({},c);c=c.element;Q=(delete Q.element,Q);c&&_.FF(c,[S.command],c,Q)}};
myR=function(S,c,Q){var f=new oiM(S,c),U=new be(S,c,Q);S={"/youtubei/v1/browse":new N7(S,c,Q),"/youtubei/v1/player":f,"/youtubei/v1/navigation/resolve_url":new Kj,"/youtubei/v1/next":U,"/youtubei/v1/guide":new $s(Q),"/youtubei/v1/search":new ue(S,c,Q),"/youtubei/v1/reel/reel_item_watch":new jP(S,c,Q),"/youtubei/v1/get_watch":new le(f,U)};S["/youtubei/v1/account/account_menu"]=new Ys;S["/youtubei/v1/notification/get_notification_menu"]=new Cj;return S};
hw=function(){var S=_.fl().resolve(H$);return Promise.resolve(SUH(S,_.QY.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
c9R=function(S){return S&&(S=_.q7(_.XSo(S)))?(new URLSearchParams(S)).get("service"):null};
s9=function(S,c){_.Xi(_.TV(),function(){_.i2("adl")});
_.fl().resolve(Q_Z)(c);S=S.root;S.loadData&&S.loadData(c);(c==null?0:c.response)?_.nj(WLp(),"SUCCESS"):_.i5(new _.Yr("Lifecycle: No response in data",_.gC("IS_SHELL_LOAD"),c?c.page:"NO_PAGE",c?c.endpoint:"NO_ENDPOINT"));S.polymerController.$["page-manager"].lazyPrepareCriticalPages((c==null?void 0:c.page)||"",c.endpoint);var Q,f;((f=_.Y(c==null?void 0:(Q=c.endpoint)==null?void 0:Q.commandMetadata,_.Qw))==null?0:f.webPageType)&&_.V5().dispatch(_.wa(_.Y(c.endpoint.commandMetadata,_.Qw).webPageType))};
flY=function(){var S,c;return _.O(function(Q){switch(Q.nextAddress){case 1:S=window;if(!S.getDataPromise){Q.jumpTo(2);break}_.X1(Q,3);return _.F(Q,S.getDataPromise(),5);case 5:return Q.return(Q.yieldResult);case 3:return _.Bs(Q),_.F(Q,hw(),6);case 6:return Q.return(Q.yieldResult);case 2:if(S.getInitialData)return c=S.getInitialData(),S.getInitialData=void 0,Q.return(c);throw Error("tj`"+_.QY.location.href);}})};
J9z=function(){_.G_("CSI_SERVICE_NAME","youtube");_.sz({loadType:"cold"});_.u("kevlar_log_lcp")&&UtR(function(S){_.i2("lcp",S.value)})};
alM=function(){var S=_.v1(document.location.href,"enable");S&&S.indexOf("scraper")>-1&&_.G_("ADD_SCRAPER_ATTRIBUTES",!0)};
xtR=function(S){var c=S.root;S=[A9p,XTY,_.M7];_.u("web_feedback_endpoint_autolog_allowlist_killswitch")&&S.push(_.ie,OFH);z$p(function(Q,f){return VaM(Q,f,c)},function(Q){if(!Q.command)return[];
var f;((f=Q.form)==null?0:f.element)?Q.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},Q.form,{endpoint:Q.command})})):c.handleNavigate(Q);return[]},S);
_.fl().addProvider({provide:_.U8,useValue:_.BI.instance})};
BmY=function(){var S={},c={},Q;for(Q in F4z){var f=_.A(_.ny(F4z[Q],void 0,"NBH2te"));S[Q]=f.next().value;c[Q]=f.next().value}return[S,function(U){for(var a in U){var X=void 0;(X=c[a])==null||X(U[a])}}]};
_.bFY=function(S,c){var Q=_.Cn.getValueByKeys(S,"contents","twoColumnWatchNextResults","results","results","contents"),f=_.Cn.getValueByKeys(S,"contents","twoColumnWatchNextResults","playlist","playlist")||null,U=null,a=null;if(f)U=_.Cn.getValueByKeys(f,"titleText"),a=_.Cn.unsafeClone(_.Cn.getValueByKeys(f,"longBylineText")),Q="",a&&(Q=_.Em(a)),a=_.LK(Q);else if(Q){Q=_.A(Q);for(var X=Q.next();!X.done;X=Q.next())X=X.value,X.videoPrimaryInfoRenderer&&(U=_.Cn.getValueByKeys.apply(_.Cn,[X].concat(_.Hs(IlY)))),
X.videoSecondaryInfoRenderer&&(a=_.Cn.getValueByKeys.apply(_.Cn,[X].concat(_.Hs(nTT))))}else _.dC(Error("yj"));var z;S.currentVideoEndpoint?z=S.currentVideoEndpoint:_.dC(Error("zj"));var x;c&&(x=_.Cn.getValueByKeys(c,"playabilityStatus","miniplayer","miniplayerRenderer"));S={miniplayerTitle:U,miniplayerSubtitle:a,watchEndpoint:z,playlistData:f};x&&(S.miniplayerRenderer=x);return S};
Nmz=function(S){if(S)return _.sX(S)};
_.K4Z=function(){return{isFullscreen:function(){throw Error("Aj");},
toggleFullscreen:function(){throw Error("Bj");},
exitFullscreen:function(){throw Error("Cj");},
isAutonavEnabled:function(){throw Error("Dj");},
setAutonavEnabled:function(){throw Error("Ej");},
isAutoplaySetExplicitly:function(){throw Error("Fj");}}};
$tR=function(S){return S.videoDuration?S.numTaps>1&&S.tapDirection!==0?_.Zv(S.draggedTime/S.videoDuration,0,1):_.Zv((S.playedTime||0)/S.videoDuration,0,1):0};
uGz=function(S){return S.videoDuration?S.isDragging||S.numTaps>1&&S.tapDirection!==0?_.Zv(S.draggedTime/S.videoDuration,0,1):_.Zv((S.playedTime||0)/S.videoDuration,0,1):0};
llp=function(S){var c,Q,f;return _.Y(S==null?void 0:(c=S.markersMap)==null?void 0:(Q=c.find(function(U){return U.key==="HEATSEEKER"}))==null?void 0:(f=Q.value)==null?void 0:f.heatmap,j_x)};
YUY=function(S){var c,Q;return(Q=(c=llp(S))==null?void 0:c.heatMarkersDecorations)!=null?Q:[]};
Cqo=function(S){if(_.u("mweb_supported_chapters_killswitch"))return!0;var c;return!!(S==null?0:(c=S.markersMap)==null?0:c.find(function(Q){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(Q.key)}))};
_.HFc=function(S){var c=Object,Q=c.assign,f;S={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(f=S==null?void 0:S.getPlayerState())!=null?f:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return Q.call(c,{},{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},S,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
DtH=function(S){return function(c){var Q=S(),f,U=(f=Q.playerApi)==null?void 0:f.getPlayerState();c&&c!==Q.playerState&&(c===1||c===2)&&Q.setState({playerState:U})}};
h$p=function(S){return function(c){var Q=S(),f=Q.playerApi;f&&(c==null?void 0:c.type)==="newdata"&&(pTo&&(clearTimeout(pTo),pTo=void 0),_.u("web_shorts_use_progress_state_for_gapless")?(c=f==null?void 0:f.getProgressState(c==null?void 0:c.playertype),c=c.seekableEnd-c.seekableStart):c=f==null?void 0:f.getDuration(c==null?void 0:c.playertype),Q.setState({playedTime:0,videoDuration:c}))}};
qUM=function(S){return function(c){var Q=S(),f=Q.playerApi;if(f){var U=f.getPresentingPlayerType();_.u("web_shorts_use_progress_state_for_gapless")?(f=f.getProgressState(U),f=f.seekableEnd-f.seekableStart):f=f.getDuration(U);Q.setState({playedTime:c,videoDuration:f})}}};
s_Y=function(S){var c=S.element;var Q=S.veType;var f=S.storedVisualElement===void 0?null:S.storedVisualElement;var U=S.elementIndex===void 0?0:S.elementIndex;S=S.clientYouTubeData;var a=_.wN();a!==Tmp&&(wTM.clear(),Tmp=a);if(c.visualElement&&wTM.has(c.visualElement))return null;if(f&&wTM.has(f))return c.visualElement=f,null;Q=_.NK(_.Kv(),{veType:Q,elementIndex:U,clientYouTubeData:S});if(!Q)return null;c.visualElement=Q;wTM.add(Q);return Q};
_.GV=function(S,c,Q,f){Q=Q===void 0?null:Q;f=f===void 0?r_Y:f;var U=U===void 0?null:U;h2(function(){if(c){Q instanceof Function&&(Q=Q());var a=s_Y({element:c,veType:S,storedVisualElement:Q,clientYouTubeData:void 0});a&&(PkH(c,U),f(a))}})};
iFx=function(S){_.GV(112394,S,function(){return Mvp},function(c){Mvp=c})};
W4x=function(S,c){if(!S)return[];var Q,f,U;S=((Q=S.markersMap)==null?void 0:(f=Q.find(function(a){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(a.key)}))==null?void 0:(U=f.value)==null?void 0:U.chapters)||[];
!ZFz(S)||(c==null?0:c.ignoreStub)||(S=[GqR()].concat(_.Hs(S)));return S};
GqR=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
ZFz=function(S){if(S.length===0)return!1;var c;return((c=_.Y(S[0],W$))==null?void 0:c.timeRangeStartMillis)!==0};
eP=function(S){return S?S.timeRangeStartMillis||0:0};
e$M=function(S,c){if(S.isDragging&&c)return S=gTH(S,c),S===-1?GqR():W4x(c)[S]};
gTH=function(S,c){return S.isDragging&&c?W4x(c,{ignoreStub:!0}).findIndex(function(Q,f,U){Q=kqR(S);return r9p(Q,U,f).scrubberHovering}):-1};
kqR=function(S){return Object.assign({},S,{videoDuration:S.videoDuration*1E3,playedTime:S.playedTime*1E3,draggedTime:S.draggedTime*1E3})};
r9p=function(S,c,Q){var f=eP(_.Y(c[Q],W$));c=eP(_.Y(c[Q+1],W$))||S.videoDuration;Q=S.isDragging;var U;if(U=S.isDragging)U=S.draggedTime,U=U!==null&&U>=f&&U<c;var a=S.playedTime;return a!==null&&a>=f&&a<c?{videoPosition:"active",isScrubbing:Q,scrubberHovering:U}:S.playedTime<f?{videoPosition:"pending",isScrubbing:Q,scrubberHovering:U}:{videoPosition:"seen",isScrubbing:Q,scrubberHovering:U}};
dtZ=function(S,c){return S.videoPosition==="seen"||(c===void 0?0:c)>0};
vTc=function(S,c,Q){c=S/c.storyboardInterval;var f=W4x(Q);if(!f.length)return-c*72;Q=0;f=_.A(f);for(var U=f.next();!U.done;U=f.next())if(eP(_.Y(U.value,W$))/1E3<S)Q++;else break;return-(c*72)-Q*56};
Pqo=function(S){return S?S.width/S.columns:0};
L4c=function(S){return S.isHovering?S.hoveredTime:S.draggedTime};
ETY=function(S,c){S=S.draggedTime*1E3;return S>=c.visibleTimeRangeStartMillis&&S<=c.visibleTimeRangeEndMillis};
_.tvZ=function(S){if(S===void 0||Number.isNaN(S))return"--:--";var c=Math.abs(Math.floor(S)),Q=Math.floor(c/86400),f=Math.floor(c%86400/3600),U=Math.floor(c%3600/60);c=Math.floor(c%60);var a="";Q>0&&(a+=Q+":",f<10&&(a+="0"));if(Q>0||f>0)a+=f+":",U<10&&(a+="0");a+=U+":";c<10&&(a+="0");a+=c;return S>=0?a:"-"+a};
Vvz=function(S,c){return function(){var Q=L4c(S());var f=c();var U=S().playerApi;if(U&&U.getNumberOfStoryboardLevels()!==0){var a=U.getStoryboardFrameIndex(Q,1);a!==-1?f=U.getStoryboardFrame(a,1):(Q=U.getStoryboardFrameIndex(Q,0),U=U.getStoryboardFrame(Q,0),f&&U&&(U.height*=3,U.width*=3),f=U)}else f=null;if(!f)return null;c()&&(f.width=90*f.columns,f.height=160*f.rows);return f}};
_.ks=function(S){if(!S||S.getVideoData)return S};
R$H=function(){var S;return{playerApi:(S=_.zI())!=null?S:void 0}};
y9z=function(S){var c;_.O(function(Q){if(Q.nextAddress==1)return _.F(Q,_.Oe(),2);if(c=Q.yieldResult)c.unMute(!0),c.setVolume(S,!0);_.IN(Q)})};
oTY=function(S,c){S&&(S.value=""+c,S.style.setProperty("--gradient-percent",c+"%"))};
mtM=function(S){var c;return(c=S==null?void 0:S.value)!=null?c:0};
Svc=function(){var S;_.O(function(c){if(c.nextAddress==1)return _.F(c,_.Oe(),2);S=c.yieldResult;if(!S)return c.return();S.isMuted()?S.unMute(!0):S.mute(!0);_.IN(c)})};
cuM=function(S){var c=_.fl().resolve(_.ra).getPlayerElement();c&&S&&(S===1?c.pause():c.play())};
QbT=function(S){_.Oz(S,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
fFr=function(S){_.Oz(S,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
JuM=function(S){return _.hS(S.document.body,function(){return _.B(UCz,null)})};
aFz=function(){var S=window.performance.getEntriesByType("navigation");return S?S.map(function(c){return c.type}).includes("reload"):!1};
IFT=function(){da(da(da(da(da(da(da(_.fl().resolve(_.v$),_.Aup),_.XUp),_.O7Z),_.z4T),_.xCM),_.FXY),_.B7z)};
nep=function(S,c){c=c===void 0?!1:c;var Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return c||!_.u("kevlar_shorts_seedless_retry_initial_load")||(Q=window,f=!(!Q.getDataPromise&&!Q.getInitialData),f)?_.F(X,flY(),2):(setTimeout(nep.bind(window,S,!0),1E3),X.return());if(X.nextAddress!=3)return U=X.yieldResult,_.F(X,b7r(U),3);a=X.yieldResult;s9(S,a);_.IN(X)})};
b7r=function(S){var c;if((c=S.response)==null||!c.replacementEndpoint)return _.B2(S);c=_.fl().resolve(H$);S=S.response;_.Y(S.replacementEndpoint,_.ll)&&S.sequenceContinuation&&(_.Y(S.replacementEndpoint,_.ll).sequenceParams=S.sequenceContinuation);return P$(c,S.replacementEndpoint,{},_.QY.location.href,"shorts",function(){},function(){return!1})};
N7p=function(S){var c=_.V5(),Q,f=_.Y((Q=S.response)==null?void 0:Q.frameworkUpdates,ta),U;Q=_.Y((U=S.playerResponse)==null?void 0:U.frameworkUpdates,ta);var a;S=_.Y((a=S.reelWatchSequenceResponse)==null?void 0:a.frameworkUpdates,ta);f&&_.NO(f,c);Q&&_.NO(Q,c);S&&_.NO(S,c)};
KXc=function(S){var c;_.u("enable_redirect_linking_for_desktop_web_client")&&((c=window.location.hash)==null?0:c.includes("redirect_state"))&&S.url&&(S.url=S.url.toString()+window.location.hash)};
jbY=function(S){var c=_.fl(),Q=c.resolve(H$);c=c.resolve(_.$CZ);S.endpoint&&(Q=uYM(Q,S.endpoint),Q.content&&S.response&&_.Lj(c,S.response,Q.content),Q.player&&S.playerResponse&&_.Lj(c,S.playerResponse,Q.player),Q.reelSequence&&S.reelWatchSequenceResponse&&_.Lj(c,S.reelWatchSequenceResponse,Q.reelSequence))};
E9=function(S,c){N7p(c);var Q;(c==null?0:c.url)&&((Q=window.location.hash)==null?0:Q.includes("redirect_state"))&&(KXc(c),(Q=c9R(c.url))&&_.XF(S.root,"yt-initialize-third-party",[Q,c]));jbY(c);Q=_.fl();var f=Q.resolve(lFY);c.playerResponse&&Q.resolve(Yvz).handleResponse(c.playerResponse);if(c.playerResponse){Q=void 0;if(_.u("ab_v_vid_sig")&&c.endpoint){var U,a=(U=_.Y(c.endpoint,_.tG))!=null?U:_.Y(c.endpoint,_.ll);a&&(Q=a.videoId)}CPT(f,c.playerResponse,Q)}c.playerResponse&&RSH(c.playerResponse)&&
_.u("web_enable_ab_rsp_cl")?XBT().then(function(){H7Y(f,c.playerResponse);s9(S,c)}):s9(S,c)};
pUY=function(S){if(S=S.root.data){var c=_.fl().resolve(DCo);S.endpoint&&(S.response&&c.handleResponse(S.response,void 0,document.querySelector("ytd-app")),S.playerResponse&&c.handleResponse(S.playerResponse),S.reelWatchSequenceResponse&&c.handleResponse(S.reelWatchSequenceResponse))}};
h4Y=function(S){var c,Q,f,U,a,X;return _.O(function(z){switch(z.nextAddress){case 1:c=window;if(!c.getDataPromise){z.jumpTo(2);break}_.X1(z,3);return _.F(z,c.getDataPromise(),5);case 5:Q=z.yieldResult;E9(S,Q);_.Pi(z,4);break;case 3:return _.Bs(z),_.F(z,hw(),6);case 6:f=z.yieldResult,s9(S,f);case 4:return z.return();case 2:if(!_.u("sw_nav_preload_pbj")){z.jumpTo(7);break}c.fetchInitialData=function(){var x;return _.O(function(I){if(I.nextAddress==1)return _.F(I,hw(),2);x=I.yieldResult;s9(S,x);_.IN(I)})};
if(c.getInitialData){c.loadInitialData=function(x){E9(S,x)};
U=c.getInitialData();c.getInitialData=void 0;E9(S,U);z.jumpTo(8);break}c.fetchInitialData=void 0;return _.F(z,hw(),9);case 9:a=z.yieldResult,s9(S,a);case 8:return z.return();case 7:c.getInitialData?(X=c.getInitialData(),c.getInitialData=void 0,E9(S,X)):c.loadInitialData=function(x){E9(S,x)},_.IN(z)}})};
qvH=function(S){var c=0;return function(){return c<S.length?{done:!1,value:S[c++]}:{done:!0}}};
T7z=typeof Object.defineProperties=="function"?Object.defineProperty:function(S,c,Q){if(S==Array.prototype||S==Object.prototype)return S;S[c]=Q.value;return S};
wUR=function(S){S=["object"==typeof globalThis&&globalThis,S,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<S.length;++c){var Q=S[c];if(Q&&Q.Math==Math)return Q}throw Error("a");};
_.Rh=wUR(this);VG=function(S,c){if(c)a:{var Q=_.Rh;S=S.split(".");for(var f=0;f<S.length-1;f++){var U=S[f];if(!(U in Q))break a;Q=Q[U]}S=S[S.length-1];f=Q[S];c=c(f);c!=f&&c!=null&&T7z(Q,S,{configurable:!0,writable:!0,value:c})}};
VG("Symbol",function(S){if(S)return S;var c=function(a,X){this.$jscomp$symbol$id_=a;T7z(this,"description",{configurable:!0,writable:!0,value:X})};
c.prototype.toString=function(){return this.$jscomp$symbol$id_};
var Q="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",f=0,U=function(a){if(this instanceof U)throw new TypeError("b");return new c(Q+(a||"")+"_"+f++,a)};
return U});
VG("Symbol.iterator",function(S){if(S)return S;S=Symbol("c");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),Q=0;Q<c.length;Q++){var f=_.Rh[c[Q]];typeof f==="function"&&typeof f.prototype[S]!="function"&&T7z(f.prototype,S,{configurable:!0,writable:!0,value:function(){return sbp(qvH(this))}})}return S});
VG("Symbol.asyncIterator",function(S){return S?S:Symbol("d")});
var sbp=function(S){S={next:S};S[Symbol.iterator]=function(){return this};
return S},MQT=typeof Object.create=="function"?Object.create:function(S){var c=function(){};
c.prototype=S;return new c},i7H=function(){function S(){function Q(){}
new Q;Reflect.construct(Q,[],function(){});
return new Q instanceof Q}
if(typeof Reflect!="undefined"&&Reflect.construct){if(S())return Reflect.construct;var c=Reflect.construct;return function(Q,f,U){Q=c(Q,f);U&&Reflect.setPrototypeOf(Q,U.prototype);return Q}}return function(Q,f,U){U===void 0&&(U=Q);
U=MQT(U.prototype||Object.prototype);return Function.prototype.apply.call(Q,U,f)||U}}(),Z7x;
if(typeof Object.setPrototypeOf=="function")Z7x=Object.setPrototypeOf;else{var Gtr;a:{var WXo={a:!0},geo={};try{geo.__proto__=WXo;Gtr=geo.a;break a}catch(S){}Gtr=!1}Z7x=Gtr?function(S,c){S.__proto__=c;if(S.__proto__!==c)throw new TypeError("e`"+S);return S}:null}RK=Z7x;
_.C=function(S,c){S.prototype=MQT(c.prototype);S.prototype.constructor=S;if(RK)RK(S,c);else for(var Q in c)if(Q!="prototype")if(Object.defineProperties){var f=Object.getOwnPropertyDescriptor(c,Q);f&&Object.defineProperty(S,Q,f)}else S[Q]=c[Q];S.superClass_=c.prototype};
_.A=function(S){var c=typeof Symbol!="undefined"&&Symbol.iterator&&S[Symbol.iterator];if(c)return c.call(S);if(typeof S.length=="number")return{next:qvH(S)};throw Error("f`"+String(S));};
ya=function(S){for(var c,Q=[];!(c=S.next()).done;)Q.push(c.value);return Q};
_.Hs=function(S){return S instanceof Array?S:ya(_.A(S))};
_.oK=function(S){return yG(S,S)};
yG=function(S,c){S.raw=c;Object.freeze&&(Object.freeze(S),Object.freeze(c));return S};
m9=function(S,c){return Object.prototype.hasOwnProperty.call(S,c)};
e4T=typeof Object.assign=="function"?Object.assign:function(S,c){for(var Q=1;Q<arguments.length;Q++){var f=arguments[Q];if(f)for(var U in f)m9(f,U)&&(S[U]=f[U])}return S};
VG("Object.assign",function(S){return S||e4T});
var ktx=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},rur=function(S){if(S.isRunning_)throw new TypeError("h");
S.isRunning_=!0};
ktx.prototype.JSC$6776_next_=function(S){this.yieldResult=S};
var dCH=function(S,c){S.abruptCompletion_={exception:c,isException:!0};S.nextAddress=S.catchAddress_||S.finallyAddress_};
ktx.prototype.return=function(S){this.abruptCompletion_={return:S};this.nextAddress=this.finallyAddress_};
_.F=function(S,c,Q){S.nextAddress=Q;return{value:c}};
ktx.prototype.jumpTo=function(S){this.nextAddress=S};
_.IN=function(S){S.nextAddress=0};
_.X1=function(S,c,Q){S.catchAddress_=c;Q!=void 0&&(S.finallyAddress_=Q)};
_.xp=function(S,c){S.catchAddress_=0;S.finallyAddress_=c||0};
_.Pi=function(S,c,Q){S.nextAddress=c;S.catchAddress_=Q||0};
_.Bs=function(S,c){S.catchAddress_=c||0;c=S.abruptCompletion_.exception;S.abruptCompletion_=null;return c};
_.O7=function(S,c,Q,f){f?S.finallyContexts_[f]=S.abruptCompletion_:S.finallyContexts_=[S.abruptCompletion_];S.catchAddress_=c||0;S.finallyAddress_=Q||0};
_.F1=function(S,c,Q){Q=S.finallyContexts_.splice(Q||0)[0];(Q=S.abruptCompletion_=S.abruptCompletion_||Q)?Q.isException?S.nextAddress=S.catchAddress_||S.finallyAddress_:Q.jumpTo!=void 0&&S.finallyAddress_<Q.jumpTo?(S.nextAddress=Q.jumpTo,S.abruptCompletion_=null):S.nextAddress=S.finallyAddress_:S.nextAddress=c};
ver=function(S){this.JSC$6781_context_=new ktx;this.program_=S};
LXp=function(S,c){rur(S.JSC$6781_context_);var Q=S.JSC$6781_context_.yieldAllIterator_;if(Q)return PPZ(S,"return"in Q?Q["return"]:function(f){return{value:f,done:!0}},c,S.JSC$6781_context_.return);
S.JSC$6781_context_.return(c);return Sp(S)};
PPZ=function(S,c,Q,f){try{var U=c.call(S.JSC$6781_context_.yieldAllIterator_,Q);if(!(U instanceof Object))throw new TypeError("g`"+U);if(!U.done)return S.JSC$6781_context_.isRunning_=!1,U;var a=U.value}catch(X){return S.JSC$6781_context_.yieldAllIterator_=null,dCH(S.JSC$6781_context_,X),Sp(S)}S.JSC$6781_context_.yieldAllIterator_=null;f.call(S.JSC$6781_context_,a);return Sp(S)};
Sp=function(S){for(;S.JSC$6781_context_.nextAddress;)try{var c=S.program_(S.JSC$6781_context_);if(c)return S.JSC$6781_context_.isRunning_=!1,{value:c.value,done:!1}}catch(Q){S.JSC$6781_context_.yieldResult=void 0,dCH(S.JSC$6781_context_,Q)}S.JSC$6781_context_.isRunning_=!1;if(S.JSC$6781_context_.abruptCompletion_){c=S.JSC$6781_context_.abruptCompletion_;S.JSC$6781_context_.abruptCompletion_=null;if(c.isException)throw c.exception;return{value:c.return,done:!0}}return{value:void 0,done:!0}};
EeZ=function(S){this.next=function(c){rur(S.JSC$6781_context_);S.JSC$6781_context_.yieldAllIterator_?c=PPZ(S,S.JSC$6781_context_.yieldAllIterator_.next,c,S.JSC$6781_context_.JSC$6776_next_):(S.JSC$6781_context_.JSC$6776_next_(c),c=Sp(S));return c};
this.throw=function(c){rur(S.JSC$6781_context_);S.JSC$6781_context_.yieldAllIterator_?c=PPZ(S,S.JSC$6781_context_.yieldAllIterator_["throw"],c,S.JSC$6781_context_.JSC$6776_next_):(dCH(S.JSC$6781_context_,c),c=Sp(S));return c};
this.return=function(c){return LXp(S,c)};
this[Symbol.iterator]=function(){return this}};
_.zZY=function(S,c){c=new EeZ(new ver(c));RK&&S.prototype&&RK(c,S.prototype);return c};
tQZ=function(S){function c(f){return S.next(f)}
function Q(f){return S.throw(f)}
return new Promise(function(f,U){function a(X){X.done?f(X.value):Promise.resolve(X.value).then(c,Q).then(a,U)}
a(S.next())})};
_.O=function(S){return tQZ(new EeZ(new ver(S)))};
vZR=function(S){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return S};
this.next=function(c){return Promise.resolve(S.next(c))};
this["throw"]=function(c){return new Promise(function(Q,f){var U=S["throw"];U!==void 0?Q(U.call(S,c)):(Q=S["return"],Q!==void 0&&Q.call(S),f(new TypeError("i")))})};
S["return"]!==void 0&&(this["return"]=function(c){return Promise.resolve(S["return"](c))})};
_.YD=function(){for(var S=Number(this),c=[],Q=S;Q<arguments.length;Q++)c[Q-S]=arguments[Q];return c};
_.xyH=function(S){return S};
VG("globalThis",function(S){return S||_.Rh});
VG("Reflect",function(S){return S?S:{}});
VG("Reflect.construct",function(){return i7H});
VG("Reflect.setPrototypeOf",function(S){return S?S:RK?function(c,Q){try{return RK(c,Q),!0}catch(f){return!1}}:null});
VG("Promise",function(S){function c(){this.batch_=null}
function Q(X){return X instanceof U?X:new U(function(z){z(X)})}
if(S&&(typeof _.Rh.PromiseRejectionEvent!=="undefined"||!_.Rh.Promise||_.Rh.Promise.toString().indexOf("[native code]")===-1))return S;c.prototype.asyncExecute=function(X){if(this.batch_==null){this.batch_=[];var z=this;this.asyncExecuteFunction(function(){z.executeBatch_()})}this.batch_.push(X)};
var f=_.Rh.setTimeout;c.prototype.asyncExecuteFunction=function(X){f(X,0)};
c.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var X=this.batch_;this.batch_=[];for(var z=0;z<X.length;++z){var x=X[z];X[z]=null;try{x()}catch(I){this.asyncThrow_(I)}}}this.batch_=null};
c.prototype.asyncThrow_=function(X){this.asyncExecuteFunction(function(){throw X;})};
var U=function(X){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var z=this.createResolveAndReject_();try{X(z.resolve,z.reject)}catch(x){z.reject(x)}};
U.prototype.createResolveAndReject_=function(){function X(I){return function(n){x||(x=!0,I.call(z,n))}}
var z=this,x=!1;return{resolve:X(this.resolveTo_),reject:X(this.JSC$6797_reject_)}};
U.prototype.resolveTo_=function(X){if(X===this)this.JSC$6797_reject_(new TypeError("j"));else if(X instanceof U)this.settleSameAsPromise_(X);else{a:switch(typeof X){case "object":var z=X!=null;break a;case "function":z=!0;break a;default:z=!1}z?this.resolveToNonPromiseObj_(X):this.fulfill_(X)}};
U.prototype.resolveToNonPromiseObj_=function(X){var z=void 0;try{z=X.then}catch(x){this.JSC$6797_reject_(x);return}typeof z=="function"?this.settleSameAsThenable_(z,X):this.fulfill_(X)};
U.prototype.JSC$6797_reject_=function(X){this.settle_(2,X)};
U.prototype.fulfill_=function(X){this.settle_(1,X)};
U.prototype.settle_=function(X,z){if(this.state_!=0)throw Error("k`"+X+"`"+z+"`"+this.state_);this.state_=X;this.result_=z;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
U.prototype.scheduleUnhandledRejectionCheck_=function(){var X=this;f(function(){if(X.notifyUnhandledRejection_()){var z=_.Rh.console;typeof z!=="undefined"&&z.error(X.result_)}},1)};
U.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var X=_.Rh.CustomEvent,z=_.Rh.Event,x=_.Rh.dispatchEvent;if(typeof x==="undefined")return!0;typeof X==="function"?X=new X("unhandledrejection",{cancelable:!0}):typeof z==="function"?X=new z("unhandledrejection",{cancelable:!0}):(X=_.Rh.document.createEvent("CustomEvent"),X.initCustomEvent("unhandledrejection",!1,!0,X));X.promise=this;X.reason=this.result_;return x(X)};
U.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var X=0;X<this.onSettledCallbacks_.length;++X)a.asyncExecute(this.onSettledCallbacks_[X]);this.onSettledCallbacks_=null}};
var a=new c;U.prototype.settleSameAsPromise_=function(X){var z=this.createResolveAndReject_();X.callWhenSettled_(z.resolve,z.reject)};
U.prototype.settleSameAsThenable_=function(X,z){var x=this.createResolveAndReject_();try{X.call(z,x.resolve,x.reject)}catch(I){x.reject(I)}};
U.prototype.then=function(X,z){function x(N,l){return typeof N=="function"?function(H){try{I(N(H))}catch(q){n(q)}}:l}
var I,n,b=new U(function(N,l){I=N;n=l});
this.callWhenSettled_(x(X,I),x(z,n));return b};
U.prototype.catch=function(X){return this.then(void 0,X)};
U.prototype.callWhenSettled_=function(X,z){function x(){switch(I.state_){case 1:X(I.result_);break;case 2:z(I.result_);break;default:throw Error("l`"+I.state_);}}
var I=this;this.onSettledCallbacks_==null?a.asyncExecute(x):this.onSettledCallbacks_.push(x);this.isRejectionHandled_=!0};
U.resolve=Q;U.reject=function(X){return new U(function(z,x){x(X)})};
U.race=function(X){return new U(function(z,x){for(var I=_.A(X),n=I.next();!n.done;n=I.next())Q(n.value).callWhenSettled_(z,x)})};
U.all=function(X){var z=_.A(X),x=z.next();return x.done?Q([]):new U(function(I,n){function b(H){return function(q){N[H]=q;l--;l==0&&I(N)}}
var N=[],l=0;do N.push(void 0),l++,Q(x.value).callWhenSettled_(b(N.length-1),n),x=z.next();while(!x.done)})};
return U});
var cg=function(S,c,Q){if(S==null)throw new TypeError("m`"+Q);if(c instanceof RegExp)throw new TypeError("n`"+Q);return S+""};
VG("String.prototype.startsWith",function(S){return S?S:function(c,Q){var f=cg(this,c,"startsWith"),U=f.length,a=c.length;Q=Math.max(0,Math.min(Q|0,f.length));for(var X=0;X<a&&Q<U;)if(f[Q++]!=c[X++])return!1;return X>=a}});
VG("Object.setPrototypeOf",function(S){return S||RK});
VG("Symbol.dispose",function(S){return S?S:Symbol("o")});
VG("SuppressedError",function(S){function c(Q,f,U){if(!(this instanceof c))return new c(Q,f,U);U=Error(U);"stack"in U&&(this.stack=U.stack);this.message=U.message;this.error=Q;this.suppressed=f}
if(S)return S;_.C(c,Error);c.prototype.name="SuppressedError";return c});
var VQc=function(S,c,Q){S instanceof String&&(S=String(S));for(var f=S.length,U=0;U<f;U++){var a=S[U];if(c.call(Q,a,U,S))return{i:U,v:a}}return{i:-1,v:void 0}};
VG("Array.prototype.find",function(S){return S?S:function(c,Q){return VQc(this,c,Q).v}});
VG("WeakMap",function(S){function c(){}
function Q(x){var I=typeof x;return I==="object"&&x!==null||I==="function"}
function f(x){if(!m9(x,a)){var I=new c;T7z(x,a,{value:I})}}
function U(x){var I=Object[x];I&&(Object[x]=function(n){if(n instanceof c)return n;Object.isExtensible(n)&&f(n);return I(n)})}
if(function(){if(!S||!Object.seal)return!1;try{var x=Object.seal({}),I=Object.seal({}),n=new S([[x,2],[I,3]]);if(n.get(x)!=2||n.get(I)!=3)return!1;n.delete(x);n.set(I,4);return!n.has(x)&&n.get(I)==4}catch(b){return!1}}())return S;
var a="$jscomp_hidden_"+Math.random();U("freeze");U("preventExtensions");U("seal");var X=0,z=function(x){this.JSC$6804_id_=(X+=Math.random()+1).toString();if(x){x=_.A(x);for(var I;!(I=x.next()).done;)I=I.value,this.set(I[0],I[1])}};
z.prototype.set=function(x,I){if(!Q(x))throw Error("p");f(x);if(!m9(x,a))throw Error("q`"+x);x[a][this.JSC$6804_id_]=I;return this};
z.prototype.get=function(x){return Q(x)&&m9(x,a)?x[a][this.JSC$6804_id_]:void 0};
z.prototype.has=function(x){return Q(x)&&m9(x,a)&&m9(x[a],this.JSC$6804_id_)};
z.prototype.delete=function(x){return Q(x)&&m9(x,a)&&m9(x[a],this.JSC$6804_id_)?delete x[a][this.JSC$6804_id_]:!1};
return z});
VG("Map",function(S){if(function(){if(!S||typeof S!="function"||!S.prototype.entries||typeof Object.seal!="function")return!1;try{var z=Object.seal({x:4}),x=new S(_.A([[z,"s"]]));if(x.get(z)!="s"||x.size!=1||x.get({x:4})||x.set({x:4},"t")!=x||x.size!=2)return!1;var I=x.entries(),n=I.next();if(n.done||n.value[0]!=z||n.value[1]!="s")return!1;n=I.next();return n.done||n.value[0].x!=4||n.value[1]!="t"||!I.next().done?!1:!0}catch(b){return!1}}())return S;
var c=new WeakMap,Q=function(z){this[0]={};this[1]=a();this.size=0;if(z){z=_.A(z);for(var x;!(x=z.next()).done;)x=x.value,this.set(x[0],x[1])}};
Q.prototype.set=function(z,x){z=z===0?0:z;var I=f(this,z);I.list||(I.list=this[0][I.id]=[]);I.entry?I.entry.value=x:(I.entry={next:this[1],previous:this[1].previous,head:this[1],key:z,value:x},I.list.push(I.entry),this[1].previous.next=I.entry,this[1].previous=I.entry,this.size++);return this};
Q.prototype.delete=function(z){z=f(this,z);return z.entry&&z.list?(z.list.splice(z.index,1),z.list.length||delete this[0][z.id],z.entry.previous.next=z.entry.next,z.entry.next.previous=z.entry.previous,z.entry.head=null,this.size--,!0):!1};
Q.prototype.clear=function(){this[0]={};this[1]=this[1].previous=a();this.size=0};
Q.prototype.has=function(z){return!!f(this,z).entry};
Q.prototype.get=function(z){return(z=f(this,z).entry)&&z.value};
Q.prototype.entries=function(){return U(this,function(z){return[z.key,z.value]})};
Q.prototype.keys=function(){return U(this,function(z){return z.key})};
Q.prototype.values=function(){return U(this,function(z){return z.value})};
Q.prototype.forEach=function(z,x){for(var I=this.entries(),n;!(n=I.next()).done;)n=n.value,z.call(x,n[1],n[0],this)};
Q.prototype[Symbol.iterator]=Q.prototype.entries;var f=function(z,x){var I=x&&typeof x;I=="object"||I=="function"?c.has(x)?I=c.get(x):(I=""+ ++X,c.set(x,I)):I="p_"+x;var n=z[0][I];if(n&&m9(z[0],I))for(z=0;z<n.length;z++){var b=n[z];if(x!==x&&b.key!==b.key||x===b.key)return{id:I,list:n,index:z,entry:b}}return{id:I,list:n,index:-1,entry:void 0}},U=function(z,x){var I=z[1];
return sbp(function(){if(I){for(;I.head!=z[1];)I=I.previous;for(;I.next!=I.head;)return I=I.next,{done:!1,value:x(I)};I=null}return{done:!0,value:void 0}})},a=function(){var z={};
return z.previous=z.next=z.head=z},X=0;
return Q});
VG("Set",function(S){if(function(){if(!S||typeof S!="function"||!S.prototype.entries||typeof Object.seal!="function")return!1;try{var Q=Object.seal({x:4}),f=new S(_.A([Q]));if(!f.has(Q)||f.size!=1||f.add(Q)!=f||f.size!=1||f.add({x:4})!=f||f.size!=2)return!1;var U=f.entries(),a=U.next();if(a.done||a.value[0]!=Q||a.value[1]!=Q)return!1;a=U.next();return a.done||a.value[0]==Q||a.value[0].x!=4||a.value[1]!=a.value[0]?!1:U.next().done}catch(X){return!1}}())return S;
var c=function(Q){this.JSC$6818_map_=new Map;if(Q){Q=_.A(Q);for(var f;!(f=Q.next()).done;)this.add(f.value)}this.size=this.JSC$6818_map_.size};
c.prototype.add=function(Q){Q=Q===0?0:Q;this.JSC$6818_map_.set(Q,Q);this.size=this.JSC$6818_map_.size;return this};
c.prototype.delete=function(Q){Q=this.JSC$6818_map_.delete(Q);this.size=this.JSC$6818_map_.size;return Q};
c.prototype.clear=function(){this.JSC$6818_map_.clear();this.size=0};
c.prototype.has=function(Q){return this.JSC$6818_map_.has(Q)};
c.prototype.entries=function(){return this.JSC$6818_map_.entries()};
c.prototype.values=function(){return this.JSC$6818_map_.values()};
c.prototype.keys=c.prototype.values;c.prototype[Symbol.iterator]=c.prototype.values;c.prototype.forEach=function(Q,f){var U=this;this.JSC$6818_map_.forEach(function(a){return Q.call(f,a,a,U)})};
return c});
VG("Math.log2",function(S){return S?S:function(c){return Math.log(c)/Math.LN2}});
VG("Object.values",function(S){return S?S:function(c){var Q=[],f;for(f in c)m9(c,f)&&Q.push(c[f]);return Q}});
VG("Object.is",function(S){return S?S:function(c,Q){return c===Q?c!==0||1/c===1/Q:c!==c&&Q!==Q}});
VG("Array.prototype.includes",function(S){return S?S:function(c,Q){var f=this;f instanceof String&&(f=String(f));var U=f.length;Q=Q||0;for(Q<0&&(Q=Math.max(Q+U,0));Q<U;Q++){var a=f[Q];if(a===c||Object.is(a,c))return!0}return!1}});
VG("String.prototype.includes",function(S){return S?S:function(c,Q){return cg(this,c,"includes").indexOf(c,Q||0)!==-1}});
VG("Array.from",function(S){return S?S:function(c,Q,f){Q=Q!=null?Q:function(z){return z};
var U=[],a=typeof Symbol!="undefined"&&Symbol.iterator&&c[Symbol.iterator];if(typeof a=="function"){c=a.call(c);for(var X=0;!(a=c.next()).done;)U.push(Q.call(f,a.value,X++))}else for(a=c.length,X=0;X<a;X++)U.push(Q.call(f,c[X],X));return U}});
VG("Object.entries",function(S){return S?S:function(c){var Q=[],f;for(f in c)m9(c,f)&&Q.push([f,c[f]]);return Q}});
VG("Number.isFinite",function(S){return S?S:function(c){return typeof c!=="number"?!1:!isNaN(c)&&c!==Infinity&&c!==-Infinity}});
VG("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
VG("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
VG("Number.isInteger",function(S){return S?S:function(c){return Number.isFinite(c)?c===Math.floor(c):!1}});
VG("Number.isSafeInteger",function(S){return S?S:function(c){return Number.isInteger(c)&&Math.abs(c)<=Number.MAX_SAFE_INTEGER}});
VG("String.prototype.endsWith",function(S){return S?S:function(c,Q){var f=cg(this,c,"endsWith");Q===void 0&&(Q=f.length);Q=Math.max(0,Math.min(Q|0,f.length));for(var U=c.length;U>0&&Q>0;)if(f[--Q]!=c[--U])return!1;return U<=0}});
var R4r=function(S,c){S instanceof String&&(S+="");var Q=0,f=!1,U={next:function(){if(!f&&Q<S.length){var a=Q++;return{value:c(a,S[a]),done:!1}}f=!0;return{done:!0,value:void 0}}};
U[Symbol.iterator]=function(){return U};
return U};
VG("Array.prototype.entries",function(S){return S?S:function(){return R4r(this,function(c,Q){return[c,Q]})}});
VG("Math.trunc",function(S){return S?S:function(c){c=Number(c);if(isNaN(c)||c===Infinity||c===-Infinity||c===0)return c;var Q=Math.floor(Math.abs(c));return c<0?-Q:Q}});
VG("Number.isNaN",function(S){return S?S:function(c){return typeof c==="number"&&isNaN(c)}});
VG("Array.prototype.keys",function(S){return S?S:function(){return R4r(this,function(c){return c})}});
VG("Array.prototype.values",function(S){return S?S:function(){return R4r(this,function(c,Q){return Q})}});
VG("Array.prototype.fill",function(S){return S?S:function(c,Q,f){var U=this.length||0;Q<0&&(Q=Math.max(0,U+Q));if(f==null||f>U)f=U;f=Number(f);f<0&&(f=Math.max(0,U+f));for(Q=Number(Q||0);Q<f;Q++)this[Q]=c;return this}});
var QQ=function(S){return S?S:Array.prototype.fill};
VG("Int8Array.prototype.fill",QQ);VG("Uint8Array.prototype.fill",QQ);VG("Uint8ClampedArray.prototype.fill",QQ);VG("Int16Array.prototype.fill",QQ);VG("Uint16Array.prototype.fill",QQ);VG("Int32Array.prototype.fill",QQ);VG("Uint32Array.prototype.fill",QQ);VG("Float32Array.prototype.fill",QQ);VG("Float64Array.prototype.fill",QQ);
VG("Object.fromEntries",function(S){return S?S:function(c){var Q={};if(!(Symbol.iterator in c))throw new TypeError("r`"+c);c=c[Symbol.iterator].call(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;if(Object(f)!==f)throw new TypeError("s");Q[f[0]]=f[1]}return Q}});
VG("String.prototype.replaceAll",function(S){return S?S:function(c,Q){if(c instanceof RegExp&&!c.global)throw new TypeError("t");return c instanceof RegExp?this.replace(c,Q):this.replace(new RegExp(String(c).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),Q)}});
VG("Object.getOwnPropertySymbols",function(S){return S?S:function(){return[]}});
VG("String.prototype.repeat",function(S){return S?S:function(c){var Q=cg(this,null,"repeat");if(c<0||c>1342177279)throw new RangeError("u");c|=0;for(var f="";c;)if(c&1&&(f+=Q),c>>>=1)Q+=Q;return f}});
VG("Array.prototype.findIndex",function(S){return S?S:function(c,Q){return VQc(this,c,Q).i}});
VG("Array.prototype.flatMap",function(S){return S?S:function(c,Q){var f=[];Array.prototype.forEach.call(this,function(U,a){U=c.call(Q,U,a,this);Array.isArray(U)?f.push.apply(f,U):f.push(U)});
return f}});
VG("String.prototype.codePointAt",function(S){return S?S:function(c){var Q=cg(this,null,"codePointAt"),f=Q.length;c=Number(c)||0;if(c>=0&&c<f){c|=0;var U=Q.charCodeAt(c);if(U<55296||U>56319||c+1===f)return U;c=Q.charCodeAt(c+1);return c<56320||c>57343?U:(U-55296)*1024+c+9216}}});
VG("String.fromCodePoint",function(S){return S?S:function(c){for(var Q="",f=0;f<arguments.length;f++){var U=Number(arguments[f]);if(U<0||U>1114111||U!==Math.floor(U))throw new RangeError("v`"+U);U<=65535?Q+=String.fromCharCode(U):(U-=65536,Q+=String.fromCharCode(U>>>10&1023|55296),Q+=String.fromCharCode(U&1023|56320))}return Q}});
VG("String.prototype.padStart",function(S){return S?S:function(c,Q){var f=cg(this,null,"padStart");c-=f.length;Q=Q!==void 0?String(Q):" ";return(c>0&&Q?Q.repeat(Math.ceil(c/Q.length)).substring(0,c):"")+f}});
VG("Promise.prototype.finally",function(S){return S?S:function(c){return this.then(function(Q){return Promise.resolve(c()).then(function(){return Q})},function(Q){return Promise.resolve(c()).then(function(){throw Q;
})})}});
VG("Math.imul",function(S){return S?S:function(c,Q){c=Number(c);Q=Number(Q);var f=c&65535,U=Q&65535;return f*U+((c>>>16&65535)*U+f*(Q>>>16&65535)<<16>>>0)|0}});
VG("Object.hasOwn",function(S){return S?S:function(c,Q){return Object.prototype.hasOwnProperty.call(c,Q)}});
VG("Math.sign",function(S){return S?S:function(c){c=Number(c);return c===0||isNaN(c)?c:c>0?1:-1}});
VG("Array.prototype.flat",function(S){return S?S:function(c){c=c===void 0?1:c;var Q=[];Array.prototype.forEach.call(this,function(f){Array.isArray(f)&&c>0?(f=Array.prototype.flat.call(f,c-1),Q.push.apply(Q,f)):Q.push(f)});
return Q}});
VG("String.raw",function(S){return S?S:function(c,Q){if(c==null)throw new TypeError("w");for(var f=c.raw,U=f.length,a="",X=0;X<U;++X)a+=f[X],X+1<U&&X+1<arguments.length&&(a+=String(arguments[X+1]));return a}});
VG("Reflect.ownKeys",function(S){return S?S:function(c){var Q=[],f=Object.getOwnPropertyNames(c);c=Object.getOwnPropertySymbols(c);for(var U=0;U<f.length;U++)(f[U].substring(0,14)=="jscomp_symbol_"?c:Q).push(f[U]);return Q.concat(c)}});
VG("Object.getOwnPropertyDescriptors",function(S){return S?S:function(c){for(var Q={},f=Reflect.ownKeys(c),U=0;U<f.length;U++)Q[f[U]]=Object.getOwnPropertyDescriptor(c,f[U]);return Q}});
VG("WeakSet",function(S){if(function(){if(!S||!Object.seal)return!1;try{var Q=Object.seal({}),f=Object.seal({}),U=new S([Q]);if(!U.has(Q)||U.has(f))return!1;U.delete(Q);U.add(f);return!U.has(Q)&&U.has(f)}catch(a){return!1}}())return S;
var c=function(Q){this.JSC$6825_map_=new WeakMap;if(Q){Q=_.A(Q);for(var f;!(f=Q.next()).done;)this.add(f.value)}};
c.prototype.add=function(Q){this.JSC$6825_map_.set(Q,!0);return this};
c.prototype.has=function(Q){return this.JSC$6825_map_.has(Q)};
c.prototype.delete=function(Q){return this.JSC$6825_map_.delete(Q)};
return c});
VG("Promise.allSettled",function(S){function c(f){return{status:"fulfilled",value:f}}
function Q(f){return{status:"rejected",reason:f}}
return S?S:function(f){var U=this;f=Array.from(f,function(a){return U.resolve(a).then(c,Q)});
return U.all(f)}});
VG("Number.parseInt",function(S){return S||parseInt});
_._DumpException=window._DumpException||function(S){throw S;};
window._DumpException=_._DumpException;var yuZ,fW,UY,JP,oez,mCr,SNM,cIY,P8,Qdp;yuZ=yuZ||{};_.QY=this||self;_.m5=function(S,c,Q){S=S.split(".");Q=Q||_.QY;for(var f;S.length&&(f=S.shift());)S.length||c===void 0?Q[f]&&Q[f]!==Object.prototype[f]?Q=Q[f]:Q=Q[f]={}:Q[f]=c};
fW=function(S){var c=_.rC("WIZ_global_data.oxN3nb");S=c&&c[S];return S!=null?S:!1};
UY=_.QY._F_toggles_default_kevlar_base||[];JP=function(){};
JP.get=function(){return null};
_.rC=function(S,c){S=S.split(".");c=c||_.QY;for(var Q=0;Q<S.length;Q++)if(c=c[S[Q]],c==null)return null;return c};
_.ar=function(S){S.instance_=void 0;S.getInstance=function(){return S.instance_?S.instance_:S.instance_=new S}};
_.nT=function(S){var c=typeof S;return c!="object"?c:S?Array.isArray(S)?"array":c:"null"};
_.yY=function(S){var c=_.nT(S);return c=="array"||c=="object"&&typeof S.length=="number"};
_.c_=function(S){var c=typeof S;return c=="object"&&S!=null||c=="function"};
_.Qd=function(S){return Object.prototype.hasOwnProperty.call(S,oez)&&S[oez]||(S[oez]=++mCr)};
oez="closure_uid_"+(Math.random()*1E9>>>0);mCr=0;SNM=function(S,c,Q){return S.call.apply(S.bind,arguments)};
cIY=function(S,c,Q){if(!S)throw Error();if(arguments.length>2){var f=Array.prototype.slice.call(arguments,2);return function(){var U=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(U,f);return S.apply(c,U)}}return function(){return S.apply(c,arguments)}};
_.H1=function(S,c,Q){_.H1=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?SNM:cIY;return _.H1.apply(null,arguments)};
_.u2=function(S,c){var Q=Array.prototype.slice.call(arguments,1);return function(){var f=Q.slice();f.push.apply(f,arguments);return S.apply(this,f)}};
_.AP=function(){return Date.now()};
P8=function(S){return S};
_.Xa=function(S,c){function Q(){}
Q.prototype=c.prototype;S.superClass_=c.prototype;S.prototype=new Q;S.prototype.constructor=S;S.base=function(f,U,a){for(var X=Array(arguments.length-2),z=2;z<arguments.length;z++)X[z-2]=arguments[z];return c.prototype[U].apply(f,X)}};
Qdp=function(S){return S};var ftc,UlH;_.d=function(S,c,Q,f){var U=arguments.length,a=U<3?c:f===null?f=Object.getOwnPropertyDescriptor(c,Q):f,X;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")a=Reflect.decorate(S,c,Q,f);else for(var z=S.length-1;z>=0;z--)if(X=S[z])a=(U<3?X(a):U>3?X(c,Q,a):X(c,Q))||a;U>3&&a&&Object.defineProperty(c,Q,a)};
_.P=function(S,c){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(S,c)};
ftc=function(S,c){if(c!==null&&c!==void 0){if(typeof c!=="object"&&typeof c!=="function")throw new TypeError("x");if(Q===void 0){if(!Symbol.dispose)throw new TypeError("z");var Q=c[Symbol.dispose]}if(typeof Q!=="function")throw new TypeError("A");S.stack.push({value:c,dispose:Q,async:!1})}return c};
UlH=function(S){function c(a){S.error=S.hasError?new SuppressedError(a,S.error,"An error was suppressed during disposal."):a;S.hasError=!0}
function Q(){for(;f=S.stack.pop();)try{if(!f.async&&U===1)return U=0,S.stack.push(f),Promise.resolve().then(Q);if(f.dispose){var a=f.dispose.call(f.value);if(f.async)return U|=2,Promise.resolve(a).then(Q,function(X){c(X);return Q()})}else U|=1}catch(X){c(X)}if(U===1)return S.hasError?Promise.reject(S.error):Promise.resolve();
if(S.hasError)throw S.error;}
var f,U=0;Q()};_.Xa(_.Sx,Error);_.Sx.prototype.name="CustomError";var JIz;var atz=void 0,AIR,XQM=typeof TextDecoder!=="undefined",fZz,QHo=typeof String.prototype.isWellFormed==="function",cZp=typeof TextEncoder!=="undefined";var O_p;_.lG=function(S){for(var c=[],Q=0,f=0;f<S.length;f++){var U=S.charCodeAt(f);U<128?c[Q++]=U:(U<2048?c[Q++]=U>>6|192:((U&64512)==55296&&f+1<S.length&&(S.charCodeAt(f+1)&64512)==56320?(U=65536+((U&1023)<<10)+(S.charCodeAt(++f)&1023),c[Q++]=U>>18|240,c[Q++]=U>>12&63|128):c[Q++]=U>>12|224,c[Q++]=U>>6&63|128),c[Q++]=U&63|128)}return c};
O_p=function(S){for(var c=[],Q=0,f=0;Q<S.length;){var U=S[Q++];if(U<128)c[f++]=String.fromCharCode(U);else if(U>191&&U<224){var a=S[Q++];c[f++]=String.fromCharCode((U&31)<<6|a&63)}else if(U>239&&U<365){a=S[Q++];var X=S[Q++],z=S[Q++];U=((U&7)<<18|(a&63)<<12|(X&63)<<6|z&63)-65536;c[f++]=String.fromCharCode(55296+(U>>10));c[f++]=String.fromCharCode(56320+(U&1023))}else a=S[Q++],X=S[Q++],c[f++]=String.fromCharCode((U&15)<<12|(a&63)<<6|X&63)}return c.join("")};var Fo=String.prototype.trim?function(S){return S.trim()}:function(S){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(S)[1]},z9o=/&/g,xlR=/</g,Fbz=/>/g,ByZ=/"/g,Itr=/'/g,nET=/\x00/g,b_H=/[\x00&<>"']/;var OY=!!(UY[0]>>14&1),NyZ=!!(UY[0]>>15&1),KbT=!!(UY[0]&8),$lY=!!(UY[0]&2),uIo=!!(UY[0]&4),jdM=!!(UY[0]&16);var Kz=OY?NyZ:fW(610401301),ltz=OY?KbT:fW(772657768),YNc=OY?$lY:fW(513659523),CtY=OY?uIo:fW(568333945),boo=OY?jdM:fW(1331761403);var $Y,H_x=_.QY.navigator;$Y=H_x?H_x.userAgentData||null:null;var tB;_.kY=function(S,c){return Array.prototype.indexOf.call(S,c,void 0)};
_.PY=function(S,c,Q){Array.prototype.forEach.call(S,c,Q)};
_.z1=function(S,c,Q){return Array.prototype.filter.call(S,c,Q)};
_.D0=function(S,c,Q){return Array.prototype.map.call(S,c,Q)};
tB=function(S,c,Q){return Array.prototype.some.call(S,c,Q)};
_.mcp=function(S,c,Q){return Array.prototype.every.call(S,c,Q)};var xH=function(S){xH[" "](S);return S};
xH[" "]=function(){};
var Tc=function(S,c){try{return xH(S[c]),!0}catch(Q){}return!1},$RZ=function(S,c,Q,f){f=f?f(c):c;
return Object.prototype.hasOwnProperty.call(S,f)?S[f]:S[f]=Q(c)};var Dlx,yS,pQY,h9Y,TyT,wQp,cmz,sdZ,M_T,i_z,VkT,GnT,WbR,rIZ,dlc,vEo;_.kQT=function(){return _.QY.navigator||null};
Dlx=DZ();_.Fa=aZM();yS=YY("Edge");pQY=yS||_.Fa;_.Bg=YY("Gecko")&&!(_.xY(_.bM(),"WebKit")&&!YY("Edge"))&&!(YY("Trident")||YY("MSIE"))&&!YY("Edge");_.Ir=_.xY(_.bM(),"WebKit")&&!YY("Edge");h9Y=_.Ir&&YY("Mobile");_.qNc=_.IZz();TyT=_.nYH();wQp=(Mr()?$Y.platform==="Linux":YY("Linux"))||_.bzz();cmz=_.Fpo();sdZ=Bpz();M_T=YY("iPad");i_z=YY("iPod");_.Z_H=_.iM();VkT=_.xY(_.bM(),"KaiOS");GnT=function(){var S=_.QY.document;return S?S.documentMode:void 0};
a:{var gET="",e9z=function(){var S=_.bM();if(_.Bg)return/rv:([^\);]+)(\)|;)/.exec(S);if(yS)return/Edge\/([\d\.]+)/.exec(S);if(_.Fa)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(S);if(_.Ir)return/WebKit\/(\S+)/.exec(S);if(Dlx)return/(?:Version)[ \/]?(\S+)/.exec(S)}();
e9z&&(gET=e9z?e9z[1]:"");if(_.Fa){var knp=GnT();if(knp!=null&&knp>parseFloat(gET)){WbR=String(knp);break a}}WbR=gET}rIZ=WbR;dlc={};_.nW=function(S){return $RZ(dlc,S,function(){return _.nz(rIZ,S)>=0})};
if(_.QY.document&&_.Fa){var Ptp=GnT();vEo=Ptp?Ptp:parseInt(rIZ,10)||void 0}else vEo=void 0;_.LbT=vEo;var lqz,YMM,EEc;_.bR=pz();lqz=Bpz()||YY("iPod");YMM=YY("iPad");EEc=_.XcR();_.NJ=_.Tz();_.GD=_.sT()&&!_.iM();var t_o,KW,EDY,Qtz,R9z,V_Y;t_o={};KW=null;EDY=_.Bg||_.Ir||typeof _.QY.btoa=="function";_.mV=function(S,c){c===void 0&&(c=0);V_Y();c=t_o[c];for(var Q=Array(Math.floor(S.length/3)),f=c[64]||"",U=0,a=0;U<S.length-2;U+=3){var X=S[U],z=S[U+1],x=S[U+2],I=c[X>>2];X=c[(X&3)<<4|z>>4];z=c[(z&15)<<2|x>>6];x=c[x&63];Q[a++]=I+X+z+x}I=0;x=f;switch(S.length-U){case 2:I=S[U+1],x=c[(I&15)<<2]||f;case 1:S=S[U],Q[a]=c[S>>2]+c[(S&3)<<4|I>>4]+x+f}return Q.join("")};
Qtz=function(S){var c="";R9z(S,function(Q){c+=String.fromCharCode(Q)});
return c};
_.xpT=function(S){var c=[];R9z(S,function(Q){c.push(Q)});
return c};
_.Od=function(S){var c=S.length,Q=c*3/4;Q%3?Q=Math.floor(Q):_.zz("=.",S[c-1])&&(Q=_.zz("=.",S[c-2])?Q-2:Q-1);var f=new Uint8Array(Q),U=0;R9z(S,function(a){f[U++]=a});
return U!==Q?f.subarray(0,U):f};
R9z=function(S,c){function Q(x){for(;f<S.length;){var I=S.charAt(f++),n=KW[I];if(n!=null)return n;if(!_.Xo(I))throw Error("E`"+I);}return x}
V_Y();for(var f=0;;){var U=Q(-1),a=Q(0),X=Q(64),z=Q(64);if(z===64&&U===-1)break;c(U<<2|a>>4);X!=64&&(c(a<<4&240|X>>2),z!=64&&c(X<<6&192|z))}};
V_Y=function(){if(!KW){KW={};for(var S="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),c=["+/=","+/","-_=","-_.","-_"],Q=0;Q<5;Q++){var f=S.concat(c[Q].split(""));t_o[Q]=f;for(var U=0;U<f.length;U++){var a=f[U];KW[a]===void 0&&(KW[a]=U)}}}};var Zzr=typeof Uint8Array!=="undefined",Drc=!_.Fa&&typeof btoa==="function",pcp=/[-_.]/g,CMM={"-":"+",_:"/",".":"="},iu={};var MH,oEZ;MH=function(S,c){if(c!==iu)throw Error("G");this.JSC$6856_value_=S;if(S!=null&&S.length===0)throw Error("F");};
_.ZT=function(){return yIp||(yIp=new MH(null,iu))};
oEZ=function(S){return new Uint8Array(wU(S)||0)};
MH.prototype.isEmpty=function(){return this.JSC$6856_value_==null};
MH.prototype.sizeBytes=function(){var S=wU(this);return S?S.length:0};
var wU=function(S){if(iu!==iu)throw Error("G");var c=S.JSC$6856_value_;c=c==null||Zzr&&c!=null&&c instanceof Uint8Array?c:typeof c==="string"?hRY(c):null;return c==null?c:S.JSC$6856_value_=c},yIp;var Tpz=void 0;var jz=typeof Symbol==="function"&&typeof Symbol()==="symbol",mlr=NH("jas",void 0,!0),d1=NH(void 0,"0di"),DR=NH(void 0,"1oa"),EZ=NH(void 0,Symbol()),TdY=NH(void 0,"0ub"),spx=NH(void 0,"0ubs"),ZTx=NH(void 0,"0ubsb"),ElZ=NH(void 0,"0actk"),k0=NH("m_m","messagePrototypeMarker",!0),kJr=NH(void 0,"vps"),p_p=NH();var sHo,wcH,Kh,SfY;sHo={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};wcH=Object.defineProperties;_.lu=jz?mlr:"internalArrayState";SfY=[];H_(SfY,7);Kh=Object.freeze(SfY);var r1={},TJ={},cix=function(S,c,Q){this.iterable=S;this.mapper=c;this.thisArg=Q};
cix.prototype.next=function(){var S=this.iterable.next();S.done||(S.value=this.mapper.call(this.thisArg,S.value));return S};
cix.prototype[Symbol.iterator]=function(){return this};
var Q$Y=Object.freeze({}),gd={};_.f_M=dd(function(S){return S!==null&&S!==void 0});var kzZ=dd(function(S){return typeof S==="number"}),eRc=dd(function(S){return typeof S==="string"}),rZo=dd(function(S){return typeof S==="boolean"}),UvY=dd(function(S){return S!=null&&typeof S==="object"&&typeof S.then==="function"}),Vdz=dd(function(S){return typeof S==="function"}),Jt=dd(function(S){return!!S&&(typeof S==="object"||typeof S==="function")});var P_=typeof _.QY.BigInt==="function"&&typeof _.QY.BigInt(0)==="bigint";var ZB=dd(function(S){return P_?S>=Jic&&S<=a_Y:S[0]==="-"?drR(S,Aip):drR(S,XNZ)}),Aip=Number.MIN_SAFE_INTEGER.toString(),Jic=P_?BigInt(Number.MIN_SAFE_INTEGER):void 0,XNZ=Number.MAX_SAFE_INTEGER.toString(),a_Y=P_?BigInt(Number.MAX_SAFE_INTEGER):void 0;var OVM=typeof Uint8Array.prototype.slice==="function",Vd=0,Rp=0,tj;var qG,sZ,bE,MG,RRp;qG=typeof BigInt==="function"?BigInt.asIntN:void 0;_.iE=typeof BigInt==="function"?BigInt.asUintN:void 0;sZ=Number.isSafeInteger;bE=Number.isFinite;MG=Math.trunc;RRp=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var r$M={};var HiT={},ziH=function(){try{var S=function(){return i7H(Map,[],this.constructor)};
_.C(S,Map);xH(new S);return!1}catch(c){return!0}}(),$H=function(){this.JSC$6876_map_=new Map};
_.J=$H.prototype;_.J.get=function(S){return this.JSC$6876_map_.get(S)};
_.J.set=function(S,c){this.JSC$6876_map_.set(S,c);this.size=this.JSC$6876_map_.size;return this};
_.J.delete=function(S){S=this.JSC$6876_map_.delete(S);this.size=this.JSC$6876_map_.size;return S};
_.J.clear=function(){this.JSC$6876_map_.clear();this.size=this.JSC$6876_map_.size};
_.J.has=function(S){return this.JSC$6876_map_.has(S)};
_.J.entries=function(){return this.JSC$6876_map_.entries()};
_.J.keys=function(){return this.JSC$6876_map_.keys()};
_.J.values=function(){return this.JSC$6876_map_.values()};
_.J.forEach=function(S,c){return this.JSC$6876_map_.forEach(S,c)};
$H.prototype[Symbol.iterator]=function(){return this.entries()};
var Sl=function(){if(ziH)return Object.setPrototypeOf($H.prototype,Map.prototype),Object.defineProperties($H.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),$H;var S=function(){return i7H(Map,[],this.constructor)};
_.C(S,Map);return S}(),v8=function(S,c,Q,f){Q=Q===void 0?uho:Q;
f=f===void 0?uho:f;var U=Sl.call(this)||this;U.arrayState=S[_.lu]|0;U.valueCtor=c;U.keyToApi=Q;U.valueToApi=U.valueCtor?lTY:f;for(var a=0;a<S.length;a++){var X=S[a],z=Q(X[0],!1,!0),x=X[1];c?x===void 0&&(x=null):x=f(X[1],!1,!0,void 0,void 0,U.arrayState);Sl.prototype.set.call(U,z,x)}return U};
_.C(v8,Sl);var xvx=function(S){if(S.arrayState&2)throw Error("K");};
_.J=v8.prototype;_.J.clear=function(){xvx(this);Sl.prototype.clear.call(this)};
_.J.delete=function(S){xvx(this);return Sl.prototype.delete.call(this,this.keyToApi(S,!0,!1))};
_.J.entries=function(){if(this.valueCtor){var S=Sl.prototype.keys.call(this);S=new cix(S,YdT,this)}else S=Sl.prototype.entries.call(this);return S};
_.J.values=function(){if(this.valueCtor){var S=Sl.prototype.keys.call(this);S=new cix(S,v8.prototype.get,this)}else S=Sl.prototype.values.call(this);return S};
_.J.forEach=function(S,c){this.valueCtor?Sl.prototype.forEach.call(this,function(Q,f,U){S.call(c,U.get(f),f,U)}):Sl.prototype.forEach.call(this,S,c)};
_.J.set=function(S,c){xvx(this);S=this.keyToApi(S,!0,!1);return S==null?this:c==null?(Sl.prototype.delete.call(this,S),this):Sl.prototype.set.call(this,S,this.valueToApi(c,!0,!0,this.valueCtor,!1,this.arrayState))};
_.J.has=function(S){return Sl.prototype.has.call(this,this.keyToApi(S,!1,!1))};
_.J.get=function(S){S=this.keyToApi(S,!1,!1);var c=Sl.prototype.get.call(this,S);if(c!==void 0){var Q=this.valueCtor;return Q?(Q=this.valueToApi(c,!1,!0,Q,this.callToMutableOnAccess,this.arrayState),Q!==c&&Sl.prototype.set.call(this,S,Q),Q):c}};
v8.prototype[Symbol.iterator]=function(){return this.entries()};
v8.prototype.toJSON=void 0;var CuT;var ZiM=function(){},Vp=function(S,c){for(var Q in S)!isNaN(Q)&&c(S,+Q,S[Q])},GJr=function(S){var c=new ZiM;
Vp(S,function(Q,f,U){c[f]=ag(U)});
c.reviveUnknownFields=S.reviveUnknownFields;return c},hsT={reviveIntoImmutable:!0};var iiM;var dHY,vlp;var FRr,lY,b5,je,B0Y,pW,$L,I_T,nwp,wr,bVr,sY,Zx,G1;FRr=_.Li(0);_.uR={};_.jp=function(S,c,Q,f,U){c=lY(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c,Q,U);if(c!==null||f&&S.noLegacyNull!==TJ)return c};
lY=function(S,c,Q,f){if(c===-1)return null;var U=c+(Q?0:-1),a=S.length-1;if(!(a<1+(Q?0:-1))){if(U>=a){var X=S[a];if(X!=null&&typeof X==="object"&&X.constructor===Object){Q=X[c];var z=!0}else if(U===a)Q=X;else return}else Q=S[U];if(f&&Q!=null){f=f(Q);if(f==null)return f;if(!Object.is(f,Q))return z?X[c]=f:S[U]=f,f}return Q}};
_.AB=function(S,c,Q,f){IA(S);var U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;NV(U,U[_.lu]|0,c,Q,f);return S};
_.lR=function(S,c,Q){S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ph(S,S[_.lu]|0,c,Q)!==void 0};
_.YH=function(S,c,Q,f){var U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return ph(U,U[_.lu]|0,c,je(S,f,Q))!==void 0};
_.c1=function(S){return S===Q$Y?2:4};
_.CW=function(S,c){S=_.jp(S,c,void 0,void 0,SZT);return S==null?_.ZT():S};
b5=function(S,c,Q,f){IA(S);var U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=U[_.lu]|0;if(f==null){var X=Qgr(U);if(fBx(X,U,a,Q)===c)X.set(Q,0);else return S}else a=UGH(U,a,Q,c);NV(U,a,c,f);return S};
_.Hg=function(S,c,Q,f){var U=S[_.lu]|0,a=kl(U);U=UGH(S,U,Q,c,a);NV(S,U,c,f,a)};
je=function(S,c,Q){return _.Dx(S,c)===Q?Q:-1};
_.Dx=function(S,c){S=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return fBx(Qgr(S),S,void 0,c,void 0)};
B0Y=function(S,c,Q){var f=S[_.lu]|0,U=kl(f),a=lY(S,Q,U);if(a!=null&&a[k0]===r1){if(!wd(a))return za(a),a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var X=a.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(a)&&(X=a);if(X){var z=X[_.lu]|0;z&2&&(X=Jj(X,z))}X=UC(X,c,!0);X!==a&&NV(S,f,Q,X,U);return X};
_.JB=function(S,c,Q,f){var U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=U[_.lu]|0;c=ph(U,a,c,Q,f);if(c==null)return c;a=U[_.lu]|0;if(!wd(S,a)){var X=jpZ(c);X!==c&&(za(S)&&(U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,a=U[_.lu]|0),c=X,a=NV(U,a,Q,c,f),nh(U,a))}return c};
_.St=function(S,c,Q,f){var U=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return JUR(S,U,U[_.lu]|0,c,Q,f,!1,!0)};
_.Qx=function(S,c,Q,f){Q=aBp(Q);_.AB(S,c,Q,f);Q&&!wd(Q)&&nh(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return S};
_.fc=function(S,c,Q,f){f=aBp(f);b5(S,c,Q,f);f&&!wd(f)&&nh(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows);return S};
pW=function(S,c,Q){IA(S);var f=S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,U=f[_.lu]|0;if(Q==null)return NV(f,U,c),S;for(var a=Q===Kh?7:Q[_.lu]|0,X=a,z=jl(a),x=z||Object.isFrozen(Q),I=!0,n=!0,b=0;b<Q.length;b++){var N=Q[b];z||(N=wd(N),I&&(I=!N),n&&(n=N))}z||(a=I?13:5,a=n?a&-4097:a|4096);x&&a===X||(Q=ag(Q),X=0,a=$Z(a,U));a!==X&&H_(Q,a);U=NV(f,U,c,Q);2&a||!(4096&a||16&a)||nh(f,U);return S};
$L=function(S,c,Q,f){X8Y(S,c,Q,f);return S};
I_T=function(S,c,Q){X8Y(S,c,hP,void 0,Q,1,!0);return S};
_.qJ=function(S,c,Q){S=_.jp(S,c,void 0,Q);c=typeof S;S=S==null?S:c==="bigint"?_.Li((0,_.iE)(64,S)):_.KT(S)?c==="string"?_.xHR(S):_.OiM(S):void 0;return S};
_.T1=function(S,c){var Q=Q===void 0?!1:Q;var f;return(f=_.Vxz(_.jp(S,c)))!=null?f:Q};
_.Qa=function(S,c,Q){Q=Q===void 0?0:Q;var f;return(f=_.CT(_.jp(S,c)))!=null?f:Q};
nwp=function(S,c){var Q=Q===void 0?0:Q;S=_.H8(_.jp(S,c));return S!=null?S:Q};
wr=function(S,c,Q){Q=Q===void 0?FRr:Q;var f;return(f=_.ITz(_.jp(S,c)))!=null?f:Q};
bVr=function(S){var c=c===void 0?FRr:c;var Q;return(Q=_.qJ(S,23))!=null?Q:c};
sY=function(S,c){var Q=Q===void 0?0:Q;var f;return(f=_.jp(S,c,void 0,void 0,_.x0))!=null?f:Q};
_.MJ=function(S,c,Q,f){Q=Q===void 0?"":Q;var U;return(U=_.eN(_.jp(S,c,f)))!=null?U:Q};
_.iR=function(S,c){var Q=Q===void 0?0:Q;var f;return(f=_.lE(_.jp(S,c)))!=null?f:Q};
Zx=function(S,c){var Q=Q===void 0?"0":Q;S=Bdz(_.jp(S,c),!0);return S!=null?S:Q};
G1=function(S,c,Q){return _.MJ(S,je(S,Q,c))};
_.Wg=function(S,c,Q,f){return _.JB(S,c,je(S,f,Q),void 0)};
_.bG=function(S,c){return _.eN(_.jp(S,c,void 0,_.uR))};
_.aj=function(S,c,Q){return _.AB(S,c,txY(Q))};
_.pP=function(S,c,Q){return _.Ch(S,c,txY(Q),!1)};
_.gr=function(S,c,Q){return _.AB(S,c,_.Y0(Q))};
_.YL=function(S,c,Q){return _.AB(S,c,w1(Q))};
_.bN=function(S,c,Q){return _.AB(S,c,g1(Q))};
_.oC=function(S,c,Q,f){return _.Ch(S,c,g1(Q),"",f)};
_.aR=function(S,c,Q){return _.AB(S,c,Q==null?Q:_.jN(Q))};
_.ep=function(S,c,Q){return _.Ch(S,c,Q==null?Q:_.jN(Q),0)};var Ta=function(S,c,Q){this.buffer=S;if(Q&&!c)throw Error();this.JSC$6888_isImmutable=c};var N0p=function(S,c,Q,f){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6891_start_=0;this.init(S,c,Q,f)},kH,$vZ,u3M,l_c,p8T,KRH;
_.J=N0p.prototype;_.J.init=function(S,c,Q,f){var U=f===void 0?{}:f;f=U.aliasBytesFields===void 0?!1:U.aliasBytesFields;U=U.treatNewDataAsImmutable===void 0?!1:U.treatNewDataAsImmutable;this.aliasBytesFields=f;this.treatNewDataAsImmutable=U;S&&(S=OTz(S,this.treatNewDataAsImmutable),this.bytes_=S.buffer,this.bytesAreImmutable_=S.JSC$6888_isImmutable,this.JSC$6891_start_=c||0,this.end_=Q!==void 0?this.JSC$6891_start_+Q:this.bytes_.length,this.cursor_=this.JSC$6891_start_)};
_.J.free=function(){this.clear();KRH.length<100&&KRH.push(this)};
_.J.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6891_start_=0;this.aliasBytesFields=!1};
_.J.reset=function(){this.cursor_=this.JSC$6891_start_};
_.J.atEnd=function(){return this.cursor_==this.end_};
_.rr=function(S,c){var Q=0,f=0,U=0,a=S.bytes_,X=S.cursor_;do{var z=a[X++];Q|=(z&127)<<U;U+=7}while(U<32&&z&128);U>32&&(f|=(z&127)>>4);for(U=3;U<32&&z&128;U+=7)z=a[X++],f|=(z&127)<<U;kH(S,X);if(z<128)return c(Q>>>0,f>>>0);throw Error("X");};
kH=function(S,c){S.cursor_=c;if(c>S.end_)throw Error("Y`"+c+"`"+S.end_);};
_.dr=function(S){var c=S.bytes_,Q=S.cursor_,f=c[Q++],U=f&127;if(f&128&&(f=c[Q++],U|=(f&127)<<7,f&128&&(f=c[Q++],U|=(f&127)<<14,f&128&&(f=c[Q++],U|=(f&127)<<21,f&128&&(f=c[Q++],U|=f<<28,f&128&&c[Q++]&128&&c[Q++]&128&&c[Q++]&128&&c[Q++]&128&&c[Q++]&128)))))throw Error("X");kH(S,Q);return U};
_.vg=function(S){var c=S.bytes_,Q=S.cursor_,f=c[Q],U=c[Q+1],a=c[Q+2];c=c[Q+3];kH(S,S.cursor_+4);return(f<<0|U<<8|a<<16|c<<24)>>>0};
$vZ=function(S){var c=_.vg(S);S=_.vg(S);return LpY(c,S)};
u3M=function(S){var c=_.vg(S),Q=_.vg(S);S=(Q>>31)*2+1;var f=Q>>>20&2047;c=4294967296*(Q&1048575)+c;return f==2047?c?NaN:S*Infinity:f==0?S*4.9E-324*c:S*Math.pow(2,f-1075)*(c+4503599627370496)};
_.j$M=function(S){for(var c=0,Q=S.cursor_,f=Q+10,U=S.bytes_;Q<f;){var a=U[Q++];c|=a;if((a&128)===0)return kH(S,Q),!!(c&127)}throw Error("X");};
l_c=function(S,c){if(c<0)throw Error("Z`"+c);var Q=S.cursor_,f=Q+c;if(f>S.end_)throw Error("Y`"+(S.end_-Q)+"`"+c);S.cursor_=f;return Q};
p8T=function(S,c){if(c==0)return _.ZT();var Q=l_c(S,c);S.aliasBytesFields&&S.bytesAreImmutable_?Q=S.bytes_.subarray(Q,Q+c):(S=S.bytes_,c=Q+c,Q=Q===c?new Uint8Array(0):OVM?S.slice(Q,c):new Uint8Array(S.subarray(Q,c)));return Q.length==0?_.ZT():new MH(Q,iu)};
KRH=[];var Cyc=function(S,c,Q,f){if(KRH.length){var U=KRH.pop();U.init(S,c,Q,f);S=U}else S=new N0p(S,c,Q,f);this.decoder_=S;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;YfZ(this,f)},YfZ=function(S,c){c=c===void 0?{}:c;
S.discardUnknownFields=c.discardUnknownFields===void 0?!1:c.discardUnknownFields},T1c=function(S,c,Q,f){if(HVM.length){var U=HVM.pop();
YfZ(U,f);U.decoder_.init(S,c,Q,f);return U}return new Cyc(S,c,Q,f)},HTc,gU,DvZ,HVM;
Cyc.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;HVM.length<100&&HVM.push(this)};
Cyc.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
HTc=function(S){if(S.decoder_.atEnd())return!1;S.fieldCursor_=S.decoder_.cursor_;var c=_.dr(S.decoder_)>>>0,Q=c>>>3;c&=7;if(!(c>=0&&c<=5))throw Error("T`"+c+"`"+S.fieldCursor_);if(Q<1)throw Error("U`"+Q+"`"+S.fieldCursor_);S.nextField_=Q;S.nextWireType_=c;return!0};
gU=function(S){switch(S.nextWireType_){case 0:S.nextWireType_!=0?gU(S):_.j$M(S.decoder_);break;case 1:S=S.decoder_;kH(S,S.cursor_+8);break;case 2:if(S.nextWireType_!=2)gU(S);else{var c=_.dr(S.decoder_)>>>0;S=S.decoder_;kH(S,S.cursor_+c)}break;case 5:S=S.decoder_;kH(S,S.cursor_+4);break;case 3:c=S.nextField_;do{if(!HTc(S))throw Error("V");if(S.nextWireType_==4){if(S.nextField_!=c)throw Error("W");break}gU(S)}while(1);break;default:throw Error("T`"+S.nextWireType_+"`"+S.fieldCursor_);}};
DvZ=function(S,c,Q){var f=S.decoder_.end_,U=_.dr(S.decoder_)>>>0,a=S.decoder_.cursor_+U,X=a-f;X<=0&&(S.decoder_.end_=a,Q(c,S,void 0,void 0,void 0),X=a-S.decoder_.cursor_);if(X)throw Error("S`"+U+"`"+(U-X));S.decoder_.cursor_=a;S.decoder_.end_=f};
_.pNz=function(S){var c=_.dr(S.decoder_)>>>0;S=S.decoder_;var Q=l_c(S,c);S=S.bytes_;if(XQM){var f=S,U;(U=AIR)||(U=AIR=new TextDecoder("utf-8",{fatal:!0}));c=Q+c;f=Q===0&&c===f.length?f:f.subarray(Q,c);try{var a=U.decode(f)}catch(I){if(atz===void 0){try{U.decode(new Uint8Array([128]))}catch(n){}try{U.decode(new Uint8Array([97])),atz=!0}catch(n){atz=!1}}!atz&&(AIR=void 0);throw I;}}else{a=Q;c=a+c;Q=[];for(var X=null,z,x;a<c;)z=S[a++],z<128?Q.push(z):z<224?a>=c?cc():(x=S[a++],z<194||(x&192)!==128?(a--,
cc()):Q.push((z&31)<<6|x&63)):z<240?a>=c-1?cc():(x=S[a++],(x&192)!==128||z===224&&x<160||z===237&&x>=160||((U=S[a++])&192)!==128?(a--,cc()):Q.push((z&15)<<12|(x&63)<<6|U&63)):z<=244?a>=c-2?cc():(x=S[a++],(x&192)!==128||(z<<28)+(x-144)>>30!==0||((U=S[a++])&192)!==128||((f=S[a++])&192)!==128?(a--,cc()):(z=(z&7)<<18|(x&63)<<12|(U&63)<<6|f&63,z-=65536,Q.push((z>>10&1023)+55296,(z&1023)+56320))):cc(),Q.length>=8192&&(X=STp(X,Q),Q.length=0);a=STp(X,Q)}return a};
_.hip=function(S){var c=_.dr(S.decoder_)>>>0;return p8T(S.decoder_,c)};
_.qfp=function(S,c,Q){var f=_.dr(S.decoder_)>>>0;for(f=S.decoder_.cursor_+f;S.decoder_.cursor_<f;)Q.push(c(S.decoder_))};
HVM=[];var T0x=function(S,c){this.JSC$6898_lo=S>>>0;this.JSC$6898_hi=c>>>0},s$Y=function(S){if(!S)return wNY||(wNY=new T0x(0,0));
if(!/^\d+$/.test(S))return null;JU(S);return new T0x(Vd,Rp)},wNY,rUM=function(S,c){this.JSC$6900_lo=S>>>0;
this.JSC$6900_hi=c>>>0},e2M=function(S){if(!S)return M2p||(M2p=new rUM(0,0));
if(!/^-?\d+$/.test(S))return null;JU(S);return new rUM(Vd,Rp)},M2p;var iVY=function(){this.JSC$6902_buffer_=[]},kOr,ZVZ;
iVY.prototype.length=function(){return this.JSC$6902_buffer_.length};
iVY.prototype.end=function(){var S=this.JSC$6902_buffer_;this.JSC$6902_buffer_=[];return S};
kOr=function(S,c,Q){for(;Q>0||c>127;)S.JSC$6902_buffer_.push(c&127|128),c=(c>>>7|Q<<25)>>>0,Q>>>=7;S.JSC$6902_buffer_.push(c)};
ZVZ=function(S,c){for(;c>127;)S.JSC$6902_buffer_.push(c&127|128),c>>>=7;S.JSC$6902_buffer_.push(c)};
_.dGz=function(S,c){if(c>=0)ZVZ(S,c);else{for(var Q=0;Q<9;Q++)S.JSC$6902_buffer_.push(c&127|128),c>>=7;S.JSC$6902_buffer_.push(1)}};
_.Vf=function(S,c){S.JSC$6902_buffer_.push(c>>>0&255);S.JSC$6902_buffer_.push(c>>>8&255);S.JSC$6902_buffer_.push(c>>>16&255);S.JSC$6902_buffer_.push(c>>>24&255)};var GHz,dU,PEz,VNc;GHz=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new iVY};
dU=function(S,c){c.length!==0&&(S.blocks_.push(c),S.totalLength_+=c.length)};
_.B1Y=function(S,c){_.EC(S,c,2);c=S.encoder_.end();dU(S,c);c.push(S.totalLength_);return c};
_.IBr=function(S,c){var Q=c.pop();for(Q=S.totalLength_+S.encoder_.length()-Q;Q>127;)c.push(Q&127|128),Q>>>=7,S.totalLength_++;c.push(Q);S.totalLength_++};
_.EC=function(S,c,Q){ZVZ(S.encoder_,c*8+Q)};
PEz=function(S,c,Q){if(Q!=null){switch(typeof Q){case "string":s$Y(Q)}_.EC(S,c,1);switch(typeof Q){case "number":S=S.encoder_;vYY(Q);_.Vf(S,Vd);_.Vf(S,Rp);break;case "bigint":Q=BigInt.asUintN(64,Q);Q=new T0x(Number(Q&BigInt(4294967295)),Number(Q>>BigInt(32)));S=S.encoder_;c=Q.JSC$6898_hi;_.Vf(S,Q.JSC$6898_lo);_.Vf(S,c);break;default:Q=s$Y(Q),S=S.encoder_,c=Q.JSC$6898_hi,_.Vf(S,Q.JSC$6898_lo),_.Vf(S,c)}}};
VNc=function(S,c,Q){_.EC(S,c,2);ZVZ(S.encoder_,Q.length);dU(S,S.encoder_.end());dU(S,Q)};var z2R,eiz,kHp,vwR,PyH;z2R=sC();_.WRM=sC();_.gwx=sC();eiz=sC();kHp=sC();_.riz=sC();_.Pg=sC();_.dvr=sC();vwR=sC();PyH=sC();_.LRY=sC();_.Ewz=sC();_.Ga=function(S,c,Q){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S,c,Q)};
_.Ga.prototype.toJSON=function(){return ca(this)};
_.Ga.prototype.serialize=function(S){return JSON.stringify(ca(this,S))};
var QAx=function(S,c){if(c==null||c=="")return new S;c=JSON.parse(c);if(!Array.isArray(c))throw Error("$");return new S(izp(c))};
_.Ga.prototype.getExtension=function(S){w_R(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,S.fieldIndex);qdH(this,S.fieldIndex);return S.ctor?S.isRepeated?S.getExtensionFn(this,S.ctor,S.fieldIndex,_.c1(),S.JSC$6913_hasMessageId):S.getExtensionFn(this,S.ctor,S.fieldIndex,S.JSC$6913_hasMessageId):S.isRepeated?S.getExtensionFn(this,S.fieldIndex,_.c1(),S.JSC$6913_hasMessageId):S.getExtensionFn(this,S.fieldIndex,S.defaultValue,S.JSC$6913_hasMessageId)};
_.Ga.prototype.clone=function(){var S=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=S[_.lu]|0;return XA(this,S,c)?aA(this,S,!0):new this.constructor(Jj(S,c,!1))};
_.Ga.prototype[k0]=r1;_.Ga.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var MV=function(S,c,Q){this.$$binaryReaderFn=S;this.$$binaryWriterFn=c;S=P8(z2R);this.$$isMsg=!!S&&Q===S||!1},KVY=xGY(function(S,c,Q,f,U){if(S.nextWireType_!==2)return!1;
DvZ(S,B0Y(c,f,Q),U);return!0},n0M),$GZ=xGY(function(S,c,Q,f,U){if(S.nextWireType_!==2)return!1;
DvZ(S,B0Y(c,f,Q),U);return!0},n0M),kZ=Symbol(),Wa=Symbol(),CER=Symbol(),sgT=Symbol(),h2p=Symbol(),bTT,N1z;var SCx,t2o,V2M,Rix,yiz,owY,mvY,SAZ,cXH,QoR,fyx,JXp,ayc,Xoz,OGM;SCx=function(S,c){var Q=new GHz;MNr(S.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,Q,ZR(kZ,el,rU,c));dU(Q,Q.encoder_.end());S=new Uint8Array(Q.totalLength_);c=Q.blocks_;for(var f=c.length,U=0,a=0;a<f;a++){var X=c[a];S.set(X,U);U+=X.length}Q.blocks_=[S];return S};
t2o=_.va(function(S,c,Q){if(S.nextWireType_!==1)return!1;_.Pa(c,Q,u3M(S.decoder_));return!0},g0o,PyH);
V2M=_.va(function(S,c,Q,f){if(S.nextWireType_!==1)return!1;_.Hg(c,Q,f,u3M(S.decoder_));return!0},g0o,PyH);
Rix=_.va(function(S,c,Q,f){if(S.nextWireType_!==5)return!1;var U=_.vg(S.decoder_);S=(U>>31)*2+1;var a=U>>>23&255;U&=8388607;_.Hg(c,Q,f,a==255?U?NaN:S*Infinity:a==0?S*1.401298464324817E-45*U:S*Math.pow(2,a-150)*(U+8388608));return!0},function(S,c,Q){c=_.x0(c);
c!=null&&(_.EC(S,Q,5),S=S.encoder_,Q=tj||(tj=new DataView(new ArrayBuffer(8))),Q.setFloat32(0,+c,!0),Rp=0,Vd=Q.getUint32(0,!0),_.Vf(S,Vd))},vwR);
_.LW=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;_.Pa(c,Q,_.rr(S.decoder_,c8));return!0},_.RA,_.Pg);
yiz=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;S=_.rr(S.decoder_,c8);_.Pa(c,Q,S===0?void 0:S);return!0},_.RA,_.Pg);
owY=_.va(function(S,c,Q,f){if(S.nextWireType_!==0)return!1;_.Hg(c,Q,f,_.rr(S.decoder_,c8));return!0},_.RA,_.Pg);
_.EY=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;_.Pa(c,Q,_.dr(S.decoder_));return!0},v0Z,eiz);
mvY=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;S=_.dr(S.decoder_);_.Pa(c,Q,S===0?void 0:S);return!0},v0Z,eiz);
SAZ=_.va(function(S,c,Q,f){if(S.nextWireType_!==0)return!1;_.Hg(c,Q,f,_.dr(S.decoder_));return!0},v0Z,eiz);
cXH=_.va(function(S,c,Q){if(S.nextWireType_!==1)return!1;_.Pa(c,Q,$vZ(S.decoder_));return!0},_.LVo,_.dvr);
QoR=_.WVp(function(S,c,Q){if(S.nextWireType_!==1&&S.nextWireType_!==2)return!1;c=_.Ha(c,c[_.lu]|0,Q);S.nextWireType_==2?_.qfp(S,$vZ,c):c.push($vZ(S.decoder_));return!0},function(S,c,Q){c=_.GOz(bix,c,!1);
if(c!=null)for(var f=0;f<c.length;f++)PEz(S,Q,c[f])},_.dvr);
_.tP=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;_.Pa(c,Q,_.j$M(S.decoder_));return!0},_.tNY,_.WRM);
fyx=_.va(function(S,c,Q,f){if(S.nextWireType_!==0)return!1;_.Hg(c,Q,f,_.j$M(S.decoder_));return!0},_.tNY,_.WRM);
_.VQ=_.va(function(S,c,Q){if(S.nextWireType_!==2)return!1;_.Pa(c,Q,_.pNz(S));return!0},_.R2T,_.gwx);
_.Uwz=_.va(function(S,c,Q,f){if(S.nextWireType_!==2)return!1;_.Hg(c,Q,f,_.pNz(S));return!0},_.R2T,_.gwx);
JXp=_.WVp(function(S,c,Q){if(S.nextWireType_!==2)return!1;S=_.pNz(S);_.Ha(c,c[_.lu]|0,Q).push(S);return!0},function(S,c,Q){c=_.GOz(_.eN,c,!0);
if(c!=null)for(var f=0;f<c.length;f++){var U=S,a=Q,X=c[f];X!=null&&VNc(U,a,UrT(X))}},_.gwx);
ayc=void 0;ayc=ayc===void 0?z2R:ayc;_.Rr=new MV(function(S,c,Q,f,U){if(S.nextWireType_!==2)return!1;f=UC(void 0,f,!0);_.Ha(c,c[_.lu]|0,Q).push(f);DvZ(S,f,U);return!0},function(S,c,Q,f,U){if(Array.isArray(c))for(var a=0;a<c.length;a++)yUz(S,c[a],Q,f,U)},ayc);
_.yQ=xGY(function(S,c,Q,f,U,a){if(S.nextWireType_!==2)return!1;var X=c[_.lu]|0;UGH(c,X,a,Q,kl(X));c=B0Y(c,f,Q);DvZ(S,c,U);return!0},yUz);
_.AXM=_.va(function(S,c,Q){if(S.nextWireType_!==2)return!1;_.Pa(c,Q,_.hip(S));return!0},_.o0Z,_.LRY);
Xoz=_.va(function(S,c,Q,f){if(S.nextWireType_!==2)return!1;_.Hg(c,Q,f,_.hip(S));return!0},_.o0Z,_.LRY);
OGM=_.va(function(S,c,Q,f){if(S.nextWireType_!==0)return!1;_.Hg(c,Q,f,_.dr(S.decoder_)>>>0);return!0},function(S,c,Q){c=_.H8(c);
c!=null&&c!=null&&(_.EC(S,Q,0),ZVZ(S.encoder_,c))},kHp);
_.or=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;_.Pa(c,Q,_.dr(S.decoder_));return!0},_.mGc,_.Ewz);var FDz=function(){var S=zEz,c=xwY;this.fieldIndex=175237375;this.ctor=c;this.isRepeated=0;this.getExtensionFn=_.JB;this.defaultValue=void 0;this.JSC$6913_hasMessageId=S.messageId!=null?gd:void 0};
FDz.prototype.register=function(){xH(this)};var BZo=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(BZo,_.Ga);var IyT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(IyT,_.Ga);var JjY=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(JjY,_.Ga);var nGp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(nGp,_.Ga);var bGH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(bGH,_.Ga);var NZZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(NZZ,_.Ga);var KDZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(KDZ,_.Ga);KDZ.prototype.getData=function(){return _.CW(this,2)};var $wY=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C($wY,_.Ga);var u_z=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(u_z,_.Ga);u_z.prototype.getStyle=function(){return _.JB(this,BZo,1)};var c7=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(c7,_.Ga);c7.prototype.getPayloadCase=function(){return _.Dx(this,Uy)};
c7.prototype.getStyle=function(){return _.Wg(this,u_z,6,Uy)};
var joZ=function(){var S=new c7,c=new bGH;return _.fc(S,7,Uy,c)},lyY=function(){var S=new c7,c=new NZZ;
return _.fc(S,8,Uy,c)},Uy=[1,
2,3,4,5,6,7,8];var YAZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(YAZ,_.Ga);var CJZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(CJZ,_.Ga);var HGz=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(HGz,_.Ga);var Dwx=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Dwx,_.Ga);var por=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(por,_.Ga);var hEp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(hEp,_.Ga);var qAz=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(qAz,_.Ga);var TZY=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(TZY,_.Ga);TZY.prototype.getData=function(){return _.CW(this,2)};var wop=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(wop,_.Ga);var UVH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(UVH,_.Ga);UVH.prototype.getPayloadCase=function(){return _.Dx(this,mJ)};
var mJ=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var SW=function(S,c){S=Error.call(this,S);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.code=c===void 0?2:c};
_.C(SW,Error);var soz=Promise;var MHc=function(S){this.channelPromise=S};
MHc.prototype.send=function(S,c,Q){this.channelPromise.then(function(f){f.send(S,c,Q)})};var iGY=function(S,c){this.data=S;this.channel=c};
iGY.prototype.reply=function(S,c,Q){this.channel.send(S,c,Q)};var ZGc=function(S){this.JSC$6979_port_=S};
ZGc.prototype.send=function(S,c,Q){Q=Q===void 0?[]:Q;var f=new MessageChannel;G8o(f.port1,c);this.JSC$6979_port_.postMessage(S,[f.port2].concat(Q))};
var WDH=function(S,c){G8o(S,c);return new ZGc(S)},G8o=function(S,c){c&&(S.onmessage=function(Q){c(new iGY(Q.data,WDH(Q.ports[0])))})};var gGp=function(S){this.verifier_=S},eEr=function(S){var c=Object.create(null);
(typeof S==="string"?[S]:S).forEach(function(Q){if(Q==="null")throw Error("ba");c[Q]=!0});
return function(Q){return c[Q]===!0}};_.k8r=function(){if(!_.QY.addEventListener||!Object.defineProperty)return!1;var S=!1,c=Object.defineProperty({},"passive",{get:function(){S=!0}});
try{var Q=function(){};
_.QY.addEventListener("test",Q,c);_.QY.removeEventListener("test",Q,c)}catch(f){}return S}();var rXH;_.cl=function(S){var c=S.destination;var Q=S.iframe;var f=S.origin;var U=S.channelName===void 0?"ZNWN1d":S.channelName;var a=S.onMessage===void 0?void 0:S.onMessage;S=S.onEstablished===void 0?void 0:S.onEstablished;return rXH({destination:c,getSource:function(){return Q.contentWindow},
originVerifier:f instanceof gGp?f:typeof f==="function"?new gGp(f):new gGp(eEr(f)),channelName:U,onMessage:a,onEstablished:S})};
rXH=function(S){var c=S.destination;var Q=S.getSource;var f=S.originVerifier;var U=S.token===void 0?void 0:S.token;var a=S.channelName;var X=S.onMessage===void 0?void 0:S.onMessage;var z=S.onEstablished===void 0?void 0:S.onEstablished;return new MHc(new soz(function(x,I){var n=function(b){b.source&&b.source===Q()&&f.verifier_(b.origin)&&(b.data.n||b.data)===a&&(c.removeEventListener("message",n,!1),U&&b.data.t!==U?I(Error("ca`"+a+"`"+U+"`"+b.data.t)):(x(WDH(b.ports[0],X)),z&&z(b)))};
c.addEventListener("message",n,!1)}))};var dwz=function(S){try{S()}catch(c){fz(c)}};var PJR=function(S){var c=this;var Q=S.getMessageType;var f=S.onUnregisteredMessage===void 0?function(){}:S.onUnregisteredMessage;
var U=S.onBeforeRegisteredMessage===void 0?function(){}:S.onBeforeRegisteredMessage;
S=S.onAfterRegisteredMessage===void 0?function(){}:S.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=Q;this.onUnregisteredMessage_=f;this.onBeforeRegisteredMessage_=U;this.onAfterRegisteredMessage_=S;this.onMessage=function(a){return vGx(c,a)}};
PJR.prototype.register=function(S,c){this.registry_.set(S,c);return this};
var vGx=function(S,c){var Q=S.getMessageType_(c.data),f=S.registry_.get(Q);f?(dwz(function(){return S.onBeforeRegisteredMessage_(c,Q)}),dwz(function(){return f(c)}),dwz(function(){return S.onAfterRegisteredMessage_(c,Q)})):dwz(function(){return S.onUnregisteredMessage_(c,Q)})};var LDc=function(S){this.JSC$6996_channel_=S},tHo,VHM;
LDc.prototype.send=function(S,c,Q){this.JSC$6996_channel_.send(ca(S),c,Q)};
_.EGH=function(S,c){return function(Q){var f=new S(Q.data);return c(new iGY(f,Q.channel))}};
tHo=function(S){return function(c){return S(new iGY(c.data,new LDc(c.channel)))}};
VHM=function(S,c){return tHo(_.EGH(S,c))};var REZ=function(S,c,Q,f){this.registry=S;this.delegate=c;this.receiveMessageConstructor=Q;this.createInitMessage=f;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},fRY=function(S){var c=new PJR({getMessageType:S.getPayloadCase});
return new REZ(c,new LDc(_.cl({iframe:S.child,destination:window,origin:S.origin,channelName:S.channelName,onMessage:VHM(S.receiveMessageConstructor,c.onMessage)})),S.receiveMessageConstructor,S.createInitMessage)},yXR=function(S,c){S.createInitMessage=c};
REZ.prototype.send=function(S){if(!this.initialised)throw new SW("Attempted to send a message before initialisation.");this.delegate.send(S)};
var oGT=function(S,c){return _.O(function(Q){if(!S.initialised)throw new SW("Attempted to send a message before initialisation.");return Q.return(new Promise(function(f){S.delegate.send(c,VHM(S.receiveMessageConstructor,f))}))})};
REZ.prototype.init=function(){var S=this;return _.O(function(c){if(S.initialised)throw new SW("Attempted to initialise twice. The SDK can only be initialised once.");if(S.createInitMessage!==void 0){var Q=S.delegate,f=Q.send,U=S.createInitMessage;var a=new IyT;var X=[].concat(_.Hs(S.features));a=_.YZ(a,1,X,_.jN);f.call(Q,U.call(S,a))}S.initialised=!0;_.IN(c)})};
var QR=function(S,c){if(S.initialised)throw new SW('Attempted to set up API "'+c+'" after initialisation. All APIs must be set up before initialising the SDK.');S.features.add(c);return S.registry};
_.Rh.Object.defineProperties(REZ.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var mwp=function(S){this.channel=S;this.registered=!1};
mwp.prototype.update=function(S){if(this.channel.isInitialised){if(!this.registered)throw new SW("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var c=new c7;var Q=new nGp;Q=_.aj(Q,1,S);c=_.fc(c,2,Uy,Q);this.channel.send(c)}else this.register();this.JSC$7010_audioEnabled=S};
mwp.prototype.register=function(){QR(this.channel,1);this.registered=!0};
mwp.prototype.isAudioEnabled=function(){return this.JSC$7010_audioEnabled};var Sop=function(S){this.channel=S};
_.J=Sop.prototype;_.J.onFirstFrameReady=function(S){QR(this.channel,2).register(11,function(c){c=_.Wg(c.data,YAZ,11,mJ);if(!c)throw new SW("Unexpectedly nonexistent GameFirstFrameReadyEvent");S(_.MJ(c,1))})};
_.J.onReady=function(S){QR(this.channel,2).register(4,function(c){c=_.Wg(c.data,HGz,4,mJ);if(!c)throw new SW("Unexpectedly nonexistent GameReadyEvent");S(_.MJ(c,1))})};
_.J.onLevelComplete=function(S){QR(this.channel,2).register(5,function(c){c=_.Wg(c.data,Dwx,5,mJ);if(!c)throw new SW("Unexpectedly nonexistent LevelCompleteEvent");S(_.MJ(c,1),_.Qa(c,2))})};
_.J.onGameOver=function(S){QR(this.channel,2).register(6,function(c){c=_.Wg(c.data,CJZ,6,mJ);if(!c)throw new SW("Unexpectedly nonexistent GameOverEvent");S(_.MJ(c,1))})};
_.J.pause=function(){var S=this;if(!this.channel.isInitialised)return QR(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new SW("Using unregistered Game Feature: pause.");var c=joZ();return new Promise(function(Q){return _.O(function(f){if(f.nextAddress==1)return _.F(f,oGT(S.channel,c),2);Q();_.IN(f)})})};
_.J.resume=function(){var S=this;if(!this.channel.isInitialised)return QR(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new SW("Using unregistered Game Feature: resume.");var c=lyY();return new Promise(function(Q){return _.O(function(f){if(f.nextAddress==1)return _.F(f,oGT(S.channel,c),2);Q();_.IN(f)})})};var cCp=function(S){this.channel=S};
cCp.prototype.onReady=function(S){QR(this.channel,5).register(8,function(c){if(!_.Wg(c.data,por,8,mJ))throw new SW("Unexpectedly nonexistent PageReadyEvent");S()})};var Qwr=function(S){this.channel=S};
Qwr.prototype.onChange=function(S){QR(this.channel,3).register(7,function(c){c=_.Wg(c.data,hEp,7,mJ);if(!c)throw new SW("Unexpectedly nonexistent ScoreEvent");S(_.MJ(c,1),_.Qa(c,2))})};var f1p={load:function(){throw new SW("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new SW("Storage used, but storage.onSave() listener not set!");}},UTT=function(S){this.channel=S;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},JCo=function(S){QR(S.channel,4).register(2,f1p.load).register(3,f1p.save);
S.initialSetupDone=!0};
UTT.prototype.onLoad=function(S){this.initialSetupDone||JCo(this);this.loadRegistered||(this.loadRegistered=!0,QR(this.channel,4).register(2,function(c){var Q,f,U;return _.O(function(a){if(a.nextAddress==1){Q=_.Wg(c.data,qAz,2,mJ);if(!Q)throw new SW("Unexpectedly nonexistent StorageLoad");f=_.MJ(Q,1);return _.F(a,S(f),2)}U=a.yieldResult;var X=c.reply,z=new c7;var x=new KDZ;x=_.bN(x,1,f);x=_.AB(x,2,_.GJ(U,!1));z=_.fc(z,3,Uy,x);X.call(c,z);_.IN(a)})}))};
UTT.prototype.onSave=function(S){this.initialSetupDone||JCo(this);this.saveRegistered||(this.saveRegistered=!0,QR(this.channel,4).register(3,function(c){var Q,f,U;return _.O(function(a){if(a.nextAddress==1){Q=_.Wg(c.data,TZY,3,mJ);if(!Q)throw new SW("Unexpectedly nonexistent StorageSave");f=_.MJ(Q,1);U=oEZ(Q.getData());return _.F(a,S(f,U),2)}var X=c.reply,z=new c7;var x=new $wY;x=_.bN(x,1,f);z=_.fc(z,4,Uy,x);X.call(c,z);_.IN(a)})}))};var a1x=function(S){this.channel=S};
a1x.prototype.update=function(S){if(!this.channel.features.has(6))throw new SW("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var c=new c7,Q=new u_z;S=_.Qx(Q,1,S);c=_.fc(c,6,Uy,S);this.channel.send(c)};
a1x.prototype.register=function(){QR(this.channel,6)};var ACx=function(S){this.channel=S;this.userActivityLoggingIntervalMs=0};
ACx.prototype.onUserActivity=function(S,c){this.userActivityLoggingIntervalMs=c;QR(this.channel,7).register(9,function(Q){if(!_.Wg(Q.data,wop,9,mJ))throw new SW("Unexpectedly nonexistent ClickEvent");S()})};var XPZ=function(S){var c=this;this.channel=S;this.init=this.channel.init.bind(this.channel);this.page=new cCp(this.channel);this.game=new Sop(this.channel);this.audio=new mwp(this.channel);this.score=new Qwr(this.channel);this.storage=new UTT(this.channel);this.style=new a1x(this.channel);this.userActivity=new ACx(this.channel);yXR(this.channel,function(Q){var f=new JjY;Q=_.Qx(f,1,Q);Q=_.gr(Q,3,c.userActivity.userActivityLoggingIntervalMs);f=c.audio.isAudioEnabled();f!==void 0&&_.aj(Q,2,f);f=new c7;
return _.fc(f,5,Uy,Q)})};var OrM=function(){this.timedFunctionContext=0};
OrM.prototype.timeExecution=function(S,c){var Q=this;return function(){var f=_.YD.apply(0,arguments);Q.timedFunctionContext=S;return c.apply(null,_.Hs(f))}};var zvY=function(){var S={};this.priorityTasks=(S[3]=[],S[2]=[],S[1]=[],S);this.isFlushing=!1},X4=function(S,c,Q){var f=xTp(S,Q);
S.priorityTasks[Q].push(c);f&&S.priorityTasks[Q].length===1&&S.flush()},xTp=function(S,c){return Object.keys(S.priorityTasks).map(function(Q){return Number(Q)}).filter(function(Q){return!isNaN(Q)&&Q>c}).every(function(Q){return S.priorityTasks[Q].length===0})};
zvY.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(S){return S.length>0});)F0R(this,3),F0R(this,2),F0R(this,1)}catch(S){throw Object.values(this.priorityTasks).forEach(function(c){return void c.splice(0,c.length)}),S;
}finally{this.isFlushing=!1}}};
var F0R=function(S,c){for(;xTp(S,c)&&S.priorityTasks[c].length>0;)S.priorityTasks[c][0](),S.priorityTasks[c].shift()};
_.Rh.Object.defineProperties(zvY.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(S){return S.length>0})}}});var xVZ={};var Bsz=globalThis.trustedTypes,AjR=Bsz,Ohp;var A5=function(S){this.privateDoNotAccessOrElseWrappedResourceUrl=S};
A5.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var I1Z,njZ,brR,Nsz,K0p,$Tz,uXz,jwY;I1Z=_.oK([""]);njZ=yG(["\x00"],["\\0"]);brR=yG(["\n"],["\\n"]);Nsz=yG(["\x00"],["\\u0000"]);K0p=_.oK([""]);$Tz=yG(["\x00"],["\\0"]);uXz=yG(["\n"],["\\n"]);jwY=yG(["\x00"],["\\u0000"]);_.l1Y=xD(function(S){return S(I1Z)})||xD(function(S){return S(njZ)})||xD(function(S){return S(brR)})||xD(function(S){return S(Nsz)});
_.YoH=_.zR(K0p)&&_.zR($Tz)&&_.zR(uXz)&&_.zR(jwY);var uo;_.FK=function(S,c){this.privateDoNotAccessOrElseWrappedUrl=c};
_.FK.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.C6x=B7("about:blank");uo=B7("about:invalid#zClosurez");var FEc=function(S){this.isValid=S},HrY=new FEc(function(S){return/^[^:]*([/?#]|$)/.test(S)}),DTY=Ng("data"),pPY=Ng("http"),hvp=Ng("https"),qoY=Ng("ftp"),Tsz=Ng("mailto"),wPZ=Ng("intent"),swr=Ng("vnd.youtube"),BUp=[DTY,
pPY,hvp,Tsz,qoY,HrY],IRZ=J5(function(){return typeof URL==="function"}),MOr=["data:",
"http:","https:","mailto:","ftp:"],bhZ=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var pc=function(S){this.privateDoNotAccessOrElseWrappedHtml=S};
pc.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var bbc=J5(function(){return new pc(Bsz?Bsz.emptyHTML:"")});var irx={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"},w_=function(S,c){var Q=Error.call(this,S+" cannot be used with intent "+irx[c]);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.type=S;this.intent=c;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.C(w_,Error);_.ZQ=function(S){this.privateDoNotAccessOrElseWrappedScript=S};
_.ZQ.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var uAz=function(S){this.privateDoNotAccessOrElseWrappedAttributePrefix=S};
uAz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var jAp="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var KdY=function(S){var c=_.rC("window.location.href");S==null&&(S='Unknown Error of type "null/undefined"');if(typeof S==="string")return{message:S,name:"Unknown error",lineNumber:"Not available",fileName:c,stack:"Not available"};var Q=!1;try{var f=S.lineNumber||S.line||"Not available"}catch(X){f="Not available",Q=!0}try{var U=S.fileName||S.filename||S.sourceURL||_.QY.$googDebugFname||c}catch(X){U="Not available",Q=!0}c=Zrp(S);if(!(!Q&&S.lineNumber&&S.fileName&&S.stack&&S.message&&S.name)){Q=S.message;
if(Q==null){if(S.constructor&&S.constructor instanceof Function){if(S.constructor.name)Q=S.constructor.name;else if(Q=S.constructor,fx[Q])Q=fx[Q];else{Q=String(Q);if(!fx[Q]){var a=/function\s+([^\(]+)/m.exec(Q);fx[Q]=a?a[1]:"[Anonymous]"}Q=fx[Q]}Q='Unknown Error of type "'+Q+'"'}else Q="Unknown Error of unknown type";typeof S.toString==="function"&&Object.prototype.toString!==S.toString&&(Q+=": "+S.toString())}return{message:Q,name:S.name||"UnknownError",lineNumber:f,fileName:U,stack:c||"Not available"}}return{message:S.message,
name:S.name,lineNumber:S.lineNumber,fileName:S.fileName,stack:c}},Zrp=function(S,c){c||(c={});
c[GiR(S)]=!0;var Q=S.stack||"",f=S.cause;f&&!c[GiR(f)]&&(Q+="\nCaused by: ",f.stack&&f.stack.indexOf(f.toString())==0||(Q+=typeof f==="string"?f:f.message+"\n"),Q+=Zrp(f,c));S=S.errors;if(Array.isArray(S)){f=1;var U;for(U=0;U<S.length&&!(f>4);U++)c[GiR(S[U])]||(Q+="\nInner error "+f++ +": ",S[U].stack&&S[U].stack.indexOf(S[U].toString())==0||(Q+=typeof S[U]==="string"?S[U]:S[U].message+"\n"),Q+=Zrp(S[U],c));U<S.length&&(Q+="\n... "+(S.length-U)+" more inner errors")}return Q},GiR=function(S){var c=
"";
typeof S.toString==="function"&&(c=""+S);return c+S.stack},fx={};var W0Z,ci,XZ,evz,kiT,gjZ,P1,rN,dTM;W0Z=function(S,c){for(var Q=S.split("%s"),f="",U=Array.prototype.slice.call(arguments,1);U.length&&Q.length>1;)f+=Q.shift()+U.shift();return f+Q.join("%s")};
_.vY=function(S){return encodeURIComponent(String(S))};
ci=function(S){return decodeURIComponent(S.replace(/\+/g," "))};
XZ=function(S){b_H.test(S)&&(S.indexOf("&")!=-1&&(S=S.replace(z9o,"&amp;")),S.indexOf("<")!=-1&&(S=S.replace(xlR,"&lt;")),S.indexOf(">")!=-1&&(S=S.replace(Fbz,"&gt;")),S.indexOf('"')!=-1&&(S=S.replace(ByZ,"&quot;")),S.indexOf("'")!=-1&&(S=S.replace(Itr,"&#39;")),S.indexOf("\x00")!=-1&&(S=S.replace(nET,"&#0;")));return S};
evz=function(S){var c={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var Q=_.QY.document.createElement("div");return S.replace(gjZ,function(f,U){var a=c[f];if(a)return a;U.charAt(0)=="#"&&(U=Number("0"+U.slice(1)),isNaN(U)||(a=String.fromCharCode(U)));a||(_.kD(Q,h5(f+" ")),a=Q.firstChild.nodeValue.slice(0,-1));return c[f]=a})};
kiT=function(S){return S.replace(/&([^;]+);/g,function(c,Q){switch(Q){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return Q.charAt(0)!="#"||(Q=Number("0"+Q.slice(1)),isNaN(Q))?c:String.fromCharCode(Q)}})};
gjZ=/&([^;\s<&]+);?/g;_.k1Z=function(S){return String(S).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.rCp=String.prototype.repeat?function(S,c){return S.repeat(c)}:function(S,c){return Array(c+1).join(S)};
_.UR=function(S,c){if(!Number.isFinite(S))return String(S);S=String(S);var Q=S.indexOf(".");Q===-1&&(Q=S.length);var f=S[0]==="-"?"-":"";f&&(S=S.substring(1));return f+(0,_.rCp)("0",Math.max(0,c-Q))+S};
P1=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.AP()).toString(36)};
rN=function(S){for(var c=0,Q=0;Q<S.length;++Q)c=31*c+S.charCodeAt(Q)>>>0;return c};
_.bx=function(S){return String(S).replace(/\-([a-z])/g,function(c,Q){return Q.toUpperCase()})};
_.nP=function(S){return String(S).replace(/([A-Z])/g,"-$1").toLowerCase()};
dTM=function(S){return S.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(c,Q,f){return Q+f.toUpperCase()})};var vjT=function(){this.names=new Map};
vjT.prototype.getName=function(S){var c=this.names.get(S);if(c)return c;var Q;c=(Q=S.description)!=null?Q:P1();this.names.set(S,c);return c};var P6p=function(S){var c=Error.call(this,S?S.length+" errors occurred during unsubscription:\n"+S.map(function(Q,f){return f+1+") "+Q.toString()}).join("\n  "):"");
this.message=c.message;"stack"in c&&(this.stack=c.stack);this.errors=S;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.C(P6p,Error);var t5=function(S){this.initialTeardown=S;this.closed=!1;this._teardowns=this._parentage=null};
_.J=t5.prototype;
_.J.unsubscribe=function(){if(!this.closed){this.closed=!0;var S=this._parentage;if(Array.isArray(S))for(var c=_.A(S),Q=c.next();!Q.done;Q=c.next())Q.value.remove(this);else S==null||S.remove(this);c=this.initialTeardown;if(Ey(c))try{c()}catch(a){var f=a instanceof P6p?a.errors:[a]}var U=this._teardowns;if(U)for(this._teardowns=null,c=_.A(U),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;try{Ey(Q)?Q():Q.unsubscribe()}catch(a){Q=void 0,f=(Q=f)!=null?Q:[],a instanceof P6p?f=[].concat(_.Hs(f),_.Hs(a.errors)):
f.push(a)}}if(f)throw new P6p(f);}};
_.J.add=function(S){if(S&&S!==this)if(this.closed)Ey(S)?S():S.unsubscribe();else{if(S instanceof t5){if(S.closed||S._hasParent(this))return;S._addParent(this)}var c;(this._teardowns=(c=this._teardowns)!=null?c:[]).push(S)}};
_.J._hasParent=function(S){var c=this._parentage;return c===S||Array.isArray(c)&&c.includes(S)};
_.J._addParent=function(S){var c=this._parentage;this._parentage=Array.isArray(c)?(c.push(S),c):c?[c,S]:S};
_.J._removeParent=function(S){var c=this._parentage;c===S?this._parentage=null:Array.isArray(c)&&Lc(c,S)};
_.J.remove=function(S){var c=this._teardowns;c&&Lc(c,S);S instanceof t5&&S._removeParent(this)};
var L0Z=new t5;L0Z.closed=!0;t5.JSC$7106_EMPTY=L0Z;var HhT=function(){setTimeout.apply(null,_.Hs(_.YD.apply(0,arguments)))};var JM=function(S){t5.call(this);this.JSC$7111_isStopped=!1;this.destination=S instanceof JM?S:new al(!S||Ey(S)?{next:S!=null?S:void 0}:S);CYZ(S)&&S.add(this)};
_.C(JM,t5);JM.JSC$7106_EMPTY=t5.JSC$7106_EMPTY;JM.create=function(S,c,Q){return new AM(S,c,Q)};
_.J=JM.prototype;_.J.next=function(S){this.JSC$7111_isStopped||this._next(S)};
_.J.error=function(S){this.JSC$7111_isStopped||(this.JSC$7111_isStopped=!0,this._error(S))};
_.J.complete=function(){this.JSC$7111_isStopped||(this.JSC$7111_isStopped=!0,this._complete())};
_.J.unsubscribe=function(){this.closed||(this.JSC$7111_isStopped=!0,t5.prototype.unsubscribe.call(this))};
_.J._next=function(S){this.destination.next(S)};
_.J._error=function(S){this.destination.error(S);this.unsubscribe()};
_.J._complete=function(){this.destination.complete();this.unsubscribe()};
var al=function(S){this.partialObserver=S};
al.prototype.next=function(S){var c=this.partialObserver;if(c.next)try{c.next(S)}catch(Q){Rn(Q)}};
al.prototype.error=function(S){var c=this.partialObserver;if(c.error)try{c.error(S)}catch(Q){Rn(Q)}else Rn(S)};
al.prototype.complete=function(){var S=this.partialObserver;if(S.complete)try{S.complete()}catch(c){Rn(c)}};
var AM=function(S,c,Q){JM.call(this);var f;Ey(S)||!S?f={next:S!=null?S:void 0,error:c!=null?c:void 0,complete:Q!=null?Q:void 0}:f=S;this.destination=new al(f)};
_.C(AM,JM);AM.JSC$7106_EMPTY=JM.JSC$7106_EMPTY;AM.create=JM.create;var fR=typeof Symbol==="function"&&Symbol.observable||"@@observable";var cs=function(S){S&&(this._subscribe=S)};
_.J=cs.prototype;_.J.lift=function(S){var c=new cs;c.source=this;c.operator=S;return c};
_.J.subscribe=function(S,c,Q){S=S&&S instanceof JM||S&&Ey(S.next)&&Ey(S.error)&&Ey(S.complete)&&CYZ(S)?S:new AM(S,c,Q);c=this.operator;Q=this.source;S.add(c?c.call(S,Q):Q?this._subscribe(S):this._trySubscribe(S));return S};
_.J._trySubscribe=function(S){try{return this._subscribe(S)}catch(c){S.error(c)}};
_.J.forEach=function(S,c){var Q=this;c=paR(c);return new c(function(f,U){var a=Q.subscribe(function(X){try{S(X)}catch(z){U(z),a==null||a.unsubscribe()}},U,f)})};
_.J._subscribe=function(S){var c;return(c=this.source)==null?void 0:c.subscribe(S)};
cs.prototype[fR]=function(){return this};
cs.prototype.pipe=function(){var S=_.YD.apply(0,arguments);return S.length?DVr(S)(this):this};
cs.create=function(S){return new cs(S)};var Ejc=function(){var S=Error.call(this,"object unsubscribed");this.message=S.message;"stack"in S&&(this.stack=S.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.C(Ejc,Error);var JH=function(){this.observers=[];this.hasError=this.JSC$7127_isStopped=this.closed=!1;this.thrownError=null};
_.C(JH,cs);_.J=JH.prototype;_.J.lift=function(S){var c=new XN(this,this);c.operator=S;return c};
_.J._throwIfClosed=function(){if(this.closed)throw new Ejc;};
_.J.next=function(S){this._throwIfClosed();if(!this.JSC$7127_isStopped){var c=this.observers.slice();c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q.value.next(S)}};
_.J.error=function(S){this._throwIfClosed();if(!this.JSC$7127_isStopped){this.hasError=this.JSC$7127_isStopped=!0;this.thrownError=S;for(var c=this.observers;c.length;)c.shift().error(S)}};
_.J.complete=function(){this._throwIfClosed();if(!this.JSC$7127_isStopped){this.JSC$7127_isStopped=!0;for(var S=this.observers;S.length;)S.shift().complete()}};
_.J.unsubscribe=function(){this.JSC$7127_isStopped=this.closed=!0;this.observers=null};
_.J._trySubscribe=function(S){this._throwIfClosed();return cs.prototype._trySubscribe.call(this,S)};
_.J._subscribe=function(S){this._throwIfClosed();this._checkFinalizedStatuses(S);return this._innerSubscribe(S)};
_.J._innerSubscribe=function(S){var c=this,Q=this.JSC$7127_isStopped,f=this.observers;return this.hasError||Q?t5.JSC$7106_EMPTY:(f.push(S),new t5(function(){return Lc(c.observers,S)}))};
_.J._checkFinalizedStatuses=function(S){var c=this.thrownError,Q=this.JSC$7127_isStopped;this.hasError?S.error(c):Q&&S.complete()};
JH.create=function(S,c){return new XN(S,c)};
var XN=function(S,c){JH.call(this);this.destination=S;this.source=c};
_.C(XN,JH);XN.create=JH.create;XN.prototype.next=function(S){var c,Q;(c=this.destination)==null||(Q=c.next)==null||Q.call(c,S)};
XN.prototype.error=function(S){var c,Q;(c=this.destination)==null||(Q=c.error)==null||Q.call(c,S)};
XN.prototype.complete=function(){var S,c;(S=this.destination)==null||(c=S.complete)==null||c.call(S)};
XN.prototype._subscribe=function(S){var c,Q;return(Q=(c=this.source)==null?void 0:c.subscribe(S))!=null?Q:t5.JSC$7106_EMPTY};var W5=function(S){JH.call(this);this._value=S};
_.C(W5,JH);W5.create=JH.create;W5.prototype._subscribe=function(S){var c=JH.prototype._subscribe.call(this,S);!c.closed&&S.next(this._value);return c};
W5.prototype.getValue=function(){var S=this.thrownError,c=this._value;if(this.hasError)throw S;this._throwIfClosed();return c};
W5.prototype.next=function(S){JH.prototype.next.call(this,this._value=S)};
_.Rh.Object.defineProperties(W5.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var w8=new cs(function(S){return S.complete()});var Qq=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Zhz=function(S){return S&&typeof S.length==="number"&&typeof S!=="function"};var tOc={now:function(){return(tOc.delegate||Date).now()},
delegate:void 0};var E7=function(S,c,Q){S=S===void 0?Infinity:S;c=c===void 0?Infinity:c;Q=Q===void 0?tOc:Q;JH.call(this);this.bufferSize=S;this.windowTime=c;this.timestampProvider=Q;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=c===Infinity;this.bufferSize=Math.max(1,S);this.windowTime=Math.max(1,c)};
_.C(E7,JH);E7.create=JH.create;E7.prototype.next=function(S){var c=this.buffer,Q=this.infiniteTimeWindow,f=this.timestampProvider,U=this.windowTime;this.JSC$7127_isStopped||(c.push(S),!Q&&c.push(f.now()+U));VOp(this);JH.prototype.next.call(this,S)};
E7.prototype._subscribe=function(S){this._throwIfClosed();VOp(this);for(var c=this._innerSubscribe(S),Q=this.infiniteTimeWindow,f=this.buffer.slice(),U=0;U<f.length&&!S.closed;U+=Q?1:2)S.next(f[U]);this._checkFinalizedStatuses(S);return c};
var VOp=function(S){var c=S.bufferSize,Q=S.timestampProvider,f=S.buffer;S=S.infiniteTimeWindow;var U=(S?1:2)*c;c<Infinity&&U<f.length&&f.splice(0,f.length-U);if(!S){c=Q.now();Q=0;for(S=1;S<f.length&&f[S]<=c;S+=2)Q=S;Q&&f.splice(0,Q+1)}};var yCo=function(S,c){c=c===void 0?Rvc:c;this.schedulerActionCtor=S;this.now=c};
yCo.prototype.schedule=function(S,c,Q){c=c===void 0?0:c;return(new this.schedulerActionCtor(this,S)).schedule(Q,c)};
var Rvc=tOc.now;var DgH=function(){var S=Error.call(this,"no elements in sequence");this.message=S.message;"stack"in S&&(this.stack=S.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.C(DgH,Error);var li=function(S,c,Q,f,U){JM.call(this,S);this.onUnsubscribe=U;c&&(this._next=function(a){try{c(a)}catch(X){this.destination.error(X)}});
Q&&(this._error=function(a){try{Q(a)}catch(X){this.destination.error(X)}this.unsubscribe()});
f&&(this._complete=function(){try{f()}catch(a){this.destination.error(a)}this.unsubscribe()})};
_.C(li,JM);li.JSC$7106_EMPTY=JM.JSC$7106_EMPTY;li.create=JM.create;li.prototype.unsubscribe=function(){var S;this.closed||(S=this.onUnsubscribe)!=null&&S.call(this);JM.prototype.unsubscribe.call(this)};var Ps=function(S,c){this.source=S;this.subjectFactory=c;this._subject=null;this._refCount=0;this._connection=null};
_.C(Ps,cs);Ps.create=cs.create;Ps.prototype._subscribe=function(S){return ojT(this).subscribe(S)};
var ojT=function(S){var c=S._subject;if(!c||c.JSC$7127_isStopped)S._subject=S.subjectFactory();return S._subject};
Ps.prototype._teardown=function(){this._refCount=0;var S=this._connection;this._subject=this._connection=null;S==null||S.unsubscribe()};
Ps.prototype.connect=function(){var S=this,c=this._connection;if(!c){c=this._connection=new t5;var Q=ojT(this);c.add(this.source.subscribe(new li(Q,void 0,function(f){S._teardown();Q.error(f)},function(){S._teardown();
Q.complete()},function(){return S._teardown()})));
c.closed&&(this._connection=null,c=t5.JSC$7106_EMPTY)}return c};var tlZ=Array.isArray;var RQx=Array.isArray,mTH=Object,yjY=mTH.getPrototypeOf,oZo=mTH.prototype,mVp=mTH.keys;var pR=function(S,c,Q){JM.call(this,S);this._next=c;this.shouldComplete=Q};
_.C(pR,JM);pR.JSC$7106_EMPTY=JM.JSC$7106_EMPTY;pR.create=JM.create;pR.prototype._complete=function(){this.shouldComplete()?JM.prototype._complete.call(this):this.unsubscribe()};var A5M=["addListener","removeListener"],aQp=["addEventListener","removeEventListener"],Ocz=["on","off"];var OR=function(){t5.call(this)};
_.C(OR,t5);OR.JSC$7106_EMPTY=t5.JSC$7106_EMPTY;OR.prototype.schedule=function(){return this};var STd=function(S,c){return setInterval.apply(null,[S,c].concat(_.Hs(_.YD.apply(2,arguments))))};var zE=function(S,c){t5.call(this);this.scheduler=S;this.work=c;this.pending=!1};
_.C(zE,OR);zE.JSC$7106_EMPTY=OR.JSC$7106_EMPTY;zE.prototype.schedule=function(S,c){c=c===void 0?0:c;if(this.closed)return this;this.state=S;S=this.id;var Q=this.scheduler;S!=null&&(this.id=cZe(this,S,c));this.pending=!0;this.delay=c;this.id=this.id||this.requestAsyncId(Q,this.id,c);return this};
zE.prototype.requestAsyncId=function(S,c,Q){Q=Q===void 0?0:Q;return STd(S.flush.bind(S,this),Q)};
var cZe=function(S,c,Q){Q=Q===void 0?0:Q;if(Q!=null&&S.delay===Q&&S.pending===!1)return c;clearInterval(c)};
zE.prototype.execute=function(S,c){if(this.closed)return Error("ma");this.pending=!1;if(S=this._execute(S,c))return S;this.pending===!1&&this.id!=null&&(this.id=cZe(this,this.id,null))};
zE.prototype._execute=function(S){var c=!1;try{this.work(S)}catch(f){c=!0;var Q=!!f&&f||Error(f)}if(c)return this.unsubscribe(),Q};
zE.prototype.unsubscribe=function(){if(!this.closed){var S=this.id,c=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;Lc(c,this);S!=null&&(this.id=cZe(this,S,null));this.delay=null;OR.prototype.unsubscribe.call(this)}};var QHh=function(S,c){c=c===void 0?Rvc:c;yCo.call(this,S,c);this.actions=[];this.active=!1;this.scheduled=void 0};
_.C(QHh,yCo);QHh.prototype.flush=function(S){var c=this.actions;if(this.active)c.push(S);else{var Q;this.active=!0;do if(Q=S.execute(S.state,S.delay))break;while(S=c.shift());this.active=!1;if(Q){for(;S=c.shift();)S.unsubscribe();throw Q;}}};var jC=new cs(Vx);var zhZ=Array.isArray;var xq=function(S,c){zE.call(this,S,c);this.scheduler=S;this.work=c};
_.C(xq,zE);xq.JSC$7106_EMPTY=zE.JSC$7106_EMPTY;xq.prototype.schedule=function(S,c){c=c===void 0?0:c;if(c>0)return zE.prototype.schedule.call(this,S,c);this.delay=c;this.state=S;this.scheduler.flush(this);return this};
xq.prototype.execute=function(S,c){return c>0||this.closed?zE.prototype.execute.call(this,S,c):this._execute(S,c)};
xq.prototype.requestAsyncId=function(S,c,Q){Q=Q===void 0?0:Q;return Q!=null&&Q>0||Q==null&&this.delay>0?zE.prototype.requestAsyncId.call(this,S,c,Q):S.flush(this)};var fZJ=function(){QHh.apply(this,arguments)};
_.C(fZJ,QHh);var LEp=new fZJ(xq);var Urd=function(){this.performanceMonitor=new OrM;this.queue=new zvY;this.internalSymbol=Symbol();this.debugNames=new vjT};
Urd.prototype.getOnBackgrounded=function(){return jC};
_.Rh.Object.defineProperties(Urd.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var FN=function(S,c){c=Error.call(this,c?S+": "+c:String(S));this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=S;this.__proto__=FN.prototype;this.name=String(S)};
_.C(FN,Error);var lN=function(S){FN.call(this,1E3,'sfr:"'+S+'"');this.measurementStrategyFailureReason=S;this.__proto__=lN.prototype};
_.C(lN,FN);var Yh=function(){FN.call(this,1003);this.__proto__=Yh.prototype};
_.C(Yh,FN);var Bl=function(){FN.call(this,1009);this.__proto__=Bl.prototype};
_.C(Bl,FN);var JZd=function(){FN.call(this,1011);this.__proto__=JZd.prototype};
_.C(JZd,FN);var aZu=function(){FN.call(this,1007);this.__proto__=Yh.prototype};
_.C(aZu,FN);var Nk=function(S){FN.call(this,1004,String(S));this.inputObservableIndex=S;this.__proto__=Nk.prototype};
_.C(Nk,FN);var Woo=function(S){FN.call(this,1010,S);this.__proto__=Kn.prototype};
_.C(Woo,FN);var Kn=function(S){FN.call(this,1005,S);this.__proto__=Kn.prototype};
_.C(Kn,FN);var AZ_=function(S){var c=_.YD.apply(1,arguments),Q=this;this.orderedFactories=[];this.orderedFactories.push(S);c.forEach(function(f){Q.orderedFactories.push(f)})};
AZ_.prototype.isSupported=function(S){return this.orderedFactories.some(function(c){return c.isSupported(S)})};
AZ_.prototype.makeBeacon=function(S,c){for(var Q=0;Q<this.orderedFactories.length;Q++)if(this.orderedFactories[Q].isSupported(c))return this.orderedFactories[Q].makeBeacon(S,c);throw new Bl;};var l0o=Symbol("na"),Xcs=Symbol("oa"),ZW=function(S,c){this.value=S;this.timeline=c},ii=function(S,c){if(c.timeline!==S.timeline)throw new aZu;
return S.value-c.value};
_.J=ZW.prototype;_.J.equals=function(S){return ii(this,S)===0};
_.J.maximum=function(S){if(S.timeline!==this.timeline)throw new aZu;return this.value>=S.value?this:S};
_.J.round=function(){return new ZW(Math.round(this.value),this.timeline)};
_.J.add=function(S){return new ZW(this.value+S,this.timeline)};
_.J.toString=function(){return String(this.value)};var Il=function(S,c){this.context=S;this.JSC$7233_pinger=c};
Il.prototype.isSupported=function(S){return this.JSC$7233_pinger.isSupported(S)};
Il.prototype.makeBeacon=function(S,c){if(!this.isSupported(c))throw new Bl;return new nx(this.context,this.JSC$7233_pinger,c!=null?c:void 0,S)};
var nx=function(S,c,Q,f){var U=this;this.JSC$7239_pinger=c;this.properties=Q;this.url=f;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var a;this.method=(a=Q==null?void 0:Q.beaconMethod)!=null?a:"GET";this.backgroundedSubscription=S.getOnBackgrounded().subscribe(function(){U.sendNow()})};
nx.prototype.deactivate=function(){this.internalIsPending=!1};
nx.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7239_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var S,c;this.JSC$7239_pinger.pingWithHeadersAndBody((S=this.properties)!=null?S:{},this.customHeaders,(c=this.body)!=null?c:"",this.url)}else this.JSC$7239_pinger.ping(this.url);this.internalIsPending=!1}catch(Q){}else this.internalIsPending=!1};
nx.prototype.setHeader=function(S){this.customHeaders.set(S,void 0)};
_.Rh.Object.defineProperties(nx.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var zRl=function(){for(var S=_.A(_.YD.apply(0,arguments)),c=S.next();!c.done;c=S.next())if(c=c.value,c.available()){this.timeProvider=c;return}this.timeProvider=new Oz$};
_.J=zRl.prototype;_.J.available=function(){return this.timeProvider.available()};
_.J.now=function(){return this.timeProvider.now()};
_.J.setTimeout=function(S,c){return this.timeProvider.setTimeout(S,c)};
_.J.clearTimeout=function(S){this.timeProvider.clearTimeout(S)};
_.J.interval=function(S,c){var Q=this.intervalObservable(S).subscribe(c);return function(){return void Q.unsubscribe()}};
_.J.intervalObservable=function(S){return this.timeProvider.intervalObservable(S)};
_.Rh.Object.defineProperties(zRl.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Oz$=function(){this.timeline=Symbol()};
_.J=Oz$.prototype;_.J.available=function(){return!1};
_.J.now=function(){return new ZW(0,this.timeline)};
_.J.setTimeout=function(){return 0};
_.J.clearTimeout=function(){};
_.J.interval=function(){return function(){}};
_.J.intervalObservable=function(){return jC};var br=function(S,c){this.intrinsicFunctionNamespace=S;this.performanceMonitor=c};
_.J=br.prototype;_.J.setTimeout=function(S,c){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,S),c)};
_.J.clearTimeout=function(S){this.intrinsicFunctionNamespace.clearTimeout(S)};
_.J.interval=function(S,c){var Q=this.intervalObservable(S).subscribe(c);return function(){return void Q.unsubscribe()}};
_.J.intervalObservable=function(S){var c=this;return new cs(function(Q){var f=0,U=c.intrinsicFunctionNamespace.setInterval(function(){Q.next(f++)},S);
return function(){c.intrinsicFunctionNamespace.clearInterval(U)}})};
_.J.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var xri=function(S,c){br.call(this,S,c);this.timeline=Xcs};
_.C(xri,br);xri.prototype.now=function(){return new ZW(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
xri.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&br.prototype.available.call(this)};var Fph=function(S,c){br.call(this,S,c);this.timeline=l0o};
_.C(Fph,br);Fph.prototype.now=function(){return new ZW(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
Fph.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&br.prototype.available.call(this)};var IZJ=function(S){this.context=S;if(Bpi===void 0)a:{var c,Q,f=(c=S.global)==null?void 0:(Q=c.document)==null?void 0:Q.createElement("meta");if(f)try{f.httpEquiv="origin-trial";f.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";S.global.document.head.append(f);Bpi=f;break a}catch(U){}Bpi=void 0}},
Bpi;
IZJ.prototype.isSupported=function(S){return uKZ(this.context)!==void 0&&!(S==null||!S.endOfSession)&&!N1(this.context)&&!(S==null?0:S.attributionEnabled)&&!(S==null?0:S.customHeaders)&&!(S==null?0:S.customBody)};
IZJ.prototype.makeBeacon=function(S,c){if(!this.isSupported(c))throw new Bl;return new Kx(this.context,S,c)};
var Kx=function(S,c,Q){this.context=S;this.properties=Q;this.JSC$7266_urlWithoutToken=c;var f;this.beaconMethod=(f=Q==null?void 0:Q.beaconMethod)!=null?f:"GET";S=uKZ(this.context);if(S===void 0)throw Error();this.fetchLater=S;nYp(this,bzi(this))},nYp=function(S,c){S.beaconResult&&S.beaconResult.activated||(S.beaconAbort=new AbortController,S.beaconResult=S.fetchLater(c,{method:S.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:S.beaconAbort.signal,activateAfter:96E4}))},bzi=function(S){S=S.JSC$7266_urlWithoutToken;
return(S.slice(-1)[0]==="&"?S:S+"&")+"flapi=1"};
Kx.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
Kx.prototype.sendNow=function(){};
Kx.prototype.setHeader=function(){};
_.Rh.Object.defineProperties(Kx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7266_urlWithoutToken},
set:function(S){this.JSC$7266_urlWithoutToken=S;S=bzi(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);nYp(this,S)}},
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 Npd=function(S){this.context=S};
Npd.prototype.isSupported=function(){return!N1(this.context)&&!!this.context.global.fetch};
Npd.prototype.ping=function(){var S=this;return s7.apply(null,_.Hs(_.YD.apply(0,arguments).map(function(c){return Ah(S.context.global.fetch(c,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(CR(function(Q){return Q.status===200}))}))).pipe(p7Y(function(c){return c}),qyY())};
Npd.prototype.pingWithHeadersAndBody=function(S,c,Q){for(var f=_.YD.apply(3,arguments),U=this,a=new Headers,X=_.A(c.entries()),z=X.next();!z.done;z=X.next()){var x=_.A(z.value);z=x.next().value;x=x.next().value;a.set(z,x)}var I,n=(I=S.keepAlive)!=null?I:!1;s7.apply(null,_.Hs(f.map(function(b){return Ah(U.context.global.fetch(b,Object.assign({},{method:String(S.beaconMethod),cache:"no-cache"},n?{keepalive:!0}:{},{mode:"no-cors",headers:a,body:Q}))).pipe(CR(function(N){return N.status===200}))}))).pipe(p7Y(function(b){return b}),
qyY())};var Kp$,$WZ;_.$q=function(){};
_.gp=function(S){return S};
Kp$=function(S){var c=c||0;return function(){return S.apply(this,Array.prototype.slice.call(arguments,0,c))}};
_.ur=function(S){var c=!1,Q;return function(){c||(Q=S(),c=!0);return Q}};
_.jW=function(S,c){var Q=0;return function(f){_.QY.clearTimeout(Q);var U=arguments;Q=_.QY.setTimeout(function(){S.apply(void 0,U)},c)}};
$WZ=function(S,c){var Q=0,f=!1,U=[],a=function(){Q=0;f&&(f=!1,X())},X=function(){Q=_.QY.setTimeout(a,c);
var z=U;U=[];S.apply(void 0,z)};
return function(z){U=arguments;Q?f=!0:X()}};var uo_=function(){return Kz&&$Y?$Y.mobile:!$rs()&&(YY("iPod")||YY("iPhone")||YY("Android")||YY("IEMobile"))},$rs=function(){return Kz&&$Y?!$Y.mobile&&(YY("iPad")||YY("Android")||YY("Silk")):YY("iPad")||YY("Android")&&!YY("Mobile")||YY("Silk")};var jH$;_.Cn={};jH$="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Cn.add=function(S,c,Q){if(S!==null&&c in S)throw Error("qa`"+c);S[c]=Q};
_.Cn.clear=function(S){for(var c in S)delete S[c]};
_.Cn.clone=function(S){var c={},Q;for(Q in S)c[Q]=S[Q];return c};
_.Cn.contains=function(S,c){return snH(S,c)};
_.Cn.containsKey=function(S,c){return S!==null&&c in S};
_.Cn.containsValue=snH;_.Cn.create=Zcp;_.Cn.createImmutableView=function(S){var c=S;Object.isFrozen&&!Object.isFrozen(S)&&(c=Object.create(S),Object.freeze(c));return c};
_.Cn.createSet=GRH;_.Cn.equals=function(S,c){for(var Q in S)if(!(Q in c)||S[Q]!==c[Q])return!1;for(var f in c)if(!(f in S))return!1;return!0};
_.Cn.every=function(S,c,Q){for(var f in S)if(!c.call(Q,S[f],f,S))return!1;return!0};
_.Cn.extend=function(S,c){for(var Q,f,U=1;U<arguments.length;U++){f=arguments[U];for(Q in f)S[Q]=f[Q];for(var a=0;a<jH$.length;a++)Q=jH$[a],Object.prototype.hasOwnProperty.call(f,Q)&&(S[Q]=f[Q])}};
_.Cn.filter=function(S,c,Q){var f={},U;for(U in S)c.call(Q,S[U],U,S)&&(f[U]=S[U]);return f};
_.Cn.findKey=MSR;_.Cn.findValue=function(S,c,Q){return(c=MSR(S,c,Q))&&S[c]};
_.Cn.forEach=function(S,c,Q){for(var f in S)c.call(Q,S[f],f,S)};
_.Cn.get=function(S,c,Q){return S!==null&&c in S?S[c]:Q};
_.Cn.getAllPropertyNames=function(S,c,Q){if(!S)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return w7p(S);for(var f={};S&&(S!==Object.prototype||c)&&(S!==Function.prototype||Q);){for(var U=Object.getOwnPropertyNames(S),a=0;a<U.length;a++)f[U[a]]=!0;S=Object.getPrototypeOf(S)}return w7p(f)};
_.Cn.getAnyKey=function(S){for(var c in S)return c};
_.Cn.getAnyValue=function(S){for(var c in S)return S[c]};
_.Cn.getCount=function(S){var c=0,Q;for(Q in S)c++;return c};
_.Cn.getKeys=w7p;_.Cn.getSuperClass=function(S){return(S=Object.getPrototypeOf(S.prototype))&&S.constructor};
_.Cn.getValueByKeys=function(S,c){var Q=_.yY(c),f=Q?c:arguments;for(Q=Q?0:1;Q<f.length;Q++){if(S==null)return;S=S[f[Q]]}return S};
_.Cn.getValues=function(S){var c=[],Q=0,f;for(f in S)c[Q++]=S[f];return c};
_.Cn.isEmpty=function(S){for(var c in S)return!1;return!0};
_.Cn.isImmutableView=function(S){return!!Object.isFrozen&&Object.isFrozen(S)};
_.Cn.map=function(S,c,Q){var f={},U;for(U in S)f[U]=c.call(Q,S[U],U,S);return f};
_.Cn.remove=function(S,c){var Q;(Q=c in S)&&delete S[c];return Q};
_.Cn.set=function(S,c,Q){S[c]=Q};
_.Cn.setIfUndefined=function(S,c,Q){return c in S?S[c]:S[c]=Q};
_.Cn.setWithReturnValueIfNotSet=function(S,c,Q){if(c in S)return S[c];Q=Q();return S[c]=Q};
_.Cn.some=function(S,c,Q){for(var f in S)if(c.call(Q,S[f],f,S))return!0;return!1};
_.Cn.transpose=function(S){var c={},Q;for(Q in S)c[S[Q]]=Q;return c};
_.Cn.unsafeClone=icp;var lr=function(S,c,Q,f,U){this.allowedElements=S;this.elementPolicies=c;this.allowedGlobalAttributes=Q;this.globalAttributePolicies=f;this.globallyAllowedAttributePrefixes=U},lZ$=function(S,c,Q){Q=S.elementPolicies.get(Q);
return(Q==null?0:Q.has(c))?Q.get(c):S.allowedGlobalAttributes.has(c)?{policyAction:1}:(Q=S.globalAttributePolicies.get(c))?Q:S.globallyAllowedAttributePrefixes&&[].concat(_.Hs(S.globallyAllowedAttributePrefixes)).some(function(f){return c.indexOf(f)===0})?{policyAction:1}:{policyAction:0}};var YTz="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(" "),
CMu=[["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}]])]],Hz$="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(" "),
Dr_=[["dir",{policyAction:3,conditions:J5(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:J5(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:J5(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:J5(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],pcd=new lr(new Set(YTz),new Map(CMu),new Set(Hz$),new Map(Dr_)),hRd=new lr(new Set(YTz.concat(["BUTTON",
"INPUT"])),new Map(CMu),new Set(J5(function(){return Hz$.concat(["class","id","name"])})),new Map(J5(function(){return Dr_.concat([["style",
{policyAction:1}]])})));var qTe,TpJ,sHh;qTe=function(S,c,Q,f){this.JSC$7326_sanitizerTable=S;this.styleElementSanitizer=c;this.styleAttributeSanitizer=Q;this.JSC$7326_resourceUrlPolicy=f;this.changes=[]};
_.wcp=function(S,c){var Q=document.implementation.createHTMLDocument("");S=TpJ(S,c,Q);Q=Q.body;Q.appendChild(S);Q=(new XMLSerializer).serializeToString(Q);Q=Q.slice(Q.indexOf(">")+1,Q.lastIndexOf("</"));return h5(Q)};
TpJ=function(S,c,Q){c=gDM(c,Q);c=document.createTreeWalker(c,5,function(z){if(z.nodeType===3)z=1;else if(kRp(z))if(z=ehr(z),z===null)z=2;else{var x=S.JSC$7326_sanitizerTable;z=z!=="FORM"&&(x.allowedElements.has(z)||x.elementPolicies.has(z))?1:2}else z=2;return z});
for(var f=c.nextNode(),U=Q.createDocumentFragment(),a=U;f!==null;){var X=void 0;if(f.nodeType===3)S.styleElementSanitizer&&a.nodeName==="STYLE"?(f=S.styleElementSanitizer(f.data),X=S.createTextNode(f)):X=S.createTextNode(f.data);else if(kRp(f))X=sHh(S,f,Q);else throw Error("da");a.appendChild(X);if(f=c.firstChild())a=X;else for(;!(f=c.nextSibling())&&(f=c.parentNode());)a=a.parentNode}return U};
qTe.prototype.createTextNode=function(S){return document.createTextNode(S)};
sHh=function(S,c,Q){var f,U=ehr(c);Q=Q.createElement(U);c=c.attributes;for(var a=_.A(c),X=a.next();!X.done;X=a.next()){var z=X.value;X=z.name;z=z.value;var x=lZ$(S.JSC$7326_sanitizerTable,X,U);a:{if(f=x.conditions){f=_.A(f);for(var I=f.next();!I.done;I=f.next()){var n=_.A(I.value);I=n.next().value;n=n.next().value;var b=void 0;if((I=(b=c.getNamedItem(I))==null?void 0:b.value)&&!n.has(I)){f=!1;break a}}}f=!0}if(f)switch(x.policyAction){case 1:c5(Q,X,z);break;case 2:x=_.nZo(z);z=x!==void 0&&MOr.indexOf(x.toLowerCase())!==
-1?z:"about:invalid#zClosurez";c5(Q,X,z);break;case 3:c5(Q,X,z.toLowerCase());break;case 4:S.styleAttributeSanitizer?(z=S.styleAttributeSanitizer(z),c5(Q,X,z)):c5(Q,X,z);break;case 5:S.JSC$7326_resourceUrlPolicy?(x={type:2,attributeName:X,elementName:U},z=Wcp(z),(z=S.JSC$7326_resourceUrlPolicy(z,x))&&c5(Q,X,z.toString())):c5(Q,X,z);break;case 6:if(S.JSC$7326_resourceUrlPolicy){x={type:2,attributeName:X,elementName:U};f=[];z=_.A(z.split(","));for(I=z.next();!I.done;I=z.next())n=_.A(I.value.trim().split(/\s+/,
2)),I=n.next().value,n=n.next().value,f.push({url:I,descriptor:n});z={parts:[]};f=_.A(f);for(I=f.next();!I.done;I=f.next())I=I.value,n=Wcp(I.url),(n=S.JSC$7326_resourceUrlPolicy(n,x))&&z.parts.push({url:n.toString(),descriptor:I.descriptor});c5(Q,X,r5M(z))}else c5(Q,X,z)}}return Q};
_.Mxe=J5(function(){return new qTe(pcd)});
_.ize=J5(function(){return new qTe(hRd)});var ZzH=function(){this.calledBuild=!1;this.JSC$7338_sanitizerTable=pcd},Gzh=function(){ZzH.apply(this,arguments)};
_.C(Gzh,ZzH);Gzh.prototype.build=function(){if(this.calledBuild)throw Error("sa");this.calledBuild=!0;return new qTe(this.JSC$7338_sanitizerTable,void 0,void 0,this.JSC$7338_resourceUrlPolicy)};var Wpu=/[^#]*/;var EV=function(S){try{return!!S&&S.location.href!=null&&Tc(S,"foo")}catch(c){return!1}},eR_=function(S){var c=gY_;
if(c)for(var Q in c)Object.prototype.hasOwnProperty.call(c,Q)&&S(c[Q],Q,c)},kz$=function(){var S=[];
eR_(function(c){S.push(c)});
return S},gY_={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"},rZh=_.ur(function(){return kz$()}),vYd=function(){var S=drs("IFRAME"),
c={};
_.PY(rZh(),function(Q){S.sandbox&&S.sandbox.supports&&S.sandbox.supports(Q)&&(c[Q]=!0)});
return c},drs=function(S,c){c=c===void 0?document:c;
return c.createElement(String(S).toLowerCase())};var Yq;_.Zv=function(S,c,Q){return Math.min(Math.max(S,c),Q)};
Yq=function(S,c,Q){return S+Q*(c-S)};_.pn=function(S,c){this.x=S!==void 0?S:0;this.y=c!==void 0?c:0};
_.J=_.pn.prototype;_.J.clone=function(){return new _.pn(this.x,this.y)};
_.J.equals=function(S){return S instanceof _.pn&&(this==S?!0:this&&S?this.x==S.x&&this.y==S.y:!1)};
_.J.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.J.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.J.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.J.translate=function(S,c){S instanceof _.pn?(this.x+=S.x,this.y+=S.y):(this.x+=Number(S),typeof c==="number"&&(this.y+=c));return this};
_.J.scale=function(S,c){this.x*=S;this.y*=typeof c==="number"?c:S;return this};_.xh=function(S,c){this.width=S;this.height=c};
_.J=_.xh.prototype;_.J.clone=function(){return new _.xh(this.width,this.height)};
_.J.area=function(){return this.width*this.height};
_.J.aspectRatio=function(){return this.width/this.height};
_.J.isEmpty=function(){return!this.area()};
_.J.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.J.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.J.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.J.scale=function(S,c){this.width*=S;this.height*=typeof c==="number"?c:S;return this};var Ge=function(S,c){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=S===jWp&&c||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=PMd};
Ge.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var Lpd=function(S){return S instanceof Ge&&S.constructor===Ge&&S.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===PMd?S.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},PMd={},jWp={};
new Ge(jWp,"");var nn,$x,Hl,EYT,RRd,VxJ,hH,oYs,Sdd,mrd,q1,c$i,X_e,A$H,aTl,Oiu,zsT,xHs,Feu,eMp,Bdi,nlT,biz,ITi,Cx;nn=function(S){return S?new Cx(_.qk(S)):JIz||(JIz=new Cx)};
_.Q8=function(S,c){return typeof c==="string"?S.getElementById(c):c};
$x=function(S,c){return(c||document).getElementsByTagName(String(S))};
_.txd=function(S){return EYT("yt-formatted-string","paper-input-input",S)};
Hl=function(S,c,Q,f){S=f||S;return(c=c&&c!="*"?String(c).toUpperCase():"")||Q?S.querySelectorAll(c+(Q?"."+Q:"")):S.getElementsByTagName("*")};
EYT=function(S,c,Q){var f=document,U=S&&S!="*"?String(S).toUpperCase():"";return U||c?(Q||f).querySelector(U+(c?"."+c:"")):Hl(f,S,c,Q)[0]||null};
RRd=function(S,c){_.Cn.forEach(c,function(Q,f){f=="style"?S.style.cssText=Q:f=="class"?S.className=Q:f=="for"?S.htmlFor=Q:VxJ.hasOwnProperty(f)?S.setAttribute(VxJ[f],Q):_.UT(f,"aria-")||_.UT(f,"data-")?S.setAttribute(f,Q):S[f]=Q})};
VxJ={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"};_.B5=function(S){S=(S||window).document;S=S.compatMode=="CSS1Compat"?S.documentElement:S.body;return new _.xh(S.clientWidth,S.clientHeight)};
_.yZh=function(S){var c=_.D$(S);S=S.defaultView;return new _.pn(S.pageXOffset||c.scrollLeft,S.pageYOffset||c.scrollTop)};
_.D$=function(S){return S.scrollingElement?S.scrollingElement:_.Ir||S.compatMode!="CSS1Compat"?S.body||S.documentElement:S.documentElement};
hH=function(S){return S?S.defaultView:window};
_.px=function(S,c,Q){return oYs(document,arguments)};
oYs=function(S,c){var Q=c[1],f=mrd(S,String(c[0]));Q&&(typeof Q==="string"?f.className=Q:Array.isArray(Q)?f.className=Q.join(" "):RRd(f,Q));c.length>2&&Sdd(S,f,c,2);return f};
Sdd=function(S,c,Q,f){function U(z){z&&c.appendChild(typeof z==="string"?S.createTextNode(z):z)}
for(;f<Q.length;f++){var a=Q[f];if(!_.yY(a)||_.c_(a)&&a.nodeType>0)U(a);else{a:{if(a&&typeof a.length=="number"){if(_.c_(a)){var X=typeof a.item=="function"||typeof a.item=="string";break a}if(typeof a==="function"){X=typeof a.item=="function";break a}}X=!1}_.PY(X?_.VY(a):a,U)}}};
_.Nf=function(S){return mrd(document,S)};
mrd=function(S,c){c=String(c);S.contentType==="application/xhtml+xml"&&(c=c.toLowerCase());return S.createElement(c)};
_.hM=function(){return document.createTextNode("\n")};
q1=function(S){if(S.nodeType!=1)return!1;switch(S.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};
c$i=function(S,c){Sdd(_.qk(S),S,arguments,1)};
_.TE=function(S){for(var c;c=S.firstChild;)S.removeChild(c)};
_.wO=function(S,c){c.parentNode&&c.parentNode.insertBefore(S,c)};
_.sR=function(S,c){c.parentNode&&c.parentNode.insertBefore(S,c.nextSibling)};
_.K9=function(S){return S&&S.parentNode?S.parentNode.removeChild(S):null};
_.Qpz=function(S,c){var Q=c.parentNode;Q&&Q.replaceChild(S,c)};
_.fTi=function(S){var c,Q=S.parentNode;if(Q&&Q.nodeType!=11)if(S.removeNode)S.removeNode(!1);else{for(;c=S.firstChild;)Q.insertBefore(c,S);_.K9(S)}};
_.M1=function(S){return S.children!=void 0?S.children:Array.prototype.filter.call(S.childNodes,function(c){return c.nodeType==1})};
_.J$z=function(S){return S.nextElementSibling!==void 0?S.nextElementSibling:_.UHs(S.nextSibling,!0)};
_.UHs=function(S,c){for(;S&&S.nodeType!=1;)S=c?S.nextSibling:S.previousSibling;return S};
_.yk=function(S){return _.c_(S)&&S.nodeType==1};
_.dF=function(S,c){if(!S||!c)return!1;if(S.contains&&c.nodeType==1)return S==c||S.contains(c);if(typeof S.compareDocumentPosition!="undefined")return S==c||!!(S.compareDocumentPosition(c)&16);for(;c&&S!=c;)c=c.parentNode;return c==S};
X_e=function(S,c){if(S==c)return 0;if(S.compareDocumentPosition)return S.compareDocumentPosition(c)&2?1:-1;if("sourceIndex"in S||S.parentNode&&"sourceIndex"in S.parentNode){var Q=S.nodeType==1,f=c.nodeType==1;if(Q&&f)return S.sourceIndex-c.sourceIndex;var U=S.parentNode,a=c.parentNode;return U==a?aTl(S,c):!Q&&_.dF(U,c)?-1*A$H(S,c):!f&&_.dF(a,S)?A$H(c,S):(Q?S.sourceIndex:U.sourceIndex)-(f?c.sourceIndex:a.sourceIndex)}f=_.qk(S);Q=f.createRange();Q.selectNode(S);Q.collapse(!0);S=f.createRange();S.selectNode(c);
S.collapse(!0);return Q.compareBoundaryPoints(_.QY.Range.START_TO_END,S)};
A$H=function(S,c){var Q=S.parentNode;if(Q==c)return-1;for(;c.parentNode!=Q;)c=c.parentNode;return aTl(c,S)};
aTl=function(S,c){for(;c=c.previousSibling;)if(c==S)return-1;return 1};
Oiu=function(S){var c,Q=arguments.length;if(!Q)return null;if(Q==1)return arguments[0];var f=[],U=Infinity;for(c=0;c<Q;c++){for(var a=[],X=arguments[c];X;)a.unshift(X),X=X.parentNode;f.push(a);U=Math.min(U,a.length)}a=null;for(c=0;c<U;c++){X=f[0][c];for(var z=1;z<Q;z++)if(X!=f[z][c])return a;a=X}return a};
_.qk=function(S){return S.nodeType==9?S:S.ownerDocument||S.document};
zsT=function(S){return S.contentDocument||S.contentWindow.document};
_.ir=function(S,c){if("textContent"in S)S.textContent=c;else if(S.nodeType==3)S.data=String(c);else if(S.firstChild&&S.firstChild.nodeType==3){for(;S.lastChild!=S.firstChild;)S.removeChild(S.lastChild);S.firstChild.data=String(c)}else _.TE(S),S.appendChild(_.qk(S).createTextNode(String(c)))};
xHs={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};Feu={IMG:" ",BR:"\n"};eMp=function(S){var c;S.tagName=="A"&&S.hasAttribute("href")||S.tagName=="INPUT"||S.tagName=="TEXTAREA"||S.tagName=="SELECT"||S.tagName=="BUTTON"?c=!S.disabled&&(!S.hasAttribute("tabindex")||Bdi(S)):c=S.hasAttribute("tabindex")&&Bdi(S);return c};
Bdi=function(S){S=S.tabIndex;return typeof S==="number"&&S>=0&&S<32768};
nlT=function(S){var c=[];ITi(S,c,!0);S=c.join("");S=S.replace(/ \xAD /g," ").replace(/\xAD/g,"");S=S.replace(/\u200B/g,"");S=S.replace(/ +/g," ");S!=" "&&(S=S.replace(/^\s*/,""));return S};
biz=function(S){var c=[];ITi(S,c,!1);return c.join("")};
ITi=function(S,c,Q){if(!(S.nodeName in xHs))if(S.nodeType==3)Q?c.push(String(S.nodeValue).replace(/(\r\n|\r|\n)/g,"")):c.push(S.nodeValue);else if(S.nodeName in Feu)c.push(Feu[S.nodeName]);else for(S=S.firstChild;S;)ITi(S,c,Q),S=S.nextSibling};
_.Nde=function(S,c,Q){if(!c&&!Q)return null;var f=c?String(c).toUpperCase():null;return _.Mk(S,function(U){return(!f||U.nodeName==f)&&(!Q||typeof U.className==="string"&&_.dp(U.className.split(/\s+/),Q))},!0)};
_.Mk=function(S,c,Q){S&&!Q&&(S=S.parentNode);for(Q=0;S;){if(c(S))return S;S=S.parentNode;Q++}return null};
Cx=function(S){this.JSC$7363_document_=S||_.QY.document||document};
_.J=Cx.prototype;_.J.getElement=function(S){return _.Q8(this.JSC$7363_document_,S)};
_.J.$=Cx.prototype.getElement;_.J.getElementsByTagName=function(S,c){return(c||this.JSC$7363_document_).getElementsByTagName(String(S))};
_.J.getElementsByTagNameAndClass=function(S,c,Q){return Hl(this.JSC$7363_document_,S,c,Q)};
_.J.$$=Cx.prototype.getElementsByTagNameAndClass;_.J.setProperties=RRd;_.J.JSC$7365_createDom=function(S,c,Q){return oYs(this.JSC$7363_document_,arguments)};
_.J.createElement=function(S){return mrd(this.JSC$7363_document_,S)};
_.J.createTextNode=function(S){return this.JSC$7363_document_.createTextNode(String(S))};
_.J.getWindow=function(){return this.JSC$7363_document_.defaultView};
var Iq=function(S){return _.yZh(S.JSC$7363_document_)};
_.J=Cx.prototype;_.J.appendChild=function(S,c){S.appendChild(c)};
_.J.append=c$i;_.J.canHaveChildren=q1;_.J.removeNode=_.K9;_.J.getChildren=_.M1;_.J.contains=_.dF;_.J=UV.prototype;_.J.getWidth=function(){return this.right-this.left};
_.J.getHeight=function(){return this.bottom-this.top};
_.J.clone=function(){return new UV(this.top,this.right,this.bottom,this.left)};
_.J.contains=function(S){return this&&S?S instanceof UV?S.left>=this.left&&S.right<=this.right&&S.top>=this.top&&S.bottom<=this.bottom:S.x>=this.left&&S.x<=this.right&&S.y>=this.top&&S.y<=this.bottom:!1};
_.J.expand=function(S,c,Q,f){_.c_(S)?(this.top-=S.top,this.right+=S.right,this.bottom+=S.bottom,this.left-=S.left):(this.top-=S,this.right+=Number(c),this.bottom+=Number(Q),this.left-=Number(f));return this};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(S,c){S instanceof _.pn?(this.left+=S.x,this.right+=S.x,this.top+=S.y,this.bottom+=S.y):(this.left+=S,this.right+=S,typeof c==="number"&&(this.top+=c,this.bottom+=c));return this};
_.J.scale=function(S,c){c=typeof c==="number"?c:S;this.left*=S;this.right*=S;this.top*=c;this.bottom*=c;return this};var Z$=function(S,c,Q,f){this.left=S;this.top=c;this.width=Q;this.height=f};
_.J=Z$.prototype;_.J.clone=function(){return new Z$(this.left,this.top,this.width,this.height)};
_.J.boundingRect=function(S){var c=Math.max(this.left+this.width,S.left+S.width),Q=Math.max(this.top+this.height,S.top+S.height);this.left=Math.min(this.left,S.left);this.top=Math.min(this.top,S.top);this.width=c-this.left;this.height=Q-this.top};
_.J.contains=function(S){return S instanceof _.pn?S.x>=this.left&&S.x<=this.left+this.width&&S.y>=this.top&&S.y<=this.top+this.height:this.left<=S.left&&this.left+this.width>=S.left+S.width&&this.top<=S.top&&this.top+this.height>=S.top+S.height};
_.J.distance=function(S){var c=S.x<this.left?this.left-S.x:Math.max(S.x-(this.left+this.width),0);S=S.y<this.top?this.top-S.y:Math.max(S.y-(this.top+this.height),0);return Math.sqrt(c*c+S*S)};
_.J.getSize=function(){return new _.xh(this.width,this.height)};
_.J.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};
_.J.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};
_.J.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};
_.J.translate=function(S,c){S instanceof _.pn?(this.left+=S.x,this.top+=S.y):(this.left+=S,typeof c==="number"&&(this.top+=c));return this};
_.J.scale=function(S,c){c=typeof c==="number"?c:S;this.left*=S;this.width*=S;this.top*=c;this.height*=c;return this};var $Hi,gO,xkz,Wl,Ydd,lTd,Cud,sKZ,Hid,p_d;_.GE=function(S,c,Q){if(typeof c==="string")(c=_.Kep(S,c))&&(S.style[c]=Q);else for(var f in c){Q=S;var U=c[f],a=_.Kep(Q,f);a&&(Q.style[a]=U)}};
$Hi={};_.Kep=function(S,c){var Q=$Hi[c];if(!Q){var f=_.bx(c);Q=f;S.style[f]===void 0&&(f=(_.Ir?"Webkit":_.Bg?"Moz":null)+dTM(f),S.style[f]!==void 0&&(Q=f));$Hi[c]=Q}return Q};
_.CD=function(S,c){var Q=_.qk(S);return Q.defaultView&&Q.defaultView.getComputedStyle&&(S=Q.defaultView.getComputedStyle(S,null))?S[c]||S.getPropertyValue(c)||"":""};
_.rF=function(S,c){return _.CD(S,c)||(S.currentStyle?S.currentStyle[c]:null)||S.style&&S.style[c]};
_.uhh=function(S){return _.rF(S,"position")};
gO=function(S,c,Q){if(c instanceof _.pn){var f=c.x;c=c.y}else f=c,c=Q;S.style.left=Wl(f,!1);S.style.top=Wl(c,!1)};
xkz=function(S){try{return S.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}};
_.wb=function(S){var c=_.qk(S),Q=new _.pn(0,0);if(S==(c?_.qk(c):document).documentElement)return Q;S=xkz(S);c=Iq(nn(c));Q.x=S.left+c.x;Q.y=S.top+c.y;return Q};
_.jp$=function(S,c,Q){if(c instanceof _.xh)Q=c.height,c=c.width;else if(Q==void 0)throw Error("ta");S.style.width=Wl(c,!0);S.style.height=Wl(Q,!0)};
Wl=function(S,c){typeof S=="number"&&(S=(c?Math.round(S):S)+"px");return S};
Ydd=function(S){return lTd(S)};
lTd=function(S){var c=Cud;if(_.rF(S,"display")!="none")return c(S);var Q=S.style,f=Q.display,U=Q.visibility,a=Q.position;Q.visibility="hidden";Q.position="absolute";Q.display="inline";S=c(S);Q.display=f;Q.position=a;Q.visibility=U;return S};
Cud=function(S){var c=S.offsetWidth,Q=S.offsetHeight,f=_.Ir&&!c&&!Q;return(c===void 0||f)&&S.getBoundingClientRect?(S=xkz(S),new _.xh(S.right-S.left,S.bottom-S.top)):new _.xh(c,Q)};
sKZ=function(S){var c=_.wb(S);S=lTd(S);return new Z$(c.x,c.y,S.width,S.height)};
Hid=function(S,c){S=S.style;"opacity"in S?S.opacity=c:"MozOpacity"in S?S.MozOpacity=c:"filter"in S&&(S.filter=c===""?"":"alpha(opacity="+Number(c)*100+")")};
_.Va=function(S,c){S.style.display=c?"":"none"};
_.DHi=function(S){return"rtl"==_.rF(S,"direction")};
p_d=function(S){var c=_.CD(S,"marginLeft"),Q=_.CD(S,"marginRight"),f=_.CD(S,"marginTop");S=_.CD(S,"marginBottom");return new UV(parseFloat(f),parseFloat(Q),parseFloat(S),parseFloat(c))};
_.hsd=function(S){var c=_.CD(S,"borderLeftWidth"),Q=_.CD(S,"borderRightWidth"),f=_.CD(S,"borderTopWidth");S=_.CD(S,"borderBottomWidth");return new UV(parseFloat(f),parseFloat(Q),parseFloat(S),parseFloat(c))};var eW=function(S){this.context=S};
eW.prototype.isSupported=function(S){return(S==null?0:S.attributionEnabled)||(S==null?void 0:S.beaconMethod)==="POST"||(S==null?0:S.customHeaders)||(S==null?0:S.customBody)||(S==null?0:S.keepAlive)?!1:!N1(this.context)};
eW.prototype.ping=function(){var S=this;return NZ(_.YD.apply(0,arguments).map(function(c){try{var Q=S.context.global,f=!1;f=f===void 0?!1:f;Q.google_image_requests||(Q.google_image_requests=[]);var U=drs("IMG",Q.document);f&&(U.attributionSrc="");U.src=c;Q.google_image_requests.push(U);return!0}catch(a){return!1}}).every(function(c){return c}))};
eW.prototype.pingWithHeadersAndBody=function(S,c,Q){this.ping.apply(this,_.Hs(_.YD.apply(3,arguments)))};var qdp=function(S){this.context=S};
qdp.prototype.isSupported=function(S){return Tdd&&!N1(this.context)&&vDZ(this.context)!==void 0&&!(S==null?0:S.attributionEnabled)&&(S==null?void 0:S.beaconMethod)!=="POST"&&!(S==null?0:S.customHeaders)&&!(S==null?0:S.customBody)};
qdp.prototype.makeBeacon=function(S,c){if(!this.isSupported(c))throw new Bl;return new kq(this.context,S)};
var Tdd=!1,kq=function(S,c){this.context=S;this.JSC$7384_urlWithoutToken=c;S=vDZ(this.context);if(S===void 0)throw Error();this.wrappedBeacon=new S(w_s(this),{})},w_s=function(S){S=S.JSC$7384_urlWithoutToken;
return(S.slice(-1)[0]==="&"?S:S+"&")+"pbapi=1"};
kq.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
kq.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
kq.prototype.setHeader=function(){};
_.Rh.Object.defineProperties(kq.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7384_urlWithoutToken},
set:function(S){this.JSC$7384_urlWithoutToken=S;this.wrappedBeacon.setURL(w_s(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(S){if(S!=="GET")throw new Bl;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var spz=function(S){this.context=S};
spz.prototype.isSupported=function(S){if((S==null?0:S.attributionEnabled)||(S==null?void 0:S.beaconMethod)==="GET"||(S==null?0:S.customHeaders)||(S==null?0:S.customBody)||(S==null?0:S.keepAlive))return!1;var c;return!N1(this.context)&&((c=this.context.global.navigator)==null?void 0:c.sendBeacon)!==void 0};
spz.prototype.ping=function(){var S=this;return NZ(_.YD.apply(0,arguments).map(function(c){var Q;return(Q=S.context.global.navigator)==null?void 0:Q.sendBeacon(c)}).every(function(c){return c}))};
spz.prototype.pingWithHeadersAndBody=function(S,c,Q){this.ping.apply(this,_.Hs(_.YD.apply(3,arguments)))};var OV=function(S){this.value=S},v5=function(S,c){return NZ(S.value).pipe(AH(c))},VN=new OV(!1),u5z=new OV(!0);var iN=function(S){this.value=S;this.releasedSubject=new JH};
iN.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.Rh.Object.defineProperties(iN.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7397_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var fWR=["FRAME","IMG","IFRAME"],y5z=/^[01](px)?$/,QNH=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},chZ=function(){var S=new QNH;
S.crossDomainLoadedDefault=!0;S.pendingImagesBlockLoad=!0;return S};var Mz$=function(S,c){var Q=zUo(S);if(Q)if(Q.onCreativeLoad)Q.onCreativeLoad(c);else{var f=c?[c]:[],U=function(a){for(var X=0;X<f.length;++X)try{f[X](1,a)}catch(z){}f={push:function(z){z(1,a)}}};
Q.onCreativeLoad=function(a){f.push(a)};
Q.setAttribute("data-creative-load-listener","");Q.addEventListener("creativeLoad",function(a){U(a.detail)});
_.QY.addEventListener("message",function(a){ORx(Q,U,a)})}};var rO=function(S,c){var Q=this;this.global=S;this.parentContext=c;this.JSC$7408_onVisibilityChange=this.document?s7(NZ(!0),TC(this.document,"visibilitychange")).pipe(GC(this.parentContext.performanceMonitor,748),CR(function(){return Q.getVisibilityState()}),d8()):NZ("visible");
this.document?TC(this.document,"DOMContentLoaded").pipe(GC(this.parentContext.performanceMonitor,739),r8(1)):NZ(VSo("DOMContentLoaded"))},$fZ=function(S){return S.document!==null&&S.document.visibilityState!==void 0};
rO.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
rO.prototype.querySelector=function(S){return this.document?this.document.querySelector(S):null};
rO.prototype.querySelectorAll=function(S){return this.document?_.VY(this.document.querySelectorAll(S)):[]};
rO.prototype.elementFromPoint=function(S,c){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;S=this.document.elementFromPoint(S,c);return S===null?null:new iN(S)};
var X1r=function(S,c,Q){Q=Q===void 0?!1:Q;if(c.ref===void 0||!S.document)return NZ(c).pipe(GC(S.parentContext.performanceMonitor,749));var f=new E7(1),U=function(){f.next(c)};
Q||Mz$(c.ref,U);UZH(c.ref,U);return f.pipe(GC(S.parentContext.performanceMonitor,749),r8(1))};
_.Rh.Object.defineProperties(rO.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return Tc(this.global,"document")?this.global.document||null:null}}});var xZY=_.oK(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),FoM=_.oK(["./reach_worklet.js"]),B8r=_.oK(["./reach_worklet.js"]),iiu=_.oK(["./reach_worklet.html"]),Ziu=_.oK(["./reach_worklet.js"]),GJH=_.oK(["./reach_worklet.js"]);_.QN(iiu);_.QN(Ziu);_.QN(GJH);var gb={left:0,top:0,width:0,height:0};var WeT,glh,esd,kJH,mA,dHd,vld,Pup,AVz,XjM,tzi,Vze;WeT=function(S,c,Q,f,U,a,X){var z="";S&&(z+=S+":");Q&&(z+="//",c&&(z+=c+"@"),z+=Q,f&&(z+=":"+f));U&&(z+=U);a&&(z+="?"+a);X&&(z+="#"+X);return z};
glh=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.Rk=function(S){return S.match(glh)};
_.q7=function(S,c){return S?c?decodeURI(S):decodeURIComponent(S):S};
esd=function(S){S=_.Rk(S)[1]||null;!S&&_.QY.self&&_.QY.self.location&&(S=_.QY.self.location.protocol.slice(0,-1));return S?S.toLowerCase():""};
_.ok=function(S){return _.q7(_.Rk(S)[3]||null,!0)};
_.Bi=function(S){return _.q7(_.Rk(S)[5]||null,!0)};
_.XSo=function(S){var c=S.indexOf("#");return c<0?null:S.slice(c+1)};
kJH=function(S){S=_.Rk(S);return WeT(S[1],S[2],S[3],S[4])};
_.r$u=function(S){S=_.Rk(S);return WeT(S[1],null,S[3],S[4])};
_.dN=function(S){S=_.Rk(S);return WeT(null,null,null,null,S[5],S[6],S[7])};
_.m1=function(S){var c=S.indexOf("#");return c<0?S:S.slice(0,c)};
mA=function(S,c){S=_.Rk(S);c=_.Rk(c);return S[3]==c[3]&&S[1]==c[1]&&S[4]==c[4]};
dHd=function(S,c){if(S){S=S.split("&");for(var Q=0;Q<S.length;Q++){var f=S[Q].indexOf("="),U=null;if(f>=0){var a=S[Q].substring(0,f);U=S[Q].substring(f+1)}else a=S[Q];c(a,U?ci(U):"")}}};
vld=function(S){var c=S.indexOf("#");c<0&&(c=S.length);var Q=S.indexOf("?");if(Q<0||Q>c){Q=c;var f=""}else f=S.substring(Q+1,c);return[S.slice(0,Q),f,S.slice(c)]};
Pup=function(S,c){return c?S?S+"&"+c:c:S};
_.Lez=function(S,c){if(!c)return S;S=vld(S);S[1]=Pup(S[1],c);return S[0]+(S[1]?"?"+S[1]:"")+S[2]};
_.El$=function(S,c,Q){if(Array.isArray(c))for(var f=0;f<c.length;f++)_.El$(S,String(c[f]),Q);else c!=null&&Q.push(S+(c===""?"":"="+_.vY(c)))};
_.nl=function(S){var c=[],Q;for(Q in S)_.El$(Q,S[Q],c);return c.join("&")};
_.V0=function(S,c){c=_.nl(c);return _.Lez(S,c)};
_.dO=function(S,c,Q){Q=Q!=null?"="+_.vY(Q):"";return _.Lez(S,c+Q)};
AVz=function(S,c,Q,f){for(var U=Q.length;(c=S.indexOf(Q,c))>=0&&c<f;){var a=S.charCodeAt(c-1);if(a==38||a==63)if(a=S.charCodeAt(c+U),!a||a==61||a==38||a==35)return c;c+=U+1}return-1};
XjM=/#|$/;_.v1=function(S,c){var Q=S.search(XjM),f=AVz(S,0,c,Q);if(f<0)return null;var U=S.indexOf("&",f);if(U<0||U>Q)U=Q;f+=c.length+1;return ci(S.slice(f,U!==-1?U:0))};
tzi=/[?&]($|#)/;_.c2=function(S,c){for(var Q=S.search(XjM),f=0,U,a=[];(U=AVz(S,f,c,Q))>=0;)a.push(S.substring(f,U)),f=Math.min(S.indexOf("&",U)+1||Q,Q);a.push(S.slice(f));return a.join("").replace(tzi,"$1")};
_.WG=function(S,c,Q){return _.dO(_.c2(S,c),c,Q)};
Vze=function(S){var c=vld(window.location.href),Q=c[1],f=[];Q&&Q.split("&").forEach(function(U){var a=U.indexOf("=");a=a>=0?U.slice(0,a):U;S.hasOwnProperty(a)||f.push(U)});
c[1]=Pup(f.join("&"),_.nl(S));return c[0]+(c[1]?"?"+c[1]:"")+c[2]};var M6x=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(M6x,_.Ga);M6x.prototype.getVersion=function(){return _.MJ(this,2)};var sNc=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(sNc,_.Ga);var DZH=function(S,c){return _.bN(S,2,c)},wsZ=function(S,c){return _.bN(S,3,c)};
sNc.prototype.getModel=function(){return _.MJ(this,4)};
var hUr=function(S,c){return _.bN(S,4,c)},HRp=function(S,c){return _.bN(S,5,c)},T8o=function(S,c){return _.bN(S,9,c)},Ciz=function(S,c){return pW(S,10,c)},Y7r=function(S,c){return _.aj(S,11,c)},psp=function(S,c){return _.bN(S,1,c)},q7z=function(S,c){return _.aj(S,7,c)};var jNY="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var tH=function(S,c,Q,f){S=S===void 0?window:S;c=c===void 0?null:c;Q=Q===void 0?new OrM:Q;f=f===void 0?IWZ():f;Urd.call(this);var U=this;this.global=S;this.debugChannel=c;this.performanceMonitor=Q;this.onPageHide=qZ(function(){return TC(U.global,"pagehide")}).pipe(GC(this.performanceMonitor,941));
this.onLoad=qZ(function(){return TC(U.global,"load")}).pipe(GC(this.performanceMonitor,738),r8(1));
this.onResize=qZ(function(){return TC(U.global,"resize")}).pipe(GC(this.performanceMonitor,741));
this.onMessage=qZ(function(){return TC(U.global,"message")}).pipe(GC(this.performanceMonitor,740));
this.document=new rO(this.global,this);this.timeProvider=new zRl(new Fph(this.intrinsicFunctionNamespace,this.performanceMonitor),new xri(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new AZ_(new IZJ(this),new qdp(this),new Il(this,new Npd(this)),new Il(this,new spz(this)),new Il(this,new eW(this)))};
_.C(tH,Urd);var N1=function(S){var c=S.global;return!!S.global.HTMLFencedFrameElement&&!!c.fence&&typeof c.fence.reportEvent==="function"};
_.J=tH.prototype;_.J.reportFencedFrameEvent=function(S){N1(this)&&this.global.fence.reportEvent(S)};
_.J.getOnBackgrounded=function(){return this.onPageHide.pipe(GC(this.performanceMonitor,942),AH(this.queue),CR(function(){}))};
_.J.postMessage=function(S,c,Q){Q=Q===void 0?[]:Q;this.global.postMessage(S,c,Q)};
_.J.getWidth=function(){return EV(this.global)?this.global.width:0};
_.J.getHeight=function(){return EV(this.global)?this.global.height:0};
_.J.isMobile=function(){return $rs()||uo_()};
var Z0=function(S,c){try{var Q=Kox(c,S.global,S.isMobile());return{left:Q.left,top:Q.top,width:Q.getWidth(),height:Q.getHeight()}}catch(f){return gb}};
tH.prototype.validate=function(){var S=this.beaconFactory.isSupported()||N1(this);return this.global&&this.timeProvider.available()&&S};
var Lcz=function(S){return(S=ZRM(S.global))?Ah(S):null};
_.Rh.Object.defineProperties(tH.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(S){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!EV(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}}});_.Rsu=!_.Fa&&!_.sT();var jjM=function(S){return S};var Yhr=function(S){return S.pipe(MZ(function(c){var Q=c.endOfSessionReason;var f;return((f=c.viewable)==null?void 0:f.extrapolateToNow().value)||Q!=void 0}),r8(1),g8())};var rhR=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},dZZ=function(S){var c=S.sequenceNumber.toString(10).padStart(2,"0");
c=""+S.startTime+c;S.sequenceNumber<99&&S.sequenceNumber++;return c};var K2x=S6(oN(function(S){return S.endOfSessionReason===void 0}),CR(function(S){return Object.assign({},S,{timestamps:$h(S)})}),MZ(function(S){var c=S.viewable;
S=S.timestamps;var Q;return(Q=c==null?void 0:c.extrapolateUsingTimestampMap(S).value)!=null?Q:!1}),CR(function(S){var c=S.beaconFactory;
var Q=S.timestampedExposureHistory;var f=S.timeOnScreen;var U=S.binaryContext;S=S.timestamps;if(c===void 0||Q===void 0||f===void 0||U===void 0)return!1;if(f.extrapolateUsingTimestampMap(S).value.every(function(a){return a>=0}))return!0;
Q=Q.map(function(a){return a.timestamp+":"+a.value}).join(",");
f=uN({bin:U,tos:f},S);c.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+f+("&eh="+Q)).sendNow();return!0}),oN(function(S){return!S}),g8());var PiZ=function(S){return{id:S.pingId,mcvt:S.maxConsecutiveViewTime,p:S.creativePosition,asp:S.adSpeedPosition,tm:S.totalMeasurementTime,tu:S.totalUnviewedTime,mtos:S.maxTimeOnScreen,tos:S.timeOnScreen,v:S.binaryVersion,bin:S.binaryContext,avms:S.measurementStrategy,bs:S.browserSize,mc:S.maximumExposure,"if":S.crossDomainIframeState,vu:S.delayedImpressionJsState,app:S.inApp,mse:S.mraidError,mtop:S.mraidSituation,itpl:S.injectedTemplateId,adk:S.adKey,exk:S.awbidKey,rs:S.requestSource,la:S.isLargeAd,
cr:S.isContentRecommendationAd,uach:S.userAgentClientHints,vs:S.viewState,r:S.reasonCode,pay:S.hasCpmavUrl,co:S.clientPingOrderCounter,rst:S.adRenderStartTime,rpt:S.adRenderPeriodTime,isd:S.initialScrollDepth,lsd:S.loadedScrollDepth,context:S.errorContext,msg:S.errorMessage,stack:S.errorStack,name:S.errorName,ec:S.hasElementChanged,sfr:S.strategyFailureReasons,met:S.creativeSearchResult,wmsd:S.webMeasurementStartDiagnostic,pv:S.pageVisible,epv:S.eosPageVisible,pbe:S.inStatefulBeaconExperiment,fle:S.inFetchLaterBeaconExperiment,
vae:S.inViewableAttributionExperiment,spb:S.supportsPendingBeacon,sfl:S.supportsFetchLater,ffslot:S.isFencedFrameSlotTurtlex,reach:S.sharedStorageReachMode,io2:S.v2VisibilityBitVector,rxdbg:S.rxDebugger,omida:S.omidAppId,omidp:S.omidPartner,omidpv:S.omidPartnerVersion,omidor:S.omidOcclusionReasons,omidv:S.omidVersion,omids:S.omidSessionType,omidam:S.omidAccessMode,omidct:S.omidCreativeType,omidia:S.omidInApp,omiddc:S.omidDeviceCategory,omidlat:S.omidLastActivity,omiddit:S.omidDeviceIdleTime,qid:S.errorEscapedQueryId}};var l3Y=function(S){var c=[];return S.pipe(CR(function(Q){var f=Q.beaconFactory,U=Q.fetchBeaconFactory,a=Q.timeOnScreen,X=Q.timeOnScreenUrlPrefixes,z=Q.payloadMapper,x=Q.timeOnScreenPingId,I=Q.timeOnScreenReason,n=Q.urlSerializer,b=Q.viewable,N=Q.hasImpressionFired,l=Q.inStatefulBeaconExperiment,H=Q.supportsPendingBeacon,q=Q.supportsFetchLater,w=Q.turtlexReportEventData;if(!Q.geometryMeasurable||!N||Q.maxTimeOnScreen===void 0||a===void 0||X===void 0||z===void 0||x===void 0||n===void 0||f===void 0)return!1;
if(Q.isTurtlex){if(I===void 0)return!1;X=Q.reportFencedFrameEvent;if(!X)return!1;X({eventType:"active-view-time-on-screen",eventData:w!=null?w:"",destination:["buyer"]});return!0}if(!(l||q||I))return!1;w=$h(Q);var g;b=(g=b==null?void 0:b.extrapolateUsingTimestampMap(w).value)!=null?g:!1;g=n(Object.assign({},Q,{pingId:x,viewState:b?4:3,reasonCode:I!=null?I:"u",payloadMapper:z,urlPrefixes:X}),w);if(l){for(;c.length>X.length;)Q=void 0,(Q=c.shift())==null||Q.deactivate();g.forEach(function(E,v){v>=c.length?
c.push(f.makeBeacon(E)):c[v].url=E});
return H&&U&&I!==void 0?(g.forEach(function(E){U.makeBeacon(E).sendNow()}),!0):I!==void 0}if(H&&U&&I!==void 0)return g.forEach(function(E){U.makeBeacon(E).sendNow()}),!0;
if(q&&U){for(;c.length>X.length;)H=void 0,(H=c.shift())==null||H.deactivate();var r=n(Object.assign({},Q,{pingId:x,viewState:b?4:3,reasonCode:I!=null?I:"u",payloadMapper:z,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),w)[0];g.forEach(function(E,v){v>=c.length?c.push(f.makeBeacon(r,{endOfSession:!0})):c[v].url=r});
return I!==void 0?(g.forEach(function(E){U.makeBeacon(E).sendNow()}),!0):I!==void 0}return I!==void 0?(g.forEach(function(E){f.makeBeacon(E).sendNow()}),!0):!1}),oN(function(Q){return!Q}),g8())};var CGz=S6(MZ(function(S){return S.immediateUrlPrefixes!==void 0&&S.payloadMapper!==void 0&&S.urlSerializer!==void 0&&S.inferredPingId!==void 0&&S.beaconFactory!==void 0}),MZ(function(S){return mZz(S)!==null}),yhZ(function(S){return S.activeViewUnmeasurableEvent},function(S){return S.emit}),CR(function(S){if(S.isTurtlex){var c=S.reportFencedFrameEvent;
if(c){var Q;c({eventType:"active-view-unmeasurable",eventData:(Q=S.turtlexReportEventData)!=null?Q:"",destination:["buyer"]})}}else{Q=void 0;var f=mZz(S);if(f==="x"){var U,a=(U=S.geometricMeasurementErrors)!=null?U:S.contextValidationErrors;a&&(c=a.stack,Q=a.message)}S.urlSerializer(Object.assign({},S,{urlPrefixes:S.immediateUrlPrefixes,payloadMapper:S.payloadMapper,pingId:S.inferredPingId,viewState:2,reasonCode:f,errorMessage:Q,errorStack:c}),$h(S)).forEach(function(X){S.beaconFactory.makeBeacon(X).sendNow()})}}),
r8(1),g8());var SVZ=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var NFx=S6(MZ(function(S){return S.payloadMapper!==void 0&&S.immediateUrlPrefixes!==void 0&&S.urlSerializer!==void 0&&S.inferredPingId!==void 0&&S.beaconFactory!==void 0}),CR(function(S){return Object.assign({},S,{timestamps:$h(S)})}),MZ(function(S){var c=S.viewable;
var Q=S.hasImpressionFired;S=S.timestamps;var f;return!!Q&&((f=c==null?void 0:c.extrapolateUsingTimestampMap(S).value)!=null?f:!1)}),yhZ(function(S){return S.activeViewViewableEvent},function(S){return S.emit}),CR(function(S){var c=S.beaconFactory,Q=S.turtlexReportEventData;
if(S.isTurtlex){var f=S.reportFencedFrameEvent;if(!f)return!1;f({eventType:"active-view-viewable",eventData:Q!=null?Q:"",destination:["buyer"]});return!0}Q=S.urlSerializer(Object.assign({},S,{urlPrefixes:S.immediateUrlPrefixes,payloadMapper:S.payloadMapper,pingId:S.inferredPingId,viewState:4,reasonCode:"v"}),S.timestamps);(f=S.cpmavUrls)&&f.length>0&&S.viewUrlSerializer&&S.viewUrlSerializer(f,S).forEach(function(U){c.makeBeacon(U).sendNow()});
(f=S.viewableRelayUrls)&&f.length>0&&S.viewUrlSerializer&&S.viewUrlSerializer(f,S).forEach(function(U){c.makeBeacon(U).sendNow()});
Q.forEach(function(U){c.makeBeacon(U,{attributionEnabled:S.isViewableAttributionEnabled}).sendNow()});
return!0}),oN(function(S){return!S}),g8());var dkz=CR(function(S){return[S.value.topWindowViewportExternalGeometry.width,S.value.topWindowViewportExternalGeometry.height]});var Gc=function(S,c){this.callback=S;this.options=c;this.intersectionObserverV2=this.intersectionObserverV1=null},CNM=function(S,c){c?S.intersectionObserverV2||(c=Object.assign({},S.options,{delay:100,
trackVisibility:!0}),S.intersectionObserverV2=new IntersectionObserver(S.callback,c)):S.intersectionObserverV1||(S.intersectionObserverV1=new IntersectionObserver(S.callback,S.options))},y$d=function(S,c){S=c?S.intersectionObserverV2:S.intersectionObserverV1;
if(!S)throw new JZd;return S};
Gc.prototype.observe=function(S,c){y$d(this,S).observe(c)};
Gc.prototype.unobserve=function(S,c){y$d(this,S).unobserve(c)};
Gc.prototype.disconnect=function(S){y$d(this,S).disconnect()};
Gc.prototype.takeRecords=function(S){return y$d(this,S).takeRecords()};var sV={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:gb,topWindowViewportExternalGeometry:gb,measurementRequests:new JH,elementGeometrySourceName:"ns",elementGeometry:gb,intersectionGeometry:gb,viewportLocalAppOffset:{x:0,y:0}};var w5p=eC(S6(CR(function(S){var c;return(c=S.exposureOverride)!=null?c:Dkc(S)}),CR(function(S){return isFinite(S)?S:0}))),ghc=eC(S6(CR(function(S){var c;
return(c=S.exposureOverride)!=null?c:Dkc(S)}),CR(function(S){return isFinite(S)?S:-1})));var vl=function(S,c){this.a=S;this.b=c;if(S.clock.timeline!==c.clock.timeline)throw Error();};
vl.prototype.equivalentTo=function(S){return S instanceof vl?this.a.equivalentTo(S.a)&&this.b.equivalentTo(S.b):!1};
vl.prototype.extrapolateToTime=function(S){var c=this.a.extrapolateToTime(S).value,Q=this.b.extrapolateToTime(S).value;return{timestamp:S,value:[c,Q]}};
_.Rh.Object.defineProperties(vl.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 S=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),c=this.a.lastMeasurement.timestamp.equals(S)?this.a.lastMeasurement.value:this.a.extrapolateToTime(S).value,Q=this.b.lastMeasurement.timestamp.equals(S)?this.b.lastMeasurement.value:this.b.extrapolateToTime(S).value;return{timestamp:S,value:[c,Q]}}}});var Pl=function(S,c){this.input=S;this.mapFunction=c;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
Pl.prototype.equivalentTo=function(S){return S instanceof Pl?this.input.equivalentTo(S.input)&&this.mapFunction===S.mapFunction:!1};
Pl.prototype.extrapolateToTime=function(S){S=this.input.extrapolateToTime(S);return{timestamp:S.timestamp,value:this.mapFunction(S.value)}};
_.Rh.Object.defineProperties(Pl.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var Lx=function(){};
Lx.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
Lx.prototype.extrapolateUsingTimestampMap=function(S){var c=this.clock.timeline,Q,f=(Q=S.get(c))!=null?Q:this.clock.now();S.set(c,f);return this.extrapolateToTime(f)};
Lx.prototype.map=function(S){return new old(this,S)};
Lx.prototype.joinWith=function(S){return new mHT(this,S)};
var mHT=function(){vl.apply(this,arguments);this.map=Lx.prototype.map;this.joinWith=Lx.prototype.joinWith;this.extrapolateToNow=Lx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Lx.prototype.extrapolateUsingTimestampMap};
_.C(mHT,vl);var old=function(){Pl.apply(this,arguments);this.map=Lx.prototype.map;this.joinWith=Lx.prototype.joinWith;this.extrapolateToNow=Lx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Lx.prototype.extrapolateUsingTimestampMap};
_.C(old,Pl);var rb=function(S,c){this.lastMeasurement=c;this.extrapolateToNow=Lx.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=Lx.prototype.extrapolateUsingTimestampMap;this.map=Lx.prototype.map;this.joinWith=Lx.prototype.joinWith;this.clock=S};
rb.prototype.equivalentTo=function(S){return S.active};
rb.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.Rh.Object.defineProperties(rb.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var rHZ=CR(function(S){if(S.value.viewportGeometrySourceName==="omid"){if(S.value.elementGeometrySourceName==="nio")return"omio";if(S.value.elementGeometrySourceName==="geo")return"omgeo"}return S.value.elementGeometrySourceName==="geo"||S.value.elementGeometrySourceName==="nio"?S.value.viewportGeometrySourceName:S.value.elementGeometrySourceName});var hKp=S6(MZ(function(S){return!isNaN(S)}),Vq(function(S,c){return isNaN(S)?c:Math.min(S,c)},NaN),d8());var sqx=eC(S6(CR(function(S){return S.intersectionGeometry.width*S.intersectionGeometry.height/(S.exposedViewportLocalGeometry.width*S.exposedViewportLocalGeometry.height)}),CR(function(S){return isFinite(S)?Math.min(1,S):0})));var kco=S6(eC(CR(function(S){S=S.exposureOverride?S.elementGeometry.width*S.elementGeometry.height*S.exposureOverride/(S.topWindowViewportExternalGeometry.width*S.topWindowViewportExternalGeometry.height):S.intersectionGeometry.width*S.intersectionGeometry.height/(S.topWindowViewportExternalGeometry.width*S.topWindowViewportExternalGeometry.height);return isFinite(S)?S:0})));var PNx=function(S,c){var Q=this;this.timeProvider=S;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=c.pipe(d8()).subscribe(function(f){Ln(Q);Q.measurementRequestObserver=f})},EhR=function(S,c){Ln(S);
S.lastMeasurementRequest=S.timeProvider.setTimeout(function(){var Q;return void((Q=S.measurementRequestObserver)==null?void 0:Q.next())},c)},Ln=function(S){S.lastMeasurementRequest!==null&&S.timeProvider.clearTimeout(S.lastMeasurementRequest);
S.lastMeasurementRequest=null};
PNx.prototype.dispose=function(){Ln(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var SZd=function(){};var I3p=function(S,c){this.context=S;this.strategies=c};
_.C(I3p,SZd);I3p.prototype.buildGeometrySource=function(S,c){var Q=this.strategies.map(function(a){return a.buildGeometrySource(S,c)}),f=ohz(Q.map(function(a){return a.geometrySource})),U=f.capturedErrors.pipe(cUJ());
return{geometrySource:f.chain.pipe(AH(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:U,strategyErrors:f.capturedErrors}].concat(_.Hs(Q.map(function(a){return a.additionalOutputs}))))}};
var cUJ=function(){return Vq(function(S,c){c instanceof lN?S.push(c.measurementStrategyFailureReason):S.push(-1);return S},[])};var b9Y=function(S,c){this.context=S;this.poller=c};
_.C(b9Y,SZd);b9Y.prototype.buildGeometrySource=function(S,c){var Q=mko(coc(this.context,this.poller),Bbo(this.context,c.requestSource));return{geometrySource:yHp(S.measurableCreative.pipe(Q),c.inApp),additionalOutputs:{}}};var nxr=function(S,c,Q){Q=Q===void 0?$kz(S,c):Q;this.context=S;this.intersectionObserverStrategy=Q};
_.C(nxr,SZd);nxr.prototype.buildGeometrySource=function(S,c){var Q=this.intersectionObserverStrategy(c.useV2);return{geometrySource:yHp(S.measurableCreative.pipe(Q,u4z(this.context)),c.inApp),additionalOutputs:{}}};var QgH=function(S,c,Q){var f=f===void 0?Symbol():f;this.element=S;this.immediateUrls=c;this.timeOnScreenUrls=Q;this.symbol=f};var P5=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),a3T=Object.freeze([1,.75,P5.exposureThreshold,P5.largeAdExposureThreshold,0]);var wfY=function(S,c){c=c===void 0?36E5:c;var Q=Q===void 0?!0:Q;this.creatives=new JH;this.elementsToUnregister=new JH;this.elementMap=new Map;var f=new tH(window,null);f.beaconFactory=new Il(f,new eW(f));BFz(f,this.creatives,this.elementsToUnregister,S,c,Q).subscribe()},ier=function(S,c,Q,f){if(!S.elementMap.has(c)){var U=new iN(c);
S.elementMap.set(c,U);S.creatives.next(new QgH(U,Q,f))}},MUr=function(S,c){S.elementsToUnregister.next(c);
var Q=S.elementMap.get(c);Q!==void 0&&(Q.release(),S.elementMap.delete(c))};var nkp=function(S){var c=S.url;S=S.uaDataValues;this.JSC$7513_url_=c;this.uaDataValues_=S;this.suid_=(new Date).getTime()-17040672E5;this.urlParamValues_={};for(var Q=/[?&]([^&=]+)=([^&]*)/g;S=Q.exec(c);)this.urlParamValues_[S[1]]=S[2]},bJY=function(S){S=S.uaDataValues_;
if(!S)return"";var c=Rq("uap",S.platform)+Rq("uapv",S.platformVersion)+Rq("uafv",S.uaFullVersion)+Rq("uaa",S.architecture)+Rq("uam",S.model)+Rq("uab",S.bitness);S.fullVersionList&&(c+="&uafvl="+encodeURIComponent(S.fullVersionList.map(function(Q){return encodeURIComponent(Q.brand)+";"+encodeURIComponent(Q.version)}).join("|")));
S.wow64!=null&&(c+="&uaw="+Number(S.wow64));return c.slice(1)};var ER=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ER,_.Ga);ER.prototype.getId=function(){return _.MJ(this,1)};
ER.prototype.setId=function(S){return _.oC(this,1,S)};var tM=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(tM,_.Ga);tM.prototype.getSeconds=function(){return wr(this,1)};
tM.prototype.setSeconds=function(S){return _.Ch(this,1,w1(S),"0")};_.rD=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(_.rD,_.Ga);_.rD.prototype.getSeconds=function(){return wr(this,1)};
_.rD.prototype.setSeconds=function(S){return _.Ch(this,1,w1(S),"0")};
_.fBz=function(S){var c=Number(Zx(S,1));S=_.Qa(S,2);return new Date(c*1E3+S/1E6)};var VR=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(VR,_.Ga);VR.prototype.getUrl=function(){return _.MJ(this,1)};
VR.prototype.setUrl=function(S){return _.oC(this,1,S)};
VR.prototype.getHeight=function(){return _.Qa(this,2)};
VR.prototype.getWidth=function(){return _.Qa(this,3)};var Rl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Rl,_.Ga);Rl.prototype.getAspectRatio=function(){return sY(this,1)};
Rl.prototype.setAspectRatio=function(S){return _.Ch(this,1,_.zO(S),0)};
Rl.prototype.getDuration=function(){return _.JB(this,tM,2)};var UGp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(UGp,_.Ga);var JUs=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(JUs,_.Ga);var aBe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(aBe,_.Ga);var AUl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(AUl,_.Ga);var X8l=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(X8l,_.Ga);var OTJ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(OTJ,_.Ga);var z2s=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(z2s,_.Ga);var xGd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(xGd,_.Ga);var FVz=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(FVz,_.Ga);var yR=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(yR,_.Ga);var mC=[2,4,5,6,7];var B1l=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(B1l,_.Ga);var hP=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(hP,_.Ga);_.J=hP.prototype;_.J.getId=function(){return _.JB(this,ER,1)};
_.J.setId=function(S){return _.Qx(this,1,S)};
_.J.getName=function(){return _.MJ(this,2)};
_.J.setDescription=function(S){return _.oC(this,3,S)};
_.J.getUrl=function(){return _.MJ(this,8)};
_.J.setUrl=function(S){return _.oC(this,8,S)};
var S1=function(S){return _.St(S,VR,10,_.c1())};
hP.prototype.getOwner=function(S){var c=_.uY(this,40,_.eN,3,!0);W_(c,S);return c[S]};
hP.prototype.getVersion=function(){return wr(this,45)};
var cH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(cH,_.Ga);_.IBH=[0,yiz,mvY];_.n0u=[0,yiz,mvY];var bTd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(bTd,_.Ga);var QE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(QE,_.Ga);QE.prototype.getStatus=function(){return _.iR(this,1)};
QE.prototype.removeItem=function(S){return I_T(this,2,S)};var N1J=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(N1J,_.Ga);N1J.prototype.getName=function(){return _.MJ(this,8)};var f0=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(f0,_.Ga);f0.prototype.getCommand=function(){return _.iR(this,1)};
f0.prototype.getSource=function(){return _.JB(this,N1J,2)};
f0.prototype.setVisible=function(S){return _.pP(this,5,S)};
f0.prototype.removeItem=function(S){return I_T(this,7,S)};var KVd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(KVd,_.Ga);KVd.prototype.getCommand=function(){return _.iR(this,1)};
KVd.prototype.removeItem=function(S){return I_T(this,4,S)};
var $GT=_.SS(KVd);var Un=function(S,c,Q){Q=Q===void 0?Error():Q;var f=Error.call(this);this.message=f.message;"stack"in f&&(this.stack=f.stack);this.code=S;c+=":";Q instanceof Error?(this.message=c+Q.message,this.stack=Q.stack||""):(this.message=c+String(Q),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(Un,Error);_.C9=function(){this.JSC$7571_disposed_=this.JSC$7571_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.C9.prototype.JSC$7571_disposed_=!1;_.C9.prototype.isDisposed=function(){return this.JSC$7571_disposed_};
_.C9.prototype.dispose=function(){this.JSC$7571_disposed_||(this.JSC$7571_disposed_=!0,this.disposeInternal())};
_.C9.prototype[Symbol.dispose]=function(){this.dispose()};
_.F5=function(S,c){S.addOnDisposeCallback(_.u2(_.yN,c))};
_.C9.prototype.addOnDisposeCallback=function(S,c){this.JSC$7571_disposed_?c!==void 0?S.call(c):S():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),c&&(S=S.bind(c)),this.onDisposeCallbacks_.push(S))};
_.C9.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var J3=function(S){_.C9.call(this);this.wpc=S};
_.C(J3,_.C9);J3.prototype.xWY=function(){return this.wpc.f()};
J3.prototype.ciW=function(S){return this.wpc.c(S)};
J3.prototype.o8=function(S){return this.wpc.m(qhp(S))};
J3.prototype.zv=function(S){return this.wpc.mws(qhp(S))};
var mW=function(S){_.C9.call(this);var c=this;this.jX=S;this.d7p="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.nrB=void 0;this.mJc=this.jX.p;this.gL0=this.x52.bind(this);this.addOnDisposeCallback(function(){return void uEd(c)})};
_.C(mW,_.C9);var jgh=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1){if(!S.jX.wpc)throw new Un(30,"NWA");return S.ufm?Q.return(S.ufm):_.F(Q,S.jX.wpc(),2)}c=Q.yieldResult;S.ufm=new J3(c);return Q.return(S.ufm)})};
mW.prototype.snapshot=function(S){return this.jX.s(Object.assign({},S.rD&&{c:S.rD},S.mdU&&{s:S.mdU},S.sAD!==void 0&&{p:S.sAD}))};
mW.prototype.x52=function(S){this.jX.e(S)};
mW.prototype.p5U=function(S,c){return this.jX.c(S,c,!1)};
var uEd=function(S){S.nrB!==void 0&&(S.d7p.forEach(function(c){var Q;(Q=S.nrB)==null||Q.removeEventListener(c,S.gL0)}),S.nrB=void 0)};
mW.prototype.mUU=function(){return this.jX.l()};var lBd,aa=function(){_.C9.apply(this,arguments);this.iTC=1;this[lBd]=this.dispose};
_.C(aa,_.C9);aa.prototype.share=function(){if(this.isDisposed())throw Error("ua");this.iTC++;return this};
aa.prototype.dispose=function(){--this.iTC||_.C9.prototype.dispose.call(this)};
lBd=Symbol.dispose;var RxY=function(S){this.ih4=S;S.addNewEventMetric("/client_streamz/bg/frs",_.Jo("mk"))};
RxY.prototype.record=function(S,c){this.ih4.record("/client_streamz/bg/frs",S,c)};
var Sjx=function(S){this.ul4=S;S.addNewEventMetric("/client_streamz/bg/wrl",_.Jo("mn"),Uh("ac"),Uh("sc"),_.Jo("rk"),_.Jo("mk"))};
Sjx.prototype.record=function(S,c,Q,f,U,a){this.ul4.record("/client_streamz/bg/wrl",S,c,Q,f,U,a)};
var oxo=function(S){this.jAs=S;S.addNewCounter("/client_streamz/bg/ec",_.Jo("en"),_.Jo("mk"))};
oxo.prototype.increment=function(S,c){this.jAs.JSC$7824_incrementCounter("/client_streamz/bg/ec",S,c)};
var mfp=function(S){this.sAa=S;S.addNewEventMetric("/client_streamz/bg/el",_.Jo("en"),_.Jo("mk"))};
mfp.prototype.record=function(S,c,Q){this.sAa.record("/client_streamz/bg/el",S,c,Q)};
var yoz=function(S){this.vgL=S;S.addNewCounter("/client_streamz/bg/cec",Uh("ec"),_.Jo("mk"))};
yoz.prototype.increment=function(S,c){this.vgL.JSC$7824_incrementCounter("/client_streamz/bg/cec",S,c)};
var ctc=function(S){this.gga=S;S.addNewCounter("/client_streamz/bg/po/csc",Uh("cs"),_.Jo("mk"))};
ctc.prototype.increment=function(S,c){this.gga.JSC$7824_incrementCounter("/client_streamz/bg/po/csc",S,c)};
var QxR=function(S){this.hqZ=S;S.addNewCounter("/client_streamz/bg/po/ctav",_.Jo("av"),_.Jo("mk"))};
QxR.prototype.increment=function(S,c){this.hqZ.JSC$7824_incrementCounter("/client_streamz/bg/po/ctav",S,c)};
var ffx=function(S){this.y60=S;S.addNewCounter("/client_streamz/bg/po/cwsc",_.Jo("su"),_.Jo("mk"))};
ffx.prototype.increment=function(S,c){this.y60.JSC$7824_incrementCounter("/client_streamz/bg/po/cwsc",S,c)};var xjY=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(xjY,_.Ga);var zqT=function(S,c){return _.YZ(S,3,c,yZo)};var YZT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(YZT,_.Ga);var CEs=[1,2,3];var HT_=[0,CEs,_.Uwz,SAZ,fyx];var DGe=[0,_.Rr,[0,t2o,_.LW]];var p8d=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(p8d,_.Ga);var h2e=[1,2,3];var qZi=[0,h2e,owY,V2M,_.yQ,DGe];var T1_=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(T1_,_.Ga);var w8p=[0,_.Rr,HT_,qZi];var sgd=[0,_.VQ];var MNH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(MNH,_.Ga);var iTu=[0,_.VQ,-1,_.tP];var ZTz=[0,_.VQ,-1,_.EY,_.tP];var GOJ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(GOJ,_.Ga);var WVd=[1,2,3];var g0h=[0,WVd,_.yQ,iTu,_.yQ,ZTz,_.yQ,sgd];var e2u=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(e2u,_.Ga);e2u.prototype.JSC$7644_serializeBinary=cjM([0,_.VQ,g0h,JXp,_.Rr,w8p,cXH,QoR]);var kOH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(kOH,_.Ga);var v0T=function(S){var c=new e2u;c=_.bN(c,1,S.JSC$7760_metricName);var Q=rUu(S);c=_.YZ(c,3,Q,_.GO);Q=[];for(var f=[],U=_.A(S.cellMap.keys()),a=U.next();!a.done;a=U.next())f.push(a.value.split(","));for(U=0;U<f.length;U++){a=f[U];for(var X=S.cellType,z=S.getCells(a)||[],x=[],I=0;I<z.length;I++){var n=z[I],b=n&&n.cellValue;n=new p8d;switch(X){case 3:b=Number(b);Number.isFinite(b)&&b5(n,1,h2e,w1(b));break;case 2:b5(n,2,h2e,_.zO(Number(b)))}x.push(n)}X=x;for(z=0;z<X.length;z++){x=X[z];I=new T1_;x=_.Qx(I,
2,x);I=[];n=dGi(S);for(b=0;b<n.length;b++){var N=n[b],l=a[b],H=new YZT;switch(N){case 3:b5(H,1,CEs,g1(String(l)));break;case 2:N=Number(l);Number.isFinite(N)&&b5(H,2,CEs,_.Y0(N));break;case 1:b5(H,3,CEs,txY(l==="true"))}I.push(H)}pW(x,1,I);Q.push(x)}}pW(c,4,Q);return c};var PEi=function(S){if(!S)return"";if(/^about:(?:blank|srcdoc)$/.test(S))return window.origin||"";S.indexOf("blob:")===0&&(S=S.substring(5));S=S.split("#")[0].split("?")[0];S=S.toLowerCase();S.indexOf("//")==0&&(S=window.location.protocol+S);/^[\w\-]*:\/\//.test(S)||(S=window.location.href);var c=S.substring(S.indexOf("://")+3),Q=c.indexOf("/");Q!=-1&&(c=c.substring(0,Q));Q=S.substring(0,S.indexOf("://"));if(!Q)throw Error("va`"+S);if(Q!=="http"&&Q!=="https"&&Q!=="chrome-extension"&&Q!=="moz-extension"&&
Q!=="file"&&Q!=="android-app"&&Q!=="chrome-search"&&Q!=="chrome-untrusted"&&Q!=="chrome"&&Q!=="app"&&Q!=="devtools")throw Error("wa`"+Q);S="";var f=c.indexOf(":");if(f!=-1){var U=c.substring(f+1);c=c.substring(0,f);if(Q==="http"&&U!=="80"||Q==="https"&&U!=="443")S=":"+U}return Q+"://"+c+S};var E0h=function(S,c,Q){var f=String(_.QY.location.href);return f&&S&&c?[c,LVh(PEi(f),S,Q||null)].join(" "):null},LVh=function(S,c,Q){var f=[],U=[];
if((Array.isArray(Q)?2:1)==1)return U=[c,S],_.PY(f,function(z){U.push(z)}),tNd(U.join(" "));
var a=[],X=[];_.PY(Q,function(z){X.push(z.key);a.push(z.value)});
Q=Math.floor((new Date).getTime()/1E3);U=a.length==0?[Q,c,S]:[a.join(":"),Q,c,S];_.PY(f,function(z){U.push(z)});
S=tNd(U.join(" "));S=[Q,S];X.length==0||S.push(X.join(""));return S.join("_")},tNd=function(S){var c=W2T();
c.update(S);return c.digestString().toLowerCase()};var A3=function(S){this.JSC$7655_document_=S||{cookie:""}},VN_;
_.J=A3.prototype;_.J.isEnabled=function(){if(!_.QY.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};
_.J.set=function(S,c,Q){var f=!1;if(typeof Q==="object"){var U=Q.sameSite;f=Q.secure||!1;var a=Q.domain||void 0;var X=Q.path||void 0;var z=Q.maxAge}if(/[;=\s]/.test(S))throw Error("xa`"+S);if(/[;\r\n]/.test(c))throw Error("ya`"+c);z===void 0&&(z=-1);Q=a?";domain="+a:"";X=X?";path="+X:"";f=f?";secure":"";z=z<0?"":z==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+z*1E3)).toUTCString();this.JSC$7655_document_.cookie=S+"="+c+Q+X+z+f+(U!=null?";samesite="+U:"")};
_.J.get=function(S,c){for(var Q=S+"=",f=(this.JSC$7655_document_.cookie||"").split(";"),U=0,a;U<f.length;U++){a=Fo(f[U]);if(a.lastIndexOf(Q,0)==0)return a.slice(Q.length);if(a==S)return""}return c};
_.J.remove=function(S,c,Q){var f=this.containsKey(S);this.set(S,"",{maxAge:0,path:c,domain:Q});return f};
_.J.getKeys=function(){return VN_(this).keys};
_.J.getValues=function(){return VN_(this).values};
_.J.isEmpty=function(){return!this.JSC$7655_document_.cookie};
_.J.getCount=function(){return this.JSC$7655_document_.cookie?(this.JSC$7655_document_.cookie||"").split(";").length:0};
_.J.containsKey=function(S){return this.get(S)!==void 0};
_.J.containsValue=function(S){for(var c=VN_(this).values,Q=0;Q<c.length;Q++)if(c[Q]==S)return!0;return!1};
_.J.clear=function(){for(var S=VN_(this).keys,c=S.length-1;c>=0;c--)this.remove(S[c])};
VN_=function(S){S=(S.JSC$7655_document_.cookie||"").split(";");for(var c=[],Q=[],f,U,a=0;a<S.length;a++)U=Fo(S[a]),f=U.indexOf("="),f==-1?(c.push(""),Q.push(U)):(c.push(U.substring(0,f)),Q.push(U.substring(f+1)));return{keys:c,values:Q}};
_.Kl=new A3(typeof document=="undefined"?null:document);var SbZ,R2d;SbZ=function(){var S=_.QY.__SAPISID||_.QY.__APISID||_.QY.__3PSAPISID||_.QY.__1PSAPISID||_.QY.__OVERRIDE_SID;if(S)return!0;typeof document!=="undefined"&&(S=new A3(document),S=S.get("SAPISID")||S.get("APISID")||S.get("__Secure-3PAPISID")||S.get("__Secure-1PAPISID"));return!!S};
R2d=function(S,c,Q,f){(S=_.QY[S])||typeof document==="undefined"||(S=(new A3(document)).get(c));return S?E0h(S,Q,f):null};
_.PZo=function(S){var c=PEi(_.QY==null?void 0:_.QY.location.href),Q=[];if(SbZ()){c=c.indexOf("https:")==0||c.indexOf("chrome-extension:")==0||c.indexOf("chrome-untrusted://new-tab-page")==0||c.indexOf("moz-extension:")==0;var f=c?_.QY.__SAPISID:_.QY.__APISID;f||typeof document==="undefined"||(f=new A3(document),f=f.get(c?"SAPISID":"APISID")||f.get("__Secure-3PAPISID"));(f=f?E0h(f,c?"SAPISIDHASH":"APISIDHASH",S):null)&&Q.push(f);c&&((c=R2d("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",S))&&Q.push(c),
(S=R2d("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",S))&&Q.push(S))}return Q.length==0?null:Q.join(" ")};var yUJ=function(){this.minSize=1024};
yUJ.prototype.compress=function(S){var c,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:return c=new CompressionStream("gzip"),Q=(new Response(c.readable)).arrayBuffer(),f=c.writable.getWriter(),_.F(a,f.write((new TextEncoder).encode(S)),2);case 2:return _.F(a,f.close(),3);case 3:return U=Uint8Array,_.F(a,Q,4);case 4:return a.return(new U(a.yieldResult))}})};
yUJ.prototype.isSupported=function(S){return S<this.minSize?!1:typeof CompressionStream!=="undefined"};var o0$=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(o0$,_.Ga);var XS=function(S,c){this.intervalMs=S;this.callback=c;this.enabled=!1;this.nowFn=function(){return _.AP()};
this.lastTimeMs=this.nowFn()};
XS.prototype.setInterval=function(S){this.intervalMs=S;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
XS.prototype.start=function(){var S=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){S.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
XS.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
XS.prototype.tick=function(){var S=this;if(this.enabled){var c=Math.max(this.nowFn()-this.lastTimeMs,0);c<this.intervalMs*.8?this.timer=setTimeout(function(){S.tick()},this.intervalMs-c):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var mG_=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(mG_,_.Ga);var SCz=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(SCz,_.Ga);var cju=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(cju,_.Ga);cju.prototype.getTransmissionType=function(){return _.iR(this,1)};var rop=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(rop,_.Ga);rop.prototype.getVersion=function(){return _.MJ(this,2)};var On=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(On,_.Ga);var kkT=function(S){pW(Ao,1,S)};
On.prototype.getModel=function(){return _.MJ(this,6)};
var QAz=_.SS(On);var fRl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(fRl,_.Ga);var gxz=["platform","platformVersion","architecture","model","uaFullVersion"],Ao=new On,exM=null;var zN=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(zN,_.Ga);var UVp=function(S){return _.aR(S,1,1)};var Jjl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S,4)};
_.C(Jjl,_.Ga);_.x5=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S,36)};
_.C(_.x5,_.Ga);_.x5.prototype.getExperimentIds=function(){return _.JB(this,o0$,16)};var aRe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S,19)};
_.C(aRe,_.Ga);aRe.prototype.setLogSource=function(S){return _.aR(this,2,S)};
aRe.prototype.setScheduler=function(S){return _.aR(this,10,S)};var Xae=function(S,c){this.isServiceWorkerScope=c=c===void 0?!1:c;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new aRe;Number.isInteger(S)&&this.logRequest.setLogSource(S);c||(this.locale=document.documentElement.getAttribute("lang"));Ajs(this,new zN)};
Xae.prototype.setLogSource=function(S){this.logRequest.setLogSource(S);return this};
var Ajs=function(S,c){_.Qx(S.logRequest,1,c);_.iR(c,1)||UVp(c);S.isServiceWorkerScope||(c=FS(S),_.MJ(c,5)||_.bN(c,5,S.locale));S.uach&&(c=FS(S),_.JB(c,On,9)||_.Qx(c,9,S.uach))},Ohd=function(S,c){S.transmissionType=c},zQe=function(S){var c=c===void 0?gxz:c;
var Q=S.isServiceWorkerScope?void 0:hH();Q?dfY(Q,c).then(function(f){S.uach=QAz(f!=null?f:"[]");f=FS(S);_.Qx(f,9,S.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},FS=function(S){var c=_.JB(S.logRequest,zN,1);
c||(c=new zN,Ajs(S,c));S=c;c=_.JB(S,fRl,11);c||(c=new fRl,_.Qx(S,11,c));return c};
Xae.prototype.build=function(S,c,Q,f,U,a){c=c===void 0?0:c;Q=Q===void 0?0:Q;f=f===void 0?null:f;U=U===void 0?0:U;a=a===void 0?0:a;if(!this.isServiceWorkerScope){var X=FS(this);var z=new cju;z=_.aR(z,1,this.transmissionType);z=_.aj(z,2,this.isFinal);Q=_.gr(z,3,Q>0?Q:void 0);Q=_.gr(Q,4,U>0?U:void 0);Q=_.gr(Q,5,a>0?a:void 0);U=Q.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;a=U[_.lu]|0;Q=wd(Q,a)?Q:XA(Q,U,a)?aA(Q,U):new Q.constructor(Jj(U,a,!0));_.Qx(X,10,Q)}X=this.logRequest.clone();Q=Date.now().toString();
X=_.AB(X,4,w1(Q));S=S.slice();S=pW(X,3,S);f&&(X=new mG_,f=_.gr(X,13,f),X=new SCz,f=_.Qx(X,2,f),X=new Jjl,f=_.Qx(X,1,f),f=_.aR(f,2,9),_.Qx(S,18,f));c&&_.YL(S,14,c);return S};X5.prototype.currBackoffCount_=0;X5.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
X5.prototype.getValue=function(){return this.currValue_};
var xV$=function(S){S.currBaseValue_=Math.min(S.maxValue_,S.currBaseValue_*S.backoffFactor_);S.currValue_=Math.min(S.maxValue_,S.currBaseValue_+(S.randomFactor_?Math.round(S.randomFactor_*(Math.random()-.5)*2*S.currBaseValue_):0));S.currBackoffCount_++};var zEz=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S,8)};
_.C(zEz,_.Ga);var FE_=_.SS(zEz);var xwY=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(xwY,_.Ga);var BH;BH=new FDz;var Ia=function(S){_.C9.call(this);var c=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7733_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$7733_sendBeaconApiEnabled=!1;this.logSource=S.logSource;this.getAuthHeaderValue=
S.getAuthHeaderValue||function(){};
this.logRequestBuilder=new Xae(S.logSource,S.isServiceWorkerScope);this.network=S.network||null;this.productID=S.productID||null;this.bufferSize=1E3;this.clearcutUrl=S.urlOverride||null;this.sessionIndex=S.sessionIndex||null;this.disableAutomaticFlush=S.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!S.disableWithCredentials;this.isServiceWorkerScope=S.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!hH()&&!!hH().navigator&&hH().navigator.sendBeacon!==
void 0;this.isBrowserSupported=typeof URLSearchParams!=="undefined"&&!!(new URL(BUd())).searchParams&&!!(new URL(BUd())).searchParams.set;var Q=UVp(new zN);Ajs(this.logRequestBuilder,Q);this.flushBackoff=new X5(1E4,3E5,.1);S=IRT(this,S.backgroundJobDeferrer);this.JSC$7733_flushTimer=new XS(this.flushBackoff.getValue(),S);this.backupTimer=new XS(6E5,S);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState===
"hidden"){nZh(c);var f;(f=c.metalogService)==null||f.flush()}}),document.addEventListener("pagehide",function(){nZh(c);
var f;(f=c.metalogService)==null||f.flush()}))};
_.C(Ia,_.C9);var IRT=function(S,c){return S.isBrowserSupported?c?function(){c().then(function(){S.flush()})}:function(){S.flush()}:function(){}};
Ia.prototype.disposeInternal=function(){nZh(this);this.JSC$7733_flushTimer.stop();this.backupTimer.stop();_.C9.prototype.disposeInternal.call(this)};
var bhT=function(S){S.clearcutUrl||(S.clearcutUrl=BUd());try{return(new URL(S.clearcutUrl)).toString()}catch(c){return(new URL(S.clearcutUrl,hH().location.origin)).toString()}};
Ia.prototype.dispatch=function(S){if(S instanceof _.x5)this.log(S);else try{var c=new _.x5,Q=S.serialize();var f=_.bN(c,8,Q);this.log(f)}catch(U){n0(this,4,1)}};
var n0=function(S,c,Q){S.metalogService&&S.metalogService.increment(c,Q)};
Ia.prototype.log=function(S){n0(this,2,1);if(this.isBrowserSupported){S=S.clone();var c=this.sequencePosition++;S=_.YL(S,21,c);this.componentId&&_.bN(S,26,this.componentId);c=S;if(Bdz(_.jp(c,1))==null){var Q=Date.now();Q=Number.isFinite(Q)?Q.toString():"0";_.AB(c,1,w1(Q))}_.FeM(_.jp(c,15))!=null||_.YL(c,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Q=this.experimentIds.clone(),_.Qx(c,16,Q));n0(this,1,1);c=this.pendingEvents.length-this.bufferSize+1;c>0&&(this.pendingEvents.splice(0,c),
this.numLogsDroppedSinceLastFlush+=c,n0(this,3,c));this.pendingEvents.push(S);this.disableAutomaticFlush||this.JSC$7733_flushTimer.enabled||this.JSC$7733_flushTimer.start()}};
Ia.prototype.flush=function(S,c){var Q=this;if(this.pendingEvents.length===0)S&&S();else if(this.JSC$7733_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,NUz(this);else{var f=Date.now();if(this.noFlushUntilMs>f&&this.startWaitingMs<f)c&&c("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?Ohd(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var U=this.pendingEvents.length,
a=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),X=this.getAuthHeaderValue();if(X&&this.lastFailedAuth===X)c&&c("stale-auth-token");else{this.pendingEvents=[];this.JSC$7733_flushTimer.enabled&&this.JSC$7733_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;f=a.serialize();var z;this.JSC$7733_compressor&&this.JSC$7733_compressor.isSupported(f.length)&&
(z=this.JSC$7733_compressor.compress(f));var x=KEh(this,f,X),I=function(N){Q.flushBackoff.reset();Q.JSC$7733_flushTimer.setInterval(Q.flushBackoff.getValue());if(N){var l=null;try{var H=JSON.stringify(JSON.parse(N.replace(")]}'\n","")));l=FE_(H)}catch(q){}l&&(N=Number(wr(l,1,_.Li("-1"))),N>0&&(Q.startWaitingMs=Date.now(),Q.noFlushUntilMs=Q.startWaitingMs+N),w_R(l.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,BH.fieldIndex),qdH(l,BH.fieldIndex),l=BH.ctor?BH.getExtensionFn(l,BH.ctor,BH.fieldIndex,
BH.JSC$6913_hasMessageId):BH.getExtensionFn(l,BH.fieldIndex,null,BH.JSC$6913_hasMessageId),l=l===null?void 0:l)&&(l=_.Qa(l,1,-1),l!==-1&&(Q.flushBackoff=new X5(l<1?1:l,3E5,.1),Q.JSC$7733_flushTimer.setInterval(Q.flushBackoff.getValue())))}S&&S();Q.numRetriesSinceLastSuccessfulFlush=0},n=function(N,l){var H=_.St(a,_.x5,3,_.c1());
var q=Number(wr(a,14));xV$(Q.flushBackoff);Q.JSC$7733_flushTimer.setInterval(Q.flushBackoff.getValue());N===401&&X&&(Q.lastFailedAuth=X);q&&(Q.numLogsDroppedSinceLastFlush+=q);l===void 0&&(l=Q.isRetryable(N));l&&(Q.pendingEvents=H.concat(Q.pendingEvents),Q.disableAutomaticFlush||Q.JSC$7733_flushTimer.enabled||Q.JSC$7733_flushTimer.start());n0(Q,7,1);c&&c("net-send-failed",N);++Q.numRetriesSinceLastSuccessfulFlush},b=function(){Q.network&&Q.network.send(x,I,n)};
z?z.then(function(N){n0(Q,5,U);x.requestHeaders["Content-Encoding"]="gzip";x.requestHeaders["Content-Type"]="application/binary";x.body=N;x.bodyType=2;b()},function(){n0(Q,6,U);
b()}):b()}}}};
var KEh=function(S,c,Q){Q=Q===void 0?null:Q;var f=f===void 0?S.withCredentials:f;var U={},a=new URL(bhT(S));Q&&(U.Authorization=Q);S.sessionIndex&&(U["X-Goog-AuthUser"]=S.sessionIndex,a.searchParams.set("authuser",S.sessionIndex));S.pageId&&(Object.defineProperty(U,"X-Goog-PageId",{value:S.pageId}),a.searchParams.set("pageId",S.pageId));return{url:a.toString(),body:c,bodyType:1,requestHeaders:U,requestType:"POST",withCredentials:f,timeoutMillis:S.timeoutMillis}},nZh=function(S){S.logRequestBuilder.isFinal=
!0;
S.flush();S.logRequestBuilder.isFinal=!1},NUz=function(S){$Vs(S,function(c,Q){c=new URL(c);
c.searchParams.set("format","json");var f=!1;try{f=hH().navigator.sendBeacon(c.toString(),Q.serialize())}catch(U){}f||(S.isSendBeaconSupported=!1);return f})},$Vs=function(S,c){if(S.pendingEvents.length!==0){var Q=new URL(bhT(S));
Q.searchParams.delete("format");var f=S.getAuthHeaderValue();f&&Q.searchParams.set("auth",f);Q.searchParams.set("authuser",S.sessionIndex||"0");for(f=0;f<10&&S.pendingEvents.length;++f){var U=S.pendingEvents.slice(0,32),a=S.logRequestBuilder.build(U,S.numLogsDroppedSinceLastFlush,S.numRetriesSinceLastSuccessfulFlush,S.productID,S.persistedLogRecoveredCount,S.persistedLogExpiredCount);if(!c(Q.toString(),a)){++S.numRetriesSinceLastSuccessfulFlush;break}S.numLogsDroppedSinceLastFlush=0;S.numRetriesSinceLastSuccessfulFlush=
0;S.persistedLogRecoveredCount=0;S.persistedLogExpiredCount=0;S.pendingEvents=S.pendingEvents.slice(U.length)}S.JSC$7733_flushTimer.enabled&&S.JSC$7733_flushTimer.stop()}};
Ia.prototype.isRetryable=function(S){return 500<=S&&S<600||S===401||S===0};
var BUd=function(){return"https://play.google.com/log?format=json&hasfast=true"};var uAi=function(){this.abortSupported=typeof AbortController!=="undefined"};
uAi.prototype.send=function(S,c,Q){var f=this,U,a,X,z,x,I,n,b,N,l;return _.O(function(H){switch(H.nextAddress){case 1:return a=(U=f.abortSupported?new AbortController:void 0)?setTimeout(function(){U.abort()},S.timeoutMillis):void 0,_.X1(H,2,3),X=Object.assign({},{method:S.requestType,
headers:Object.assign({},S.requestHeaders)},S.body&&{body:S.body},S.withCredentials&&{credentials:"include"},{signal:S.timeoutMillis&&U?U.signal:null}),_.F(H,fetch(S.url,X),5);case 5:z=H.yieldResult;if(z.status!==200){(x=Q)==null||x(z.status);H.jumpTo(3);break}if((I=c)==null){H.jumpTo(7);break}return _.F(H,z.text(),8);case 8:I(H.yieldResult);case 7:case 3:_.O7(H);clearTimeout(a);_.F1(H,0);break;case 2:n=_.Bs(H);switch((b=n)==null?void 0:b.name){case "AbortError":(N=Q)==null||N(408);break;default:(l=
Q)==null||l(400)}H.jumpTo(3)}})};
uAi.prototype.getTransmissionType=function(){return 4};_.xx=function(S,c){c=c===void 0?"0":c;_.C9.call(this);this.logSource=S;this.sessionIndex=c;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7751_clearExperimentIds=this.productID=null;this.JSC$7751_sendBeaconApiEnabled=!1;this.pageId=null;this.bufferSize=void 0};
_.C(_.xx,_.C9);var AtR=function(S,c){S.buildLabel=c;return S},afz=function(S,c){S.network=c;
return S},Oyc=function(S,c){S.JSC$7751_clearExperimentIds=c},JtY=function(S){S.JSC$7751_sendBeaconApiEnabled=!0;
return S};
_.xx.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.xx.prototype.build=function(){this.network||(this.network=new uAi);var S=new Ia({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:_.PZo,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.F5(this,S);if(this.buildLabel){var c=this.buildLabel,Q=
FS(S.logRequestBuilder);_.bN(Q,7,c)}S.JSC$7733_compressor=new yUJ;this.componentId&&(S.componentId=this.componentId);this.productID&&(S.productID=this.productID);this.pageId&&(S.pageId=this.pageId);this.JSC$7751_clearExperimentIds&&((Q=this.JSC$7751_clearExperimentIds)?(S.experimentIds||(S.experimentIds=new o0$),c=S.experimentIds,Q=Q.serialize(),_.bN(c,4,Q)):S.experimentIds&&_.AB(S.experimentIds,4));this.JSC$7751_sendBeaconApiEnabled&&(S.JSC$7733_sendBeaconApiEnabled=S.isSendBeaconSupported);zQe(S.logRequestBuilder);
this.bufferSize&&(S.bufferSize=this.bufferSize);this.network.setLogSource&&this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(S);return S};var Fmp=function(S,c,Q,f,U,a,X){S=S===void 0?-1:S;c=c===void 0?"":c;Q=Q===void 0?"":Q;f=f===void 0?!1:f;U=U===void 0?"":U;_.C9.call(this);this.logSource=S;this.componentId=c;a?c=a:(S=new _.xx(S,"0"),S.componentId=c,_.F5(this,S),Q!==""&&(S.destinationUrl=Q),f&&(S.serviceWorkerScopeEnabled=!0),U&&AtR(S,U),X&&afz(S,X),c=S.build());this.JSC$7755_transport=c};
_.C(Fmp,_.C9);Fmp.prototype.flush=function(S){S=S||[];if(S.length){for(var c=new kOH,Q=[],f=0;f<S.length;f++){var U=S[f],a=v0T(U);Q.push(a);U.clear()}pW(c,1,Q);this.JSC$7755_transport.dispatch(c);this.JSC$7755_transport.flush()}};var jAe=function(S){this.cellValue=S};var bS=function(S,c,Q){this.JSC$7760_metricName=S;this.cellType=c;this.fields=Q||[];this.cellMap=new Map},dGi=function(S){return S.fields.map(function(c){return c.fieldType})},rUu=function(S){return S.fields.map(function(c){return c.fieldName})};
_.J=bS.prototype;_.J.addCell=function(S){var c=_.YD.apply(1,arguments),Q=this.getCells(c);Q?Q.push(new jAe(S)):this.JSC$7760_setCell(S,c)};
_.J.JSC$7760_setCell=function(S){var c=this.JSC$7760_getKey(_.YD.apply(1,arguments));this.cellMap.set(c,[new jAe(S)])};
_.J.getCells=function(){var S=this.JSC$7760_getKey(_.YD.apply(0,arguments));return this.cellMap.has(S)?this.cellMap.get(S):void 0};
_.J.getCell=function(){var S=this.getCells(_.YD.apply(0,arguments));return S&&S.length?S[0]:void 0};
_.J.clear=function(){this.cellMap.clear()};
_.J.JSC$7760_getKey=function(){var S=_.YD.apply(0,arguments);return S?S.join(","):"key"};var lRp=function(S,c){bS.call(this,S,3,c)};
_.C(lRp,bS);lRp.prototype.JSC$7763_incrementCounterBy=function(S){var c=_.YD.apply(1,arguments),Q=0,f=this.getCell(c);f&&(Q=f.cellValue);this.JSC$7760_setCell(Q+S,c)};var YCd=function(S,c){bS.call(this,S,2,c)};
_.C(YCd,bS);YCd.prototype.record=function(S){this.addCell(S,_.YD.apply(1,arguments))};_.NU=function(S){this.id=S};
_.NU.prototype.toString=function(){return this.id};_.K0=function(S,c){this.type=S instanceof _.NU?String(S):S;this.currentTarget=this.target=c;this.defaultPrevented=this.propagationStopped_=!1};
_.K0.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.K0.prototype.preventDefault=function(){this.defaultPrevented=!0};_.$5=function(S,c){_.K0.call(this,S?S.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;S&&this.init(S,c)};
_.Xa(_.$5,_.K0);
_.$5.prototype.init=function(S,c){var Q=this.type=S.type,f=S.changedTouches&&S.changedTouches.length?S.changedTouches[0]:null;this.target=S.target||S.srcElement;this.currentTarget=c;c=S.relatedTarget;c||(Q=="mouseover"?c=S.fromElement:Q=="mouseout"&&(c=S.toElement));this.relatedTarget=c;f?(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0):(this.offsetX=_.Ir||S.offsetX!==void 0?S.offsetX:S.layerX,
this.offsetY=_.Ir||S.offsetY!==void 0?S.offsetY:S.layerY,this.clientX=S.clientX!==void 0?S.clientX:S.pageX,this.clientY=S.clientY!==void 0?S.clientY:S.pageY,this.screenX=S.screenX||0,this.screenY=S.screenY||0);this.button=S.button;this.keyCode=S.keyCode||0;this.key=S.key||"";this.charCode=S.charCode||(Q=="keypress"?S.keyCode:0);this.ctrlKey=S.ctrlKey;this.altKey=S.altKey;this.shiftKey=S.shiftKey;this.metaKey=S.metaKey;this.pointerId=S.pointerId||0;this.pointerType=S.pointerType;this.state=S.state;
this.timeStamp=S.timeStamp;this.event_=S;S.defaultPrevented&&_.$5.superClass_.preventDefault.call(this)};
_.$5.prototype.stopPropagation=function(){_.$5.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.$5.prototype.preventDefault=function(){_.$5.superClass_.preventDefault.call(this);var S=this.event_;S.preventDefault?S.preventDefault():S.returnValue=!1};var CY$="closure_listenable_"+(Math.random()*1E6|0),uS=function(S){return!(!S||!S[CY$])};var Hhd=0;var DVH=function(S,c,Q,f,U){this.listener=S;this.proxy=null;this.src=c;this.type=Q;this.capture=!!f;this.handler=U;this.key=++Hhd;this.removed=this.callOnce=!1},pas=function(S){S.removed=!0;
S.listener=null;S.proxy=null;S.src=null;S.handler=null};Oh.prototype.add=function(S,c,Q,f,U){var a=S.toString();S=this.listeners[a];S||(S=this.listeners[a]=[],this.typeCount_++);var X=hQu(S,c,f,U);X>-1?(c=S[X],Q||(c.callOnce=!1)):(c=new DVH(c,this.src,a,!!f,U),c.callOnce=Q,S.push(c));return c};
Oh.prototype.remove=function(S,c,Q,f){S=S.toString();if(!(S in this.listeners))return!1;var U=this.listeners[S];c=hQu(U,c,Q,f);return c>-1?(pas(U[c]),_.ET(U,c),U.length==0&&(delete this.listeners[S],this.typeCount_--),!0):!1};
var qCd=function(S,c){var Q=c.type;if(!(Q in S.listeners))return!1;var f=_.tZ(S.listeners[Q],c);f&&(pas(c),S.listeners[Q].length==0&&(delete S.listeners[Q],S.typeCount_--));return f};
Oh.prototype.removeAll=function(S){S=S&&S.toString();var c=0,Q;for(Q in this.listeners)if(!S||Q==S){for(var f=this.listeners[Q],U=0;U<f.length;U++)++c,pas(f[U]);delete this.listeners[Q];this.typeCount_--}return c};
Oh.prototype.getListener=function(S,c,Q,f){S=this.listeners[S.toString()];var U=-1;S&&(U=hQu(S,c,Q,f));return U>-1?S[U]:null};
Oh.prototype.hasListener=function(S,c){var Q=S!==void 0,f=Q?S.toString():"",U=c!==void 0;return _.Cn.some(this.listeners,function(a){for(var X=0;X<a.length;++X)if(!(Q&&a[X].type!=f||U&&a[X].capture!=c))return!0;return!1})};
var hQu=function(S,c,Q,f){for(var U=0;U<S.length;++U){var a=S[U];if(!a.removed&&a.listener==c&&a.capture==!!Q&&a.handler==f)return U}return-1};var TUz,wae,sAT,ihp,Zhi,jw,l7,gZd,Gaz,WEH,j1,eQd,Mlh;TUz="closure_lm_"+(Math.random()*1E6|0);wae={};sAT=0;_.HI=function(S,c,Q,f,U){if(f&&f.once)return jw(S,c,Q,f,U);if(Array.isArray(c)){for(var a=0;a<c.length;a++)_.HI(S,c[a],Q,f,U);return null}Q=Mlh(Q);return uS(S)?S.listen(c,Q,_.c_(f)?!!f.capture:!!f,U):ihp(S,c,Q,!1,f,U)};
ihp=function(S,c,Q,f,U,a){if(!c)throw Error("Aa");var X=_.c_(U)?!!U.capture:!!U,z=j1(S);z||(S[TUz]=z=new Oh(S));Q=z.add(c,Q,f,X,a);if(Q.proxy)return Q;f=Zhi();Q.proxy=f;f.src=S;f.listener=Q;if(S.addEventListener)_.k8r||(U=X),U===void 0&&(U=!1),S.addEventListener(c.toString(),f,U);else if(S.attachEvent)S.attachEvent(Gaz(c.toString()),f);else if(S.addListener&&S.removeListener)S.addListener(f);else throw Error("Ba");sAT++;return Q};
Zhi=function(){var S=WEH,c=function(Q){return S.call(c.src,c.listener,Q)};
return c};
jw=function(S,c,Q,f,U){if(Array.isArray(c)){for(var a=0;a<c.length;a++)jw(S,c[a],Q,f,U);return null}Q=Mlh(Q);return uS(S)?S.listenOnce(c,Q,_.c_(f)?!!f.capture:!!f,U):ihp(S,c,Q,!0,f,U)};
_.lS=function(S,c,Q,f,U){if(Array.isArray(c))for(var a=0;a<c.length;a++)_.lS(S,c[a],Q,f,U);else f=_.c_(f)?!!f.capture:!!f,Q=Mlh(Q),uS(S)?S.unlisten(c,Q,f,U):S&&(S=j1(S))&&(c=S.getListener(c,Q,f,U))&&l7(c)};
l7=function(S){if(typeof S==="number"||!S||S.removed)return!1;var c=S.src;if(uS(c))return qCd(c.eventTargetListeners_,S);var Q=S.type,f=S.proxy;c.removeEventListener?c.removeEventListener(Q,f,S.capture):c.detachEvent?c.detachEvent(Gaz(Q),f):c.addListener&&c.removeListener&&c.removeListener(f);sAT--;(Q=j1(c))?(qCd(Q,S),Q.typeCount_==0&&(Q.src=null,c[TUz]=null)):pas(S);return!0};
gZd=function(S,c,Q,f,U){Q=Mlh(Q);f=!!f;return uS(S)?S.getListener(c,Q,f,U):S?(S=j1(S))?S.getListener(c,Q,f,U):null:null};
Gaz=function(S){return S in wae?wae[S]:wae[S]="on"+S};
WEH=function(S,c){if(S.removed)S=!0;else{c=new _.$5(c,this);var Q=S.listener,f=S.handler||S.src;S.callOnce&&l7(S);S=Q.call(f,c)}return S};
j1=function(S){S=S[TUz];return S instanceof Oh?S:null};
eQd="__closure_events_fn_"+(Math.random()*1E9>>>0);Mlh=function(S){if(typeof S==="function")return S;S[eQd]||(S[eQd]=function(c){return S.handleEvent(c)});
return S[eQd]};_.Y5=function(){_.C9.call(this);this.eventTargetListeners_=new Oh(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.Xa(_.Y5,_.C9);_.Y5.prototype[CY$]=!0;_.J=_.Y5.prototype;_.J.setParentEventTarget=function(S){this.parentEventTarget_=S};
_.J.addEventListener=function(S,c,Q,f){_.HI(this,S,c,Q,f)};
_.J.removeEventListener=function(S,c,Q,f){_.lS(this,S,c,Q,f)};
_.J.dispatchEvent=function(S){var c,Q=this.parentEventTarget_;if(Q)for(c=[];Q;Q=Q.parentEventTarget_)c.push(Q);Q=this.actualEventTarget_;var f=S.type||S;if(typeof S==="string")S=new _.K0(S,Q);else if(S instanceof _.K0)S.target=S.target||Q;else{var U=S;S=new _.K0(f,Q);_.Cn.extend(S,U)}U=!0;var a;if(c)for(a=c.length-1;!S.propagationStopped_&&a>=0;a--){var X=S.currentTarget=c[a];U=ka$(X,f,!0,S)&&U}S.propagationStopped_||(X=S.currentTarget=Q,U=ka$(X,f,!0,S)&&U,S.propagationStopped_||(U=ka$(X,f,!1,S)&&
U));if(c)for(a=0;!S.propagationStopped_&&a<c.length;a++)X=S.currentTarget=c[a],U=ka$(X,f,!1,S)&&U;return U};
_.J.disposeInternal=function(){_.Y5.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.J.listen=function(S,c,Q,f){return this.eventTargetListeners_.add(String(S),c,!1,Q,f)};
_.J.listenOnce=function(S,c,Q,f){return this.eventTargetListeners_.add(String(S),c,!0,Q,f)};
_.J.unlisten=function(S,c,Q,f){return this.eventTargetListeners_.remove(String(S),c,Q,f)};
_.J.removeAllListeners=function(S){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(S):0};
var ka$=function(S,c,Q,f){c=S.eventTargetListeners_.listeners[String(c)];if(!c)return!0;c=c.concat();for(var U=!0,a=0;a<c.length;++a){var X=c[a];if(X&&!X.removed&&X.capture==Q){var z=X.listener,x=X.handler||X.src;X.callOnce&&qCd(S.eventTargetListeners_,X);U=z.call(x,f)!==!1&&U}}return U&&!f.defaultPrevented};
_.Y5.prototype.getListener=function(S,c,Q,f){return this.eventTargetListeners_.getListener(String(S),c,Q,f)};
_.Y5.prototype.hasListener=function(S,c){return this.eventTargetListeners_.hasListener(S!==void 0?String(S):void 0,c)};var C0=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(S){return S&&AsyncContext.Snapshot.wrap(S)}:function(S){return S};var rjd=function(S,c){this.create_=S;this.reset_=c;this.occupants_=0;this.JSC$7795_head_=null};
rjd.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var S=this.JSC$7795_head_;this.JSC$7795_head_=S.next;S.next=null}else S=this.create_();return S};
rjd.prototype.put=function(S){this.reset_(S);this.occupants_<100&&(this.occupants_++,S.next=this.JSC$7795_head_,this.JSC$7795_head_=S)};var dVe=function(){this.workTail_=this.workHead_=null};
dVe.prototype.add=function(S,c){var Q=PGM.get();Q.set(S,c);this.workTail_?this.workTail_.next=Q:this.workHead_=Q;this.workTail_=Q};
dVe.prototype.remove=function(){var S=null;this.workHead_&&(S=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),S.next=null);return S};
var PGM=new rjd(function(){return new vZs},function(S){return S.reset()}),vZs=function(){this.next=this.scope=this.fn=null};
vZs.prototype.set=function(S,c){this.fn=S;this.scope=c;this.next=null};
vZs.prototype.reset=function(){this.next=this.scope=this.fn=null};var PYz,L2R,vxM,LEd;L2R=!1;vxM=new dVe;_.HH=function(S,c){PYz||LEd();L2R||(PYz(),L2R=!0);vxM.add(S,c)};
LEd=function(){var S=Promise.resolve(void 0);PYz=function(){S.then(ExZ)}};var EZd=function(S){S.prototype.$goog_Thenable=!0},tlT=function(S){if(!S)return!1;
try{return!!S.$goog_Thenable}catch(c){return!1}};var Vlz,RQz,yjd,mVe,Syd,c5_,J5J,X7e,FcJ,zh$,TAZ;_.n1=function(S,c){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(S!=_.$q)try{var Q=this;S.call(c,function(f){Q.resolve_(2,f)},function(f){Q.resolve_(3,f)})}catch(f){this.resolve_(3,f)}};
Vlz=function(){this.next=this.context=this.JSC$7806_onRejected=this.JSC$7806_onFulfilled=this.child=null;this.always=!1};
Vlz.prototype.reset=function(){this.context=this.JSC$7806_onRejected=this.JSC$7806_onFulfilled=this.child=null;this.always=!1};
RQz=new rjd(function(){return new Vlz},function(S){S.reset()});
yjd=function(S,c,Q){var f=RQz.get();f.JSC$7806_onFulfilled=S;f.JSC$7806_onRejected=c;f.context=Q;return f};
_.B2=function(S){if(S instanceof _.n1)return S;var c=new _.n1(_.$q);c.resolve_(2,S);return c};
_.pv=function(S){return new _.n1(function(c,Q){Q(S)})};
mVe=function(S,c,Q){oZh(S,c,Q,null)||_.HH(_.u2(c,S))};
_.Dg=function(S){return new _.n1(function(c,Q){var f=S.length,U=[];if(f)for(var a=function(I,n){f--;U[I]=n;f==0&&c(U)},X=function(I){Q(I)},z,x=0;x<S.length;x++)z=S[x],mVe(z,_.u2(a,x),X);
else c(U)})};
Syd=function(S){return new _.n1(function(c){var Q=S.length,f=[];if(Q)for(var U=function(z,x,I){Q--;f[z]=x?{fulfilled:!0,value:I}:{fulfilled:!1,reason:I};Q==0&&c(f)},a,X=0;X<S.length;X++)a=S[X],mVe(a,_.u2(U,X,!0),_.u2(U,X,!1));
else c(f)})};
c5_=function(S){return new _.n1(function(c,Q){var f=S.length,U=[];if(f)for(var a=function(I){c(I)},X=function(I,n){f--;
U[I]=n;f==0&&Q(U)},z,x=0;x<S.length;x++)z=S[x],mVe(z,a,_.u2(X,x));
else c(void 0)})};
_.L4=function(){var S,c,Q=new _.n1(function(f,U){S=f;c=U});
return new Qnh(Q,S,c)};
_.n1.prototype.then=function(S,c,Q){return fQh(this,C0(typeof S==="function"?S:null),C0(typeof c==="function"?c:null),Q)};
EZd(_.n1);J5J=function(S,c,Q,f){Ugl(S,yjd(c||_.$q,Q||null,f))};
_.p0=function(S,c){c=C0(c);c=yjd(c,c);c.always=!0;Ugl(S,c);return S};
_.n1.prototype.finally=function(S){var c=this;S=C0(S);return new Promise(function(Q,f){J5J(c,function(U){S();Q(U)},function(U){S();
f(U)})})};
_.n1.prototype.thenCatch=function(S,c){return fQh(this,null,C0(S),c)};
_.n1.prototype.catch=_.n1.prototype.thenCatch;_.n1.prototype.cancel=function(S){if(this.state_==0){var c=new _.EI(S);_.HH(function(){aQe(this,c)},this)}};
var aQe=function(S,c){if(S.state_==0)if(S.parent_){var Q=S.parent_;if(Q.callbackEntries_){for(var f=0,U=null,a=null,X=Q.callbackEntries_;X&&(X.always||(f++,X.child==S&&(U=X),!(U&&f>1)));X=X.next)U||(a=X);U&&(Q.state_==0&&f==1?aQe(Q,c):(a?(f=a,f.next==Q.callbackEntriesTail_&&(Q.callbackEntriesTail_=f),f.next=f.next.next):A5u(Q),X7e(Q,U,3,c)))}S.parent_=null}else S.resolve_(3,c)},Ugl=function(S,c){S.callbackEntries_||S.state_!=2&&S.state_!=3||OcJ(S);
S.callbackEntriesTail_?S.callbackEntriesTail_.next=c:S.callbackEntries_=c;S.callbackEntriesTail_=c},fQh=function(S,c,Q,f){var U=yjd(null,null,null);
U.child=new _.n1(function(a,X){U.JSC$7806_onFulfilled=c?function(z){try{var x=c.call(f,z);a(x)}catch(I){X(I)}}:a;
U.JSC$7806_onRejected=Q?function(z){try{var x=Q.call(f,z);x===void 0&&z instanceof _.EI?X(z):a(x)}catch(I){X(I)}}:X});
U.child.parent_=S;Ugl(S,U);return U.child};
_.n1.prototype.unblockAndFulfill_=function(S){this.state_=0;this.resolve_(2,S)};
_.n1.prototype.unblockAndReject_=function(S){this.state_=0;this.resolve_(3,S)};
_.n1.prototype.resolve_=function(S,c){this.state_==0&&(this===c&&(S=3,c=new TypeError("Ca")),this.state_=1,oZh(c,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=c,this.state_=S,this.parent_=null,OcJ(this),S!=3||c instanceof _.EI||zh$(this,c)))};
var oZh=function(S,c,Q,f){if(S instanceof _.n1)return J5J(S,c,Q,f),!0;if(tlT(S))return S.then(c,Q,f),!0;if(_.c_(S))try{var U=S.then;if(typeof U==="function")return xg_(S,U,c,Q,f),!0}catch(a){return Q.call(f,a),!0}return!1},xg_=function(S,c,Q,f,U){var a=!1,X=function(x){a||(a=!0,Q.call(U,x))},z=function(x){a||(a=!0,f.call(U,x))};
try{c.call(S,X,z)}catch(x){z(x)}},OcJ=function(S){S.executing_||(S.executing_=!0,_.HH(S.executeCallbacks_,S))},A5u=function(S){var c=null;
S.callbackEntries_&&(c=S.callbackEntries_,S.callbackEntries_=c.next,c.next=null);S.callbackEntries_||(S.callbackEntriesTail_=null);return c};
_.n1.prototype.executeCallbacks_=function(){for(var S;S=A5u(this);)X7e(this,S,this.state_,this.result_);this.executing_=!1};
X7e=function(S,c,Q,f){if(Q==3&&c.JSC$7806_onRejected&&!c.always)for(;S&&S.hadUnhandledRejection_;S=S.parent_)S.hadUnhandledRejection_=!1;if(c.child)c.child.parent_=null,FcJ(c,Q,f);else try{c.always?c.JSC$7806_onFulfilled.call(c.context):FcJ(c,Q,f)}catch(U){TAZ.call(null,U)}RQz.put(c)};
FcJ=function(S,c,Q){c==2?S.JSC$7806_onFulfilled.call(S.context,Q):S.JSC$7806_onRejected&&S.JSC$7806_onRejected.call(S.context,Q)};
zh$=function(S,c){S.hadUnhandledRejection_=!0;_.HH(function(){S.hadUnhandledRejection_&&TAZ.call(null,c)})};
TAZ=fz;_.EI=function(S){_.Sx.call(this,S)};
_.Xa(_.EI,_.Sx);_.EI.prototype.name="cancel";var Qnh=function(S,c,Q){this.promise=S;this.resolve=c;this.reject=Q};var h3;_.Q7=function(S,c){_.Y5.call(this);this.JSC$7818_interval_=S||1;this.timerObject_=c||_.QY;this.boundTick_=(0,_.H1)(this.tick_,this);this.last_=_.AP()};
_.Xa(_.Q7,_.Y5);_.J=_.Q7.prototype;_.J.enabled=!1;_.J.JSC$7820_timer_=null;_.J.setInterval=function(S){this.JSC$7818_interval_=S;this.JSC$7820_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7820_timer_&&this.stop()};
_.J.tick_=function(){if(this.enabled){var S=_.AP()-this.last_;S>0&&S<this.JSC$7818_interval_*.8?this.JSC$7820_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7818_interval_-S):(this.JSC$7820_timer_&&(this.timerObject_.clearTimeout(this.JSC$7820_timer_),this.JSC$7820_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.J.start=function(){this.enabled=!0;this.JSC$7820_timer_||(this.JSC$7820_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7818_interval_),this.last_=_.AP())};
_.J.stop=function(){this.enabled=!1;this.JSC$7820_timer_&&(this.timerObject_.clearTimeout(this.JSC$7820_timer_),this.JSC$7820_timer_=null)};
_.J.disposeInternal=function(){_.Q7.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
h3=function(S,c,Q){if(typeof S==="function")Q&&(S=(0,_.H1)(S,Q));else if(S&&typeof S.handleEvent=="function")S=(0,_.H1)(S.handleEvent,S);else throw Error("Da");return Number(c)>2147483647?-1:_.QY.setTimeout(S,c||0)};
_.B_p=function(S){var c=null;return(new _.n1(function(Q,f){c=h3(function(){Q(void 0)},S);
c==-1&&f(Error("Ea"))})).thenCatch(function(Q){_.QY.clearTimeout(c);
throw Q;})};var B1=function(S){_.C9.call(this);this.streamzLogger=S;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7824_flushTimer=new _.Q7(this.flushInterval);this.JSC$7824_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.F5(this,this.JSC$7824_flushTimer)};
_.C(B1,_.C9);B1.prototype.sendIsolatedPayload=function(S){this.shouldSendIsolatedPayload=S;this.invocationLimit=1};
var IQT=function(S){S.JSC$7824_flushTimer.enabled||S.JSC$7824_flushTimer.start();S.invocationCount++;S.invocationCount>=S.invocationLimit&&S.snapshotAndFlush()};
B1.prototype.snapshotAndFlush=function(){var S=this.metricMap.values();S=[].concat(_.Hs(S)).filter(function(c){return c.cellMap.size});
S.length&&this.streamzLogger.flush(S,this.shouldSendIsolatedPayload);nDd(S);this.invocationCount=0;this.JSC$7824_flushTimer.enabled&&this.JSC$7824_flushTimer.stop()};
B1.prototype.addNewCounter=function(S){var c=_.YD.apply(1,arguments);this.metricMap.has(S)||this.metricMap.set(S,new lRp(S,c))};
B1.prototype.addNewEventMetric=function(S){var c=_.YD.apply(1,arguments);this.metricMap.has(S)||this.metricMap.set(S,new YCd(S,c))};
var bce=function(S,c){return S.disabledMetrics.has(c)?void 0:S.metricMap.get(c)};
B1.prototype.JSC$7824_incrementCounter=function(S){this.JSC$7824_incrementCounterBy(S,1,_.YD.apply(1,arguments))};
B1.prototype.JSC$7824_incrementCounterBy=function(S,c){var Q=_.YD.apply(2,arguments),f=bce(this,S);f&&f instanceof lRp&&(f.JSC$7763_incrementCounterBy(c,Q),IQT(this))};
B1.prototype.record=function(S,c){var Q=_.YD.apply(2,arguments),f=bce(this,S);f&&f instanceof YCd&&(f.record(c,Q),IQT(this))};
var nDd=function(S){for(var c=0;c<S.length;c++)S[c].clear()};_.qU=function(S,c,Q){Q=Q===void 0?{}:Q;c=Error.call(this,c);this.message=c.message;"stack"in c&&(this.stack=c.stack);this.code=S;this.metadata=Q;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(_.qU,Error);_.qU.prototype.toString=function(){var S="RpcError("+(ttT(this.code)||String(this.code))+")";this.message&&(S+=": "+this.message);return S};_.N_h=_.QY.JSON.parse;_.TN=_.QY.JSON.stringify;_.Dq=_.QY.JSON.parse;_.Kch=function(S){switch(S){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 $gp=function(S){switch(S){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var uK$,jnd=function(){};
_.Xa(jnd,_.Vtr);jnd.prototype.createInstance=function(){return new XMLHttpRequest};
uK$=new jnd;_.wT=function(S){_.Y5.call(this);this.headers=new Map;this.JSC$7833_xmlHttpFactory_=S||null;this.JSC$7833_active_=!1;this.JSC$7833_xhr_=null;this.JSC$7833_lastUri_="";this.JSC$7833_lastErrorCode_=0;this.JSC$7833_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7833_timeoutId_=null;this.responseType_="";this.JSC$7833_withCredentials_=!1};
_.Xa(_.wT,_.Y5);var lQh=/^https?$/i,YyH=["POST","PUT"],Co$=[],J3Z=function(S,c,Q,f,U,a,X){var z=new _.wT;Co$.push(z);c&&z.listen("complete",c);z.listenOnce("ready",z.cleanupSend_);a&&(z.timeoutInterval_=Math.max(0,a));X&&(z.JSC$7833_withCredentials_=X);z.send(S,Q,f,U)};
_.wT.prototype.cleanupSend_=function(){this.dispose();_.tZ(Co$,this)};
_.wT.prototype.send=function(S,c,Q,f){if(this.JSC$7833_xhr_)throw Error("Fa`"+this.JSC$7833_lastUri_+"`"+S);c=c?c.toUpperCase():"GET";this.JSC$7833_lastUri_=S;this.JSC$7833_lastError_="";this.JSC$7833_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7833_active_=!0;this.JSC$7833_xhr_=this.createXhr();this.JSC$7833_xhr_.onreadystatechange=C0((0,_.H1)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7833_xhr_.open(c,String(S),!0),this.inOpen_=!1}catch(X){Hci(this,X);return}S=Q||"";Q=new Map(this.headers);
if(f)if(Object.getPrototypeOf(f)===Object.prototype)for(var U in f)Q.set(U,f[U]);else if(typeof f.keys==="function"&&typeof f.get==="function"){U=_.A(f.keys());for(var a=U.next();!a.done;a=U.next())a=a.value,Q.set(a,f.get(a))}else throw Error("Ga`"+String(f));f=Array.from(Q.keys()).find(function(X){return"content-type"==X.toLowerCase()});
U=_.QY.FormData&&S instanceof _.QY.FormData;!_.dp(YyH,c)||f||U||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");c=_.A(Q);for(f=c.next();!f.done;f=c.next())Q=_.A(f.value),f=Q.next().value,Q=Q.next().value,this.JSC$7833_xhr_.setRequestHeader(f,Q);this.responseType_&&(this.JSC$7833_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7833_xhr_&&this.JSC$7833_xhr_.withCredentials!==this.JSC$7833_withCredentials_&&(this.JSC$7833_xhr_.withCredentials=this.JSC$7833_withCredentials_);
try{this.JSC$7833_timeoutId_&&(clearTimeout(this.JSC$7833_timeoutId_),this.JSC$7833_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7833_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7833_xhr_.send(S),this.inSend_=!1}catch(X){Hci(this,X)}};
_.wT.prototype.createXhr=function(){return this.JSC$7833_xmlHttpFactory_?this.JSC$7833_xmlHttpFactory_.createInstance():uK$.createInstance()};
_.wT.prototype.timeout_=function(){typeof yuZ!="undefined"&&this.JSC$7833_xhr_&&(this.JSC$7833_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7833_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var Hci=function(S,c){S.JSC$7833_active_=!1;S.JSC$7833_xhr_&&(S.inAbort_=!0,S.JSC$7833_xhr_.abort(),S.inAbort_=!1);S.JSC$7833_lastError_=c;S.JSC$7833_lastErrorCode_=5;Dgp(S);p7l(S)},Dgp=function(S){S.errorDispatched_||(S.errorDispatched_=!0,S.dispatchEvent("complete"),S.dispatchEvent("error"))};
_.wT.prototype.abort=function(S){this.JSC$7833_xhr_&&this.JSC$7833_active_&&(this.JSC$7833_active_=!1,this.inAbort_=!0,this.JSC$7833_xhr_.abort(),this.inAbort_=!1,this.JSC$7833_lastErrorCode_=S||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),p7l(this))};
_.wT.prototype.disposeInternal=function(){this.JSC$7833_xhr_&&(this.JSC$7833_active_&&(this.JSC$7833_active_=!1,this.inAbort_=!0,this.JSC$7833_xhr_.abort(),this.inAbort_=!1),p7l(this,!0));_.wT.superClass_.disposeInternal.call(this)};
_.wT.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)hhJ(this);else this.onReadyStateChangeEntryPoint_()};
_.wT.prototype.onReadyStateChangeEntryPoint_=function(){hhJ(this)};
var hhJ=function(S){if(S.JSC$7833_active_&&typeof yuZ!="undefined")if(S.inSend_&&_.sn(S)==4)setTimeout(S.onReadyStateChange_.bind(S),0);else if(S.dispatchEvent("readystatechange"),S.isComplete()){S.JSC$7833_active_=!1;try{if(S.isSuccess())S.dispatchEvent("complete"),S.dispatchEvent("success");else{S.JSC$7833_lastErrorCode_=6;try{var c=_.sn(S)>2?S.JSC$7833_xhr_.statusText:""}catch(Q){c=""}S.JSC$7833_lastError_=c+" ["+S.getStatus()+"]";Dgp(S)}}finally{p7l(S)}}},p7l=function(S,c){if(S.JSC$7833_xhr_){S.JSC$7833_timeoutId_&&
(clearTimeout(S.JSC$7833_timeoutId_),S.JSC$7833_timeoutId_=null);
var Q=S.JSC$7833_xhr_;S.JSC$7833_xhr_=null;c||S.dispatchEvent("ready");try{Q.onreadystatechange=null}catch(f){}}};
_.wT.prototype.isActive=function(){return!!this.JSC$7833_xhr_};
_.wT.prototype.isComplete=function(){return _.sn(this)==4};
_.wT.prototype.isSuccess=function(){var S=this.getStatus(),c;if(!(c=$gp(S))){if(S=S===0)S=esd(String(this.JSC$7833_lastUri_)),S=!lQh.test(S);c=S}return c};
_.sn=function(S){return S.JSC$7833_xhr_?S.JSC$7833_xhr_.readyState:0};
_.J=_.wT.prototype;_.J.getStatus=function(){try{return _.sn(this)>2?this.JSC$7833_xhr_.status:-1}catch(S){return-1}};
_.J.getResponseText=function(){try{return this.JSC$7833_xhr_?this.JSC$7833_xhr_.responseText:""}catch(S){return""}};
_.J.getResponse=function(){try{if(!this.JSC$7833_xhr_)return null;if("response"in this.JSC$7833_xhr_)return this.JSC$7833_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7833_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7833_xhr_)return this.JSC$7833_xhr_.mozResponseArrayBuffer}return null}catch(S){return null}};
_.J.getAllResponseHeaders=function(){return this.JSC$7833_xhr_&&_.sn(this)>=2?this.JSC$7833_xhr_.getAllResponseHeaders()||"":""};
_.J.getLastError=function(){return typeof this.JSC$7833_lastError_==="string"?this.JSC$7833_lastError_:String(this.JSC$7833_lastError_)};var XrH=function(){};
XrH.prototype.send=function(S,c,Q){c=c===void 0?function(){}:c;
Q=Q===void 0?function(){}:Q;
J3Z(S.url,function(f){f=f.target;f.isSuccess()?c(f.getResponseText()):Q(f.getStatus())},S.requestType,S.body,S.requestHeaders,S.timeoutMillis,S.withCredentials)};
XrH.prototype.getTransmissionType=function(){return 1};var qyd=function(S,c){this.logger=S;this.event=c;this.startTime=Ij()};
qyd.prototype.done=function(){this.logger.rB(this.event,Ij()-this.startTime)};
var MU=function(){aa.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.C(MU,aa);var iS=function(S,c,Q){var f=Ij();c=c();S.rB(Q,Ij()-f);return c},Ifx=function(){MU.apply(this,arguments)};
_.C(Ifx,MU);_.J=Ifx.prototype;_.J.zoj=function(){};
_.J.jg=function(){};
_.J.rB=function(){};
_.J.logError=function(){};
_.J.cE=function(){};
_.J.gzm=function(){};
_.J.jO2=function(){};
_.J.vzf=function(){};
_.J.sWc=function(){};
var T_p=function(S){MU.call(this);var c=this;this.logger=S;this.TEST_ONLY={epn:function(){return c.logger},
getExperimentIds:function(){return c.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void c.logger.dispose()})};
_.C(T_p,MU);_.J=T_p.prototype;_.J.update=function(S){this.logger.dispose();this.logger=S};
_.J.jg=function(S){this.logger.jg(S)};
_.J.rB=function(S,c){this.logger.rB(S,c)};
_.J.logError=function(S){this.logger.logError(S)};
_.J.cE=function(){this.logger.cE()};
_.J.gzm=function(S){this.logger.gzm(S)};
_.J.jO2=function(S){this.logger.jO2(S)};
_.J.vzf=function(S){this.logger.vzf(S)};
_.J.sWc=function(S){this.logger.sWc(S)};
_.J.zoj=function(S){this.logger.zoj(S)};
var w7d=function(S,c){_.C9.call(this);var Q=this;this.callback=S;this.geZ=c;this.vo9=-c;this.addOnDisposeCallback(function(){return void clearTimeout(Q.timer)})};
_.C(w7d,_.C9);var snp=function(S){if(S.timer===void 0){var c=Math.max(0,S.vo9+S.geZ-Ij());S.timer=setTimeout(function(){try{S.callback()}finally{S.vo9=Ij(),S.timer=void 0}},c)}},MSs=function(S,c){MU.call(this);
this.metrics=S;this.h9=c};
_.C(MSs,MU);_.J=MSs.prototype;_.J.zoj=function(S){this.metrics.vDH.record(S,this.h9)};
_.J.jg=function(S){this.metrics.eventCount.increment(S,this.h9)};
_.J.rB=function(S,c){this.metrics.g9M.record(c,S,this.h9)};
_.J.logError=function(S){this.metrics.errorCount.increment(S,this.h9)};
_.J.gzm=function(S){this.metrics.rsc.increment(S,this.h9)};
_.J.jO2=function(S){this.metrics.xuJ.increment(S,this.h9)};
_.J.vzf=function(S){this.metrics.xtL.increment(S,this.h9)};
var n9=function(S,c){c=c===void 0?[]:c;var Q={h9:S.h9||"_",fWm:S.fWm||[],sOm:S.sOm|0,destinationUrl:S.destinationUrl,yDC:S.yDC||function(){},
dm:S.dm||function(a,X){return BXz(a,X,Q.yDC,Q.destinationUrl)}},f=Q.dm("49",Q.fWm.concat(c));
MSs.call(this,UjT(f),Q.h9);var U=this;this.TEST_ONLY={getExperimentIds:function(){return U.options.fWm.concat(U.xa4).sort(function(a,X){return a-X})}};
this.options=Q;this.service=f;this.h6C=!S.dm;this.flushDebouncer=new w7d(function(){return void U.service.snapshotAndFlush()},Q.sOm);
this.addOnDisposeCallback(function(){U.flushDebouncer.dispose();U.h6C&&U.service.dispose()});
(this.xa4=c.slice()).sort(_.Ud)};
_.C(n9,MSs);n9.prototype.sWc=function(S){var c=this;S=S.slice();S.sort(_.Ud);_.A$(S,this.xa4)||(this.flushDebouncer.dispose(),this.h6C&&this.service.dispose(),this.service=this.options.dm("49",this.options.fWm.concat(S)),this.flushDebouncer=new w7d(function(){return void c.service.snapshotAndFlush()},this.options.sOm),this.metrics=UjT(this.service),this.xa4=S)};
n9.prototype.cE=function(){snp(this.flushDebouncer)};var n4z=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(n4z,_.Ga);_.bBM=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(_.bBM,_.Ga);var yV=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S,0,yV.messageId)};
_.C(yV,_.Ga);var icd=_.mE(yV);yV.messageId="bfkj";var MtZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(MtZ,_.Ga);var Zcd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Zcd,_.Ga);var GRp=_.SS(Zcd);_.O_=function(){var S=this;this.promise=new Promise(function(c,Q){S.resolve=c;S.reject=Q})};_.Zg=function(S){_.C9.call(this);var c=this;this.sD2=Math.floor(Math.random()*200);this.nuQ=new Zcd;if("challenge"in S&&icd(S.challenge)){var Q=_.MJ(S.challenge,4,void 0,gd);var f=_.MJ(S.challenge,5,void 0,gd);_.MJ(S.challenge,7,void 0,gd)&&(this.nuQ=GRp(_.MJ(S.challenge,7,void 0,gd)))}else Q=S.program,f=S.globalName;this.addOnDisposeCallback(function(){var H,q,w;return _.O(function(g){if(g.nextAddress==1)return _.F(g,c.uSC,2);H=g.yieldResult;q=H.eGP;(w=q)==null||w();_.IN(g)})});
this.logger=sxp(S.bW||{},this.nuQ,S.zHQ);_.F5(this,this.logger);var U=new _.O_;this.uSC=U.promise;this.logger.jg("t");var a=this.logger.share(),X=new qyd(a,"t"),z=function(H,q,w,g){if(!c.logger.isDisposed()){var r="k";q?r="h":w&&(r="u");r!=="k"?g!==0&&(c.logger.jg(r),c.logger.rB(r,H)):c.sD2<=0?(c.logger.jg(r),c.logger.rB(r,H),c.sD2=Math.floor(Math.random()*200)):c.sD2--}},x=function(H,q,w,g){Promise.resolve().then(function(){X.done();
a.cE();a.dispose();U.resolve({e2p:H,eGP:q,tn1:w,kxZ:g})})};
if(!_.QY[f])throw this.logger.logError(25),Error("Ha");if(!_.QY[f].a)throw this.logger.logError(26),Error("Ia");try{var I=_.QY[f].a;f=[];for(var n=[],b=i9M(this.nuQ),N=0;N<b.length;N++)f.push(b[N]),n.push(1);var l=Z9p(this.nuQ);for(b=0;b<l.length;b++)f.push(l[b]),n.push(2);this.akg=_.A(I(Q,x,!0,S.gdX,z,[f,n],_.MJ(this.nuQ,5))).next().value;this.mJc=U.promise.then(function(){})}catch(H){throw this.logger.logError(28),H;
}};
_.C(_.Zg,_.C9);_.Zg.prototype.snapshot=function(S){if(this.isDisposed())throw Error("Ja");this.logger.jg("n");var c=this.logger.share();return this.uSC.then(function(Q){var f=Q.e2p;return new Promise(function(U){var a=new qyd(c,"n");f(function(X){a.done();c.zoj(X.length);c.cE();c.dispose();U(X)},[S.rD,
S.mdU,S.wpa,S.sAD])})})};
_.Wcd=function(S,c){if(S.isDisposed())throw Error("Ja");S.logger.jg("n");var Q=iS(S.logger,function(){return S.akg([c.rD,c.mdU,c.wpa,c.sAD])},"n");
S.logger.zoj(Q.length);S.logger.cE();return Q};
_.Zg.prototype.x52=function(S){this.uSC.then(function(c){var Q;(Q=c.tn1)==null||Q(S)})};
_.Zg.prototype.p5U=function(S,c){return this.uSC.then(function(Q){var f;return(f=Q.kxZ)==null?void 0:f(S,c,!1)})};
_.Zg.prototype.mUU=function(){return this.logger.share()};var gDu=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(gDu,_.Ga);var SHr=_.mE(gDu);var ehH=function(){this.qOF={};this.bUW=null},kRe=function(){ehH.instance||(ehH.instance=new ehH);
return ehH.instance},dgd=function(S,c){return r5u(S,_.JB(c,n4z,1,gd),_.JB(c,_.bBM,2,gd),_.MJ(c,3,void 0,gd))},r5u=function(S,c,Q,f){if(!c&&!Q)return Promise.resolve();
if(!f)return Wmp(c,Q);var U;(U=S.qOF)[f]||(U[f]=new Promise(function(a,X){Wmp(c,Q).then(function(){S.bUW=f;a()},function(z){delete S.qOF[f];
X(z)})}));
return S.qOF[f]};var vDT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(vDT,_.Ga);var Poh=function(S,c){return _.oC(S,1,c)},Lci=function(S,c){return _.oC(S,2,c)};var GN=function(S){_.C9.call(this);var c=this;this.options=S;this.lCj=new _.O_;this.mJc=this.lCj.promise;this.lRb=new _.O_;this.qxk=1;this.tlQ=new _.O_;this.ck5=[];this.qjx=S.qjx||function(){};
this.logger=new T_p(sxp(S.bW||{}));EDd(this,S.lG,S.eIX,S.a3c,S.hhm,Object.assign({},tSl,S.cec||{}));this.addOnDisposeCallback(function(){return void VSh(c)})};
_.C(GN,_.C9);GN.prototype.snapshot=function(S){var c=this;return _.O(function(Q){switch(Q.nextAddress){case 1:if(c.isDisposed())throw Error("Ja");if(c.qG||c.wW9){Q.jumpTo(2);break}return _.F(Q,c.lRb.promise,2);case 2:if(!c.qG){Q.jumpTo(4);break}return _.F(Q,c.qG.snapshot(S),5);case 5:return Q.return(Q.yieldResult);case 4:throw c.wW9;}})};
var Rhs=function(S){var c;return _.O(function(Q){if(S.isDisposed())throw Error("Ja");(c=S.vH)!=null&&(c.endTimeMs=0,c.resolver(1));return _.F(Q,S.tlQ.promise,0)})},VSh=function(S){S.wW9=Error("La");
S.lRb.resolve();Gkr(S.lCj.promise);S.lCj.reject(Error("La"));S.logger.dispose();Promise.all(S.ck5).then(function(){var Q;return _.O(function(f){(Q=S.qG)==null||Q.dispose();S.qG=void 0;_.IN(f)})});
S.ck5=[];var c;(c=S.vH)!=null&&(c.endTimeMs=0,c.resolver(1));Gkr(S.tlQ.promise);S.tlQ.reject(Error("La"))};
GN.prototype.x52=function(S){var c,Q;(c=this.qG)==null||(Q=c.x52)==null||Q.call(c,S)};
GN.prototype.p5U=function(S,c){var Q,f,U;return(U=(Q=this.qG)==null?void 0:(f=Q.p5U)==null?void 0:f.call(Q,S,c))!=null?U:Promise.resolve()};
var y5i=function(S,c){var Q=S.qjx;S.qjx=function(){Q();c()}},oDJ=function(S,c){S.isDisposed()||(S.qG=c,S.logger.update(c.mUU()),S.lRb.resolve(),S.lCj.resolve(void 0),S.qjx())};
GN.prototype.handleError=function(S){if(!this.isDisposed()){this.wW9=S;this.lRb.resolve();var c,Q;(Q=(c=this.options).nKJ)==null||Q.call(c,S)}};
var mgh=function(S,c){c&&(Promise.all(S.ck5).then(function(){return void c.dispose()}),S.ck5=[])},WH=function(S,c){S.qxk=c;
var Q,f;(f=(Q=S.options).yww)==null||f.call(Q,c)},S7d=function(S){S.isDisposed()||(S.tlQ.resolve(),S.tlQ=new _.O_)},EDd=function(S,c,Q,f,U,a){f=f===void 0?kRe():f;
U=U===void 0?Promise.resolve(void 0):U;var X,z,x,I,n,b,N,l,H,q,w,g;_.O(function(r){switch(r.nextAddress){case 1:return _.F(r,0,3);case 3:z=null;if(!X){r.jumpTo(6);break}WH(S,7);_.X1(r,7);return _.F(r,uG(X.snapshot({}),a.lR4,function(){return Promise.resolve("E:CTO")}),9);
case 9:z=r.yieldResult;_.Pi(r,6);break;case 7:_.Bs(r),z="E:UCE";case 6:x=void 0,I=X?a.zMQ:a.lFC,n=new X5(I,a.iE4,a.uAX,a.bEa),b=1;case 10:if(!(b<=a.maxAttempts)){r.jumpTo(12);break}if(b===1){r.jumpTo(13);break}WH(S,0);S.vH=new ch$(n.getValue(),a.iUX,a.pZL);return _.F(r,S.vH.promise,14);case 14:N=r.yieldResult,S.vH=void 0,N===1?(b=1,n.reset()):xV$(n);case 13:_.X1(r,15);l=void 0;if(Q){l=Q;r.jumpTo(17);break}WH(S,5);H=f.bUW;return _.F(r,uG(QNp(c,H,z),a.iws,function(){return Promise.reject(Error("Ma"))}),
18);
case 18:l=r.yieldResult;case 17:return WH(S,3),_.F(r,uG(dgd(f,l),a.uss,function(){return Promise.reject(Error("Na"))}),19);
case 19:return WH(S,8),_.F(r,U,20);case 20:return q=new _.Zg({challenge:l,bW:S.options.bW,gdX:S.options.gdX}),_.F(r,uG(q.mJc,a.tmL,function(){return Promise.reject(Error("Oa"))}),21);
case 21:x=q;r.jumpTo(12);break;case 15:w=_.Bs(r),S.handleError(w),S7d(S);case 11:b++;r.jumpTo(10);break;case 12:if(S.isDisposed()){r.jumpTo(5);break}x&&(Q=void 0,mgh(S,X),X=x,oDJ(S,x),S7d(S));WH(S,2);S.vH=new ch$(a.ux4,a.iUX,a.pZL);return _.F(r,S.vH.promise,22);case 22:S.vH=void 0;if(S.isDisposed()){r.jumpTo(5);break}r.jumpTo(3);break;case 5:(g=X)==null||g.dispose(),_.IN(r)}})};
GN.prototype.mUU=function(){return this.logger.share()};
var tSl={ux4:432E5,iUX:3E5,pZL:10,lR4:1E4,iws:3E4,uss:3E4,tmL:6E4,lFC:1E3,zMQ:6E4,iE4:6E5,uAX:.25,bEa:2,maxAttempts:10},ch$=function(S,c,Q){var f=this;this.endTimeMs=Date.now()+S;this.promise=new Promise(function(a){f.resolver=a});
var U=function(){var a=f.endTimeMs-Date.now();a<=Q?f.resolver(0):setTimeout(U,Math.min(a,c))};
U()};var fWs,kop=(fWs=Math.imul)!=null?fWs:function(S,c){return S*c|0},jt=[196,
200,224,18],gT=function(S,c,Q){Q=Q===void 0?[]:Q;this.maxItems=S;this.c2=c===void 0?0:c;this.cu=Q},UZp=function(S){var c=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!c)return new gT(S);var Q=c.split(",");if(Q.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new gT(S);c=Q.slice(1);c.length===1&&c[0]===""&&(c=[]);Q=Number(Q[0]);return isNaN(Q)||Q<0||Q>c.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new gT(S)):new gT(S,Q,c)};
gT.prototype.serialize=function(){return String(this.c2)+","+this.cu.join()};
gT.prototype.insert=function(S,c){var Q=void 0;if(this.cu[this.c2]!==S){var f=this.cu.indexOf(S);f!==-1?(this.cu.splice(f,1),f<this.c2&&this.c2--,this.cu.splice(this.c2,0,S)):(Q=this.cu[this.c2],this.cu[this.c2]=S)}this.c2=(this.c2+1)%this.maxItems;S=gvT("iU5q-!O9@$",this.serialize());Q&&S&&c(Q);return S};
var Jhd=function(S,c){this.logger=c;try{var Q=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(f){Q=!1}Q&&(this.index=UZp(S))},aWd=function(S,c,Q,f,U){var a=S.index?iS(S.logger,function(){return PQp(S.index,djp(c),Q,f,U)},"W"):"u";
S.logger.vzf(a)},Ahd=function(S,c,Q){var f=_.A(S.index?iS(S.logger,function(){return LmR(djp(c),Q)},"R"):["u"]),U=f.next().value;
f=f.next().value;S.logger.jO2(U);return f};var XsH={toString:function(S){var c=[],Q=0;S-=-2147483648;c[Q++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(S%52);for(S=Math.floor(S/52);S>0;)c[Q++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(S%62),S=Math.floor(S/62);return c.join("")}};var xZd=function(S){S=ORz(S);for(var c=2654435769,Q=2654435769,f=314159265,U=S.length,a=U,X=0,z=function(){c-=Q;c-=f;c^=f>>>13;Q-=f;Q-=c;Q^=c<<8;f-=c;f-=Q;f^=Q>>>13;c-=Q;c-=f;c^=f>>>12;Q-=f;Q-=c;Q^=c<<16;f-=c;f-=Q;f^=Q>>>5;c-=Q;c-=f;c^=f>>>3;Q-=f;Q-=c;Q^=c<<10;f-=c;f-=Q;f^=Q>>>15};a>=12;a-=12,X+=12)c+=zUh(S,X),Q+=zUh(S,X+4),f+=zUh(S,X+8),z();
f+=U;switch(a){case 11:f+=S[X+10]<<24;case 10:f+=S[X+9]<<16;case 9:f+=S[X+8]<<8;case 8:Q+=S[X+7]<<24;case 7:Q+=S[X+6]<<16;case 6:Q+=S[X+5]<<8;case 5:Q+=S[X+4];case 4:c+=S[X+3]<<24;case 3:c+=S[X+2]<<16;case 2:c+=S[X+1]<<8;case 1:c+=S[X]}z();return XsH.toString(f)},ORz=function(S){for(var c=[],Q=0;Q<S.length;Q++)c.push(S.charCodeAt(Q));
return c},zUh=function(S,c){return S[c]+(S[c+1]<<8)+(S[c+2]<<16)+(S[c+3]<<24)};var Fou,e1=function(S){_.C9.call(this);this.logger=S;this.fZo=new _.O_;this[Fou]=this.dispose};
_.C(e1,_.C9);var B8H=function(S,c){var Q=setTimeout(function(){S.fZo.resolve()},c);
S.addOnDisposeCallback(function(){return void clearTimeout(Q)})};
e1.prototype.zv=function(S,c){var Q=this.o8(S);c==null||c(Q);return iS(this.logger,function(){return _.mV(Q,2)},this.yzc)};
var IWT=function(S,c,Q,f){return iS(S.logger,function(){return Q?S.zv(c,f):S.o8(c,f)},S.lW)};
Fou=Symbol.dispose;var npl=function(S,c,Q,f){e1.call(this,S);this.kYC=c;this.mPQ=Q;this.lW="m";this.yzc="x";this.pvJ=0;B8H(this,f)};
_.C(npl,e1);npl.prototype.o8=function(S,c){var Q=this;this.logger.jg(this.lW);++this.pvJ>=this.mPQ&&this.fZo.resolve();var f=S();S=iS(this.logger,function(){return Q.kYC(f)},"C");
if(S===void 0)throw new Un(17,"YNJ:Undefined");if(!(S instanceof Uint8Array))throw new Un(18,"ODM:Invalid");c==null||c(S);return S};
var bRd=function(S,c,Q){e1.call(this,S);this.bw4=c;this.lW="f";this.yzc="z";B8H(this,Q)};
_.C(bRd,e1);bRd.prototype.o8=function(){return this.bw4};
var N8_=function(S,c,Q){e1.call(this,S);this.by0=c;this.lW="w";this.yzc="z";B8H(this,Q)};
_.C(N8_,e1);N8_.prototype.o8=function(){var S=this;return iS(this.logger,function(){return _.Od(S.by0)},"d")};
N8_.prototype.zv=function(){return this.by0};
var Koz=function(S,c){e1.call(this,S);this.error=c;this.lW="e";this.yzc="y"};
_.C(Koz,e1);var $Zs=function(S,c){var Q=(c(S.error.message)+":"+c(S.error.stack)).substring(0,2048);c=Q.length+1;Q=EvH(Q);var f=new Uint8Array(4+Q.length);f.set([42,c&127|128,c>>7,S.error.code]);f.set(Q,4);return f};
Koz.prototype.o8=function(){if(this.hvG)return this.hvG;this.hvG=$Zs(this,function(S){return"_"+xZd(S)});
return $Zs(this,function(S){return S})};
var u1d=function(S,c,Q){e1.call(this,S);this.iqX=c;this.clientState=Q;this.lW="S";this.yzc="q"};
_.C(u1d,e1);u1d.prototype.o8=function(){var S=Math.floor(Date.now()/1E3),c=[Math.random()*255,Math.random()*255],Q=c.concat([this.iqX&255,this.clientState],[S>>24&255,S>>16&255,S>>8&255,S&255]);S=new Uint8Array(2+Q.length);S[0]=34;S[1]=Q.length;S.set(Q,2);Q=S.subarray(2);for(var f=c=c.length;f<Q.length;++f)Q[f]^=Q[f%c];this.logger.gzm(this.clientState);return S};var jNd={jNC:3E4,gDP:2E4},k5=function(S){_.C9.call(this);var c=this;this.r4R=new _.O_;this.zz2=0;this.iG=void 0;this.state=2;this.jX=S.jX;this.lG=S.lG;this.cec=Object.assign({},jNd,S.cec||{});this.logger=S.jX.mUU();var Q;this.onError=(Q=S.onError)!=null?Q:function(){};
this.afH=S.afH||!1;if(lWi(S)){var f=this.jX;this.gJD=function(){return Rhs(f).catch(function(X){X=c.reportError(new Un(c.zf?20:32,"TRG:Disposed",X));c.iG=X;var z;(z=c.zf)==null||z.dispose();c.zf=void 0;c.r4R.reject(X)})};
y5i(f,function(){return void Y7H(c)});
f.qxk===2&&Y7H(this)}else this.gJD=S.sWm,Y7H(this);var U=this.logger.share();U.jg("o");var a=new qyd(U,"o");this.r4R.promise.then(function(){a.done();U.cE();U.dispose()},function(){return void U.dispose()});
this.addOnDisposeCallback(function(){c.zf?(c.zf.dispose(),c.zf=void 0):c.iG?c.logger.cE():(c.iG=c.reportError(new Un(32,"TNP:Disposed")),c.logger.cE(),c.r4R.reject(c.iG))});
_.F5(this,this.logger)};
_.C(k5,_.C9);k5.prototype.xWY=function(){return this.r4R.promise};
var CiJ=function(S,c){if(!(c instanceof Un))if(c instanceof _.qU){var Q=Error(c.toString());Q.stack=c.stack;c=new Un(11,"EBH:Error",Q)}else c=new Un(12,"BSO:Unknown",c);return S.reportError(c)},Y7H=function(S){var c,Q,f,U,a,X,z,x,I,n,b,N,l,H,q;
return _.O(function(w){switch(w.nextAddress){case 1:c=void 0;S.zz2++;Q=new _.O_;S.jX instanceof GN&&S.jX.ck5.push(Q.promise);if(!S.afH){w.jumpTo(2);break}f=new _.O_;setTimeout(function(){return void f.resolve()});
return _.F(w,f.promise,2);case 2:return U=S.logger.share(),_.X1(w,4,5),S.state=5,a={},X=[],_.F(w,uG(S.jX.snapshot({rD:a,wpa:X}),S.cec.gDP,function(){return Promise.reject(new Un(15,"MDA:Timeout"))}),7);
case 7:z=w.yieldResult;if(S.isDisposed())throw new Un(S.zf?20:32,"MDA:Disposed");x=X[0];S.state=6;return _.F(w,uG(HRd(S.lG,z),S.cec.jNC,function(){return Promise.reject(new Un(10,"BWB:Timeout"))}),8);
case 8:I=w.yieldResult;if(S.isDisposed())throw new Un(S.zf?20:32,"BWB:Disposed");S.state=7;c=iS(U,function(){var r=DZp(S,I,Q,x);r.fZo.promise.then(function(){return void S.gJD()});
return r},"i");
case 5:_.O7(w);U.dispose();_.F1(w,6);break;case 4:n=_.Bs(w);(b=c)==null||b.dispose();if(!S.iG){N=CiJ(S,n);Q.resolve();var g;if(g=S.jX instanceof GN&&S.zz2<2)a:if(n instanceof Un)g=n.code!==32&&n.code!==20&&n.code!==10;else{if(n instanceof _.qU)switch(n.code){case 2:case 13:case 14:case 4:break;default:g=!1;break a}g=!0}if(g)return l=(1+Math.random()*.25)*(S.zf?6E4:1E3),H=setTimeout(function(){return void S.gJD()},l),S.addOnDisposeCallback(function(){return void clearTimeout(H)}),w.return();
S.iG=N}U.logError(S.zf?13:14);S.r4R.reject(S.iG);return w.return();case 6:S.state=8,S.zz2=0,(q=S.zf)==null||q.dispose(),S.zf=c,S.r4R.resolve(),_.IN(w)}})},DZp=function(S,c,Q,f){var U=nwp(c,2)*1E3;
if(U<=0)throw new Un(31,"TTM:Invalid");if(_.MJ(c,4))return new N8_(S.logger,_.MJ(c,4),U);if(!nwp(c,3))return new bRd(S.logger,oEZ(_.CW(c,1)),U);if(!f)throw new Un(4,"PMD:Undefined");f=f(oEZ(_.CW(c,1)));if(!(f instanceof Function))throw new Un(16,"APF:Failed");S.cpX=Math.floor((Date.now()+U)/1E3);S=new npl(S.logger,f,nwp(c,3),U);S.addOnDisposeCallback(function(){return void Q.resolve()});
return S};
k5.prototype.o8=function(S){return psd(this,Object.assign({},S),!1)};
k5.prototype.zv=function(S){return psd(this,Object.assign({},S),!0)};
k5.prototype.ciW=function(S){if(S>150)return!1;try{return this.cache=new Jhd(S,this.logger),!0}catch(c){return this.reportError(new Un(22,"GBJ:init",c)),!1}};
k5.prototype.reportError=function(S){this.logger.logError(S.code);this.onError(S);return S};
var hUH=function(S,c){c=c instanceof Un?c:new Un(5,"TVD:error",c);return S.reportError(c)},psd=function(S,c,Q){try{if(S.isDisposed())throw new Un(21,"BNT:disposed");
if(!S.zf&&S.iG)throw S.iG;var f,U;return(U=(f=q7J(S,c,Q))!=null?f:T8h(S,c,Q))!=null?U:ws$(S,c,Q)}catch(a){if(!c.iMC)throw hUH(S,a);return sN_(S,Q,a)}},q7J=function(S,c,Q){var f;
return(f=S.zf)==null?void 0:IWT(f,function(){return M6z(S,c)},Q,function(U){var a;
if(S.zf instanceof npl&&((a=c.ot)==null?0:a.xMX))try{var X;(X=S.cache)==null||aWd(X,M6z(S,c),U,c.ot.dwC,S.cpX-120)}catch(z){S.reportError(new Un(24,"ELX:write",z))}})},T8h=function(S,c,Q){var f;
if((f=c.ot)!=null&&f.lF9)try{var U,a=(U=S.cache)==null?void 0:Ahd(U,M6z(S,c),c.ot.dwC);return a?Q?iS(S.logger,function(){return _.mV(a,2)},"a"):a:void 0}catch(X){S.reportError(new Un(23,"RXO:read",X))}},ws$=function(S,c,Q){var f={stack:[],
error:void 0,hasError:!1};try{if(!c.lkF)throw new Un(29,"SDF:notready");return IWT(ftc(f,new u1d(S.logger,0,S.state)),function(){return M6z(S,c)},Q)}catch(U){f.error=U,f.hasError=!0}finally{UlH(f)}},sN_=function(S,c,Q){var f={stack:[],
error:void 0,hasError:!1};try{var U=hUH(S,Q);return IWT(ftc(f,new Koz(S.logger,U)),function(){return[]},c)}catch(a){f.error=a,f.hasError=!0}finally{UlH(f)}},M6z=function(S,c){return c.ka2?c.ka2:c.rD?iS(S.logger,function(){return c.ka2=EvH(c.rD)},"c"):[]},lWi=function(S){return dd(function(c){if(!Jt(c))return!1;
for(var Q=_.A(Object.entries(S)),f=Q.next();!f.done;f=Q.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;if(!(f in c)){if(U.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!U(c[f]))return!1}return!0})}({jX:function(S){return dd(function(c){return c instanceof S})}(GN)},"");var iR_=function(){var S=_.J4();this.JSC$7951_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",f9("cookie_enabled"),f9("cookie_3p_enabled"),_.Jo("browser"))};
iR_.prototype.increment=function(S,c,Q){this.JSC$7951_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",S,c,Q)};
var I4p=function(){var S=_.J4();this.JSC$7975_streamzService=S;S.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",Uh("tick"),f9("from_st_cookie"))};
I4p.prototype.increment=function(S,c){this.JSC$7975_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",S,c)};
var ZRu=function(){var S=_.J4();this.JSC$7981_streamzService=S;S.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.Jo("status"))};
ZRu.prototype.increment=function(S){this.JSC$7981_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",S)};
var GCl=function(){var S=_.J4();this.JSC$7984_streamzService=S;S.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.Jo("stage"),f9("is_using_ytd_player"),f9("has_expandable_tiles"))};
GCl.prototype.increment=function(S,c,Q){this.JSC$7984_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",S,c,Q)};
var Woh=function(){var S=_.J4();this.JSC$7987_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/response_signature",_.Jo("check_status"))};
Woh.prototype.increment=function(S){this.JSC$7987_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/response_signature",S)};
var gpd=function(){var S=_.J4();this.JSC$7990_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.Jo("sig"),Uh("de"))};
gpd.prototype.increment=function(S,c){this.JSC$7990_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/e_sig_log",S,c)};
var eUz=function(){var S=_.J4();this.JSC$7993_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.Jo("sig"),Uh("de"))};
eUz.prototype.increment=function(S,c){this.JSC$7993_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/e_sig_en",S,c)};
_.kCu=function(){var S=_.J4();this.JSC$7996_streamzService=S;S.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.Jo("action"))};
_.kCu.prototype.increment=function(S){this.JSC$7996_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/web/enforcement_intent",S)};var rT=window;var rhs=(new Date).getTime();var dZT=function(S){this.servicePromise_=S;S.then((0,_.H1)(function(){},this),function(){},this)},vpd=function(S,c,Q){S.servicePromise_.then(function(f){var U=f[c];
if(!U)throw Error("Pa`"+c);return U.apply(f,Q)})},Eps=function(S,c,Q){for(var f=Array(arguments.length-2),U=2;U<arguments.length;U++)f[U-2]=arguments[U];
U=PiT(S,c).then(function(a){return a.apply(null,f)},function(a){a=Error("Qa`"+c+"`"+S,{cause:a});
delete Loe[c];return _.pv(a)});
return new dZT(U)},Loe={},PiT=function(S,c){var Q=Loe[c];
if(Q)return Q;Q=(Q=_.rC(c))?_.B2(Q):(new _.n1(function(f,U){var a=(new Cx(document)).createElement("SCRIPT");a.async=!0;_.eS(a,_.XK(Lpd(S)));a.onload=a.onreadystatechange=function(){a.readyState&&a.readyState!="loaded"&&a.readyState!="complete"||f()};
a.onerror=function(X){U(Error("Ra`"+c+"`"+S,{cause:X}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(a)})).then(function(){var f=_.rC(c);
if(!f)throw Error("Sa`"+c+"`"+S);return f});
return Loe[c]=Q};var t6p={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},RU$=function(){var S=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=tdY(function(){return _.O(function(c){if(c.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?c.return(Promise.resolve()):_.F(c,V6d(S),2);S.rsaForList.length>
0&&document.addEventListener("click",S.requestAccessForHelpPanel);_.IN(c)})});
this.requestAccessForHelpPanel=function(){if(!(S.rsaForPromises.length>0)){for(var c=_.A(S.rsaForList),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;try{S.rsaForPromises.push(document.requestStorageAccessFor(Q))}catch(f){}}Promise.all(S.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){S.reset()})}}};
RU$.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var V6d=function(S){var c,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:c=_.A(Object.values(t6p)),Q=c.next();case 2:if(Q.done){a.jumpTo(0);break}f=Q.value;_.X1(a,5);return _.F(a,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:f}),7);case 7:U=a.yieldResult;U.state!=="granted"&&S.rsaForList.push(f);_.Pi(a,3);break;case 5:_.Bs(a);a.jumpTo(0);break;case 3:Q=c.next(),a.jumpTo(2)}})};(new RU$).initialize();var yh$=function(S){this.JSC$8010_loader_=S};
yh$.prototype.startHelp=function(S){vpd(this.JSC$8010_loader_,"startHelp",arguments)};
yh$.prototype.JSC$8012_loadChatSupport=function(S){vpd(this.JSC$8010_loader_,"loadChatSupport",arguments)};
var mZJ=function(S,c){c=c||{};S=Eps(opz,"help.service.Lazy.create",S,{apiKey:c.apiKey||c.apiKey,asxUiUri:c.asxUiUri||c.asxUiUri,environment:c.environment||c.environment,flow:c.flow||c.flow,frdProductData:c.frdProductData||c.frdProductData,frdProductDataSerializedJspb:c.frdProductDataSerializedJspb||c.frdProductDataSerializedJspb,helpCenterPath:c.helpCenterPath||c.helpCenterPath,locale:c.locale||c.locale||"en-US".replace(/-/g,"_"),nonce:c.nonce||c.nonce,productData:c.productData||c.productData,receiverUri:c.receiverUri||
c.receiverUri,renderApiUri:c.renderApiUri||c.renderApiUri,theme:c.theme||c.theme,window:c.window||c.window});return new yh$(S)},opz=new Ge(jWp,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var SVT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(SVT,_.Ga);var cHd=_.SS(SVT);_.Qqs=new function(S,c,Q,f){this.configType=S;this.flagName=Q;this.defaultValue=f;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 Ukd=function(){this.retriever=_.fl().resolve(f0s)};Yx(Node);Yx(Element);var JHd=Yx(HTMLElement);Yx(SVGElement);var a0d,AHe,PH,X5h;a0d=function(S){return typeof S.className=="string"?S.className:S.getAttribute&&S.getAttribute("class")||""};
AHe=function(S){return S.classList?S.classList:a0d(S).match(/\S+/g)||[]};
_.dT=function(S,c){typeof S.className=="string"?S.className=c:S.setAttribute&&S.setAttribute("class",c)};
_.vH=function(S,c){return S.classList?S.classList.contains(c):_.dp(AHe(S),c)};
_.yX=function(S,c){if(S.classList)S.classList.add(c);else if(!_.vH(S,c)){var Q=a0d(S);_.dT(S,Q+(Q.length>0?" "+c:c))}};
PH=function(S,c){if(S.classList)Array.prototype.forEach.call(c,function(U){_.yX(S,U)});
else{var Q={};Array.prototype.forEach.call(AHe(S),function(U){Q[U]=!0});
Array.prototype.forEach.call(c,function(U){Q[U]=!0});
c="";for(var f in Q)c+=c.length>0?" "+f:f;_.dT(S,c)}};
_.VX=function(S,c){S.classList?S.classList.remove(c):_.vH(S,c)&&_.dT(S,Array.prototype.filter.call(AHe(S),function(Q){return Q!=c}).join(" "))};
X5h=function(S,c){S.classList?Array.prototype.forEach.call(c,function(Q){_.VX(S,Q)}):_.dT(S,Array.prototype.filter.call(AHe(S),function(Q){return!_.dp(c,Q)}).join(" "))};var Oni=function(S){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=S.document},FW_=function(S,c){zKJ(S);
var Q=document.createElement("div"),f;(f=c.parentNode)==null||f.insertBefore(Q,c);Q.tabIndex=0;Q.id="fc-focus-trap-pre-div";Q=document.createElement("div");var U;(U=c.parentNode)==null||U.insertBefore(Q,c.nextSibling);Q.tabIndex=0;Q.id="fc-focus-trap-post-div";var a=xki(S,c),X=xki(S,c,!0);a&&X&&(S.focusChangeHandler=function(){var z=S.document.activeElement;if(z)if(_.dF(c,z))S.previouslyFocusedElement=z;else if(z===S.document.activeElement)switch(S.previouslyFocusedElement){case a:X.focus();S.previouslyFocusedElement=
X;break;default:a.focus(),S.previouslyFocusedElement=a}},S.document.addEventListener("focus",S.focusChangeHandler,!0),S.document.addEventListener("focusin",S.focusChangeHandler))},zKJ=function(S){S.focusChangeHandler&&(document.removeEventListener("focus",S.focusChangeHandler,!0),document.removeEventListener("focusin",S.focusChangeHandler),S.focusChangeHandler=null);
var c;(c=document.getElementById("fc-focus-trap-pre-div"))==null||c.remove();var Q;(Q=document.getElementById("fc-focus-trap-post-div"))==null||Q.remove()},Bbh=function(S,c,Q,f,U){Q=Q===void 0?!0:Q;
var a;U=(a=U===void 0?null:U)!=null?a:xki(S,c,f===void 0?!1:f);U!==null&&(U.focus(),Q&&FW_(S,c))};
Oni.prototype.disableButton=function(S,c){c=c===void 0?null:c;S.disabled=!0;c&&_.yX(S,c)};
var xki=function(S,c,Q){Q=Q===void 0?!1:Q;if(eMp(c)&&!Q)return c;var f=Q?[].slice.call(c.children,0).reverse():c.children;f=_.A(f);for(var U=f.next();!U.done;U=f.next())if(U=U.value,JHd(U)&&(U=xki(S,U,Q)))return U;return eMp(c)&&Q?c:null};var I0z=function(S){this.originalBodyOverflow="";this.JSC$8036_domHelper=nn(S)};_.Xa(_.D3,_.C9);_.J=_.D3.prototype;_.J.JSC$8039_id_=0;_.J.disposeInternal=function(){_.D3.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$8037_listener_;delete this.handler_};
_.J.start=function(S){this.stop();this.JSC$8039_id_=h3(this.callback_,S!==void 0?S:this.JSC$8037_interval_)};
_.J.stop=function(){this.isActive()&&_.QY.clearTimeout(this.JSC$8039_id_);this.JSC$8039_id_=0};
_.J.fire=function(){this.stop();this.JSC$8039_doAction_()};
_.J.isActive=function(){return this.JSC$8039_id_!=0};
_.J.JSC$8039_doAction_=function(){this.JSC$8039_id_=0;this.JSC$8037_listener_&&this.JSC$8037_listener_.call(this.handler_)};_.fP=function(S){_.C9.call(this);this.handler_=S;this.JSC$8040_keys_={}};
_.Xa(_.fP,_.C9);var nhz=[];_.fP.prototype.listen=function(S,c,Q,f){Array.isArray(c)||(c&&(nhz[0]=c.toString()),c=nhz);for(var U=0;U<c.length;U++){var a=_.HI(S,c[U],Q||this.handleEvent,f||!1,this.handler_||this);if(!a)break;this.JSC$8040_keys_[a.key]=a}return this};
_.fP.prototype.listenOnce=function(S,c,Q,f){return bnl(this,S,c,Q,f)};
var bnl=function(S,c,Q,f,U,a){if(Array.isArray(Q))for(var X=0;X<Q.length;X++)bnl(S,c,Q[X],f,U,a);else{c=jw(c,Q,f||S.handleEvent,U,a||S.handler_||S);if(!c)return S;S.JSC$8040_keys_[c.key]=c}return S};
_.fP.prototype.unlisten=function(S,c,Q,f,U){if(Array.isArray(c))for(var a=0;a<c.length;a++)this.unlisten(S,c[a],Q,f,U);else if(S=gZd(S,c,Q||this.handleEvent,_.c_(f)?!!f.capture:!!f,U||this.handler_||this))l7(S),delete this.JSC$8040_keys_[S.key];return this};
_.fP.prototype.removeAll=function(){_.Cn.forEach(this.JSC$8040_keys_,function(S,c){this.JSC$8040_keys_.hasOwnProperty(c)&&l7(S)},this);
this.JSC$8040_keys_={}};
_.fP.prototype.disposeInternal=function(){_.fP.superClass_.disposeInternal.call(this);this.removeAll()};
_.fP.prototype.handleEvent=function(){throw Error("Ta");};var L0=function(){_.C9.call(this);this.services_={}};
_.Xa(L0,_.C9);_.J=L0.prototype;_.J.logger=null;_.J.connect=function(S){S&&S()};
_.J.isConnected=function(){return!0};
_.J.registerService=function(S,c,Q){this.services_[S]={callback:c,objectPayload:!!Q}};
_.J.getService=function(S,c){var Q=this.services_[S];return Q?Q:this.defaultService_?{callback:_.u2(this.defaultService_,S),objectPayload:_.c_(c)}:null};
var NbJ=function(S,c){if(c&&typeof S==="string")try{return JSON.parse(S)}catch(Q){return null}else if(!c&&typeof S!=="string")return(0,_.TN)(S);return S};
L0.prototype.disposeInternal=function(){L0.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 En=function(S,c){this.sequence_=[];this.onCancelFunction_=S;this.defaultScope_=c||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};
En.prototype.cancel=function(S){if(this.fired_)this.result_ instanceof En&&this.result_.cancel();else{if(this.parent_){var c=this.parent_;delete this.parent_;S?c.cancel(S):(c.branches_--,c.branches_<=0&&c.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new t3(this))}};
En.prototype.continue_=function(S,c){this.blocked_=!1;KWz(this,S,c)};
var KWz=function(S,c,Q){S.fired_=!0;S.result_=Q;S.hadError_=!c;$kJ(S)},jq_=function(S){if(S.fired_){if(!S.silentlyCanceled_)throw new u4J(S);
S.silentlyCanceled_=!1}};
En.prototype.callback=function(S){jq_(this);KWz(this,!0,S)};
En.prototype.errback=function(S){jq_(this);KWz(this,!1,S)};
var l0h=function(S,c,Q){VE(S,c,null,Q)};
En.prototype.finally=function(S){var c=this;return new Promise(function(Q,f){VE(c,function(U){S();Q(U)},function(U){S();
f(U)})})};
var VE=function(S,c,Q,f){var U=S.fired_;U||(c===Q?c=Q=C0(c):(c=C0(c),Q=C0(Q)));S.sequence_.push([c,Q,f]);U&&$kJ(S)};
En.prototype.then=function(S,c,Q){var f,U,a=new _.n1(function(X,z){U=X;f=z});
VE(this,U,function(X){X instanceof t3?a.cancel():f(X);return YVe},this);
return a.then(S,c,Q)};
EZd(En);var CNu=function(S,c){c instanceof En?l0h(S,(0,_.H1)(c.branch,c)):l0h(S,function(){return c})};
En.prototype.branch=function(S){var c=new En;VE(this,c.callback,c.errback,c);S&&(c.parent_=this,this.branches_++);return c};
En.prototype.isError=function(S){return S instanceof Error};
var Hnd=function(S){return tB(S.sequence_,function(c){return typeof c[1]==="function"})},YVe={},$kJ=function(S){if(S.unhandledErrorId_&&S.fired_&&Hnd(S)){var c=S.unhandledErrorId_,Q=Dk_[c];
Q&&(_.QY.clearTimeout(Q.JSC$8057_id_),delete Dk_[c]);S.unhandledErrorId_=0}S.parent_&&(S.parent_.branches_--,delete S.parent_);c=S.result_;for(var f=Q=!1;S.sequence_.length&&!S.blocked_;){var U=S.sequence_.shift(),a=U[0],X=U[1];U=U[2];if(a=S.hadError_?X:a)try{var z=a.call(U||S.defaultScope_,c);z===YVe&&(z=void 0);z!==void 0&&(S.hadError_=S.hadError_&&(z==c||S.isError(z)),S.result_=c=z);if(tlT(c)||typeof _.QY.Promise==="function"&&c instanceof _.QY.Promise)f=!0,S.blocked_=!0}catch(x){c=x,S.hadError_=
!0,Hnd(S)||(Q=!0)}}S.result_=c;f&&(z=(0,_.H1)(S.continue_,S,!0),f=(0,_.H1)(S.continue_,S,!1),c instanceof En?(VE(c,z,f),c.blocking_=!0):c.then(z,f));Q&&(c=new p5d(c),Dk_[c.JSC$8057_id_]=c,S.unhandledErrorId_=c.JSC$8057_id_)},u4J=function(){_.Sx.call(this)};
_.Xa(u4J,_.Sx);u4J.prototype.message="Deferred has already fired";u4J.prototype.name="AlreadyCalledError";var t3=function(){_.Sx.call(this)};
_.Xa(t3,_.Sx);t3.prototype.message="Deferred was canceled";t3.prototype.name="CanceledError";var p5d=function(S){this.JSC$8057_id_=_.QY.setTimeout((0,_.H1)(this.throwError,this),0);this.JSC$8057_error_=S};
p5d.prototype.throwError=function(){delete Dk_[this.JSC$8057_id_];throw this.JSC$8057_error_;};
var Dk_={};var hKd={1:"NativeMessagingTransport"},qV_=["pu","lru","pru","lpu","ppu"],w5e=function(){for(var S=10,c=TbH,Q=c.length,f="";S-- >0;)f+=c.charAt(Math.floor(Math.random()*Q));return f},TbH="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Ra=function(S){_.C9.call(this);this.JSC$8060_domHelper_=S||nn()};
_.Xa(Ra,_.C9);Ra.prototype.transportType=0;Ra.prototype.getWindow=function(){return this.JSC$8060_domHelper_.getWindow()};
Ra.prototype.getName=function(){return hKd[String(this.transportType)]||""};var yE=function(S,c,Q,f,U){Ra.call(this,Q);this.JSC$8063_channel_=S;this.protocolVersion_=U||2;this.peerHostname_=c||"*";this.JSC$8063_eventHandler_=new _.fP(this);this.maybeAttemptToConnectTimer_=new _.Q7(100,this.getWindow());this.oneSidedHandshake_=!!f;this.setupAckReceived_=new En;this.setupAckSent_=new En;this.JSC$8063_connected_=new En;this.endpointId_=w5e();this.peerEndpointId_=null;this.oneSidedHandshake_?sqz(this.JSC$8063_channel_)==1?CNu(this.JSC$8063_connected_,this.setupAckReceived_):
CNu(this.JSC$8063_connected_,this.setupAckSent_):(CNu(this.JSC$8063_connected_,this.setupAckReceived_),this.protocolVersion_==2&&CNu(this.JSC$8063_connected_,this.setupAckSent_));l0h(this.JSC$8063_connected_,this.notifyConnected_,this);this.JSC$8063_connected_.callback(!0);this.JSC$8063_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.Xa(yE,Ra);yE.prototype.peerProtocolVersion_=null;yE.prototype.initialized_=!1;yE.prototype.transportType=1;var MCJ={};yE.prototype.sendTimerId_=0;
var Gcp=function(S){var c=S.event_.data;if(typeof c!=="string")return!1;var Q=c.indexOf("|"),f=c.indexOf(":");if(Q==-1||f==-1)return!1;var U=c.substring(0,Q);Q=c.substring(Q+1,f);c=c.substring(f+1);if(f=oa[U])return f.xpcDeliver(Q,c,S.event_.origin),!0;f=ind(c)[0];for(var a in oa){var X=oa[a];if(sqz(X)==1&&!X.isConnected()&&Q=="tp"&&(f=="SETUP"||f=="SETUP_NTPV2")&&ZnH(X,S.event_.origin))return delete oa[X.name],X.name=U,oa[U]=X,X.xpcDeliver(Q,c),!0}return!1},WWd=function(S){S.protocolVersion_!=2||
S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=2||S.send("tp","SETUP_NTPV2,"+S.endpointId_);
S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=1||S.send("tp","SETUP")},gh_=function(S,c){if(S.protocolVersion_!=2||S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=2||c!=2){if(S.peerProtocolVersion_!=null&&S.peerProtocolVersion_!=1||c!=1)return;
S.send("tp","SETUP_ACK")}else S.send("tp","SETUP_ACK_NTPV2");S.setupAckSent_.fired_||S.setupAckSent_.callback(!0)},eKs=function(S,c){c>S.peerProtocolVersion_&&(S.peerProtocolVersion_=c);
S.peerProtocolVersion_==1&&(S.setupAckSent_.fired_||S.oneSidedHandshake_||S.setupAckSent_.callback(!0),S.peerEndpointId_=null)};
_.J=yE.prototype;_.J.connect=function(){var S=this.getWindow(),c=_.Qd(S),Q=MCJ[c];typeof Q!=="number"&&(Q=0);Q==0&&_.HI(S.postMessage?S:S.document,"message",Gcp,!1,yE);MCJ[c]=Q+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.J.maybeAttemptToConnect_=function(){var S=sqz(this.JSC$8063_channel_)==0;this.oneSidedHandshake_&&S||this.JSC$8063_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),WWd(this))};
_.J.send=function(S,c){var Q=this.JSC$8063_channel_.peerWindowObject_;Q&&(this.send=function(f,U){var a=this,X=this.JSC$8063_channel_.name;this.sendTimerId_=h3(function(){a.sendTimerId_=0;try{var z=Q.postMessage?Q:Q.document;z.postMessage&&z.postMessage(X+"|"+f+":"+U,a.peerHostname_)}catch(x){}},0)},this.send(S,c))};
_.J.notifyConnected_=function(){var S=this.JSC$8063_channel_,c=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;S.isConnected()||S.connectionDelay_&&S.connectionDelay_.isActive()||(S.state_=2,_.yN(S.connectionDelay_),c!==void 0?(S.connectionDelay_=new _.D3(S.connectCb_,c),S.connectionDelay_.start()):(S.connectionDelay_=null,S.connectCb_()))};
_.J.disposeInternal=function(){if(this.initialized_){var S=this.getWindow(),c=_.Qd(S),Q=MCJ[c];MCJ[c]=Q-1;Q==1&&_.lS(S.postMessage?S:S.document,"message",Gcp,!1,yE)}this.sendTimerId_&&(_.QY.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.yN(this.JSC$8063_eventHandler_);delete this.JSC$8063_eventHandler_;_.yN(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$8063_connected_.cancel();delete this.JSC$8063_connected_;delete this.send;yE.superClass_.disposeInternal.call(this)};
var ind=function(S){S=S.split(",");S[1]=S[1]||null;return S};_.mL=function(S){if(S.getValues&&typeof S.getValues=="function")return S.getValues();if(typeof Map!=="undefined"&&S instanceof Map||typeof Set!=="undefined"&&S instanceof Set)return Array.from(S.values());if(typeof S==="string")return S.split("");if(_.yY(S)){for(var c=[],Q=S.length,f=0;f<Q;f++)c.push(S[f]);return c}return _.Cn.getValues(S)};
_.kch=function(S){if(S.getKeys&&typeof S.getKeys=="function")return S.getKeys();if(!S.getValues||typeof S.getValues!="function"){if(typeof Map!=="undefined"&&S instanceof Map)return Array.from(S.keys());if(!(typeof Set!=="undefined"&&S instanceof Set)){if(_.yY(S)||typeof S==="string"){var c=[];S=S.length;for(var Q=0;Q<S;Q++)c.push(Q);return c}return _.Cn.getKeys(S)}}};
_.rH$=function(S,c,Q){if(S.forEach&&typeof S.forEach=="function")S.forEach(c,Q);else if(_.yY(S)||typeof S==="string")Array.prototype.forEach.call(S,c,Q);else for(var f=_.kch(S),U=_.mL(S),a=U.length,X=0;X<a;X++)c.call(Q,U[X],f&&f[X],S)};var Kyp,az,Xz,VCl,dki,PNz,vhJ,tCh,LWl;
_.V7=function(S,c){this.JSC$8068_domain_=this.userInfo_=this.scheme_="";this.JSC$8068_port_=null;this.fragment_=this.JSC$8068_path_="";this.JSC$8068_ignoreCase_=!1;var Q;S instanceof _.V7?(this.JSC$8068_ignoreCase_=c!==void 0?c:S.JSC$8068_ignoreCase_,_.SV(this,S.scheme_),this.userInfo_=S.userInfo_,_.cm(this,S.JSC$8068_domain_),_.Qr(this,S.JSC$8068_port_),_.ff(this,S.getPath()),_.Ub(this,S.JSC$8068_queryData_.clone()),_.Jm(this,S.fragment_)):S&&(Q=_.Rk(String(S)))?(this.JSC$8068_ignoreCase_=!!c,_.SV(this,
Q[1]||"",!0),this.userInfo_=az(Q[2]||""),_.cm(this,Q[3]||"",!0),_.Qr(this,Q[4]),_.ff(this,Q[5]||"",!0),_.Ub(this,Q[6]||"",!0),_.Jm(this,Q[7]||"",!0)):(this.JSC$8068_ignoreCase_=!!c,this.JSC$8068_queryData_=new _.Am(null,this.JSC$8068_ignoreCase_))};
_.V7.prototype.toString=function(){var S=[],c=this.scheme_;c&&S.push(Xz(c,dki,!0),":");var Q=this.JSC$8068_domain_;if(Q||c=="file")S.push("//"),(c=this.userInfo_)&&S.push(Xz(c,dki,!0),"@"),S.push(_.vY(Q).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Q=this.JSC$8068_port_,Q!=null&&S.push(":",String(Q));if(Q=this.getPath())this.JSC$8068_domain_&&Q.charAt(0)!="/"&&S.push("/"),S.push(Xz(Q,Q.charAt(0)=="/"?vhJ:PNz,!0));(Q=this.JSC$8068_queryData_.toString())&&S.push("?",Q);(Q=this.fragment_)&&S.push("#",Xz(Q,
LWl));return S.join("")};
_.V7.prototype.resolve=function(S){var c=this.clone(),Q=!!S.scheme_;Q?_.SV(c,S.scheme_):Q=!!S.userInfo_;Q?c.userInfo_=S.userInfo_:Q=!!S.JSC$8068_domain_;Q?_.cm(c,S.JSC$8068_domain_):Q=S.JSC$8068_port_!=null;var f=S.getPath();if(Q)_.Qr(c,S.JSC$8068_port_);else if(Q=!!S.JSC$8068_path_){if(f.charAt(0)!="/")if(this.JSC$8068_domain_&&!this.JSC$8068_path_)f="/"+f;else{var U=c.getPath().lastIndexOf("/");U!=-1&&(f=c.getPath().slice(0,U+1)+f)}U=f;if(U==".."||U==".")f="";else if(_.zz(U,"./")||_.zz(U,"/.")){f=
_.UT(U,"/");U=U.split("/");for(var a=[],X=0;X<U.length;){var z=U[X++];z=="."?f&&X==U.length&&a.push(""):z==".."?((a.length>1||a.length==1&&a[0]!="")&&a.pop(),f&&X==U.length&&a.push("")):(a.push(z),f=!0)}f=a.join("/")}else f=U}Q?_.ff(c,f):Q=S.JSC$8068_queryData_.toString()!=="";Q?_.Ub(c,S.JSC$8068_queryData_.clone()):Q=!!S.fragment_;Q&&_.Jm(c,S.fragment_);return c};
_.V7.prototype.clone=function(){return new _.V7(this)};
_.SV=function(S,c,Q){S.scheme_=Q?az(c,!0):c;S.scheme_&&(S.scheme_=S.scheme_.replace(/:$/,""));return S};
_.cm=function(S,c,Q){S.JSC$8068_domain_=Q?az(c,!0):c;return S};
_.Qr=function(S,c){if(c){c=Number(c);if(isNaN(c)||c<0)throw Error("Ua`"+c);S.JSC$8068_port_=c}else S.JSC$8068_port_=null;return S};
_.V7.prototype.getPath=function(){return this.JSC$8068_path_};
_.ff=function(S,c,Q){S.JSC$8068_path_=Q?az(c,!0):c;return S};
_.Ub=function(S,c,Q){c instanceof _.Am?(S.JSC$8068_queryData_=c,Ehs(S.JSC$8068_queryData_,S.JSC$8068_ignoreCase_)):(Q||(c=Xz(c,tCh)),S.JSC$8068_queryData_=new _.Am(c,S.JSC$8068_ignoreCase_));return S};
_.to=function(S,c,Q){S.JSC$8068_queryData_.set(c,Q);return S};
_.Eh=function(S,c){return S.JSC$8068_queryData_.get(c)};
_.Jm=function(S,c,Q){S.fragment_=Q?az(c):c;return S};
_.Ob=function(S){_.to(S,"zx",P1());return S};
_.L9=function(S,c){return S instanceof _.V7?S.clone():new _.V7(S,c)};
Kyp=function(S,c){S instanceof _.V7||(S=_.L9(S));c instanceof _.V7||(c=_.L9(c));return S.resolve(c)};
az=function(S,c){return S?c?decodeURI(S.replace(/%25/g,"%2525")):decodeURIComponent(S):""};
Xz=function(S,c,Q){return typeof S==="string"?(S=encodeURI(S).replace(c,VCl),Q&&(S=S.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),S):null};
VCl=function(S){S=S.charCodeAt(0);return"%"+(S>>4&15).toString(16)+(S&15).toString(16)};
dki=/[#\/\?@]/g;PNz=/[#\?:]/g;vhJ=/[#\?]/g;tCh=/[#\?@]/g;LWl=/#/g;_.Am=function(S,c){this.count_=this.keyMap_=null;this.encodedQuery_=S||null;this.JSC$8069_ignoreCase_=!!c};
_.zr=function(S){S.keyMap_||(S.keyMap_=new Map,S.count_=0,S.encodedQuery_&&dHd(S.encodedQuery_,function(c,Q){S.add(ci(c),Q)}))};
_.J=_.Am.prototype;_.J.getCount=function(){_.zr(this);return this.count_};
_.J.add=function(S,c){_.zr(this);this.encodedQuery_=null;S=xm(this,S);var Q=this.keyMap_.get(S);Q||this.keyMap_.set(S,Q=[]);Q.push(c);this.count_+=1;return this};
_.J.remove=function(S){_.zr(this);S=xm(this,S);return this.keyMap_.has(S)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(S).length,this.keyMap_.delete(S)):!1};
_.J.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.J.isEmpty=function(){_.zr(this);return this.count_==0};
_.J.containsKey=function(S){_.zr(this);S=xm(this,S);return this.keyMap_.has(S)};
_.J.containsValue=function(S){var c=this.getValues();return _.dp(c,S)};
_.J.forEach=function(S,c){_.zr(this);this.keyMap_.forEach(function(Q,f){Q.forEach(function(U){S.call(c,U,f,this)},this)},this)};
_.J.getKeys=function(){_.zr(this);for(var S=Array.from(this.keyMap_.values()),c=Array.from(this.keyMap_.keys()),Q=[],f=0;f<c.length;f++)for(var U=S[f],a=0;a<U.length;a++)Q.push(c[f]);return Q};
_.J.getValues=function(S){_.zr(this);var c=[];if(typeof S==="string")this.containsKey(S)&&(c=c.concat(this.keyMap_.get(xm(this,S))));else{S=Array.from(this.keyMap_.values());for(var Q=0;Q<S.length;Q++)c=c.concat(S[Q])}return c};
_.J.set=function(S,c){_.zr(this);this.encodedQuery_=null;S=xm(this,S);this.containsKey(S)&&(this.count_-=this.keyMap_.get(S).length);this.keyMap_.set(S,[c]);this.count_+=1;return this};
_.J.get=function(S,c){if(!S)return c;S=this.getValues(S);return S.length>0?String(S[0]):c};
_.RKd=function(S,c,Q){S.remove(c);Q.length>0&&(S.encodedQuery_=null,S.keyMap_.set(xm(S,c),_.VY(Q)),S.count_+=Q.length)};
_.Am.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var S=[],c=Array.from(this.keyMap_.keys()),Q=0;Q<c.length;Q++){var f=c[Q],U=_.vY(f);f=this.getValues(f);for(var a=0;a<f.length;a++){var X=U;f[a]!==""&&(X+="="+_.vY(f[a]));S.push(X)}}return this.encodedQuery_=S.join("&")};
_.Am.prototype.clone=function(){var S=new _.Am;S.encodedQuery_=this.encodedQuery_;this.keyMap_&&(S.keyMap_=new Map(this.keyMap_),S.count_=this.count_);return S};
var xm=function(S,c){c=String(c);S.JSC$8069_ignoreCase_&&(c=c.toLowerCase());return c},Ehs=function(S,c){c&&!S.JSC$8069_ignoreCase_&&(_.zr(S),S.encodedQuery_=null,S.keyMap_.forEach(function(Q,f){var U=f.toLowerCase();
f!=U&&(this.remove(f),_.RKd(this,U,Q))},S));
S.JSC$8069_ignoreCase_=c};
_.Am.prototype.extend=function(S){for(var c=0;c<arguments.length;c++)_.rH$(arguments[c],function(Q,f){this.add(f,Q)},this)};var Fz=function(S,c){L0.call(this);for(var Q=0,f;f=qV_[Q];Q++)if(f in S&&!/^https?:\/\//.test(S[f]))throw Error("Wa`"+S[f]+"`"+f);this.cfg_=S;this.name=this.cfg_.cn||w5e();this.JSC$8064_domHelper_=c||nn();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.fP(this);S.lpu=S.lpu||kJH(this.JSC$8064_domHelper_.getWindow().location.href)+"/robots.txt";S.ppu=S.ppu||kJH(S.pu||"")+"/robots.txt";oa[this.name]=this;gZd(window,"unload",yHd)||jw(window,"unload",yHd)};
_.Xa(Fz,L0);var ohJ=RegExp("^%*tp$"),mkh=RegExp("^%+tp$");_.J=Fz.prototype;_.J.connectionDelay_=null;_.J.peerWindowDeferred_=null;_.J.transport_=null;_.J.state_=1;_.J.isConnected=function(){return this.state_==2};
_.J.peerWindowObject_=null;_.J.iframeElement_=null;_.J.connect=function(S){this.connectCb_=S||_.$q;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?l0h(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.J.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$8064_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var S=this.iframeElement_.contentWindow;S||(S=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=S}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$8064_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new yE(this,this.cfg_.ph,this.JSC$8064_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()()};
_.J.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.yN(this.transport_);this.connectCb_=this.transport_=null;_.yN(this.connectionDelay_);this.connectionDelay_=null};
_.J.send=function(S,c){if(this.isConnected()){try{var Q=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(U){Q=!1}if(Q){_.c_(c)&&(c=(0,_.TN)(c));Q=this.transport_;var f=Q.send;ohJ.test(S)&&(S="%"+S);S=S.replace(/[%:|]/g,encodeURIComponent);f.call(Q,S,c)}else this.close()}};
_.J.xpcDeliver=function(S,c,Q){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.H1)(this.xpcDeliver,this,S,c,Q));else if(ZnH(this,Q)&&!this.isDisposed()&&this.state_!=3)if(S&&S!="tp")this.isConnected()&&(S=S.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),S=mkh.test(S)?S.substring(1):S,S=this.getService(S,c))&&(c=NbJ(c,S.objectPayload),c!=null&&S.callback(c));else switch(S=this.transport_,Q=ind(c),c=Q[1],Q[0]){case "SETUP_ACK":eKs(S,1);S.setupAckReceived_.fired_||S.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":S.protocolVersion_==2&&(eKs(S,2),S.setupAckReceived_.fired_||S.setupAckReceived_.callback(!0));break;case "SETUP":eKs(S,1);gh_(S,1);break;case "SETUP_NTPV2":S.protocolVersion_==2&&(Q=S.peerProtocolVersion_,eKs(S,2),gh_(S,2),Q!=1&&S.peerEndpointId_==null||S.peerEndpointId_==c||WWd(S),S.peerEndpointId_=c)}};
var sqz=function(S){var c=S.cfg_.role;return typeof c==="number"?c:window.parent==S.peerWindowObject_?1:0},ZnH=function(S,c){var Q=S.cfg_.ph;
return _.Xo(c==null?"":String(c))||_.Xo(Q==null?"":String(Q))||c==S.cfg_.ph};
Fz.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete oa[this.name];_.yN(this.peerLoadHandler_);delete this.peerLoadHandler_;Fz.superClass_.disposeInternal.call(this)};
var yHd=function(){for(var S in oa)_.yN(oa[S])},oa={};var co_=function(S,c){this.JSC$8078_win=S;this.allowAdsHttpEndpoint=c;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$8078_domHelper=nn(S);this.scrollManager=new I0z(S);this.accessibilityManager=new Oni(S);Shz(this)},Shz=function(S){var c=function(){S.allowAdsPopup&&S.allowAdsPopup.style.setProperty("display","none","important");
S.wallElement.style.setProperty("display","","important");zKJ(S.accessibilityManager);Bbh(S.accessibilityManager,S.wallElement.querySelector(".fc-dialog-container"),!1,!1,S.wallElement.querySelector(".fc-button-whitelist"));var U=S.scrollManager;U.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow=U.originalBodyOverflow};
S.allowAdsPopup=S.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-whitelist-root"});S.allowAdsPopup.style.setProperty("display","none","important");S.JSC$8078_domHelper.appendChild(S.JSC$8078_domHelper.JSC$7363_document_.body,S.allowAdsPopup);var Q=S.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-dialog-overlay"});S.JSC$8078_domHelper.appendChild(S.allowAdsPopup,Q);var f=S.JSC$8078_domHelper.JSC$7365_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:c});S.JSC$8078_domHelper.appendChild(S.allowAdsPopup,
f);Q=S.JSC$8078_domHelper.JSC$7365_createDom("IFRAME");Q.className="fc-whitelist-dialog";Q.frameBorder="0";Q.id="fc-whitelist-iframe";Q.tabIndex="0";_.TR(Q,S.allowAdsHttpEndpoint);S.JSC$8078_domHelper.appendChild(f,Q);f={};f.pu=_.Oy(S.allowAdsHttpEndpoint).toString();f.tp=1;f.cn="fc-whitelist-channel";f.ifrid=Q.id;f.osh=!0;S.allowAdsCrossPageChannel=new Fz(f);S.allowAdsCrossPageChannel.registerService("close",c);S.allowAdsCrossPageChannel.registerService("refresh",function(){S.JSC$8078_win.location.reload()});
S.allowAdsCrossPageChannel.registerService("resize",function(U){if(U){var a=S.allowAdsPopup.querySelector(".fc-whitelist-dialog");U.width&&a.style.setProperty("width",U.width,"important");U.height&&a.style.setProperty("height",U.height,"important")}},!0);
S.allowAdsCrossPageChannel.connect()};
co_.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$8078_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var Bm=window,Iz=document,Qj_=Bm.location,f3d=function(){},Uf_=/\[native code\]/,nf=function(S,c,Q){return S[c]=S[c]||Q},JoT=function(S){S=S.sort();
for(var c=[],Q=void 0,f=0;f<S.length;f++){var U=S[f];U!=Q&&c.push(U);Q=U}return c},bd=function(){var S;
if((S=Object.create)&&Uf_.test(S))S=S(null);else{S={};for(var c in S)S[c]=void 0}return S},NI=nf(Bm,"gapi",{});var Kf={};Kf=nf(Bm,"___jsl",bd());nf(Kf,"I",0);nf(Kf,"hel",10);var a3d=function(){var S=Qj_.href;if(Kf.dpo)var c=Kf.h;else{c=Kf.h;var Q=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),f=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(S=S&&(Q.exec(S)||f.exec(S)))try{c=decodeURIComponent(S[2])}catch(U){}}return c},Aoi=function(S){var c=nf(Kf,"PQ",[]);
Kf.PQ=[];var Q=c.length;if(Q===0)S();else for(var f=0,U=function(){++f===Q&&S()},a=0;a<Q;a++)c[a](U)},X1H=function(S){return nf(nf(Kf,"H",bd()),S,bd())};var $m=function(S){this.JSC$8080_obj_=S};
$m.prototype.value=function(){return this.JSC$8080_obj_};
$m.prototype.getWidth=function(){return this.JSC$8080_obj_.width};
$m.prototype.getHeight=function(){return this.JSC$8080_obj_.height};
$m.prototype.getStyle=function(){return this.JSC$8080_obj_.style};var O9d=function(S){this.JSC$8083_obj_=S||{}};
_.J=O9d.prototype;_.J.value=function(){return this.JSC$8083_obj_};
_.J.setUrl=function(S){this.JSC$8083_obj_.url=S;return this};
_.J.getUrl=function(){return this.JSC$8083_obj_.url};
_.J.getStyle=function(){return this.JSC$8083_obj_.style};
_.J.setId=function(S){this.JSC$8083_obj_.id=S;return this};
_.J.getId=function(){return this.JSC$8083_obj_.id};
_.J.getContext=function(){return this.JSC$8083_obj_.context};
var zxe=function(S){S.JSC$8083_obj_.attributes=S.JSC$8083_obj_.attributes||{};return new $m(S.JSC$8083_obj_.attributes)};var xfe=function(){O9d.apply(this,arguments)};
_.C(xfe,O9d);var F2_=nf(Kf,"perf",bd());nf(F2_,"g",bd());var BFi=nf(F2_,"i",bd());nf(F2_,"r",[]);bd();bd();var nxH=function(S,c,Q){c&&c.length>0&&(c=I3d(c),Q&&Q.length>0&&(c+="___"+I3d(Q)),c.length>28&&(c=c.substr(0,28)+(c.length-28)),Q=c,c=nf(BFi,"_p",bd()),nf(c,Q,bd())[S]=(new Date).getTime(),c=F2_.r,typeof c==="function"?c(S,"_p",Q):c.push([S,"_p",Q]))},I3d=function(S){return S.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var b9l=bd(),NFz=[],ud=function(S){throw Error("Za`"+S);};
NFz.push(["jsl",function(S){for(var c in S)if(Object.prototype.hasOwnProperty.call(S,c)){var Q=S[c];typeof Q=="object"?Kf[c]=nf(Kf,c,[]).concat(Q):nf(Kf,c,Q)}if(c=S.u)S=nf(Kf,"us",[]),S.push(c),(c=/^https:(.*)$/.exec(c))&&S.push("http:"+c[1])}]);
var K2z=/^(\/[a-zA-Z0-9_\-]+)+$/,$f$=[/\/amp\//,/\/amp$/,/^\/amp$/],u5i=/^[a-zA-Z0-9\-_\.,!]+$/,jju=/^gapi\.loaded_[0-9]+$/,l3l=/^[a-zA-Z0-9,._-]+$/,Dfe=function(S,c,Q,f,U){var a=S.split(";"),X=a.shift(),z=b9l[X],x=null;z?x=z(a,c,Q,f):ud("no hint processor for: "+X);x||ud("failed to generate load url");c=x;Q=c.match(YhH);(f=c.match(CGJ))&&f.length===1&&H9p.test(c)&&Q&&Q.length===1||ud("failed sanity: "+S);try{S="?";if(U&&U.length>0){fi(U);var I=U.join(",");x=x+"?le="+I;S="&"}if(Kf.rol){var n=Kf.ol;
n&&n.length&&(x=""+x+S+"ol="+n.length)}}catch(b){}return x},qhe=function(S,c,Q,f){S=p1H(S);
jju.test(Q)||ud("invalid_callback");c=hxd(c);f=f&&f.length?hxd(f):null;var U=function(a){return encodeURIComponent(a).replace(/%2C/g,",")};
return[encodeURIComponent(S.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",U(S.version),"/m=",U(c),f?"/exm="+U(f):"","/rt=j/sv=1/d=1/ed=1",S.activeMods?"/am="+U(S.activeMods):"",S.resourceSig?"/rs="+U(S.resourceSig):"",S.zcms?"/t="+U(S.zcms):"","/cb=",U(Q)].join("")},p1H=function(S){S.charAt(0)!=="/"&&ud("relative path");
for(var c=S.substring(1).split("/"),Q=[];c.length;){S=c.shift();if(!S.length||S.indexOf(".")==0)ud("empty/relative directory");else if(S.indexOf("=")>0){c.unshift(S);break}Q.push(S)}S={};for(var f=0,U=c.length;f<U;++f){var a=c[f].split("="),X=decodeURIComponent(a[0]),z=decodeURIComponent(a[1]);a.length==2&&X&&z&&(S[X]=S[X]||z)}c="/"+Q.join("/");K2z.test(c)||ud("invalid_prefix");Q=0;for(f=$f$.length;Q<f;++Q)$f$[Q].test(c)&&ud("invalid_prefix");Q=TFd(S,"k",!0);f=TFd(S,"am");U=TFd(S,"rs");S=TFd(S,"t");
return{pathPrefix:c,version:Q,activeMods:f,resourceSig:U,zcms:S}},hxd=function(S){for(var c=[],Q=0,f=S.length;Q<f;++Q){var U=S[Q].replace(/\./g,"_").replace(/-/g,"_");
l3l.test(U)&&c.push(U)}return c.join(",")},TFd=function(S,c,Q){S=S[c];
!S&&Q&&ud("missing: "+c);if(S){if(u5i.test(S))return S;ud("invalid: "+c)}return null},H9p=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,CGJ=/\/cb=/g,YhH=/\/\//g;
b9l.m=function(S,c,Q,f){(S=S[0])||ud("missing_hint");return"https://apis.google.com"+qhe(S,c,Q,f)};
var w1e=decodeURI("%73cript"),sje=/^[-+_0-9\/A-Za-z]+={0,2}$/,MtT=function(S,c){for(var Q=[],f=0;f<S.length;++f){var U=S[f],a;if(a=U){a:{for(a=0;a<c.length;a++)if(c[a]===U)break a;a=-1}a=a<0}a&&Q.push(U)}return Q},i9u=function(){var S=Kf.nonce;
return S!==void 0?S&&S===String(S)&&S.match(sje)?S:Kf.nonce=null:Iz.querySelector?(S=Iz.querySelector("script[nonce]"))?(S=S.nonce||S.getAttribute("nonce")||"",S&&S===String(S)&&S.match(sje)?Kf.nonce=S:Kf.nonce=null):null:null},W2d=function(S){if(Iz.readyState!="loading")Z9e(S);
else{var c=i9u(),Q="";c!==null&&(Q=' nonce="'+c+'"');S="<"+w1e+' src="'+encodeURI(S)+'"'+Q+"></"+w1e+">";Iz.write(GkH?GkH.createHTML(S):S)}},Z9e=function(S){var c=Iz.createElement(w1e);
c.setAttribute("src",GkH?GkH.createScriptURL(S):S);S=i9u();S!==null&&c.setAttribute("nonce",S);c.async="true";(S=Iz.getElementsByTagName(w1e)[0])?S.parentNode.insertBefore(c,S):(Iz.head||Iz.body||Iz.documentElement).appendChild(c)},exu=function(S,c,Q){gxi(function(){var f=c===a3d()?nf(NI,"_",bd()):bd();
f=nf(X1H(c),"_",f);S(f)},Q)},IAo=function(S,c){var Q=c||{};
typeof c=="function"&&(Q={},Q.callback=c);var f=(c=Q)&&c._c;if(f)for(var U=0;U<NFz.length;U++){var a=NFz[U][0],X=NFz[U][1];X&&Object.prototype.hasOwnProperty.call(f,a)&&X(f[a],S,c)}c=[];S?c=S.split(":"):Q.features&&(c=Q.features);if(!(S=Q.h)&&(S=a3d(),!S))throw Error("$a");kkd(c||[],Q,S)},kkd=function(S,c,Q){S=JoT(S)||[];
var f=c.callback,U=c.config,a=c.timeout,X=c.ontimeout,z=c.onerror,x=void 0;typeof z=="function"&&(x=z);var I=null,n=!1;if(a&&!X||!a&&X)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";z=nf(X1H(Q),"r",[]).sort();var b=nf(X1H(Q),"L",[]).sort(),N=Kf.le||[],l=[].concat(z),H=function(E,v){if(n)return 0;Bm.clearTimeout(I);b.push.apply(b,q);var t=((NI||{}).config||{}).update;t?t(U):U&&nf(Kf,"cu",[]).push(U);if(v){nxH("me0",E,l);try{exu(v,Q,x)}finally{nxH("me1",E,l)}}return 1};
a>0&&(I=Bm.setTimeout(function(){n=!0;X()},a));
var q=MtT(S,b);if(q.length){q=MtT(S,z);var w=nf(Kf,"CP",[]),g=w.length;w[g]=function(E){if(!E)return 0;nxH("ml1",q,l);var v=function(V){w[g]=null;H(q,E)&&Aoi(function(){f&&f();V()})},t=function(){var V=w[g+1];
V&&V()};
g>0&&w[g-1]?w[g]=function(){v(t)}:v(t)};
if(q.length){var r="loaded_"+Kf.I++;NI[r]=function(E){w[g](E);NI[r]=null};
S=Dfe(Q,q,"gapi."+r,z,N);z.push.apply(z,q);nxH("ml0",q,l);c.sync||Bm.___gapisync?W2d(S):Z9e(S)}else w[g](f3d)}else H(q)&&f&&f()},rod;
var dfl=null,vxu=_.QY.trustedTypes;if(vxu&&vxu.createPolicy){try{dfl=vxu.createPolicy("goog#gapi",{createHTML:Qdp,createScript:Qdp,createScriptURL:Qdp})}catch(S){_.QY.console&&_.QY.console.error(S.message)}rod=dfl}else rod=dfl;var GkH=rod,gxi=function(S,c){if(Kf.hee&&Kf.hel>0)try{return S()}catch(Q){c&&c(Q),Kf.hel--,IAo("debug_error",function(){try{window.___jsl.hefn(Q)}catch(f){throw Q;}})}else try{return S()}catch(Q){throw c&&c(Q),Q;
}},PGu=NI.load;
PGu&&nf(Kf,"ol",[]).push(PGu);NI.load=function(S,c){return gxi(function(){return IAo(S,c)})};var qf;var L2s=function(S,c){this.serviceId_=S;this.moduleId_=c||null};
L2s.prototype.toString=function(){return this.serviceId_};
L2s.prototype.getModuleId=function(){return this.moduleId_};var XGx=new L2s("MpJwZc","MpJwZc");var z0r=new _.NU("a"),O1Z=function(S,c,Q){_.K0.call(this,S,c);this.node=c;this.kind=Q};
_.C(O1Z,_.K0);var Ex$=function(){this.JSC$8096_keys_={};this.urlPrefix_="";this.JSC$8096_queryData_={}};
Ex$.prototype.toString=function(){var S=this.urlPrefix_+ttd(this),c=_.nl(this.JSC$8096_queryData_),Q="";c!=""&&(Q="?"+c);return S+Q};
var VtH=function(S){S=jV(S,"md");return!!S&&S!=="0"},ttd=function(S){var c=[],Q=(0,_.H1)(function(f){this.JSC$8096_keys_[f]!==void 0&&c.push(f+"="+this.JSC$8096_keys_[f])},S);
VtH(S)?(Q("md"),Q("k"),Q("ck"),Q("am"),Q("rs"),Q("gssmodulesetproto"),Q("slk"),Q("dti")):(Q("sdch"),Q("k"),Q("ck"),Q("am"),Q("rt"),"d"in S.JSC$8096_keys_||ld(S,"d","0"),Q("d"),Q("exm"),Q("excm"),(S.JSC$8096_keys_.excm||S.JSC$8096_keys_.exm)&&c.push("ed=1"),Q("im"),Q("dg"),Q("sm"),jV(S,"br")!="1"&&jV(S,"br")!="0"||Q("br"),Q("br-d"),jV(S,"rb")=="1"&&Q("rb"),jV(S,"zs")!=="0"&&Q("zs"),Rxd(S)!==""&&Q("wt"),Q("gssmodulesetproto"),Q("ujg"),Q("sp"),Q("rs"),Q("cb"),Q("ee"),Q("slk"),Q("dti"),Q("m"));return c.join("/")},
jV=function(S,c){return S.JSC$8096_keys_[c]?S.JSC$8096_keys_[c]:null},ld=function(S,c,Q){Q?S.JSC$8096_keys_[c]=Q:delete S.JSC$8096_keys_[c]},yoi=function(S,c){S.urlPrefix_=c},oxh=function(S,c){c&&c.length>0?(c.sort(),ld(S,"exm",c.join(","))):ld(S,"exm",null)},mfe=function(S,c){c&&c.length>0?(c.sort(),ld(S,"excm",c.join(","))):ld(S,"excm",null)},Sjz=function(S){return(S=jV(S,"m"))?S.split(","):[]},Rxd=function(S){switch(jV(S,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},ct_=function(S,c){var Q=Object.keys(c).filter(function(f){return!!Object.keys(c[f]).length}).map(function(f){var U=Object.keys(c[f]);
U.length>1&&U.sort();return f+":"+U.join(",")});
Q.sort();ld(S,"ee",Q.join(";"))},LAc=function(S){var c=jV(S,"ee");
if(!c)return{};S={};c=_.A(c.split(";"));for(var Q=c.next();!Q.done;Q=c.next()){var f=_.A(Q.value.split(":"));Q=f.next().value;f=f.next().value;S[Q]={};f=_.A(f.split(","));for(var U=f.next();!U.done;U=f.next())S[Q][U.value]=!0}return S},Qxs=function(S){delete S.JSC$8096_keys_.m;
delete S.JSC$8096_keys_.exm;delete S.JSC$8096_keys_.ed};
Ex$.prototype.clone=function(){var S=new Ex$;S.JSC$8096_keys_=Object.assign({},this.JSC$8096_keys_);S.urlPrefix_=this.urlPrefix_;S.JSC$8096_queryData_=Object.assign({},this.JSC$8096_queryData_);return S};
var ECM=function(S,c){c=c===void 0?!0:c;var Q=ffz(S),f=new Ex$,U=_.Rk(Q)[5];_.Cn.forEach(Ujd,function(X){var z=U.match("/"+X+"=([^/]+)");z&&ld(f,X,z[1])});
var a="";a=S.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";yoi(f,S.substr(0,S.indexOf(a)+a.length));if(!c)return f;(S=_.Rk(Q)[6]||null)&&dHd(S,function(X,z){f.JSC$8096_queryData_[X]=z});
return f},dRY=function(S){S=_.Bi(ffz(S));
return S===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(S)?/\/k=/.test(S):!1},ffz=function(S){return S.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?S.substr(65):S},Ujd={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"},Jtd=RegExp("^loaded_(g|h)?[_\\d]+$");_.Ym=function(S){this.JSC$8108_id_=S;this.opts={}};
_.Ym.prototype.JSC$8110_setLabel=function(S){this.label_=S||void 0;return this};
_.Ym.prototype.addUploadMetadata=function(S,c){var Q=this.opts.data||{};Q[S]=c;this.opts.data=Q;return this};
var afi=function(S){var c=_.Cn.filter(S.opts,function(Q){return Q!==null});
c=_.Cn.isEmpty(c)?null:c;S=[S.JSC$8108_id_,S.label_,c];c=KpZ(S);return S=S.slice(0,c+1)};
_.Ym.prototype.toString=function(){var S=afi(this);return"("+_.D0(S,function(c){return JSON.stringify(c)}).join(",")+")"};
_.Ym.prototype.getId=function(){return this.JSC$8108_id_};
_.Ym.prototype.getOptions=function(){return _.Cn.clone(this.opts)};var Cf=function(){_.Ym.call(this,"image-search")};
_.C(Cf,_.Ym);Cf.prototype.setSize=function(S){this.opts.imgsz=S;return this};
Cf.prototype.JSC$8110_setLabel=function(S){_.Ym.prototype.JSC$8110_setLabel.call(this,S);return this};
Cf.prototype.addUploadMetadata=function(S,c){_.Ym.prototype.addUploadMetadata.call(this,S,c);return this};var Hm=function(){_.Ym.call(this,"maps")};
_.C(Hm,_.Ym);Hm.prototype.setZoom=function(S){this.opts.zoom=S;return this};
Hm.prototype.JSC$8110_setLabel=function(S){_.Ym.prototype.JSC$8110_setLabel.call(this,S);return this};
Hm.prototype.addUploadMetadata=function(S,c){_.Ym.prototype.addUploadMetadata.call(this,S,c);return this};_.DA=function(){_.Ym.call(this,"photos")};
_.C(_.DA,_.Ym);_.DA.prototype.JSC$8110_setLabel=function(S){_.Ym.prototype.JSC$8110_setLabel.call(this,S);return this};
_.DA.prototype.addUploadMetadata=function(S,c){_.Ym.prototype.addUploadMetadata.call(this,S,c);return this};var pf=function(){_.Ym.call(this,"url")};
_.C(pf,_.Ym);var Ats=function(){var S=new pf;S.opts.type="video";S.opts.site="youtube.com";return S};
pf.prototype.JSC$8110_setLabel=function(S){_.Ym.prototype.JSC$8110_setLabel.call(this,S);return this};
pf.prototype.addUploadMetadata=function(S,c){_.Ym.prototype.addUploadMetadata.call(this,S,c);return this};var hm=function(){_.Ym.call(this,"video-search")};
_.C(hm,_.Ym);var Xrp=function(){var S=new hm;S.opts.site="youtube.com";return S};
hm.prototype.JSC$8110_setLabel=function(S){_.Ym.prototype.JSC$8110_setLabel.call(this,S);return this};
hm.prototype.addUploadMetadata=function(S,c){_.Ym.prototype.addUploadMetadata.call(this,S,c);return this};var Oy_=function(){_.Ym.call(this,"web")};
_.C(Oy_,_.Ym);Oy_.prototype.JSC$8110_setLabel=function(S){_.Ym.prototype.JSC$8110_setLabel.call(this,S);return this};
Oy_.prototype.addUploadMetadata=function(S,c){_.Ym.prototype.addUploadMetadata.call(this,S,c);return this};var qI=function(){this.items_=[];this.opts={}},zqd=function(S){switch(S){case "image-search":return new Cf;
case "maps":return new Hm;case "photos":return new _.DA;case "url":return new pf;case "video-search":return new hm;case "web":return new Oy_}return new _.Ym(S)};
qI.prototype.addView=function(S){this.items_.push(typeof S==="string"?zqd(S):S);return this};
var xjd=function(S){return"("+_.D0(S.items_,function(c){return c.toString()}).join(",")+")"};
qI.prototype.toString=function(){return xjd(this)};
qI.prototype.getViews=function(S,c){c=c===void 0?[]:c;for(var Q=this.items_,f=0;f<Q.length;f++){var U=Q[f];U instanceof qI?U.getViews(S,c):U.getId()==S&&c.push(U)}return c};
qI.prototype.getOptions=function(){return _.Cn.clone(this.opts)};var et=function(S){this.basePickerUrl_=S||"https://docs.google.com/picker";this.nav_=new qI};
et.prototype.nav_=null;et.prototype.addView=function(S){this.nav_.addView(S);return this};
et.prototype.getBaseUrl=function(){return this.basePickerUrl_};
et.prototype.getViews=function(S){return this.nav_.getViews(S)};
_.Fme=function(S,c){S.callback_=c;return S};var BXi=new Map;BXi.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");BXi.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");BXi.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var Ifz=new Set;Ifz.add("application/vnd.google-apps.kix");Ifz.add("application/vnd.google-apps.ritz");Ifz.add("application/vnd.google-apps.punch");var Djl=function(S,c,Q){var f=Q&&_.MJ(Q,1);Q=nvl(Q);var U=S[0].getId();switch(_.iR(U,2)){case 13:return by_(S,c,f,Q);case 3:return NXh(S,c,f,Q);case 10:return KmT(S,c,f,Q);case 27:return KmT(S,c,f,Q);case 12:return $j_(S,c);case 2:return urd(S,c,f,Q);case 5:return jxe(S,c,f,Q);case 9:return lfl(S,c,f,Q);case 6:return Yj_(S,c,f,Q);case 25:return CQp(S,c,f,Q);case 1:return _.lR(S[0],UGp,26)?Hyz(S,c,f,Q):KmT(S,c,f,Q);default:return{}}},Yj_=function(S,c,Q,f){S=S.map(function(U){return{id:U.getId().getId(),
serviceId:"youtube",name:U.getName(),description:_.MJ(U,3),type:Tr(U),lastEditedUtc:_.fBz(_.JB(U,_.rD,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:U.getUrl(),embedUrl:_.MJ(U,13),thumbnails:wk(S1(U))}});
return{action:c,docs:S,viewToken:f,view:Q||"youtube",v2Translated:!0}},urd=function(S,c,Q,f){var U=S.map(function(a){var X=a.getId().getId(),z=_.MJ(a,7),x=a.getName(),I=Tr(a),n=_.fBz(_.JB(a,_.rD,12)).getTime(),b=a.getUrl(),N=Number(bVr(a)),l=_.MJ(a,3),H=_.MJ(a,11),q=wk(S1(a));
var w=_.JB(a,cH,21);w=_.T1(w,1);var g=_.JB(a,cH,21);g=_.MJ(g,10);var r=_.MJ(a,13);var E=_.JB(a,cH,21);E=_.T1(E,9);var v=_.JB(a,cH,21);v=_.MJ(v,11);X={id:X,serviceId:"docs",mimeType:z,name:x,type:I,lastEditedUtc:n,url:b,sizeBytes:N,description:l,iconUrl:H,thumbnails:q,isShared:w,downloadUrl:g,embedUrl:r,copyable:E,resourceKey:v};z=_.JB(a,cH,21);_.T1(z,12)&&(X.uploadState="success",X.isNew=!0);z=_.JB(a,cH,21);_.lR(z,Rl,3)&&(a=_.JB(a,cH,21),a=_.JB(a,Rl,3),_.lR(a,tM,2)&&(z=Z3(a.getDuration().getSeconds()),
x=a.getDuration(),x=_.Qa(x,2),X.duration=z+x/1E9),X.aspectRatio=a.getAspectRatio());return X});
return{action:c,docs:U,viewToken:f,view:Q||"all",extraUserInputs:prz(S),v2Translated:!0}},jxe=function(S,c,Q,f){S=S.map(function(U){var a=_.JB(U,B1l,15);
a=_.JB(a,VR,1);$L(U,10,VR,a);return{id:U.getId().getId(),serviceId:"web",mimeType:_.MJ(U,7),name:U.getName(),type:Tr(U),url:U.getUrl(),description:_.MJ(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wk(S1(U))}});
return{action:c,docs:S,viewToken:f,view:Q||"image-search",v2Translated:!0}},lfl=function(S,c,Q,f){S=S.map(function(U){return{serviceId:"url",
name:S1(U)[0].getUrl().split("/").pop(),type:Tr(U),mimeType:_.MJ(U,7),url:U.getUrl(),description:_.MJ(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wk(S1(U))}});
return{action:c,docs:S,viewToken:f,view:Q||"url",v2Translated:!0}},Hyz=function(S,c,Q,f){S=S.map(function(U){return{id:U.getId().getId(),
serviceId:"picasa",name:U.getName(),type:Tr(U),description:_.MJ(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wk(S1(U))}});
return{action:c,docs:S,viewToken:f,view:Q||"webcam",v2Translated:!0}},KmT=function(S,c,Q,f){return{action:c,
docs:S.map(hqh),viewToken:f,view:qjh(Q||"upload",S),extraUserInputs:prz(S),v2Translated:!0}},qjh=function(S,c){return c.some(function(Q){var f;
return((f=_.JB(Q,yR,30))==null?void 0:_.iR(f,3))===9})?S+"/gmailphotos":S},NXh=function(S,c,Q,f){var U=S.map(function(a){var X={id:a.getId().getId(),
serviceId:"picasa",mimeType:_.MJ(a,7),name:a.getName(),type:Tr(a),lastEditedUtc:_.fBz(_.JB(a,_.rD,12)).getTime(),url:a.getUrl(),sizeBytes:Number(bVr(a)),description:_.MJ(a,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wk(S1(a)),mediaKey:a.getId().getId(),parentId:_.MJ(a,4)},z,x=(z=_.JB(a,AUl,18))==null?void 0:_.JB(z,aBe,3);x&&(X.latitude=sY(x,1),X.longitude=sY(x,2));var I;a=(I=_.JB(a,AUl,18))==null?void 0:wr(I,6);I=a!=null?Z3(a):void 0;I&&(X.version=
I);return X});
return{action:c,docs:U,viewToken:f,view:Q||"photos",extraUserInputs:prz(S),v2Translated:!0}},by_=function(S,c,Q,f){S=S.map(function(U){return{id:U.getId().getId(),
serviceId:"et",name:S1(U)[0].getUrl().split("/").pop(),description:_.MJ(U,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wk(S1(U),"etjpg")}});
return{action:c,docs:S,viewToken:f,view:Q||"et",v2Translated:!0}},CQp=function(S,c,Q,f){S=S.map(function(U){var a=U.getId().getId(),X=f["2"];
return{id:a,serviceId:X.type!=="gmail_themes"&&X.parent==="6226252643674576769"?"picasa":"static_themes",name:U.getName(),mimeType:_.MJ(U,7),type:Tr(U),description:_.MJ(U,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:U.getUrl(),embedUrl:U.getUrl(),thumbnails:wk(S1(U))}});
return{action:c,docs:S,viewToken:f,view:Q||"photos",v2Translated:!0}},$j_=function(S,c){S=S.map(function(Q){var f=_.JB(Q,JUs,27);
f=_.uY(f,1,_.eN,_.c1())[0];return{id:Q.getId().getId(),serviceId:"contacts",mimeType:_.MJ(Q,7),name:Q.getName(),description:_.MJ(Q,3),url:"mailto:"+f,thumbnail:[{url:_.MJ(Q,11)}],email:f}});
return{action:c,docs:S,view:"contacts",v2Translated:!0}},nvl=function(S){if(!S)return{};
var c=_.MJ(S,3);c=c&&JSON.parse(c)||{};return{0:_.MJ(S,1),1:_.MJ(S,2),2:c}},wk=function(S,c){c=c===void 0?"":c;
if(!S.length)return null;c=="etjpg"&&(S=S.filter(function(Q){return Q.getUrl().includes("w1200-h300")}));
return S.map(function(Q){return{url:Q.getUrl(),height:Q.getHeight(),width:Q.getWidth(),type:c}})},prz=function(S){return{isAttachment:S.some(function(c){return _.T1(c,31)})}},hqh=function(S){var c,Q={id:(c=S.getId())==null?void 0:c.getId(),
serviceId:TXs(S),mimeType:_.MJ(S,7),name:S.getName(),type:Tr(S),sizeBytes:Number(bVr(S)),description:_.MJ(S,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:wk(S1(S)),isNew:!0};if(c=_.JB(S,yR,30)){Q.dataUrl=_.MJ(c,1)||null;a:{var f=_.JB(S,yR,30);switch(_.iR(f,3)){case 9:f=_.Wg(f,xGd,2,mC);f={remoteRefs:f&&_.MJ(f,1)};break a;case 10:case 15:f=_.Wg(f,z2s,4,mC);var U=S1(S);f={photo_id:f&&_.MJ(f,1),media_key:S.getId().getId(),media_type:_.iR(S,6)===1?1:2,image_url:U&&
U[0].getUrl(),width:U&&String(U[0].getWidth()),height:U&&String(U[0].getHeight())};break a}f=null}Q.uploadMetadata=f;Q.uploadId=_.MJ(c,9)||null;Q.uploadState=wre(c)||null}(f=c&&_.Wg(c,z2s,4,mC))&&(Q.id=_.MJ(f,1));(f=c&&_.Wg(c,FVz,5,mC))&&(Q.contentId=_.MJ(f,1));(f=c&&_.Wg(c,X8l,7,mC))&&(Q.contentId=_.MJ(f,1));(f=c&&_.Wg(c,OTJ,6,mC))&&(Q.contentId=_.MJ(f,1));(c==null?void 0:_.iR(c,3))===1&&(Q.mediaKey=S.getId().getId());return Q},TXs=function(S){var c;
switch(((c=_.JB(S,yR,30))==null?void 0:_.iR(c,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},Tr=function(S){switch(_.iR(S,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 _.MJ(S,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},wre=function(S){switch(S==null?void 0:_.iR(S,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 Zye,sxd,Mdd,iyH;_.Gos=function(S,c){var Q=c||{};c=Q.document||document;var f=_.Oy(S).toString(),U=(new Cx(c)).createElement("SCRIPT"),a={script_:U,timeout_:void 0},X=new En(sxd,a),z=null,x=Q.timeout!=null?Q.timeout:5E3;x>0&&(z=window.setTimeout(function(){Mdd(U,!0);X.errback(new iyH(1,"Timeout reached for loading script "+f))},x),a.timeout_=z);
U.onload=U.onreadystatechange=function(){U.readyState&&U.readyState!="loaded"&&U.readyState!="complete"||(Mdd(U,Q.cleanupWhenDone||!1,z),X.callback(null))};
U.onerror=function(){Mdd(U,!0,z);X.errback(new iyH(0,"Error while loading script "+f))};
a=Q.attributes||{};_.Cn.extend(a,{type:"text/javascript",charset:"UTF-8"});RRd(U,a);_.eS(U,S);Zye(c).appendChild(U);return X};
Zye=function(S){var c=$x("HEAD",S);return c&&c.length!==0?c[0]:S.documentElement};
sxd=function(){if(this&&this.script_){var S=this.script_;S&&S.tagName=="SCRIPT"&&Mdd(S,!0,this.timeout_)}};
Mdd=function(S,c,Q){Q!=null&&_.QY.clearTimeout(Q);S.onload=function(){};
S.onerror=function(){};
S.onreadystatechange=function(){};
c&&window.setTimeout(function(){_.K9(S)},0)};
iyH=function(S,c){var Q="Jsloader error (code #"+S+")";c&&(Q+=": "+c);_.Sx.call(this,Q);this.code=S};
_.Xa(iyH,_.Sx);var Wme=_.oK(["https://apis.google.com/js/api.js"]),gvd=_.QN(Wme),djd=function(S,c){var Q=!1,f=eqT(S,c).then(function(a){Q=!0;return a}),U=_.B_p(5E3).then(function(){return Q?eqT(S,c):kod(c).then(function(a){return rtz(a,S)})});
return c5_([f,U])},eqT=function(S,c){return vv$(c).then(function(Q){return rtz(Q,S)})},rtz=function(S,c){var Q=_.UT(c,"gapi.")?c.slice(5):c;
return S[Q]?_.B2(S[Q]):new _.n1(function(f,U){var a=h3(function(){U(Error("cb"))},3E4);
S.load(c,{callback:function(){_.QY.clearTimeout(a);f(S[Q])},
onerror:function(X){_.QY.clearTimeout(a);U(X)}})})},vv$=function(S){return S.gapi&&S.gapi.load?_.B2(S.gapi):kod(S)},kod=function(S){return _.Gos(gvd,{document:S.document}).then(function(){return S.gapi})},PQd=function(){};
PQd.prototype.load=function(S,c){c=c===void 0?window:c;var Q=Date.now();return djd(S,c).then(function(f){var U=Date.now();return{library:f,loadStartMs:Q,loadEndMs:U}},function(f){throw f instanceof Error?f:Error(String(f));
})};var FAT=function(){_.C9.call(this);this.gapiLoader_=new PQd;this.origin_=null;this.gapiPickerIframeResolver_=_.L4();this.gapiIframesResolver_=_.L4();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.C(FAT,_.C9);var Lms=function(S,c){var Q=_.rC("gapi.iframes",c);return Q?(S=Date.now(),_.B2({library:Q,loadStartMs:S,loadEndMs:S})):S.gapiLoader_.load("gapi.iframes",c)},Evp=function(S,c,Q,f,U,a){var X=!1;
X=X===void 0?!1:X;Lms(S,hH(c.ownerDocument)).then(function(z){var x=z.library;S.gapiIframesResolver_.resolve(x);z=S.gapiPickerIframeResolver_;var I=z.resolve,n=X;n=n===void 0?!1:n;var b={};b["host-message-handler"]=Q;S.hostMessageHandlerInternal_=b;var N=_.L9(f);N=_.L9(N);N=_.Qr(_.cm(_.SV(new _.V7,N.scheme_),N.JSC$8068_domain_),N.JSC$8068_port_).toString();S.origin_=N;N=(new xfe).setUrl(f);N.JSC$8083_obj_.where=c;N.JSC$8083_obj_.allowPost=n;N.JSC$8083_obj_.messageHandlers=b;n=_.rC("makeWhiteListIframesFilter",
x)([S.origin_]);N.JSC$8083_obj_.messageHandlersFilter=n;U!=null&&N.setId(U);a!=null&&(N.JSC$8083_obj_.rpctoken=a);n=zxe(N);n.JSC$8080_obj_.style={display:"block","min-width":"100%",width:"1px"};n.JSC$8080_obj_.height="100%";zxe(N).value().allow="camera 'src' "+S.origin_;x=x.getContext().openChild(N.value());I.call(z,x)},function(z){S.gapiIframesResolver_.reject(z);
S.gapiPickerIframeResolver_.reject(z)});
return S.gapiPickerIframeResolver_.promise},tdd=function(S,c){return _.Dg([S.gapiIframesResolver_.promise,
S.gapiPickerIframeResolver_.promise]).then(function(Q){var f=_.A(Q);Q=f.next().value;return(f=f.next().value)?f.send("picker-message-handler",c,void 0,_.rC("makeWhiteListIframesFilter",Q)([S.origin_])):_.pv(Error("db"))})};
FAT.prototype.disposeInternal=function(){Vdi(this);_.C9.prototype.disposeInternal.call(this)};
var Vdi=function(S){S.gapiPickerIframeResolver_.promise.then(function(c){c&&(c.unregister("host-message-handler"),delete S.hostMessageHandlerInternal_["host-message-handler"])})};var Rql=function(){this.nextId=0};var ovi=function(S,c){switch(S.action){case "select-contacts":S=yth(S.contacts);break;case "visibility":S=S.visible;var Q=new f0;S=_.ep(Q,1,7).setVisible(S);Q={};Q["iframe-command"]=S.serialize();S=Q;break;default:S=null}return S?tdd(c,S):_.B2()},yth=function(S){if(!S||S.length==0)return null;
var c=new f0;_.ep(c,1,11);var Q=new Rql;S.forEach(function(f){if(f.email){var U=new hP;U=_.oC(U,2,f.name?f.name:f.email);var a=new JUs;f=_.AUY(a,1,_.GO,f.email,_.eN);f=_.Qx(U,27,f);U=f.setId;a=(new ER).setId(":"+(Q.nextId++).toString(36));a=_.ep(a,2,12);f=U.call(f,a)}else f=null;f&&$L(c,7,hP,f)});
S={};S["iframe-command"]=c.serialize();return S};_.mji=function(){if(TyT){var S=/Windows NT ([0-9.]+)/;return(S=S.exec(_.bM()))?S[1]:"0"}return _.qNc?(S=/1[0|1][_.][0-9_.]+/,(S=S.exec(_.bM()))?S[0].replace(/_/g,"."):"10"):cmz?(S=/Android\s+([^\);]+)(\)|;)/,(S=S.exec(_.bM()))?S[1]:""):sdZ||M_T||i_z?(S=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(S=S.exec(_.bM()))?S[1].replace(/_/g,"."):""):""}();var sb;sb=function(S){return(S=S.exec(_.bM()))?S[1]:""};
_.Spd=function(){if(_.bR)return sb(/Firefox\/([0-9.]+)/);if(_.Fa||yS||Dlx)return rIZ;if(_.NJ){if(_.iM()||_.IZz()){var S=sb(/CriOS\/([0-9.]+)/);if(S)return S}return sb(/Chrome\/([0-9.]+)/)}if(_.GD&&!_.iM())return sb(/Version\/([0-9.]+)/);if(lqz||YMM){if(S=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.bM()))return S[1]+"."+S[2]}else if(EEc)return(S=sb(/Android\s+([0-9.]+)/))?S:sb(/Version\/([0-9.]+)/);return""}();var cSl=function(){};
_.ar(cSl);cSl.prototype.nextId_=0;_.MI=function(S){return":"+(S.nextId_++).toString(36)};var id=function(S){_.Y5.call(this);this.JSC$8178_dom_=S||nn();this.JSC$8178_id_=null;this.inDocument_=!1;this.JSC$8178_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.Xa(id,_.Y5);id.prototype.idGenerator_=cSl.getInstance();id.prototype.getId=function(){return this.JSC$8178_id_||(this.JSC$8178_id_=_.MI(this.idGenerator_))};
id.prototype.setId=function(S){this.parent_&&this.parent_.childIndex_&&(_.Cn.remove(this.parent_.childIndex_,this.JSC$8178_id_),_.Cn.add(this.parent_.childIndex_,S,this));this.JSC$8178_id_=S};
id.prototype.getElement=function(){return this.JSC$8178_element_};
var ZA=function(S){S.googUiComponentHandler_||(S.googUiComponentHandler_=new _.fP(S));return S.googUiComponentHandler_},QkJ=function(S,c){if(S==c)throw Error("eb");
var Q;if(Q=c&&S.parent_&&S.JSC$8178_id_){Q=S.parent_;var f=S.JSC$8178_id_;Q=Q.childIndex_&&f?_.Cn.get(Q.childIndex_,f)||null:null}if(Q&&S.parent_!=c)throw Error("eb");S.parent_=c;id.superClass_.setParentEventTarget.call(S,c)};
id.prototype.setParentEventTarget=function(S){if(this.parent_&&this.parent_!=S)throw Error("fb");id.superClass_.setParentEventTarget.call(this,S)};
id.prototype.JSC$8180_createDom=function(){this.JSC$8178_element_=this.JSC$8178_dom_.createElement("DIV")};
id.prototype.render=function(S){fJz(this,S)};
var fJz=function(S,c,Q){if(S.inDocument_)throw Error("gb");S.JSC$8178_element_||S.JSC$8180_createDom();c?c.insertBefore(S.JSC$8178_element_,Q||null):S.JSC$8178_dom_.JSC$7363_document_.body.appendChild(S.JSC$8178_element_);S.parent_&&!S.parent_.inDocument_||S.enterDocument()};
_.J=id.prototype;_.J.decorate=function(S){if(this.inDocument_)throw Error("gb");if(S&&this.canDecorate(S)){this.wasDecorated_=!0;var c=_.qk(S);this.JSC$8178_dom_&&this.JSC$8178_dom_.JSC$7363_document_==c||(this.JSC$8178_dom_=nn(S));this.decorateInternal(S);this.enterDocument()}else throw Error("hb");};
_.J.canDecorate=function(){return!0};
_.J.decorateInternal=function(S){this.JSC$8178_element_=S};
_.J.enterDocument=function(){this.inDocument_=!0;UR_(this,function(S){!S.inDocument_&&S.getElement()&&S.enterDocument()})};
_.J.exitDocument=function(){UR_(this,function(S){S.inDocument_&&S.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.J.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);UR_(this,function(S){S.dispose()});
!this.wasDecorated_&&this.JSC$8178_element_&&_.K9(this.JSC$8178_element_);this.parent_=this.model_=this.JSC$8178_element_=this.childIndex_=this.children_=null;id.superClass_.disposeInternal.call(this)};
_.J.getModel=function(){return this.model_};
_.J.addChild=function(S,c){var Q=this.children_?this.children_.length:0;if(S.inDocument_&&(c||!this.inDocument_))throw Error("gb");if(Q<0||Q>(this.children_?this.children_.length:0))throw Error("ib");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);S.parent_==this?(_.Cn.set(this.childIndex_,S.getId(),S),_.tZ(this.children_,S)):_.Cn.add(this.childIndex_,S.getId(),S);QkJ(S,this);_.uoc(this.children_,Q,0,S);S.inDocument_&&this.inDocument_&&S.parent_==this?(c=this.getContentElement(),
(c.childNodes[Q]||null)!=S.getElement()&&(S.getElement().parentElement==c&&c.removeChild(S.getElement()),Q=c.childNodes[Q]||null,c.insertBefore(S.getElement(),Q))):c?(this.JSC$8178_element_||this.JSC$8180_createDom(),Q=this.children_?this.children_[Q+1]||null:null,fJz(S,this.getContentElement(),Q?Q.JSC$8178_element_:null)):this.inDocument_&&!S.inDocument_&&S.JSC$8178_element_&&S.JSC$8178_element_.parentNode&&S.JSC$8178_element_.parentNode.nodeType==1&&S.enterDocument()};
_.J.getContentElement=function(){return this.JSC$8178_element_};
var UR_=function(S,c){S.children_&&S.children_.forEach(c,void 0)};
id.prototype.removeChild=function(S,c){if(S){var Q=typeof S==="string"?S:S.getId();S=this.childIndex_&&Q?_.Cn.get(this.childIndex_,Q)||null:null;Q&&S&&(_.Cn.remove(this.childIndex_,Q),_.tZ(this.children_,S),c&&(S.exitDocument(),S.JSC$8178_element_&&_.K9(S.JSC$8178_element_)),QkJ(S,null))}if(!S)throw Error("jb");return S};_.Xa(fJx,Qkz);_.Xa(URc,Qkz);var JSd;var aJd=function(S,c){c?S.setAttribute("role",c):S.removeAttribute("role")},Gr=function(S,c,Q){Array.isArray(Q)&&(Q=Q.join(" "));
var f="aria-"+c;Q===""||Q==void 0?(JSd||(Q={},JSd=(Q.atomic=!1,Q.autocomplete="none",Q.dropeffect="none",Q.haspopup=!1,Q.live="off",Q.multiline=!1,Q.multiselectable=!1,Q.orientation="vertical",Q.readonly=!1,Q.relevant="additions text",Q.required=!1,Q.sort="none",Q.busy=!1,Q.disabled=!1,Q.hidden=!1,Q.invalid="false",Q)),Q=JSd,c in Q?S.setAttribute(f,Q[c]):S.removeAttribute(f)):S.setAttribute(f,Q)};var ASu;_.Wm=function(S,c,Q){_.Y5.call(this);this.target=S;this.handle=c||S;this.limits=Q||new Z$(NaN,NaN,NaN,NaN);this.JSC$8183_document_=_.qk(S);this.JSC$8183_eventHandler_=new _.fP(this);_.F5(this,this.JSC$8183_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;_.HI(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=ASu};
_.Xa(_.Wm,_.Y5);ASu=_.QY.document&&_.QY.document.documentElement&&!!_.QY.document.documentElement.setCapture&&!!_.QY.document.releaseCapture;_.XYh=function(S,c){S.hysteresisDistanceSquared_=Math.pow(c,2)};
_.J=_.Wm.prototype;_.J.setEnabled=function(S){this.enabled_=S};
_.J.disposeInternal=function(){_.Wm.superClass_.disposeInternal.call(this);_.lS(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8183_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8183_document_.releaseCapture();this.handle=this.target=null};
_.J.startDrag=function(S){var c=S.type=="mousedown";if(!this.enabled_||this.dragging_||c&&(S.event_.button!=0||_.qNc&&S.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new gk("start",this,S.clientX,S.clientY,S)))this.dragging_=!0,c&&S.preventDefault();else return;else c&&S.preventDefault();c=this.JSC$8183_document_;var Q=c.documentElement,f=!this.useSetCapture_;this.JSC$8183_eventHandler_.listen(c,["touchmove","mousemove"],this.handleMove_,
{capture:f,passive:!1});this.JSC$8183_eventHandler_.listen(c,["touchend","mouseup"],this.endDrag,f);this.useSetCapture_?(Q.setCapture(!1),this.JSC$8183_eventHandler_.listen(Q,"losecapture",this.endDrag)):this.JSC$8183_eventHandler_.listen(hH(c),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8183_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,f);this.clientX=this.startX=S.clientX;this.clientY=this.startY=S.clientY;this.screenX=S.screenX;this.screenY=S.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=Iq(nn(this.JSC$8183_document_))}};
_.J.endDrag=function(S,c){this.JSC$8183_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8183_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new gk("end",this,S.clientX,S.clientY,S,ObT(this,this.deltaX),zjT(this,this.deltaY),c||S.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.J.handleMove_=function(S){if(this.enabled_){var c=S.clientX-this.clientX,Q=S.clientY-this.clientY;this.clientX=S.clientX;this.clientY=S.clientY;this.screenX=S.screenX;this.screenY=S.screenY;if(!this.dragging_){var f=this.startX-this.clientX,U=this.startY-this.clientY;if(f*f+U*U>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new gk("start",this,S.clientX,S.clientY,S)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(S);return}}Q=xRe(this,c,Q);c=Q.x;Q=Q.y;this.dragging_&&this.dispatchEvent(new gk("beforedrag",
this,S.clientX,S.clientY,S,c,Q))&&(FAd(this,S,c,Q),S.preventDefault())}};
var xRe=function(S,c,Q){var f=Iq(nn(S.JSC$8183_document_));c+=f.x-S.pageScroll.x;Q+=f.y-S.pageScroll.y;S.pageScroll=f;S.deltaX+=c;S.deltaY+=Q;return new _.pn(ObT(S,S.deltaX),zjT(S,S.deltaY))};
_.Wm.prototype.onScroll_=function(S){var c=xRe(this,0,0);S.clientX=this.clientX;S.clientY=this.clientY;FAd(this,S,c.x,c.y)};
var FAd=function(S,c,Q,f){S.target.style.left=Q+"px";S.target.style.top=f+"px";S.dispatchEvent(new gk("drag",S,c.clientX,c.clientY,c,Q,f))},ObT=function(S,c){var Q=S.limits;
S=isNaN(Q.left)?null:Q.left;Q=isNaN(Q.width)?0:Q.width;return Math.min(S!=null?S+Q:Infinity,Math.max(S!=null?S:-Infinity,c))},zjT=function(S,c){var Q=S.limits;
S=isNaN(Q.top)?null:Q.top;Q=isNaN(Q.height)?0:Q.height;return Math.min(S!=null?S+Q:Infinity,Math.max(S!=null?S:-Infinity,c))};
_.Wm.prototype.isDragging=function(){return this.dragging_};
var gk=function(S,c,Q,f,U,a,X){_.K0.call(this,S);this.clientX=Q;this.clientY=f;this.browserEvent=U;this.left=a!==void 0?a:c.deltaX;this.top=X!==void 0?X:c.deltaY};
_.Xa(gk,_.K0);var eV=function(S){this.JSC$8190_map_=new Map;var c=arguments.length;if(c>1){if(c%2)throw Error("pa");for(var Q=0;Q<c;Q+=2)this.set(arguments[Q],arguments[Q+1])}else S&&this.addAll(S)};
_.J=eV.prototype;_.J.getCount=function(){return this.JSC$8190_map_.size};
_.J.getValues=function(){return Array.from(this.JSC$8190_map_.values())};
_.J.getKeys=function(){return Array.from(this.JSC$8190_map_.keys())};
_.J.containsKey=function(S){return this.JSC$8190_map_.has(S)};
_.J.containsValue=function(S){return this.getValues().some(function(c){return c==S})};
_.J.equals=function(S,c){var Q=this;c=c===void 0?function(f,U){return f===U}:c;
return this===S?!0:this.JSC$8190_map_.size!=S.getCount()?!1:this.getKeys().every(function(f){return c(Q.JSC$8190_map_.get(f),S.get(f))})};
_.J.isEmpty=function(){return this.JSC$8190_map_.size==0};
_.J.clear=function(){this.JSC$8190_map_.clear()};
_.J.remove=function(S){return this.JSC$8190_map_.delete(S)};
_.J.get=function(S,c){return this.JSC$8190_map_.has(S)?this.JSC$8190_map_.get(S):c};
_.J.set=function(S,c){this.JSC$8190_map_.set(S,c);return this};
_.J.addAll=function(S){if(S instanceof eV){S=_.A(S.JSC$8190_map_);for(var c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;Q=Q.next().value;this.JSC$8190_map_.set(c,Q)}}else if(S)for(S=_.A(Object.entries(S)),c=S.next();!c.done;c=S.next())Q=_.A(c.value),c=Q.next().value,Q=Q.next().value,this.JSC$8190_map_.set(c,Q)};
_.J.forEach=function(S,c){var Q=this;c=c===void 0?this:c;this.JSC$8190_map_.forEach(function(f,U){return S.call(c,f,U,Q)})};
_.J.clone=function(){return new eV(this)};(function(){for(var S=["ms","moz","webkit","o"],c,Q=0;c=S[Q]&&!_.QY.requestAnimationFrame;++Q)_.QY.requestAnimationFrame=_.QY[c+"RequestAnimationFrame"],_.QY.cancelAnimationFrame=_.QY[c+"CancelAnimationFrame"]||_.QY[c+"CancelRequestAnimationFrame"];if(!_.QY.requestAnimationFrame){var f=0;_.QY.requestAnimationFrame=function(U){var a=(new Date).getTime(),X=Math.max(0,16-(a-f));f=a+X;return _.QY.setTimeout(function(){U(a+X)},X)};
_.QY.cancelAnimationFrame||(_.QY.cancelAnimationFrame=function(U){clearTimeout(U)})}})();
var BCT=[[],[]],IJz=0,nCd=!1,bb_=0,KAH=function(S,c){var Q=bb_++,f={measureTask:{id:Q,fn:S.measure,context:c},mutateTask:{id:Q,fn:S.mutate,context:c},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(f.args||(f.args=[]),f.args.length=0,f.args.push.apply(f.args,arguments),f.args.push(f.state)):f.args&&f.args.length!=0?(f.args[0]=f.state,f.args.length=1):f.args=[f.state];f.isScheduled||(f.isScheduled=!0,BCT[IJz].push(f));nCd||(nCd=!0,window.requestAnimationFrame(NCi))}},NCi=
function(){nCd=!1;
var S=BCT[IJz],c=S.length;IJz=(IJz+1)%2;for(var Q,f=0;f<c;++f){Q=S[f];var U=Q.measureTask;Q.isScheduled=!1;U.fn&&U.fn.apply(U.context,Q.args)}for(f=0;f<c;++f)Q=S[f],U=Q.mutateTask,Q.isScheduled=!1,U.fn&&U.fn.apply(U.context,Q.args),Q.state={};S.length=0};var $R$=_.oK(["about:blank"]),upl=_.oK(["javascript:undefined"]),jkh=_.QN($R$);_.Oy(jkh);var lJl=_.QN(upl);_.Oy(lJl);var km=function(S){_.Y5.call(this);this.JSC$8196_element_=S;this.listenKeyIn_=_.HI(this.JSC$8196_element_,"focus",this,!0);this.listenKeyOut_=_.HI(this.JSC$8196_element_,"blur",this,!0)};
_.Xa(km,_.Y5);km.prototype.handleEvent=function(S){var c=new _.$5(S.event_);c.type=S.type=="focusin"||S.type=="focus"?"focusin":"focusout";this.dispatchEvent(c)};
km.prototype.disposeInternal=function(){km.superClass_.disposeInternal.call(this);l7(this.listenKeyIn_);l7(this.listenKeyOut_);delete this.JSC$8196_element_};var Ypd=function(S,c){this.JSC$8199_element_=S;this.JSC$8199_dom_=c};var rk=function(S,c){id.call(this,c);this.useIframeMask_=!!S;this.lastFocus_=null;this.resizeBackgroundTask_=KAH({mutate:this.resizeBackground_},this);KAH({mutate:this.updateModalAndBackground_},this)};
_.Xa(rk,id);_.J=rk.prototype;_.J.focusHandler_=null;_.J.visible_=!1;_.J.bgEl_=null;_.J.bgIframeEl_=null;_.J.tabCatcherElement_=null;_.J.backwardTabWrapInProgress_=!1;_.J.getCssClass=function(){return"goog-modalpopup"};
_.J.getBackgroundElement=function(){return this.bgEl_};
_.J.JSC$8180_createDom=function(){rk.superClass_.JSC$8180_createDom.call(this);var S=this.getElement(),c=Fo(this.getCssClass()).split(" ");PH(S,c);S.tabIndex=0;_.Va(S,!1);CW$(this);Hbe(this)};
var CW$=function(S){if(S.useIframeMask_&&!S.bgIframeEl_){var c=S.JSC$8178_dom_.JSC$7365_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.TR(c,jkh);S.bgIframeEl_=c;S.bgIframeEl_.className=S.getCssClass()+"-bg";_.Va(S.bgIframeEl_,!1);Hid(S.bgIframeEl_,0)}S.bgEl_||(S.bgEl_=S.JSC$8178_dom_.JSC$7365_createDom("DIV",S.getCssClass()+"-bg"),_.Va(S.bgEl_,!1))},Hbe=function(S){S.tabCatcherElement_||(S.tabCatcherElement_=S.JSC$8178_dom_.createElement("SPAN"),_.Va(S.tabCatcherElement_,
!1),S.tabCatcherElement_.tabIndex=0,S.tabCatcherElement_.style.position="absolute")};
_.J=rk.prototype;_.J.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.J.canDecorate=function(S){return!!S&&S.tagName=="DIV"};
_.J.decorateInternal=function(S){rk.superClass_.decorateInternal.call(this,S);S=Fo(this.getCssClass()).split(" ");PH(this.getElement(),S);CW$(this);Hbe(this);this.getElement().tabIndex=0;_.Va(this.getElement(),!1)};
_.J.enterDocument=function(){this.bgIframeEl_&&_.wO(this.bgIframeEl_,this.getElement());_.wO(this.bgEl_,this.getElement());rk.superClass_.enterDocument.call(this);_.sR(this.tabCatcherElement_,this.getElement());this.focusHandler_=new km(this.JSC$8178_dom_.JSC$7363_document_);ZA(this).listen(this.focusHandler_,"focusin",this.onFocus);DR_(this,!1)};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.yN(this.focusHandler_);rk.superClass_.exitDocument.call(this);_.K9(this.bgIframeEl_);_.K9(this.bgEl_);_.K9(this.tabCatcherElement_)};
_.J.setVisible=function(S){if(S!=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_&&DR_(this,S),S){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8178_dom_.JSC$7363_document_.activeElement}catch(U){}this.updateModalAndBackground_();ZA(this).listen(this.JSC$8178_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8178_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);pY_(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)jw(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){ZA(this).unlisten(this.JSC$8178_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8178_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)jw(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var c=this.JSC$8178_dom_,Q=c.JSC$7363_document_.body,f=c.JSC$7363_document_.activeElement||Q;if(!this.lastFocus_||this.lastFocus_==Q){this.lastFocus_=null;break a}(f==Q||c.contains(this.getElement(),f))&&this.lastFocus_.focus()}catch(U){}this.lastFocus_=
null}}};
var DR_=function(S,c){S.modalAriaVisibilityHelper_||(S.modalAriaVisibilityHelper_=new Ypd(S.JSC$8178_element_,S.JSC$8178_dom_));S=S.modalAriaVisibilityHelper_;if(c){S.hiddenElements_||(S.hiddenElements_=[]);c=S.JSC$8199_dom_.getChildren(S.JSC$8199_dom_.JSC$7363_document_.body);for(var Q=0;Q<c.length;Q++){var f=c[Q],U;if(U=f!=S.JSC$8199_element_)U=f.getAttribute("aria-hidden"),U=!(U==null||U==void 0?0:String(U));U&&(Gr(f,"hidden",!0),S.hiddenElements_.push(f))}}else if(S.hiddenElements_){for(c=0;c<
S.hiddenElements_.length;c++)S.hiddenElements_[c].removeAttribute("aria-hidden");S.hiddenElements_=null}};
rk.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var pY_=function(S,c){S.bgIframeEl_&&_.Va(S.bgIframeEl_,c);S.bgEl_&&_.Va(S.bgEl_,c);_.Va(S.getElement(),c);_.Va(S.tabCatcherElement_,c)};
_.J=rk.prototype;_.J.onShow=function(){this.dispatchEvent("show")};
_.J.onHide=function(){pY_(this,!1);this.dispatchEvent("hide")};
_.J.isVisible=function(){return this.visible_};
_.J.focus=function(){this.focusElement_()};
_.J.resizeBackground_=function(){this.bgIframeEl_&&_.Va(this.bgIframeEl_,!1);this.bgEl_&&_.Va(this.bgEl_,!1);var S=this.JSC$8178_dom_.JSC$7363_document_;var c=_.B5(hH(this.JSC$8178_dom_.JSC$7363_document_)||window);var Q=Math.max(c.width,Math.max(S.body.scrollWidth,S.documentElement.scrollWidth));S=Math.max(c.height,Math.max(S.body.scrollHeight,S.documentElement.scrollHeight));this.bgIframeEl_&&(_.Va(this.bgIframeEl_,!0),_.jp$(this.bgIframeEl_,Q,S));this.bgEl_&&(_.Va(this.bgEl_,!0),_.jp$(this.bgEl_,
Q,S))};
_.J.reposition=function(){var S;if(_.uhh(this.getElement())=="fixed")var c=S=0;else c=Iq(this.JSC$8178_dom_),S=c.x,c=c.y;var Q=Ydd(this.getElement());var f=_.B5(hH(this.JSC$8178_dom_.JSC$7363_document_)||window);S=Math.max(S+f.width/2-Q.width/2,0);c=Math.max(c+f.height/2-Q.height/2,0);gO(this.getElement(),S,c);gO(this.tabCatcherElement_,S,c)};
_.J.onFocus=function(S){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():S.target==this.tabCatcherElement_&&h3(this.focusElement_,0,this)};
_.J.focusElement_=function(){try{this.getElement().focus()}catch(S){}};
_.J.disposeInternal=function(){_.yN(this.popupShowTransition_);this.popupShowTransition_=null;_.yN(this.popupHideTransition_);this.popupHideTransition_=null;_.yN(this.bgShowTransition_);this.bgShowTransition_=null;_.yN(this.bgHideTransition_);this.bgHideTransition_=null;rk.superClass_.disposeInternal.call(this)};var Gk=function(S,c,Q){rk.call(this,c,Q);this.JSC$8209_class_=S||"modal-dialog";this.buttons_=(new dk).addButton(hji,!0).addButton(qpp,!1,!0)};
_.Xa(Gk,rk);_.J=Gk.prototype;_.J.escapeToCancel_=!0;_.J.hasTitleCloseButton_=!0;_.J.modal_=!0;_.J.draggable_=!0;_.J.backgroundElementOpacity_=.5;_.J.title_="";_.J.JSC$8211_dragger_=null;_.J.JSC$8211_disposeOnHide_=!1;_.J.titleEl_=null;_.J.titleTextEl_=null;_.J.titleTextId_=null;_.J.titleCloseEl_=null;_.J.contentEl_=null;_.J.buttonEl_=null;_.J.getCssClass=function(){return this.JSC$8209_class_};
_.J.setTitle=function(S){this.title_=S;this.titleTextEl_&&_.ir(this.titleTextEl_,S)};
_.J.getTitle=function(){return this.title_};
_.J.getContent=function(){return""};
_.J.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var TCd=function(S){S.getElement()||S.render();return S.getElement()};
Gk.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Gk.superClass_.getBackgroundElement.call(this)};
var wY_=function(S,c){S.backgroundElementOpacity_=c;S.getElement()&&(c=S.getBackgroundElement())&&Hid(c,S.backgroundElementOpacity_)};
Gk.prototype.setDraggable=function(S){this.draggable_=S;skd(this,S&&this.inDocument_)};
Gk.prototype.JSC$8211_handleDrag=function(){};
var skd=function(S,c){var Q=Fo(S.JSC$8209_class_+"-title-draggable").split(" ");S.getElement()&&(c?PH(S.titleEl_,Q):X5h(S.titleEl_,Q));c&&!S.JSC$8211_dragger_?(c=new _.Wm(S.getElement(),S.titleEl_),S.JSC$8211_dragger_=c,PH(S.titleEl_,Q),_.HI(S.JSC$8211_dragger_,"start",S.setDraggerLimits_,!1,S),_.HI(S.JSC$8211_dragger_,"drag",S.JSC$8211_handleDrag,!1,S)):!c&&S.JSC$8211_dragger_&&(S.JSC$8211_dragger_.dispose(),S.JSC$8211_dragger_=null)};
_.J=Gk.prototype;
_.J.JSC$8180_createDom=function(){Gk.superClass_.JSC$8180_createDom.call(this);var S=this.getElement(),c=this.JSC$8178_dom_;this.titleTextId_=this.getId();var Q=this.getId()+".contentEl";this.titleEl_=c.JSC$7365_createDom("DIV",this.JSC$8209_class_+"-title",this.titleTextEl_=c.JSC$7365_createDom("SPAN",{className:this.JSC$8209_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=c.JSC$7365_createDom("SPAN",this.JSC$8209_class_+"-title-close"));c$i(S,this.titleEl_,this.contentEl_=
c.JSC$7365_createDom("DIV",{className:this.JSC$8209_class_+"-content",id:Q}),this.buttonEl_=c.JSC$7365_createDom("DIV",this.JSC$8209_class_+"-buttons"));aJd(this.titleTextEl_,"heading");aJd(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;Gr(this.titleCloseEl_,"label","Close");aJd(S,"dialog");Gr(S,"labelledby",this.titleTextId_||"");_.Va(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(S=this.buttons_,S.JSC$8212_element_=this.buttonEl_,S.render());_.Va(this.buttonEl_,!!this.buttons_);
wY_(this,this.backgroundElementOpacity_)};
_.J.decorateInternal=function(S){Gk.superClass_.decorateInternal.call(this,S);S=this.getElement();var c=this.JSC$8209_class_+"-content";this.contentEl_=Hl(document,null,c,S)[0];this.contentEl_||(this.contentEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",c),S.appendChild(this.contentEl_));c=this.JSC$8209_class_+"-title";var Q=this.JSC$8209_class_+"-title-text",f=this.JSC$8209_class_+"-title-close";(this.titleEl_=Hl(document,null,c,S)[0])?(this.titleTextEl_=Hl(document,null,Q,this.titleEl_)[0],this.titleCloseEl_=
Hl(document,null,f,this.titleEl_)[0]):(this.titleEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",c),S.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=nlT(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.px("SPAN",{className:Q,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;Gr(S,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8178_dom_.JSC$7365_createDom("SPAN",
f),this.titleEl_.appendChild(this.titleCloseEl_));_.Va(this.titleCloseEl_,this.hasTitleCloseButton_);c=this.JSC$8209_class_+"-buttons";(this.buttonEl_=Hl(document,null,c,S)[0])?(this.buttons_=new dk(this.JSC$8178_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8178_dom_.JSC$7365_createDom("DIV",c),S.appendChild(this.buttonEl_),this.buttons_&&(S=this.buttons_,S.JSC$8212_element_=this.buttonEl_,S.render()),_.Va(this.buttonEl_,!!this.buttons_));wY_(this,this.backgroundElementOpacity_)};
_.J.enterDocument=function(){Gk.superClass_.enterDocument.call(this);ZA(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);ZA(this).listen(this.buttonEl_,"click",this.onButtonClick_);skd(this,this.draggable_);ZA(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var S=this.getElement();aJd(S,"dialog");this.titleTextEl_.id!==""&&Gr(S,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){S=this.JSC$8178_dom_;
var c=this.getBackgroundElement();S.removeNode(this.bgIframeEl_);S.removeNode(c)}this.isVisible()&&DR_(this,!1)}};
_.J.exitDocument=function(){this.isVisible()&&this.setVisible(!1);skd(this,!1);Gk.superClass_.exitDocument.call(this)};
_.J.setVisible=function(S){S!=this.isVisible()&&(this.inDocument_||this.render(),Gk.superClass_.setVisible.call(this,S))};
_.J.onShow=function(){Gk.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.J.onHide=function(){Gk.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8211_disposeOnHide_&&this.dispose()};
_.J.setDraggerLimits_=function(){var S=this.JSC$8178_dom_.JSC$7363_document_,c=_.B5(hH(S)||window),Q=Math.max(S.body.scrollWidth,c.width);S=Math.max(S.body.scrollHeight,c.height);var f=Ydd(this.getElement());_.uhh(this.getElement())=="fixed"?this.JSC$8211_dragger_.limits=new Z$(0,0,Math.max(0,c.width-f.width),Math.max(0,c.height-f.height)):this.JSC$8211_dragger_.limits=new Z$(0,0,Q-f.width,S-f.height)};
_.J.onTitleCloseClick_=function(){MGe(this)};
var MGe=function(S){if(S.hasTitleCloseButton_){var c=S.buttons_,Q=c&&c.cancelButton_;Q?(c=c.get(Q),S.dispatchEvent(new vm(Q,c))&&S.setVisible(!1)):S.setVisible(!1)}},ibz=function(S){S.hasTitleCloseButton_=!1;
S.titleCloseEl_&&_.Va(S.titleCloseEl_,S.hasTitleCloseButton_)};
Gk.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Gk.superClass_.disposeInternal.call(this)};
Gk.prototype.onButtonClick_=function(S){a:{for(S=S.target;S!=null&&S!=this.buttonEl_;){if(S.tagName=="BUTTON")break a;S=S.parentNode}S=null}if(S&&!S.disabled){S=S.name;var c=this.buttons_.get(S);this.dispatchEvent(new vm(S,c))&&this.setVisible(!1)}};
Gk.prototype.onKey_=function(S){var c=!1,Q=!1,f=this.buttons_,U=S.target;if(S.type=="keydown")if(this.escapeToCancel_&&S.keyCode==27){var a=f&&f.cancelButton_;U=U.tagName=="SELECT"&&!U.disabled;a&&!U?(Q=!0,c=f.get(a),c=this.dispatchEvent(new vm(a,c))):U||(c=!0)}else{if(S.keyCode==9&&S.shiftKey&&U==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(n){}h3(this.resetBackwardTabWrap_,0,this)}}else if(S.keyCode==13){if(U.tagName=="BUTTON"&&!U.disabled)a=U.name;
else if(U==this.titleCloseEl_)MGe(this);else if(f){var X=f.defaultButton_,z;if(z=X)a:{z=$x("BUTTON",f.JSC$8212_element_);for(var x,I=0;x=z[I];I++)if(x.name==X||x.id==X){z=x;break a}z=null}U=(U.tagName=="TEXTAREA"||U.tagName=="SELECT"||U.tagName=="A")&&!U.disabled;!z||z.disabled||U||(a=X)}a&&f&&(Q=!0,c=this.dispatchEvent(new vm(a,String(f.get(a)))))}else U!=this.titleCloseEl_||S.keyCode!=32&&S.key!=" "||MGe(this);if(c||Q)S.stopPropagation(),S.preventDefault();c&&this.setVisible(!1)};
var vm=function(S,c){this.type="dialogselect";this.key=S;this.caption=c};
_.Xa(vm,_.K0);var dk=function(S){eV.call(this);S||nn();this.cancelButton_=this.JSC$8212_element_=this.defaultButton_=null};
_.Xa(dk,eV);_.J=dk.prototype;_.J.clear=function(){eV.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.J.set=function(S,c,Q,f){eV.prototype.set.call(this,S,c);Q&&(this.defaultButton_=S);f&&(this.cancelButton_=S);return this};
_.J.addButton=function(S,c,Q){return this.set(S.key,S.caption,c,Q)};
_.J.render=function(){if(this.JSC$8212_element_){_.kD(this.JSC$8212_element_,bbc);var S=nn(this.JSC$8212_element_);this.forEach(function(c,Q){c=S.JSC$7365_createDom("BUTTON",{name:Q},c);Q==this.defaultButton_&&(c.className="goog-buttonset-default");this.JSC$8212_element_.appendChild(c)},this)}};
_.J.decorate=function(S){if(S&&S.nodeType==1){this.JSC$8212_element_=S;S=$x("BUTTON",this.JSC$8212_element_);for(var c,Q,f,U=0;c=S[U];U++)if(Q=c.name||c.id,f=nlT(c)||c.value,Q){var a=U==0;this.set(Q,f,a,c.name=="cancel");a&&_.yX(c,"goog-buttonset-default")}}};
_.J.getElement=function(){return this.JSC$8212_element_};
var hji={key:"ok",caption:"OK"},qpp={key:"cancel",caption:"Cancel"},Zbh={key:"yes",caption:"Yes"},G_d={key:"no",caption:"No"},WAJ={key:"save",caption:"Save"},gC$={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new dk).addButton(hji,!0,!0),(new dk).addButton(hji,!0).addButton(qpp,!1,!0),(new dk).addButton(Zbh,!0).addButton(G_d,!1,!0),(new dk).addButton(Zbh).addButton(G_d,!0).addButton(qpp,!1,!0),(new dk).addButton(gC$).addButton(WAJ).addButton(qpp,!0,!0));_.Xa(JSp,Gk);_.Xa(aJT,et);var ejd=_.oK(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),k_$=_.oK(["//apis.google.com/js/rpc.js"]),nCT=_.QN(ejd),IJx=_.QN(k_$),XYo=null;var kx=function(S,c){_.Y5.call(this);this.JSC$8221_element_=S;S=_.yk(this.JSC$8221_element_)?this.JSC$8221_element_:this.JSC$8221_element_?this.JSC$8221_element_.body:null;this.isRtl_=!!S&&_.DHi(S);this.listenKey_=_.HI(this.JSC$8221_element_,_.Bg?"DOMMouseScroll":"mousewheel",this,c)};
_.Xa(kx,_.Y5);kx.prototype.handleEvent=function(S){var c=0,Q=0,f=S.event_;f.type=="mousewheel"?(S=rSh(-f.wheelDelta),f.wheelDeltaX!==void 0?(c=rSh(-f.wheelDeltaX),Q=rSh(-f.wheelDeltaY)):Q=S):(S=f.detail,S>100?S=3:S<-100&&(S=-3),f.axis!==void 0&&f.axis===f.HORIZONTAL_AXIS?c=S:Q=S);typeof this.maxDeltaX_==="number"&&(c=_.Zv(c,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(Q=_.Zv(Q,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(c=-c);c=new dRd(S,f,c,Q);this.dispatchEvent(c)};
var rSh=function(S){return _.Ir&&(_.qNc||wQp)&&S%40!=0?S:S/40};
kx.prototype.disposeInternal=function(){kx.superClass_.disposeInternal.call(this);l7(this.listenKey_);this.listenKey_=null};
var dRd=function(S,c,Q,f){_.$5.call(this,c);this.type="mousewheel";this.detail=S;this.deltaX=Q;this.deltaY=f};
_.Xa(dRd,_.$5);_.Aw=function(S){var c="instance_";if(S.instance_&&S.hasOwnProperty(c))return S.instance_;c=new S;return S.instance_=c};var BCZ;var vCe=_.oK(["https://about:blank"]),PWT=_.oK(['javascript:""']),LA_=_.oK(["about:blank"]);_.Xa(Rj,JSp);_.J=Rj.prototype;_.J.JSC$8229_url_="";_.J.JSC$8229_iframe_=null;_.J.iframeLoaded_=!1;_.J.loadedFired_=!1;_.J.callback_=function(){};
_.J.enterDocument=function(){Rj.superClass_.enterDocument.call(this);xRp(this.getBackgroundElement(),ZA(this))};
_.J.render=function(S){var c=this;Rj.superClass_.render.call(this,S);this.useGapi_?Lms(this.iframeManager_,window).then(function(){return ECu(c)}).then(null,function(){c.callback_({action:"error"})}):tGi(this)};
var ECu=function(S){var c=S.JSC$8178_dom_.JSC$7365_createDom("div",["picker-dialog-content","picker-frame"]);_.Va(c,!1);S.getContentElement().appendChild(c);return Evp(S.iframeManager_,c,function(Q){var f=$GT(Q["iframe-command"]);switch(f.getCommand()){case 1:Q=S.callback_;f=_.JB(f,QE,2);var U="";switch(f.getStatus()){case 2:U="cancel";break;case 1:U="picked";break;case 3:U="error"}var a=_.St(f,hP,2,_.c1(Q$Y));f=a.length===0?{action:U}:Djl(a,U,_.JB(f,bTd,7));Q.call(S,f);S.setVisible(!1);break;case 4:ibz(S);
S.callback_({action:"loaded"});break;case 7:case 8:Q=S.callback_;a:{U=f.getCommand();a=_.JB(f,QE,2);switch(U){case 7:U="uploadScheduled";break;case 8:U="uploadStateChange";break;default:f={};break a}f=_.St(a,hP,2,_.c1(Q$Y));if(f.length===0)f={action:U};else{var X=_.JB(a,bTd,7);a=X&&_.MJ(X,1);X=nvl(X);f=KmT(f,U,a,X)}}Q.call(S,f)}},S.JSC$8229_url_,S.targetId_,S.rpcToken_).then(function(Q){S.JSC$8229_iframe_=Q.getIframeEl();
VGh(S);_.Va(S.JSC$8229_iframe_.parentElement,!0);_.yX(S.getElement(),"picker-dialog");Rjz(S);return Q})},tGi=function(S){S.JSC$8229_iframe_=S.JSC$8178_dom_.JSC$7365_createDom("IFRAME",{id:S.targetId_,
name:S.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.TR(S.JSC$8229_iframe_,ySh(S));_.yX(S.getElement(),"picker-dialog");S.getContentElement().appendChild(S.JSC$8229_iframe_);ZA(S).listen(S.JSC$8229_iframe_,"load",function(){return void VGh(S)});
S.JSC$8229_iframe_.src=S.JSC$8229_url_;Rjz(S)},mRd=function(S){oCl(S,(0,_.H1)(function(c){c.setAuthToken(this.targetId_,this.rpcToken_)},S))},Rjz=function(S){var c=_.Eh(_.L9(S.JSC$8229_url_),"title");
c&&S.setTitle(c)},ySh=function(S){return _.xrz("Internet Explorer")>=7&&_.UT(S.JSC$8229_url_,"https")?_.QN(vCe):_.Fa?_.QN(PWT):_.QN(LA_)},VGh=function(S){mRd(S);
S.iframeLoaded_=!0;S.JSC$8229_iframe_.tabIndex=0;S.isVisible()&&S.focus()};
Rj.prototype.handleKeydown_=function(S){S.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),S.stopPropagation(),S.preventDefault())};
var oCl=function(S,c){var Q=S.JSC$8227_gadgetsDomHelper_;ObZ(function(){c(Q.getWindow().gadgets.rpc)},Q)};
Rj.prototype.setUrl=function(S){S=_.to(new _.V7(S),"rpcService",this.targetId_);_.to(S,"rpctoken",this.rpcToken_);_.Jm(S,"rpctoken="+this.rpcToken_);_.SV(S,"https");this.JSC$8229_url_=S.toString();this.JSC$8229_iframe_&&(this.JSC$8229_iframe_.src=this.JSC$8229_url_)};
var S8H=function(S,c){S.callback_=c;oCl(S,(0,_.H1)(function(Q){Q.register(this.targetId_,(0,_.H1)(this.handlePickerAction_,this))},S))};
Rj.prototype.handlePickerAction_=function(S){var c=S.action;c=="loaded"&&(this.loadedFired_=!0,cld(this,new URc(this.isVisible())),Q6e(this),ibz(this),ZA(this).unlisten(this.JSC$8178_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8229_iframe_.tabIndex=0);c!="picked"&&c!="cancel"||this.setVisible(!1);this.callback_(S)};
var Q6e=function(S){S.JSC$8229_appId_&&cld(S,new fJx(S.JSC$8229_appId_,window.location.protocol+"//"+window.location.host))};
Rj.prototype.setRelayUrl=function(S){oCl(this,(0,_.H1)(function(c){c.setRelayUrl(this.targetId_,S)},this))};
var cld=function(S,c){S.useGapi_&&ovi(c,S.iframeManager_).then(null,function(){S.callback_({action:"error"})});
oCl(S,(0,_.H1)(function(Q){Q.call(this.targetId_,"picker",null,c)},S))};
Rj.prototype.resizePicker_=function(){var S=hH(this.JSC$8178_dom_.JSC$7363_document_)||window;if(_.Eh(_.L9(this.JSC$8229_url_),"ignoreLimits")=="true")S=new _.xh(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.Eh(_.L9(this.JSC$8229_url_),"shadeDialog")=="true"){var c=TCd(this);c=p_d(c);var Q=_.B5(S);S=Q.width-80;Q=Q.height-40;c&&(S-=c.left?c.left:0,S-=c.right?c.right:0,Q-=c.top?c.top:0,Q-=c.bottom?c.bottom:0);S=new _.xh(S>0?S:0,Q>0?Q:0)}else(c=this.preferredDialogWidth_)?(c=Math.max(320,
Math.min(1051,c)),(Q=this.preferredDialogHeight_)||(Q=_.B5(S).height*.85),Q=Math.max(480,Math.min(650,Q))):(c=_.B5(S),Q=c.width*.618,Q=Q<c.height?Math.round(Math.max(480,Math.min(650,Q*.85))):Math.round(Math.max(480,Math.min(650,c.height*.85))),c=Math.round(Q/.618)),S=_.B5(S),c=Math.min(c,Math.max(S.width,320)),Q=Math.min(Q,Math.max(S.height,480)),S=new _.xh(c,Q);_.jp$(this.getContentElement(),S);this.reposition()};
Rj.prototype.reposition=function(){if(_.Eh(_.L9(this.JSC$8229_url_),"shadeDialog")=="true"){var S=Ydd(this.getElement()),c=_.B5(this.JSC$8178_dom_.getWindow());S=Math.floor(c.width/2-S.width/2);c=TCd(this);if(c=p_d(c)){var Q=c.left?c.left:0;Q+=c.right?c.right:0;S=Math.floor(S-Q/2)}S=S>0?S:0;c=Iq(this.JSC$8178_dom_).y;gO(this.getElement(),S,c)}else Rj.superClass_.reposition.call(this)};
Rj.prototype.setVisible=function(S){if(S!=this.isVisible()&&this.autoSizeDialog_){var c=this.JSC$8178_dom_.getWindow();S?(this.resizePicker_(),ZA(this).listen(c,"resize",this.resizePicker_),this.iframeLoaded_||ZA(this).listen(c,"keydown",this.handleKeydown_)):(ZA(this).unlisten(c,"resize",this.resizePicker_),this.iframeLoaded_||ZA(this).unlisten(c,"keydown",this.handleKeydown_))}Rj.superClass_.setVisible.call(this,S);cld(this,new URc(S))};
Rj.prototype.focus=function(){Rj.superClass_.focus.call(this);if(this.JSC$8229_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8229_iframe_.focus()}catch(S){}};var wh=function(S,c){c=c===void 0?Rj:c;et.call(this,S);this.pickerConstructor=c;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(S=window.location.origin)||(S=window.location.protocol+"//"+window.location.host);S&&this.urlParamMap_.set("origin",S);this.postProcessors_=[]};
_.C(wh,aJT);wh.prototype.JSC$8234_disposeOnHide_=!1;
wh.prototype.build=function(){this.JSC$8135_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$8135_appId_);this.getRelayUrl()||this.setRelayUrl(_.ff(_.Jm(_.Ub(_.L9(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("kb");var S=new this.pickerConstructor(fh_(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);S.JSC$8211_disposeOnHide_=this.JSC$8234_disposeOnHide_;
S.JSC$8229_appId_=this.JSC$8135_appId_;S.loadedFired_&&Q6e(S);S8H(S,this.callback_);return S};
var Uxd=function(S){S.urlParamMap_.set("multiselectEnabled","true");return S};
wh.prototype.getHeight=function(){return this.dialogHeight_};
wh.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
wh.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
wh.prototype.getWidth=function(){return this.dialogWidth_};
var Jlp=function(S){S.JSC$8234_disposeOnHide_=void 0;return S};
wh.prototype.setRelayUrl=function(S){this.urlParamMap_.set("parent",S);return this};
var ahl=function(S,c){S.urlParamMap_.set("selectButtonLabel",c);return S};
wh.prototype.setSize=function(S,c){this.dialogWidth_=S;this.dialogHeight_=c;return this};
wh.prototype.setTitle=function(S){this.urlParamMap_.set("title",S);return this};
var fh_=function(S){S.postProcessors_.length&&S.urlParamMap_.set("pp",JSON.stringify(S.postProcessors_));S.urlParamMap_.set("nav",xjd(S.nav_));var c=new _.V7(S.getBaseUrl());S.urlParamMap_.forEach(function(Q,f){_.to(c,f,Q)});
return c};var Ols=function(S,c){S.name!==void 0?(this.name=S.name,this.code=Al_[S.name]):(this.code=S=S.code,this.name=Xi$(S));_.Sx.call(this,W0Z("%s %s",this.name,c))};
_.Xa(Ols,_.Sx);var Xi$=function(S){var c=_.Cn.findKey(Al_,function(Q){return S==Q});
if(c===void 0)throw Error("mb`"+S);return c},Pm={},Al_=(Pm.AbortError=3,Pm.EncodingError=5,Pm.InvalidModificationError=9,Pm.InvalidStateError=7,Pm.NotFoundError=1,Pm.NotReadableError=4,Pm.NoModificationAllowedError=6,Pm.PathExistsError=12,Pm.QuotaExceededError=10,Pm.SecurityError=2,Pm.SyntaxError=8,Pm.TypeMismatchError=11,Pm);var zIH=function(S,c){_.K0.call(this,S.type,c);this.event_=S};
_.Xa(zIH,_.K0);var xxd=function(S,c,Q){Q===void 0&&(Q=S.size);return S.slice?S.slice(c,Q):null};var KAr=new WeakMap,NCz=function(S,c){S=[S];for(var Q=c.length-1;Q>=0;--Q)S.push(typeof c[Q],c[Q]);return S.join("\v")};_.upY(function(){if(!_.QY.Blob)return!1;var S=new Uint8Array(100);try{var c=new Blob([S])}catch(Q){return!1}return c.size!=100?!1:!0});
var F5$=_.upY(function(){if(!_.QY.Blob)return!1;var S=new Uint8Array(100);try{var c=new Blob([S])}catch(Q){return!1}return xxd(c,0,1)===null?!1:!0});_.QY.U3bHHf!=null||(_.QY.U3bHHf=0);_.QY.U3bHHf++;var jko={};var Sd=void 0;var YpT=Symbol("ub");var WAz=Qi("WizInjectionContext_Dispatcher");var JS=Symbol("vb");var nb=function(){},cOT=Symbol("wb"),jG=function(S){this.props=S;
this.__unmounted=!1};
jG.prototype.didPatch=function(){};
jG.prototype.didMount=function(){};
jG.prototype.didUnmount=function(){};
jG.prototype.didUpdate=function(){};var skT=Qi("WizInjectionContext_RootElement");var ibx=Qi("WizInjectionContext_AppContext"),MGp=Qi("WizInjectionContext_ModelRootElement"),Zbo=Qi("WizInjectionContext_RendererData"),G_p=Qi("WizInjectionContext_InjectingConstructor"),wYc=Qi("WizInjectionContext_AsyncDeps"),gCZ={};var PWZ=!1;var VGo={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextBasedComponentStacks:!1,enableContextPerComponent:YNc,enableLazyTsx:CtY,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,enableQueueEffectAndOnInitInitialRuns:ltz,disableSoyJsRenderEvents:!1,flushRenderEffectsDuringRender:!1,legacyTriggerSoyRendererEvents:!1};_.Uj=Object.assign({},{attributes:{},handleError:function(S){throw S;}},VGo);var B5e=Symbol("Ab"),W5Z=Symbol("Bb"),rlY=Symbol("Cb"),eIz=Symbol("Db"),VJr=dd(function(S){return Jt(S)&&B5e in S});var Q6p=Symbol("Eb"),Lf={},S8r=(Lf[Q6p]=!0,Lf.debugName="[component]",Lf.getComponentStack=function(){for(var S=[],c=this;c;)fhc(c)&&S.push(c.debugName),c=c.parent;return S},Lf.registerSignal=function(){},Lf.registerEffect=function(){},Lf);var ax=null,Oj=!1,OlR=1,Br=Symbol("Fb"),$v={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 Eb=Symbol("Gb"),tm=Symbol("Hb"),xv=Symbol("Ib"),N5H=Object.assign({},$v,{value:Eb,dirty:!0,error:null,equal:UxY,kind:"computed",producerMustRecompute:function(S){return S.value===Eb||S.value===tm},
producerRecomputeValue:function(S){if(S.value===tm)throw Error("da");var c=S.value;S.value=tm;var Q=Ihp(S),f=!1;try{var U=S.computation();Xr(null);f=c!==Eb&&c!==xv&&U!==xv&&S.equal(c,U)}catch(a){U=xv,S.error=a}finally{nrH(S,Q)}f?S.value=c:(S.value=U,S.version++)}});var j6M=function(){throw Error();};var Y8Y=null,$xo=Object.assign({},$v,{equal:UxY,value:void 0,kind:"signal"});Object.assign({},$v,{value:Eb,dirty:!0,error:null,equal:UxY,kind:"linkedSignal",producerMustRecompute:function(S){return S.value===Eb||S.value===tm},
producerRecomputeValue:function(S){if(S.value===tm)throw Error("da");var c=S.value;S.value=tm;var Q=Ihp(S);try{var f=S.source();var U=S.computation(f,c===Eb||c===xv?void 0:{source:S.sourceValue,value:c});S.sourceValue=f}catch(a){U=xv,S.error=a}finally{nrH(S,Q)}c!==Eb&&U!==xv&&S.equal(c,U)?S.value=c:(S.value=U,S.version++)}});Object.assign({},$v,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(S){S.schedule!==null&&S.schedule(S.ref)},
hasRun:!1,cleanupFn:function(){}});var HlH=Symbol("Jb"),bQ=Symbol("Kb");var Nj=Array.isArray;var ilZ;var Ihe={},GDz=MJr(Object.assign({},{consumerAllowSignalWrites:!0},Ihe)),NR=MJr(Object.assign({},{consumerAllowSignalWrites:!0},Ihe));var lQ=0,Yv=!1,Vr=function(){this.queue=new Set};
Vr.prototype.remove=function(S){this.queue.delete(S)};
Vr.prototype.clear=function(){this.queue.clear()};
var nrp=function(){Vr.apply(this,arguments)};
_.C(nrp,Vr);nrp.prototype.schedule=function(S){this.queue.add(S)};
nrp.prototype.flush=function(){if(this.queue.size){Yv=!0;try{for(var S=_.A(this.queue),c=S.next();!c.done;c=S.next()){var Q=c.value;this.queue.delete(Q);try{Q.run()}catch(f){bl_(f)}}}finally{Yv=!1}}};
var N5p=new nrp,Rz=function(){Vr.apply(this,arguments)};
_.C(Rz,Vr);var K5z=function(){Rz.apply(this,arguments)};
_.C(K5z,Rz);K5z.prototype.schedule=function(S){S.hasRun?this.queue.add(S):S.run()};
K5z.prototype.flush=function(){if(this.queue.size)if(_.Uj.flushRenderEffectsDuringRender){var S=this.queue;this.queue=new Set;RIR(S)}else RIR(this.queue)};
var grH=new K5z,$xh=function(){Rz.apply(this,arguments)};
_.C($xh,Rz);$xh.prototype.schedule=function(S){var c=this;return _.O(function(Q){if(Q.nextAddress==1)return S.hasRun?Q.jumpTo(2):_.F(Q,Promise.resolve(),3);if(Q.nextAddress!=2)return S.run(),Q.return();c.queue.add(S);_.IN(Q)})};
$xh.prototype.flush=function(){var S=this;return _.O(function(c){if(c.nextAddress==1)return S.queue.size?_.F(c,Promise.resolve(),2):c.return();RIR(S.queue);_.IN(c)})};
var dxr=new $xh,uJd=function(){Rz.apply(this,arguments)};
_.C(uJd,Rz);uJd.prototype.schedule=function(S){this.queue.add(S)};
uJd.prototype.flush=function(){this.queue.size&&RIR(this.queue)};
var kDr=new uJd,ErZ=[grH,N5p,kDr,dxr],j6u=[grH,kDr,dxr],PBp=[];Y8Y=function(){tJp();for(var S=_.A(PBp),c=S.next();!c.done;c=S.next())c=c.value,c()};
var bl_=fz;var Df=Symbol("Pb");var Hr=null,mxY,SJc=null,cBr;var yr={},lhd=Object.assign({},$v,(yr[B5e]=!0,yr.effectType=W5Z,yr.isResettableContext=!0,yr.producerNode=void 0,yr.hasRun=!1,yr.effectFn=null,yr.consumerIsAlwaysLive=!0,yr.consumerAllowSignalWrites=!0,yr.consumerMarkedDirty=vrp,yr.kind="effect",yr.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(Oj)throw Error("Qb");this.dirty=!1;if(!this.hasRun||zIr(this)){this.hasRun=!0;TCp(this);var S=_.cr(this),c=Ihp(this);ySo("effectRun",this.debugName);try{qj(this.effectFn,this.componentStack)}catch(Q){throw _.Uj.enableContextBasedComponentStacks&&
ht(Q),Q;}finally{oCY("effectRun",this.debugName),nrH(this,c),_.cr(S)}}}},yr.componentStack=void 0,yr.debugName="[effect]",yr[Symbol.dispose]=function(){JlH(this);
if(zo(this))for(var S=0;S<this.producerNode.length;S++)ahY(this.producerNode[S],this.producerIndexOfThis[S]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);S=_.A(j6u);for(var c=S.next();!c.done;c=S.next())c.value.remove(this);qpH(this)},yr));var UqZ=Object.assign({},lhd,{effectType:rlY});var JBz=Symbol("Rb");var azH=Object.assign({},lhd,{effectType:W5Z});var rBp=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 O6M={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},Xtx=
{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}]}},srY={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},FOz=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],xqZ={"*":{async:1,dir:0,loading:2,target:3}};var Y8l=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,oz={},Izz=(oz[1]=null,oz[2]=function(S,c){return c instanceof pc?qg(c):uo.toString()},oz[3]=function(S,c){return In(c)?_.nc(c):Y8l.test(String(c))?String(c):uo.toString()},oz[4]=function(S,c){return c instanceof A5?_.Oy(c):uo.toString()},oz[5]=function(S,c){return String(c)},oz[7]=null,oz[8]=null,oz[10]=null,oz);var caz=Symbol("Tb");var VAp=function(S){var c=CBe,Q=S,f="",U="",a=1;S<0&&(S=-S);if(S===Infinity)S=(Infinity*Math.sign(Q)).toString();else{for(var X=0;X<Hlp.length;X++){var z=Hlp[X];a=c[z];if(S>=a||a<=1&&S>.1*a){f=z;break}}f?(f+="B",U=" "):a=1;S=Math.round(Q/a*10)/10+U+f}return S},Hlp="Y Z E P T G M K  m u n".split(" "),CBe={"":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};_.Dxe=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 QTo={};RegExp.prototype.hasOwnProperty("sticky");var PHY=function(S){S=String(S);for(var c=function(f,U,a){for(var X=Math.min(U.length-a,f.length),z=0;z<X;z++){var x=U[a+z];if(f[z]!==("A"<=x&&x<="Z"?x.toLowerCase():x))return!1}return!0},Q=0;(Q=S.indexOf("<",Q))!=-1;){if(c("\x3c/script",S,Q)||c("\x3c!--",S,Q))return"zSoyz";
Q+=1}return S},ccc=function(S){return S!=null&&S.contentKind===QTo};var kv={default:"__default"};var jRc=Object.prototype.hasOwnProperty;NeY.prototype=Object.create(null);var oT=CHo();var ox=null;var Z6Y=function(S){this.created=[];this.deleted=[];this.node=S};var Gfx=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var S=this,c=S;S;)c=S,S=S.parentNode;return c};var DqH=function(S,c){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=S;this.key=c;this.text=void 0};var Pr=null,Ly=null,dX=null,tt=null,wtz=[],Tez=hJz,Rx=[],yi=[],S2z=function(S){return WOR(function(c,Q,f){dX=Ly=c;Ly=null;Q(f);qJY(null);Ly=dX;dX=dX.parentNode;return c},S)}(),mKR=function(S){return WOR(function(c,Q,f){var U={nextSibling:c};
Ly=U;Q(f);dX&&qJY(c.nextSibling);return U===Ly?null:Ly},S)}();var SG=[],eJo=0;var cY=new NeY;var qK=new NeY;var pi_=CHo(),vMp=pi_[kv.default],LOx=pi_.style,dqz=["focusin","focusout"];var Mex=function(){},lEz=function(){},gLc=function(){},Z1Y=function(){};var Up=Symbol("$b");var mqY,oMo=yBY;var Fp=Symbol("ac");var NQZ={};var WYo=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(" ")),
GeY=new Set(["a","font","script","style","title"]);var Kb={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var $C=null,uW=function(S,c){jG.call(this,S);var Q=this;this.functionComponent=c;this.hooks=[];this.hookCounter=0;this.disposeEffects=sj(function(f){Q.effectContext=f;_.wX(function(){DPZ(Q,Q.el)})},_.Uj.alwaysTrackContexts||!!Sd)};
_.C(uW,jG);uW.prototype.render=function(S){var c=$C;$C=this;this.hookCounter=0;var Q=Xr(NR),f=_.cr(this.effectContext);try{return ySo("render",this.componentName),this.functionComponent(S)}finally{oCY("render",this.componentName),_.cr(f),Xr(Q),$C=c}};
_.Rh.Object.defineProperties(uW.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){return ylZ(this.functionComponent)}}});var e0H=Symbol("oc"),wGZ=function(S,c,Q){this.kind=S;this.props=c;this.children=Q};
_.C(wGZ,nb);wGZ.prototype.render=function(){return TQR(this.kind,this.props,this.children)};
wGZ.prototype.getChildren=function(){return this.children};var rcY=[];j6M=function(S){throw Error("tb`"+S.debugName);};
(function(){var S=ox;ox=function(c){S==null||S(c);dPM(c)}})();var hIu=new WeakMap,q8p=0;var T5d=void 0,wil={},s6l=new WeakMap,Eic={getComponent:function(S){if(S.hasAttribute("ng-version"))return wil;if(!S.__wizComponent)return null;S=S.__wizComponent;s6l.set(S.propsAndState,S);return S.propsAndState},
getDirectiveMetadata:function(S){if(S===wil)return{framework:"wiz",name:"<Root>",props:{}};S=s6l.get(S);if(!S)throw Error("pc");return{framework:"wiz",name:S.name,props:Object.fromEntries(Object.keys(S.props).map(function(c){return[c,c]}))}},
"\u0275setProfiler":function(S){var c;(c=T5d)==null||c();T5d=L5p(function(){S(2)})},
getInjector:function(S){return S.__wizComponent},
"\u0275getSignalGraph":function(S){var c;S=(c=S.effects)!=null?c:[];var Q=vLp(S),f=Array.from(Q.keys());c=[];S=[];for(var U=new Map,a=0;a<f.length;a++)U.set(f[a],a);Q=_.A(Q.entries());for(f=Q.next();!f.done;f=Q.next()){a=_.A(f.value);f=a.next().value;var X=a.next().value;a=f;f=U.get(a);var z=hIu.get(a);z||(z=q8p.toString(),hIu.set(a,z),q8p++);var x=void 0,I=(x=a.debugName)!=null?x:"";x=I.startsWith("[signal]")?I:I.replace(/@.+/,"");a.kind==="computed"?c.push({label:x,value:a.value,kind:a.kind,epoch:a.version,
debuggableFn:a.computation,id:z}):a.kind==="signal"?c.push({label:x,value:a.value,kind:a.kind,epoch:a.version,id:z}):a.kind==="effect"?(I=void 0,c.push({label:x,kind:a.kind,epoch:a.version,debuggableFn:(I=a.effectFn)!=null?I:void 0,id:z})):c.push({label:x,kind:a.kind,epoch:a.version,id:z});a=_.A(X);for(X=a.next();!X.done;X=a.next())S.push({consumer:f,producer:U.get(X.value)})}return{nodes:c,edges:S}},
isSignal:function(S){return typeof S==="function"&&S[Br]!==void 0}};_.K.debugName="RlDudd";var P5M={nonNullableCondIsNull:function(){return Error("tc")}};var ycY=function(){this.map=new Map};
ycY.prototype.push=function(S,c){var Q=this.map;Q.has(S)&&(this.multi||(this.multi=new Map),this.multi.set(c,Q.get(S)));Q.set(S,c)};
ycY.prototype.pop=function(S){var c=this.map,Q=c.get(S),f;Q!==void 0&&((f=this.multi)==null?0:f.has(Q))?(c.set(S,this.multi.get(Q)),this.multi.delete(Q)):c.delete(S);return Q};_.lW.debugName="nsTGHd";_.YC.debugName="tbhMcf";_.HY.debugName="zyMFzb";_.DJ.debugName="vI1rtf";_.pb={OUT_OF_ORDER_HOOK_CALL:function(S){return Error("uc`"+S)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("vc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("wc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("xc")},
USE_ELEMENT_ACCESSED_DURING_RENDER:function(S,c){return Error("yc`"+((c===void 0?0:c)?"IDOM":"Reactive")+"`"+S)},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(S,c){return Error("zc`"+S+"`"+c)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(S){return Error("Ac`"+S)},
USE_ELEMENT_NOT_ASSIGNED:function(S){return Error("Bc`"+String(S))}};mqY=sTz;var amp=Symbol("Cc");C5p({beforeRender:function(S){var c=_.cr(S.effectContext);try{var Q;((Q=S.__syncEffects)==null?0:Q.length)&&XnH(S.__syncEffects)}finally{_.cr(c)}},
didPatch:function(S){var c=_.cr(S.effectContext);try{var Q;((Q=S.__syncEffects)==null?0:Q.length)&&XnH(S.__syncEffects)}finally{_.cr(c)}},
didUnmount:function(S){var c;((c=S.hooks)==null?0:c.length)&&S.hooks.forEach(AOR)}});var MJH,il$,Zl$;MJH=_.QY.window;_.ZJ=(MJH==null?void 0:(il$=MJH.yt)==null?void 0:il$.config_)||(MJH==null?void 0:(Zl$=MJH.ytcfg)==null?void 0:Zl$.data_)||{};_.m5("yt.config_",_.ZJ);var GDJ={},FGM=[];_.Yr=function(S){var c=_.YD.apply(1,arguments);var Q=Error.call(this,S);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.args=[].concat(_.Hs(c));Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(_.Yr,Error);var BkT=function(S,c,Q){this.actionName=S;this.optionalAction=c===void 0?!1:c;this.args=Q===void 0?null:Q;this.returnValue=[]};_.L=function(S){this.name=S};_.ee=new _.L("signalAction");var YPR=/^[\w.]*$/,NKM={q:!0,search_query:!0},b$H=String(nQT);var mt;mt=Symbol("Dc");_.Sg=function(S){this.name=S};
_.Sg.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var COY=function(S){this.key=S},pnM=function(S){this.deferredKey=S},DmH=function(){var S=this;
this.providers=new Map;this.JSC$8455_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(S.providers)}}};
DmH.prototype.addProvider=function(S){this.providers.set(S.provide,S);var c=this.JSC$8455_deferred.get(S.provide);if(c)try{c.resolver(this.resolve(S.provide))}catch(Q){c.rejector(Q)}};
DmH.prototype.resolve=function(S){return S instanceof pnM?W5T(this,S):S instanceof COY?grp(this,S.key,[],!0):grp(this,S,[])};
var W5T=function(S,c){c=c.deferredKey;if(S.JSC$8455_deferred.has(c))return S.JSC$8455_deferred.get(c).promise;var Q={};Q.promise=new Promise(function(f,U){Q.resolver=f;Q.rejector=U});
S.JSC$8455_deferred.set(c,Q);return Q.promise},grp=function(S,c,Q,f){f=f===void 0?!1:f;
if(Q.indexOf(c)>-1)throw Error("Ec`"+c);if(S.cachedValues.has(c))return S.cachedValues.get(c);if(!S.providers.has(c)){if(f)return;throw Error("Fc`"+c);}f=S.providers.get(c);Q.push(c);if(f.useValue!==void 0)var U=f.useValue;else if(f.useFactory)U=f[mt]?eIi(S,f[mt],Q):[],U=f.useFactory.apply(f,_.Hs(U));else if(f.useClass){U=f.useClass;var a=U[mt]?eIi(S,U[mt],Q):[];U=new (Function.prototype.bind.apply(U,[null].concat(_.Hs(a))))}else throw Error("Gc`"+c);Q.pop();f.skipCache||S.cachedValues.set(c,U);return U},
eIi=function(S,c,Q){return c?c.map(function(f){return f instanceof COY?grp(S,f.key,Q,!0):grp(S,f,Q)}):[]};var H$o;var kL=new _.Sg("ENDPOINT_HANDLER_TOKEN");_.rQ=new _.L("urlEndpoint");var kDH=function(){this.data=[];this.cachedPackedInt52=-1};
kDH.prototype.set=function(S,c){c=c===void 0?!0:c;0<=S&&S<52&&Number.isInteger(S)&&this.data[S]!==c&&(this.data[S]=c,this.cachedPackedInt52=-1)};
kDH.prototype.get=function(S){return!!this.data[S]};
var rll=function(S){S.cachedPackedInt52===-1&&(S.cachedPackedInt52=S.data.reduce(function(c,Q,f){return c+(Q?Math.pow(2,f):0)},0));
return S.cachedPackedInt52};var rOo=function(S){var c=dxH;S=S===void 0?_.rC("yt.ads.biscotti.lastId_")||"":S;var Q=Object,f=Q.assign,U={};U.dt=rhs;U.flash="0";a:{try{var a=c.JSC$8461_win_.top.location.href}catch(IH){a=2;break a}a=a?a===c.doc_.location.href?0:1:2}U=(U.frm=a,U);try{U.u_tz=-(new Date).getTimezoneOffset();var X=X===void 0?rT:X;try{var z=X.history.length}catch(IH){z=0}U.u_his=z;var x;U.u_h=(x=rT.screen)==null?void 0:x.height;var I;U.u_w=(I=rT.screen)==null?void 0:I.width;var n;U.u_ah=(n=rT.screen)==null?void 0:n.availHeight;
var b;U.u_aw=(b=rT.screen)==null?void 0:b.availWidth;var N;U.u_cd=(N=rT.screen)==null?void 0:N.colorDepth}catch(IH){}z=c.JSC$8461_win_;try{var l=z.screenX;var H=z.screenY}catch(IH){}try{var q=z.outerWidth;var w=z.outerHeight}catch(IH){}try{var g=z.innerWidth;var r=z.innerHeight}catch(IH){}try{var E=z.screenLeft;var v=z.screenTop}catch(IH){}try{g=z.innerWidth,r=z.innerHeight}catch(IH){}try{var t=z.screen.availWidth;var V=z.screen.availTop}catch(IH){}l=[E,v,l,H,t,V,q,w,g,r];H=N8c(!1,c.JSC$8461_win_.top);
q={};var AZ=AZ===void 0?_.QY:AZ;w=new kDH;"SVGElement"in AZ&&"createElementNS"in AZ.document&&w.set(0);g=vYd();g["allow-top-navigation-by-user-activation"]&&w.set(1);g["allow-popups-to-escape-sandbox"]&&w.set(2);AZ.crypto&&AZ.crypto.subtle&&w.set(3);"TextDecoder"in AZ&&"TextEncoder"in AZ&&w.set(4);AZ=rll(w);c=(q.bc=AZ,q.bih=H.height,q.biw=H.width,q.brdim=l.join(),q.vis=Qjc(c.doc_),q.wgl=!!rT.WebGLRenderingContext,q);Q=f.call(Q,U,c);Q.ca_type="image";S&&(Q.bid=S);return Q},dxH=new function(){var S=
window.document;
this.JSC$8461_win_=window;this.doc_=S};
_.m5("yt.ads_.signals_.getAdSignalsString",function(S){return KGz(rOo(S))});_.AP();navigator.userAgent.indexOf(" (CrKey ");var shc="XMLHttpRequest"in _.QY?function(){return new XMLHttpRequest}:null;var vre="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),PBe=[].concat(_.Hs(vre),["client_dev_set_cookie"]);var kLH={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"},Z$Z="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(_.Hs(vre)),yOc=!1,WGZ=_.dmo,tRz=ebp;var uBZ=[{messageFn:function(S){return"Cannot read property '"+S.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(S){return"Cannot call '"+S.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(S){return S.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var L5e={messageWeights:[],callbackWeights:[{callback:cGR,weight:500},{callback:QYR,weight:500}]};var Er$=function(){this.callbackWeights=[];this.messageWeights=[]},tJe,$KY=function(){if(!tJe){var S=tJe=new Er$;
S.messageWeights.length=0;S.callbackWeights.length=0;qiM(S,L5e)}return tJe},qiM=function(S,c){c.messageWeights&&S.messageWeights.push.apply(S.messageWeights,c.messageWeights);
c.callbackWeights&&S.callbackWeights.push.apply(S.callbackWeights,c.callbackWeights)};_.Xa(_.bB,_.C9);_.bB.prototype.subscribe=function(S,c,Q){var f=this.topics_[S];f||(f=this.topics_[S]=[]);var U=this.JSC$8485_key_;this.subscriptions_[U]=S;this.subscriptions_[U+1]=c;this.subscriptions_[U+2]=Q;this.JSC$8485_key_=U+3;f.push(U);return U};
var VJH=function(S){var c=C7R,Q=!1,f=c.subscribe("handleError",function(U){Q||(Q=!0,this.unsubscribeByKey(f),S.apply(void 0,arguments))},c)};
_.bB.prototype.unsubscribe=function(S,c,Q){if(S=this.topics_[S]){var f=this.subscriptions_;if(S=S.find(function(U){return f[U+1]==c&&f[U+2]==Q}))return this.unsubscribeByKey(S)}return!1};
_.bB.prototype.unsubscribeByKey=function(S){var c=this.subscriptions_[S];if(c){var Q=this.topics_[c];this.publishDepth_!=0?(this.pendingKeys_.push(S),this.subscriptions_[S+1]=function(){}):(Q&&_.tZ(Q,S),delete this.subscriptions_[S],delete this.subscriptions_[S+1],delete this.subscriptions_[S+2])}return!!c};
_.bB.prototype.publish=function(S,c){var Q=this.topics_[S];if(Q){var f=Array(arguments.length-1),U=arguments.length,a;for(a=1;a<U;a++)f[a-1]=arguments[a];if(this.async_)for(a=0;a<Q.length;a++)U=Q[a],RIs(this.subscriptions_[U+1],this.subscriptions_[U+2],f);else{this.publishDepth_++;try{for(a=0,U=Q.length;a<U&&!this.isDisposed();a++){var X=Q[a];this.subscriptions_[X+1].apply(this.subscriptions_[X+2],f)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;Q=this.pendingKeys_.pop();)this.unsubscribeByKey(Q)}}return a!=
0}return!1};
var RIs=function(S,c,Q){_.HH(function(){S.apply(c,Q)})};
_.bB.prototype.clear=function(S){if(S){var c=this.topics_[S];c&&(c.forEach(this.unsubscribeByKey,this),delete this.topics_[S])}else this.subscriptions_.length=0,this.topics_={}};
_.bB.prototype.getCount=function(S){if(S){var c=this.topics_[S];return c?c.length:0}S=0;for(c in this.topics_)S+=this.getCount(c);return S};
_.bB.prototype.disposeInternal=function(){_.bB.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var C7R=new _.bB;var XL=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(XL,_.Ga);XL.prototype.getColdHashData=function(){return _.MJ(this,3)};
XL.prototype.getHotHashData=function(){return _.MJ(this,5)};
XL.prototype.setHotHashData=function(S){return _.bN(this,5,S)};var b8z=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(b8z,_.Ga);var vnR=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(vnR,_.Ga);_.J=vnR.prototype;_.J.getDeviceId=function(){return _.MJ(this,6)};
_.J.getExperimentIds=function(S){var c=_.uY(this,9,_.CT,3,!0);W_(c,S);return c[S]};
_.J.getPlayerType=function(){return _.iR(this,36)};
_.J.setHomeGroupInfo=function(S){return _.Qx(this,81,S)};
_.J.clearLocationPlayabilityToken=function(){return _.AB(this,89)};var K1=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(K1,_.Ga);K1.prototype.setKey=function(S){return _.bN(this,1,S)};
K1.prototype.getValue=function(){return G1(this,2,LvR)};
var LvR=[2,3,4,5,6];var yl$=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(yl$,_.Ga);yl$.prototype.setTrackingParams=function(S){return _.AB(this,1,_.GJ(S,!1))};var PwM=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(PwM,_.Ga);var $DZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C($DZ,_.Ga);$DZ.prototype.getExperimentIds=function(S){var c=_.uY(this,5,_.H8,3,!0);W_(c,S);return c[S]};var l5=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(l5,_.Ga);l5.prototype.getToken=function(){return _.bG(this,2)};
l5.prototype.setToken=function(S){return _.bN(this,2,S)};var u5=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(u5,_.Ga);u5.prototype.setSafetyMode=function(S){return _.aR(this,5,S)};var NP=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(NP,_.Ga);NP.prototype.setClient=function(S){return _.Qx(this,1,S)};var Kqp={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 NSR;_.q6=function(){var S=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.QY.addEventListener("beforeinstallprompt",function(c){c.preventDefault();S.deferredInstallPrompt=c});
_.QY.addEventListener("appinstalled",function(){S.appInstalledEventFired=!0},{once:!0})};
NSR=function(){if(!_.QY.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.QY.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.QY.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.QY.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.QY.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(S){return"WEB_DISPLAY_MODE_UNKNOWN"}};var l5x=function(){this.syncHeaders=!0},Yzr=function(S){var c={},Q=[];
"USER_SESSION_ID"in _.ZJ&&Q.push({key:"u",value:_.WY("USER_SESSION_ID")});if(Q=_.PZo(Q))c.Authorization=Q,Q=S=S==null?void 0:S.sessionIndex,Q===void 0&&(Q=Number(_.WY("SESSION_INDEX",0)),Q=isNaN(Q)?0:Q),_.u("voice_search_auth_header_removal")||(c["X-Goog-AuthUser"]=Q.toString()),"INNERTUBE_HOST_OVERRIDE"in _.ZJ||(c["X-Origin"]=window.location.origin),S===void 0&&"DELEGATED_SESSION_ID"in _.ZJ&&(c["X-Goog-PageId"]=_.WY("DELEGATED_SESSION_ID"));return c};var ord={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var c9=_.rC("ytglobal.prefsUserPrefsPrefs_")||{},mxd;_.m5("ytglobal.prefsUserPrefsPrefs_",c9);_.Qz=function(){this.cookieName=_.WY("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.WY("ALT_PREF_COOKIE_DOMAIN","youtube.com");var S=_.Kl.get(this.cookieName,void 0);S&&this.parse(S)};
_.jL=function(){mxd||(mxd=new _.Qz);return mxd};
_.Qz.prototype.get=function(S,c){SJ_(S);cBH(S);S=c9[S]!==void 0?c9[S].toString():null;return S!=null?S:c?c:""};
_.Qz.prototype.set=function(S,c){SJ_(S);cBH(S);if(c==null)throw Error("Jc");c9[S]=c.toString()};
_.Qz.prototype.getFlag=function(S){return!!((QRs("f"+(Math.floor(S/31)+1))||0)&1<<S%31)};
_.l2=function(S,c,Q){S="f"+(Math.floor(c/31)+1);c=1<<c%31;var f=QRs(S)||0;f=Q?f|c:f&~c;f===0?delete c9[S]:(Q=f.toString(16),c9[S]=Q.toString())};
_.Qz.prototype.remove=function(S){SJ_(S);cBH(S);delete c9[S]};
_.Qz.prototype.save=function(){var S=!0;_.u("web_secure_pref_cookie_killswitch")&&(S=!1);_.$r(this.cookieName,this.dump(),63072E3,this.cookieDomain,S)};
_.Qz.prototype.clear=function(){_.Cn.clear(c9)};
_.Qz.prototype.dump=function(){var S=[],c;for(c in c9)c9.hasOwnProperty(c)&&S.push(c+"="+encodeURIComponent(String(c9[c])));return S.join("&")};
var cBH=function(S){if(/^f([1-9][0-9]*)$/.test(S))throw Error("Kc`"+S);},SJ_=function(S){if(!/^\w+$/.test(S))throw Error("Lc`"+S);
},QRs=function(S){S=c9[S]!==void 0?c9[S].toString():null;
return S!=null&&/^[A-Fa-f0-9]+$/.test(S)?parseInt(S,16):null};
_.Qz.prototype.parse=function(S){S=decodeURIComponent(S).split("&");for(var c=0;c<S.length;c++){var Q=S[c].split("="),f=Q[0];(Q=Q[1])&&(c9[f]=Q.toString())}};var xET={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"},uFY={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},jIY={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},BNz={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var Aa;_.fw=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.HG=function(S,c,Q){return S.addJob(c,0,Q)};
_.fw.prototype.addLowPriorityJob=function(S,c){return this.addJob(S,1,c)};
_.u9=function(S,c,Q){return S.addJob(c,2,Q)};
_.pS=function(S,c,Q){return S.addJob(c,3,Q)};
_.Xi=function(S,c,Q){return S.addJob(c,4,Q)};
Aa=function(S){var c=_.rC("yt.scheduler.instance.addImmediateJob");c?c(S):S()};
_.fw.prototype.debounce=function(S,c,Q){var f=this,U=0,a=function(){U&&f.cancelJob(U);U=f.addJob(S,c,Q);f.cancelDebouncedJobMap.set(a,U)};
return a};
_.fw.prototype.cancelThrottle=function(S){(S=this.cancelThrottledJobMap.get(S))&&S()};var UE=function(){_.fw.apply(this,arguments)};
_.C(UE,_.fw);_.TV=function(){UE.instance||(UE.instance=new UE);return UE.instance};
UE.prototype.addJob=function(S,c,Q){Q!==void 0&&Number.isNaN(Number(Q))&&(Q=void 0);var f=_.rC("yt.scheduler.instance.addJob");return f?f(S,c,Q):Q===void 0?(S(),NaN):_.zD(S,Q||0)};
UE.prototype.cancelJob=function(S){if(S===void 0||!Number.isNaN(Number(S))){var c=_.rC("yt.scheduler.instance.cancelJob");c?c(S):_.FJ(S)}};
UE.prototype.start=function(){var S=_.rC("yt.scheduler.instance.start");S&&S()};
UE.prototype.pause=function(){var S=_.rC("yt.scheduler.instance.pause");S&&S()};
_.Mq=_.TV();_.Cl.prototype.set=function(S,c){c===void 0?this.mechanism.remove(S):this.mechanism.set(S,(0,_.TN)(c))};
_.Cl.prototype.get=function(S){try{var c=this.mechanism.get(S)}catch(Q){return}if(c!==null)try{return JSON.parse(c)}catch(Q){throw"Storage: Invalid value was encountered";}};
_.Cl.prototype.remove=function(S){this.mechanism.remove(S)};var J1=function(S){this.mechanism=S};
_.Xa(J1,_.Cl);var fzp=function(S){this.data=S},Uq$=function(S){return S===void 0||S instanceof fzp?S:new fzp(S)};
J1.prototype.set=function(S,c){J1.superClass_.set.call(this,S,Uq$(c))};
J1.prototype.getWrapper=function(S){S=J1.superClass_.get.call(this,S);if(S===void 0||S instanceof Object)return S;throw"Storage: Invalid value was encountered";};
J1.prototype.get=function(S){if(S=this.getWrapper(S)){if(S=S.data,S===void 0)throw"Storage: Invalid value was encountered";}else S=void 0;return S};_.Xa(Hi,J1);_.JBi=function(S){var c=S.creation;S=S.expiration;return!!S&&S<_.AP()||!!c&&c>_.AP()};
Hi.prototype.set=function(S,c,Q){if(c=Uq$(c)){if(Q){if(Q<_.AP()){Hi.prototype.remove.call(this,S);return}c.expiration=Q}c.creation=_.AP()}Hi.superClass_.set.call(this,S,c)};
Hi.prototype.getWrapper=function(S,c){var Q=Hi.superClass_.getWrapper.call(this,S);if(Q)if(!c&&_.JBi(Q))Hi.prototype.remove.call(this,S);else return Q};var a8=function(){};
a8.prototype.next=function(){return A1};
var A1={done:!0,value:void 0},Xx=function(S){return{value:S,done:!1}};
a8.prototype.__iterator__=function(){return this};
_.azp=function(S){if(S instanceof a8)return S;if(typeof S.__iterator__=="function")return S.__iterator__(!1);if(_.yY(S)){var c=0,Q=new a8;Q.next=function(){for(;;){if(c>=S.length)return A1;if(c in S)return Xx(S[c++]);c++}};
return Q}throw Error("Mc");};var ABJ=function(S){if(S instanceof OE||S instanceof zg||S instanceof xo)return S;if(typeof S.next=="function")return new OE(function(){return S});
if(typeof S[Symbol.iterator]=="function")return new OE(function(){return S[Symbol.iterator]()});
if(typeof S.__iterator__=="function")return new OE(function(){return S.__iterator__()});
throw Error("Nc");},OE=function(S){this.func_=S};
OE.prototype.__iterator__=function(){return new zg(this.func_())};
OE.prototype[Symbol.iterator]=function(){return new xo(this.func_())};
OE.prototype.toEs6=function(){return new xo(this.func_())};
var zg=function(S){this.JSC$8569_iter_=S};
_.C(zg,a8);zg.prototype.next=function(){return this.JSC$8569_iter_.next()};
zg.prototype[Symbol.iterator]=function(){return new xo(this.JSC$8569_iter_)};
zg.prototype.toEs6=function(){return new xo(this.JSC$8569_iter_)};
var xo=function(S){OE.call(this,function(){return S});
this.JSC$8572_iter_=S};
_.C(xo,OE);xo.prototype.next=function(){return this.JSC$8572_iter_.next()};var Xtz=function(){};var Fx=function(){};
_.Xa(Fx,Xtz);Fx.prototype.getCount=function(){for(var S=0,c=_.A(this),Q=c.next();!Q.done;Q=c.next())S++;return S};
Fx.prototype[Symbol.iterator]=function(){return ABJ(this.__iterator__(!0)).toEs6()};
Fx.prototype.clear=function(){var S=Array.from(this);S=_.A(S);for(var c=S.next();!c.done;c=S.next())this.remove(c.value)};_.Xa(Dh,Fx);_.J=Dh.prototype;_.J.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var S=this.storage_;if(S)try{S.setItem("__sak","1");S.removeItem("__sak");var c=!0}catch(Q){c=Q instanceof DOMException&&(Q.name==="QuotaExceededError"||Q.code===22||Q.code===1014||Q.name==="NS_ERROR_DOM_QUOTA_REACHED")&&S&&S.length!==0}else c=!1;this.cachedIsStorageAvailable_=c}return this.cachedIsStorageAvailable_};
_.J.set=function(S,c){B9(this);try{this.storage_.setItem(S,c)}catch(Q){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.J.get=function(S){B9(this);S=this.storage_.getItem(S);if(typeof S!=="string"&&S!==null)throw"Storage mechanism: Invalid value was encountered";return S};
_.J.remove=function(S){B9(this);this.storage_.removeItem(S)};
_.J.getCount=function(){B9(this);return this.storage_.length};
_.J.__iterator__=function(S){B9(this);var c=0,Q=this.storage_,f=new a8;f.next=function(){if(c>=Q.length)return A1;var U=Q.key(c++);if(S)return Xx(U);U=Q.getItem(U);if(typeof U!=="string")throw"Storage mechanism: Invalid value was encountered";return Xx(U)};
return f};
_.J.clear=function(){B9(this);this.storage_.clear()};
_.J.key=function(S){B9(this);return this.storage_.key(S)};
var B9=function(S){if(S.storage_==null)throw Error("Oc");S.isAvailable()||fz(Error("Oc"))};_.Xa(nUT,Dh);_.Xa(bPp,Dh);_.Xa(pl,Fx);pl.prototype.set=function(S,c){this.mechanism_.set(this.JSC$8587_prefix_+S,c)};
pl.prototype.get=function(S){return this.mechanism_.get(this.JSC$8587_prefix_+S)};
pl.prototype.remove=function(S){this.mechanism_.remove(this.JSC$8587_prefix_+S)};
pl.prototype.__iterator__=function(S){var c=this.mechanism_[Symbol.iterator](),Q=this,f=new a8;f.next=function(){var U=c.next();if(U.done)return U;for(U=U.value;U.slice(0,Q.JSC$8587_prefix_.length)!=Q.JSC$8587_prefix_;){U=c.next();if(U.done)return U;U=U.value}return Xx(S?U.slice(Q.JSC$8587_prefix_.length):Q.mechanism_.get(U))};
return f};_.ge=function(S){this.expiringStorage_=(S=_.NNT(S))?new Hi(S):null;this.JSC$8591_domain_=document.domain||window.location.hostname};
_.ge.prototype.set=function(S,c,Q,f){Q=Q||31104E3;this.remove(S);if(this.expiringStorage_)try{this.expiringStorage_.set(S,c,Date.now()+Q*1E3);return}catch(a){}var U="";if(f)try{U=escape((0,_.TN)(c))}catch(a){return}else U=escape(c);_.$r(S,U,Q,this.JSC$8591_domain_)};
_.ge.prototype.get=function(S,c){var Q=void 0,f=!this.expiringStorage_;if(!f)try{Q=this.expiringStorage_.get(S)}catch(U){f=!0}if(f&&(Q=_.Kl.get(S,void 0))&&(Q=unescape(Q),c))try{Q=JSON.parse(Q)}catch(U){this.remove(S),Q=void 0}return Q};
_.ge.prototype.remove=function(S){this.expiringStorage_&&this.expiringStorage_.remove(S);_.XdY(S,"/",this.JSC$8591_domain_)};
_.ge.prototype.getCreationTime=function(S){return this.expiringStorage_&&(S=(this.expiringStorage_.getWrapper(S)||{}).creation,typeof S==="number")?S:null};var $Ez=function(){var S;return function(){S||(S=new _.ge("ytidb"));return S}}();var jYZ;_.qx=[];jYZ=!1;var k$z=lqz||YMM;var I8={},O6u=(I8.AUTH_INVALID="No user identifier specified.",I8.EXPLICIT_ABORT="Transaction was explicitly aborted.",I8.IDB_NOT_SUPPORTED="IndexedDB is not supported.",I8.MISSING_INDEX="Index not created.",I8.MISSING_OBJECT_STORES="Object stores not created.",I8.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",I8.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",I8.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",I8.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",I8.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",I8.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",I8.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",I8),nw={},zJJ=(nw.AUTH_INVALID="ERROR",nw.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",nw.EXPLICIT_ABORT="IGNORED",
nw.IDB_NOT_SUPPORTED="ERROR",nw.MISSING_INDEX="WARNING",nw.MISSING_OBJECT_STORES="ERROR",nw.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",nw.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",nw.QUOTA_EXCEEDED="WARNING",nw.QUOTA_MAYBE_EXCEEDED="WARNING",nw.UNKNOWN_ABORT="WARNING",nw.INCOMPATIBLE_DB_VERSION="WARNING",nw),b4={},xq$=(b4.AUTH_INVALID=!1,b4.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,b4.EXPLICIT_ABORT=!1,b4.IDB_NOT_SUPPORTED=!1,b4.MISSING_INDEX=!1,b4.MISSING_OBJECT_STORES=!1,b4.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,b4.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,b4.QUOTA_EXCEEDED=!1,b4.QUOTA_MAYBE_EXCEEDED=!0,b4.UNKNOWN_ABORT=!0,b4.INCOMPATIBLE_DB_VERSION=!1,b4),Zh=function(S,c,Q,f,U){c=c===void 0?{}:c;Q=Q===void 0?O6u[S]:Q;f=f===void 0?zJJ[S]:f;U=U===void 0?xq$[S]:U;_.Yr.call(this,Q,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:S},c));this.type=S;this.message=Q;this.level=f;this.retryable=U;Object.setPrototypeOf(this,Zh.prototype)};
_.C(Zh,_.Yr);var FOi=function(S,c){Zh.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:c,foundObjectStores:S},O6u.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,FOi.prototype)};
_.C(FOi,Zh);var HPz=function(S,c){var Q=Error.call(this);this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.index=S;this.objectStore=c;Object.setPrototypeOf(this,HPz.prototype)};
_.C(HPz,Error);var DEM=["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 eJ=function(S){this.executor=S},g5=function(S){var c=this;
this.state={status:"PENDING"};this.JSC$8619_onFulfilled=[];this.JSC$8619_onRejected=[];S=S.executor;var Q=function(U){if(c.state.status==="PENDING"){c.state={status:"FULFILLED",value:U};U=_.A(c.JSC$8619_onFulfilled);for(var a=U.next();!a.done;a=U.next())a=a.value,a()}},f=function(U){if(c.state.status==="PENDING"){c.state={status:"REJECTED",
reason:U};U=_.A(c.JSC$8619_onRejected);for(var a=U.next();!a.done;a=U.next())a=a.value,a()}};
try{S(Q,f)}catch(U){f(U)}};
g5.all=function(S){return new g5(new eJ(function(c,Q){var f=[],U=S.length;U===0&&c(f);for(var a={i$jscomp$462:0};a.i$jscomp$462<S.length;a={i$jscomp$462:a.i$jscomp$462},++a.i$jscomp$462)g5.resolve(S[a.i$jscomp$462]).then(function(X){return function(z){f[X.i$jscomp$462]=z;U--;U===0&&c(f)}}(a)).catch(function(X){Q(X)})}))};
g5.resolve=function(S){return new g5(new eJ(function(c,Q){S instanceof g5?S.then(c,Q):c(S)}))};
g5.reject=function(S){return new g5(new eJ(function(c,Q){Q(S)}))};
g5.prototype.then=function(S,c){var Q=this,f=S!=null?S:qMR,U=c!=null?c:hzY;return new g5(new eJ(function(a,X){Q.state.status==="PENDING"?(Q.JSC$8619_onFulfilled.push(function(){Bee(Q,Q,f,a,X)}),Q.JSC$8619_onRejected.push(function(){IzJ(Q,Q,U,a,X)})):Q.state.status==="FULFILLED"?Bee(Q,Q,f,a,X):Q.state.status==="REJECTED"&&IzJ(Q,Q,U,a,X)}))};
g5.prototype.catch=function(S){return this.then(void 0,S)};
var Bee=function(S,c,Q,f,U){try{if(S.state.status!=="FULFILLED")throw Error("Rc");var a=Q(S.state.value);a instanceof g5?nMd(S,c,a,f,U):f(a)}catch(X){U(X)}},IzJ=function(S,c,Q,f,U){try{if(S.state.status!=="REJECTED")throw Error("Sc");
var a=Q(S.state.reason);a instanceof g5?nMd(S,c,a,f,U):f(a)}catch(X){U(X)}},nMd=function(S,c,Q,f,U){c===Q?U(new TypeError("Tc")):Q.then(function(a){a instanceof g5?nMd(S,c,a,f,U):f(a)},function(a){U(a)})};var NS;NS=window;_.Qk=NS.ytcsi&&NS.ytcsi.now?NS.ytcsi.now:NS.performance&&NS.performance.timing&&NS.performance.now&&NS.performance.timing.navigationStart?function(){return NS.performance.timing.navigationStart+NS.performance.now()}:function(){return(new Date).getTime()};var d5=function(S,c){this.JSC$8631_wrapped=S;this.options=c;this.transactionCount=0;this.startedMs=Math.round((0,_.Qk)());this.hasUnknownAbortedTransaction=!1},KO_,$qz,u4,lzJ;
d5.prototype.add=function(S,c,Q){return _.tl(this,[S],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(S).add(c,Q)})};
d5.prototype.clear=function(S){return _.tl(this,[S],{mode:"readwrite",enableRetries:!0},function(c){return c.objectStore(S).clear()})};
d5.prototype.close=function(){this.JSC$8631_wrapped.close();var S;((S=this.options)==null?0:S.closed)&&this.options.closed()};
d5.prototype.count=function(S,c){return _.tl(this,[S],{mode:"readonly",enableRetries:!0},function(Q){return Q.objectStore(S).count(c)})};
var kM=function(S,c,Q){S=S.JSC$8631_wrapped.createObjectStore(c,Q);return new Kw(S)};
d5.prototype.delete=function(S,c){return _.tl(this,[S],{mode:"readwrite",enableRetries:!0},function(Q){return Q.objectStore(S).delete(c)})};
var b6_=function(S,c){return _.tl(S,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(Q){return Q.objectStore("ResponseStore").index("byInterface").delete(c)})};
d5.prototype.get=function(S,c){return _.tl(this,[S],{mode:"readonly",enableRetries:!0},function(Q){return Q.objectStore(S).get(c)})};
d5.prototype.getAll=function(S,c,Q){return _.tl(this,[S],{mode:"readonly",enableRetries:!0},function(f){return f.objectStore(S).getAll(c,Q)})};
d5.prototype.put=function(S,c,Q){return _.tl(this,[S],{mode:"readwrite",enableRetries:!0},function(f){return f.objectStore(S).put(c,Q)})};
d5.prototype.objectStoreNames=function(){return Array.from(this.JSC$8631_wrapped.objectStoreNames)};
_.tl=function(S,c,Q,f){var U,a,X,z,x,I,n,b,N,l,H,q;return _.O(function(w){switch(w.nextAddress){case 1:var g={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof Q==="string"?g.mode=Q:Object.assign(g,Q);U=g;S.transactionCount++;a=U.enableRetries?3:1;X=0;case 2:if(z){w.jumpTo(4);break}X++;x=Math.round((0,_.Qk)());_.X1(w,5);I=S.JSC$8631_wrapped.transaction(c,U.mode);g=new MBT(I);g=Nel(g,f);return _.F(w,g,7);case 7:return n=w.yieldResult,b=Math.round((0,_.Qk)()),KO_(S,x,b,X,void 0,
c.join(),U),w.return(n);case 5:N=_.Bs(w);l=Math.round((0,_.Qk)());H=pdT(N,S.JSC$8631_wrapped.name,c.join(),S.JSC$8631_wrapped.version);if((q=H instanceof Zh&&!H.retryable)||X>=a)KO_(S,x,l,X,H,c.join(),U),z=H;w.jumpTo(2);break;case 4:return w.return(Promise.reject(z))}})};
KO_=function(S,c,Q,f,U,a,X){c=Q-c;U?(U instanceof Zh&&(U.type==="QUOTA_EXCEEDED"||U.type==="QUOTA_MAYBE_EXCEEDED")&&w5("QUOTA_EXCEEDED",{dbName:Mx(S.JSC$8631_wrapped.name),objectStoreNames:a,transactionCount:S.transactionCount,transactionMode:X.mode}),U instanceof Zh&&U.type==="UNKNOWN_ABORT"&&(Q-=S.startedMs,Q<0&&Q>=2147483648&&(Q=0),w5("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:a,transactionDuration:c,transactionCount:S.transactionCount,dbDuration:Q}),S.hasUnknownAbortedTransaction=!0),
$qz(S,!1,f,a,c,X.tag),_.TD(U)):$qz(S,!0,f,a,c,X.tag)};
$qz=function(S,c,Q,f,U,a){w5("TRANSACTION_ENDED",{objectStoreNames:f,connectionHasUnknownAbortedTransaction:S.hasUnknownAbortedTransaction,duration:U,isSuccessful:c,tryCount:Q,tag:a===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":a})};
d5.prototype.getVersion=function(){return this.JSC$8631_wrapped.version};
d5.prototype.getName=function(){return this.JSC$8631_wrapped.name};
var Kw=function(S){this.JSC$8646_wrapped=S};
Kw.prototype.add=function(S,c){return kr(this.JSC$8646_wrapped.add(S,c))};
Kw.prototype.autoIncrement=function(){return this.JSC$8646_wrapped.autoIncrement};
Kw.prototype.clear=function(){return kr(this.JSC$8646_wrapped.clear()).then(function(){})};
var re=function(S,c,Q){S.JSC$8646_wrapped.createIndex(c,Q,{unique:!1})};
Kw.prototype.count=function(S){return kr(this.JSC$8646_wrapped.count(S))};
var uLl=function(S,c){return R6(S,{query:c},function(Q){return Q.delete().then(function(){return Q.continue()})}).then(function(){})};
Kw.prototype.delete=function(S){return S instanceof IDBKeyRange?uLl(this,S):kr(this.JSC$8646_wrapped.delete(S))};
Kw.prototype.get=function(S){return kr(this.JSC$8646_wrapped.get(S))};
Kw.prototype.getAll=function(S,c){return"getAll"in IDBObjectStore.prototype?kr(this.JSC$8646_wrapped.getAll(S,c)):jR_(this,S,c)};
var jR_=function(S,c,Q){var f=[];return R6(S,{query:c},function(U){if(!(Q!==void 0&&f.length>=Q))return f.push(U.getValue()),U.continue()}).then(function(){return f})};
Kw.prototype.index=function(S){try{return new $o(this.JSC$8646_wrapped.index(S))}catch(c){if(c instanceof Error&&c.name==="NotFoundError")throw new HPz(S,this.JSC$8646_wrapped.name);throw c;}};
Kw.prototype.getName=function(){return this.JSC$8646_wrapped.name};
Kw.prototype.keyPath=function(){return this.JSC$8646_wrapped.keyPath};
Kw.prototype.put=function(S,c){return kr(this.JSC$8646_wrapped.put(S,c))};
var R6=function(S,c,Q){S=S.JSC$8646_wrapped.openCursor(c.query,c.direction);return lzJ(S).then(function(f){return sYx(f,Q)})},MBT=function(S){var c=this;
this.JSC$8654_wrapped=S;this.objectStoreCache=new Map;this.JSC$8654_aborted=!1;this.done=new Promise(function(Q,f){c.JSC$8654_wrapped.addEventListener("complete",function(){Q()});
c.JSC$8654_wrapped.addEventListener("error",function(U){U.currentTarget===U.target&&f(c.JSC$8654_wrapped.error)});
c.JSC$8654_wrapped.addEventListener("abort",function(){var U=c.JSC$8654_wrapped.error;if(U)f(U);else if(!c.JSC$8654_aborted){U=Zh;for(var a=c.JSC$8654_wrapped.objectStoreNames,X=[],z=0;z<a.length;z++){var x=a.item(z);if(x===null)throw Error("Uc");X.push(x)}U=new U("UNKNOWN_ABORT",{objectStoreNames:X.join(),dbName:c.JSC$8654_wrapped.db.name,mode:c.JSC$8654_wrapped.mode});f(U)}})})},Nel=function(S,c){var Q=new Promise(function(f,U){try{c(S).then(function(a){f(a)}).catch(U)}catch(a){U(a),S.abort()}});
return Promise.all([Q,S.done]).then(function(f){return _.A(f).next().value})};
MBT.prototype.abort=function(){this.JSC$8654_wrapped.abort();this.JSC$8654_aborted=!0;throw new Zh("EXPLICIT_ABORT");};
MBT.prototype.objectStore=function(S){S=this.JSC$8654_wrapped.objectStore(S);var c=this.objectStoreCache.get(S);c||(c=new Kw(S),this.objectStoreCache.set(S,c));return c};
var $o=function(S){this.JSC$8656_wrapped=S};
$o.prototype.count=function(S){return kr(this.JSC$8656_wrapped.count(S))};
$o.prototype.delete=function(S){return _.f6(this,{query:S},function(c){return c.delete().then(function(){return c.continue()})})};
$o.prototype.get=function(S){return kr(this.JSC$8656_wrapped.get(S))};
$o.prototype.getAll=function(S,c){return"getAll"in IDBIndex.prototype?kr(this.JSC$8656_wrapped.getAll(S,c)):YJJ(this,S,c)};
var YJJ=function(S,c,Q){var f=[];return _.f6(S,{query:c},function(U){if(!(Q!==void 0&&f.length>=Q))return f.push(U.getValue()),U.continue()}).then(function(){return f})};
$o.prototype.keyPath=function(){return this.JSC$8656_wrapped.keyPath};
$o.prototype.unique=function(){return this.JSC$8656_wrapped.unique};
_.f6=function(S,c,Q){S=S.JSC$8656_wrapped.openCursor(c.query===void 0?null:c.query,c.direction===void 0?"next":c.direction);return lzJ(S).then(function(f){return sYx(f,Q)})};
u4=function(S,c){this.request=S;this.cursor=c};
lzJ=function(S){return kr(S).then(function(c){return c?new u4(S,c):null})};
u4.prototype.continue=function(S){this.cursor.continue(S);return lzJ(this.request)};
u4.prototype.delete=function(){return kr(this.cursor.delete()).then(function(){})};
u4.prototype.getValue=function(){return this.cursor.value};
u4.prototype.update=function(S){return kr(this.cursor.update(S))};var jg=function(S,c){this.name=S;this.options=c;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},CHh;
jg.prototype.openDb=function(S,c,Q){Q=Q===void 0?{}:Q;return ZPY(S,c,Q)};
jg.prototype.delete=function(S){S=S===void 0?{}:S;return _.Ll(this.name,S)};
CHh=function(S,c){return new Zh("INCOMPATIBLE_DB_VERSION",{dbName:S.name,oldVersion:S.options.version,newVersion:c})};
_.E8=function(S,c){if(!c)throw Wi("openWithToken",Mx(S.name));return S.open()};
jg.prototype.open=function(){var S=this;if(!this.isCompatible)throw CHh(this);if(this.connectionPromise)return this.connectionPromise;var c,Q=function(){S.connectionPromise===c&&(S.connectionPromise=void 0)},f={blocking:function(a){a.close()},
closed:Q,terminated:Q,upgrade:this.options.upgrade},U=function(){var a,X,z,x,I,n,b,N,l,H;return _.O(function(q){switch(q.nextAddress){case 1:return X=(a=Error().stack)!=null?a:"",_.X1(q,2),_.F(q,S.openDb(S.name,S.options.version,f),4);case 4:for(var w=z=q.yieldResult,g=S.options,r=[],E=_.A(Object.keys(g.objectStores)),v=E.next();!v.done;v=E.next()){v=v.value;var t=g.objectStores[v],V=t.removedAtVersion===void 0?Number.MAX_VALUE:t.removedAtVersion;!(w.JSC$8631_wrapped.version>=t.addedAtVersion)||w.JSC$8631_wrapped.version>=
V||w.JSC$8631_wrapped.objectStoreNames.contains(v)||r.push(v)}x=r;if(x.length===0){q.jumpTo(5);break}I=Object.keys(S.options.objectStores);n=z.objectStoreNames();if(S.timesReopenedToFixMissingObjectStore<_.a6("ytidb_reopen_db_retries",0))return S.timesReopenedToFixMissingObjectStore++,z.close(),_.TD(new Zh("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:S.name,expectedObjectStores:I,foundObjectStores:n})),q.return(U());if(!(S.timesDeletedToFixMissingObjectStore<_.a6("ytidb_remake_db_retries",1))){q.jumpTo(6);
break}S.timesDeletedToFixMissingObjectStore++;return _.F(q,S.delete(),7);case 7:return _.TD(new Zh("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:S.name,expectedObjectStores:I,foundObjectStores:n})),q.return(U());case 6:throw new FOi(n,I);case 5:return q.return(z);case 2:b=_.Bs(q);if(b instanceof DOMException?b.name!=="VersionError":"DOMError"in self&&b instanceof DOMError?b.name!=="VersionError":!(b instanceof Object&&"message"in b)||b.message!=="An attempt was made to open a database using a lower version than the existing version."){q.jumpTo(8);
break}return _.F(q,S.openDb(S.name,void 0,Object.assign({},f,{upgrade:void 0})),9);case 9:N=q.yieldResult;l=N.getVersion();if(S.options.version!==void 0&&l>S.options.version+1)throw N.close(),S.isCompatible=!1,CHh(S,l);return q.return(N);case 8:throw Q(),b instanceof Error&&!_.u("ytidb_async_stack_killswitch")&&(b.stack=b.stack+"\n"+X.substring(X.indexOf("\n")+1)),pdT(b,S.name,"",(H=S.options.version)!=null?H:-1);}})};
return this.connectionPromise=c=U()};var G$Y=new jg("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(S,c){c(1)&&kM(S,"databases",{keyPath:"actualName"})}});var vUZ,rGY=new function(){}(new function(){});new _.O_;var H6i=function(S,c){jg.call(this,S,c);this.options=c;s8(S)};
_.C(H6i,jg);var SzR=function(S,c){var Q;return function(){Q||(Q=new H6i(S,c));return Q}};
H6i.prototype.openDb=function(S,c,Q){Q=Q===void 0?{}:Q;return(this.options.shared?VBY:tBp)(S,c,Object.assign({},Q))};
H6i.prototype.delete=function(S){S=S===void 0?{}:S;return(this.options.shared?mET:RzT)(this.name,S)};var Dqp={},czM=ct("ytGcfConfig",{objectStores:(Dqp.coldConfigStore={addedAtVersion:1},Dqp.hotConfigStore={addedAtVersion:1},Dqp),shared:!1,upgrade:function(S,c){c(1)&&(re(kM(S,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),re(kM(S,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var ptl=function(){_.C9.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var S=_.rC("yt.gcf.config.hotUpdateCallbacks");S?(this.localHotConfigJobQueue=[].concat(_.Hs(S)),this.sharedHotConfigJobQueue=S):(this.sharedHotConfigJobQueue=[],_.m5("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.C(ptl,_.C9);ptl.prototype.disposeInternal=function(){for(var S=_.A(this.localHotConfigJobQueue),c=S.next();!c.done;c=S.next()){var Q=this.sharedHotConfigJobQueue;c=Q.indexOf(c.value);c>=0&&Q.splice(c,1)}this.localHotConfigJobQueue.length=0;_.C9.prototype.disposeInternal.call(this)};var DE=function(){var S=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new ptl;this.TEST_ONLY={initializeConfigDb:function(){S.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return S.coldGlobalConfigGroup},
setHotConfigGroup:function(c){hJi(S,c)},
setHotHashData:function(c){S.setHotHashData(c)},
setColdConfigGroup:function(c){qJl(S,c)},
getColdHashData:function(){return S.coldHashData},
getHotHashData:function(){return S.hotHashData},
getHotConfigGroup:function(){return S.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return TeJ()},
getExportedHotConfigGroup:function(){return l4()},
getExportedColdHashData:function(){return _.rC("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.rC("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){wtJ(S)},
resetInstance:function(){S.setHotHashData(void 0);sRz(S);delete DE.instance},
setDebounceTimer:function(c){S.debounceTimer=c},
getDebounceTimer:function(){return S.debounceTimer}}},M8d=function(){if(!DE.instance){var S=new DE;
DE.instance=S}return DE.instance},Gfz=function(S){var c;
_.O(function(Q){if(Q.nextAddress==1)return _.u("start_client_gcf")||_.u("delete_gcf_config_db")?_.u("start_client_gcf")?_.F(Q,_.S8(),3):Q.jumpTo(2):Q.return();Q.nextAddress!=2&&((c=Q.yieldResult)&&_.lB()&&!_.u("delete_gcf_config_db")?(S.isConfigDbInitialized=!0,wtJ(S)):(i6h(S),Z6d(S)));return _.u("delete_gcf_config_db")?_.F(Q,Azp(),0):Q.jumpTo(0)})},XIc=function(){var S;
return(S=l4())!=null?S:_.WY("RAW_HOT_CONFIG_GROUP")},WOs=function(S){var c,Q,f,U,a,X;
return _.O(function(z){switch(z.nextAddress){case 1:if(S.hotGlobalConfigGroup)return z.return(l4());if(!S.isConfigDbInitialized)return c=Wi("getHotConfig IDB not initialized"),_.dC(c),z.return(Promise.reject(c));Q=o6();f=_.WY("TIME_CREATED_MS");if(!Q){U=Wi("getHotConfig token error");_.dC(U);z.jumpTo(2);break}return _.F(z,a5p(Q),3);case 3:if((a=z.yieldResult)&&a.timestamp>f)return hJi(S,a.config),S.setHotHashData(a.hashData),z.return(l4());case 2:Z6d(S);if(!(Q&&S.hotGlobalConfigGroup&&S.hotHashData)){z.jumpTo(4);
break}return _.F(z,f5M(S.hotGlobalConfigGroup,S.hotHashData,Q,f),4);case 4:return S.hotGlobalConfigGroup?z.return(l4()):(X=new _.Yr("Config not available in ytConfig"),_.dC(X),z.return(Promise.reject(X)))}})},eJh=function(S){var c,Q,f,U,a,X;
return _.O(function(z){switch(z.nextAddress){case 1:if(S.coldGlobalConfigGroup)return z.return(TeJ());if(!S.isConfigDbInitialized)return c=Wi("getColdConfig IDB not initialized"),_.dC(c),z.return(Promise.reject(c));Q=o6();f=_.WY("TIME_CREATED_MS");if(!Q){U=Wi("getColdConfig");_.dC(U);z.jumpTo(2);break}return _.F(z,JzH(Q),3);case 3:if((a=z.yieldResult)&&a.timestamp>f)return qJl(S,a.config),gMu(S,a.configData),sRz(S,a.hashData),z.return(TeJ());case 2:i6h(S);if(!(Q&&S.coldGlobalConfigGroup&&S.coldHashData&&
S.configData)){z.jumpTo(4);break}return _.F(z,UDY(S.coldGlobalConfigGroup,S.coldHashData,S.configData,Q,f),4);case 4:return S.coldGlobalConfigGroup?z.return(TeJ()):(X=new _.Yr("Config not available in ytConfig"),_.dC(X),z.return(Promise.reject(X)))}})},wtJ=function(S){if(!S.hotGlobalConfigGroup||!S.coldGlobalConfigGroup){if(!o6()){var c=Wi("scheduleGetConfigs");
_.dC(c)}S.initJob||(S.initJob=_.Mq.addLowPriorityJob(function(){return _.O(function(Q){switch(Q.nextAddress){case 1:return _.X1(Q,2),_.F(Q,WOs(S),4);case 4:_.Pi(Q,3);break;case 2:_.Bs(Q);case 3:return _.X1(Q,5),_.F(Q,eJh(S),7);case 7:_.Pi(Q,6);break;case 5:_.Bs(Q);case 6:S.initJob&&(S.initJob=0),_.IN(Q)}})},100))}},fcz=function(S,c,Q){var f,U,a;
return _.O(function(X){switch(X.nextAddress){case 1:if(!_.u("start_client_gcf")){X.jumpTo(0);break}Q&&hJi(S,Q);S.setHotHashData(c);f=o6();if(!f){X.jumpTo(3);break}if(Q){X.jumpTo(4);break}return _.F(X,a5p(f),5);case 5:U=X.yieldResult,Q=(a=U)==null?void 0:a.config;case 4:return _.F(X,f5M(Q,c,f),3);case 3:if(Q)for(var z=Q,x=_.A(S.configUpdateService.sharedHotConfigJobQueue),I=x.next();!I.done;I=x.next())I=I.value,I(z);_.IN(X)}})},UKM=function(S,c,Q){var f,U,a,X;
return _.O(function(z){if(z.nextAddress==1){if(!_.u("start_client_gcf"))return z.jumpTo(0);sRz(S,c);return(f=o6())?Q?z.jumpTo(4):_.F(z,JzH(f),5):z.jumpTo(0)}z.nextAddress!=4&&(U=z.yieldResult,Q=(a=U)==null?void 0:a.config);if(!Q)return z.jumpTo(0);X=Q.configData;return _.F(z,UDY(Q,c,X,f),0)})},H8p=function(){var S=M8d(),c=(0,_.Qk)()-S.debounceTimer;
if(!(S.debounceTimer!==0&&c<_.a6("send_config_hash_timer"))){c=_.rC("yt.gcf.config.coldConfigData");var Q=_.rC("yt.gcf.config.hotHashData"),f=_.rC("yt.gcf.config.coldHashData");c&&Q&&f&&(S.debounceTimer=(0,_.Qk)());return{coldConfigData:c,hotHashData:Q,coldHashData:f}}},i6h=function(S){qJl(S,_.WY("RAW_COLD_CONFIG_GROUP"));
sRz(S,_.WY("SERIALIZED_COLD_HASH_DATA"));var c;gMu(S,(c=S.coldGlobalConfigGroup)==null?void 0:c.configData)},Z6d=function(S){hJi(S,_.WY("RAW_HOT_CONFIG_GROUP"));
S.setHotHashData(_.WY("SERIALIZED_HOT_HASH_DATA"))},hJi=function(S,c){S.hotGlobalConfigGroup=c;
_.m5("yt.gcf.config.hotConfigGroup",S.hotGlobalConfigGroup||null)},qJl=function(S,c){S.coldGlobalConfigGroup=c;
_.m5("yt.gcf.config.coldConfigGroup",S.coldGlobalConfigGroup||null)};
DE.prototype.setHotHashData=function(S){this.hotHashData=S;_.m5("yt.gcf.config.hotHashData",this.hotHashData||null)};
var sRz=function(S,c){S.coldHashData=c;_.m5("yt.gcf.config.coldHashData",S.coldHashData||null)},gMu=function(S,c){S.configData=c;
_.m5("yt.gcf.config.coldConfigData",S.configData||null)},l4=function(){return _.rC("yt.gcf.config.hotConfigGroup")},TeJ=function(){return _.rC("yt.gcf.config.coldConfigGroup")};var Bt={},kfd=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";Bt.assign=function(S){for(var c=Array.prototype.slice.call(arguments,1);c.length;){var Q=c.shift();if(Q){if(typeof Q!=="object")throw new TypeError("Xc`"+Q);for(var f in Q)Object.prototype.hasOwnProperty.call(Q,f)&&(S[f]=Q[f])}}return S};
Bt.shrinkBuf=function(S,c){if(S.length===c)return S;if(S.subarray)return S.subarray(0,c);S.length=c;return S};
var rBd={arraySet:function(S,c,Q,f,U){if(c.subarray&&S.subarray)S.set(c.subarray(Q,Q+f),U);else for(var a=0;a<f;a++)S[U+a]=c[Q+a]},
flattenChunks:function(S){var c,Q;var f=Q=0;for(c=S.length;f<c;f++)Q+=S[f].length;var U=new Uint8Array(Q);f=Q=0;for(c=S.length;f<c;f++){var a=S[f];U.set(a,Q);Q+=a.length}return U}},dqi={arraySet:function(S,c,Q,f,U){for(var a=0;a<f;a++)S[U+a]=c[Q+a]},
flattenChunks:function(S){return[].concat.apply([],S)}};
Bt.setTyped=function(){kfd?(Bt.Buf8=Uint8Array,Bt.Buf16=Uint16Array,Bt.Buf32=Int32Array,Bt.assign(Bt,rBd)):(Bt.Buf8=Array,Bt.Buf16=Array,Bt.Buf32=Array,Bt.assign(Bt,dqi))};
Bt.setTyped();var vMe=!0;try{new Uint8Array(1)}catch(S){vMe=!1}
var a8Y=function(S){var c,Q,f=S.length,U=0;for(c=0;c<f;c++){var a=S.charCodeAt(c);if((a&64512)===55296&&c+1<f){var X=S.charCodeAt(c+1);(X&64512)===56320&&(a=65536+(a-55296<<10)+(X-56320),c++)}U+=a<128?1:a<2048?2:a<65536?3:4}var z=new Bt.Buf8(U);for(c=Q=0;Q<U;c++)a=S.charCodeAt(c),(a&64512)===55296&&c+1<f&&(X=S.charCodeAt(c+1),(X&64512)===56320&&(a=65536+(a-55296<<10)+(X-56320),c++)),a<128?z[Q++]=a:(a<2048?z[Q++]=192|a>>>6:(a<65536?z[Q++]=224|a>>>12:(z[Q++]=240|a>>>18,z[Q++]=128|a>>>12&63),z[Q++]=
128|a>>>6&63),z[Q++]=128|a&63);return z};var EtY={};EtY=function(S,c,Q,f){var U=S&65535|0;S=S>>>16&65535|0;for(var a;Q!==0;){a=Q>2E3?2E3:Q;Q-=a;do U=U+c[f++]|0,S=S+U|0;while(--a);U%=65521;S%=65521}return U|S<<16|0};for(var hB={},Yo,PHd=[],LOz=0;LOz<256;LOz++){Yo=LOz;for(var EMs=0;EMs<8;EMs++)Yo=Yo&1?3988292384^Yo>>>1:Yo>>>1;PHd[LOz]=Yo}hB=function(S,c,Q,f){Q=f+Q;for(S^=-1;f<Q;f++)S=S>>>8^PHd[(S^c[f])&255];return S^-1};var Nq={};Nq={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 Z8Z=[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],WqM=[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],JbM=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],P2z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],j8=Array(576);OJ(j8);var lH=Array(60);OJ(lH);var n6=Array(512);OJ(n6);var IR=Array(256);OJ(IR);var GZM=Array(29);OJ(GZM);var gtY=Array(30);OJ(gtY);var QBp,f8H,UOZ,cbc=!1;var sJ;
sJ=[new we(0,0,0,0,function(S,c){var Q=65535;for(Q>S.pending_buf_size-5&&(Q=S.pending_buf_size-5);;){if(S.lookahead<=1){qq(S);if(S.lookahead===0&&c===0)return 1;if(S.lookahead===0)break}S.strstart+=S.lookahead;S.lookahead=0;var f=S.block_start+Q;if(S.strstart===0||S.strstart>=f)if(S.lookahead=S.strstart-f,S.strstart=f,Ht(S,!1),S.strm.avail_out===0)return 1;if(S.strstart-S.block_start>=S.w_size-262&&(Ht(S,!1),S.strm.avail_out===0))return 1}S.insert=0;if(c===4)return Ht(S,!0),S.strm.avail_out===0?3:
4;S.strstart>S.block_start&&Ht(S,!1);return 1}),
new we(4,4,8,4,tLM),new we(4,5,16,8,tLM),new we(4,6,32,32,tLM),new we(4,4,16,16,Tf),new we(8,16,32,32,Tf),new we(8,16,128,128,Tf),new we(8,32,128,256,Tf),new we(32,128,258,1024,Tf),new we(32,258,258,4096,Tf)];var SmR={};SmR=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 Abp=Object.prototype.toString;
mDo.prototype.push=function(S,c){var Q=this.strm,f=this.options.chunkSize;if(this.ended)return!1;var U=c===~~c?c:c===!0?4:0;typeof S==="string"?Q.input=a8Y(S):Abp.call(S)==="[object ArrayBuffer]"?Q.input=new Uint8Array(S):Q.input=S;Q.next_in=0;Q.avail_in=Q.input.length;do{Q.avail_out===0&&(Q.output=new Bt.Buf8(f),Q.next_out=0,Q.avail_out=f);S=otz(Q,U);if(S!==1&&S!==0)return t8h(this,S),this.ended=!0,!1;if(Q.avail_out===0||Q.avail_in===0&&(U===4||U===2))if(this.options.to==="string"){var a=Bt.shrinkBuf(Q.output,
Q.next_out);c=a;a=a.length;if(a<65537&&(c.subarray&&vMe||!c.subarray))c=String.fromCharCode.apply(null,Bt.shrinkBuf(c,a));else{for(var X="",z=0;z<a;z++)X+=String.fromCharCode(c[z]);c=X}this.chunks.push(c)}else c=Bt.shrinkBuf(Q.output,Q.next_out),this.chunks.push(c)}while((Q.avail_in>0||Q.avail_out===0)&&S!==1);if(U===4)return(Q=this.strm)&&Q.state?(f=Q.state.status,f!==42&&f!==69&&f!==73&&f!==91&&f!==103&&f!==113&&f!==666?S=K6(Q,-2):(Q.state=null,S=f===113?K6(Q,-3):0)):S=-2,t8h(this,S),this.ended=
!0,S===0;U===2&&(t8h(this,0),Q.avail_out=0);return!0};
var t8h=function(S,c){c===0&&(S.result=S.options.to==="string"?S.chunks.join(""):Bt.flattenChunks(S.chunks));S.chunks=[];S.err=c;S.msg=S.strm.msg};var V8e=typeof TextEncoder!=="undefined"?new TextEncoder:null,Ghr=V8e?function(S){return V8e.encode(S)}:function(S){S=_.lG(S);
for(var c=new Uint8Array(S.length),Q=0;Q<c.length;Q++)c[Q]=S[Q];return c};var X9x={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},z1z={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Cw=function(S,c){this.version=S;this.args=c};
Cw.prototype.serialize=function(){return{version:this.version,args:this.args}};var FMT=function(S,c){this.topic=S;this.dataClass=c};
FMT.prototype.toString=function(){return this.topic};var RJp=_.rC("ytPubsub2Pubsub2Instance")||new _.bB;_.bB.prototype.subscribe=_.bB.prototype.subscribe;_.bB.prototype.unsubscribeByKey=_.bB.prototype.unsubscribeByKey;_.bB.prototype.publish=_.bB.prototype.publish;_.bB.prototype.clear=_.bB.prototype.clear;_.m5("ytPubsub2Pubsub2Instance",RJp);var xOZ=_.rC("ytPubsub2Pubsub2SubscribedKeys")||{};_.m5("ytPubsub2Pubsub2SubscribedKeys",xOZ);var I8Y=_.rC("ytPubsub2Pubsub2TopicToKeys")||{};_.m5("ytPubsub2Pubsub2TopicToKeys",I8Y);
var BPp=_.rC("ytPubsub2Pubsub2IsAsync")||{};_.m5("ytPubsub2Pubsub2IsAsync",BPp);_.m5("ytPubsub2Pubsub2SkipSubKey",null);var CZo=void 0,l8z=void 0;var sBM=_.a6("max_body_size_to_compress",5E5),MDY=_.a6("min_body_size_to_compress",500),Zz=!0,erZ=0,Gf=0,gyZ=_.a6("compression_performance_threshold_lr",250),khp=_.a6("slow_compressions_before_abandon_count",4),pqz=!1,hrY=new Map,ZKc=1,iKx=!0;_.Xa(Wt,vyR);Wt.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 yBd=function(S,c,Q){Q||(Q=0);var f=S.W_;if(typeof c==="string")for(var U=0;U<16;U++)f[U]=c.charCodeAt(Q)<<24|c.charCodeAt(Q+1)<<16|c.charCodeAt(Q+2)<<8|c.charCodeAt(Q+3),Q+=4;else for(U=0;U<16;U++)f[U]=c[Q]<<24|c[Q+1]<<16|c[Q+2]<<8|c[Q+3],Q+=4;for(c=16;c<80;c++)Q=f[c-3]^f[c-8]^f[c-14]^f[c-16],f[c]=(Q<<1|Q>>>31)&4294967295;c=S.chain_[0];Q=S.chain_[1];U=S.chain_[2];for(var a=S.chain_[3],X=S.chain_[4],z,x,I=0;I<80;I++)I<40?I<20?(z=a^Q&(U^a),x=1518500249):(z=Q^U^a,x=1859775393):I<60?(z=Q&U|a&(Q|U),
x=2400959708):(z=Q^U^a,x=3395469782),z=(c<<5|c>>>27)+z+X+x+f[I]&4294967295,X=a,a=U,U=(Q<<30|Q>>>2)&4294967295,Q=c,c=z;S.chain_[0]=S.chain_[0]+c&4294967295;S.chain_[1]=S.chain_[1]+Q&4294967295;S.chain_[2]=S.chain_[2]+U&4294967295;S.chain_[3]=S.chain_[3]+a&4294967295;S.chain_[4]=S.chain_[4]+X&4294967295};
Wt.prototype.update=function(S,c){if(S!=null){c===void 0&&(c=S.length);for(var Q=c-this.blockSize,f=0,U=this.buf_,a=this.inbuf_;f<c;){if(a==0)for(;f<=Q;)yBd(this,S,f),f+=this.blockSize;if(typeof S==="string")for(;f<c;){if(U[a]=S.charCodeAt(f),++a,++f,a==this.blockSize){yBd(this,U);a=0;break}}else for(;f<c;)if(U[a]=S[f],++a,++f,a==this.blockSize){yBd(this,U);a=0;break}}this.inbuf_=a;this.total_+=c}};
Wt.prototype.digest=function(){var S=[],c=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var Q=this.blockSize-1;Q>=56;Q--)this.buf_[Q]=c&255,c/=256;yBd(this,this.buf_);for(Q=c=0;Q<5;Q++)for(var f=24;f>=0;f-=8)S[c]=this.chain_[Q]>>f&255,++c;return S};var EyY;var DP=function(S){var c=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(n){c.databaseToken=n},
triggerThrottle:function(){c.throttledSend()},
cancelThrottle:function(){c.cancelThrottledSend()},
immediateSend:function(n){return _.O(function(b){return _.F(b,c.immediateSend(n),0)})},
requestWithinAgeLimit:function(n,b){return c.requestWithinAgeLimit(n,b)},
retryQueuedRequests:function(){c.retryQueuedRequests()}};
var Q;this.throttleTimeout=(Q=S.throttleTimeout)!=null?Q:100;var f;this.retryMaxAttempts=(f=S.retryMaxAttempts)!=null?f:1;var U;this.requestAgeLimitMs=(U=S.requestAgeLimitMs)!=null?U:2592E6;var a;this.queuedRequestAgeLimitMs=(a=S.queuedRequestAgeLimitMs)!=null?a:12E4;var X;this.retryDelayMs=(X=S.retryDelayMs)!=null?X:5E3;var z;this.databaseToken=(z=S.databaseToken)!=null?z:void 0;this.enableCleaning=!!S.enableCleaning;var x;this.cleaningRate=(x=S.cleaningRate)!=null?x:.1;var I;this.potentialEsfErrorLimit=
(I=S.potentialEsfErrorLimit)!=null?I:10;S.handleError&&(this.handleError=S.handleError);S.handleWarning&&(this.handleWarning=S.handleWarning);S.disableYtIdbTransactions&&(this.disableYtIdbTransactions=S.disableYtIdbTransactions);S.bypassDbTokenDependency&&(this.bypassDbTokenDependency=S.bypassDbTokenDependency);this.getBooleanFlag=S.getBooleanFlag;this.jobManager=S.jobManager;this.logsStore=S.logsStore;this.networkManager=S.networkManager;this.sendFn=S.sendFn;this.onlineEvent=S.onlineEvent;this.offlineEvent=
S.offlineEvent;H9(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&oMh(this)},oMh=function(S){H9(S)&&!S.disableYtIdbTransactions&&(S.initialized=!0,S.enableCleaning&&Math.random()<=S.cleaningRate&&S.logsStore.cleanLogsStore(S.databaseToken),S.retryQueuedRequests(),S.networkManager.isNetworkAvailable()&&S.throttledSend(),S.networkManager.listen(S.onlineEvent,S.throttledSend.bind(S)),S.networkManager.listen(S.offlineEvent,S.cancelThrottledSend.bind(S)))};
_.J=DP.prototype;_.J.writeThenSend=function(S,c){var Q=this;c=c===void 0?{}:c;if(H9(this)&&this.initialized){var f={url:S,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(f,this.databaseToken).then(function(U){f.id=U;Q.networkManager.isNetworkAvailable()&&Q.immediateSend(f)}).catch(function(U){Q.immediateSend(f);
mql(Q,U)})}else this.sendFn(S,c)};
_.J.sendThenWrite=function(S,c,Q){var f=this;c=c===void 0?{}:c;if(H9(this)&&this.initialized){var U={url:S,options:c,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(U.skipRetry=Q);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!U.skipRetry){if(!U.skipRetry){var a=c.onError?c.onError:function(){};
c.onError=function(X,z){return _.O(function(x){if(x.nextAddress==1)return _.F(x,f.logsStore.set(U,f.databaseToken).catch(function(I){mql(f,I)}),2);
a(X,z);_.IN(x)})}}this.sendFn(S,c,U.skipRetry)}else this.logsStore.set(U,this.databaseToken).catch(function(X){f.sendFn(S,c,U.skipRetry);
mql(f,X)})}else this.sendFn(S,c,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&Q)};
_.J.sendAndWrite=function(S,c){var Q=this;c=c===void 0?{}:c;if(H9(this)&&this.initialized){var f={url:S,options:c,timestamp:this.now(),status:"NEW",sendCount:0},U=!1,a=c.onSuccess?c.onSuccess:function(){};
f.options.onSuccess=function(X,z){f.id!==void 0?Q.logsStore.deleteRequest(f.id,Q.databaseToken):U=!0;Q.networkManager.networkStatusHint&&Q.getBooleanFlag&&Q.getBooleanFlag("vss_network_hint")&&Q.networkManager.networkStatusHint(!0);a(X,z)};
this.sendFn(f.url,f.options,void 0,!0);this.logsStore.set(f,this.databaseToken).then(function(X){f.id=X;U&&Q.logsStore.deleteRequest(f.id,Q.databaseToken)}).catch(function(X){mql(Q,X)})}else this.sendFn(S,c,void 0,!0)};
_.J.throttledSend=function(){var S=this;if(!H9(this))throw Error("$c");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.logsStore.getMostRecentByStatus("NEW",S.databaseToken),2);if(Q.nextAddress!=3)return c=Q.yieldResult,c?_.F(Q,S.immediateSend(c),3):(S.cancelThrottledSend(),Q.return());S.intervalJob&&(S.intervalJob=0,S.throttledSend());_.IN(Q)})},this.throttleTimeout))};
_.J.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.J.immediateSend=function(S){var c=this,Q;return _.O(function(f){switch(f.nextAddress){case 1:if(!H9(c))throw Error("ad");if(S.id===void 0){f.jumpTo(2);break}return _.F(f,c.logsStore.markAsQueued(S.id,c.databaseToken),3);case 3:(Q=f.yieldResult)||c.handleWarning(Error("bd"));case 2:if(c.requestWithinAgeLimit(S,c.requestAgeLimitMs)){f.jumpTo(4);break}c.handleWarning(Error("cd"));if(S.id===void 0){f.jumpTo(5);break}return _.F(f,c.logsStore.deleteRequest(S.id,c.databaseToken),5);case 5:return f.return();
case 4:S.skipRetry||(S=SHH(c,S));if(!S){f.jumpTo(0);break}if(!S.skipRetry||S.id===void 0){f.jumpTo(8);break}return _.F(f,c.logsStore.deleteRequest(S.id,c.databaseToken),8);case 8:c.sendFn(S.url,S.options,!!S.skipRetry),_.IN(f)}})};
var SHH=function(S,c){if(!H9(S))throw Error("dd");var Q=c.options.onError?c.options.onError:function(){};
c.options.onError=function(U,a){var X,z,x,I;return _.O(function(n){switch(n.nextAddress){case 1:X=oyo(a);(z=mOz(a))&&S.getBooleanFlag&&S.getBooleanFlag("web_enable_error_204")&&S.handleError(Error("ed"),c.url,a);if(!(S.getBooleanFlag&&S.getBooleanFlag("nwl_consider_error_code")&&X||S.getBooleanFlag&&!S.getBooleanFlag("nwl_consider_error_code")&&S.potentialEsfErrorCounter<=S.potentialEsfErrorLimit)){n.jumpTo(2);break}if(!S.networkManager.sendNetworkCheckRequest){n.jumpTo(3);break}return _.F(n,S.networkManager.sendNetworkCheckRequest(),
3);case 3:if(S.networkManager.isNetworkAvailable()){n.jumpTo(2);break}Q(U,a);if(!S.getBooleanFlag||!S.getBooleanFlag("nwl_consider_error_code")||((x=c)==null?void 0:x.id)===void 0){n.jumpTo(6);break}return _.F(n,S.logsStore.resetRequest(c.id,S.databaseToken,!1),6);case 6:return n.return();case 2:if(S.getBooleanFlag&&S.getBooleanFlag("nwl_consider_error_code")&&!X&&S.potentialEsfErrorCounter>S.potentialEsfErrorLimit)return n.return();S.potentialEsfErrorCounter++;if(((I=c)==null?void 0:I.id)===void 0){n.jumpTo(8);
break}return c.sendCount<S.retryMaxAttempts?_.F(n,S.logsStore.resetRequest(c.id,S.databaseToken,!0,z?!1:void 0),12):_.F(n,S.logsStore.deleteRequest(c.id,S.databaseToken),8);case 12:S.jobManager.addLowPriorityJob(function(){S.networkManager.isNetworkAvailable()&&S.throttledSend()},S.retryDelayMs);
case 8:Q(U,a),_.IN(n)}})};
var f=c.options.onSuccess?c.options.onSuccess:function(){};
c.options.onSuccess=function(U,a){var X;return _.O(function(z){if(z.nextAddress==1)return((X=c)==null?void 0:X.id)===void 0?z.jumpTo(2):_.F(z,S.logsStore.deleteRequest(c.id,S.databaseToken),2);S.networkManager.networkStatusHint&&S.getBooleanFlag&&S.getBooleanFlag("vss_network_hint")&&S.networkManager.networkStatusHint(!0);f(U,a);_.IN(z)})};
return c};
DP.prototype.requestWithinAgeLimit=function(S,c){S=S.timestamp;return this.now()-S>=c?!1:!0};
DP.prototype.retryQueuedRequests=function(){var S=this;if(!H9(this))throw Error("fd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(c){c&&!S.requestWithinAgeLimit(c,S.queuedRequestAgeLimitMs)?S.jobManager.addLowPriorityJob(function(){return _.O(function(Q){if(Q.nextAddress==1)return c.id===void 0?Q.jumpTo(2):_.F(Q,S.logsStore.resetRequest(c.id,S.databaseToken),2);S.retryQueuedRequests();_.IN(Q)})}):S.networkManager.isNetworkAvailable()&&S.throttledSend()})};
var mql=function(S,c){S.writeError&&!S.networkManager.isNetworkAvailable()?S.writeError(c):S.handleError(c)},H9=function(S){return!!S.databaseToken||S.bypassDbTokenDependency};var S_c;var A2p={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 cc_={},zMY=ct("ServiceWorkerLogsDatabase",{objectStores:(cc_.SWHealthLog={addedAtVersion:1},cc_),shared:!0,upgrade:function(S,c){c(1)&&re(kM(S,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var KSZ={},NhZ=0;var lOR;var pw=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},EJ=function(){if(!pw.instance){var S=_.rC("yt.networkRequestMonitor.instance")||new pw;
_.m5("yt.networkRequestMonitor.instance",S);pw.instance=S}return pw.instance};
pw.prototype.requestComplete=function(S,c){c&&(this.anyRequestHasSucceeded=!0);S=this.removeParams(S);this.requestMap.get(S)||this.requestMap.set(S,c)};
pw.prototype.isEndpointCFR=function(S){S=this.removeParams(S);return(S=this.requestMap.get(S))?!1:S===!1&&this.anyRequestHasSucceeded?!0:null};
pw.prototype.removeParams=function(S){return S.split("?")[0]};
pw.prototype.removeParams=pw.prototype.removeParams;pw.prototype.isEndpointCFR=pw.prototype.isEndpointCFR;pw.prototype.requestComplete=pw.prototype.requestComplete;pw.getInstance=EJ;var h1=function(S){_.Y5.call(this);var c=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=S!=null?S:{addLowPriorityJob:function(U,a){return setTimeout(U,a)},
cancelJob:function(U){clearTimeout(U)}};
var Q,f;this.isOnline=(f=(Q=window.navigator)==null?void 0:Q.onLine)!=null?f:!0;this.onNavigatorChange=function(){return _.O(function(U){return _.F(U,QTh(c),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||fEe(this)};
_.C(h1,_.Y5);h1.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete h1.instance};
h1.prototype.isNetworkAvailable=function(){return this.isOnline};
var fEe=function(S){S.pollingJob=S.jobManager.addLowPriorityJob(function(){var c;return _.O(function(Q){if(Q.nextAddress==1)return S.isOnline?((c=window.navigator)==null?0:c.onLine)?Q.jumpTo(3):_.F(Q,QTh(S),3):_.F(Q,QTh(S),3);fEe(S);_.IN(Q)})},3E4)},QTh=function(S,c){return S.networkRequestPromise?S.networkRequestPromise:S.networkRequestPromise=new Promise(function(Q){var f,U,a,X;
return _.O(function(z){switch(z.nextAddress){case 1:return f=window.AbortController?new window.AbortController:void 0,a=(U=f)==null?void 0:U.signal,X=!1,_.X1(z,2,3),f&&(S.abortTimeoutKey=S.jobManager.addLowPriorityJob(function(){f.abort()},c||2E4)),_.F(z,fetch("/generate_204",{method:"HEAD",
signal:a}),5);case 5:X=!0;case 3:_.O7(z);S.networkRequestPromise=void 0;S.abortTimeoutKey&&(S.jobManager.cancelJob(S.abortTimeoutKey),S.abortTimeoutKey=0);X!==S.isOnline&&(S.isOnline=X,S.isOnline?S.dispatchEvent("networkstatus-online"):S.dispatchEvent("networkstatus-offline"));Q(X);_.F1(z,0);break;case 2:_.Bs(z),X=!1,z.jumpTo(3)}})})};var qS=function(){_.Y5.call(this);var S=this;this.shouldFlushErrors=!1;h1.instance||(h1.instance=new h1(_.Mq));this.sharedNetworkStatusManager=h1.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(S.shouldFlushErrors&&_.u("offline_error_handling")){var c=Y_p().get("errors",!0);if(c){for(var Q in c)if(c[Q]){var f=new _.Yr(Q,"sent via offline_errors");f.name=c[Q].name;f.stack=c[Q].stack;f.level=c[Q].level;_.eG(f)}Y_p().set("errors",{},2592E3,!0)}}})};
_.C(qS,_.Y5);var UP_=function(){if(!qS.instance){var S=_.rC("yt.networkStatusManager.instance")||new qS;_.m5("yt.networkStatusManager.instance",S);qS.instance=S}return qS.instance};
_.J=qS.prototype;_.J.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.J.networkStatusHint=function(S){this.sharedNetworkStatusManager.isOnline=S};
_.J.getWindowStatus=function(){var S=window.navigator.onLine;return S===void 0?!0:S};
_.J.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.J.listen=function(S,c){return this.sharedNetworkStatusManager.listen(S,c)};
_.J.sendNetworkCheckRequest=function(S){S=QTh(this.sharedNetworkStatusManager,S);S.then(function(c){_.u("use_cfr_monitor")&&EJ().requestComplete("generate_204",c)});
return S};
qS.prototype.sendNetworkCheckRequest=qS.prototype.sendNetworkCheckRequest;qS.prototype.listen=qS.prototype.listen;qS.prototype.enableErrorFlushing=qS.prototype.enableErrorFlushing;qS.prototype.getWindowStatus=qS.prototype.getWindowStatus;qS.prototype.networkStatusHint=qS.prototype.networkStatusHint;qS.prototype.isNetworkAvailable=qS.prototype.isNetworkAvailable;qS.getInstance=UP_;_.L6=function(S){S=S===void 0?{}:S;_.Y5.call(this);var c=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=UP_();var Q=_.rC("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);Q&&(S.rateLimit?(this.rateLimit=S.rateLimit,Q("networkstatus-online",function(){JcJ(c,"publicytnetworkstatus-online")}),Q("networkstatus-offline",function(){JcJ(c,"publicytnetworkstatus-offline")})):(Q("networkstatus-online",function(){c.dispatchEvent("publicytnetworkstatus-online")}),Q("networkstatus-offline",
function(){c.dispatchEvent("publicytnetworkstatus-offline")})))};
_.C(_.L6,_.Y5);_.L6.prototype.isNetworkAvailable=function(){var S=_.rC("yt.networkStatusManager.instance.isNetworkAvailable");return S?S.bind(this.nsmInstance)():!0};
_.L6.prototype.networkStatusHint=function(S){var c=_.rC("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);c&&c(S)};
_.L6.prototype.sendNetworkCheckRequest=function(S){var c=this,Q;return _.O(function(f){Q=_.rC("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(c.nsmInstance);return _.u("skip_network_check_if_cfr")&&EJ().isEndpointCFR("generate_204")?f.return(new Promise(function(U){var a;c.networkStatusHint(((a=window.navigator)==null?void 0:a.onLine)||!0);U(c.isNetworkAvailable())})):Q?f.return(Q(S)):f.return(!0)})};
var JcJ=function(S,c){S.rateLimit?S.lastJobTime?(_.Mq.cancelJob(S.schedulerJob),S.schedulerJob=_.Mq.addLowPriorityJob(function(){S.lastPublicSignalSent!==c&&(S.dispatchEvent(c),S.lastPublicSignalSent=c,S.lastJobTime=(0,_.Qk)())},S.rateLimit-((0,_.Qk)()-S.lastJobTime))):(S.dispatchEvent(c),S.lastPublicSignalSent=c,S.lastJobTime=(0,_.Qk)()):S.dispatchEvent(c)};var hMr,Tg=function(){DP.call(this,{logsStore:{cleanLogsStore:XVZ,deleteRequest:A4M,getMostRecentByStatus:U6H,markAsQueued:J4p,resetRequest:aOZ,set:fOY},networkManager:_.q_Y(),handleError:function(S,c,Q){var f,U=Q==null?void 0:(f=Q.error)==null?void 0:f.code;if(U===400||U===415){var a;S=new _.Yr(S.message,c,Q==null?void 0:(a=Q.error)==null?void 0:a.code);_.dC(S,void 0,void 0,void 0,!0)}else _.eG(S)},
handleWarning:_.dC,sendFn:D6M,now:_.Qk,writeError:ClZ,jobManager:_.TV(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.a6("potential_esf_error_limit",10),getBooleanFlag:_.u,disableYtIdbTransactions:!(_.lB()&&_.ThZ())});this.initializationPromise=new _.O_;_.u("networkless_immediately_drop_all_requests")&&OJY();mET("LogsDatabaseV2")};
_.C(Tg,DP);_.Ac_=function(){var S=_.rC("yt.networklessRequestController.instance");S||(S=new Tg,_.m5("yt.networklessRequestController.instance",S),_.u("networkless_logging")&&_.S8().then(function(c){S.databaseToken=c;oMh(S);S.initializationPromise.resolve();S.enableCleaning&&Math.random()<=S.cleaningRate&&S.databaseToken&&FSY(S.databaseToken);_.u("networkless_immediately_drop_sw_health_store")&&aEd(S)}));
return S};
Tg.prototype.writeThenSend=function(S,c){c||(c={});c=pVR(S,c);_.lB()||(this.initialized=!1);DP.prototype.writeThenSend.call(this,S,c)};
Tg.prototype.sendThenWrite=function(S,c,Q){c||(c={});c=pVR(S,c);_.lB()||(this.initialized=!1);DP.prototype.sendThenWrite.call(this,S,c,Q)};
Tg.prototype.sendAndWrite=function(S,c){c||(c={});c=pVR(S,c);_.lB()||(this.initialized=!1);DP.prototype.sendAndWrite.call(this,S,c)};
Tg.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var aEd=function(S){var c;_.O(function(Q){if(!S.databaseToken)throw c=Wi("clearSWHealthLogsDb"),c;return Q.return(Bho(S.databaseToken).catch(function(f){S.handleError(f)}))})};_.sMY=!1;_.wVc=_.QY.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.sMY};_.m5("ytNetworklessLoggingInitializationOptions",_.wVc);var qP=function(S){var c=this;this.config_=null;S?this.config_=S:X2p()&&(this.config_=_.UJ());_.HG(_.Mq,function(){ybT(c)},5E3)};
qP.prototype.isReady=function(){!this.config_&&X2p()&&(this.config_=_.UJ());return!!this.config_};
var RrZ=function(S,c,Q,f){!_.WY("VISITOR_DATA")&&c!=="visitor_id"&&Math.random()<.01&&_.dC(new _.Yr("Missing VISITOR_DATA when sending innertube request.",c,Q,f));if(!S.isReady()){var U=new _.Yr("innertube xhrclient not ready",c,Q,f);_.eG(U);throw U;}var a={headers:f.headers||{},method:"POST",postParams:Q,postBody:f.postBody,postBodyFormat:f.postBodyFormat||"JSON",onTimeout:function(){f.onTimeout()},
onFetchTimeout:f.onTimeout,onSuccess:function(b,N){if(f.onSuccess)f.onSuccess(N)},
onFetchSuccess:function(b){if(f.onSuccess)f.onSuccess(b)},
onError:function(b,N){if(f.onError)f.onError(N)},
onFetchError:function(b){if(f.onError)f.onError(b)},
timeout:f.timeout,withCredentials:!0,compress:f.compress};a.headers["Content-Type"]||(a.headers["Content-Type"]="application/json");var X="";(U=S.config_.innertubeHostOverride)&&(X=U);var z=S.config_.innertubeUseThirdPartyAuth||!1,x=_.C2Z(z,X,f);Object.assign(a.headers,x);a.headers.Authorization&&!X&&z&&(a.headers["x-origin"]=window.location.origin);var I=_.tS(X+("/youtubei/"+S.config_.innertubeApiVersion+"/"+c),{alt:"json"}),n=function(b){b=b===void 0?!1:b;var N;if(f.retry&&X!="www.youtube-nocookie.com"&&
(b||_.u("skip_ls_gel_retry")||a.headers["Content-Type"]!=="application/json"||(N=tDR(c,Q,x,z)),N)){var l=a.onSuccess,H=a.onFetchSuccess;a.onSuccess=function(g,r){VDR(N);l(g,r)};
Q.onFetchSuccess=function(g,r){VDR(N);H(g,r)}}try{if(b&&f.retry&&!f.networklessOptions.bypassNetworkless)a.method="POST",f.networklessOptions.writeThenSend?_.Ac_().writeThenSend(I,a):_.Ac_().sendAndWrite(I,a);
else if(f.compress){var q=!f.networklessOptions.writeThenSend;if(a.postBody){var w=a.postBody;typeof w!=="string"&&(w=JSON.stringify(a.postBody));WMc(I,w,a,_.I6,q)}else WMc(I,JSON.stringify(a.postParams),a,vQH,q)}else _.u("web_all_payloads_via_jspb")?_.I6(I,a):vQH(I,a)}catch(g){if(g.name==="InvalidAccessError")N&&(VDR(N),N=0),_.dC(Error("gd"));else throw g;}N&&_.HG(_.Mq,function(){ybT(S)},5E3)};
_.MmH()?Pxp().then(function(b){n(b)}):n(!1)};var ZfT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ZfT,_.Ga);var XGz=0,ZJr=_.Ir?"webkit":_.Bg?"moz":_.Fa?"ms":Dlx?"o":"";_.m5("ytDomDomGetNextId",_.rC("ytDomDomGetNextId")||function(){return++XGz});var O1$={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},mO=function(S){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(S=
S||window.event){this.event=S;for(var c in S)c in O1$||(this[c]=S[c]);this.scale=S.scale;this.rotation=S.rotation;var Q=S.target||S.srcElement;Q&&Q.nodeType==3&&(Q=Q.parentNode);this.target=Q;var f=S.relatedTarget;if(f)try{f=f.nodeName?f:null}catch(U){f=null}else this.type=="mouseover"?f=S.fromElement:this.type=="mouseout"&&(f=S.toElement);this.relatedTarget=f;this.clientX=S.clientX!=void 0?S.clientX:S.pageX;this.clientY=S.clientY!=void 0?S.clientY:S.pageY;this.keyCode=S.keyCode?S.keyCode:S.which;
this.charCode=S.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=S.altKey;this.ctrlKey=S.ctrlKey;this.shiftKey=S.shiftKey;this.metaKey=S.metaKey;this.pageX_=S.pageX;this.pageY_=S.pageY}}catch(U){}},z0H=function(S){if(document.body&&document.documentElement){var c=document.body.scrollTop+document.documentElement.scrollTop;
S.pageX_=S.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);S.pageY_=S.clientY+c}};
mO.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
mO.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
mO.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var oR=_.QY.ytEventsEventsListeners||{};_.m5("ytEventsEventsListeners",oR);var r4Y=_.QY.ytEventsEventsCounter||{count:0};_.m5("ytEventsEventsCounter",r4Y);var d6p=_.ur(function(){var S=!1;try{var c=Object.defineProperty({},"capture",{get:function(){S=!0}});
window.addEventListener("test",null,c)}catch(Q){}return S});_.Xa(cG,_.C9);cG.prototype.onMouseMove_=function(S){S.pageX_===void 0&&z0H(S);var c=S.pageX_;S.pageY_===void 0&&z0H(S);this.position_=new _.pn(c,S.pageY_)};
cG.prototype.checkPosition_=function(){if(this.position_){var S=(0,_.Qk)();if(this.previousTime_!=0){var c=this.previousPosition_,Q=this.position_,f=c.x-Q.x;c=c.y-Q.y;f=Math.sqrt(f*f+c*c)/(S-this.previousTime_);this.cycles_[this.index_]=Math.abs((f-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(Q=c=0;Q<4;Q++)c+=this.cycles_[Q]||0;c>=3&&this.callback_();this.previousVelocity_=f}this.previousTime_=S;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
cG.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.vkT(this.mouseListenerKey_)};var tmR={};var QWR=new _.L("rawColdConfigGroup");var c2x=new _.L("rawHotConfigGroup");var xPl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(xPl,_.Ga);var ifH=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ifH,_.Ga);var C1=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S,500)};
_.C(C1,_.Ga);C1.prototype.getPayloadCase=function(){return _.Dx(this,FYp)};
C1.prototype.getContext=function(){return _.JB(this,ifH,33)};
var FYp=[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 V$Y=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(V$Y,_.Ga);var Cwx=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Cwx,_.Ga);Cwx.prototype.setVideoId=function(S){return b5(this,1,HUZ,g1(S))};
Cwx.prototype.getPlaylistId=function(){return _.bG(this,je(this,HUZ,2))};
var HUZ=[1,2];var d_R=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(d_R,_.Ga);d_R.prototype.getContext=function(){return _.JB(this,NP,1)};
d_R.prototype.getTier=function(){return _.iR(this,7)};var BQd,Jc,aT;BQd=_.QY.ytPubsubPubsubInstance||new _.bB;Jc=_.QY.ytPubsubPubsubSubscribedKeys||{};aT=_.QY.ytPubsubPubsubTopicToKeys||{};_.Vmz=_.QY.ytPubsubPubsubIsSynchronous||{};_.bB.prototype.subscribe=_.bB.prototype.subscribe;_.bB.prototype.unsubscribeByKey=_.bB.prototype.unsubscribeByKey;_.bB.prototype.publish=_.bB.prototype.publish;_.bB.prototype.clear=_.bB.prototype.clear;_.m5("ytPubsubPubsubInstance",BQd);_.m5("ytPubsubPubsubTopicToKeys",aT);_.m5("ytPubsubPubsubIsSynchronous",_.Vmz);
_.m5("ytPubsubPubsubSubscribedKeys",Jc);var Xc=window;var w3=_.u("web_enable_lifecycle_monitoring")&&Srp()!==0,IEs=_.u("web_enable_lifecycle_monitoring");var b1J=function(S){var c=this;var Q=Q===void 0?0:Q;var f=f===void 0?_.TV():f;this.JSC$8853_defaultPriority=Q;this.scheduler=f;this.completedResolver=new _.O_;this.scheduledPayloads=S;for(S={i$jscomp$486:0};S.i$jscomp$486<this.scheduledPayloads.length;S={payload$jscomp$18:void 0,i$jscomp$486:S.i$jscomp$486},S.i$jscomp$486++)S.payload$jscomp$18=this.scheduledPayloads[S.i$jscomp$486],Q=function(U){return function(){U.payload$jscomp$18.job();c.scheduledPayloads[U.i$jscomp$486].processed=!0;c.scheduledPayloads.every(function(a){return a.processed===
!0})&&c.completedResolver.resolve()}}(S),f=this.scheduler.addJob(Q,nL$(this,S.payload$jscomp$18)),this.scheduledPayloads[S.i$jscomp$486]=Object.assign({},S.payload$jscomp$18,{job:Q,
jobId:f})};
b1J.prototype.flushJobs=function(){var S=this,c=Array.from(this.scheduledPayloads.keys()).sort(function(f,U){return nL$(S,S.scheduledPayloads[U])-nL$(S,S.scheduledPayloads[f])});
c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=this.scheduledPayloads[Q.value],Q.jobId===void 0||Q.processed||(this.scheduler.cancelJob(Q.jobId),this.scheduler.addJob(Q.job,10))};
b1J.prototype.cancel=function(){for(var S=_.A(this.scheduledPayloads),c=S.next();!c.done;c=S.next())c=c.value,c.jobId===void 0||c.processed||this.scheduler.cancelJob(c.jobId),c.processed=!0;this.completedResolver.resolve()};
var nL$=function(S,c){var Q;return(Q=c.priority)!=null?Q:S.JSC$8853_defaultPriority};var sE=function(S){this.state=S;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};w3&&cqM(this.state)};
sE.prototype.install=function(S){this.plugins.push(S);return this};
sE.prototype.uninstall=function(){var S=this;_.YD.apply(0,arguments).forEach(function(c){c=S.plugins.indexOf(c);c>-1&&S.plugins.splice(c,1)})};
sE.prototype.transition=function(S,c){var Q=this;w3&&Q1T(this.state);var f=this.transitions.find(function(a){return Array.isArray(a.from)?a.from.find(function(X){return X===Q.state&&a.to===S}):a.from===Q.state&&a.to===S});
if(f){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);NQ$(this,S,c);this.state=S;w3&&cqM(this.state);f=f.action.bind(this);var U=this.plugins.filter(function(a){return a[S]}).map(function(a){return a[S]});
f(KYu(this,U),c)}else throw Error("hd`"+this.state+"`"+S);};
var KYu=function(S,c){var Q=c.filter(function(U){return $Pd(S,U)===10}),f=c.filter(function(U){return $Pd(S,U)!==10});
return S.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var U=_.YD.apply(0,arguments);return _.O(function(a){if(a.nextAddress==1)return _.F(a,S.runImmediateJobsAsync.apply(S,[Q].concat(_.Hs(U))),2);S.setJobSetWithScheduledJobs.apply(S,[f].concat(_.Hs(U)));_.IN(a)})}:function(){var U=_.YD.apply(0,arguments);
S.runImmediateJobsSync.apply(S,[Q].concat(_.Hs(U)));S.setJobSetWithScheduledJobs.apply(S,[f].concat(_.Hs(U)))}};
sE.prototype.runImmediateJobsSync=function(S){var c=_.YD.apply(1,arguments);_.TV();for(var Q=_.A(S),f=Q.next(),U={};!f.done;U={lifecycle$jscomp$2:void 0},f=Q.next())U.lifecycle$jscomp$2=f.value,Aa(function(a){return function(){ucp(a.lifecycle$jscomp$2.name);U_M(function(){return a.lifecycle$jscomp$2.callback.apply(a.lifecycle$jscomp$2,_.Hs(c))});
MS(a.lifecycle$jscomp$2.name)}}(U))};
sE.prototype.runImmediateJobsAsync=function(S){var c=_.YD.apply(1,arguments),Q,f,U,a;return _.O(function(X){X.nextAddress==1&&(_.TV(),Q=_.A(S),f=Q.next(),U={});if(X.nextAddress!=3){if(f.done)return X.jumpTo(0);U.lifecycle$jscomp$3=f.value;U.asyncJobCompletion=void 0;a=function(z){return function(){ucp(z.lifecycle$jscomp$3.name);var x=U_M(function(){return z.lifecycle$jscomp$3.callback.apply(z.lifecycle$jscomp$3,_.Hs(c))});
UvY(x)?z.asyncJobCompletion=_.u("web_lifecycle_error_handling_killswitch")?x.then(function(){MS(z.lifecycle$jscomp$3.name)}):x.then(function(){MS(z.lifecycle$jscomp$3.name)},function(I){fIz(I);
MS(z.lifecycle$jscomp$3.name)}):MS(z.lifecycle$jscomp$3.name)}}(U);
Aa(a);return U.asyncJobCompletion?_.F(X,U.asyncJobCompletion,3):X.jumpTo(3)}U={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};f=Q.next();return X.jumpTo(2)})};
sE.prototype.setJobSetWithScheduledJobs=function(S){var c=_.YD.apply(1,arguments),Q=this,f=S.map(function(U){return{job:function(){ucp(U.name);U_M(function(){return U.callback.apply(U,_.Hs(c))});
MS(U.name)},
priority:$Pd(Q,U)}});
f.length&&(this.jobSet=new b1J(f))};
var $Pd=function(S,c){var Q,f;return(f=(Q=S.overridePriority)!=null?Q:c.priority)!=null?f:0},ucp=function(S){w3&&S&&cqM(S)},MS=function(S){w3&&S&&Q1T(S)},NQ$=function(S,c,Q){IEs&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+S.constructor.name+"] '"+S.state+"' to '"+c+"'"),console.log("with message: ",Q),console.groupEnd())};
_.Rh.Object.defineProperties(sE.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var jTe=function(S){sE.call(this,S===void 0?"none":S);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(){}}]},lEJ;
_.C(jTe,sE);jTe.prototype.runApplicationNavigationBegin=function(S,c){var Q=this;this.navigationTimer=_.HG(_.Mq,function(){Q.currentState==="application_navigating"&&Q.transition("none")},5E3);
S(c==null?void 0:c.event)};
jTe.prototype.runApplicationNavigationEnd=function(S,c){this.navigationTimer&&(_.Mq.cancelJob(this.navigationTimer),this.navigationTimer=null);S(c==null?void 0:c.event)};
_.SXT=function(){lEJ||(lEJ=new jTe);return lEJ};var m_Z=[];_.m5("yt.logging.transport.getScrapedGelPayloads",function(){return m_Z});var OH=function(){var S=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return S.totalEntries}}};
OH.prototype.storePayload=function(S,c){S=Jqc(S);this.store[S]?this.store[S].push(c):(this.memoizedKeySequences={},this.store[S]=[c]);this.totalEntries++;_.u("more_accurate_gel_parser")&&(c=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(c));return S};
OH.prototype.smartExtractMatchingEntries=function(S){if(!S.keys.length)return[];for(var c=YHH(this,S.keys.splice(0,1)[0]),Q=[],f=0;f<c.length;f++)this.store[c[f]]&&S.sizeLimit&&(this.store[c[f]].length<=S.sizeLimit?(Q.push.apply(Q,_.Hs(this.store[c[f]])),delete this.store[c[f]]):Q.push.apply(Q,_.Hs(this.store[c[f]].splice(0,S.sizeLimit))));this.totalEntries-=Q.length;(S==null?0:S.sizeLimit)&&Q.length<(S==null?void 0:S.sizeLimit)&&(S.sizeLimit-=Q.length,Q.push.apply(Q,_.Hs(this.smartExtractMatchingEntries(S))));
return Q};
OH.prototype.extractMatchingEntries=function(S){S=YHH(this,S);for(var c=[],Q=0;Q<S.length;Q++)this.store[S[Q]]&&(c.push.apply(c,_.Hs(this.store[S[Q]])),delete this.store[S[Q]]);this.totalEntries-=c.length;return c};
OH.prototype.getSequenceCount=function(S){S=YHH(this,S);for(var c=0,Q=0;Q<S.length;Q++){var f=void 0;c+=((f=this.store[S[Q]])==null?void 0:f.length)||0}return c};
var YHH=function(S,c){var Q=Jqc(c);if(S.memoizedKeySequences[Q])return S.memoizedKeySequences[Q];var f=Object.keys(S.store)||[];if(f.length<=1&&Jqc(c)===f[0])return f;for(var U=[],a=0;a<f.length;a++){var X=f[a].split("/");if(C5d(c.auth,X[0])){var z=c.isJspb;C5d(z===void 0?"undefined":z?"true":"false",X[1])&&C5d(c.cttAuthInfo,X[2])&&(z=c.tier,z=z===void 0?"undefined":JSON.stringify(z),C5d(z,X[3])&&U.push(f[a]))}}return S.memoizedKeySequences[Q]=U},C5d=function(S,c){return S===void 0||S==="undefined"?
!0:S===c};
OH.prototype.getSequenceCount=OH.prototype.getSequenceCount;OH.prototype.extractMatchingEntries=OH.prototype.extractMatchingEntries;OH.prototype.smartExtractMatchingEntries=OH.prototype.smartExtractMatchingEntries;OH.prototype.storePayload=OH.prototype.storePayload;var iUz,s1p,ZUp,IT,H1p,acH,J2T,w0z,TMH,$_R,M$c,yqZ,p0z;iUz=_.a6("initial_gel_batch_timeout",2E3);s1p=_.a6("gel_queue_timeout_max_ms",6E4);ZUp=_.a6("gel_min_batch_size",5);IT=void 0;H1p=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
acH=new H1p;J2T=new H1p;w0z=new H1p;TMH=new H1p;M$c=!0;yqZ=1;_.RfH=new Map;p0z=_.QY.ytLoggingTransportTokensToCttTargetIds_||{};_.m5("ytLoggingTransportTokensToCttTargetIds_",p0z);var D_T=_.QY.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.m5("ytLoggingTransportTokensToJspbCttTargetIds_",D_T);var BG={};var p1=_.QY.ytLoggingGelSequenceIdObj_||{};_.m5("ytLoggingGelSequenceIdObj_",p1);var zox=[];var lcp=new Set,nzz=0,DKY=0,HvZ=0,NHH=[],bvY=[],pIY=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var kvR=function(){};
kvR.prototype.getUrl=function(S,c){c=c===void 0?!1:c;return S.hasOwnProperty("shareEndpoint")?null:_.wIZ(S,null,c)};
var emp=function(S,c,Q){S={endpoint:c,actions:[]};Q=(Q.path?Q.path[0]:Q.target).icon||"";c=Q.indexOf(":");c>0&&(Q=Q.substr(c+1));Q&&S.actions.push(Q);return S};var WdZ=/Command$/,Gvx=/Endpoint$/,Mwo=new Map;var DPT,pGT;DPT=1;_.dQ=function(){this.actionRoutingMap=new Map};
_.dQ.prototype.triggerAction=function(S){var c=new BkT(S,!1,_.YD.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.dQ.prototype.triggerOptionalAction=function(S){var c=new BkT(S,!0,_.YD.apply(1,arguments));this.handleAction(c);return c.returnValue};
_.i4=function(S,c,Q){c.forEach(function(f){var U=Zvo(f);U&&S.triggerOptionalAction(U,f,Q,void 0)})};
_.dQ.prototype.handleAction=function(S){var c=this.actionRoutingMap.get(S.actionName);c&&pGT(S,c);S.optionalAction||S.returnValue.length!==0||(S=new _.Yr("Unhandled action",S.actionName),_.dC(S))};
pGT=function(S,c){c.forEach(function(Q){var f=null;Q?f=Q.apply(null,S.args):(Q=Error("id"),Q.params=S.actionName,_.eG(Q));S.returnValue.push(f)})};
_.vG=function(S,c,Q){Q||(Q=DPT++);for(var f=_.A(Object.keys(c)),U=f.next();!U.done;U=f.next()){U=U.value;var a=S.actionRoutingMap.get(U);a||(a=new Map,S.actionRoutingMap.set(U,a));S.registerActionHandler(Q,U,c[U],a)}return Q};
_.dQ.prototype.registerActionHandler=function(S,c,Q,f){f.set(S,_.kC(Q))};
_.PG=function(S,c,Q){c=_.A(Object.keys(c));for(var f=c.next();!f.done;f=c.next())(f=S.actionRoutingMap.get(f.value))&&f.delete(Q)};
_.ar(_.dQ);var vzM=function(S,c){var Q=_.dQ.getInstance();_.wC(function(){var f={},U=_.vG(Q,(f[S]=c,f));_.wX(function(){var a={};_.PG(Q,(a[S]="",a),U)})})};_.V1=Symbol("kd");mqY=sTz;var aLp=new Set(["For","If","Match","Watch"]),h0_={},qHT=(h0_[kv.default]=function(){return EMR},h0_.style=function(){return EMR},h0_),TQs;
for(TQs in qHT)_.Uj.attributes[TQs]=qHT[TQs](_.Uj.attributes[TQs]);var SR=new _.Sg("VISIBILITY_OBSERVER");var b4z={retrieve:function(S){return this.id.\u0275prov.token===S.\u0275prov.token?this.contextValue:this?Hbp(this,this.id):YpT}};var PIH=function(S,c,Q){if(S!==RT)return!1;S=S2z(document.createElement("div"),function(){var f=AS(!1);try{Q[0]()}finally{AS(f)}});
S=Array.from(S.childNodes);S.length===1&&(S=S[0]);return S};var wGT=function(S){S=S.clone();Qxs(S);ld(S,"dg",null);ld(S,"d","0");oxh(S,null);mfe(S,null);return S},sTJ=!0,Mez=function(S,c,Q){var f=Q===void 0?{}:Q;
Q=f.cssRowKey===void 0?void 0:f.cssRowKey;var U=f.combinedSignature===void 0?void 0:f.combinedSignature;var a=f.extraEdges===void 0?void 0:f.extraEdges;f=f.callback===void 0?void 0:f.callback;ld(S,"m",c.join(","));a&&ct_(S,a);Q&&(ld(S,"ck",Q),U?ld(S,"rs",U):sTJ&&(sTJ=!1));if(f){if(f!=null&&!Jtd.test(f))throw Error("bb`"+f);ld(S,"cb",f)}S=S.toString();_.UT(S,"/")&&(S=kJH(document.location.href)+S);return _.XK(S)};var Z1d=function(S){return i1$(S).then(function(c){return JSON.parse(c.responseText)})},i1$=function(S){var c={},Q=c.xmlHttpFactory?c.xmlHttpFactory.createInstance():uK$.createInstance();
return(new _.n1(function(f,U){var a;try{Q.open("GET",S,!0)}catch(x){U(new ZP("Error opening XHR: "+x.message,S,Q))}Q.onreadystatechange=function(){if(Q.readyState==4){_.QY.clearTimeout(a);var x;!(x=$gp(Q.status))&&(x=Q.status===0)&&(x=esd(S),x=!(x=="http"||x=="https"||x==""));x?f(Q):U(new Gel(Q.status,S,Q))}};
Q.onerror=function(){U(new ZP("Network error",S,Q))};
if(c.headers)for(var X in c.headers){var z=c.headers[X];z!=null&&Q.setRequestHeader(X,z)}c.withCredentials&&(Q.withCredentials=c.withCredentials);c.responseType&&(Q.responseType=c.responseType);c.mimeType&&Q.overrideMimeType(c.mimeType);c.timeoutMs>0&&(a=_.QY.setTimeout(function(){Q.onreadystatechange=function(){};
Q.abort();U(new WYh(S,Q))},c.timeoutMs));
try{Q.send(null)}catch(x){Q.onreadystatechange=function(){},_.QY.clearTimeout(a),U(new ZP("Error sending XHR: "+x.message,S,Q))}})).thenCatch(function(f){f instanceof _.EI&&Q.abort();
throw f;})},ZP=function(S,c,Q){_.Sx.call(this,S+", url="+c);
this.url=c;this.xhr=Q};
_.Xa(ZP,_.Sx);ZP.prototype.name="XhrError";var Gel=function(S,c,Q){ZP.call(this,"Request Failed, status="+S,c,Q);this.status=S};
_.Xa(Gel,ZP);Gel.prototype.name="XhrHttpError";var WYh=function(S,c){ZP.call(this,"Request timed out",S,c)};
_.Xa(WYh,ZP);WYh.prototype.name="XhrTimeoutError";JP=JP||{};var Gg=function(){_.C9.call(this)};
_.Xa(Gg,_.C9);Gg.prototype.initialize=function(){};var gL_=function(S,c){this.fn_=S;this.handler_=c};
gL_.prototype.execute=function(S){this.fn_&&(this.fn_.call(this.handler_||null,S),this.fn_=this.handler_=null)};
gL_.prototype.abort=function(){this.handler_=this.fn_=null};var W9=function(S,c){_.C9.call(this);this.deps_=S;this.JSC$8981_id_=c;this.onloadCallbacks_=[];this.JSC$8981_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.Xa(W9,_.C9);W9.prototype.moduleConstructor_=Gg;W9.prototype.module_=null;W9.prototype.getId=function(){return this.JSC$8981_id_};
W9.prototype.registerCallback=function(S,c){return e0p(this.onloadCallbacks_,S,c)};
var keu=function(S,c){e0p(S.JSC$8981_onErrorCallbacks_,c)},e0p=function(S,c,Q){c=new gL_(c,Q);
S.push(c);return c};
W9.prototype.isLoaded=function(){return!!this.module_};
W9.prototype.onLoad=function(S){var c=new this.moduleConstructor_;c.initialize(S());this.module_=c;c=(c=rcl(this.earlyOnloadCallbacks_,S()))||rcl(this.onloadCallbacks_,S());c||(this.JSC$8981_onErrorCallbacks_.length=0);return c};
W9.prototype.onError=function(S){(S=rcl(this.JSC$8981_onErrorCallbacks_,S))&&fz(Error("od`"+S));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var rcl=function(S,c){for(var Q=[],f=0;f<S.length;f++)try{S[f].execute(c)}catch(U){fz(U),Q.push(U)}S.length=0;return Q.length?Q:null};
W9.prototype.disposeInternal=function(){W9.superClass_.disposeInternal.call(this);_.yN(this.module_)};var dPu,Ved,ELh,te_,P5u,LYl,SPs,oLp,mPl;
_.eg=function(S,c,Q,f,U){f=f===void 0?!1:f;U=U===void 0?!1:U;var a=a===void 0?!0:a;this.scsReferenceUrl_=ECM(_.Oy(S).toString(),a);this.cssRowKey_=c;this.combinedSignature_=Q;this.useNegativeLoading_=f;this.requestedModuleMap_={};this.JSC$8984_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(S=jV(this.scsReferenceUrl_,"excm"))?S.split(","):[];this.shouldScanForCss_=U;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;tGz();this.logger=null;_.g3(this,Sjz(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
dPu=function(S,c){if(c.href||c.getAttribute("data-href"))if(c=c.href||c.getAttribute("data-href"),dRY(c)&&!ECM(c).urlPrefix_.endsWith("_/js/")){c=Sjz(ECM(c));c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,S.loadedCssModuleList_.includes(Q)||S.loadedCssModuleList_.push(Q)}};
_.eg.prototype.JSC$8986_loadModules=function(S,c,Q){var f=Q===void 0?{}:Q;Q=f.extraEdges;var U=f.onError;var a=f.onSuccess;f=f.forceReload;this.JSC$8984_moduleInfoMap_=c;if(!S)throw Error("pd");if(this.shouldScanForCss_){c=_.A(document.getElementsByTagName("style"));for(var X=c.next();!X.done;X=c.next())dPu(this,X.value);c=_.A(document.getElementsByTagName("link"));for(X=c.next();!X.done;X=c.next())dPu(this,X.value)}vLe(this,P5u(this,S),Q,U,a,f)};
var vLe=function(S,c,Q,f,U,a){f=f===void 0?function(){}:f;
U=U===void 0?function(){}:U;
a=a===void 0?!1:a;LYl(S,c,function(X,z,x){x=x===void 0?z:x;S.enableFallbackFetch&&a?S.loadWithFetch(X,z,f,U,x):S.load(X,z,f,U,x,Q)},Q)||f(-1)};
_.eg.prototype.loadWithFetch=function(){_.O(function(){throw Error("qd");})};
_.eg.prototype.maybeSetAdditionalFields=function(){};
Ved=function(S,c,Q){if(S.useNegativeLoading_){var f=S.scsReferenceUrl_;S={cssRowKey:S.cssRowKey_,combinedSignature:S.combinedSignature_,extraEdges:Q,requestedModuleIds:ELh(S),requestedCssModuleIds:te_(S)};var U=S===void 0?{}:S;S=U.requestedModuleIds===void 0?[]:U.requestedModuleIds;Q=U.requestedCssModuleIds===void 0?[]:U.requestedCssModuleIds;var a=U.cssRowKey===void 0?void 0:U.cssRowKey;var X=U.combinedSignature===void 0?void 0:U.combinedSignature;var z=U.extraEdges===void 0?void 0:U.extraEdges;
U=U.callback===void 0?void 0:U.callback;f=wGT(f);ld(f,"d","1");oxh(f,S);mfe(f,Q);c=Mez(f,c,{cssRowKey:a,combinedSignature:X,extraEdges:z,callback:U})}else f=S.scsReferenceUrl_,S={cssRowKey:S.cssRowKey_,combinedSignature:S.combinedSignature_,requestedModuleIds:ELh(S),requestedCssModuleIds:te_(S)},z=S===void 0?{}:S,S=z.requestedCssModuleIds===void 0?[]:z.requestedCssModuleIds,Q=z.cssRowKey===void 0?void 0:z.cssRowKey,a=z.combinedSignature===void 0?void 0:z.combinedSignature,X=z.extraEdges===void 0?
void 0:z.extraEdges,z=z.callback===void 0?void 0:z.callback,f=wGT(f),mfe(f,S),c=Mez(f,c,{cssRowKey:Q,combinedSignature:a,extraEdges:X,callback:z});return c};
_.g3=function(S,c){for(var Q=!1,f=[],U=0;U<c.length;++U){var a=c[U];S.requestedModuleMap_[a]||(S.requestedModuleMap_[a]=!0,S.requestedModuleList_.push(a),Q=!0,f.push(a))}Q&&(S.requestedModuleListSorted_=!1)};
_.ko=function(S,c){for(var Q=[],f=0;f<c.length;++f){var U=c[f];S.requestedModuleMap_[U]&&(delete S.requestedModuleMap_[U],_.tZ(S.requestedModuleList_,U),Q.push(U))}};
_.eg.prototype.load=function(S,c,Q,f,U){U=U===void 0?c:U;_.Oy(S);var a=this.useCors_,X=this.corsMode_,z=this.fetchPriority,x=_.Nf("SCRIPT");_.eS(x,S);a&&(x.crossOrigin=X);x.async=!1;z&&x.setAttribute("fetchpriority",z);_.g3(this,c);_.R0H(this,S,x,c,Q,f,U)};
_.R0H=function(S,c,Q,f,U,a,X){X=X===void 0?f:X;S.lastScript_=Q;S.insertPos.insertBefore(Q,S.insertPos.firstChild);_.ycl(Q,f,function(){Q.parentElement.removeChild(Q);S.lastScript_==Q&&(S.lastScript_=null);var z=new Set;f.map(function(I){return z.add(I)});
for(var x in S.JSC$8984_moduleInfoMap_)S.JSC$8984_moduleInfoMap_[x].isLoaded()&&z.add(x);Array.from(z);a()},function(z){Q.parentElement.removeChild(Q);
S.lastScript_==Q&&(S.lastScript_=null);_.ko(S,z);S.pendingModuleGraphUpdate_?S.pendingModuleGraphUpdate_.then(function(){U(-1,c)}):U(-1,c)},X)};
_.ycl=function(S,c,Q,f,U){U=U===void 0?c:U;var a=c.length,X=function(){a=0;S.onload=null;S.onerror=null;z=function(){}},z=function(){X();
var I=U.filter(function(n){return!wF().getModuleInfo(n).isLoaded()});
I.length!==0?f(I,"Response was successful but was missing module(s) "+I+"."):Q()},x=function(){a--;
a==0&&z()};
c.forEach(function(I){I=wF().getModuleInfo(I);I.isLoaded()?x():(e0p(I.earlyOnloadCallbacks_,x),keu(I,x))});
S.onload=function(){return z()};
S.onerror=function(){X();f(c)}};
ELh=function(S){S.requestedModuleListSorted_||(S.requestedModuleListSorted_=!0,S.requestedModuleList_.sort());return S.requestedModuleList_};
te_=function(S){S=S.loadedCssModuleList_;S.sort();return S};
P5u=function(S,c){return c.filter(function(Q){return!S.requestedModuleMap_[Q]})};
LYl=function(S,c,Q,f){if(S.pendingModuleGraphUpdate_)return S.pendingModuleGraphUpdate_.then(function(){LYl(S,c,Q,f)}),!0;
if(!S.useNegativeLoading_){var U=[],a=Object.assign({},S.requestedModuleMap_);oLp(S,c,function(n){U.push(n.getId())},f,function(n){return!n.isLoaded()},a);
c=U}for(a=0;a<c.length;){for(var X=c.length-a,z=a==0?c:c.slice(a,c.length),x=Ved(S,z,f),I=_.Oy(x).toString();I.length>S.urlMaxLength;)if(X>1)X-=Math.ceil((I.length-S.urlMaxLength)/6),X=Math.max(X,1),z=c.slice(a,a+X),x=Ved(S,z,f),I=_.Oy(x).toString();else return S.useNegativeLoading_?(S.useNegativeLoading_=!1,S.pendingModuleGraphUpdate_=mPl(S).then(function(n){SPs(S,n,f)}),LYl(S,c.slice(a),Q,f)):!1;
a+=X;S.useNegativeLoading_?Q(x,z):Q(x,z,a===c.length?c:[])}return!0};
SPs=function(S,c,Q){wF().setAllModuleInfoString((c||{}).moduleGraph);oLp(S,ELh(S),function(f){_.g3(S,[f.getId()])},Q);
S.pendingModuleGraphUpdate_=null};
oLp=function(S,c,Q,f,U,a){a=a===void 0?{}:a;var X=wF();c=_.A(c);for(var z=c.next();!z.done;z=c.next()){z=z.value;var x=X.getModuleInfo(z);if(!(a[z]||U&&!U(x))){a[z]=!0;var I=x.deps_||[];if(f){var n=[];f[z]&&(n=Object.keys(f[z]));I=I.concat(n)}oLp(S,I,Q,f,U,a);Q(x)}}};
mPl=function(S){S=S.scsReferenceUrl_.clone();Qxs(S);ld(S,"dg",null);ld(S,"md","1");return Z1d(S.toString())};var $oz=new Uint8Array(123);var cOd=[];var Qhd=function(){this.JSC$8090_loader_=null};
_.J=Qhd.prototype;_.J.setBatchModeEnabled=function(){};
_.J.setAllModuleInfoString=function(){};
_.J.addExtraEdge=function(){throw Error("rd");};
_.J.removeExtraEdge=function(){throw Error("sd");};
_.J.getModuleContext=function(){return null};
_.J.isActive=function(){return!1};
_.J.isUserActive=function(){return!1};
_.J.registerCallback=function(){};var r3=function(S,c,Q,f,U){var a=Error.call(this);this.message=a.message;"stack"in a&&(this.stack=a.stack);this.name="ModuleLoadFailure";this.type=S;this.status=c;this.requestedModuleIds=Q;this.url=f;this.cause=U;this.message=this.toString()};
_.C(r3,Error);r3.prototype.toString=function(){return fmu(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var fmu=function(S){switch(S.type){case r3.JSC$8996_Type.UNAUTHORIZED:return"Unauthorized";case r3.JSC$8996_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case r3.JSC$8996_Type.TIMEOUT:return"Timed out";case r3.JSC$8996_Type.OLD_CODE_GONE:return"Out of date module id";case r3.JSC$8996_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+S.type}};
JP.ModuleLoadFailure=r3;JP.ModuleLoadFailure.JSC$8996_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var d3=function(){this.moduleIds_=this.JSC$8090_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8999_extraEdges_={};this.JSC$8999_callbackMap_={};this.JSC$8999_currentlyLoadingModule_=this.baseModuleInfo_=new W9([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new En;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.Xa(d3,Qhd);var Umu=function(S,c){_.Sx.call(this,"Error loading "+S+": "+c)};
_.Xa(Umu,_.Sx);d3.prototype.setBatchModeEnabled=function(S){this.batchModeEnabled_=S};
d3.prototype.setAllModuleInfoString=function(S,c){if(!(this instanceof d3))this.setAllModuleInfoString(S,c);else if(typeof S==="string"){if(S.startsWith("d$")){S=S.substring(2);for(var Q=[],f=0,U=S.indexOf("/"),a=0,X=!1,z=0;;){var x=X?S.substring(a):S.substring(a,U);if(x.length===0)f++,a="sy"+f.toString(36),x=[];else{var I=x.indexOf(":");if(I<0)a=x,x=[];else if(I===x.length-1)a=x.substring(0,I),x=Array(Q[z-1]);else{a=x.substring(0,I);x=x.substring(I+1).split(",");I=z;for(var n=0;n<x.length;n++)I-=
x[n].length===0?1:Number(x[n]),x[n]=Q[I]}I=0;if(a.length===0)I=1;else if(a.charAt(0)==="+"||a.charAt(0)==="-")I=Number(a);I!==0&&(f+=I,a="sy"+f.toString(36))}Q.push(a);JOd(this,a,x);if(X)break;a=U+1;U=S.indexOf("/",a);U===-1&&(X=!0);z++}this.moduleIds_=Q}else if(S.startsWith("p$"))amd(this,S);else{S=S.split("/");Q=[];for(f=0;f<S.length;f++){z=S[f].split(":");U=z[0];X=[];if(z[1])for(X=z[1].split(","),z=0;z<X.length;z++)X[z]=Q[parseInt(X[z],36)];Q.push(U);JOd(this,U,X)}this.moduleIds_=Q}c&&c.length?
(_.oH(this.loadingModuleIds_,c),this.lastInitialModuleId_=_.Gz(c)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8999_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8999_currentlyLoadingModule_=null,(c=this.baseModuleInfo_.onLoad((0,_.H1)(this.getModuleContext,this)))&&c.length&&AOs(this,new JP.ModuleLoadFailure(JP.ModuleLoadFailure.JSC$8996_Type.INIT_ERROR,void 0,void 0,void 0,c[0])),v9(this))}};
var amd=function(S,c){var Q=c.substring(2);for(c=0;c<64;c++)$oz["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(c)]=c;var f={buf:Q,pos:0};f$(f);var U=f$(f),a=f$(f)+1;c=Array(U);var X=Array(U),z=Array(U);a=Array(a);var x=0,I=0,n=f.pos,b=f.buf.indexOf("|",f.pos);f.pos=b+1;for(b=0;b<U;b++){var N=f$(f),l=N&2,H=N&1;N>>>=2;H?(x+=N>>>1^-(N&1),N="sy"+x.toString(36)):(H=n,n+=N,N=Q.substring(H,n));c[b]=N;l&&(a[I++]=N)}a[I]="";f.pos++;I=U&-2;Q=U&1;for(x=0;x<I;x+=2)n=uiY(f),z[x]=
n&7,z[x+1]=n>>>3&7;Q&&(Q=uiY(f),z[I]=Q&7);f.pos++;for(I=0;I<U;I++)z[I]===7&&(z[I]=f$(f));f.pos++;for(Q=I=0;Q<U;Q++){x=z[Q];n=x===0?cOd:Array(x);X[Q]=n;b=I;for(l=0;l<x;l++)b-=f$(f),n[l]=a[b];a[I]===c[Q]&&I++}for(f=0;f<c.length;f++)JOd(S,c[f],X[f]);S.moduleIds_=c};
_.J=d3.prototype;_.J.getModuleInfo=function(S){return this.moduleInfoMap[S]};
_.J.addExtraEdge=function(S,c){var Q=this.getModuleInfo(S);Q&&Q.isLoaded()?this.load(c):(this.JSC$8999_extraEdges_[S]||(this.JSC$8999_extraEdges_[S]={}),this.JSC$8999_extraEdges_[S][c]=!0)};
_.J.removeExtraEdge=function(S,c){if(this.JSC$8999_extraEdges_[S]){delete this.JSC$8999_extraEdges_[S][c];for(var Q in this.JSC$8999_extraEdges_[S])return;delete this.JSC$8999_extraEdges_[S]}};
_.J.isActive=function(){return this.loadingModuleIds_.length>0};
_.J.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var v9=function(S){var c=S.lastActive_,Q=S.isActive();Q!=c&&(S.executeCallbacks_(Q?"active":"idle"),S.lastActive_=Q);c=S.isUserActive();c!=S.userLastActive_&&(S.executeCallbacks_(c?"userActive":"userIdle"),S.userLastActive_=c)},JOd=function(S,c,Q){S.moduleInfoMap[c]?(S=S.moduleInfoMap[c].deps_,S!=Q&&S.splice.apply(S,[0,
S.length].concat(_.Hs(Q)))):S.moduleInfoMap[c]=new W9(Q,c)},O$H=function(S,c,Q){var f=[];
fi(c,f);c=[];for(var U={},a=0;a<f.length;a++){var X=f[a],z=S.getModuleInfo(X);if(!z)throw Error("td`"+X);var x=new En;U[X]=x;z.isLoaded()?x.callback(null):(Xnp(S,X,z,!!Q,x),S.isModuleLoading(X)||c.push(X))}c.length>0&&(S.loadingModuleIds_.length===0?S.loadModules_(c):(S.requestedModuleIdsQueue_.push(c),v9(S)));return U},Xnp=function(S,c,Q,f,U){Q.registerCallback(U.callback,U);
keu(Q,function(a){U.errback(new Umu(c,a))});
S.isModuleLoading(c)?f&&(zbd(S,c),v9(S)):f&&zbd(S,c)};
d3.prototype.loadModules_=function(S,c,Q){var f=this;c||(this.consecutiveFailures_=0);var U=xml(this,S);this.loadingModuleIds_=U;this.requestedLoadingModuleIds_=this.batchModeEnabled_?S:_.VY(U);v9(this);if(U.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,U);if(Object.keys(this.JSC$8999_extraEdges_).length>0&&!this.JSC$8090_loader_.supportsExtraEdges)throw Error("ud");S=(0,_.H1)(this.JSC$8090_loader_.JSC$8986_loadModules,this.JSC$8090_loader_,_.VY(U),this.moduleInfoMap,{extraEdges:this.JSC$8999_extraEdges_,
forceReload:!!Q,onError:function(a,X){var z=f.requestedLoadingModuleIds_;a=a!=null?a:void 0;f.consecutiveFailures_++;var x=_.VY(U);f.requestedLoadingModuleIds_=z;U.forEach(_.u2(_.tZ,f.requestedModuleIds_),f);a==401?(AOs(f,new JP.ModuleLoadFailure(JP.ModuleLoadFailure.JSC$8996_Type.UNAUTHORIZED,a)),f.requestedModuleIdsQueue_.length=0):a==410?(FGu(f,new JP.ModuleLoadFailure(JP.ModuleLoadFailure.JSC$8996_Type.OLD_CODE_GONE,a)),BKp(f)):f.consecutiveFailures_>=3?(FGu(f,new JP.ModuleLoadFailure(JP.ModuleLoadFailure.JSC$8996_Type.CONSECUTIVE_FAILURES,
a,x,X)),BKp(f)):f.loadModules_(f.requestedLoadingModuleIds_,!0,a==8001||!1)},
onTimeout:(0,_.H1)(this.handleLoadTimeout_,this)});(c=Math.pow(this.consecutiveFailures_,2)*5E3)?_.QY.setTimeout(S,c):S()}};
var xml=function(S,c){c=c.filter(function(U){return S.moduleInfoMap[U].isLoaded()?(_.QY.setTimeout(function(){return Error("vd`"+U)},0),!1):!0});
for(var Q=[],f=0;f<c.length;f++)Q=Q.concat(ImH(S,c[f]));fi(Q);return!S.batchModeEnabled_&&Q.length>1?(c=Q.shift(),S.requestedModuleIdsQueue_=Q.map(function(U){return[U]}).concat(S.requestedModuleIdsQueue_),[c]):Q},ImH=function(S,c){var Q=_.Cn.createSet(S.requestedModuleIds_),f=[];
Q[c]||f.push(c);c=[c];for(var U=0;U<c.length;U++)for(var a=S.getModuleInfo(c[U]).deps_,X=a.length-1;X>=0;X--){var z=a[X];S.getModuleInfo(z).isLoaded()||Q[z]||(f.push(z),c.push(z))}f.reverse();fi(f);return f};
d3.prototype.JSC$8994_setLoaded=function(){if(this.JSC$8999_currentlyLoadingModule_){var S=this.JSC$8999_currentlyLoadingModule_.getId(),c=[];if(this.JSC$8999_extraEdges_[S]){for(var Q=_.A(Object.keys(this.JSC$8999_extraEdges_[S])),f=Q.next();!f.done;f=Q.next()){f=f.value;var U=this.getModuleInfo(f);U&&!U.isLoaded()&&(this.removeExtraEdge(S,f),c.push(f))}this.loadMultiple(c)}this.isDisposed()||((c=this.moduleInfoMap[S].onLoad((0,_.H1)(this.getModuleContext,this)))&&c.length&&AOs(this,new JP.ModuleLoadFailure(JP.ModuleLoadFailure.JSC$8996_Type.INIT_ERROR,
void 0,void 0,void 0,c[0])),_.tZ(this.userInitiatedLoadingModuleIds_,S),_.tZ(this.loadingModuleIds_,S),this.loadingModuleIds_.length===0&&BKp(this),this.lastInitialModuleId_&&S==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),v9(this),this.JSC$8999_currentlyLoadingModule_=null)}};
d3.prototype.isModuleLoading=function(S){if(_.dp(this.loadingModuleIds_,S))return!0;for(var c=0;c<this.requestedModuleIdsQueue_.length;c++)if(_.dp(this.requestedModuleIdsQueue_[c],S))return!0;return!1};
d3.prototype.load=function(S,c){return O$H(this,[S],c)[S]};
d3.prototype.loadMultiple=function(S){return O$H(this,S)};
var zbd=function(S,c){_.dp(S.userInitiatedLoadingModuleIds_,c)||S.userInitiatedLoadingModuleIds_.push(c)};
d3.prototype.beforeLoadModuleCode=function(S){var c=this;this.JSC$8999_currentlyLoadingModule_&&this.JSC$8999_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8994_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[S]&&nQd(this,this.moduleInfoMap[S].deps_||[],function(Q){Q.module_=new Gg;_.tZ(c.loadingModuleIds_,Q.getId())},function(Q){return!Q.isLoaded()});
this.JSC$8999_currentlyLoadingModule_=this.getModuleInfo(S)};
d3.prototype.handleLoadTimeout_=function(){FGu(this,new JP.ModuleLoadFailure(JP.ModuleLoadFailure.JSC$8996_Type.TIMEOUT));BKp(this)};
var FGu=function(S,c){S.requestedLoadingModuleIds_.length>1?S.requestedModuleIdsQueue_=S.requestedLoadingModuleIds_.map(function(Q){return[Q]}).concat(S.requestedModuleIdsQueue_):AOs(S,c)},AOs=function(S,c){var Q=S.requestedLoadingModuleIds_;
S.loadingModuleIds_.length=0;for(var f=[],U=0;U<S.requestedModuleIdsQueue_.length;U++){var a=S.requestedModuleIdsQueue_[U].filter(function(x){var I=ImH(this,x);return tB(Q,function(n){return _.dp(I,n)})},S);
_.oH(f,a)}for(U=0;U<Q.length;U++)_.Lz(f,Q[U]);for(U=0;U<f.length;U++){for(a=0;a<S.requestedModuleIdsQueue_.length;a++)_.tZ(S.requestedModuleIdsQueue_[a],f[U]);_.tZ(S.userInitiatedLoadingModuleIds_,f[U])}if(U=S.JSC$8999_callbackMap_.error)for(a=0;a<U.length;a++)for(var X=U[a],z=0;z<f.length;z++)X("error",f[z],c);for(f=0;f<Q.length;f++)if(S.moduleInfoMap[Q[f]])S.moduleInfoMap[Q[f]].onError(c);S.requestedLoadingModuleIds_.length=0;v9(S)},BKp=function(S){for(;S.requestedModuleIdsQueue_.length;){var c=
S.requestedModuleIdsQueue_.shift().filter(function(Q){return!this.getModuleInfo(Q).isLoaded()},S);
if(c.length>0){S.loadModules_(c);return}}v9(S)};
d3.prototype.registerCallback=function(S,c){Array.isArray(S)||(S=[S]);for(var Q=0;Q<S.length;Q++){var f=S[Q],U=c,a=this.JSC$8999_callbackMap_;a[f]||(a[f]=[]);a[f].push(U)}};
d3.prototype.executeCallbacks_=function(S){for(var c=this.JSC$8999_callbackMap_[S],Q=0;c&&Q<c.length;Q++)c[Q](S)};
var nQd=function(S,c,Q,f,U){f=f===void 0?function(){return!0}:f;
U=U===void 0?{}:U;c=_.A(c);for(var a=c.next();!a.done;a=c.next()){a=a.value;var X=S.getModuleInfo(a);!U[a]&&f(X)&&(U[a]=!0,nQd(S,X.deps_||[],Q,f,U),Q(X))}};
d3.prototype.dispose=function(){_.oq(_.Cn.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8999_callbackMap_={};this.isDisposed_=!0};
d3.prototype.isDisposed=function(){return this.isDisposed_};
_.Tk=function(){return new d3};var b$p=[5E3,2E4],NKu=function(){this.JSC$8090_loader_=null;this.JSC$9007_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$9007_queue_=[];this.JSC$9007_extraEdges_=Object.create(null);this.JSC$9007_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.C(NKu,Qhd);_.J=NKu.prototype;_.J.setAllModuleInfoString=function(){this.JSC$9007_currentlyLoadingModule_&&this.JSC$9007_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8994_setLoaded()};
_.J.getModuleInfo=function(S){var c=this.JSC$9007_moduleInfoMap_[S];c||(c=new W9([],S),this.JSC$9007_moduleInfoMap_[S]=c);return c};
_.J.addExtraEdge=function(S,c){this.getModuleInfo(S).isLoaded()?this.load(c):(this.JSC$9007_extraEdges_[S]||(this.JSC$9007_extraEdges_[S]={}),this.JSC$9007_extraEdges_[S][c]=!0)};
_.J.removeExtraEdge=function(S,c){if(this.JSC$9007_extraEdges_[S]){delete this.JSC$9007_extraEdges_[S][c];for(var Q in this.JSC$9007_extraEdges_[S])return;delete this.JSC$9007_extraEdges_[S]}};
_.J.isModuleLoading=function(S){return!!this.loadingModules_[S]};
_.J.load=function(S){KGi(this,[S]);return $mT(this,S)};
_.J.loadMultiple=function(S){var c=this,Q=Object.create(null),f=[];S.forEach(function(U){Q[U]||(Q[U]=$mT(c,U),f.push(U))});
KGi(this,f);return Q};
_.J.beforeLoadModuleCode=function(S){var c;((c=this.JSC$9007_currentlyLoadingModule_)==null?void 0:c.getId())==="synthetic_module_overhead"&&this.JSC$8994_setLoaded();var Q,f;umi(this,(f=(Q=this.JSC$9007_moduleInfoMap_[S])==null?void 0:Q.deps_)!=null?f:[],function(U){U.module_=new Gg},function(U){return!U.isLoaded()});
this.JSC$9007_currentlyLoadingModule_=this.getModuleInfo(S)};
_.J.JSC$8994_setLoaded=function(){if(this.JSC$9007_currentlyLoadingModule_){var S=this.JSC$9007_currentlyLoadingModule_.getId(),c=[];if(this.JSC$9007_extraEdges_[S]){for(var Q=_.A(Object.keys(this.JSC$9007_extraEdges_[S])),f=Q.next();!f.done;f=Q.next())f=f.value,this.getModuleInfo(f).isLoaded()||(this.removeExtraEdge(S,f),c.push(f));this.loadMultiple(c)}this.JSC$9007_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$9007_currentlyLoadingModule_=null;(!this.isModuleLoading(S)&&/^sy[0-9a-z]{0,4}$/.test(S)||S==="synthetic_module_overhead")&&delete this.JSC$9007_moduleInfoMap_[S];this.unsetModulesAsLoading(S)}};
_.J.setModulesAsLoading=function(){var S=this;_.YD.apply(0,arguments).forEach(function(c){S.loadingModules_[c]=!0})};
_.J.unsetModulesAsLoading=function(){var S=this;_.YD.apply(0,arguments).forEach(function(c){delete S.loadingModules_[c]})};
var $mT=function(S,c){return new _.n1(function(Q,f){var U=S.getModuleInfo(c);U.isLoaded()?Q(null):(U.registerCallback(function(){Q(null)}),keu(U,function(a){var X="Error loading "+c+": "+a;
a instanceof JP.ModuleLoadFailure&&a.url&&(X=X+", requested url: "+a.url.toString());f(Error(X))}))})},KGi=function(S,c){c=c.filter(function(Q){return!S.isModuleLoading(Q)&&!S.getModuleInfo(Q).isLoaded()});
c.length>0&&(S.setModulesAsLoading.apply(S,_.Hs(c)),S.JSC$9007_queue_.push(c),jhs(S))},jhs=function(S){for(var c={};S.activeLoads_<Infinity&&S.JSC$9007_queue_.length>0;c={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})c.ids$jscomp$36=S.JSC$9007_queue_.shift().filter(function(Q){return!S.getModuleInfo(Q).isLoaded()}),c.ids$jscomp$36.length>0&&(S.activeLoads_++,c.finishLoad=function(Q){return function(){S.activeLoads_--;
jhs(S);Q.finishLoad=function(){}}}(c),_.Dg(c.ids$jscomp$36.map(function(Q){return $mT(S,Q)})).then(function(Q){return function(){(0,Q.finishLoad)()}}(c)),c.attempt$jscomp$6=0,c.load$jscomp$1=function(Q){return function(){if(Object.keys(S.JSC$9007_extraEdges_).length>0&&!S.JSC$8090_loader_.supportsExtraEdges)throw Error("ud");
S.JSC$8090_loader_.JSC$8986_loadModules(Q.ids$jscomp$36,S.JSC$9007_moduleInfoMap_,{extraEdges:S.JSC$9007_extraEdges_,onError:function(f,U){var a=b$p[Q.attempt$jscomp$6++];a!==void 0?setTimeout(function(){(0,Q.load$jscomp$1)()},a):(S.unsetModulesAsLoading.apply(S,_.Hs(Q.ids$jscomp$36)),(0,Q.finishLoad)(),Q.ids$jscomp$36.forEach(function(X){X=S.getModuleInfo(X);
if(!X.isLoaded())X.onError(new JP.ModuleLoadFailure(JP.ModuleLoadFailure.JSC$8996_Type.CONSECUTIVE_FAILURES,f,Q.ids$jscomp$36,U))}))}})}}(c),(0,c.load$jscomp$1)())},umi=function(S,c,Q,f,U){f=f===void 0?function(){return!0}:f;
U=U===void 0?{}:U;c=_.A(c);for(var a=c.next();!a.done;a=c.next()){a=a.value;var X=S.getModuleInfo(a);!U[a]&&f(X)&&(U[a]=!0,umi(S,X.deps_||[],Q,f,U),Q(X))}};var lmz=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var lLo=Symbol("xd");window.JSCompiler_renameProperty=function(S){return S};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var YPs=!lmz||HTMLElement.es5Shimmed||_.QY.Reflect===void 0||_.QY.customElements===void 0||_.QY.customElements.polyfillWrapFlushCallback||!1,COd,v_Z=function(){var S=HTMLElement;if(YPs)return S;if(COd!==void 0)return COd;var c=_.QY.Reflect,Q=function(){return c.construct(S,[],this.constructor)};
Q.prototype=S.prototype;Q.prototype.constructor=Q;Q.es5Shimmed=!0;Object.setPrototypeOf(Q,S);return COd=Q},H$h=!1;YPs||H$h||(H$h=!0,_.QY.HTMLElement=v_Z());/*

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 p3R=/(url\()([^)]*)(\))/g,H4z=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,DoY,UP;var Zm=!window.ShadyDOM||!window.ShadyDOM.inUse,Dmp=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),pnu=!window.customElements.polyfillWrapFlushCallback,hbd;if(hbd=Zm&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var qPH=new CSSStyleSheet;qPH.replaceSync("");var TKd=document.createElement("div");TKd.attachShadow({mode:"open"});TKd.shadowRoot.adoptedStyleSheets=[qPH];hbd=TKd.shadowRoot.adoptedStyleSheets[0]===qPH}catch(S){hbd=!1}
var wnl=hbd,sh_=window.Polymer&&window.Polymer.rootPath||q2H(document.baseURI||window.location.href),K$=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,gaY=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,eR=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,MRi=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,iO=window.Polymer&&window.Polymer.legacyOptimizations||!1,gK=window.Polymer&&window.Polymer.legacyWarnings||!1,i$e=window.Polymer&&window.Polymer.syncInitialRender||
!1,uO=window.Polymer&&window.Polymer.legacyUndefined||!1,Z$$=window.Polymer&&window.Polymer.orderedComputed||!1,P9=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Lw=window.Polymer&&window.Polymer.fastDomIf||!1,EE=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,GLi=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,WG$=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var t1={},gQd={},lO=function(){return HTMLElement.apply(this,arguments)||this};
_.C(lO,HTMLElement);lO.import=function(S,c){return S?(S=t1[S]||gQd[S.toLowerCase()])&&c?S.querySelector(c):S:null};
lO.prototype.attributeChangedCallback=function(S,c,Q){c!==Q&&this.register()};
lO.prototype.register=function(S){if(S=S||this.id){if(eR&&(t1[S]||gQd[S.toLowerCase()])!==void 0)throw t1[S]=gQd[S.toLowerCase()]=null,Error("yd`"+S);this.id=S;t1[S]=gQd[S.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.Rh.Object.defineProperties(lO.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var S=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;S=_.JO(this.getAttribute("assetpath")||"",S.baseURI);this.__assetpath=q2H(S)}return this.__assetpath}}});
_.Rh.Object.defineProperties(lO,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
lO["import"]=lO.import;lO.prototype.modules=t1;customElements.define("dom-module",lO);var ebd=0,w3r=0,ah=[],kLp=0,TjH=!1,rOh=document.createTextNode(""),dmh,sP;(new window.MutationObserver(sZM)).observe(rOh,{characterData:!0});_.Vz={after:function(S){return{run:function(c){return window.setTimeout(c,S)},
cancel:function(c){window.clearTimeout(c)}}},
run:function(S,c){return window.setTimeout(S,c)},
cancel:function(S){window.clearTimeout(S)}};
_.Dc={run:function(S){return window.requestAnimationFrame(S)},
cancel:function(S){window.cancelAnimationFrame(S)}};
dmh={run:function(S){return window.requestIdleCallback?window.requestIdleCallback(S):window.setTimeout(S,16)},
cancel:function(S){window.cancelIdleCallback?window.cancelIdleCallback(S):window.clearTimeout(S)}};
sP={run:function(S){TjH||(TjH=!0,rOh.textContent=kLp++);ah.push(S);return ebd++},
cancel:function(S){var c=S-w3r;if(c>=0){if(!ah[c])throw Error("zd`"+S);ah[c]=null}}};var vQp=0,R8=function(S){var c=S.__mixinApplications;c||(c=new WeakMap,S.__mixinApplications=c);var Q=vQp++;return function(f){var U=f.__mixinSet;if(U&&U[Q])return f;var a=c,X=a.get(f);X||(X=S(f),a.set(f,X),f=Object.create(X.__mixinSet||U||null),f[Q]=!0,X.__mixinSet=f);return X}};_.Nm=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(S){return ShadyDOM.patch(S)}:function(S){return S};var POi=R8(function(S){var c=function(){var Q=S.call(this)||this;Q.__dataEnabled=!1;Q.__dataReady=!1;Q.__dataInvalid=!1;Q.__data={};Q.__dataPending=null;Q.__dataOld=null;Q.__dataInstanceProps=null;Q.__dataCounter=0;Q.__serializing=!1;Q._initializeProperties();return Q};
_.C(c,S);c.createProperties=function(Q){var f=this.prototype,U;for(U in Q)U in f||f._createPropertyAccessor(U)};
c.attributeNameForProperty=function(Q){return Q.toLowerCase()};
c.typeForProperty=function(){};
c.prototype._createPropertyAccessor=function(Q,f){this._addPropertyToAttributeMap(Q);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[Q]||(this.__dataHasAccessor[Q]=!0,this._definePropertyAccessor(Q,f))};
c.prototype._addPropertyToAttributeMap=function(Q){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var f=this.__dataAttributes[Q];f||(f=this.constructor.attributeNameForProperty(Q),this.__dataAttributes[f]=Q);return f};
c.prototype._definePropertyAccessor=function(Q,f){Object.defineProperty(this,Q,{get:function(){return this.__data[Q]},
set:f?function(){}:function(U){this._setPendingProperty(Q,U,!0)&&this._invalidateProperties()}})};
c.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
c.prototype._initializeProperties=function(){for(var Q in this.__dataHasAccessor)this.hasOwnProperty(Q)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[Q]=this[Q],delete this[Q])};
c.prototype._initializeInstanceProperties=function(Q){Object.assign(this,Q)};
c.prototype._setProperty=function(Q,f){this._setPendingProperty(Q,f)&&this._invalidateProperties()};
c.prototype._getProperty=function(Q){return this.__data[Q]};
c.prototype._setPendingProperty=function(Q,f){var U=this.__data[Q],a=this._shouldPropertyChange(Q,f,U);a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||Q in this.__dataOld||(this.__dataOld[Q]=U),this.__data[Q]=f,this.__dataPending[Q]=f);return a};
c.prototype._isPropertyPending=function(Q){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(Q))};
c.prototype._invalidateProperties=function(){var Q=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,sP.run(function(){Q.__dataInvalid&&(Q.__dataInvalid=!1,Q._flushProperties())}))};
c.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
c.prototype._flushProperties=function(){this.__dataCounter++;var Q=this.__data,f=this.__dataPending,U=this.__dataOld;this._shouldPropertiesChange(Q,f,U)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(Q,f,U));this.__dataCounter--};
c.prototype._shouldPropertiesChange=function(Q,f){return!!f};
c.prototype._propertiesChanged=function(){};
c.prototype._shouldPropertyChange=function(Q,f,U){return U!==f&&(U===U||f===f)};
c.prototype.attributeChangedCallback=function(Q,f,U,a){f!==U&&this._attributeToProperty(Q,U);S.prototype.attributeChangedCallback&&S.prototype.attributeChangedCallback.call(this,Q,f,U,a)};
c.prototype._attributeToProperty=function(Q,f,U){if(!this.__serializing){var a=this.__dataAttributes;Q=a&&a[Q]||Q;this[Q]=this._deserializeValue(f,U||this.constructor.typeForProperty(Q))}};
c.prototype._propertyToAttribute=function(Q,f,U){this.__serializing=!0;U=arguments.length<3?this[Q]:U;this._valueToNodeAttribute(this,U,f||this.constructor.attributeNameForProperty(Q));this.__serializing=!1};
c.prototype._valueToNodeAttribute=function(Q,f,U){f=this._serializeValue(f);if(U==="class"||U==="name"||U==="slot")Q=(0,_.Nm)(Q);f===void 0?Q.removeAttribute(U):Q.setAttribute(U,f===""&&window.trustedTypes?window.trustedTypes.emptyScript:f)};
c.prototype._serializeValue=function(Q){switch(typeof Q){case "boolean":return Q?"":void 0;default:return Q!=null?Q.toString():void 0}};
c.prototype._deserializeValue=function(Q,f){switch(f){case Boolean:return Q!==null;case Number:return Number(Q);default:return Q}};
return c});var LGT=0,MyM=[];var EQs=R8(function(S){function c(a){a=Object.getPrototypeOf(a);return a.prototype instanceof U?a:null}
function Q(a){if(!a.hasOwnProperty("__ownProperties")){var X=null;if(a.hasOwnProperty("properties")){var z=a.properties;if(z){X={};for(var x in z){var I=z[x];X[x]=typeof I==="function"?{type:I}:I}}}a.__ownProperties=X}return a.__ownProperties}
var f=POi(S),U=function(){return f.apply(this,arguments)||this};
_.C(U,f);U.finalize=function(){if(!this.hasOwnProperty("__finalized")){var a=c(this);a&&a.finalize();this.__finalized=!0;this._finalizeClass()}};
U._finalizeClass=function(){var a=Q(this);a&&this.createProperties(a)};
U.typeForProperty=function(a){return(a=this._properties[a])&&a.type};
U.prototype._initializeProperties=function(){LGT++;this.constructor.finalize();f.prototype._initializeProperties.call(this)};
U.prototype.connectedCallback=function(){f.prototype.connectedCallback&&f.prototype.connectedCallback.call(this);this._enableProperties()};
U.prototype.disconnectedCallback=function(){f.prototype.disconnectedCallback&&f.prototype.disconnectedCallback.call(this)};
_.Rh.Object.defineProperties(U,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var a=this;if(!this.hasOwnProperty("__observedAttributes")){i4x(this.prototype);var X=this._properties;this.__observedAttributes=X?Object.keys(X).map(function(z){return a.prototype._addPropertyToAttributeMap(z)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var a=c(this);this.__properties=Object.assign({},a&&a._properties,Q(this))}return this.__properties}}});
return U});var Z4M={},Gsx=/-[a-z]/g,WZR=/([A-Z])/g;for(var tRJ={},VRd=HTMLElement.prototype;VRd;){for(var Rbu=Object.getOwnPropertyNames(VRd),yO_=0;yO_<Rbu.length;yO_++)tRJ[Rbu[yO_]]=!0;VRd=Object.getPrototypeOf(VRd)}var oQl=window.trustedTypes?function(S){return trustedTypes.isHTML(S)||trustedTypes.isScript(S)||trustedTypes.isScriptURL(S)}:function(){return!1},mmz=R8(function(S){var c=POi(S);
S=function(){return c.apply(this,arguments)||this};
_.C(S,c);S.createPropertiesForAttributes=function(){for(var Q=this.observedAttributes,f=0;f<Q.length;f++)this.prototype._createPropertyAccessor(AO(Q[f]))};
S.attributeNameForProperty=function(Q){return Xm(Q)};
S.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);c.prototype._initializeProperties.call(this)};
S.prototype._initializeProtoProperties=function(Q){for(var f in Q)this._setProperty(f,Q[f])};
S.prototype._ensureAttribute=function(Q,f){this.hasAttribute(Q)||this._valueToNodeAttribute(this,f,Q)};
S.prototype._serializeValue=function(Q){switch(typeof Q){case "object":if(Q instanceof Date)return Q.toString();if(Q){if(oQl(Q))return Q;try{return JSON.stringify(Q)}catch(f){return""}}default:return c.prototype._serializeValue.call(this,Q)}};
S.prototype._deserializeValue=function(Q,f){switch(f){case Object:try{var U=JSON.parse(Q)}catch(a){U=Q}break;case Array:try{U=JSON.parse(Q)}catch(a){U=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+Q)}break;case Date:U=isNaN(Q)?String(Q):Number(Q);U=new Date(U);break;default:U=c.prototype._deserializeValue.call(this,Q,f)}return U};
S.prototype._definePropertyAccessor=function(Q,f){if(!tRJ[Q]){var U=this[Q];U!==void 0&&(this.__data?this._setPendingProperty(Q,U):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[Q]=U))}c.prototype._definePropertyAccessor.call(this,Q,f)};
S.prototype._hasAccessor=function(Q){return this.__dataHasAccessor&&this.__dataHasAccessor[Q]};
S.prototype._isPropertyPending=function(Q){return!!(this.__dataPending&&Q in this.__dataPending)};
return S});var SMe={"dom-if":!0,"dom-repeat":!0},cGs=!1,QYs=!1,fqd=function(){var S=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(c){return c}});
return function(c,Q,f){Q=Q.getAttribute(f);S&&f.startsWith("on-")?c.setAttribute(f,S.createScript(Q,f)):c.setAttribute(f,Q)}}(),UEd=R8(function(S){var c=function(){return S.apply(this,arguments)||this};
_.C(c,S);c._parseTemplate=function(Q,f){if(!Q._templateInfo){var U=Q._templateInfo={};U.nodeInfoList=[];U.nestedTemplate=!!f;U.stripWhiteSpace=f&&f.stripWhiteSpace||Q.hasAttribute&&Q.hasAttribute("strip-whitespace");this._parseTemplateContent(Q,U,{parent:null})}return Q._templateInfo};
c._parseTemplateContent=function(Q,f,U){return this._parseTemplateNode(Q.content,f,U)};
c._parseTemplateNode=function(Q,f,U){var a=!1;Q.localName!="template"||Q.hasAttribute("preserve-content")?Q.localName==="slot"&&(f.hasInsertionPoint=!0):a=this._parseTemplateNestedTemplate(Q,f,U)||a;if(!cGs){cGs=!0;var X=document.createElement("textarea");X.placeholder="a";QYs=X.placeholder===X.textContent}QYs&&Q.localName==="textarea"&&Q.placeholder&&Q.placeholder===Q.textContent&&(Q.textContent=null);Q.firstChild&&this._parseTemplateChildNodes(Q,f,U);Q.hasAttributes&&Q.hasAttributes()&&(a=this._parseTemplateNodeAttributes(Q,
f,U)||a);return a||U.noted};
c._parseTemplateChildNodes=function(Q,f,U){if(Q.localName!=="script"&&Q.localName!=="style")for(var a=Q.firstChild,X=0,z;a;a=z){if(a.localName=="template"){var x=a.getAttribute("is");if(x&&SMe[x])for(z=a,z.removeAttribute("is"),a=z.ownerDocument.createElement(x),z.parentNode.replaceChild(a,z),a.appendChild(z);z.attributes.length;)x=z.attributes[0].name,fqd(a,z,x),z.removeAttribute(x)}z=a.nextSibling;if(a.nodeType===Node.TEXT_NODE){for(x=z;x&&x.nodeType===Node.TEXT_NODE;)a.textContent+=x.textContent,
z=x.nextSibling,Q.removeChild(x),x=z;if(f.stripWhiteSpace&&!a.textContent.trim()){Q.removeChild(a);continue}}x={parentIndex:X,parentInfo:U};this._parseTemplateNode(a,f,x)&&(x.infoIndex=f.nodeInfoList.push(x)-1);a.parentNode&&X++}};
c._parseTemplateNestedTemplate=function(Q,f,U){f=this._parseTemplate(Q,f);(f.content=Q.content.ownerDocument.createDocumentFragment()).appendChild(Q.content);U.templateInfo=f;return!0};
c._parseTemplateNodeAttributes=function(Q,f,U){for(var a=!1,X=Array.from(Q.attributes),z=X.length-1,x;x=X[z];z--)a=this._parseTemplateNodeAttribute(Q,f,U,x.name,x.value)||a;return a};
c._parseTemplateNodeAttribute=function(Q,f,U,a,X){return a.slice(0,3)==="on-"?(Q.removeAttribute(a),U.events=U.events||[],U.events.push({name:a.slice(3),value:X}),!0):a==="id"?(U.id=X,!0):!1};
c._contentForTemplate=function(Q){var f=Q._templateInfo;return f&&f.content||Q.content};
c.prototype._stampTemplate=function(Q,f){Q&&!Q.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(Q);f=f||this.constructor._parseTemplate(Q);var U=f.nodeInfoList;Q=document.importNode(f.content||Q.content,!0);Q.__noInsertionPoint=!f.hasInsertionPoint;var a=Q.nodeList=Array(U.length);Q.$={};for(var X=0,z=U.length,x=void 0;X<z&&(x=U[X]);X++){var I=a[X]=gdz(Q,x);x.id&&(Q.$[x.id]=I);var n=I,b=x,N=f;b.templateInfo&&(n._templateInfo=b.templateInfo,n._parentTemplateInfo=
N);if(x.events&&x.events.length)for(n=0,b=x.events,N=void 0;n<b.length&&(N=b[n]);n++)this._addMethodEventListenerToNode(I,N.name,N.value,this)}return Q};
c.prototype._addMethodEventListenerToNode=function(Q,f,U,a){U=eDz(a||Q,U);this._addEventListenerToNode(Q,f,U);return U};
c.prototype._addEventListenerToNode=function(Q,f,U){Q.addEventListener(f,U)};
c.prototype._removeEventListenerFromNode=function(Q,f,U){Q.removeEventListener(f,U)};
return c});var n$=0,$Q=[],JGu={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},aql=/[A-Z]/,AGh=function(S,c,Q,f,U){var a=U?zL(S):S;if(c=c[a])for(a=0;a<c.length;a++){var X=c[a];if(X.info.lastRun!==n$&&(!U||LZz(S,X.trigger))){X.info.lastRun=n$;X=X.info;for(var z=Q,x=f,I=0,n=z.length-1,b=-1;I<=n;){var N=I+n>>1,l=x.get(z[N].methodInfo)-x.get(X.methodInfo);if(l<0)I=N+1;else if(l>0)n=N-1;else{b=N;break}}b<
0&&(b=n+1);z.splice(b,0,X)}}},A8x=[],Xdl=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"),o8=R8(function(S){var c=UEd(mmz(S));
S=function(){var Q=c.call(this)||this;Q.__isPropertyEffectsClient=!0;return Q};
_.C(S,c);S.prototype._initializeProperties=function(){c.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};
S.prototype._registerHost=function(){if(yz.length){var Q=yz[yz.length-1];Q._enqueueClient(this);this.__dataHost=Q}};
S.prototype._initializeProtoProperties=function(Q){this.__data=Object.create(Q);this.__dataPending=Object.create(Q);this.__dataOld={}};
S.prototype._initializeInstanceProperties=function(Q){var f=this.__readOnly,U;for(U in Q)f&&f[U]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[U]=this.__dataPending[U]=Q[U])};
S.prototype._addPropertyEffect=function(Q,f,U){this._createPropertyAccessor(Q,f=="__readOnly");var a=P8T(this,f,!0)[Q];a||(a=this[f][Q]=[]);a.push(U)};
S.prototype._removePropertyEffect=function(Q,f,U){Q=P8T(this,f,!0)[Q];U=Q.indexOf(U);U>=0&&Q.splice(U,1)};
S.prototype._hasPropertyEffect=function(Q,f){f=this[f];return!(!f||!f[Q])};
S.prototype._hasReadOnlyEffect=function(Q){return this._hasPropertyEffect(Q,"__readOnly")};
S.prototype._hasNotifyEffect=function(Q){return this._hasPropertyEffect(Q,"__notifyEffects")};
S.prototype._hasReflectEffect=function(Q){return this._hasPropertyEffect(Q,"__reflectEffects")};
S.prototype._hasComputedEffect=function(Q){return this._hasPropertyEffect(Q,"__computeEffects")};
S.prototype._setPendingPropertyOrPath=function(Q,f,U,a){if(a||zL(Array.isArray(Q)?Q[0]:Q)!==Q){if(!a&&(a=Ih(this,Q),Q=vdz(this,Q,f),!Q||!c.prototype._shouldPropertyChange.call(this,Q,f,a)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(Q,f,U)){if(U=this.__dataLinkedPaths)for(var X in U)a=U[X],xQ(X,Q)?(a=Fm(X,a,Q),this._setPendingPropertyOrPath(a,f,!0,!0)):xQ(a,Q)&&(a=Fm(a,X,Q),this._setPendingPropertyOrPath(a,f,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[Q])return this._setPendingProperty(Q,
f,U);this[Q]=f}return!1};
S.prototype._setUnmanagedPropertyToNode=function(Q,f,U){if(U!==Q[f]||typeof U=="object")f==="className"&&(Q=(0,_.Nm)(Q)),Q[f]=U};
S.prototype._setPendingProperty=function(Q,f,U){var a=this.__dataHasPaths&&OP(Q);if(this._shouldPropertyChange(Q,f,(a?this.__dataTemp:this.__data)[Q])){this.__dataPending||(this.__dataPending={},this.__dataOld={});Q in this.__dataOld||(this.__dataOld[Q]=this.__data[Q]);a?this.__dataTemp[Q]=f:this.__data[Q]=f;this.__dataPending[Q]=f;if(a||this.__notifyEffects&&this.__notifyEffects[Q])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[Q]=U;return!0}return!1};
S.prototype._setProperty=function(Q,f){this._setPendingProperty(Q,f,!0)&&this._invalidateProperties()};
S.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
S.prototype._enqueueClient=function(Q){this.__dataPendingClients=this.__dataPendingClients||[];Q!==this&&this.__dataPendingClients.push(Q)};
S.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
S.prototype.__enableOrFlushClients=function(){var Q=this.__dataPendingClients;if(Q){this.__dataPendingClients=null;for(var f=0;f<Q.length;f++){var U=Q[f];U.__dataEnabled?U.__dataPending&&U._flushProperties():U._enableProperties()}}};
S.prototype._readyClients=function(){this.__enableOrFlushClients()};
S.prototype.setProperties=function(Q,f){for(var U in Q)!f&&this.__readOnly&&this.__readOnly[U]||this._setPendingPropertyOrPath(U,Q[U],!0);this._invalidateProperties()};
S.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
S.prototype._propertiesChanged=function(Q,f,U){Q=this.__dataHasPaths;this.__dataHasPaths=!1;var a;if(a=this.__computeEffects)if(Z$$){n$++;var X=odc(this),z=[],x;for(x in f)AGh(x,a,z,X,Q);for(;x=z.shift();)SeZ(this,"",f,U,x)&&AGh(x.methodInfo,a,z,X,Q);Object.assign(U,this.__dataOld);Object.assign(f,this.__dataPending);this.__dataPending=null}else for(X=f;bO(this,a,X,U,Q);)Object.assign(U,this.__dataOld),Object.assign(f,this.__dataPending),X=this.__dataPending,this.__dataPending=null;a=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(f,U,Q);this._flushClients();bO(this,this.__reflectEffects,f,U,Q);bO(this,this.__observeEffects,f,U,Q);if(a){X=this.__notifyEffects;z=n$++;for(var I in a)if(a[I]){if(x=X){var n=X;x=z;var b=I,N=f,l=U,H=Q,q=!1,w=H?zL(b):b;if(n=n[w]){w=0;for(var g=n.length,r=void 0;w<g&&(r=n[w]);w++)r.info&&r.info.lastRun===x||H&&!LZz(b,r.trigger)||(r.info&&(r.info.lastRun=x),r.fn(this,b,N,l,r.info,H,void 0),q=!0)}x=q}if(x)var E=!0;else{if(x=Q)x=I,b=f,N=zL(x),N!==
x?(N=Xm(N)+"-changed",tyY(this,N,b[x],x),x=!0):x=!1;x&&(E=!0)}}var v;E&&(v=this.__dataHost)&&v._invalidateProperties&&v._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
S.prototype._propagatePropertyChanges=function(Q,f,U){this.__propagateEffects&&bO(this,this.__propagateEffects,Q,f,U);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,Q,f,U)};
S.prototype._runEffectsForTemplate=function(Q,f,U,a){var X=this,z=function(x,I){bO(X,Q.propertyEffects,x,U,I,Q.nodeList);for(var n=Q.firstChild;n;n=n.nextSibling)X._runEffectsForTemplate(n,x,U,I)};
Q.runEffects?Q.runEffects(z,f,a):z(f,a)};
S.prototype.linkPaths=function(Q,f){Q=Bn(Q);f=Bn(f);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[Q]=f};
S.prototype.unlinkPaths=function(Q){Q=Bn(Q);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[Q]};
S.prototype.notifySplices=function(Q,f){var U={path:""};Q=Ih(this,Q,U);xso(this,Q,U.path,f)};
S.prototype.get=function(Q,f){return Ih(f||this,Q)};
S.prototype.set=function(Q,f,U){U?vdz(U,Q,f):this.__readOnly&&this.__readOnly[Q]||this._setPendingPropertyOrPath(Q,f,!0)&&this._invalidateProperties()};
S.prototype.push=function(Q){var f=_.YD.apply(1,arguments),U={path:""},a=Ih(this,Q,U),X=a.length,z=a.push.apply(a,_.Hs(f));f.length&&jR(this,a,U.path,X,f.length,[]);return z};
S.prototype.pop=function(Q){var f={path:""};Q=Ih(this,Q,f);var U=!!Q.length,a=Q.pop();U&&jR(this,Q,f.path,Q.length,0,[a]);return a};
S.prototype.splice=function(Q,f,U){var a=_.YD.apply(3,arguments),X={path:""},z=Ih(this,Q,X);f<0?f=z.length-Math.floor(-f):f&&(f=Math.floor(f));var x=arguments.length===2?z.splice(f):z.splice.apply(z,[f,U].concat(_.Hs(a)));(a.length||x.length)&&jR(this,z,X.path,f,a.length,x);return x};
S.prototype.shift=function(Q){var f={path:""};Q=Ih(this,Q,f);var U=!!Q.length,a=Q.shift();U&&jR(this,Q,f.path,0,0,[a]);return a};
S.prototype.unshift=function(Q){var f=_.YD.apply(1,arguments),U={path:""},a=Ih(this,Q,U),X=a.unshift.apply(a,_.Hs(f));f.length&&jR(this,a,U.path,0,f.length,[]);return X};
S.prototype.notifyPath=function(Q,f){if(arguments.length==1){var U={path:""};f=Ih(this,Q,U);U=U.path}else U=Array.isArray(Q)?Bn(Q):Q;this._setPendingPropertyOrPath(U,f,!0,!0)&&this._invalidateProperties()};
S.prototype._createReadOnlyProperty=function(Q,f){this._addPropertyEffect(Q,"__readOnly");f&&(this["_set"+(Q[0].toUpperCase()+Q.substring(1))]=function(U){this._setProperty(Q,U)})};
S.prototype._createPropertyObserver=function(Q,f,U){var a={property:Q,method:f,dynamicFn:!!U};this._addPropertyEffect(Q,"__observeEffects",{fn:EdZ,info:a,trigger:{name:Q}});U&&this._addPropertyEffect(f,"__observeEffects",{fn:EdZ,info:a,trigger:{name:f}})};
S.prototype._createMethodObserver=function(Q,f){var U=OST(Q);if(!U)throw Error("Ad`"+Q);J8Y(this,U,"__observeEffects",moH,null,f)};
S.prototype._createNotifyingProperty=function(Q){this._addPropertyEffect(Q,"__notifyEffects",{fn:Vyx,info:{eventName:Xm(Q)+"-changed",property:Q}})};
S.prototype._createReflectedProperty=function(Q){var f=this.constructor.attributeNameForProperty(Q);f[0]==="-"?console.warn("Property "+Q+" cannot be reflected to attribute "+f+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(Q,"__reflectEffects",{fn:RDY,info:{attrName:f}})};
S.prototype._createComputedProperty=function(Q,f,U){var a=OST(f);if(!a)throw Error("Bd`"+f);f=J8Y(this,a,"__computeEffects",SeZ,Q,U);P8T(this,"__computeInfo")[Q]=f};
S.prototype._marshalArgs=function(Q,f,U){for(var a=this.__data,X=[],z=0,x=Q.length;z<x;z++){var I=Q[z],n=I.name,b=I.structured,N=I.wildcard,l=I.value;I.literal||(N?(I=xQ(n,f),b=zBz(a,U,I?f:n),l={path:I?f:n,value:b,base:I?Ih(a,n):b}):l=b?zBz(a,U,n):a[n]);if(uO&&!this._overrideLegacyUndefined&&l===void 0&&Q.length>1)return $Q;X[z]=l}return X};
S.addPropertyEffect=function(Q,f,U){this.prototype._addPropertyEffect(Q,f,U)};
S.createPropertyObserver=function(Q,f,U){this.prototype._createPropertyObserver(Q,f,U)};
S.createMethodObserver=function(Q,f){this.prototype._createMethodObserver(Q,f)};
S.createNotifyingProperty=function(Q){this.prototype._createNotifyingProperty(Q)};
S.createReadOnlyProperty=function(Q,f){this.prototype._createReadOnlyProperty(Q,f)};
S.createReflectedProperty=function(Q){this.prototype._createReflectedProperty(Q)};
S.createComputedProperty=function(Q,f,U){this.prototype._createComputedProperty(Q,f,U)};
S.bindTemplate=function(Q){return this.prototype._bindTemplate(Q)};
S.prototype._bindTemplate=function(Q,f){var U=this.constructor._parseTemplate(Q),a=this.__preBoundTemplateInfo==U;if(!a)for(var X in U.propertyEffects)this._createPropertyAccessor(X);f?(U=Object.create(U),U.wasPreBound=a,this.__templateInfo?(Q=Q._parentTemplateInfo||this.__templateInfo,f=Q.lastChild,U.parent=Q,Q.lastChild=U,(U.previousSibling=f)?f.nextSibling=U:Q.firstChild=U):this.__templateInfo=U):this.__preBoundTemplateInfo=U;return U};
S._addTemplatePropertyEffect=function(Q,f,U){(Q.hostProps=Q.hostProps||{})[f]=!0;Q=Q.propertyEffects=Q.propertyEffects||{};(Q[f]=Q[f]||[]).push(U)};
S.prototype._stampTemplate=function(Q,f){f=f||this._bindTemplate(Q,!0);yz.push(this);Q=c.prototype._stampTemplate.call(this,Q,f);yz.pop();f.nodeList=Q.nodeList;if(!f.wasPreBound)for(var U=f.childNodes=[],a=Q.firstChild;a;a=a.nextSibling)U.push(a);Q.templateInfo=f;U=f.nodeList;a=f.nodeInfoList;if(a.length)for(var X=0;X<a.length;X++){var z=U[X],x=a[X].bindings;if(x)for(var I=0;I<x.length;I++){var n=x[I],b=z,N=n;if(N.isCompound){for(var l=b.__dataCompoundStorage||(b.__dataCompoundStorage={}),H=N.parts,
q=Array(H.length),w=0;w<H.length;w++)q[w]=H[w].literal;H=N.target;l[H]=q;N.literal&&N.kind=="property"&&(H==="className"&&(b=(0,_.Nm)(b)),b[H]=N.literal)}Usp(z,this,n)}z.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(f,this.__data,null,!1),this._flushClients());return Q};
S.prototype._removeBoundDom=function(Q){Q=Q.templateInfo;var f=Q.previousSibling,U=Q.nextSibling,a=Q.parent;f?f.nextSibling=U:a&&(a.firstChild=U);U?U.previousSibling=f:a&&(a.lastChild=f);Q.nextSibling=Q.previousSibling=null;Q=Q.childNodes;for(f=0;f<Q.length;f++)U=Q[f],(0,_.Nm)((0,_.Nm)(U).parentNode).removeChild(U)};
S._parseTemplateNode=function(Q,f,U){var a=c._parseTemplateNode.call(this,Q,f,U);if(Q.nodeType===Node.TEXT_NODE){var X=this._parseBindings(Q.textContent,f);X&&(Q.textContent=aeo(X)||" ",fez(this,f,U,"text","textContent",X),a=!0)}return a};
S._parseTemplateNodeAttribute=function(Q,f,U,a,X){var z=this._parseBindings(X,f);if(z){X=a;var x="property";aql.test(a)?x="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),x="attribute");var I=aeo(z);I&&x=="attribute"&&(a=="class"&&Q.hasAttribute("class")&&(I+=" "+Q.getAttribute(a)),Q.setAttribute(a,I));x=="attribute"&&X=="disable-upgrade$"&&Q.setAttribute(a,"");Q.localName==="input"&&X==="value"&&Q.setAttribute(X,"");Q.removeAttribute(X);x==="property"&&(a=AO(a));fez(this,f,U,x,a,z,I);return!0}return c._parseTemplateNodeAttribute.call(this,
Q,f,U,a,X)};
S._parseTemplateNestedTemplate=function(Q,f,U){var a=c._parseTemplateNestedTemplate.call(this,Q,f,U),X=Q.parentNode,z=U.templateInfo,x=X.localName==="dom-if",I=X.localName==="dom-repeat";P9&&(x||I)&&(X.removeChild(Q),U=U.parentInfo,U.templateInfo=z,U.noted=!0,a=!1);Q=z.hostProps;if(Lw&&x)Q&&(f.hostProps=Object.assign(f.hostProps||{},Q),P9||(U.parentInfo.noted=!0));else for(var n in Q)fez(this,f,U,"property","_host_"+n,[{mode:"{",source:n,dependencies:[n],hostProp:!0}]);return a};
S._parseBindings=function(Q,f){for(var U=[],a=0,X;(X=Xdl.exec(Q))!==null;){X.index>a&&U.push({literal:Q.slice(a,X.index)});a=X[1][0];var z=!!X[2];X=X[3].trim();var x=!1,I="",n=-1;a=="{"&&(n=X.indexOf("::"))>0&&(I=X.substring(n+2),X=X.substring(0,n),x=!0);n=OST(X);var b=[];if(n){var N=n,l=N.args;N=N.methodName;for(var H=0;H<l.length;H++){var q=l[H];q.literal||b.push(q)}if((l=f.dynamicFns)&&l[N]||n.static)b.push(N),n.dynamicFn=!0}else b.push(X);U.push({source:X,mode:a,negate:z,customEvent:x,signature:n,
dependencies:b,event:I});a=Xdl.lastIndex}a&&a<Q.length&&(Q=Q.substring(a))&&U.push({literal:Q});return U.length?U:null};
S._evaluateBinding=function(Q,f,U,a,X,z){Q=f.signature?moH(Q,U,a,X,f.signature):U!=f.source?Ih(Q,f.source):z&&OP(U)?Ih(Q,U):Q.__data[U];f.negate&&(Q=!Q);return Q};
_.Rh.Object.defineProperties(S.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return JGu}}});
return S}),yz=[];var OPl=window.ShadyCSS&&window.ShadyCSS.cssBuild,mu=R8(function(S){function c(f,U,a,X){if(!OPl){for(var z=U.content.querySelectorAll("style"),x=naY(U),I=bSp(a),n=U.content.firstElementChild,b=0;b<I.length;b++){var N=I[b];N.textContent=f._processStyleText(N.textContent,X);U.content.insertBefore(N,n)}for(n=I=0;n<x.length;n++)b=x[n],N=z[I],N!==b?(b=b.cloneNode(!0),N.parentNode.insertBefore(b,N)):I++,b.textContent=f._processStyleText(b.textContent,X)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(U,
a);if(WG$&&OPl&&wnl&&(U=U.content.querySelectorAll("style"))){var l="";Array.from(U).forEach(function(H){l+=H.textContent;H.parentNode.removeChild(H)});
f._styleSheet=new CSSStyleSheet;f._styleSheet.replaceSync(l)}}
var Q=EQs(o8(S));S=function(){return Q.call(this)||this};
_.C(S,Q);S._finalizeClass=function(){Q._finalizeClass.call(this);var f;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(f=this.__ownObservers)&&this.createObservers(f,this._properties);this._prepareTemplate()};
S._prepareTemplate=function(){var f=this.template;f&&(typeof f==="string"?(console.error("template getter must return HTMLTemplateElement"),f=null):iO||(f=f.cloneNode(!0)));this.prototype._template=f};
S.createProperties=function(f){for(var U in f){var a=this.prototype,X=U,z=f[U],x=f;z.computed&&(z.readOnly=!0);z.computed&&(a._hasReadOnlyEffect(X)?console.warn("Cannot redefine computed property '"+X+"'."):a._createComputedProperty(X,z.computed,x));z.readOnly&&!a._hasReadOnlyEffect(X)?a._createReadOnlyProperty(X,!z.computed):z.readOnly===!1&&a._hasReadOnlyEffect(X)&&console.warn("Cannot make readOnly property '"+X+"' non-readOnly.");z.reflectToAttribute&&!a._hasReflectEffect(X)?a._createReflectedProperty(X):
z.reflectToAttribute===!1&&a._hasReflectEffect(X)&&console.warn("Cannot make reflected property '"+X+"' non-reflected.");z.notify&&!a._hasNotifyEffect(X)?a._createNotifyingProperty(X):z.notify===!1&&a._hasNotifyEffect(X)&&console.warn("Cannot make notify property '"+X+"' non-notify.");z.observer&&a._createPropertyObserver(X,z.observer,x[z.observer]);a._addPropertyToAttributeMap(X)}};
S.createObservers=function(f,U){for(var a=this.prototype,X=0;X<f.length;X++)a._createMethodObserver(f[X],U)};
S.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);Q.prototype._initializeProperties.call(this);this.rootPath=sh_;this.importPath=this.constructor.importPath;var f=this.constructor;if(!f.hasOwnProperty("__propertyDefaults")){f.__propertyDefaults=null;var U=f._properties,a;for(a in U){var X=U[a];"value"in X&&(f.__propertyDefaults=f.__propertyDefaults||{},f.__propertyDefaults[a]=X)}}if(f=f.__propertyDefaults)for(var z in f)U=f[z],
this._canApplyPropertyDefault(z)&&(U=typeof U.value=="function"?U.value.call(this):U.value,this._hasAccessor(z)?this._setPendingProperty(z,U,!0):this[z]=U)};
S.prototype._canApplyPropertyDefault=function(f){return!this.hasOwnProperty(f)};
S._processStyleText=function(f,U){return hDZ(f,U)};
S._finalizeTemplate=function(f){var U=this.prototype._template;if(U&&!U.__polymerFinalized){U.__polymerFinalized=!0;var a=this.importPath;a=a?_.JO(a):"";c(this,U,f,a);this.prototype._bindTemplate(U)}};
S.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);Q.prototype.connectedCallback.call(this)};
S.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);Q.prototype.ready.call(this)};
S.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));Q.prototype._readyClients.call(this)};
S.prototype._attachDom=function(f){var U=(0,_.Nm)(this);if(U.attachShadow)return f?(U.shadowRoot||(U.attachShadow({mode:"open",shadyUpgradeFragment:f}),U.shadowRoot.appendChild(f),this.constructor._styleSheet&&(U.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),i$e&&window.ShadyDOM&&window.ShadyDOM.flushInitial(U.shadowRoot),U.shadowRoot):null;throw Error("Dd");};
S.prototype.updateStyles=function(f){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,f)};
S.prototype.resolveUrl=function(f,U){!U&&this.importPath&&(U=_.JO(this.importPath));return _.JO(f,U)};
S._parseTemplateContent=function(f,U,a){U.dynamicFns=U.dynamicFns||this._properties;return Q._parseTemplateContent.call(this,f,U,a)};
S._addTemplatePropertyEffect=function(f,U,a){!gK||U in this._properties||a.info.part.signature&&a.info.part.signature.static||a.info.part.hostProp||f.nestedTemplate||console.warn("Property '"+U+"' used in template but not declared in 'properties'; attribute will not be observed.");return Q._addTemplatePropertyEffect.call(this,f,U,a)};
_.Rh.Object.defineProperties(S,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var f=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof f==="function"&&(f=f());if(f===void 0){if(f=this.hasOwnProperty("is")){f=this.is;var U=null;if(f&&(!eR||MRi)&&(U=lO.import(f,"template"),eR&&!U))throw Error("Cd`"+f);f=U}f=f||Object.getPrototypeOf(this.prototype).constructor.template}this._template=f}return this._template},
set:function(f){this._template=f}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var f=this.importMeta;f?this._importPath=q2H(f.url):this._importPath=(f=lO.import(this.is))&&f.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return S});var zz$=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(S){return S}}),YeZ=function(S,c){xEd(S,c);
this.value=c.reduce(function(Q,f,U){return Q+C9M(f)+S[U+1]},S[0]).toString()},xEd;
YeZ.prototype.toString=function(){return this.value};
_.F1d=function(S){var c=_.YD.apply(1,arguments);xEd(S,c);var Q=document.createElement("template");c=c.reduce(function(f,U,a){if(U instanceof HTMLTemplateElement)U=U.innerHTML;else if(U instanceof YeZ)U=C9M(U);else throw Error("Fd`"+U);return f+U+S[a+1]},S[0]);
zz$&&(c=zz$.createHTML(c));Q.innerHTML=c;return Q};
xEd=function(S,c){if(!Array.isArray(S)||!Array.isArray(S.raw)||c.length!==S.length-1)throw new TypeError("Gd");};var S5=mu(HTMLElement);var BNJ=R8(function(S){var c=mu(S);S=function(){var Q=c.call(this)||this;Q.__lastItems=null;Q.__lastMulti=null;Q.__selectedMap=null;return Q};
_.C(S,c);S.prototype.__updateSelection=function(Q,f){var U=f.path;U=="items"?(f=f.base||[],U=this.__lastItems,Q!==this.__lastMulti&&this.clearSelection(),U&&(U=lep(f,U),this.__applySplices(U)),this.__lastItems=f,this.__lastMulti=Q):f.path=="items.splices"?this.__applySplices(f.value.indexSplices):(Q=U.slice(6),f=parseInt(Q,10),Q.indexOf(".")<0&&Q==f&&this.__deselectChangedIdx(f))};
S.prototype.__applySplices=function(Q){for(var f=this,U=this.__selectedMap,a={},X=0;X<Q.length;a={s$jscomp$108:void 0},X++){a.s$jscomp$108=Q[X];U.forEach(function(n){return function(b,N){b<n.s$jscomp$108.index||(b>=n.s$jscomp$108.index+n.s$jscomp$108.removed.length?U.set(N,b+n.s$jscomp$108.addedCount-n.s$jscomp$108.removed.length):U.set(N,-1))}}(a));
for(var z=0;z<a.s$jscomp$108.addedCount;z++){var x=a.s$jscomp$108.index+z;U.has(this.items[x])&&U.set(this.items[x],x)}}this.__updateLinks();var I=0;U.forEach(function(n,b){n<0?(f.multi?f.splice("selected",I,1):f.selected=f.selectedItem=null,U.delete(b)):I++})};
S.prototype.__updateLinks=function(){var Q=this;this.__dataLinkedPaths={};if(this.multi){var f=0;this.__selectedMap.forEach(function(U){U>=0&&Q.linkPaths("items."+U,"selected."+f++)})}else this.__selectedMap.forEach(function(U){Q.linkPaths("selected","items."+U);
Q.linkPaths("selectedItem","items."+U)})};
S.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
S.prototype.isSelected=function(Q){return this.__selectedMap.has(Q)};
S.prototype.isIndexSelected=function(Q){return this.isSelected(this.items[Q])};
S.prototype.__deselectChangedIdx=function(Q){var f=this,U=this.__selectedIndexForItemIndex(Q);if(U>=0){var a=0;this.__selectedMap.forEach(function(X,z){U==a++&&f.deselect(z)})}};
S.prototype.__selectedIndexForItemIndex=function(Q){if(Q=this.__dataLinkedPaths["items."+Q])return parseInt(Q.slice(9),10)};
S.prototype.deselect=function(Q){var f=this.__selectedMap.get(Q);if(f>=0){this.__selectedMap.delete(Q);var U;this.multi&&(U=this.__selectedIndexForItemIndex(f));this.__updateLinks();this.multi?this.splice("selected",U,1):this.selected=this.selectedItem=null}};
S.prototype.deselectIndex=function(Q){this.deselect(this.items[Q])};
S.prototype.select=function(Q){this.selectIndex(this.items.indexOf(Q))};
S.prototype.selectIndex=function(Q){var f=this.items[Q];this.isSelected(f)?this.toggle&&this.deselectIndex(Q):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(f,Q),this.__updateLinks(),this.multi?this.push("selected",f):this.selected=this.selectedItem=f)};
_.Rh.Object.defineProperties(S,{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 S}),Iqd=BNJ(S5),cE=function(){return Iqd.apply(this,arguments)||this};
_.C(cE,Iqd);_.Rh.Object.defineProperties(cE,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(cE.is,cE);var nUd=window.Polymer;window.Polymer=function(S){return window.Polymer._polymerFn(S)};
nUd&&Object.assign(Polymer,nUd);Polymer._polymerFn=function(){throw Error("Hd");};/*

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:hDZ,resolveUrl:_.JO,pathFromUrl:q2H};Polymer.DomModule=lO;Polymer.Async={timeOut:_.Vz,animationFrame:_.Dc,idlePeriod:dmh,microTask:sP};Polymer.dedupingMixin=R8;Polymer.wrap=_.Nm;Polymer.PropertiesChanged=POi;Polymer.telemetry={instanceCount:LGT,incrementInstanceCount:function(){LGT++},
registrations:MyM,register:i4x,dumpRegistrations:function(){MyM.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=EQs;Polymer.CaseMap={dashToCamelCase:AO,camelToDashCase:Xm};Polymer.PropertyAccessors=mmz;Polymer.TemplateStamp=UEd;Polymer.Path={isPath:OP,root:zL,isAncestor:ksr,isDescendant:xQ,translate:Fm,matches:rax,normalize:Bn,split:doz,get:Ih,set:vdz,isDeep:OP};Polymer.Settings={useShadow:Zm,useNativeCSSProperties:Dmp,useNativeCustomElements:pnu,get rootPath(){return sh_},setRootPath:function(S){sh_=S},
get sanitizeDOMValue(){return K$},setSanitizeDOMValue:function(S){K$=S},
get passiveTouchGestures(){return gaY},setPassiveTouchGestures:function(S){gaY=S},
get strictTemplatePolicy(){return eR},setStrictTemplatePolicy:function(S){eR=S},
get allowTemplateFromDomModule(){return MRi},setAllowTemplateFromDomModule:function(S){MRi=S},
get legacyOptimizations(){return iO},setLegacyOptimizations:function(S){iO=S},
get syncInitialRender(){return i$e},setSyncInitialRender:function(S){i$e=S},
get legacyUndefined(){return uO},setLegacyUndefined:function(S){uO=S},
get legacyWarnings(){return gK},setLegacyWarnings:function(S){gK=S},
get orderedComputed(){return Z$$},setOrderedComputed:function(S){Z$$=S},
get fastDomIf(){return Lw},setFastDomIf:function(S){Lw=S},
get removeNestedTemplates(){return P9},setRemoveNestedTemplates:function(S){P9=S},
get suppressTemplateNotifications(){return EE},setSuppressTemplateNotifications:EE};Polymer.rootPath!==void 0&&(sh_=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(K$=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(gaY=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(eR=Polymer.strictTemplatePolicy);MRi=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(iO=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(i$e=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(uO=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(gK=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(Z$$=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(Lw=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(P9=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(EE=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return K$},
set:function(S){K$=S}});Polymer.PropertyEffects=o8;Polymer.StyleGather={stylesFromModules:IeT,stylesFromModule:BJz,stylesFromTemplate:naY,stylesFromModuleImports:bSp,cssFromModules:KwT,cssFromModule:NJZ,cssFromTemplate:$sH,cssFromModuleImports:function(S){return(S=lO.import(S))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(S):""}};Polymer.ElementMixin=mu;Polymer.updateStyles=function(S){window.ShadyCSS&&window.ShadyCSS.styleDocument(S)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:lep};Polymer.html=_.F1d;Polymer.htmlLiteral=function(S){return new YeZ(S,_.YD.apply(1,arguments))};Polymer.Element=S5;Polymer.ArraySelectorMixin=BNJ;Polymer.ArraySelector=cE;var bPe=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,NNd=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Jwr=/@media\s(.*)/;var qer=null,pKp=window.HTMLImports&&window.HTMLImports.whenReady||null,TJz;var K1z=null,Qh=null,fL=function(){this.customStyles=[];this.enqueued=!1;wKY(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},$Ei=function(S){!S.enqueued&&Qh&&(S.enqueued=!0,wKY(Qh))};
fL.prototype.addCustomStyle=function(S){S.__seenByShadyCSS||(S.__seenByShadyCSS=!0,this.customStyles.push(S),$Ei(this))};
fL.prototype.getStyleForCustomStyle=function(S){if(S.__shadyCSSCachedStyle)return S.__shadyCSSCachedStyle;var c;S.getStyle?c=S.getStyle():c=S;return c};
fL.prototype.processStyles=function(){for(var S=this.customStyles,c=0;c<S.length;c++){var Q=S[c];if(!Q.__shadyCSSCachedStyle){var f=this.getStyleForCustomStyle(Q);f&&(f=f.__appliedElement||f,K1z&&K1z(f),Q.__shadyCSSCachedStyle=f)}}return S};
fL.prototype.addCustomStyle=fL.prototype.addCustomStyle;fL.prototype.getStyleForCustomStyle=fL.prototype.getStyleForCustomStyle;fL.prototype.processStyles=fL.prototype.processStyles;Object.defineProperties(fL.prototype,{transformCallback:{get:function(){return K1z},
set:function(S){K1z=S}},
validateCallback:{get:function(){return Qh},
set:function(S){var c=!1;Qh||(c=!0);Qh=S;c&&$Ei(this)}}});var M9z=!(window.ShadyDOM&&window.ShadyDOM.inUse),sip,Vu;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Vu=window.ShadyCSS.cssBuild);var uuJ=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?sip=window.ShadyCSS.nativeCss:window.ShadyCSS?(iSZ(window.ShadyCSS),window.ShadyCSS=void 0):iSZ(window.WebComponents&&window.WebComponents.flags);var QKM=sip;var jYT=new fL;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(S,c){jYT.processStyles();HSH(S,c)},
styleElement:function(){jYT.processStyles()},
styleDocument:function(S){jYT.processStyles();HSH(document.body,S)},
getComputedStyleValue:function(S,c){return DsY(S,c)},
flushCustomStyles:function(){},
nativeCss:QKM,nativeShadow:M9z,cssBuild:Vu,disableRuntime:uuJ});window.ShadyCSS.CustomStyleInterface=jYT;var lqi=window.ShadyCSS.CustomStyleInterface,UW=function(){var S=HTMLElement.call(this)||this;S._style=null;lqi.addCustomStyle(S);return S};
_.C(UW,HTMLElement);UW.prototype.getStyle=function(){if(this._style)return this._style;var S=this.querySelector("style");if(!S)return null;this._style=S;var c=S.getAttribute("include");c&&(S.removeAttribute("include"),S.textContent=KwT(c)+S.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
UW.prototype.getStyle=UW.prototype.getStyle;window.customElements.define("custom-style",UW);Polymer.CustomStyle=UW;var Jk=function(){this._timer=this._callback=this._asyncModule=null},a0,Cxs;
Jk.prototype.setConfig=function(S,c){var Q=this;this._asyncModule=S;this._callback=c;this._timer=this._asyncModule.run(function(){Q._timer=null;a0.delete(Q);Q._callback()})};
Jk.prototype.cancel=function(){this.isActive()&&(YMu(this),a0.delete(this))};
var YMu=function(S){S.isActive()&&(S._asyncModule.cancel(S._timer),S._timer=null)};
Jk.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
Jk.prototype.isActive=function(){return this._timer!=null};
_.Ak=function(S,c,Q){S instanceof Jk?YMu(S):S=new Jk;S.setConfig(c,Q);return S};
a0=new Set;_.Xg=function(S){a0.add(S)};
Cxs=function(){var S=!!a0.size;a0.forEach(function(c){try{c.flush()}catch(Q){setTimeout(function(){throw Q;})}});
return S};var GIH=typeof document.head.style.touchAction==="string",ZSz=["mousedown","mousemove","mouseup","click"],Lwc=[0,1,4,2],HPJ;try{HPJ=(new MouseEvent("test",{buttons:1})).buttons===1}catch(S){HPJ=!1}var P9x=HPJ,WwZ=!1;(function(){try{var S=Object.defineProperty({},"passive",{get:function(){WwZ=!0}});
window.addEventListener("test",null,S);window.removeEventListener("test",null,S)}catch(c){}})();
var kIz=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),r8z=[],DEu={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},U$x={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},dsY=function(S){var c=S.sourceCapabilities;if(!c||c.firesTouchEvents)if(S.__polymerGesturesHandled={skip:!0},S.type==="click"){c=!1;for(var Q=RBz(S),f=0;f<Q.length;f++){if(Q[f].nodeType===Node.ELEMENT_NODE)if(Q[f].localName==="label")r8z.push(Q[f]);
else if(DEu[Q[f].localName]){var U=Q[f];var a=Array.prototype.slice.call(U.labels||[]);if(!a.length){a=[];try{var X=U.getRootNode();if(U.id){var z=X.querySelectorAll("label[for = '"+U.id+"']");for(U=0;U<z.length;U++)a.push(z[U])}}catch(x){}}for(U=0;U<a.length;U++)c=c||r8z.indexOf(a[U])>-1}if(Q[f]===pdd)return}c||(S.preventDefault(),S.stopPropagation())}},pdd=null,OW=null,oaz=0,msc=0,y8T=-1,SIc=!1;
document.addEventListener("touchend",function(S){OW||vaY(!0);pdd=RBz(S)[0];OW=_.Ak(OW,_.Vz.after(2500),function(){vaY();OW=pdd=null})},WwZ?{passive:!0}:!1);
var RBz=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(S){return S.composedPath&&S.composedPath()||[]},hO={},Dm=[];
cWY({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){Hn(this.info)},
mousedown:function(S){if(C$(S)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),Q=this;t9o(this.info,function(f){C$(f)||(Mm("up",c,f),Hn(Q.info))},function(f){C$(f)&&Mm("up",c,f);
Hn(Q.info)});
Mm("down",c,S)}},
touchstart:function(S){Mm("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),S.changedTouches[0],S)},
touchend:function(S){Mm("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),S.changedTouches[0],S)}});
cWY({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(S){this.moves.length>2&&this.moves.shift();this.moves.push(S)},
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;Hn(this.info)},
mousedown:function(S){if(C$(S)){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S),Q=this,f=function(U){var a=U.clientX,X=U.clientY;QCr(Q.info,a,X)&&(Q.info.state=Q.info.started?U.type==="mouseup"?"end":"track":"start",Q.info.state==="start"&&p$("tap"),Q.info.addMove({x:a,y:X}),C$(U)||(Q.info.state="end",Hn(Q.info)),c&&f6o(Q.info,c,U),Q.info.started=!0)};
t9o(this.info,f,function(U){Q.info.started&&f(U);Hn(Q.info)});
this.info.x=S.clientX;this.info.y=S.clientY}},
touchstart:function(S){S=S.changedTouches[0];this.info.x=S.clientX;this.info.y=S.clientY},
touchmove:function(S){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);S=S.changedTouches[0];var Q=S.clientX,f=S.clientY;QCr(this.info,Q,f)&&(this.info.state==="start"&&p$("tap"),this.info.addMove({x:Q,y:f}),f6o(this.info,c,S),this.info.state="track",this.info.started=!0)},
touchend:function(S){var c=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S);S=S.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:S.clientX,y:S.clientY}),f6o(this.info,c,S))}});
cWY({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(S){C$(S)&&(this.info.x=S.clientX,this.info.y=S.clientY)},
click:function(S){C$(S)&&JWr(this.info,S)},
touchstart:function(S){S=S.changedTouches[0];this.info.x=S.clientX;this.info.y=S.clientY},
touchend:function(S){JWr(this.info,S.changedTouches[0],S)}});var hzd=R8(function(S){var c=function(){return S.apply(this,arguments)||this};
_.C(c,S);c.prototype._addEventListenerToNode=function(Q,f,U){qm(Q,f,U)||S.prototype._addEventListenerToNode.call(this,Q,f,U)};
c.prototype._removeEventListenerFromNode=function(Q,f,U){TL(Q,f,U)||S.prototype._removeEventListenerFromNode.call(this,Q,f,U)};
return c});var zS=R8(function(S){var c=function(){return S.apply(this,arguments)||this};
_.C(c,S);c.prototype._shouldPropertyChange=function(Q,f,U){return a6T(this,Q,f,U,!0)};
return c}),qMs=R8(function(S){var c=function(){return S.apply(this,arguments)||this};
_.C(c,S);c.prototype._shouldPropertyChange=function(Q,f,U){return a6T(this,Q,f,U,this.mutableData)};
_.Rh.Object.defineProperties(c,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return c});
zS._mutablePropertyChange=a6T;var AWo=!1;var TNp=hzd(qMs(o8(HTMLElement))),xN=function(){var S=TNp.call(this)||this;if(eR)throw Error("Id");S.root=null;S.$=null;S.__children=null;return S};
_.C(xN,TNp);_.J=xN.prototype;_.J.attributeChangedCallback=function(){this.mutableData=!0};
_.J.connectedCallback=function(){XZM()||(this.style.display="none");this.render()};
_.J.disconnectedCallback=function(){this.__removeChildren()};
_.J.__insertChildren=function(){(0,_.Nm)((0,_.Nm)(this).parentNode).insertBefore(this.root,this)};
_.J.__removeChildren=function(){if(this.__children)for(var S=0;S<this.__children.length;S++)this.root.appendChild(this.__children[S])};
_.J.render=function(){var S=this;if(!this.__children){var c=c||this.querySelector("template");if(!c){var Q=new MutationObserver(function(){if(c=S.querySelector("template"))Q.disconnect(),S.render();else throw Error("Jd");});
Q.observe(this,{childList:!0});return}this.root=this._stampTemplate(c);this.$=this.root.$;this.__children=[];for(var f=this.root.firstChild;f;f=f.nextSibling)this.__children[this.__children.length]=f;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.Rh.Object.defineProperties(xN,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",xN);Polymer.Debouncer=Jk;Polymer.Gestures={gestures:hO,recognizers:Dm,deepTargetFind:V9Z,addListener:qm,removeListener:TL,register:cWY,setTouchAction:_.wK,prevent:p$,resetMouseCanceller:function(){OW&&OW.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:qm,remove:TL};Polymer.GestureEventListeners=hzd;Polymer.MutableData=zS;Polymer.OptionalMutableData=qMs;Polymer.DomBind=xN;_.Fg=function(){do{var S=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var c=Cxs()}while(S||c)};var ODM=null;znz.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:znz,writable:!0}});var KlZ=o8(znz),NDp=zS(KlZ),wdT=o8(function(){}),GL=function(S){var c=wdT.call(this)||this;
c._configureProperties(S);c.root=c._stampTemplate(c.__dataHost);var Q=[];c.children=Q;for(var f=c.root.firstChild;f;f=f.nextSibling)Q.push(f),f.__templatizeInstance=c;c.__templatizeOwner&&c.__templatizeOwner.__hideTemplateChildren__&&c._showHideChildren(!0);Q=c.__templatizeOptions;(S&&Q.instanceProps||!Q.instanceProps)&&c._enableProperties();return c};
_.C(GL,wdT);_.J=GL.prototype;_.J._configureProperties=function(S){if(this.__templatizeOptions.forwardHostProp)for(var c in this.__hostProps)this._setPendingProperty(c,this.__dataHost["_host_"+c]);for(var Q in S)this._setPendingProperty(Q,S[Q])};
_.J.forwardHostProp=function(S,c){this._setPendingPropertyOrPath(S,c,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.J._addEventListenerToNode=function(S,c,Q){var f=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(S,c,function(a){a.model=f;Q(a)});
else{var U=this.__dataHost.__dataHost;U&&U._addEventListenerToNode(S,c,Q)}};
_.J._showHideChildren=function(S){FlM(S,this.children)};
_.J._setUnmanagedPropertyToNode=function(S,c,Q){S.__hideTemplateChildren__&&S.nodeType==Node.TEXT_NODE&&c=="textContent"?S.__polymerTextContent__=Q:wdT.prototype._setUnmanagedPropertyToNode.call(this,S,c,Q)};
_.J.dispatchEvent=function(){return!0};
_.Rh.Object.defineProperties(GL.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var S=this.__parentModel;if(!S){var c;S=this;do S=S.__dataHost.__dataHost;while((c=S.__templatizeOptions)&&!c.parentModel);this.__parentModel=S}return S}}});
var I6c=zS(GL);var BE=function(){var S=S5.call(this)||this;S.__renderDebouncer=null;S._lastIf=!1;S.__hideTemplateChildren__=!1;return S};
_.C(BE,S5);_.J=BE.prototype;_.J.__debounceRender=function(){var S=this;this.__renderDebouncer=_.Ak(this.__renderDebouncer,sP,function(){return S.__render()});
_.Xg(this.__renderDebouncer)};
_.J.disconnectedCallback=function(){S5.prototype.disconnectedCallback.call(this);var S=(0,_.Nm)(this).parentNode;S&&(S.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.Nm)(S).host)||this.__teardownInstance()};
_.J.connectedCallback=function(){S5.prototype.connectedCallback.call(this);XZM()||(this.style.display="none");this.if&&this.__debounceRender()};
_.J.__ensureTemplate=function(){var S=this;if(!this.__template){var c=this._templateInfo?this:(0,_.Nm)(this).querySelector("template");if(!c){var Q=new MutationObserver(function(){if((0,_.Nm)(S).querySelector("template"))Q.disconnect(),S.__render();else throw Error("Md");});
Q.observe(this,{childList:!0});return!1}this.__template=c}return!0};
_.J.__ensureInstance=function(){var S=(0,_.Nm)(this).parentNode;if(this.__hasInstance()){var c=this.__getInstanceNodes();if(c&&c.length&&(0,_.Nm)(this).previousSibling!==c[c.length-1])for(var Q=0,f=void 0;Q<c.length&&(f=c[Q]);Q++)(0,_.Nm)(S).insertBefore(f,this)}else{if(!S||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(S)}return!0};
_.J.render=function(){_.Fg()};
_.J.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();EE&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.J.__hasInstance=function(){};
_.J.__getInstanceNodes=function(){};
_.J.__createAndInsertInstance=function(){};
_.J.__teardownInstance=function(){};
_.J._showHideChildren=function(){};
_.Rh.Object.defineProperties(BE,{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:BE.prototype.__debounceRender},restamp:{type:Boolean,observer:BE.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var sYz=function(){var S=BE.call(this)||this;S.__instance=null;S.__syncInfo=null;return S};
_.C(sYz,BE);_.J=sYz.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.J.__createAndInsertInstance=function(S){var c=this,Q=this.__dataHost||this;if(eR&&!this.__dataHost)throw Error("Kd");var f=Q._bindTemplate(this.__template,!0);f.runEffects=function(U,a,X){var z=c.__syncInfo;if(c.if)z&&(c.__syncInfo=null,c._showHideChildren(),a=Object.assign(z.changedProps,a)),U(a,X);else if(c.__instance)if(z||(z=c.__syncInfo={runEffects:U,changedProps:{}}),X)for(var x in a)U=zL(x),z.changedProps[U]=c.__dataHost[U];else Object.assign(z.changedProps,a)};
this.__instance=Q._stampTemplate(this.__template,f);(0,_.Nm)(S).insertBefore(this.__instance,this)};
_.J.__syncHostProperties=function(){var S=this.__syncInfo;S&&(this.__syncInfo=null,S.runEffects(S.changedProps,!1))};
_.J.__teardownInstance=function(){var S=this.__dataHost||this;this.__instance&&(S._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.J._showHideChildren=function(){var S=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==S&&(this.__instance.__hidden=S,FlM(S,this.__instance.templateInfo.childNodes));S||this.__syncHostProperties()};
var MBd=function(){var S=BE.call(this)||this;S.__ctor=null;S.__instance=null;S.__invalidProps=null;return S};
_.C(MBd,BE);_.J=MBd.prototype;_.J.__hasInstance=function(){return!!this.__instance};
_.J.__getInstanceNodes=function(){return this.__instance.children};
_.J.__createAndInsertInstance=function(S){this.__ctor||(this.__ctor=Wn(this.__template,this,{mutableData:!0,forwardHostProp:function(c,Q){this.__instance&&(this.if?this.__instance.forwardHostProp(c,Q):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[zL(c)]=!0))}}));
this.__instance=new this.__ctor;(0,_.Nm)(S).insertBefore(this.__instance.root,this)};
_.J.__teardownInstance=function(){if(this.__instance){var S=this.__instance.children;if(S&&S.length){var c=(0,_.Nm)(S[0]).parentNode;if(c){c=(0,_.Nm)(c);for(var Q=0,f=void 0;Q<S.length&&(f=S[Q]);Q++)c.removeChild(f)}}this.__instance=this.__invalidProps=null}};
_.J.__syncHostProperties=function(){var S=this.__invalidProps;if(S){this.__invalidProps=null;for(var c in S)this.__instance._setPendingProperty(c,this.__dataHost[c]);this.__instance._flushProperties()}};
_.J._showHideChildren=function(){var S=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==S&&(this.__instance.__hidden=S,this.__instance._showHideChildren(S));S||this.__syncHostProperties()};
_.hq=Lw?sYz:MBd;customElements.define(_.hq.is,_.hq);Polymer.enqueueDebouncer=_.Xg;Polymer.flush=_.Fg;Polymer.Templatize={templatize:Wn,modelForElement:CVc};Polymer.TemplateInstanceBase=GL;Polymer.DomIf=_.hq;var iPe=qMs(S5),pU=function(){var S=iPe.call(this)||this;S.__instances=[];S.__renderDebouncer=null;S.__itemsIdxToInstIdx={};S.__chunkCount=null;S.__renderStartTime=null;S.__itemsArrayChanged=!1;S.__shouldMeasureChunk=!1;S.__shouldContinueChunking=!1;S.__chunkingId=0;S.__sortFn=null;S.__filterFn=null;S.__observePaths=null;S.__ctor=null;S.__isDetached=!0;S.template=null;return S};
_.C(pU,iPe);_.J=pU.prototype;_.J.disconnectedCallback=function(){iPe.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var S=0;S<this.__instances.length;S++)this.__detachInstance(S);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.J.connectedCallback=function(){iPe.prototype.connectedCallback.call(this);XZM()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var S=(0,_.Nm)((0,_.Nm)(this).parentNode),c=0;c<this.__instances.length;c++)this.__attachInstance(c,S);this.__chunkingId&&this.__render()}};
_.J.__ensureTemplatized=function(){var S=this;if(!this.__ctor){var c=this.template=this._templateInfo?this:this.querySelector("template");if(!c){var Q=new MutationObserver(function(){if(S.querySelector("template"))Q.disconnect(),S.__render();else throw Error("Nd");});
Q.observe(this,{childList:!0});return!1}var f={};f[this.as]=!0;f[this.indexAs]=!0;f[this.itemsIndexAs]=!0;this.__ctor=Wn(c,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:f,forwardHostProp:function(U,a){for(var X=this.__instances,z=0,x=void 0;z<X.length&&(x=X[z]);z++)x.forwardHostProp(U,a)},
notifyInstanceProp:function(U,a,X){rax(this.as,a)&&(U=U[this.itemsIndexAs],a==this.as&&(this.items[U]=X),a=Fm(this.as,"items."+U,a),this.notifyPath(a,X))}})}return!0};
_.J.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.J.__functionFromPropertyValue=function(S){if(typeof S==="string"){var c=this.__getMethodHost();return function(){return c[S].apply(c,arguments)}}return S};
_.J.__sortChanged=function(S){this.__sortFn=this.__functionFromPropertyValue(S);this.items&&this.__debounceRender(this.__render)};
_.J.__filterChanged=function(S){this.__filterFn=this.__functionFromPropertyValue(S);this.items&&this.__debounceRender(this.__render)};
_.J.__computeFrameTime=function(S){return Math.ceil(1E3/S)};
_.J.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.J.__handleObservedPaths=function(S){if(this.__sortFn||this.__filterFn)if(!S)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var c=this.__observePaths,Q=0;Q<c.length;Q++)S.indexOf(c[Q])===0&&this.__debounceRender(this.__render,this.delay)};
_.J.__itemsChanged=function(S){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(S.path,S.value)||(S.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.J.__debounceRender=function(S,c){c=c===void 0?0:c;this.__renderDebouncer=_.Ak(this.__renderDebouncer,c>0?_.Vz.after(c):sP,S.bind(this));_.Xg(this.__renderDebouncer)};
_.J.render=function(){this.__debounceRender(this.__render);_.Fg()};
_.J.__render=function(){var S=this;if(this.__ensureTemplatized()){var c=this.items||[],Q=this.__sortAndFilterItems(c),f=this.__calculateLimit(Q.length);this.__updateInstances(c,f,Q);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){S.__chunkingId=null;S.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);EE&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.J.__sortAndFilterItems=function(S){for(var c=this,Q=Array(S.length),f=0;f<S.length;f++)Q[f]=f;this.__filterFn&&(Q=Q.filter(function(U,a,X){return c.__filterFn(S[U],a,X)}));
this.__sortFn&&Q.sort(function(U,a){return c.__sortFn(S[U],S[a])});
return Q};
_.J.__calculateLimit=function(S){var c=S,Q=this.__instances.length;if(this.initialCount){var f;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(c=Math.min(S,this.initialCount),this.__chunkCount=(f=Math.max(c-Q,0))||1):(f=Math.min(Math.max(S-Q,0),this.__chunkCount),c=Math.min(Q+f,S));this.__shouldMeasureChunk=f===this.__chunkCount;this.__shouldContinueChunking=c<S;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return c};
_.J.__continueChunking=function(){if(this.__shouldMeasureChunk){var S=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/S*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.J.__updateInstances=function(S,c,Q){var f=this.__itemsIdxToInstIdx={},U;for(U=0;U<c;U++){var a=this.__instances[U],X=Q[U],z=S[X];f[X]=U;a?(a._setPendingProperty(this.as,z),a._setPendingProperty(this.indexAs,U),a._setPendingProperty(this.itemsIndexAs,X),a._flushProperties()):this.__insertInstance(z,U,X)}for(S=this.__instances.length-1;S>=U;S--)this.__detachAndRemoveInstance(S)};
_.J.__detachInstance=function(S){S=this.__instances[S];for(var c=(0,_.Nm)(S.root),Q=0;Q<S.children.length;Q++)c.appendChild(S.children[Q]);return S};
_.J.__attachInstance=function(S,c){c.insertBefore(this.__instances[S].root,this)};
_.J.__detachAndRemoveInstance=function(S){this.__detachInstance(S);this.__instances.splice(S,1)};
_.J.__stampInstance=function(S,c,Q){var f={};f[this.as]=S;f[this.indexAs]=c;f[this.itemsIndexAs]=Q;return new this.__ctor(f)};
_.J.__insertInstance=function(S,c,Q){S=this.__stampInstance(S,c,Q);Q=(Q=this.__instances[c+1])?Q.children[0]:this;(0,_.Nm)((0,_.Nm)(this).parentNode).insertBefore(S.root,Q);return this.__instances[c]=S};
_.J._showHideChildren=function(S){for(var c=0;c<this.__instances.length;c++)this.__instances[c]._showHideChildren(S)};
_.J.__handleItemPath=function(S,c){var Q=S.slice(6),f=Q.indexOf(".");S=f<0?Q:Q.substring(0,f);if(S==parseInt(S,10)){Q=f<0?"":Q.substring(f+1);this.__handleObservedPaths(Q);if(S=this.__instances[this.__itemsIdxToInstIdx[S]])S._setPendingPropertyOrPath(this.as+(Q?"."+Q:""),c,!1,!0),S._flushProperties();return!0}};
_.J.itemForElement=function(S){return(S=this.modelForElement(S))&&S[this.as]};
_.J.indexForElement=function(S){return(S=this.modelForElement(S))&&S[this.indexAs]};
_.J.modelForElement=function(S){return CVc(this.template,S)};
_.Rh.Object.defineProperties(pU,{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:pU.prototype.__sortChanged},filter:{type:Function,observer:pU.prototype.__filterChanged},observe:{type:String,observer:pU.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!EE,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.*)"]}}});
pU.prototype._setRenderedItemCount=function(){};
customElements.define(pU.is,pU);Polymer.DomRepeat=pU;var ZPd=function(S,c){var Q=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=S;this.callback=c;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){Q._schedule()};
this.connect();this._schedule()},G$d=function(S){var c=(0,_.Nm)(S);
if(kQ(S))return c.assignedNodes({flatten:!0});S=[];for(var Q=0;Q<c.childNodes.length;Q++){var f=c.childNodes[Q];kQ(f)?S.push.apply(S,_.Hs((0,_.Nm)(f).assignedNodes({flatten:!0}))):S.push(f)}return S};
_.J=ZPd.prototype;_.J.connect=function(){var S=this;kQ(this._target)?this._listenSlots([this._target]):(0,_.Nm)(this._target).children&&(this._listenSlots((0,_.Nm)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(c){S._processMutations(c)}):(this._nativeChildrenObserver=new MutationObserver(function(c){S._processMutations(c)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.J.disconnect=function(){kQ(this._target)?this._unlistenSlots([this._target]):(0,_.Nm)(this._target).children&&(this._unlistenSlots((0,_.Nm)(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};
_.J._schedule=function(){var S=this;this._scheduled||(this._scheduled=!0,sP.run(function(){return S.flush()}))};
_.J._processMutations=function(S){this._processSlotMutations(S);this.flush()};
_.J._processSlotMutations=function(S){if(S)for(var c=0;c<S.length;c++){var Q=S[c];Q.addedNodes&&this._listenSlots(Q.addedNodes);Q.removedNodes&&this._unlistenSlots(Q.removedNodes)}};
_.J.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 S={target:this._target,addedNodes:[],removedNodes:[]},c=G$d(this._target),Q=lep(c,this._effectiveNodes),f=0,U=void 0;f<Q.length&&(U=Q[f]);f++)for(var a=0,X=void 0;a<U.removed.length&&(X=U.removed[a]);a++)S.removedNodes.push(X);
f=0;for(U=void 0;f<Q.length&&(U=Q[f]);f++)for(a=U.index;a<U.index+U.addedCount;a++)S.addedNodes.push(c[a]);this._effectiveNodes=c;c=!1;if(S.addedNodes.length||S.removedNodes.length)c=!0,this.callback.call(this._target,S);return c};
_.J._listenSlots=function(S){for(var c=0;c<S.length;c++){var Q=S[c];kQ(Q)&&Q.addEventListener("slotchange",this._boundSchedule)}};
_.J._unlistenSlots=function(S){for(var c=0;c<S.length;c++){var Q=S[c];kQ(Q)&&Q.removeEventListener("slotchange",this._boundSchedule)}};var I0=Element.prototype,W1$=I0.matches||I0.matchesSelector||I0.mozMatchesSelector||I0.msMatchesSelector||I0.oMatchesSelector||I0.webkitMatchesSelector,gUd=function(S,c){return W1$.call(S,c)},rK=function(S){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(S);
this.node=S},dEl;
_.J=rK.prototype;_.J.observeNodes=function(S){return new ZPd(this.node,S)};
_.J.unobserveNodes=function(S){S.disconnect()};
_.J.notifyObserver=function(){};
_.J.deepContains=function(S){if((0,_.Nm)(this.node).contains(S))return!0;var c=S;for(S=S.ownerDocument;c&&c!==S&&c!==this.node;)c=(0,_.Nm)(c).parentNode||(0,_.Nm)(c).host;return c===this.node};
_.J.getOwnerRoot=function(){return(0,_.Nm)(this.node).getRootNode()};
_.J.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.Nm)(this.node).assignedNodes({flatten:!0}):[]};
_.J.getDestinationInsertionPoints=function(){for(var S=[],c=(0,_.Nm)(this.node).assignedSlot;c;)S.push(c),c=(0,_.Nm)(c).assignedSlot;return S};
_.J.importNode=function(S,c){return(0,_.Nm)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(S,c)};
_.J.getEffectiveChildNodes=function(){return G$d(this.node)};
_.J.queryDistributedElements=function(S){for(var c=this.getEffectiveChildNodes(),Q=[],f=0,U=c.length,a=void 0;f<U&&(a=c[f]);f++)a.nodeType===Node.ELEMENT_NODE&&gUd(a,S)&&Q.push(a);return Q};
_.Rh.Object.defineProperties(rK.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var S=this.node;return S._activeElement!==void 0?S._activeElement:S.activeElement}}});
var nL=function(S){this.event=S};
_.Rh.Object.defineProperties(nL.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 ezd=rK;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var k$J=window.ShadyDOM.Wrapper,rGl=function(){return k$J.apply(this,arguments)||this};
_.C(rGl,k$J);Object.getOwnPropertyNames(rK.prototype).forEach(function(S){S!="activeElement"&&S!="constructor"&&(rGl.prototype[S]=rK.prototype[S])});
D$p(rGl.prototype,["classList"]);ezd=rGl;Object.defineProperties(nL.prototype,{localTarget:{get:function(){var S=this.event.currentTarget;S=S&&_.YU(S).getOwnerRoot();for(var c=this.path,Q=0;Q<c.length;Q++){var f=c[Q];if(_.YU(f).getOwnerRoot()===S)return f}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else HDo(),D$p(rK.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),pZT();dEl=ezd;_.YU=function(S){S=S||document;if(S instanceof ezd)return S;if(S instanceof nL)return S;var c=S.__domApi;c||(S instanceof Event?c=new nL(S):c=new ezd(S),S.__domApi=c);return c};var vUT=/:host\(:dir\((ltr|rtl)\)\)/g,Pxe=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,L1J=/:dir\((?:ltr|rtl)\)/,EUe=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Pn=[],bK=null,vn="",tBd=R8(function(S){EUe||bK||(vn=document.documentElement.getAttribute("dir"),bK=new MutationObserver(hnx),bK.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var c=mmz(S);S=function(){var Q=c.call(this)||this;Q.__autoDirOptOut=!1;return Q};
_.C(S,c);S._processStyleText=function(Q,f){Q=c._processStyleText.call(this,Q,f);!EUe&&L1J.test(Q)&&(Q=this._replaceDirInCssText(Q),this.__activateDir=!0);return Q};
S._replaceDirInCssText=function(Q){Q=Q.replace(vUT,':host([dir="$1"])');return Q=Q.replace(Pxe,':host([dir="$2"]) $1')};
S.prototype.ready=function(){c.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
S.prototype.connectedCallback=function(){c.prototype.connectedCallback&&c.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(bK&&bK.takeRecords().length&&hnx(),Pn.push(this),this.__autoDirOptOut||this.setAttribute("dir",vn))};
S.prototype.disconnectedCallback=function(){c.prototype.disconnectedCallback&&c.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var Q=Pn.indexOf(this);Q>-1&&Pn.splice(Q,1)}};
S.__activateDir=!1;return S});var VBd=function(S){for(;S;){var c=Object.getOwnPropertyDescriptor(S,"observedAttributes");if(c)return c.get;S=Object.getPrototypeOf(S.prototype).constructor}return function(){return[]}};
R8(function(S){var c=mu(S),Q=VBd(c);S=function(){return c.call(this)||this};
_.C(S,c);S.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:c.prototype._initializeProperties.call(this)};
S.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
S.prototype._canApplyPropertyDefault=function(f){return c.prototype._canApplyPropertyDefault.call(this,f)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(f))};
S.prototype.attributeChangedCallback=function(f,U,a,X){f=="disable-upgrade"?this.__isUpgradeDisabled&&a==null&&(c.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.Nm)(this).isConnected&&c.prototype.connectedCallback.call(this)):c.prototype.attributeChangedCallback.call(this,f,U,a,X)};
S.prototype.connectedCallback=function(){this.__isUpgradeDisabled||c.prototype.connectedCallback.call(this)};
S.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||c.prototype.disconnectedCallback.call(this)};
_.Rh.Object.defineProperties(S,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return Q.call(this).concat("disable-upgrade")}}});
return S});var L$=!1,TDZ=[],EP=[];var iDp=window.ShadyDOM,ZDR=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",Wlz):document.readyState==="interactive"||document.readyState==="complete"?Wlz():window.addEventListener("DOMContentLoaded",Wlz);var kwT=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=""},guH=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,enZ=/@import[^;]*;/gim,Euz=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,t0p=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,V0x=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,RnZ=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,PVT=/^@[^\s]*keyframes/,
vuR=/\s+/g;var yWR={};var S9z=Promise.resolve();var Rzd=new Set;var yGp=/;\s*/m,oUd=/^\s*(initial)|(inherit)\s*$/,mEd=/\s*!important/,Szs=function(){this._map={}};
Szs.prototype.set=function(S,c){S=S.trim();this._map[S]={properties:c,dependants:{}}};
Szs.prototype.get=function(S){S=S.trim();return this._map[S]||null};
var czu=null,NY=function(){this._measureElement=this._currentElement=null;this._map=new Szs};
_.J=NY.prototype;_.J.detectMixin=function(S){S=NNd.test(S)||bPe.test(S);NNd.lastIndex=0;bPe.lastIndex=0;return S};
_.J.transformTemplate=function(S,c){if(S._gatheredStyle===void 0){var Q=[];for(var f=S.content.querySelectorAll("style"),U=0;U<f.length;U++){var a=f[U];if(a.hasAttribute("shady-unscoped")){if(!M9z){var X=a.textContent;if(!Rzd.has(X)){Rzd.add(X);var z=document.createElement("style");z.setAttribute("shady-unscoped","");z.textContent=X;document.head.appendChild(z)}a.parentNode.removeChild(a)}}else Q.push(a.textContent),a.parentNode.removeChild(a)}(Q=Q.join("").trim())?(f=document.createElement("style"),
f.textContent=Q,S.content.insertBefore(f,S.content.firstChild),Q=f):Q=null;S._gatheredStyle=Q}return(S=S._gatheredStyle)?this.JSC$9217_transformStyle(S,c):null};
_.J.JSC$9217_transformStyle=function(S,c){c=c===void 0?"":c;var Q=U7p(S);this.transformRules(Q,c);S.textContent=fvZ(Q);return Q};
_.J.transformCustomStyle=function(S){var c=this,Q=U7p(S);avc(Q,function(f){f.selector===":root"&&(f.selector="html");c.transformRule(f)});
S.textContent=fvZ(Q);return Q};
_.J.transformRules=function(S,c){var Q=this;this._currentElement=c;avc(S,function(f){Q.transformRule(f)});
this._currentElement=null};
_.J.transformRule=function(S){S.cssText=QIe(this,S.parsedCssText,S);S.selector===":root"&&(S.selector=":host > *")};
var QIe=function(S,c,Q){c=c.replace(bPe,function(f,U,a,X){return S._produceCssProperties(f,U,a,X,Q)});
return S._consumeCssProperties(c,Q)};
_.J=NY.prototype;_.J._getInitialValueForProperty=function(S){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(S)};
_.J._fallbacksFromPreviousRules=function(S){for(var c=this,Q=S;Q.parent;)Q=Q.parent;var f={},U=!1;avc(Q,function(a){(U=U||a===S)||a.selector===S.selector&&Object.assign(f,c._cssTextToMap(a.parsedCssText))});
return f};
_.J._consumeCssProperties=function(S,c){for(var Q;Q=NNd.exec(S);){var f=Q[0],U=Q[1];Q=Q.index;var a=Q+f.indexOf("@apply"),X=Q+f.length;f=S.slice(0,a);S=S.slice(X);a=c?this._fallbacksFromPreviousRules(c):{};Object.assign(a,this._cssTextToMap(f));U=this._atApplyToCssProperties(U,a);S=f+U+S;NNd.lastIndex=Q+U.length}return S};
_.J._atApplyToCssProperties=function(S,c){S=S.replace(yGp,"");var Q=[],f=this._map.get(S);f||(this._map.set(S,{}),f=this._map.get(S));if(f){this._currentElement&&(f.dependants[this._currentElement]=!0);var U,a=f.properties;for(U in a){var X=c&&c[U];f=[U,": var(",S,"_-_",U];X&&f.push(",",X.replace(mEd,""));f.push(")");mEd.test(a[U])&&f.push(" !important");Q.push(f.join(""))}}return Q.join("; ")};
_.J._replaceInitialOrInherit=function(S,c){var Q=oUd.exec(c);Q&&(c=Q[1]?this._getInitialValueForProperty(S):"apply-shim-inherit");return c};
_.J._cssTextToMap=function(S,c){c=c===void 0?!1:c;S=S.split(";");for(var Q,f,U={},a=0;a<S.length;a++)if(Q=S[a])f=Q.split(":"),f.length>1&&(Q=f[0].trim(),f=f.slice(1).join(":"),c&&(f=this._replaceInitialOrInherit(Q,f)),U[Q]=f);return U};
_.J._invalidateMixinEntry=function(S){if(czu)for(var c in S.dependants)c!==this._currentElement&&czu(c)};
_.J._produceCssProperties=function(S,c,Q,f,U){var a=this;Q&&Awx(Q,function(H,q){q&&a._map.get(q)&&(f="@apply "+q+";")});
if(!f)return S;var X=this._consumeCssProperties(""+f,U);U=S.slice(0,S.indexOf("--"));var z=X=this._cssTextToMap(X,!0),x=this._map.get(c),I=x&&x.properties;I?z=Object.assign(Object.create(I),X):this._map.set(c,z);var n=[],b,N=!1;for(b in z){var l=X[b];l===void 0&&(l="initial");!I||b in I||(N=!0);n.push(c+"_-_"+b+": "+l)}N&&this._invalidateMixinEntry(x);x&&(x.properties=z);Q&&(U=S+";"+U);return U+n.join("; ")+";"};
NY.prototype.detectMixin=NY.prototype.detectMixin;NY.prototype.transformStyle=NY.prototype.JSC$9217_transformStyle;NY.prototype.transformCustomStyle=NY.prototype.transformCustomStyle;NY.prototype.transformRules=NY.prototype.transformRules;NY.prototype.transformRule=NY.prototype.transformRule;NY.prototype.transformTemplate=NY.prototype.transformTemplate;NY.prototype._separator="_-_";Object.defineProperty(NY.prototype,"invalidCallback",{get:function(){return czu},
set:function(S){czu=S}});var KL=new NY,f5u=function(){this.customStyleInterface=null;KL.invalidCallback=ouY},$N=function(S){!S.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(S.customStyleInterface=window.ShadyCSS.CustomStyleInterface,S.customStyleInterface.transformCallback=function(c){KL.transformCustomStyle(c)},S.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){S.customStyleInterface.enqueued&&S.flushCustomStyles()})})};
_.J=f5u.prototype;_.J.prepareTemplate=function(S,c){$N(this);X$Y(S)===""&&(yWR[c]=S,c=KL.transformTemplate(S,c),S._styleAst=c)};
_.J.flushCustomStyles=function(){$N(this);if(this.customStyleInterface){var S=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var c=0;c<S.length;c++){var Q=this.customStyleInterface.getStyleForCustomStyle(S[c]);Q&&KL.transformCustomStyle(Q)}this.customStyleInterface.enqueued=!1}}};
_.J.styleSubtree=function(S,c){$N(this);c&&HSH(S,c);if(S.shadowRoot)for(this.styleElement(S),S=S.shadowRoot.children||S.shadowRoot.childNodes,c=0;c<S.length;c++)this.styleSubtree(S[c]);else for(S=S.children||S.childNodes,c=0;c<S.length;c++)this.styleSubtree(S[c])};
_.J.styleElement=function(S){$N(this);var c=S.localName,Q;c?c.indexOf("-")>-1?Q=c:Q=S.getAttribute&&S.getAttribute("is")||"":Q=S.is;c=yWR[Q];if(!(c&&X$Y(c)!==""||!c||m$p(c))){if(m$p(c)||c._applyShimValidatingVersion!==c._applyShimNextVersion)this.prepareTemplate(c,Q),cwc(c);if(S=S.shadowRoot)if(S=S.querySelector("style"))S.__cssRules=c._styleAst,S.textContent=fvZ(c._styleAst)}};
_.J.styleDocument=function(S){$N(this);this.styleSubtree(document.body,S)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var uK=new f5u,UDl=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(S,c){uK.flushCustomStyles();uK.prepareTemplate(S,c)},
prepareTemplateStyles:function(S,c,Q){window.ShadyCSS.prepareTemplate(S,c,Q)},
prepareTemplateDom:function(){},
styleSubtree:function(S,c){uK.flushCustomStyles();uK.styleSubtree(S,c)},
styleElement:function(S){uK.flushCustomStyles();uK.styleElement(S)},
styleDocument:function(S){uK.flushCustomStyles();uK.styleDocument(S)},
getComputedStyleValue:function(S,c){return DsY(S,c)},
flushCustomStyles:function(){uK.flushCustomStyles()},
nativeCss:QKM,nativeShadow:M9z,cssBuild:Vu,disableRuntime:uuJ};UDl&&(window.ShadyCSS.CustomStyleInterface=UDl)}window.ShadyCSS.ApplyShim=KL;var Jzp;Jzp=window.ShadyCSS;_.j5=R8(function(S){S=hzd(mu(S));var c=OPl?S:tBd(S),Q=VBd(c),f={x:"pan-x",y:"pan-y",none:"none",all:"auto"};S=function(){return c.call(this)||this};
_.C(S,c);S.prototype.created=function(){};
S.prototype.__attributeReaction=function(U,a,X){(this.__dataAttributes&&this.__dataAttributes[U]||U==="disable-upgrade")&&this.attributeChangedCallback(U,a,X,null)};
S.prototype.setAttribute=function(U,a){if(GLi&&!this._legacyForceObservedAttributes){var X=this.getAttribute(U);c.prototype.setAttribute.call(this,U,a);this.__attributeReaction(U,X,String(a))}else c.prototype.setAttribute.call(this,U,a)};
S.prototype.removeAttribute=function(U){if(GLi&&!this._legacyForceObservedAttributes){var a=this.getAttribute(U);c.prototype.removeAttribute.call(this,U);this.__attributeReaction(U,a,null)}else c.prototype.removeAttribute.call(this,U)};
S.prototype._enableProperties=function(){this.__isUpgradeDisabled||c.prototype._enableProperties.call(this)};
S.prototype._canApplyPropertyDefault=function(U){return c.prototype._canApplyPropertyDefault.call(this,U)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(U))};
S.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(c.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
S.prototype.attached=function(){};
S.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(c.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
S.prototype.detached=function(){};
S.prototype.attributeChangedCallback=function(U,a,X,z){a!==X&&(U=="disable-upgrade"?this.__isUpgradeDisabled&&X==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.Nm)(this).isConnected&&this.connectedCallback()):(c.prototype.attributeChangedCallback.call(this,U,a,X,z),this.attributeChanged(U,a,X)))};
S.prototype.attributeChanged=function(){};
S.prototype._initializeProperties=function(){if(iO&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var U=Object.getPrototypeOf(this);U.hasOwnProperty("__hasRegisterFinished")||(this._registered(),U.__hasRegisterFinished=!0);c.prototype._initializeProperties.call(this);this.root=this;this.created();GLi&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
S.prototype._takeAttributes=function(){for(var U=this.attributes,a=0,X=U.length;a<X;a++){var z=U[a];this.__attributeReaction(z.name,null,z.value)}};
S.prototype._registered=function(){};
S.prototype.ready=function(){this._ensureAttributes();c.prototype.ready.call(this)};
S.prototype._ensureAttributes=function(){};
S.prototype._applyListeners=function(){};
S.prototype.serialize=function(U){return this._serializeValue(U)};
S.prototype.deserialize=function(U,a){return this._deserializeValue(U,a)};
S.prototype.reflectPropertyToAttribute=function(U,a,X){this._propertyToAttribute(U,a,X)};
S.prototype.serializeValueToAttribute=function(U,a,X){this._valueToNodeAttribute(X||this,U,a)};
S.prototype.extend=function(U,a){if(!U||!a)return U||a;for(var X=Object.getOwnPropertyNames(a),z=0,x=void 0;z<X.length&&(x=X[z]);z++){var I=Object.getOwnPropertyDescriptor(a,x);I&&Object.defineProperty(U,x,I)}return U};
S.prototype.mixin=function(U,a){for(var X in a)U[X]=a[X];return U};
S.prototype.chainObject=function(U,a){U&&a&&U!==a&&(U.__proto__=a);return U};
S.prototype.instanceTemplate=function(U){U=this.constructor._contentForTemplate(U);return document.importNode(U,!0)};
S.prototype.fire=function(U,a,X){X=X||{};a=a===null||a===void 0?{}:a;U=new Event(U,{bubbles:X.bubbles===void 0?!0:X.bubbles,cancelable:!!X.cancelable,composed:X.composed===void 0?!0:X.composed});U.detail=a;(0,_.Nm)(X.node||this).dispatchEvent(U);return U};
S.prototype.listen=function(U,a,X){U=U||this;var z=this.__boundListeners||(this.__boundListeners=new WeakMap),x=z.get(U);x||(x={},z.set(U,x));z=a+X;x[z]||(x[z]=this._addMethodEventListenerToNode(U,a,X,this))};
S.prototype.unlisten=function(U,a,X){U=U||this;var z=this.__boundListeners&&this.__boundListeners.get(U);X=a+X;var x=z&&z[X];x&&(this._removeEventListenerFromNode(U,a,x),z[X]=null)};
S.prototype.setScrollDirection=function(U,a){_.wK(a||this,f[U]||"auto")};
S.prototype.$$=function(U){return this.root.querySelector(U)};
S.prototype.distributeContent=function(){var U=_.YU(this);window.ShadyDOM&&U.shadowRoot&&ShadyDOM.flush()};
S.prototype.getEffectiveChildNodes=function(){return _.YU(this).getEffectiveChildNodes()};
S.prototype.queryDistributedElements=function(U){return _.YU(this).queryDistributedElements(U)};
S.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(U){return U.nodeType===Node.ELEMENT_NODE})};
S.prototype.getEffectiveTextContent=function(){for(var U=this.getEffectiveChildNodes(),a=[],X=0,z;z=U[X];X++)z.nodeType!==Node.COMMENT_NODE&&a.push(z.textContent);return a.join("")};
S.prototype.queryEffectiveChildren=function(U){return(U=this.queryDistributedElements(U))&&U[0]};
S.prototype.queryAllEffectiveChildren=function(U){return this.queryDistributedElements(U)};
S.prototype.getContentChildNodes=function(U){return(U=this.root.querySelector(U||"slot"))?_.YU(U).getDistributedNodes():[]};
S.prototype.getContentChildren=function(U){return this.getContentChildNodes(U).filter(function(a){return a.nodeType===Node.ELEMENT_NODE})};
S.prototype.isLightDescendant=function(U){return this!==U&&(0,_.Nm)(this).contains(U)&&(0,_.Nm)(this).getRootNode()===(0,_.Nm)(U).getRootNode()};
S.prototype.isLocalDescendant=function(U){return this.root===(0,_.Nm)(U).getRootNode()};
S.prototype.scopeSubtree=function(U,a){return Gwx(U,a===void 0?!1:a)};
S.prototype.getComputedStyleValue=function(U){return Jzp.getComputedStyleValue(this,U)};
S.prototype.debounce=function(U,a,X){this._debouncers=this._debouncers||{};return this._debouncers[U]=_.Ak(this._debouncers[U],X>0?_.Vz.after(X):sP,a.bind(this))};
S.prototype.isDebouncerActive=function(U){this._debouncers=this._debouncers||{};U=this._debouncers[U];return!(!U||!U.isActive())};
S.prototype.flushDebouncer=function(U){this._debouncers=this._debouncers||{};(U=this._debouncers[U])&&U.flush()};
S.prototype.cancelDebouncer=function(U){this._debouncers=this._debouncers||{};(U=this._debouncers[U])&&U.cancel()};
S.prototype.async=function(U,a){return a>0?_.Vz.run(U.bind(this),a):~sP.run(U.bind(this))};
S.prototype.cancelAsync=function(U){U<0?sP.cancel(~U):_.Vz.cancel(U)};
S.prototype.create=function(U,a){U=document.createElement(U);if(a)if(U.setProperties)U.setProperties(a);else for(var X in a)U[X]=a[X];return U};
S.prototype.elementMatches=function(U,a){return gUd(a||this,U)};
S.prototype.toggleAttribute=function(U,a){var X=this;arguments.length===3&&(X=arguments[2]);arguments.length==1&&(a=!X.hasAttribute(U));if(a)return(0,_.Nm)(X).setAttribute(U,""),!0;(0,_.Nm)(X).removeAttribute(U);return!1};
S.prototype.toggleClass=function(U,a,X){X=X||this;arguments.length==1&&(a=!X.classList.contains(U));a?X.classList.add(U):X.classList.remove(U)};
S.prototype.transform=function(U,a){a=a||this;a.style.webkitTransform=U;a.style.transform=U};
S.prototype.translate3d=function(U,a,X,z){this.transform("translate3d("+U+","+a+","+X+")",z||this)};
S.prototype.arrayDelete=function(U,a){if(Array.isArray(U)){if(a=U.indexOf(a),a>=0)return U.splice(a,1)}else if(a=Ih(this,U).indexOf(a),a>=0)return this.splice(U,a,1);return null};
S.prototype._logger=function(U,a){Array.isArray(a)&&a.length===1&&Array.isArray(a[0])&&(a=a[0]);switch(U){case "log":case "warn":case "error":console[U].apply(console,_.Hs(a))}};
S.prototype._log=function(){this._logger("log",_.YD.apply(0,arguments))};
S.prototype._warn=function(){this._logger("warn",_.YD.apply(0,arguments))};
S.prototype._error=function(){this._logger("error",_.YD.apply(0,arguments))};
S.prototype._logf=function(U){return["[%s::%s]",this.is,U].concat(_.Hs(_.YD.apply(1,arguments)))};
_.Rh.Object.defineProperties(S.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var U=(0,_.Nm)(this).getRootNode();return U instanceof DocumentFragment?U.host:U}}});
_.Rh.Object.defineProperties(S,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return GLi&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],i4x(this.prototype)),this.__observedAttributes):Q.call(this).concat("disable-upgrade")}}});
S.prototype.is="";return S});Polymer.FlattenedNodesObserver=ZPd;Polymer.DomApi=dEl;Polymer.EventApi=nL;Polymer.dom=_.YU;Polymer.dom.matchesSelector=gUd;Polymer.dom.flush=_.Fg;Polymer.dom.addDebouncer=_.Xg;Polymer.DirMixin=tBd;Polymer.RenderStatus={beforeNextRender:_.M0Z,afterNextRender:_.tO,flush:function(){for(;TDZ.length||EP.length;)qIT(TDZ),qIT(EP);L$=!1}};Polymer.LegacyElementMixin=_.j5;var a5d;a5d=zS._mutablePropertyChange;var Aze={properties:{mutableData:Boolean},_shouldPropertyChange:function(S,c,Q){return a5d(this,S,c,Q,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(S,c,Q){return a5d(this,S,c,Q,!0)}};
Polymer.OptionalMutableDataBehavior=Aze;var OjZ={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},Ivo={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},Bar=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},Ivo),X2d=(0,_.j5)(HTMLElement),RlZ=function(S,c){S||console.warn("Polymer.Class requires `info` argument");c=c?c(X2d):X2d;c=nsz(S,c,S.behaviors);c.is=c.prototype.is=
S.is;return c};Polymer.Class=RlZ;Polymer.mixinBehaviors=function(S,c){return nsz({},(0,_.j5)(c),S)};
Polymer.GenerateClassFromInfo=nsz;_.DI=function(S){var c=typeof S==="function"?S:_.DI.Class(S);S._legacyForceObservedAttributes&&(c.prototype._legacyForceObservedAttributes=S._legacyForceObservedAttributes);customElements.define(c.is,c);return c};
_.DI.Class=RlZ;Polymer._polymerFn=_.DI;var O8s=window.onLegacyPolymerFunctionDefinedCallback;O8s&&O8s();var oFc={templatize:function(S,c){this._templatizerTemplate=S;this.ctor=Wn(S,this,{mutableData:!!c,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(S){return new this.ctor(S)},
modelForElement:function(S){return CVc(this._templatizerTemplate,S)}};Polymer.Templatizer=oFc;_.lK=(0,_.j5)(HTMLElement).prototype;Polymer.Base=_.lK;var Naz=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.yu=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.C(_.yu,PolymerFakeBaseClass);var oh=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.C(oh,PolymerFakeBaseClass);var K9p=Symbol("Od"),D7r=[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 zWT=zWT||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},xD_;(function(S){function c(v,t,V){var AZ=E.get(v);if(!AZ){if(!V)return;AZ=new g;E.set(v,AZ)}v=AZ.get(t);if(!v){if(!V)return;v=new g;AZ.set(t,v)}return v}
function Q(v,t,V){if(f(v,t,V))return!0;t=N(t);return t!==null?Q(v,t,V):!1}
function f(v,t,V){t=c(t,V,!1);return t===void 0?!1:!!t.has(v)}
function U(v,t,V){if(f(v,t,V))return a(v,t,V);t=N(t);if(t!==null)return U(v,t,V)}
function a(v,t,V){t=c(t,V,!1);if(t!==void 0)return t.get(v)}
function X(v,t){var V=z(v,t);v=N(v);if(v===null)return V;var AZ=X(v,t);if(AZ.length<=0)return V;if(V.length<=0)return AZ;t=new r;v=[];V=_.A(V);for(var IH=V.next();!IH.done;IH=V.next())IH=IH.value,t.has(IH)||(t.add(IH),v.push(IH));V=_.A(AZ);for(AZ=V.next();!AZ.done;AZ=V.next())AZ=AZ.value,t.has(AZ)||(t.add(AZ),v.push(AZ));return v}
function z(v,t){v=c(v,t,!1);var V=[];v&&v.forEach(function(AZ,IH){return V.push(IH)});
return V}
function x(v){return v===void 0}
function I(v){return typeof v==="object"?v!==null:typeof v==="function"}
function n(v){return typeof v==="function"}
function b(v){return typeof v==="symbol"?v:String(v)}
function N(v){var t=Object.getPrototypeOf(v);if(typeof v!=="function"||v===w||t!==w)return t;var V=Object.getPrototypeOf(v.prototype);if(V==null||V===Object.prototype)return t;V=V.constructor;return typeof V!=="function"||V===v?t:V}
function l(){function v(){this._keys=[];this._values=[];this._cache=t}
var t={};v.prototype={get size(){return this._keys.length},has:function(V){return V===this._cache?!0:this._find(V)>=0?(this._cache=V,!0):!1},
get:function(V){var AZ=this._find(V);if(AZ>=0)return this._cache=V,this._values[AZ]},
set:function(V,AZ){this.delete(V);this._keys.push(V);this._values.push(AZ);this._cache=V;return this},
delete:function(V){V=this._find(V);return V>=0?(this._keys.splice(V,1),this._values.splice(V,1),this._cache=t,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=t},
forEach:function(V){for(var AZ=this.size,IH=0;IH<AZ;++IH){var Nr=this._keys[IH],Hc=this._values[IH];this._cache=Nr;V.call(this,Hc,Nr,this)}},
_find:function(V){for(var AZ=this._keys,IH=AZ.length,Nr=0;Nr<IH;++Nr)if(AZ[Nr]===V)return Nr;return-1}};
return v}
function H(){function v(){this._map=new g}
v.prototype={get size(){return this._map.length},has:function(t){return this._map.has(t)},
add:function(t){this._map.set(t,t);return this},
delete:function(t){return this._map.delete(t)},
clear:function(){this._map.clear()},
forEach:function(t,V){this._map.forEach(t,V)}};
return v}
function q(){function v(){this._key=V()}
function t(wp,Pc){for(var ex=0;ex<Pc;++ex)wp[ex]=Math.random()*255|0}
function V(){do{if(IH)var wp=IH.randomBytes(16);else typeof Uint8Array==="function"?(wp=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(wp):t(wp,16)):(wp=Array(16),t(wp,16));wp[6]=wp[6]&79|64;wp[8]=wp[8]&191|128;for(var Pc="",ex=0;ex<16;++ex){var yd=wp[ex];if(ex===4||ex===6||ex===8)Pc+="-";yd<16&&(Pc+="0");Pc+=yd.toString(16).toLowerCase()}wp="@@WeakMap@@"+Pc}while(Nr.call(Hc,wp));Hc[wp]=!0;return wp}
function AZ(wp,Pc){if(!Nr.call(wp,qr)){if(!Pc)return;Object.defineProperty(wp,qr,{value:Object.create(null)})}return wp[qr]}
var IH=typeof global!=="undefined"&&typeof zWT==="object"&&typeof require==="function"&&require("crypto"),Nr=Object.prototype.hasOwnProperty,Hc={},qr=V();v.prototype={has:function(wp){return(wp=AZ(wp,!1))?this._key in wp:!1},
get:function(wp){if(wp=AZ(wp,!1))return wp[this._key]},
set:function(wp,Pc){AZ(wp,!0)[this._key]=Pc;return this},
delete:function(wp){return(wp=AZ(wp,!1))&&this._key in wp?delete wp[this._key]:!1},
clear:function(){this._key=V()}};
return v}
var w=Object.getPrototypeOf(Function),g=typeof Map==="function"?Map:l(),r=typeof Set==="function"?Set:H(),E=new (typeof WeakMap==="function"?WeakMap:q());S.decorate=function(v,t,V,AZ){if(x(AZ)){if(x(V)){if(!Array.isArray(v))throw new TypeError;if(!n(t))throw new TypeError;for(V=v.length-1;V>=0;--V)if(AZ=(0,v[V])(t),!x(AZ)){if(!n(AZ))throw new TypeError;t=AZ}return t}if(!Array.isArray(v))throw new TypeError;if(!I(t))throw new TypeError;V=b(V);for(AZ=v.length-1;AZ>=0;--AZ)(0,v[AZ])(t,V)}else{if(Array.isArray(v))if(I(t)){if(x(V))throw new TypeError;
if(!I(AZ))throw new TypeError;}else throw new TypeError;else throw new TypeError;V=b(V);for(var IH=v.length-1;IH>=0;--IH){var Nr=(0,v[IH])(t,V,AZ);if(!x(Nr)){if(!I(Nr))throw new TypeError;AZ=Nr}}return AZ}};
S.metadata=function(v,t){return function(V,AZ){if(x(AZ)){if(!n(V))throw new TypeError;c(V,void 0,!0).set(v,t)}else{if(!I(V))throw new TypeError;AZ=b(AZ);c(V,AZ,!0).set(v,t)}}};
S.defineMetadata=function(v,t){var V;if(I(t))x(V)||(V=b(V));else throw new TypeError;c(t,V,!0).set("parameters",v)};
S.hasMetadata=function(v,t,V){if(I(t))x(V)||(V=b(V));else throw new TypeError;return Q(v,t,V)};
S.hasOwnMetadata=function(v,t,V){if(I(t))x(V)||(V=b(V));else throw new TypeError;return f(v,t,V)};
S.getMetadata=function(v,t,V){if(I(t))x(V)||(V=b(V));else throw new TypeError;return U(v,t,V)};
S.getOwnMetadata=function(v,t,V){if(I(t))x(V)||(V=b(V));else throw new TypeError;return a(v,t,V)};
S.getMetadataKeys=function(v,t){if(I(v))x(t)||(t=b(t));else throw new TypeError;return X(v,t)};
S.getOwnMetadataKeys=function(v,t){if(I(v))x(t)||(t=b(t));else throw new TypeError;return z(v,t)};
S.deleteMetadata=function(v,t,V){if(I(t))x(V)||(V=b(V));else throw new TypeError;var AZ=c(t,V,!1);if(!x(AZ)){if(!AZ.delete(v))return!1;if(AZ.size>0)return!0;v=E.get(t);v.delete(V);if(v.size>0)return!0;E.delete(t);return!0}};
(function(v){if(typeof v.Reflect!=="undefined"){if(v.Reflect!==S)for(var t in S)v.Reflect[t]=S[t]}else v.Reflect=S})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(xD_||(xD_={}));var imp=self;var Fqs=[0,_.EY,_.VQ,_.EY];var BST=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(BST,_.Ga);var I5l=_.yf(BST,[0,_.AXM,_.Rr,Fqs,_.VQ,_.or]);_.Xa(_.mG,_.C9);_.J=_.mG.prototype;_.J.start=function(){this.stop();this.usingListeners_=!1;var S=ntl(this),c=b8J(this);S&&!c&&this.JSC$9260_win_.mozRequestAnimationFrame?(this.JSC$9260_id_=_.HI(this.JSC$9260_win_,"MozBeforePaint",this.callback_),this.JSC$9260_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9260_id_=S&&c?S.call(this.JSC$9260_win_,this.callback_):this.JSC$9260_win_.setTimeout(Kp$(this.callback_),20)};
_.J.stop=function(){if(this.isActive()){var S=ntl(this),c=b8J(this);S&&!c&&this.JSC$9260_win_.mozRequestAnimationFrame?l7(this.JSC$9260_id_):S&&c?c.call(this.JSC$9260_win_,this.JSC$9260_id_):this.JSC$9260_win_.clearTimeout(this.JSC$9260_id_)}this.JSC$9260_id_=null};
_.J.fire=function(){this.stop();this.JSC$9262_doAction_()};
_.J.isActive=function(){return this.JSC$9260_id_!=null};
_.J.JSC$9262_doAction_=function(){this.usingListeners_&&this.JSC$9260_id_&&l7(this.JSC$9260_id_);this.JSC$9260_id_=null;this.JSC$9260_listener_.call(this.handler_,_.AP())};
_.J.disposeInternal=function(){this.stop();_.mG.superClass_.disposeInternal.call(this)};
var ntl=function(S){S=S.JSC$9260_win_;return S.requestAnimationFrame||S.webkitRequestAnimationFrame||S.mozRequestAnimationFrame||S.oRequestAnimationFrame||S.msRequestAnimationFrame||null},b8J=function(S){S=S.JSC$9260_win_;
return S.cancelAnimationFrame||S.cancelRequestAnimationFrame||S.webkitCancelRequestAnimationFrame||S.mozCancelRequestAnimationFrame||S.oCancelRequestAnimationFrame||S.msCancelRequestAnimationFrame||null};_.S0=function(S,c,Q){_.C9.call(this);this.JSC$9263_listener_=Q!=null?S.bind(Q):S;this.JSC$9263_interval_=c;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9263_timer_=null};
_.C(_.S0,_.C9);_.J=_.S0.prototype;_.J.fire=function(S){this.args_=arguments;this.JSC$9263_timer_||this.pauseCount_?this.shouldFire_=!0:NSs(this)};
_.J.stop=function(){this.JSC$9263_timer_&&(_.QY.clearTimeout(this.JSC$9263_timer_),this.JSC$9263_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.J.pause=function(){this.pauseCount_++};
_.J.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9263_timer_||(this.shouldFire_=!1,NSs(this))};
_.J.disposeInternal=function(){_.C9.prototype.disposeInternal.call(this);this.stop()};
var NSs=function(S){S.JSC$9263_timer_=h3(function(){S.JSC$9263_timer_=null;S.shouldFire_&&!S.pauseCount_&&(S.shouldFire_=!1,NSs(S))},S.JSC$9263_interval_);
var c=S.args_;S.args_=null;S.JSC$9263_listener_.apply(null,c)};var Kqd=function(S,c){this.childIterator_=S[_.QY.Symbol.iterator]();this.mapFn_=c};
Kqd.prototype[Symbol.iterator]=function(){return this};
Kqd.prototype.next=function(){var S=this.childIterator_.next();return{value:S.done?void 0:this.mapFn_.call(void 0,S.value),done:S.done}};
var $DT=function(S,c){return new Kqd(S,c)};var uFl={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 FFr=function(S){var c=jId(S);if(!c)throw Error("Sd`"+S);return c},jId=function(S){var c={};
S=String(S);var Q=S.charAt(0)=="#"?S:"#"+S;if(l5z.test(Q))return c.hex=asc(Q),c.type="hex",c;Q=bap(S);return Q.length?(c.hex=oJx(Q[0],Q[1],Q[2]),c.type="rgb",c):uFl&&(S=uFl[S.toLowerCase()])?(c.hex=S,c.type="named",c):null},YzH=/#(.)(.)(.)/,asc=function(S){if(!l5z.test(S))throw Error("Ud`"+S);
S.length==4&&(S=S.replace(YzH,"#$1$1$2$2$3$3"));return S.toLowerCase()},B$M=function(S){S=asc(S);
S=parseInt(S.slice(1),16);return[S>>16,S>>8&255,S&255]},oJx=function(S,c,Q){S=Number(S);
c=Number(c);Q=Number(Q);if(S!=(S&255)||c!=(c&255)||Q!=(Q&255))throw Error("Vd`"+S+"`"+c+"`"+Q);c=S<<16|c<<8|Q;return S<16?"#"+(16777216|c).toString(16).slice(1):"#"+c.toString(16)},l5z=/^#(?:[0-9a-f]{3}){1,2}$/i,C2T=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,bap=function(S){var c=S.match(C2T);
if(c){S=Number(c[1]);var Q=Number(c[2]);c=Number(c[3]);if(S>=0&&S<=255&&Q>=0&&Q<=255&&c>=0&&c<=255)return[S,Q,c]}return[]};var H8d={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},hW=H8d;hW=H8d;var LaM,DD_,p2d;LaM=function(S,c){switch(c){case 1:return S%4!=0||S%100==0&&S%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
DD_=function(S,c,Q,f,U){S=new Date(S,c,Q);U=U||0;return S.valueOf()+(((f!==void 0?f:3)-U+7)%7-((S.getDay()+6)%7-U+7)%7)*864E5};
_.YN=function(S,c,Q){typeof S==="number"?(this.date=p2d(S,c||0,Q||1),hWJ(this,Q||1)):_.c_(S)?(this.date=p2d(S.getFullYear(),S.getMonth(),S.getDate()),hWJ(this,S.getDate())):(this.date=new Date(_.AP()),S=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),hWJ(this,S))};
p2d=function(S,c,Q){c=new Date(S,c,Q);S>=0&&S<100&&c.setFullYear(c.getFullYear()-1900);return c};
_.J=_.YN.prototype;_.J.firstDayOfWeek_=hW.FIRSTDAYOFWEEK;_.J.firstWeekCutOffDay_=hW.FIRSTWEEKCUTOFFDAY;_.J.clone=function(){var S=new _.YN(this.date);S.firstDayOfWeek_=this.firstDayOfWeek_;S.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return S};
_.J.getFullYear=function(){return this.date.getFullYear()};
_.J.getYear=function(){return this.getFullYear()};
_.J.getMonth=function(){return this.date.getMonth()};
_.J.getDate=function(){return this.date.getDate()};
_.J.getTime=function(){return this.date.getTime()};
_.J.getDay=function(){return this.date.getDay()};
_.J.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.J.getUTCMonth=function(){return this.date.getUTCMonth()};
_.J.getUTCDate=function(){return this.date.getUTCDate()};
_.J.getUTCDay=function(){return this.date.getDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.J.set=function(S){this.date=new Date(S.getFullYear(),S.getMonth(),S.getDate())};
_.J.setFullYear=function(S){this.date.setFullYear(S)};
_.J.setYear=function(S){this.setFullYear(S)};
_.J.setMonth=function(S){this.date.setMonth(S)};
_.J.setDate=function(S){this.date.setDate(S)};
_.J.setTime=function(S){this.date.setTime(S)};
_.J.setUTCFullYear=function(S){this.date.setUTCFullYear(S)};
_.J.setUTCMonth=function(S){this.date.setUTCMonth(S)};
_.J.setUTCDate=function(S){this.date.setUTCDate(S)};
_.J.add=function(S){if(S.years||S.months){var c=this.getMonth()+S.months+S.years*12,Q=this.getYear()+Math.floor(c/12);c%=12;c<0&&(c+=12);var f=Math.min(LaM(Q,c),this.getDate());this.setDate(1);this.setFullYear(Q);this.setMonth(c);this.setDate(f)}S.days&&(Q=this.getYear(),c=Q>=0&&Q<=99?-1900:0,S=new Date((new Date(Q,this.getMonth(),this.getDate(),12)).getTime()+S.days*864E5),this.setDate(1),this.setFullYear(S.getFullYear()+c),this.setMonth(S.getMonth()),this.setDate(S.getDate()),hWJ(this,S.getDate()))};
_.J.JSC$9276_toIsoString=function(S){var c=this.getFullYear(),Q=c<0?"-":c>=1E4?"+":"";return[Q+_.UR(Math.abs(c),Q?6:4),_.UR(this.getMonth()+1,2),_.UR(this.getDate(),2)].join(S?"-":"")};
_.J.equals=function(S){return!(!S||this.getYear()!=S.getYear()||this.getMonth()!=S.getMonth()||this.getDate()!=S.getDate())};
_.J.toString=function(){return this.JSC$9276_toIsoString()};
var hWJ=function(S,c){S.getDate()!=c&&S.date.setUTCHours(S.date.getUTCHours()+(S.getDate()<c?1:-1))};
_.YN.prototype.valueOf=function(){return this.date.valueOf()};var HE=function(S,c,Q,f,U){this.reversed=!!c;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!Q;S&&CL(this,S,f);this.depth=U!=void 0?U:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.Xa(HE,a8);var CL=function(S,c,Q,f){if(S.node=c)S.tagType=typeof Q==="number"?Q:S.node.nodeType!=1?0:S.reversed?-1:1;typeof f==="number"&&(S.depth=f)};
_.J=HE.prototype;_.J.JSC$9291_copyFrom=function(S){this.node=S.node;this.tagType=S.tagType;this.depth=S.depth;this.reversed=S.reversed;this.constrained=S.constrained};
_.J.clone=function(){return new HE(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.J.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return A1;var S=this.node;var c=this.reversed?-1:1;if(this.tagType==c){var Q=this.reversed?S.lastChild:S.firstChild;Q?CL(this,Q):CL(this,S,c*-1)}else(Q=this.reversed?S.previousSibling:S.nextSibling)?CL(this,Q):CL(this,S.parentNode,c*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(S=this.node)?Xx(S):A1};
_.J.equals=function(S){return S.node==this.node&&(!this.node||S.tagType==this.tagType)};
_.J.splice=function(S){var c=this.node,Q=this.reversed?1:-1;this.tagType==Q&&(this.tagType=Q*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;HE.prototype.next.call(this);this.reversed=!this.reversed;Q=_.yY(arguments[0])?arguments[0]:arguments;for(var f=Q.length-1;f>=0;f--)_.sR(Q[f],c);_.K9(c)};var qzh=function(){},D2=function(S){for(var c=[],Q=S.getTextRangeCount(),f=0;f<Q;f++)c.push(S.getTextRange(f));
return c};
qzh.prototype.isReversed=function(){return!1};
qzh.prototype.getWindow=function(){return hH(_.qk(this.JSC$9293_getStartNode()))};
var TSd=function(S,c){HE.call(this,S,c,!0)};
_.Xa(TSd,HE);var pL=function(S,c,Q,f,U){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!U;if(S){this.startNode_=S;this.startOffset_=c;this.endNode_=Q;this.endOffset_=f;if(S.nodeType==1&&S.tagName!="BR")if(S=S.childNodes,c=S[c])this.startNode_=c,this.startOffset_=0;else{S.length&&(this.startNode_=_.Gz(S));var a=!0}Q.nodeType==1&&((this.endNode_=Q.childNodes[f])?this.endOffset_=0:this.endNode_=Q)}HE.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);a&&this.next()};
_.Xa(pL,TSd);_.J=pL.prototype;_.J.JSC$9299_getStartNode=function(){return this.startNode_};
_.J.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)};
_.J.next=function(){return this.isLast()?A1:pL.superClass_.next.call(this)};
_.J.JSC$9291_copyFrom=function(S){this.startNode_=S.startNode_;this.endNode_=S.endNode_;this.startOffset_=S.startOffset_;this.endOffset_=S.endOffset_;this.isReversed_=S.isReversed_;pL.superClass_.JSC$9291_copyFrom.call(this,S)};
_.J.clone=function(){var S=new pL(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);S.JSC$9291_copyFrom(this);return S};var w2l=function(){};
w2l.prototype.__iterator__=function(){return new pL(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var hk=function(S){this.range_=S};
_.Xa(hk,w2l);var sIs=function(S){var c=_.qk(S).createRange();if(S.nodeType==3)c.setStart(S,0),c.setEnd(S,S.length);else if(q1(S)||S.nodeType==3){for(var Q,f=S;(Q=f.firstChild)&&(q1(Q)||Q.nodeType==3);)f=Q;c.setStart(f,0);for(f=S;(Q=f.lastChild)&&(q1(Q)||Q.nodeType==3);)f=Q;c.setEnd(f,f.nodeType==1?f.childNodes.length:f.length)}else Q=S.parentNode,S=Array.prototype.indexOf.call(Q.childNodes,S),c.setStart(Q,S),c.setEnd(Q,S+1);return c},MLJ=function(S,c,Q,f){var U=_.qk(S).createRange();
U.setStart(S,c);U.setEnd(Q,f);return U};
_.J=hk.prototype;_.J.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.J.getContainer=function(){return this.range_.commonAncestorContainer};
_.J.compareBrowserRangeEndpoints=function(S,c,Q){return this.range_.compareBoundaryPoints(Q==1?c==1?_.QY.Range.START_TO_START:_.QY.Range.START_TO_END:c==1?_.QY.Range.END_TO_START:_.QY.Range.END_TO_END,S)};
_.J.isCollapsed=function(){return this.range_.collapsed};
_.J.select=function(S){this.selectInternal(hH(_.qk(this.range_.startContainer)).getSelection(),S)};
_.J.selectInternal=function(S){S.removeAllRanges();S.addRange(this.range_)};
_.J.insertNode=function(S,c){var Q=this.range_.cloneRange();Q.collapse(c);Q.insertNode(S);Q.detach();return S};
_.J.collapse=function(S){this.range_.collapse(S)};_.Xa(SB,hk);SB.prototype.selectInternal=function(S,c){!c||this.isCollapsed()?SB.superClass_.selectInternal.call(this,S,c):(S.collapse(this.range_.endContainer,this.range_.endOffset),S.extend(this.range_.startContainer,this.range_.startOffset))};_.Xa(cd,hk);cd.prototype.compareBrowserRangeEndpoints=function(S,c,Q){return cd.superClass_.compareBrowserRangeEndpoints.call(this,S,c,Q)};
cd.prototype.selectInternal=function(S,c){c?S.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):S.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var i8z=function(S){return _.Ir?new cd(S):_.Bg?new SB(S):new hk(S)};var TS=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},Z8T;
_.Xa(TS,qzh);Z8T=function(S,c){var Q=new TS;Q.browserRangeWrapper_=S;Q.isReversed_=!!c;return Q};
_.GZu=function(S){S=_.Ir?new cd(sIs(S)):_.Bg?new SB(sIs(S)):new hk(sIs(S));return Z8T(S)};
_.w6=function(S,c,Q,f){var U=new TS;U.isReversed_=Wqu(S,c,Q,f);if(_.yk(S)&&!q1(S)){var a=S.parentNode;c=Array.prototype.indexOf.call(a.childNodes,S);S=a}_.yk(Q)&&!q1(Q)&&(a=Q.parentNode,f=Array.prototype.indexOf.call(a.childNodes,Q),Q=a);U.isReversed_?(U.startNode_=Q,U.startOffset_=f,U.endNode_=S,U.endOffset_=c):(U.startNode_=S,U.startOffset_=c,U.endNode_=Q,U.endOffset_=f);return U};
_.J=TS.prototype;_.J.clone=function(){var S=new TS;S.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();S.startNode_=this.startNode_;S.startOffset_=this.startOffset_;S.endNode_=this.endNode_;S.endOffset_=this.endOffset_;S.isReversed_=this.isReversed_;return S};
_.J.JSC$9293_getType=function(){return"text"};
_.J.getBrowserRangeObject=function(){return sW(this).range_};
_.J.getTextRangeCount=function(){return 1};
_.J.getTextRange=function(){return this};
var sW=function(S){var c;if(!(c=S.browserRangeWrapper_)){c=S.JSC$9293_getStartNode();var Q=S.JSC$9293_getStartOffset(),f=S.JSC$9293_getEndNode(),U=S.JSC$9293_getEndOffset();c=_.Ir?new cd(MLJ(c,Q,f,U)):_.Bg?new SB(MLJ(c,Q,f,U)):new hk(MLJ(c,Q,f,U));c=S.browserRangeWrapper_=c}return c};
_.J=TS.prototype;_.J.getContainer=function(){return sW(this).getContainer()};
_.J.JSC$9293_getStartNode=function(){return this.startNode_||(this.startNode_=sW(this).range_.startContainer)};
_.J.JSC$9293_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=sW(this).range_.startOffset};
_.J.JSC$9293_getEndNode=function(){return this.endNode_||(this.endNode_=sW(this).range_.endContainer)};
_.J.JSC$9293_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=sW(this).range_.endOffset};
_.J.isReversed=function(){return this.isReversed_};
_.J.JSC$9293_containsRange=function(S,c){if(S.JSC$9293_getType()=="text"){var Q=sW(this);S=sW(S);c=c&&!S.isCollapsed();S=S.range_;Q=c?Q.compareBrowserRangeEndpoints(S,0,1)>=0&&Q.compareBrowserRangeEndpoints(S,1,0)<=0:Q.compareBrowserRangeEndpoints(S,0,0)>=0&&Q.compareBrowserRangeEndpoints(S,1,1)<=0}else Q=!1;return Q};
_.J.isCollapsed=function(){return sW(this).isCollapsed()};
_.J.JSC$9293_getText=function(){return sW(this).range_.toString()};
_.J.__iterator__=function(){return new pL(this.JSC$9293_getStartNode(),this.JSC$9293_getStartOffset(),this.JSC$9293_getEndNode(),this.JSC$9293_getEndOffset())};
_.J.select=function(){sW(this).select(this.isReversed_)};
_.J.JSC$9293_removeContents=function(){var S=sW(this).range_;S.extractContents();if(S.startContainer.hasChildNodes()&&(S=S.startContainer.childNodes[S.startOffset])){var c=S.previousSibling;biz(S)==""&&_.K9(S);c&&biz(c)==""&&_.K9(c)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.J.insertNode=function(S,c){S=sW(this).insertNode(S,c);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return S};
_.J.collapse=function(S){S=this.isReversed()?!S:S;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(S);S?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var gtd=function(){};
_.Xa(gtd,qzh);gtd.prototype.JSC$9293_containsRange=function(S,c){var Q=D2(this);S=D2(S);return(c?tB:_.mcp)(S,function(f){return tB(Q,function(U){return U.JSC$9293_containsRange(f,c)})})};
gtd.prototype.insertNode=function(S,c){c?_.wO(S,this.JSC$9293_getStartNode()):_.sR(S,this.JSC$9293_getEndNode());return S};var eWd,kZd=nn().JSC$7363_document_.documentElement;eWd=kZd.requestFullscreen?"fullscreenchange":kZd.webkitRequestFullscreen?"webkitfullscreenchange":kZd.mozRequestFullScreen?"mozfullscreenchange":kZd.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var rzd=function(){var S=nn().JSC$7363_document_;return!!(S.webkitIsFullScreen||S.mozFullScreen||S.msFullscreenElement||S.fullscreenElement)};var MY=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.Xa(MY,gtd);_.J=MY.prototype;_.J.clone=function(){var S=new MY;S.browserRanges_=_.VY(this.browserRanges_);return S};
_.J.JSC$9293_getType=function(){return"mutli"};
_.J.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.J.getTextRangeCount=function(){return this.browserRanges_.length};
_.J.getTextRange=function(S){this.ranges_[S]||(this.ranges_[S]=Z8T(i8z(this.browserRanges_[S])));return this.ranges_[S]};
_.J.getContainer=function(){if(!this.container_){for(var S=[],c=this.getTextRangeCount(),Q=0;Q<c;Q++)S.push(this.getTextRange(Q).getContainer());this.container_=Oiu.apply(null,S)}return this.container_};
var iK=function(S){S.sortedRanges_||(S.sortedRanges_=D2(S),S.sortedRanges_.sort(function(c,Q){var f=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();var U=Q.JSC$9293_getStartNode();Q=Q.JSC$9293_getStartOffset();return f==U&&c==Q?0:Wqu(f,c,U,Q)?1:-1}));
return S.sortedRanges_};
_.J=MY.prototype;_.J.JSC$9293_getStartNode=function(){return iK(this)[0].JSC$9293_getStartNode()};
_.J.JSC$9293_getStartOffset=function(){return iK(this)[0].JSC$9293_getStartOffset()};
_.J.JSC$9293_getEndNode=function(){return _.Gz(iK(this)).JSC$9293_getEndNode()};
_.J.JSC$9293_getEndOffset=function(){return _.Gz(iK(this)).JSC$9293_getEndOffset()};
_.J.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.J.JSC$9293_getText=function(){return D2(this).map(function(S){return S.JSC$9293_getText()}).join("")};
_.J.__iterator__=function(){return new Z2(this)};
_.J.select=function(){var S=this.getWindow().getSelection();S.removeAllRanges();for(var c=this.getTextRangeCount(),Q=0;Q<c;Q++)S.addRange(this.getTextRange(Q).getBrowserRangeObject())};
_.J.JSC$9293_removeContents=function(){D2(this).forEach(function(S){S.JSC$9293_removeContents()})};
_.J.collapse=function(S){if(!this.isCollapsed()){var c=S?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;c.collapse(S);this.ranges_=[c];this.sortedRanges_=[c];this.browserRanges_=[c.getBrowserRangeObject()]}};
var Z2=function(S){this.iterators_=null;this.currentIdx_=0;S&&(this.iterators_=iK(S).map(function(c){return _.azp(c)}));
HE.call(this,S?this.JSC$9299_getStartNode():null,!1,!0)};
_.Xa(Z2,TSd);_.J=Z2.prototype;_.J.JSC$9299_getStartNode=function(){return this.iterators_[0].JSC$9299_getStartNode()};
_.J.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.J.next=function(){for(;this.currentIdx_<this.iterators_.length;){var S=this.iterators_[this.currentIdx_],c=S.next();if(c.done)this.currentIdx_++;else return CL(this,S.node,S.tagType,S.depth),c}return A1};
_.J.JSC$9291_copyFrom=function(S){this.iterators_=_.VY(S.iterators_);Z2.superClass_.JSC$9291_copyFrom.call(this,S)};
_.J.clone=function(){var S=new Z2(null);S.JSC$9291_copyFrom(this);return S};var dDJ,Wqu;_.Yu=function(){var S=window.getSelection();return S&&dDJ(S)};
dDJ=function(S){var c=!1;if(S.createRange)try{var Q=S.createRange()}catch(U){return null}else if(S.rangeCount){if(S.rangeCount>1){Q=new MY;c=S.rangeCount;for(var f=0;f<c;f++)Q.browserRanges_.push(S.getRangeAt(f));return Q}Q=S.getRangeAt(0);c=Wqu(S.anchorNode,S.anchorOffset,S.focusNode,S.focusOffset)}else return null;return Z8T(i8z(Q),c)};
_.GS=function(S,c){return _.w6(S,c,S,c)};
_.WE=function(S,c,Q,f){return _.w6(S,c,Q,f)};
Wqu=function(S,c,Q,f){if(S==Q)return f<c;var U;if(S.nodeType==1&&c)if(U=S.childNodes[c])S=U,c=0;else if(_.dF(S,Q))return!0;if(Q.nodeType==1&&f)if(U=Q.childNodes[f])Q=U,f=0;else if(_.dF(Q,S))return!1;return(X_e(S,Q)||c-f)>0};var g6=function(){_.Y5.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.H1)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.H1)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.H1)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.H1)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.H1)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.H1)(this.dispatchProgressEvent_,this)};
_.Xa(g6,_.Y5);g6.prototype.abort=function(){try{this.reader_.abort()}catch(S){throw new Ols(S,"aborting read");}};
g6.prototype.getError=function(){return this.reader_.error&&new Ols(this.reader_.error,"reading file")};
g6.prototype.dispatchProgressEvent_=function(S){this.dispatchEvent(new zIH(S,this))};
g6.prototype.disposeInternal=function(){g6.superClass_.disposeInternal.call(this);delete this.reader_};
var P2i=function(S){var c=new g6,Q=vtp(c);c.reader_.readAsArrayBuffer(S);return Q},Lqp=function(S){var c=new g6,Q=vtp(c);
c.reader_.readAsDataURL(S);return Q},vtp=function(S){var c=new En;
S.listen("loadend",_.u2(function(Q,f){var U=f.reader_.result,a=f.getError();U==null||a?Q.errback(a):Q.callback(U);f.dispose()},c,S));
return c};var e5=function(){_.Y5.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9333_eventHandler_=new _.fP(this);this.JSC$9333_isInitialized_=!1};
_.Xa(e5,_.Y5);var Etd=new _.NU("d"),tLu=new _.NU("beforedragstart"),VLs=new _.NU("dragstart"),RWd=new _.NU("beforedragmove"),yzJ=new _.NU("dragmove"),oti=new _.NU("beforedragend"),mDh=new _.NU("dragend"),Sms=new _.NU("e");e5.prototype.isDragging=function(){return!!this.JSC$9333_dragger_};
var cb_=function(S,c){c.dlgGrowthDirection_=0;c.dlgDragHoverClass_=void 0;c.dlgDragPermission=0;S.dragLists_.push(c)},QBd=function(S,c){S.getHandleForDragItem_=c};
e5.prototype.init=function(){if(!this.JSC$9333_isInitialized_){for(var S=this.dragLists_.length,c=0;c<S;c++)for(var Q=_.M1(this.dragLists_[c]),f=Q.length,U=0;U<f;++U){var a=Q[U],X=this.getHandleForDragItem_(a),z=_.Qd(X);this.dragItemForHandle_[z]=a;this.dragItemHoverClasses_&&(this.JSC$9333_eventHandler_.listen(a,"mouseover",this.handleDragItemMouseover_),this.JSC$9333_eventHandler_.listen(a,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9333_eventHandler_.listen(X,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9333_eventHandler_.listen(X,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(a);this.JSC$9333_eventHandler_.listen(X,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9333_isInitialized_=!0}};
e5.prototype.disposeInternal=function(){this.JSC$9333_eventHandler_.dispose();for(var S=this.dragLists_.length,c=0;c<S;c++){var Q=this.dragLists_[c];Q.dlgGrowthDirection_=void 0;Q.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;f8p(this);e5.superClass_.disposeInternal.call(this)};
var UO$=function(S,c){for(var Q=S.dragLists_.length,f=0;f<Q;f++){var U=S.dragLists_[f];U.dlgBounds_=sKZ(U)}Q=S.dragItems_.length;for(f=0;f<Q;f++)U=S.dragItems_[f],U!=c&&(U.dlgBounds_=sKZ(U))};
_.J=e5.prototype;
_.J.handlePotentialDragStart_=function(S){var c=_.Qd(S.currentTarget);c=this.dragItemForHandle_[c];if(c.parentElement.dlgDragPermission!=2){this.currDragItem_=c;a:{c=this.currDragItem_;for(var Q=c.cloneNode(!0),f=$x("TEXTAREA",c),U=$x("TEXTAREA",Q),a=0;a<f.length;a++)U[a].value=f[a].value;switch(c.tagName){case "TR":c=_.px("TABLE",null,_.px("TBODY",null,Q));break a;case "TD":case "TH":c=_.px("TABLE",null,_.px("TBODY",null,_.px("TR",null,Q)));break a;case "TEXTAREA":Q.value=c.value;default:c=Q;break a}c=
void 0}this.draggerEl_=c;this.draggerElClasses_&&PH(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.qk(this.currDragItem_).body.appendChild(this.draggerEl_);Q=_.wb(this.currDragItem_);c=this.draggerEl_;f=_.wb(c);if(Q instanceof _.pn){var X=Q.y;Q=Q.x}gO(c,c.offsetLeft+(Q-f.x),c.offsetTop+(Number(X)-f.y));this.JSC$9333_dragger_=new _.Wm(this.draggerEl_);_.XYh(this.JSC$9333_dragger_,this.hysteresisDistance_);
_.HI(this.JSC$9333_dragger_,"start",this.handleDragStart_,!1,this);_.HI(this.JSC$9333_dragger_,"end",this.handleDragEnd_,!1,this);_.HI(this.JSC$9333_dragger_,"earlycancel",this.JSC$9335_cleanup_,!1,this);this.dispatchEvent(new kN(Etd,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_));this.JSC$9333_dragger_.startDrag(S)}};
_.J.handleDragStart_=function(S){if(this.dispatchEvent(new kN(tLu,this,S.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.J$z(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?PH(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var c=lTd(this.draggerEl_);this.draggerEl_.halfWidth=c.width/2;this.draggerEl_.halfHeight=c.height/2;c=this.draggerEl_.getBoundingClientRect();
var Q=S.clientY,f=ObT(this.JSC$9333_dragger_,S.clientX);if(f>c.right){var U=this.currDragItem_.getBoundingClientRect();this.JSC$9333_dragger_.deltaX=f-(f-U.left)/U.width*c.width}Q=zjT(this.JSC$9333_dragger_,Q);Q>c.bottom&&(this.JSC$9333_dragger_.deltaY+=Q-c.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";UO$(this,this.currDragItem_);this.currDragItem_.style.display="";_.HI(this.JSC$9333_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new kN(VLs,
this,S.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_))}else S.preventDefault(),this.JSC$9335_cleanup_()};
_.J.handleDragMove_=function(S){var c=_.wb(this.draggerEl_);c=new _.pn(c.x+this.draggerEl_.halfWidth,c.y+this.draggerEl_.halfHeight);a:{var Q=null;if(this.currDragItem_.style.display!="none"){Q=this.currDragItem_.parentNode;var f=sKZ(Q);if(Jbu(c,f))break a}f=this.dragLists_.length;for(var U=0;U<f;U++){var a=this.dragLists_[U];if(a!=Q&&Jbu(c,a.dlgBounds_)){Q=a;break a}}Q=null}if(Q){if(Q==null)throw Error("Wd");f=0;U=!1;a=void 0;switch(Q.dlgGrowthDirection_){case 0:f=c.y;var X=a8l;var z=Abe;break;case 4:U=
!0;case 2:f=c.x;X=Xql;z=Abe;break;case 5:U=!0;case 3:f=c.x,X=OKi,z=zrh}for(var x=null,I,n=_.M1(Q),b=n.length,N=0;N<b;N++){var l=n[N];if(l!=this.currDragItem_){var H=X(l.dlgBounds_);if(U){var q=xO$(l,c);a===void 0&&(a=q);z(f,H)&&(I==void 0||q<a||q==a&&(z(H,I)||H==I))&&(x=l,I=H);q<a&&(a=q)}else z(f,H)&&(I==void 0||z(H,I))&&(x=l,I=H)}}X=x!==null&&xO$(x,c)>a?null:x}else X=null;if(!this.dispatchEvent(new kN(RWd,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_,c,Q,X)))return!1;if(Q&&Q.dlgDragPermission!=
1)this.currDragItem_.parentNode==Q&&_.J$z(this.currDragItem_)==X||Q.insertBefore(this.currDragItem_,X),this.currDragItem_.style.display="",Q.dlgDragHoverClass_&&_.yX(Q,Q.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",z=this.dragLists_.length,I=0;I<z;I++)f=this.dragLists_[I],f.dlgDragHoverClass_&&_.VX(f,f.dlgDragHoverClass_);Q!=this.currHoverList_&&(this.currHoverList_=Q,UO$(this,this.currDragItem_));this.dispatchEvent(new kN(yzJ,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_,
c,Q,X));return!1};
_.J.JSC$9335_cleanup_=function(){f8p(this);this.JSC$9333_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var S=this.dragLists_.length,c=0;c<S;c++)this.dragLists_[c].dlgBounds_=null;S=this.dragItems_.length;for(c=0;c<S;c++)this.dragItems_[c].dlgBounds_=null};
_.J.handleDragEnd_=function(S){if(!this.dispatchEvent(new kN(oti,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_)))return!1;f8p(this);this.dispatchEvent(new kN(mDh,this,S,this.currDragItem_,this.draggerEl_,this.JSC$9333_dragger_));this.JSC$9335_cleanup_();return!0};
var f8p=function(S){_.yN(S.JSC$9333_dragger_);var c=S.draggerEl_&&S.draggerEl_.parentElement;S.draggerEl_&&_.K9(S.draggerEl_);S.currDragItem_&&S.currDragItem_.style.display=="none"&&(S.origList_.insertBefore(S.currDragItem_,S.origNextItem_),S.currDragItem_.style.display="");S.currDragItemClasses_&&S.currDragItem_?X5h(S.currDragItem_,S.currDragItemClasses_||[]):S.currDragItem_&&(S.currDragItem_.style.visibility="");for(var Q=S.dragLists_.length,f=0;f<Q;f++){var U=S.dragLists_[f];U.dlgDragHoverClass_&&
_.VX(U,U.dlgDragHoverClass_)}c&&S.dispatchEvent(new kN(Sms,S,null,S.currDragItem_,S.draggerEl_,S.JSC$9333_dragger_))};
_.J=e5.prototype;_.J.getHandleForDragItem_=function(S){return S};
_.J.handleDragItemMouseover_=function(S){PH(S.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemMouseout_=function(S){X5h(S.currentTarget,this.dragItemHoverClasses_||[])};
_.J.handleDragItemHandleMouseover_=function(S){PH(S.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.J.handleDragItemHandleMouseout_=function(S){X5h(S.currentTarget,this.dragItemHandleHoverClasses_||[])};
var Jbu=function(S,c){return S.x>c.left&&S.x<c.left+c.width&&S.y>c.top&&S.y<c.top+c.height},xO$=function(S,c){S=S.dlgBounds_;
return Math.abs(c.y-(S.top+(S.height-1)/2))},a8l=function(S){return S.top+S.height-1},Xql=function(S){return S.left+S.width-1},OKi=function(S){return S.left||0},Abe=function(S,c){return S<c},zrh=function(S,c){return S>c},kN=function(S,c,Q,f,U,a){_.K0.call(this,S);
this.event=Q;this.currDragItem=f;this.draggerEl=U;this.JSC$9337_dragger=a};
_.Xa(kN,_.K0);_.Xa(UM,_.C9);var FMd=new _.pn(0,0);UM.prototype.JSC$9341_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
UM.prototype.JSC$9341_onMouseMove=function(S){var c=this.containerIsActuallyContent_?FMd:Iq(nn(this.containerNode_)),Q=this.horizontalScrolling_?this.calculateScrollDelta(S.clientX+c.x,this.scrollBounds_.left,this.scrollBounds_.width):0,f=this.calculateScrollDelta(S.clientY+c.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=Q;this.scrollDelta_.y=f;!(Q=!Q&&!f)&&(Q=this.constrainScroll_)&&(Q=S.clientX+c.x,S=S.clientY+c.y,c=this.containerBounds_,Q=!(c.left<=Q&&c.left+c.width>=
Q&&c.top<=S&&c.top+c.height>=S));Q?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
UM.prototype.calculateScrollDelta=function(S,c,Q){var f=0;S<c?f=-8:S>c+Q&&(f=8);return f};
UM.prototype.disposeInternal=function(){UM.superClass_.disposeInternal.call(this);this.JSC$9339_eventHandler_.dispose();this.scrollTimer_.dispose()};var BPe={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"}}},r6=BPe;r6=BPe;var d6={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 I8d=function(){},dP=function(S){if(typeof S=="number"){var c=new I8d;
c.standardOffset_=S;var Q=S;if(Q==0)Q="Etc/GMT";else{var f=["Etc/GMT",Q<0?"-":"+"];Q=Math.abs(Q);f.push(Math.floor(Q/60)%100);Q%=60;Q!=0&&f.push(":",_.UR(Q,2));Q=f.join("")}c.timeZoneId_=Q;Q=S;Q==0?Q="UTC":(f=["UTC",Q<0?"+":"-"],Q=Math.abs(Q),f.push(Math.floor(Q/60)%100),Q%=60,Q!=0&&f.push(":",Q),Q=f.join(""));S=nyd(S);c.tzNames_=[Q,Q];c.tzNamesExt_={STD_LONG_NAME_GMT:S,STD_GENERIC_LOCATION:S};c.transitions_=[];return c}c=new I8d;c.timeZoneId_=S.id;c.standardOffset_=-S.std_offset;c.tzNames_=S.names;
c.tzNamesExt_=S.names_ext;c.transitions_=S.transitions;return c},nyd=function(S){var c=["GMT"];
c.push(S<=0?"+":"-");S=Math.abs(S);c.push(_.UR(Math.floor(S/60)%100,2),":",_.UR(S%60,2));return c.join("")},bK_=function(S,c){c=Date.UTC(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate(),c.getUTCHours(),c.getUTCMinutes())/36E5;
for(var Q=0;Q<S.transitions_.length&&c>=S.transitions_[Q];)Q+=2;return Q==0?0:S.transitions_[Q-1]},NPl=function(S,c){S=S.standardOffset_-bK_(S,c);
return S===-1440?0:S};var vq=function(S,c){this.patternParts_=[];this.JSC$9352_dateTimeSymbols_=c||hW;typeof S=="number"?KMd(this,S):$O_(this,S)},uT$=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],vE=function(S){return S.getHours?S.getHours():0},$O_=function(S,c){for(mBz&&(c=c.replace(/\u200f/g,""));c;){for(var Q=c,f=0;f<uT$.length;++f){var U=c.match(uT$[f]);
if(U){var a=U[0];c=c.substring(a.length);f==0&&(a=="''"?a="'":(a=a.substring(1,U[1]=="'"?a.length-1:a.length),a=a.replace(/''/g,"'")));S.patternParts_.push({text:a,type:f});break}}if(Q===c)throw Error("Xd`"+c);}};
vq.prototype.format=function(S,c){if(!S)throw Error("Yd");var Q=c?(S.getTimezoneOffset()-NPl(c,S))*6E4:0,f=Q?new Date(S.getTime()+Q):S,U=f;c&&f.getTimezoneOffset()!=S.getTimezoneOffset()&&(f=new Date(f.getTime()+(f.getTimezoneOffset()-S.getTimezoneOffset())*6E4),U=new Date(S.getTime()+(Q+(Q>0?-864E5:864E5))));Q=[];for(var a=0;a<this.patternParts_.length;++a){var X=this.patternParts_[a].text;1==this.patternParts_[a].type?Q.push(jB$(this,X,S,f,U,c)):Q.push(X)}return Q.join("")};
var KMd=function(S,c){if(c<4)var Q=S.JSC$9352_dateTimeSymbols_.DATEFORMATS[c];else if(c<8)Q=S.JSC$9352_dateTimeSymbols_.TIMEFORMATS[c-4];else if(c<12)Q=S.JSC$9352_dateTimeSymbols_.DATETIMEFORMATS[c-8],Q=Q.replace("{1}",S.JSC$9352_dateTimeSymbols_.DATEFORMATS[c-8]),Q=Q.replace("{0}",S.JSC$9352_dateTimeSymbols_.TIMEFORMATS[c-8]);else if(c===12)Q=S.JSC$9352_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(c===13)Q=S.JSC$9352_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{KMd(S,10);return}$O_(S,Q)},PE=function(S,c){c=String(c);
S=S.JSC$9352_dateTimeSymbols_||hW;if(S.ZERODIGIT!==void 0&&!ocx){for(var Q=[],f=0;f<c.length;f++){var U=c.charCodeAt(f);Q.push(48<=U&&U<=57?String.fromCharCode(S.ZERODIGIT+U-48):c.charAt(f))}c=Q.join("")}return c},ocx=!1,mBz=!1,Ymp=function(S,c,Q,f){Q=Q.getFullYear();
Q<=0&&f&&(Q=1-Q);return PE(S,l8i(Q,c))},l8i=function(S,c){c==2&&(S%=100);
S<0&&c++;return _.UR(S,c)},LL=function(S){if(!(S.getHours&&S.getSeconds&&S.getMinutes))throw Error("Zd");
},CZh=function(S,c){LL(c);
c=vE(c);return S.JSC$9352_dateTimeSymbols_.AMPMS[c>=12&&c<24?1:0]},jB$=function(S,c,Q,f,U,a){var X=c.length;
switch(c.charAt(0)){case "G":return Q=f.getFullYear()>0?1:0,X>=4?S.JSC$9352_dateTimeSymbols_.ERANAMES[Q]:S.JSC$9352_dateTimeSymbols_.ERAS[Q];case "y":return Ymp(S,X,f,!0);case "Y":return Q=(new Date(DD_(f.getFullYear(),f.getMonth(),f.getDate(),S.JSC$9352_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,S.JSC$9352_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),X==2&&(Q%=100),PE(S,l8i(Q,X));case "u":return Ymp(S,X,f,!1);case "M":a:switch(Q=f.getMonth(),X){case 5:X=S.JSC$9352_dateTimeSymbols_.NARROWMONTHS[Q];break a;
case 4:X=S.JSC$9352_dateTimeSymbols_.MONTHS[Q];break a;case 3:X=S.JSC$9352_dateTimeSymbols_.SHORTMONTHS[Q];break a;default:X=PE(S,_.UR(Q+1,X))}return X;case "k":return LL(U),PE(S,_.UR(vE(U)||24,X));case "S":return PE(S,(U.getMilliseconds()/1E3).toFixed(Math.min(3,X)).slice(2)+(X>3?_.UR(0,X-3):""));case "E":return Q=f.getDay(),X>=4?S.JSC$9352_dateTimeSymbols_.WEEKDAYS[Q]:S.JSC$9352_dateTimeSymbols_.SHORTWEEKDAYS[Q];case "a":return CZh(S,U);case "b":return CZh(S,U);case "B":return CZh(S,U);case "h":return LL(U),
PE(S,_.UR(vE(U)%12||12,X));case "K":return LL(U),PE(S,_.UR(vE(U)%12,X));case "H":return LL(U),PE(S,_.UR(vE(U),X));case "c":a:switch(Q=f.getDay(),X){case 5:X=S.JSC$9352_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[Q];break a;case 4:X=S.JSC$9352_dateTimeSymbols_.STANDALONEWEEKDAYS[Q];break a;case 3:X=S.JSC$9352_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[Q];break a;default:X=PE(S,_.UR(Q,1))}return X;case "L":a:switch(Q=f.getMonth(),X){case 5:X=S.JSC$9352_dateTimeSymbols_.STANDALONENARROWMONTHS[Q];break a;
case 4:X=S.JSC$9352_dateTimeSymbols_.STANDALONEMONTHS[Q];break a;case 3:X=S.JSC$9352_dateTimeSymbols_.STANDALONESHORTMONTHS[Q];break a;default:X=PE(S,_.UR(Q+1,X))}return X;case "Q":return Q=Math.floor(f.getMonth()/3),X<4?S.JSC$9352_dateTimeSymbols_.SHORTQUARTERS[Q]:S.JSC$9352_dateTimeSymbols_.QUARTERS[Q];case "d":return PE(S,_.UR(f.getDate(),X));case "m":return LL(U),PE(S,_.UR(U.getMinutes?U.getMinutes():0,X));case "s":return LL(U),PE(S,_.UR(U.getSeconds(),X));case "v":return(a||dP(Q.getTimezoneOffset())).timeZoneId_;
case "V":return S=a||dP(Q.getTimezoneOffset()),X<=2?S.timeZoneId_:bK_(S,Q)>0?S.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?S.tzNamesExt_.DST_GENERIC_LOCATION:S.tzNamesExt_.DST_GENERIC_LOCATION:S.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?S.tzNamesExt_.STD_GENERIC_LOCATION:S.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return Q=DD_(U.getFullYear(),U.getMonth(),U.getDate(),S.JSC$9352_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,S.JSC$9352_dateTimeSymbols_.FIRSTDAYOFWEEK),PE(S,_.UR(Math.floor(Math.round((Q-(new Date((new Date(Q)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,X));case "z":return S=a||dP(Q.getTimezoneOffset()),X<4?S.tzNames_[bK_(S,Q)>0?2:0]:S.tzNames_[bK_(S,Q)>0?3:1];case "Z":return c=a||dP(Q.getTimezoneOffset()),X<4?(X=-NPl(c,Q),S=[X<0?"-":"+"],X=Math.abs(X),S.push(_.UR(Math.floor(X/60)%100,2),_.UR(X%60,2)),X=S.join("")):X=PE(S,nyd(NPl(c,Q))),X;default:return""}};var HK$=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,DOH=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,NIY=function(S){this.patternParts_=[];this.JSC$9361_dateTimeSymbols_=hW;if(typeof S=="number"){S>11&&(S=10);if(S<4)var c=this.JSC$9361_dateTimeSymbols_.DATEFORMATS[S];else S<8?c=this.JSC$9361_dateTimeSymbols_.TIMEFORMATS[S-4]:(c=this.JSC$9361_dateTimeSymbols_.DATETIMEFORMATS[S-8],c=c.replace("{1}",this.JSC$9361_dateTimeSymbols_.DATEFORMATS[S-8]),c=c.replace("{0}",this.JSC$9361_dateTimeSymbols_.TIMEFORMATS[S-
8]));pqi(this,c)}else pqi(this,S)},pqi=function(S,c){for(var Q=!1,f="",U=0;U<c.length;U++){var a=c.charAt(U);
if(HK$.test(a))for(f.length>0&&(S.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f=""),S.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});U<c.length-1&&c.charAt(U+1)==" ";)U++;else if(Q)a=="'"?U+1<c.length&&c.charAt(U+1)=="'"?(f+="'",U++):Q=!1:f+=a;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(a)>=0){f.length>0&&(S.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1}),f="");for(var X=c.charAt(U),z=U+1;z<c.length&&c.charAt(z)==X;)z++;X=z-U;X<=0?z=!1:(z="MydhHmsSDkK".indexOf(a),
z=z>0||z==0&&X<3);S.patternParts_.push({text:a,count:X,abutStart:!1,numeric:z});U+=X-1}else a=="'"?U+1<c.length&&c.charAt(U+1)=="'"?(f+="'",U++):Q=!0:f+=a}f.length>0&&S.patternParts_.push({text:f,count:0,abutStart:!1,numeric:!1});c=!1;for(Q=0;Q<S.patternParts_.length;Q++)S.patternParts_[Q].numeric?!c&&Q+1<S.patternParts_.length&&S.patternParts_[Q+1].numeric&&(c=!0,S.patternParts_[Q].abutStart=!0):c=!1};
NIY.prototype.parse=function(S,c,Q){var f=!1,U=!1;Q&&(f=Q.predictive||!1,U=Q.validate||!1);if(f)for(Q=0;Q<this.patternParts_.length;Q++){var a=this.patternParts_[Q];if(a.count>0&&("abBhHkKm".indexOf(a.text.charAt(0))<0||a.count>2||a.abutStart))throw Error("$d`"+a.text.charAt(0));}a=new hrl;Q=[0];a.dayPeriodIndex=-1;for(var X=0;X<this.patternParts_.length&&!(f&&Q[0]>=S.length);X++){if(this.patternParts_[X].count==0){a:{var z=S;var x=Q,I=this.patternParts_[X],n=f;if(I.text.match(HK$)!=null){if(I=x[0],
qmd(z,x),x[0]>I){z=!0;break a}}else{if(z.indexOf(I.text,x[0])==x[0]){x[0]+=I.text.length;z=!0;break a}if(n&&I.text.indexOf(z.substring(x[0]))==0){x[0]+=z.length-x[0];z=!0;break a}}z=!1}if(z)continue;return 0}if(this.patternParts_[X].abutStart){a:{x=S;I=Q;n=X;var b=I[0],N=0;for(z=n;z<this.patternParts_.length;z++){var l=this.patternParts_[z],H=l.count;if(H===0)break;if(z==n&&(H-=N,N++,H==0)){z=0;break a}var q=z>n&&l.numeric,w=I[0];if(!TPz(this,x,I,l,H,a,!1)||q&&I[0]-w<H)z=n-1,I[0]=b}z-=n}if(z<=0)return 0;
X+=z-1}else if(!TPz(this,S,Q,this.patternParts_[X],0,a,f))return 0}a:{S=U;if(c==null)throw Error("ae");a.era!=void 0&&a.year!=void 0&&a.era==0&&a.year>0&&(a.year=-(a.year-1));a.year!=void 0&&c.setFullYear(a.year);f=c.getDate();c.setDate(1);a.month!=void 0&&c.setMonth(a.month);a.day!=void 0?c.setDate(a.day):(U=LaM(c.getFullYear(),c.getMonth()),c.setDate(f>U?U:f));typeof c.setHours==="function"&&(a.hours==void 0&&(a.hours=c.getHours()),a.hours<12&&(a.ampm!=void 0&&a.ampm>0?a.hours+=12:a.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(a.dayPeriodName)||["night1","night2"].includes(a.dayPeriodName)&&a.hours>=6)&&(a.hours+=12)),c.setHours(a.hours));typeof c.setMinutes==="function"&&a.minutes!=void 0&&c.setMinutes(a.minutes);typeof c.setSeconds==="function"&&a.seconds!=void 0&&c.setSeconds(a.seconds);typeof c.setMilliseconds==="function"&&a.milliseconds!=void 0&&c.setMilliseconds(a.milliseconds);if(S&&(a.year&&a.year!=c.getFullYear()||a.month&&a.month!=
c.getMonth()||a.day&&a.day!=c.getDate()||a.hours&&a.hours>=24||a.minutes&&a.minutes>=60||a.seconds&&a.seconds>=60||a.milliseconds&&a.milliseconds>=1E3))c=!1;else{a.tzOffset!=void 0&&c.setTime(c.getTime()+(a.tzOffset-c.getTimezoneOffset())*60*1E3);a.ambiguousYear&&(S=new Date,S.setFullYear(S.getFullYear()-80),c.getTime()<S.getTime()&&c.setFullYear(S.getFullYear()+100));if(a.dayOfWeek!=void 0)if(a.day==void 0)a=(7+a.dayOfWeek-c.getDay())%7,a>3&&(a-=7),S=c.getMonth(),c.setDate(c.getDate()+a),c.getMonth()!=
S&&c.setDate(c.getDate()+(a>0?-7:7));else if(a.dayOfWeek!=c.getDay()){c=!1;break a}c=!0}}return c?Q[0]:0};
var TPz=function(S,c,Q,f,U,a,X){qmd(c,Q);if(f.numeric&&U>0&&Q[0]+U>c.length)return!1;switch(f.text.charAt(0)){case "G":return EW(c,Q,[S.JSC$9361_dateTimeSymbols_.ERAS],function(z){return a.era=z}),!0;
case "M":case "L":return wqu(S,c,Q,U,f,a);case "E":return EW(c,Q,[S.JSC$9361_dateTimeSymbols_.WEEKDAYS,S.JSC$9361_dateTimeSymbols_.SHORTWEEKDAYS],function(z){return a.dayOfWeek=z});
case "B":case "b":return U=[],S=[[].concat(S.JSC$9361_dateTimeSymbols_.AMPMS)],U.push("isAm"),U.push("isPm"),c=EW(c,Q,S,function(z){return a.dayPeriodIndex=z},X),a.dayPeriodName=U[a.dayPeriodIndex],X?c:!0;
case "a":return c=EW(c,Q,[S.JSC$9361_dateTimeSymbols_.AMPMS],function(z){return a.ampm=z},X),X?c:!0;
case "y":return sBu(S,c,Q,f,U,a);case "Q":return EW(c,Q,[S.JSC$9361_dateTimeSymbols_.QUARTERS,S.JSC$9361_dateTimeSymbols_.SHORTQUARTERS],function(z){a.month=z*3;a.day=1});
case "d":return tk(S,c,Q,f,U,function(z){a.day=z}),!0;
case "S":return MDd(S,c,Q,U,a);case "h":case "K":case "H":case "k":return c=tk(S,c,Q,f,U,function(z){a.hours=f.text.charAt(0)==="h"&&z===12?0:z},X),X?c:!0;
case "m":return c=tk(S,c,Q,f,U,function(z){a.minutes=z},X),X?c:!0;
case "s":return tk(S,c,Q,f,U,function(z){a.seconds=z}),!0;
case "z":case "Z":case "v":return iKz(S,c,Q,a);default:return!1}},sBu=function(S,c,Q,f,U,a){var X=Q[0];
U=Vh(S,c,Q,U);U===null&&(U=Vh(S,c,Q,0,!0));if(U===null)return!1;U>=0&&Q[0]-X==2&&f.count==2?(S=U,c=(new Date).getFullYear()-80,Q=c%100,a.ambiguousYear=S==Q,S+=Math.floor(c/100)*100+(S<Q?100:0),a.year=S):a.year=U;return!0},wqu=function(S,c,Q,f,U,a){return U.numeric&&tk(S,c,Q,U,f,function(X){a.month=X-1})?!0:EW(c,Q,[S.JSC$9361_dateTimeSymbols_.MONTHS,
S.JSC$9361_dateTimeSymbols_.STANDALONEMONTHS,S.JSC$9361_dateTimeSymbols_.SHORTMONTHS,S.JSC$9361_dateTimeSymbols_.STANDALONESHORTMONTHS],function(X){a.month=X})},MDd=function(S,c,Q,f,U){var a=Q[0];
S=Vh(S,c,Q,f);if(S===null)return!1;Q=Q[0]-a;U.milliseconds=Q<3?S*Math.pow(10,3-Q):Math.round(S/Math.pow(10,Q-3));return!0},iKz=function(S,c,Q,f){c.indexOf("GMT",Q[0])==Q[0]&&(Q[0]+=3);
if(Q[0]>=c.length)return f.tzOffset=0,!0;var U=Q[0],a=Vh(S,c,Q,0,!0);if(a===null)return!1;if(Q[0]<c.length&&c.charAt(Q[0])==":"){var X=a*60;Q[0]++;a=Vh(S,c,Q,0);if(a===null)return!1;X+=a}else X=a,X=X<24&&Q[0]-U<=3?X*60:X%100+X/100*60;f.tzOffset=-X;return!0},tk=function(S,c,Q,f,U,a,X){X=X||!1;
var z=Q[0];S=Vh(S,c,Q,U);if(S===null)return!1;if(X&&Q[0]-z<f.count){if(Q[0]<c.length)return!1;S*=Math.pow(10,f.count-(Q[0]-z))}a(S);return!0},EW=function(S,c,Q,f,U){U=U||!1;
for(var a,X=0;X<Q.length;X++){a=c;for(var z=Q[X],x=U,I=0,n=null,b=S.substring(a[0]).toLowerCase(),N=0;N<z.length;N++){var l=z[N].toLowerCase();if(x&&l.indexOf(b)==0){I=b.length;n=N;break}z[N].length>I&&b.indexOf(l)==0&&(I=z[N].length,n=N)}n!==null&&(a[0]+=I);a=n;if(a!==null)return f(a),!0}return!1},qmd=function(S,c){(S=S.substring(c[0]).match(DOH))&&(c[0]+=S[0].length)},Vh=function(S,c,Q,f,U){c=f>0?c.substring(0,Q[0]+f):c;
U=U||!1;if(S.JSC$9361_dateTimeSymbols_.ZERODIGIT){f=[];for(var a=Q[0];a<c.length;a++){var X=c.charCodeAt(a)-S.JSC$9361_dateTimeSymbols_.ZERODIGIT;f.push(0<=X&&X<=9?String.fromCharCode(X+48):c.charAt(a))}c=f.join("")}else c=c.substring(Q[0]);S=c.match(new RegExp("^"+(U?"[+-]?":"")+"\\d+"));if(!S)return null;Q[0]+=S[0].length;return parseInt(S[0],10)},hrl=function(){};
hrl.prototype.ambiguousYear=!1;_.ZK_={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 GhH={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"},WM_=GhH,gyT=GhH;gyT=WM_=GhH;var khe,R0,o0,iuz,yh,erT;
_.eD=function(S,c,Q,f){var U;if(U=c){a:if(c&&c.length===3){for(U=0;U<3;U++){var a=c[U];if(a<"A"||a>"Z"&&a<"a"||a>"z"){U=!1;break a}}U=!0}else U=!1;U=!U}if(U)throw new TypeError("be");this.intlCurrencyCode_=c?c.toUpperCase():null;this.currencyStyle_=Q||0;this.overrideNumberFormatSymbols_=f||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_=R0(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof S==="number")switch(S){case 1:yh(this,R0(this).DECIMAL_PATTERN);break;case 2:yh(this,R0(this).SCIENTIFIC_PATTERN);break;case 3:yh(this,R0(this).PERCENT_PATTERN);break;case 4:S=R0(this).CURRENCY_PATTERN;c=["0"];if(Q=
d6[o0(this)]){Q=Q[0]&7;if(Q>0)for(c.push("."),f=0;f<Q;f++)c.push("0");S=S.replace(/0.00/g,c.join(""))}yh(this,S);break;case 5:erT(this,1);break;case 6:erT(this,2);break;default:throw Error("ee");}else yh(this,S)};
khe=!1;R0=function(S){return S.overrideNumberFormatSymbols_||(khe?gyT:WM_)};
o0=function(S){return S.intlCurrencyCode_||R0(S).DEF_CURRENCY_CODE};
iuz=function(S,c){if(c>308)throw Error("de`"+c);S.maximumFractionDigits_=c;return S};
yh=function(S,c){var Q=[0];S.positivePrefix_=rbH(S,c,Q);for(var f=Q[0],U=-1,a=0,X=0,z=0,x=-1,I=c.length,n=!0;Q[0]<I&&n;Q[0]++)switch(c.charAt(Q[0])){case "#":X>0?z++:a++;x>=0&&U<0&&x++;break;case "0":if(z>0)throw Error("ke`"+c);X++;x>=0&&U<0&&x++;break;case ",":x>0&&S.groupingArray_.push(x);x=0;break;case ".":if(U>=0)throw Error("le`"+c);U=a+X+z;break;case "E":if(S.useExponentialNotation_)throw Error("me`"+c);S.useExponentialNotation_=!0;S.minExponentDigits_=0;Q[0]+1<I&&c.charAt(Q[0]+1)=="+"&&(Q[0]++,
S.useSignForPositiveExponent_=!0);for(;Q[0]+1<I&&c.charAt(Q[0]+1)=="0";)Q[0]++,S.minExponentDigits_++;if(a+X<1||S.minExponentDigits_<1)throw Error("ne`"+c);n=!1;break;default:Q[0]--,n=!1}X==0&&a>0&&U>=0&&(X=U,X==0&&X++,z=a-X,a=X-1,X=1);if(U<0&&z>0||U>=0&&(U<a||U>a+X)||x==0)throw Error("oe`"+c);z=a+X+z;S.maximumFractionDigits_=U>=0?z-U:0;U>=0&&(S.minimumFractionDigits_=a+X-U,S.minimumFractionDigits_<0&&(S.minimumFractionDigits_=0));S.minimumIntegerDigits_=(U>=0?U:z)-a;S.useExponentialNotation_&&(S.maximumIntegerDigits_=
a+S.minimumIntegerDigits_,S.maximumFractionDigits_==0&&S.minimumIntegerDigits_==0&&(S.minimumIntegerDigits_=1));S.groupingArray_.push(Math.max(0,x));S.decimalSeparatorAlwaysShown_=U==0||U==z;f=Q[0]-f;S.positiveSuffix_=rbH(S,c,Q);Q[0]<c.length&&c.charAt(Q[0])==";"?(Q[0]++,S.multiplier_!=1&&(S.negativePercentSignExpected_=!0),S.negativePrefix_=rbH(S,c,Q),Q[0]+=f,S.negativeSuffix_=rbH(S,c,Q)):(S.negativePrefix_+=S.positivePrefix_,S.negativeSuffix_+=S.positiveSuffix_)};
erT=function(S,c){S.compactStyle_=c;yh(S,R0(S).DECIMAL_PATTERN);S.minimumFractionDigits_=0;iuz(S,2);if(S.minimumFractionDigits_>0)throw Error("ce");S.significantDigits_=2};
_.eD.prototype.parse=function(S,c){c=c||[0];if(this.compactStyle_!==0)throw Error("fe");S=S.replace(/ |\u202f/g,"\u00a0");var Q=S.indexOf(this.positivePrefix_,c[0])==c[0],f=S.indexOf(this.negativePrefix_,c[0])==c[0];Q&&f&&(this.positivePrefix_.length>this.negativePrefix_.length?f=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(Q=!1));Q?c[0]+=this.positivePrefix_.length:f&&(c[0]+=this.negativePrefix_.length);if(S.indexOf(R0(this).INFINITY,c[0])==c[0]){c[0]+=R0(this).INFINITY.length;var U=
Infinity}else{U=S;var a=!1,X=!1,z=!1,x=-1,I=1,n=R0(this).DECIMAL_SEP,b=R0(this).GROUP_SEP,N=R0(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ge");b=b.replace(/\u202f/g,"\u00a0");for(var l="";c[0]<U.length;c[0]++){var H=U.charAt(c[0]),q=dOd(this,H);if(q>=0&&q<=9)l+=q,z=!0;else if(H==n.charAt(0)){if(a||X)break;l+=".";a=!0}else if(H==b.charAt(0)&&("\u00a0"!=b.charAt(0)||c[0]+1<U.length&&dOd(this,U.charAt(c[0]+1))>=0)){if(a||X)break}else if(H==N.charAt(0)){if(X)break;l+="E";X=!0;x=c[0]}else if(H==
"+"||H=="-"){if(z&&x!=c[0]-1)break;l+=H}else if(this.multiplier_==1&&H==R0(this).PERCENT.charAt(0)){if(I!=1)break;I=100;if(z){c[0]++;break}}else if(this.multiplier_==1&&H==R0(this).PERMILL.charAt(0)){if(I!=1)break;I=1E3;if(z){c[0]++;break}}else break}this.multiplier_!=1&&(I=this.multiplier_);U=parseFloat(l)/I}if(Q){if(S.indexOf(this.positiveSuffix_,c[0])!=c[0])return NaN;c[0]+=this.positiveSuffix_.length}else if(f){if(S.indexOf(this.negativeSuffix_,c[0])!=c[0])return NaN;c[0]+=this.negativeSuffix_.length}return f?
-U:U};
_.eD.prototype.format=function(S){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("he");if(isNaN(S))return R0(this).NAN;var c=[];var Q=S;if(this.compactStyle_==0)Q=mU;else{Q=Math.abs(Q);var f=vys(this,Q<=1?0:PZh(Q)).divisorBase;Q=vys(this,f+PZh(LMd(this,Ss(Q,-f)).intValue))}S=Ss(S,-Q.divisorBase);(f=S<0||S==0&&1/S<0)?Q.negative_prefix?c.push(Q.negative_prefix):(c.push(Q.prefix),c.push(this.negativePrefix_)):(c.push(Q.prefix),c.push(this.positivePrefix_));if(isFinite(S))if(S*=
f?-1:1,S*=this.multiplier_,this.useExponentialNotation_){var U=S;if(U==0)Eyl(this,U,this.minimumIntegerDigits_,c),tDs(this,0,c);else{var a=Math.floor(Math.log(U)/Math.log(10)+2E-15);U=Ss(U,-a);var X=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(X=a%this.maximumIntegerDigits_,X<0&&(X=this.maximumIntegerDigits_+X),U=Ss(U,X),a-=X,X=1):this.minimumIntegerDigits_<1?(a++,U=Ss(U,-1)):(a-=this.minimumIntegerDigits_-1,U=Ss(U,this.minimumIntegerDigits_-
1));Eyl(this,U,X,c);tDs(this,a,c)}}else Eyl(this,S,this.minimumIntegerDigits_,c);else c.push(R0(this).INFINITY);f?Q.negative_suffix?c.push(Q.negative_suffix):(isFinite(S)&&c.push(Q.suffix),c.push(this.negativeSuffix_)):(isFinite(S)&&c.push(Q.suffix),c.push(this.positiveSuffix_));return c.join("")};
var LMd=function(S,c){var Q=Ss(c,S.maximumFractionDigits_);S.significantDigits_>0&&(Q=VDs(Q,S.significantDigits_,S.maximumFractionDigits_));Q=Math.round(Q);if(isFinite(Q)){var f=Math.floor(Ss(Q,-S.maximumFractionDigits_));Q=Math.floor(Q-Ss(f,S.maximumFractionDigits_));if(Q<0||Q>=Ss(1,S.maximumFractionDigits_))f=Math.round(c),Q=0}else f=c,Q=0;return{intValue:f,fracValue:Q}},Eyl=function(S,c,Q,f){if(S.minimumFractionDigits_>S.maximumFractionDigits_)throw Error("he");
f||(f=[]);c=LMd(S,c);var U=c.intValue,a=c.fracValue,X=S.minimumFractionDigits_>0||a>0||!1;c=S.minimumFractionDigits_;X&&(c=S.minimumFractionDigits_);for(var z="",x=U;x>1E20;)z="0"+z,x=Math.round(Ss(x,-1));z=x+z;var I=R0(S).DECIMAL_SEP;x=R0(S).ZERO_DIGIT.codePointAt(0);var n=z.length,b=0;if(U>0||Q>0){for(U=n;U<Q;U++)f.push(String.fromCodePoint(x));if(S.groupingArray_.length>=2)for(Q=1;Q<S.groupingArray_.length;Q++)b+=S.groupingArray_[Q];Q=n-b;if(Q>0){U=S.groupingArray_;b=n=0;for(var N,l=R0(S).GROUP_SEP,
H=z.length,q=0;q<H;q++)if(f.push(String.fromCodePoint(x+Number(z.charAt(q)))),H-q>1)if(N=U[b],q<Q){var w=Q-q;(N===1||N>0&&w%N===1)&&f.push(l)}else b<U.length&&(q===Q?b+=1:N===q-Q-n+1&&(f.push(l),n+=N,b+=1))}else{Q=z;z=S.groupingArray_;U=R0(S).GROUP_SEP;N=Q.length;l=[];for(n=z.length-1;n>=0&&N>0;n--){b=z[n];for(H=0;H<b&&N-H-1>=0;H++)l.push(String.fromCodePoint(x+Number(Q.charAt(N-H-1))));N-=b;N>0&&l.push(U)}f.push.apply(f,l.reverse())}}else X||f.push(String.fromCodePoint(x));(S.decimalSeparatorAlwaysShown_||
X)&&f.push(I);a=String(a);X=a.split("e+");X.length==2&&(a=String(VDs(parseFloat(X[0]),S.significantDigits_,1)),a=a.replace(".",""),a+=(0,_.rCp)("0",parseInt(X[1],10)-a.length+1));S.maximumFractionDigits_+1>a.length&&(a="1"+(0,_.rCp)("0",S.maximumFractionDigits_-a.length)+a);for(S=a.length;a.charAt(S-1)=="0"&&S>c+1;)S--;for(c=1;c<S;c++)f.push(String.fromCodePoint(x+Number(a.charAt(c))))},tDs=function(S,c,Q){Q.push(R0(S).EXP_SYMBOL);
c<0?(c=-c,Q.push(R0(S).MINUS_SIGN)):S.useSignForPositiveExponent_&&Q.push(R0(S).PLUS_SIGN);c=""+c;for(var f=R0(S).ZERO_DIGIT,U=c.length;U<S.minExponentDigits_;U++)Q.push(f);S=f.codePointAt(0)-Rr$;for(f=0;f<c.length;f++)Q.push(String.fromCodePoint(S+c.codePointAt(f)))},dOd=function(S,c){c=c.codePointAt(0);
if(48<=c&&c<58)return c-48;S=R0(S).ZERO_DIGIT.codePointAt(0);return S<=c&&c<S+10?c-S:-1},Rr$="0".codePointAt(0),rbH=function(S,c,Q){for(var f="",U=!1,a=c.length;Q[0]<a;Q[0]++){var X=c.charAt(Q[0]);
if(X=="'")Q[0]+1<a&&c.charAt(Q[0]+1)=="'"?(Q[0]++,f+="'"):U=!U;else if(U)f+=X;else switch(X){case "#":case "0":case ",":case ".":case ";":return f;case "\u00a4":if(Q[0]+1<a&&c.charAt(Q[0]+1)=="\u00a4")Q[0]++,f+=o0(S);else switch(S.currencyStyle_){case 0:X=o0(S);f+=X in d6?d6[X][1]:X;break;case 2:X=o0(S);var z=d6[X];f+=z?X==z[1]?X:X+" "+z[1]:X;break;case 1:X=o0(S),f+=X in d6?d6[X][2]:X}break;case "%":if(!S.negativePercentSignExpected_&&S.multiplier_!=1)throw Error("ie");if(S.negativePercentSignExpected_&&
S.multiplier_!=100)throw Error("je");S.multiplier_=100;S.negativePercentSignExpected_=!1;f+=R0(S).PERCENT;break;case "\u2030":if(!S.negativePercentSignExpected_&&S.multiplier_!=1)throw Error("ie");if(S.negativePercentSignExpected_&&S.multiplier_!=1E3)throw Error("je");S.multiplier_=1E3;S.negativePercentSignExpected_=!1;f+=R0(S).PERMILL;break;default:f+=X}}return f},mU={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},vys=function(S,c){S=S.compactStyle_==1?r6.COMPACT_DECIMAL_SHORT_PATTERN:r6.COMPACT_DECIMAL_LONG_PATTERN;S==null&&(S=r6.COMPACT_DECIMAL_SHORT_PATTERN);if(c<3)return mU;c=Math.min(14,c);var Q=S[Ss(1,c)];for(--c;!Q&&c>=3;)Q=S[Ss(1,c)],c--;if(!Q)return mU;Q=Q.other;var f=S="",U=Q.indexOf(";");U>=0&&(Q=Q.substring(0,U),U=Q.substring(U+1))&&(f=/([^0]*)(0+)(.*)/.exec(U),S=f[1],f=f[3]);return Q&&Q!="0"?(Q=/([^0]*)(0+)(.*)/.exec(Q))?{divisorBase:c+
1-(Q[2].length-1),negative_prefix:S,negative_suffix:f,prefix:Q[1],suffix:Q[3]}:mU:mU},PZh=function(S){if(!isFinite(S))return S>0?S:0;
for(var c=0;(S/=10)>=1;)c++;return c},Ss=function(S,c){if(!S||!isFinite(S)||c==0)return S;
S=String(S).split("e");return parseFloat(S[0]+"e"+(parseInt(S[1]||0,10)+c))},ybd=function(S,c){return S&&isFinite(S)?Ss(Math.round(Ss(S,c)),-c):S},VDs=function(S,c,Q){if(!S)return S;
c=c-PZh(S)-1;return c<-Q?ybd(S,-Q):ybd(S,c)};var oyh=function(S){return S%10==1&&S%100!=11?"one":S%10==2&&S%100!=12?"two":S%10==3&&S%100!=13?"few":"other"},mOi=oyh;
mOi=oyh;var S__;S__=function(S,c){var Q=S|0;if(void 0===c){c=Math;var f=c.min,U=S+"",a=U.indexOf(".");c=f.call(c,a===-1?0:U.length-a-1,3)}f=Math.pow(10,c);S={v:c,f:(S*f|0)%f};return Q==1&&S.v==0?"one":"other"};
_.Pq=S__;_.Pq=S__;var c4z,QMz,fOl,J4d,aOT;_.U6p=function(S){this.JSC$9404_pattern_=S;this.parsedPattern_=this.literals_=this.initialLiterals_=null;S=WM_;var c=r6;if(c4z!==S||QMz!==c)c4z=S,QMz=c,fOl=new _.eD(1);this.numberFormatter_=fOl};
c4z=null;QMz=null;fOl=null;J4d=RegExp("'([{}#].*?)'","g");aOT=RegExp("''","g");
_.U6p.prototype.format=function(S){if(this.JSC$9404_pattern_){this.initialLiterals_=[];var c=A4u(this,this.JSC$9404_pattern_);this.parsedPattern_=XVT(this,c);this.JSC$9404_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.VY(this.initialLiterals_),c=[],OJl(this,this.parsedPattern_,S,!1,c),S=c.join("");this.literals_.length>0;)S=S.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else S="";return S};
var OJl=function(S,c,Q,f,U){for(var a=0;a<c.length;a++)switch(c[a].type){case 4:U.push(c[a].value);break;case 3:var X=c[a].value;var z=S,x=U,I=Q[X];I===void 0?x.push("Undefined parameter - "+X):(z.literals_.push(I),x.push(z.buildPlaceholder_(z.literals_)));break;case 2:X=c[a].value;z=S;x=Q;I=f;var n=U,b=X.argumentIndex;x[b]===void 0?n.push("Undefined parameter - "+b):(b=X[x[b]],b===void 0&&(b=X.other),OJl(z,b,x,I,n));break;case 0:X=c[a].value;zMl(S,X,Q,_.Pq,f,U);break;case 1:X=c[a].value,zMl(S,X,
Q,mOi,f,U)}},zMl=function(S,c,Q,f,U,a){var X=c.argumentIndex,z=c.argumentOffset,x=+Q[X];
isNaN(x)?a.push("Undefined or invalid parameter - "+X):(z=x-z,X=c[Q[X]],X===void 0&&(f=f(Math.abs(z)),X=c[f],X===void 0&&(X=c.other)),c=[],OJl(S,X,Q,U,c),Q=c.join(""),U?a.push(Q):(S=S.numberFormatter_.format(z),a.push(Q.replace(/#/g,S))))},A4u=function(S,c){var Q=S.initialLiterals_,f=S.buildPlaceholder_.bind(S);
c=c.replace(aOT,function(){Q.push("'");return f(Q)});
return c=c.replace(J4d,function(U,a){Q.push(a);return f(Q)})},x6d=function(S){var c=0,Q=[],f=[],U=/[{}]/g;
U.lastIndex=0;for(var a;a=U.exec(S);){var X=a.index;a[0]=="}"?(Q.pop(),Q.length==0&&(a={type:1},a.value=S.substring(c,X),f.push(a),c=X+1)):(Q.length==0&&(c=S.substring(c,X),c!=""&&f.push({type:0,value:c}),c=X+1),Q.push("{"))}S=S.substring(c);S!=""&&f.push({type:0,value:S});return f},FSl=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,Bhh=/^\s*(\w+)\s*,\s*selectordinal\s*,/,IOd=/^\s*(\w+)\s*,\s*select\s*,/,XVT=function(S,c){var Q=[];
c=x6d(c);for(var f=0;f<c.length;f++){var U={};if(0==c[f].type)U.type=4,U.value=c[f].value;else if(1==c[f].type){var a=c[f].value;switch(FSl.test(a)?0:Bhh.test(a)?1:IOd.test(a)?2:/^\s*\w+\s*/.test(a)?3:5){case 2:U.type=2;U.value=nkd(S,c[f].value);break;case 0:U.type=0;U.value=bJd(S,c[f].value);break;case 1:U.type=1;U.value=NhT(S,c[f].value);break;case 3:U.type=3,U.value=c[f].value}}Q.push(U)}return Q},nkd=function(S,c){var Q="";
c=c.replace(IOd,function(z,x){Q=x;return""});
var f={};f.argumentIndex=Q;c=x6d(c);for(var U=0;U<c.length;){var a=c[U].value;U++;var X=void 0;1==c[U].type&&(X=XVT(S,c[U].value));f[a.replace(/\s/g,"")]=X;U++}return f},bJd=function(S,c){var Q="",f=0;
c=c.replace(FSl,function(x,I,n){Q=I;n&&(f=parseInt(n,10));return""});
var U={};U.argumentIndex=Q;U.argumentOffset=f;c=x6d(c);for(var a=0;a<c.length;){var X=c[a].value;a++;var z=void 0;1==c[a].type&&(z=XVT(S,c[a].value));U[X.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=z;a++}return U},NhT=function(S,c){var Q="";
c=c.replace(Bhh,function(z,x){Q=x;return""});
var f={};f.argumentIndex=Q;f.argumentOffset=0;c=x6d(c);for(var U=0;U<c.length;){var a=c[U].value;U++;var X=void 0;1==c[U].type&&(X=XVT(S,c[U].value));f[a.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=X;U++}return f};
_.U6p.prototype.buildPlaceholder_=function(S){return"\ufddf_"+(S.length-1).toString(10)+"_"};var KST;
KST={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 QFT=function(){this.rdtfSymbols_=$6h||KST;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
QFT.prototype.format=function(S,c){a:{c=uUH(this,c);switch(this.style_){case 2:if(c.NARROW!=void 0){c=c.NARROW;break a}case 1:if(c.SHORT!=void 0){c=c.SHORT;break a}default:c=c.LONG;break a}c=void 0}if(!this.alwaysNumeric_&&c&&c.R&&c.R[""+S])S=c.R[""+S];else if(c){var Q=Math.abs(S);S=(new _.U6p("{N,plural,"+(S>0||S==0&&1/S==Infinity?c.F:c.P)+"}")).format({N:Q})}else S="";return S};
var uUH=function(S,c){switch(c){default:case 0:return S.rdtfSymbols_.YEAR;case 1:return S.rdtfSymbols_.QUARTER;case 2:return S.rdtfSymbols_.MONTH;case 3:return S.rdtfSymbols_.WEEK;case 4:return S.rdtfSymbols_.DAY;case 5:return S.rdtfSymbols_.HOUR;case 6:return S.rdtfSymbols_.MINUTE;case 7:return S.rdtfSymbols_.SECOND}};var jMh=function(S,c,Q,f,U,a,X,z){this.x0=S;this.y0=c;this.x1=Q;this.y1=f;this.x2=U;this.y2=a;this.x3=X;this.y3=z};
jMh.prototype.clone=function(){return new jMh(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
jMh.prototype.equals=function(S){return this.x0==S.x0&&this.y0==S.y0&&this.x1==S.x1&&this.y1==S.y1&&this.x2==S.x2&&this.y2==S.y2&&this.x3==S.x3&&this.y3==S.y3};
var lOs=function(S,c){if(c==0)return S.x0;if(c==1)return S.x3;var Q=Yq(S.x0,S.x1,c),f=Yq(S.x1,S.x2,c);S=Yq(S.x2,S.x3,c);Q=Yq(Q,f,c);f=Yq(f,S,c);return Yq(Q,f,c)},Y_d=function(S,c){var Q=(c-S.x0)/(S.x3-S.x0);
if(Q<=0)return 0;if(Q>=1)return 1;for(var f=0,U=1,a=0,X=0;X<8;X++){a=lOs(S,Q);var z=(lOs(S,Q+1E-6)-a)/1E-6;if(Math.abs(a-c)<1E-6)return Q;if(Math.abs(z)<1E-6)break;else a<c?f=Q:U=Q,Q-=(a-c)/z}for(X=0;Math.abs(a-c)>1E-6&&X<8;X++)a<c?(f=Q,Q=(Q+U)/2):(U=Q,Q=(Q+f)/2),a=lOs(S,Q);return Q};var cx=function(){_.Y5.call(this);this.JSC$9425_name_="closure_frame"+ClT++;this.iframesForDisposal_=[];HJ_[this.JSC$9425_name_]=this},QP;
_.Xa(cx,_.Y5);var HJ_={},ClT=0,D6u=function(S,c){var Q=nn(S);_.rH$(c,function(f,U){Array.isArray(f)||(f=[f]);_.PY(f,function(a){a=Q.JSC$7365_createDom("INPUT",{type:"hidden",name:U,value:a});S.appendChild(a)})})};
_.J=cx.prototype;_.J.JSC$9427_form_=null;_.J.JSC$9427_iframe_=null;_.J.iframeName_=null;_.J.nextIframeId_=0;_.J.JSC$9427_active_=!1;_.J.complete_=!1;_.J.success_=!1;_.J.lastContent_=null;_.J.JSC$9427_lastErrorCode_=0;_.J.iframeDisposalTimer_=null;
_.J.send=function(S,c,Q,f){if(this.JSC$9427_active_)throw Error("pe");S=new _.V7(S);c=c?c.toUpperCase():"GET";Q&&_.Ob(S);QP||(QP=_.px("FORM"),QP.acceptCharset="utf-8",Q=QP.style,Q.position="absolute",Q.visibility="hidden",Q.top=Q.left="-10px",Q.width=Q.height="10px",Q.overflow="hidden",document.body.appendChild(QP));this.JSC$9427_form_=QP;c=="GET"&&D6u(this.JSC$9427_form_,S.JSC$8068_queryData_);f&&D6u(this.JSC$9427_form_,f);Q=S.toString();Q=RqY(Q);f=this.JSC$9427_form_;Q=_.H7(B7(Q));Q!==void 0&&(f.action=
Q);this.JSC$9427_form_.method=c;pVs(this);hMH(this)};
_.J.abort=function(S){if(this.JSC$9427_active_){var c=fO(this);if(c)if(uS(c))c.removeAllListeners(void 0);else if(c=j1(c)){var Q=0,f;for(f in c.listeners)for(var U=c.listeners[f].concat(),a=0;a<U.length;++a)l7(U[a])&&++Q}this.success_=this.JSC$9427_active_=this.complete_=!1;this.JSC$9427_lastErrorCode_=S||7;this.dispatchEvent("abort");q_l(this)}};
_.J.disposeInternal=function(){this.JSC$9427_active_&&this.abort();cx.superClass_.disposeInternal.call(this);this.JSC$9427_iframe_&&Th$(this);hMH(this);this.JSC$9427_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9427_form_=null;this.JSC$9427_lastErrorCode_=0;delete HJ_[this.JSC$9425_name_]};
_.J.isComplete=function(){return this.complete_};
_.J.isSuccess=function(){return this.success_};
_.J.isActive=function(){return this.JSC$9427_active_};
_.J.getResponseText=function(){return this.lastContent_};
_.J.getLastError=function(){return _.Kch(this.JSC$9427_lastErrorCode_)};
var pVs=function(S){S.JSC$9427_active_=!0;S.complete_=!1;S.JSC$9427_lastErrorCode_=0;S.iframeName_=S.JSC$9425_name_+"_"+(S.nextIframeId_++).toString(36);S.JSC$9427_iframe_=nn(S.JSC$9427_form_).JSC$7365_createDom("IFRAME",{name:S.iframeName_,id:S.iframeName_});var c=S.JSC$9427_iframe_.style;c.visibility="hidden";c.width=c.height="10px";c.display="none";_.Ir?c.marginTop=c.marginLeft="-10px":(c.position="absolute",c.top=c.left="-10px");nn(S.JSC$9427_form_).JSC$7363_document_.body.appendChild(S.JSC$9427_iframe_);
c=S.iframeName_+"_inner";var Q=zsT(S.JSC$9427_iframe_);if(document.baseURI){var f=XZ(c);f='<head><base href="'+XZ(document.baseURI)+'"></head><body><iframe id="'+f+'" name="'+f+'"></iframe>';f=h5(f)}else f=XZ(c),f=h5('<body><iframe id="'+f+'" name="'+f+'"></iframe>');Q.write(qg(f));_.HI(Q.getElementById(c),"load",S.onIframeLoaded_,!1,S);f=$x("TEXTAREA",S.JSC$9427_form_);for(var U=0,a=f.length;U<a;U++){var X=f[U].value;biz(f[U])!=X&&(_.ir(f[U],X),f[U].value=X)}f=Q.importNode(S.JSC$9427_form_,!0);f.target=
c;f.action=S.JSC$9427_form_.action;Q.body.appendChild(f);U=$x("SELECT",S.JSC$9427_form_);a=$x("SELECT",f);X=0;for(var z=U.length;X<z;X++)for(var x=$x("OPTION",U[X]),I=$x("OPTION",a[X]),n=0,b=x.length;n<b;n++)I[n].selected=x[n].selected;U=$x("INPUT",S.JSC$9427_form_);a=$x("INPUT",f);X=0;for(z=U.length;X<z;X++)if(U[X].type=="file"&&U[X].value!=a[X].value){S.JSC$9427_form_.target=c;f=S.JSC$9427_form_;break}try{S.errorHandled_=!1,f.submit(),Q.close(),_.Bg&&setTimeout(S.testForFirefoxSilentError_.bind(S),
250)}catch(N){_.lS(Q.getElementById(c),"load",S.onIframeLoaded_,!1,S),Q.close(),U$(S,2)}};
cx.prototype.onIframeLoaded_=function(){_.lS(fO(this),"load",this.onIframeLoaded_,!1,this);try{var S=this.JSC$9427_iframe_?zsT(fO(this)):null;this.complete_=!0;this.JSC$9427_active_=!1;try{var c=S.body;this.lastContent_=c.textContent||c.innerText}catch(U){var Q=1}var f;Q||typeof this.errorChecker_!="function"||(f=this.errorChecker_(S))&&(Q=4);Q?U$(this,Q):(this.success_=!0,this.JSC$9427_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),q_l(this))}catch(U){U$(this,1)}};
var U$=function(S,c){S.errorHandled_||(S.success_=!1,S.JSC$9427_active_=!1,S.complete_=!0,S.JSC$9427_lastErrorCode_=c,S.dispatchEvent("complete"),S.dispatchEvent("error"),q_l(S),S.errorHandled_=!0)},q_l=function(S){Th$(S);
hMH(S);S.JSC$9427_form_=null;S.dispatchEvent("ready")},Th$=function(S){var c=S.JSC$9427_iframe_;
c&&(c.onreadystatechange=null,c.onload=null,c.onerror=null,S.iframesForDisposal_.push(c));S.iframeDisposalTimer_&&(clearTimeout(S.iframeDisposalTimer_),S.iframeDisposalTimer_=null);_.Bg?S.iframeDisposalTimer_=setTimeout(S.disposeIframes_.bind(S),2E3):S.disposeIframes_();S.JSC$9427_iframe_=null;S.iframeName_=null};
cx.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var S=this.iframesForDisposal_.pop();_.K9(S)}};
var hMH=function(S){S.JSC$9427_form_&&S.JSC$9427_form_==QP&&_.TE(S.JSC$9427_form_)},fO=function(S){return S.JSC$9427_iframe_?zsT(S.JSC$9427_iframe_).getElementById(S.iframeName_+"_inner"):null};
cx.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9427_active_){var S=this.JSC$9427_iframe_?zsT(fO(this)):null;S&&!Tc(S,"documentUri")?(_.lS(fO(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?U$(this,3):U$(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.Je=function(S){return S=="\r"||S=="\n"||S==" "||S=="\t"};var wV_;_.a7=function(S){this.errorMessage_=null;this.result_=[];this.JSC$9429_buffer_="";this.stack_=[];this.JSC$9429_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!S||!S.deliverMessageAsRawString)};
wV_={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};_.a7.prototype.isInputValid=function(){return this.streamState_!=3};
_.a7.prototype.done=function(){return this.streamState_===2};
var Ae=function(S,c,Q){S.streamState_=3;S.errorMessage_="The stream is broken @"+S.JSC$9429_pos_+"/"+Q+". With input:\n"+c;throw Error(S.errorMessage_);};
_.a7.prototype.acceptsBinaryInput=function(){return!1};
_.a7.prototype.parse=function(S){function c(){for(;N<S.length;)if(_.Je(S[N]))N++,a.JSC$9429_pos_++;else break;return N<I}
function Q(){for(var H;;){H=S[N++];if(!H)break;a.JSC$9429_pos_++;switch(a.state_){case x.INIT:H==="{"?a.state_=x.OBJECT_OPEN:H==="["?a.state_=x.ARRAY_OPEN:_.Je(H)||Ae(a,S,N);continue;case x.KEY_START:case x.OBJECT_OPEN:if(_.Je(H))continue;if(a.state_===x.KEY_START)X.push(x.KEY_END);else if(H==="}"){U("{}");a.state_=f();continue}else X.push(x.OBJECT_END);H==='"'?a.state_=x.STRING:Ae(a,S,N);continue;case x.KEY_END:case x.OBJECT_END:if(_.Je(H))continue;H===":"?(a.state_===x.OBJECT_END&&(X.push(x.OBJECT_END),
a.depth_++),a.state_=x.VALUE):H==="}"?(a.depth_--,U(),a.state_=f()):H===","?(a.state_===x.OBJECT_END&&X.push(x.OBJECT_END),a.state_=x.KEY_START):Ae(a,S,N);continue;case x.ARRAY_OPEN:case x.VALUE:if(_.Je(H))continue;if(a.state_===x.ARRAY_OPEN)if(a.depth_++,a.state_=x.VALUE,H==="]"){a.depth_--;if(a.depth_===0){a.state_=x.ARRAY_END;return}U("[]");a.state_=f();continue}else X.push(x.ARRAY_END);H==='"'?a.state_=x.STRING:H==="{"?a.state_=x.OBJECT_OPEN:H==="["?a.state_=x.ARRAY_OPEN:H==="t"?a.state_=x.TRUE1:
H==="f"?a.state_=x.FALSE1:H==="n"?a.state_=x.NULL1:H!=="-"&&("0123456789".indexOf(H)!==-1?a.state_=x.NUM_DIGIT:Ae(a,S,N));continue;case x.ARRAY_END:if(H===",")X.push(x.ARRAY_END),a.state_=x.VALUE,a.depth_===1&&(b=N);else if(H==="]"){a.depth_--;if(a.depth_===0)return;U();a.state_=f()}else if(_.Je(H))continue;else Ae(a,S,N);continue;case x.STRING:var q=N;a:for(;;){for(;a.unicodeCount_>0;)if(H=S[N++],a.unicodeCount_===4?a.unicodeCount_=0:a.unicodeCount_++,!H)break a;if(H==='"'&&!a.slashed_){a.state_=
f();break}if(H==="\\"&&!a.slashed_&&(a.slashed_=!0,H=S[N++],!H))break;if(a.slashed_)if(a.slashed_=!1,H==="u"&&(a.unicodeCount_=1),H=S[N++])continue;else break;z.lastIndex=N;H=z.exec(S);if(!H){N=S.length+1;break}N=H.index+1;H=S[H.index];if(!H)break}a.JSC$9429_pos_+=N-q;continue;case x.TRUE1:if(!H)continue;H==="r"?a.state_=x.TRUE2:Ae(a,S,N);continue;case x.TRUE2:if(!H)continue;H==="u"?a.state_=x.TRUE3:Ae(a,S,N);continue;case x.TRUE3:if(!H)continue;H==="e"?a.state_=f():Ae(a,S,N);continue;case x.FALSE1:if(!H)continue;
H==="a"?a.state_=x.FALSE2:Ae(a,S,N);continue;case x.FALSE2:if(!H)continue;H==="l"?a.state_=x.FALSE3:Ae(a,S,N);continue;case x.FALSE3:if(!H)continue;H==="s"?a.state_=x.FALSE4:Ae(a,S,N);continue;case x.FALSE4:if(!H)continue;H==="e"?a.state_=f():Ae(a,S,N);continue;case x.NULL1:if(!H)continue;H==="u"?a.state_=x.NULL2:Ae(a,S,N);continue;case x.NULL2:if(!H)continue;H==="l"?a.state_=x.NULL3:Ae(a,S,N);continue;case x.NULL3:if(!H)continue;H==="l"?a.state_=f():Ae(a,S,N);continue;case x.NUM_DECIMAL_POINT:H===
"."?a.state_=x.NUM_DIGIT:Ae(a,S,N);continue;case x.NUM_DIGIT:if("0123456789.eE+-".indexOf(H)!==-1)continue;else N--,a.JSC$9429_pos_--,a.state_=f();continue;default:Ae(a,S,N)}}}
function f(){var H=X.pop();return H!=null?H:x.VALUE}
function U(H){a.depth_>1||(H||(H=b===-1?a.JSC$9429_buffer_+S.substring(n,N):S.substring(b,N)),a.deliverMessageAsRawString_?a.result_.push(H):a.result_.push(JSON.parse(H)),b=N)}
for(var a=this,X=a.stack_,z=a.stringInputPattern_,x=wV_,I=S.length,n=0,b=-1,N=0;N<I;)switch(a.streamState_){case 3:return Ae(a,S,N),null;case 2:return c()&&Ae(a,S,N),null;case 0:if(c()){var l=S[N++];a.JSC$9429_pos_++;if(l==="["){a.streamState_=1;n=N;a.state_=x.ARRAY_OPEN;continue}else Ae(a,S,N)}return null;case 1:return Q(),a.depth_===0&&a.state_==x.ARRAY_END?(a.streamState_=2,a.JSC$9429_buffer_=S.substring(N)):a.JSC$9429_buffer_=b===-1?a.JSC$9429_buffer_+S.substring(n):S.substring(b),a.result_.length>
0?(l=a.result_,a.result_=[],l):null}return null};_.Xa(_.JG,Hi);aY.prototype.getValue=function(){return this.JSC$9437_value_};
aY.prototype.clone=function(){return new aY(this.JSC$9437_key_,this.JSC$9437_value_)};var Xw=function(S){this.nodes_=[];if(S)a:{if(S instanceof Xw){var c=S.getKeys();S=S.getValues();if(this.getCount()<=0){for(var Q=this.nodes_,f=0;f<c.length;f++)Q.push(new aY(c[f],S[f]));break a}}else c=_.Cn.getKeys(S),S=_.Cn.getValues(S);for(Q=0;Q<c.length;Q++)this.insert(c[Q],S[Q])}};
_.J=Xw.prototype;_.J.insert=function(S,c){var Q=this.nodes_;Q.push(new aY(S,c));S=Q.length-1;c=this.nodes_;for(Q=c[S];S>0;){var f=S-1>>1;if(c[f].JSC$9437_key_>Q.JSC$9437_key_)c[S]=c[f],S=f;else break}c[S]=Q};
_.J.remove=function(){var S=this.nodes_,c=S.length,Q=S[0];if(!(c<=0)){if(c==1)S.length=0;else{S[0]=S.pop();S=0;c=this.nodes_;for(var f=c.length,U=c[S];S<f>>1;){var a=S*2+1,X=S*2+2;a=X<f&&c[X].JSC$9437_key_<c[a].JSC$9437_key_?X:a;if(c[a].JSC$9437_key_>U.JSC$9437_key_)break;c[S]=c[a];S=a}c[S]=U}return Q.getValue()}};
_.J.peek=function(){var S=this.nodes_;if(S.length!=0)return S[0].getValue()};
_.J.getValues=function(){for(var S=this.nodes_,c=[],Q=S.length,f=0;f<Q;f++)c.push(S[f].getValue());return c};
_.J.getKeys=function(){for(var S=this.nodes_,c=[],Q=S.length,f=0;f<Q;f++)c.push(S[f].JSC$9437_key_);return c};
_.J.containsValue=function(S){return this.nodes_.some(function(c){return c.getValue()==S})};
_.J.containsKey=function(S){return this.nodes_.some(function(c){return c.JSC$9437_key_==S})};
_.J.clone=function(){return new Xw(this)};
_.J.getCount=function(){return this.nodes_.length};
_.J.isEmpty=function(){return this.nodes_.length===0};
_.J.clear=function(){this.nodes_.length=0};_.O$=function(S,c){this.JSC$9443_map_={};this.JSC$9443_keys_=[];this.version_=this.size=0;var Q=arguments.length;if(Q>1){if(Q%2)throw Error("pa");for(var f=0;f<Q;f+=2)this.set(arguments[f],arguments[f+1])}else S&&this.addAll(S)};
_.J=_.O$.prototype;_.J.getCount=function(){return this.size};
_.J.getValues=function(){zp(this);for(var S=[],c=0;c<this.JSC$9443_keys_.length;c++)S.push(this.JSC$9443_map_[this.JSC$9443_keys_[c]]);return S};
_.J.getKeys=function(){zp(this);return this.JSC$9443_keys_.concat()};
_.J.containsKey=function(S){return this.has(S)};
_.J.has=function(S){return x1(this.JSC$9443_map_,S)};
_.J.containsValue=function(S){for(var c=0;c<this.JSC$9443_keys_.length;c++){var Q=this.JSC$9443_keys_[c];if(x1(this.JSC$9443_map_,Q)&&this.JSC$9443_map_[Q]==S)return!0}return!1};
_.J.equals=function(S,c){if(this===S)return!0;if(this.size!=S.getCount())return!1;c=c||sMl;zp(this);for(var Q,f=0;Q=this.JSC$9443_keys_[f];f++)if(!c(this.get(Q),S.get(Q)))return!1;return!0};
var sMl=function(S,c){return S===c};
_.O$.prototype.isEmpty=function(){return this.size==0};
_.O$.prototype.clear=function(){this.JSC$9443_map_={};this.version_=this.size=this.JSC$9443_keys_.length=0};
_.O$.prototype.remove=function(S){return this.delete(S)};
_.O$.prototype.delete=function(S){return x1(this.JSC$9443_map_,S)?(delete this.JSC$9443_map_[S],--this.size,this.version_++,this.JSC$9443_keys_.length>2*this.size&&zp(this),!0):!1};
var zp=function(S){if(S.size!=S.JSC$9443_keys_.length){for(var c=0,Q=0;c<S.JSC$9443_keys_.length;){var f=S.JSC$9443_keys_[c];x1(S.JSC$9443_map_,f)&&(S.JSC$9443_keys_[Q++]=f);c++}S.JSC$9443_keys_.length=Q}if(S.size!=S.JSC$9443_keys_.length){c={};for(f=Q=0;Q<S.JSC$9443_keys_.length;){var U=S.JSC$9443_keys_[Q];x1(c,U)||(S.JSC$9443_keys_[f++]=U,c[U]=1);Q++}S.JSC$9443_keys_.length=f}};
_.J=_.O$.prototype;_.J.get=function(S,c){return x1(this.JSC$9443_map_,S)?this.JSC$9443_map_[S]:c};
_.J.set=function(S,c){x1(this.JSC$9443_map_,S)||(this.size+=1,this.JSC$9443_keys_.push(S),this.version_++);this.JSC$9443_map_[S]=c};
_.J.addAll=function(S){if(S instanceof _.O$)for(var c=S.getKeys(),Q=0;Q<c.length;Q++)this.set(c[Q],S.get(c[Q]));else for(c in S)this.set(c,S[c])};
_.J.forEach=function(S,c){for(var Q=this.getKeys(),f=0;f<Q.length;f++){var U=Q[f],a=this.get(U);S.call(c,a,U,this)}};
_.J.clone=function(){return new _.O$(this)};
_.J.transpose=function(){for(var S=new _.O$,c=0;c<this.JSC$9443_keys_.length;c++){var Q=this.JSC$9443_keys_[c];S.set(this.JSC$9443_map_[Q],Q)}return S};
_.J.keys=function(){return ABJ(this.__iterator__(!0)).toEs6()};
_.J.values=function(){return ABJ(this.__iterator__(!1)).toEs6()};
_.J.entries=function(){var S=this;return $DT(this.keys(),function(c){return[c,S.get(c)]})};
_.J.__iterator__=function(S){zp(this);var c=0,Q=this.version_,f=this,U=new a8;U.next=function(){if(Q!=f.version_)throw Error("qe");if(c>=f.JSC$9443_keys_.length)return A1;var a=f.JSC$9443_keys_[c++];return Xx(S?a:f.JSC$9443_map_[a])};
return U};
var x1=function(S,c){return Object.prototype.hasOwnProperty.call(S,c)};var iJp=function(){this.JSC$9446_map_=new _.O$;this.JSC$9446_head_=new Mmp("");this.JSC$9446_head_.next=this.JSC$9446_head_.prev=this.JSC$9446_head_},ZJH=function(S,c){if(c=S.JSC$9446_map_.get(c))c.remove(),S.insert_(c);
return c};
_.J=iJp.prototype;_.J.get=function(S,c){return(S=ZJH(this,S))?S.value:c};
_.J.set=function(S,c){var Q=ZJH(this,S);Q?Q.value=c:(Q=new Mmp(S,c),this.JSC$9446_map_.set(S,Q),this.insert_(Q))};
_.J.peek=function(){return this.JSC$9446_head_.next.value};
_.J.shift=function(){return GWJ(this,this.JSC$9446_head_.next)};
_.J.pop=function(){return GWJ(this,this.JSC$9446_head_.prev)};
_.J.remove=function(S){return(S=this.JSC$9446_map_.get(S))?(this.removeNode(S),!0):!1};
_.J.removeNode=function(S){S.remove();this.JSC$9446_map_.remove(S.key)};
_.J.getCount=function(){return this.JSC$9446_map_.getCount()};
_.J.isEmpty=function(){return this.JSC$9446_map_.isEmpty()};
_.J.getKeys=function(){return this.map(function(S,c){return c})};
_.J.getValues=function(){return this.map(function(S){return S})};
_.J.contains=function(S){return this.some(function(c){return c==S})};
_.J.containsKey=function(S){return this.JSC$9446_map_.containsKey(S)};
_.J.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9446_head_.prev)};
_.J.forEach=function(S,c){for(var Q=this.JSC$9446_head_.next;Q!=this.JSC$9446_head_;Q=Q.next)S.call(c,Q.value,Q.key,this)};
_.J.map=function(S,c){for(var Q=[],f=this.JSC$9446_head_.next;f!=this.JSC$9446_head_;f=f.next)Q.push(S.call(c,f.value,f.key,this));return Q};
_.J.some=function(S,c){for(var Q=this.JSC$9446_head_.next;Q!=this.JSC$9446_head_;Q=Q.next)if(S.call(c,Q.value,Q.key,this))return!0;return!1};
_.J.every=function(S,c){for(var Q=this.JSC$9446_head_.next;Q!=this.JSC$9446_head_;Q=Q.next)if(!S.call(c,Q.value,Q.key,this))return!1;return!0};
_.J.insert_=function(S){S.next=this.JSC$9446_head_.next;S.prev=this.JSC$9446_head_;this.JSC$9446_head_.next=S;for(S.next.prev=S;this.getCount()>100;)this.removeNode(this.JSC$9446_head_.prev)};
var GWJ=function(S,c){S.JSC$9446_head_!=c&&S.removeNode(c);return c.value},Mmp=function(S,c){this.key=S;
this.value=c};
Mmp.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var WSp=function(){Xw.apply(this,arguments)};
_.C(WSp,Xw);WSp.prototype.enqueue=function(S,c){this.insert(S,c)};var gks=function(){var S=Error();S.name="SecurityError";throw S;},NWo=function(){return{get opener(){return null},
get closed(){return!0},get location(){gks()},get document(){gks()},postMessage:function(){},
close:function(){},
focus:function(){}}};var MPT={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 GVr={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 eMd={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(GVr).join("|");var kWT=function(){function S(z){z.substr(-1)!==";"&&(z+=";");return X(z)}
for(var c=Object.keys(eMd).sort(Zjo),Q=Object.keys(GVr).sort(Zjo),f=0,U=0;f<Q.length;f++)c[U]===Q[f]?(Q[f]+=";?",U++):Q[f]+=";";var a=new RegExp("&(?:"+Q.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),X=W9c();return function(z){return String(z).replace(a,S)}}();/*

 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 r4l={};var d6d=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"),vkd=/[\\&]/,PlJ=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),LST=RegExp('[&<>"]',"g"),Eki=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),tms=function(S){return S.charCodeAt(0)===92?S.charAt(1):kWT(S)},Vmi=function(S){return vkd.test(S)?S.replace(PlJ,tms):S},RMJ=function(S){try{var c,Q="";
if(typeof U!=="string"){var f=U;var U=";/?:@&=+$,-_.!~*'()#"}typeof f==="undefined"&&(f=!0);var a,X=r4l[U];if(X)var z=X;else{X=r4l[U]=[];for(a=0;a<128;a++){var x=String.fromCharCode(a);/^[0-9a-z]$/i.test(x)?X.push(x):X.push("%"+("0"+a.toString(16).toUpperCase()).slice(-2))}for(a=0;a<U.length;a++)X[U.charCodeAt(a)]=U[a];z=X}var I=0;for(c=S.length;I<c;I++){var n=S.charCodeAt(I);if(f&&n===37&&I+2<c&&/^[0-9a-f]{2}$/i.test(S.slice(I+1,I+3)))Q+=S.slice(I,I+3),I+=2;else if(n<128)Q+=z[n];else if(n>=55296&&
n<=57343){if(n>=55296&&n<=56319&&I+1<c){var b=S.charCodeAt(I+1);if(b>=56320&&b<=57343){Q+=encodeURIComponent(S[I]+S[I+1]);I++;continue}}Q+="%EF%BF%BD"}else Q+=encodeURIComponent(S[I])}return Q}catch(N){return S}},y4l=function(S){switch(S){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return S}},Fw=function(S,c){return LST.test(S)?c?S.replace(Eki,y4l):S.replace(LST,y4l):S};/*

 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 Bx;if(String.fromCodePoint)Bx=function(S){try{return String.fromCodePoint(S)}catch(c){if(c instanceof RangeError)return String.fromCharCode(65533);throw c;}};
else{var okl=String.fromCharCode,m6d=Math.floor;Bx=function(){var S=[],c=-1,Q=arguments.length;if(!Q)return"";for(var f="";++c<Q;){var U=Number(arguments[c]);if(!isFinite(U)||U<0||U>1114111||m6d(U)!==U)return String.fromCharCode(65533);if(U<=65535)S.push(U);else{U-=65536;var a=(U>>10)+55296;U=U%1024+56320;S.push(a,U)}if(c+1===Q||S.length>16384)f+=okl.apply(null,S),S.length=0}return f}};var Sre=function(S){this.root=this.current=S;this.entering=!0};
Sre.prototype.next=function(){var S=this.current,c=this.entering;if(S===null)return null;a:switch(S._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 Q=!0;break a;default:Q=!1}c&&Q?S._firstChild?(this.current=S._firstChild,this.entering=!0):this.entering=!1:S===this.root?this.current=null:S._next===null?(this.current=
S._parent,this.entering=!1):(this.current=S._next,this.entering=!0);return{entering:c,node:S}};
var z$=function(S,c){this._type=S;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=c;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};
z$.prototype.appendChild=function(S){I7(S);S._parent=this;this._lastChild?(this._lastChild._next=S,S._prev=this._lastChild):this._firstChild=S;this._lastChild=S};
var I7=function(S){S._prev?S._prev._next=S._next:S._parent&&(S._parent._firstChild=S._next);S._next?S._next._prev=S._prev:S._parent&&(S._parent._lastChild=S._prev);S._parent=null;S._next=null;S._prev=null},cqu=function(S,c){I7(c);
c._next=S._next;c._next&&(c._next._prev=c);c._prev=S;S._next=c;c._parent=S._parent;c._next||(c._parent._lastChild=c)};
z$.prototype.insertBefore=function(S){I7(S);S._prev=this._prev;S._prev&&(S._prev._next=S);S._next=this;this._prev=S;S._parent=this._parent;S._prev||(S._parent._firstChild=S)};
_.Rh.Object.defineProperties(z$.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(S){this._literal=S}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(S){this._destination=S}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(S){this._title=S}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(S){this._info=S}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(S){this._level=S}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(S){this._listData.type=S}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(S){this._listData.tight=S}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(S){this._listData.start=S}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(S){this._onEnter=S}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(S){this._onExit=S}}});var gsp=/[ \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,
epc={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 Q1d=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]/),
fIi=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),U_u=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),Jq_=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),aI_=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),AqT=/`+/,X0i=/^`+/,OUh=/\.\.\./g,zf$=/--+/g,x_p=/^<([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])?)*)>/,
Fvu=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,BM_=/^ *(?:\n *)?/,IIJ=/^[ \t\n\x0b\x0c\x0d]/,nnT=/[ \t\n\x0b\x0c\x0d]+/g,bUz=/^\s/,NMz=/ *$/,Kvu=/^ */,$_s=/^ *(?:\n|$)/,uVd=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),j1$=/^[^\n`\[\]\\!<&*_'"]+/m,nO=function(S){var c=new z$("text");c._literal=S;return c},bc=function(S){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=S||{}};
bc.prototype.match=function(S){S=S.exec(this.subject.slice(this.pos));if(S===null)return null;this.pos+=S.index+S[0].length;return S[0]};
bc.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var N9=function(S){S.match(BM_);return!0},lIJ=function(S,c,Q){var f=0;
var U=S.pos;if(c===39||c===34)f++,S.pos++;else for(;S.peek()===c;)f++,S.pos++;if(f===0)f=null;else{var a=U===0?"\n":S.subject.charAt(U-1);var X=S.peek();X=X===-1?"\n":Bx(X);var z=bUz.test(X);X=Q1d.test(X);var x=bUz.test(a);var I=Q1d.test(a);a=!z&&!(X&&!x&&!I);z=!x&&!(I&&!z&&!X);c===95?(x=a&&(!z||I),X=z&&(!a||X)):(x=c===39||c===34?a&&!z:a,X=z);S.pos=U;f={numdelims:f,can_open:x,can_close:X}}if(!f)return!1;U=f.numdelims;X=S.pos;S.pos+=U;X=c===39?"\u2019":c===34?"\u201c":S.subject.slice(X,S.pos);X=nO(X);
Q.appendChild(X);S.delimiters={cc:c,numdelims:U,origdelims:U,node:X,previous:S.delimiters,next:null,can_open:f.can_open,can_close:f.can_close};S.delimiters.previous!==null&&(S.delimiters.previous.next=S.delimiters);return!0},Yrd=function(S,c){c.previous!==null&&(c.previous.next=c.next);
c.next===null?S.delimiters=c.previous:c.next.previous=c.previous},Cwz=function(S,c){var Q,f,U=[],a=!1;
U[95]=c;U[42]=c;U[39]=c;U[34]=c;for(Q=S.delimiters;Q!==null&&Q.previous!==c;)Q=Q.previous;for(;Q!==null;){var X=Q.cc;if(Q.can_close){var z=Q.previous;for(f=!1;z!==null&&z!==c&&z!==U[X];){a=(Q.can_open||z.can_close)&&(z.origdelims+Q.origdelims)%3===0;if(z.cc===Q.cc&&z.can_open&&!a){f=!0;break}z=z.previous}var x=Q;if(X===42||X===95)if(f){var I=Q.numdelims>=2&&z.numdelims>=2?2:1;var n=z.node;var b=Q.node;z.numdelims-=I;Q.numdelims-=I;n._literal=n._literal.slice(0,n._literal.length-I);b._literal=b._literal.slice(0,
b._literal.length-I);var N=new z$(I===1?"emph":"strong");for(I=n._next;I&&I!==b;){var l=I._next;I7(I);N.appendChild(I);I=l}cqu(n,N);I=z;l=Q;I.next!==l&&(I.next=l,l.previous=I);z.numdelims===0&&(I7(n),Yrd(S,z));Q.numdelims===0&&(I7(b),z=Q.next,Yrd(S,Q),Q=z)}else Q=Q.next;else X===39?(Q.node._literal="\u2019",f&&(z.node._literal="\u2018"),Q=Q.next):X===34&&(Q.node._literal="\u201d",f&&(z.node.literal="\u201c"),Q=Q.next);f||a||(U[X]=x.previous,x.can_open||Yrd(S,x))}else Q=Q.next}for(;S.delimiters!==
null&&S.delimiters!==c;)Yrd(S,S.delimiters)},HU$=function(S){S=S.match(fIi);
return S===null?null:Vmi(S.substr(1,S.length-2))},D_d=function(S){var c=S.match(U_u);
if(c===null){c=S.pos;for(var Q=0,f;(f=S.peek())!==-1;)if(f===92)S.pos+=1,S.peek()!==-1&&(S.pos+=1);else if(f===40)S.pos+=1,Q+=1;else if(f===41)if(Q<1)break;else S.pos+=1,--Q;else if(IIJ.exec(Bx(f))!==null)break;else S.pos+=1;c=S.subject.substr(c,S.pos-c);return RMJ(Vmi(c))}return RMJ(Vmi(c.substr(1,c.length-2)))},p0J=function(S){S=S.match(uVd);
return S===null||S.length>1001?0:S.length},hfp=function(S,c,Q,f){S.brackets!==null&&(S.brackets.bracketAfter=!0);
S.brackets={node:c,previous:S.brackets,previousDelimiter:S.delimiters,index:Q,image:f,active:!0}},qrd=function(S,c){var Q;
return(Q=S.match(j1$))?(S.options.smart?c.appendChild(nO(Q.replace(OUh,"\u2026").replace(zf$,function(f){var U=0,a=0;f.length%3===0?a=f.length/3:f.length%2===0?U=f.length/2:f.length%3===2?(U=1,a=(f.length-2)/3):(U=2,a=(f.length-4)/3);f="";var X;for(X=0;X<a;X++)f+="\u2014";for(X=0;X<U;X++)f+="\u2013";return f}))):c.appendChild(nO(Q)),!0):!1},TMp=function(S,c,Q){S.subject=c;
S.pos=0;c=S.pos;var f=p0J(S);if(f===0)return 0;var U=S.subject.substr(0,f);if(S.peek()===58)S.pos++;else return S.pos=c,0;N9(S);f=D_d(S);if(f===null||f.length===0)return S.pos=c,0;var a=S.pos;N9(S);var X=HU$(S);X===null&&(X="",S.pos=a);var z=!0;S.match($_s)===null&&(X===""?z=!1:(X="",S.pos=a,z=S.match($_s)!==null));if(!z)return S.pos=c,0;U=kVo(U);if(U==="")return S.pos=c,0;Q[U]||(Q[U]={destination:f,title:X});return S.pos-c},w0J=function(S,c){var Q,f=S.peek();
if(f===-1)return!1;switch(f){case 10:S.pos+=1;if((Q=c._lastChild)&&Q.type==="text"&&Q._literal[Q._literal.length-1]===" "){var U=Q._literal[Q._literal.length-2]===" ";Q._literal=Q._literal.replace(NMz,"");c.appendChild(new z$(U?"linebreak":"softbreak"))}else c.appendChild(new z$("softbreak"));S.match(Kvu);Q=!0;break;case 92:Q=S.subject;S.pos+=1;S.peek()===10?(S.pos+=1,Q=new z$("linebreak"),c.appendChild(Q)):Jq_.test(Q.charAt(S.pos))?(c.appendChild(nO(Q.charAt(S.pos))),S.pos+=1):c.appendChild(nO("\\"));
Q=!0;break;case 96:a:if(Q=S.match(X0i),Q===null)Q=!1;else{U=S.pos;for(var a;(a=S.match(AqT))!==null;)if(a===Q){a=new z$("code");a._literal=S.subject.slice(U,S.pos-Q.length).trim().replace(nnT," ");c.appendChild(a);Q=!0;break a}S.pos=U;c.appendChild(nO(Q));Q=!0}break;case 42:case 95:Q=lIJ(S,f,c);break;case 39:case 34:Q=S.options.smart&&lIJ(S,f,c);break;case 91:Q=S.pos;S.pos+=1;U=nO("[");c.appendChild(U);hfp(S,U,Q,!1);Q=!0;break;case 33:Q=S.pos;S.pos+=1;S.peek()===91?(S.pos+=1,U=nO("!["),c.appendChild(U),
hfp(S,U,Q+1,!0)):c.appendChild(nO("!"));Q=!0;break;case 93:var X,z=!1,x;S.pos+=1;var I=S.pos;U=S.brackets;if(U===null)c.appendChild(nO("]"));else if(U.active){Q=U.image;var n=S.pos;S.peek()===40&&(S.pos++,N9(S)&&(a=D_d(S))!==null&&N9(S)&&(IIJ.test(S.subject.charAt(S.pos-1))&&(X=HU$(S)),1)&&N9(S)&&S.peek()===41?(S.pos+=1,z=!0):S.pos=n);if(!z){var b=S.pos,N=p0J(S);N>2?x=S.subject.slice(b,b+N):U.bracketAfter||(x=S.subject.slice(U.index,I));N===0&&(S.pos=n);x&&(x=S.refmap[kVo(x)])&&(a=x.destination,X=
x.title,z=!0)}if(z){I=new z$(Q?"image":"link");I._destination=a;I._title=X||"";for(a=U.node._next;a;)X=a._next,I7(a),I.appendChild(a),a=X;c.appendChild(I);Cwz(S,U.previousDelimiter);S.brackets=S.brackets.previous;I7(U.node);if(!Q)for(U=S.brackets;U!==null;)U.image||(U.active=!1),U=U.previous}else S.brackets=S.brackets.previous,S.pos=I,c.appendChild(nO("]"))}else c.appendChild(nO("]")),S.brackets=S.brackets.previous;Q=!0;break;case 60:(Q=S.match(x_p))?(Q=Q.slice(1,Q.length-1),U=new z$("link"),U._destination=
RMJ("mailto:"+Q),U._title="",U.appendChild(nO(Q)),c.appendChild(U),Q=!0):(Q=S.match(Fvu))?(Q=Q.slice(1,Q.length-1),U=new z$("link"),U._destination=RMJ(Q),U._title="",U.appendChild(nO(Q)),c.appendChild(U),Q=!0):Q=!1;Q||(Q=S.match(d6d),Q===null?Q=!1:(U=new z$("html_inline"),U._literal=Q,c.appendChild(U),Q=!0));break;case 38:(Q=S.match(aI_))?(c.appendChild(nO(kWT(Q))),Q=!0):Q=!1;break;default:Q=qrd(S,c)}Q||(S.pos+=1,c.appendChild(nO(Bx(f))));return!0};
bc.prototype.parseInlines=function(S){this.subject=S._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;w0J(this,S););S._string_content=null;Cwz(this,null)};
bc.prototype.parse=bc.prototype.parseInlines;var s1d=[/./,/^<(?: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")],M$_=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],iUi=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,ZUd=/^[#`~*+_=<>0-9-\|]|\|/,G4e=/[^ \t\f\v\r\n]/,Wvd=/^[*+-]/,gn_=/^(\d{1,9})([.)])/,ef$=/^#{1,6}(?:[ \t]+|$)/,k4l=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,rq_=/^(?:`{3,}|~{3,})(?= *$)/,d_s=/^(?:=+|-+)[ \t]*$/,vns=/\r\n|\n|\r/,d7M=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,vsY=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Pwu={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(S){return S!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(S,c){for(S=c._firstChild;S;){if(rwH(S)&&S._next){c._listData.tight=!1;break}for(var Q=S._firstChild;Q;){if(rwH(Q)&&(S._next||Q._next)){c._listData.tight=!1;break}Q=Q._next}S=S._next}},
canContain:function(S){return S==="item"},
acceptsLines:!1},block_quote:{continue:function(S){var c=S.currentLine;if(S.indented||Xu(c,S.nextNonspace)!==62)return 1;KO(S);$1(S,1,!1);AG(Xu(c,S.offset))&&$1(S,1,!0);return 0},
finalize:function(){},
canContain:function(S){return S!=="item"},
acceptsLines:!1},item:{continue:function(S,c){if(S.blank){if(c._firstChild==null)return 1;KO(S)}else if(S.indent>=c._listData.markerOffset+c._listData.padding)$1(S,c._listData.markerOffset+c._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(S){return S!=="item"&&!PeR(S)},
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(S,c){var Q=S.currentLine,f=S.indent;if(c._isFenced){if((f=f<=3&&Q.charAt(S.nextNonspace)===c._fenceChar&&Q.slice(S.nextNonspace).match(rq_))&&f[0].length>=c._fenceLength)return S.finalize(c,S.lineNumber),2;for(c=c._fenceOffset;c>0&&AG(Xu(Q,S.offset));)$1(S,1,!0),c--}else if(f>=4)$1(S,4,!0);else if(S.blank)KO(S);else return 1;return 0},
finalize:function(S,c){if(c._isFenced){var Q=c._string_content,f=Q.indexOf("\n");S=Q.slice(0,f);Q=Q.slice(f+1);c.info=Vmi(S.trim());c._literal=Q}else c._literal=c._string_content.replace(/(\n *)+$/,"\n");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(S,c){return!S.blank||c._htmlBlockType!==6&&c._htmlBlockType!==7?0:1},
finalize:function(S,c){c._literal=c._string_content.replace(/(\n *)+$/,"");c._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(S){return S.blank?1:0},
finalize:function(S,c){for(var Q,f=!1;Xu(c._string_content,0)===91&&(Q=TMp(S.inlineParser,c._string_content,S.refmap));)c._string_content=c._string_content.slice(Q),f=!0;f&&!G4e.test(c._string_content)&&I7(c)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(S){return OM(S.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(S){return S=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(S,c){if(!c._rowIsDelimiter){S=c._isHeader?"th":"td";for(var Q=c._parent._tableColumns,f=c._string_content,U=0,a="",X,z=c._sourcepos[0][0];U<f.length;){switch(f[U]){case "|":X&&(X._string_content=a.trim(),a="",X=null,Q--,Q<=0&&(U=f.length));break;default:if(!X){X=new z$(S,[[z,U],[z,U]]);var x=c._parent._columnAlignment,I=c._parent._tableColumns-Q;x&&I<=x.length&&I>=0&&(X._alignment=x[I]);c.appendChild(X)}a+=f[U];X._sourcepos[1][1]=U}U++}X&&(X._string_content=a.trim());c._string_content=
""}},
canContain:function(S){return S!=="row"},
acceptsLines:!1}},Lvs=[function(S){if(S.indented||Xu(S.currentLine,S.nextNonspace)!==62)return 0;KO(S);$1(S,1,!1);AG(Xu(S.currentLine,S.offset))&&$1(S,1,!0);uc(S);S.addChild("block_quote",S.nextNonspace);return 1},
function(S){var c;if(!S.indented&&(c=S.currentLine.slice(S.nextNonspace).match(ef$))){KO(S);$1(S,c[0].length,!1);uc(S);var Q=S.addChild("heading",S.nextNonspace);Q.level=c[0].trim().length;Q._string_content=S.currentLine.slice(S.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");$1(S,S.currentLine.length-S.offset);return 2}return 0},
function(S){var c;if(!S.indented&&(c=S.currentLine.slice(S.nextNonspace).match(k4l))){var Q=c[0].length;uc(S);var f=S.addChild("code_block",S.nextNonspace);f._isFenced=!0;f._fenceLength=Q;f._fenceChar=c[0][0];f._fenceOffset=S.indent;KO(S);$1(S,Q,!1);return 2}return 0},
function(S,c){if(!S.indented&&Xu(S.currentLine,S.nextNonspace)===60){var Q=S.currentLine.slice(S.nextNonspace),f;for(f=1;f<=7;f++)if(s1d[f].test(Q)&&(f<7||c.type!=="paragraph"))return uc(S),S.addChild("html_block",S.offset)._htmlBlockType=f,2}return 0},
function(S,c){var Q;if(!S.indented&&c.type==="paragraph"&&(Q=S.currentLine.slice(S.nextNonspace).match(d_s))){uc(S);var f=new z$("heading",c.sourcepos);f.level=Q[0][0]==="="?1:2;f._string_content=c._string_content;cqu(c,f);I7(c);S.tip=f;$1(S,S.currentLine.length-S.offset,!1);return 2}return 0},
function(S){return!S.indented&&iUi.test(S.currentLine.slice(S.nextNonspace))?(uc(S),S.addChild("thematic_break",S.nextNonspace),$1(S,S.currentLine.length-S.offset,!1),2):0},
function(S,c){var Q,f;if(!(f=S.indented&&c.type!=="list")){a:{var U=c,a=S.currentLine.slice(S.nextNonspace);f={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:S.indent};if(Q=a.match(Wvd))f.type="bullet",f.bulletChar=Q[0][0];else{if(!(Q=a.match(gn_))||U.type==="paragraph"&&Q[1]!=="1"){Q=null;break a}f.type="ordered";f.start=parseInt(Q[1],10);f.delimiter=Q[2]}var X=Xu(S.currentLine,S.nextNonspace+Q[0].length);if(X!==-1&&X!==9&&X!==32||U.type==="paragraph"&&!S.currentLine.slice(S.nextNonspace+
Q[0].length).match(G4e))Q=null;else{KO(S);$1(S,Q[0].length,!0);U=S.column;a=S.offset;do $1(S,1,!0),X=Xu(S.currentLine,S.offset);while(S.column-U<5&&AG(X));X=Xu(S.currentLine,S.offset)===-1;var z=S.column-U;z>=5||z<1||X?(f.padding=Q[0].length+1,S.column=U,S.offset=a,AG(Xu(S.currentLine,S.offset))&&$1(S,1,!0)):f.padding=Q[0].length+z;Q=f}}f=!Q}if(f)return 0;uc(S);(f=S.tip.type!=="list")||(c=c._listData,f=!(c.type===Q.type&&c.delimiter===Q.delimiter&&c.bulletChar===Q.bulletChar));f&&(c=S.addChild("list",
S.nextNonspace),c._listData=Q);c=S.addChild("item",S.nextNonspace);c._listData=Q;return 1},
function(S){var c;return((c=S.options.shouldParseIndentAsCodeBlock)!=null?c:1)&&S.indented&&S.tip.type!=="paragraph"&&!S.blank?($1(S,4,!0),uc(S),S.addChild("code_block",S.offset),2):0},
function(S,c){var Q=OM(S.currentLine),f=OM(S.lookahead);if(Q!==0&&f<0&&Math.abs(Q)==Math.abs(f)&&!PeR(c.type)){uc(S);c=S.addChild("table",S.nextNonspace);c._tableRows=1;c._tableColumns=Math.abs(Q);Q=S.lookahead;if(vsY.test(Q)){f=[];for(var U=0,a=!1,X=0,z=void 0;U<Q.length;){var x=X>=3;switch(Q[U]){case "-":X++;break;case "|":a&&(f.push(z),z=void 0,X=0);a=!0;break;case ":":z||x||(z="left"),!z&&x&&(z="right"),z==="left"&&x&&(z="center")}U++}Q=f}else Q=void 0;c._columnAlignment=Q;c=S.addChild("row",
S.nextNonspace);c._isHeader=!0;$1(S,S.currentLine.length-S.offset,!1);c._string_content=S.currentLine;return 1}return 0},
function(S,c){if(c.type=="table"&&OM(S.currentLine)!==0){uc(S);var Q=c;c=S.addChild("row",S.nextNonspace);OM(S.currentLine)<0?c._rowIsDelimiter=!0:Q._tableRows+=1;$1(S,S.currentLine.length-S.offset,!1);c._string_content=S.currentLine;return 2}return 0}],VfZ=function(){var S={shouldParseIndentAsCodeBlock:!1};
S=S===void 0?{}:S;this.lastMatchedContainer=this.doc=L9M();this.refmap={};this.lastLineLength=0;this.inlineParser=new bc(S);this.options=S;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=Pwu;this.blockStarts=Lvs},Enl=function(S){S.partiallyConsumedTab&&(S.offset+=1,S.tip._string_content+=" ".repeat(4-S.column%
4));
S.tip._string_content+=S.currentLine.slice(S.offset)+"\n"};
VfZ.prototype.addChild=function(S,c){for(;!this.blocks[this.tip.type].canContain(S);)this.finalize(this.tip,this.lineNumber-1);S=new z$(S,[[this.lineNumber,c+1],[0,0]]);S._string_content="";this.tip.appendChild(S);return this.tip=S};
var uc=function(S){if(!S.allClosed){for(;S.oldtip!==S.lastMatchedContainer;){var c=S.oldtip._parent;S.finalize(S.oldtip,S.lineNumber-1);S.oldtip=c}S.allClosed=!0}},$1=function(S,c,Q){for(var f=S.currentLine,U,a;c>0&&(a=f[S.offset]);)a==="\t"?(U=4-S.column%4,Q?(S.partiallyConsumedTab=U>c,U=U>c?c:U,S.column+=U,S.offset+=S.partiallyConsumedTab?0:1,c-=U):(S.partiallyConsumedTab=!1,S.column+=U,S.offset+=1,--c)):(S.partiallyConsumedTab=!1,S.offset+=1,S.column+=1,--c)},KO=function(S){S.offset=S.nextNonspace;
S.column=S.nextNonspaceColumn;S.partiallyConsumedTab=!1},t$J=function(S){for(var c=S.currentLine,Q=S.offset,f=S.column,U;(U=c.charAt(Q))!=="";)if(U===" ")Q++,f++;
else if(U==="\t")Q++,f+=4-f%4;else break;S.blank=U==="\n"||U==="\r"||U==="";S.nextNonspace=Q;S.nextNonspaceColumn=f;S.indent=S.nextNonspaceColumn-S.column;S.indented=S.indent>=4};
VfZ.prototype.finalize=function(S,c){var Q=S._parent;S._open=!1;S.sourcepos[1]=[c,this.lastLineLength];this.blocks[S.type].finalize(this,S);this.tip=Q};
VfZ.prototype.parse=function(S){this.tip=this.doc=L9M();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!S)return this.doc;this.options.time&&console.time("preparing input");var c=S.split(vns),Q=c.length;S.charCodeAt(S.length-1)===10&&--Q;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(S=0;S<Q;S++)a:{var f=void 0,U=c[S],a=c[S+1],X=!0,z=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;U.indexOf("\x00")!==-1&&(U=U.replace(/\0/g,"\ufffd"));this.currentLine=U;for(this.lookahead=a;(f=z._lastChild)&&f._open;){z=f;t$J(this);switch(this.blocks[z.type].continue(this,z)){case 0:break;case 1:X=!1;break;case 2:this.lastLineLength=U.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!X){z=z._parent;break}}this.allClosed=z===this.oldtip;this.lastMatchedContainer=
z;f=z.type!=="paragraph"&&Pwu[z.type].acceptsLines;a=this.blockStarts;for(X=a.length;!f;){t$J(this);if(!this.indented&&!ZUd.test(U.slice(this.nextNonspace))){KO(this);break}for(var x=0;x<X;){var I=a[x](this,z);if(I===1){z=this.tip;break}else if(I===2){z=this.tip;f=!0;break}else x++}if(x===X){KO(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){uc(this);this.blank&&z.lastChild&&(z.lastChild._lastLineBlank=!0);f=z.type;a=this.blank&&!(f==="block_quote"||f==="code_block"&&z._isFenced||
f==="item"&&!z._firstChild&&z.sourcepos[0][0]===this.lineNumber);for(X=z;X;)X._lastLineBlank=a,X=X._parent;this.blocks[f].acceptsLines?(Enl(this),f==="html_block"&&z._htmlBlockType>=1&&z._htmlBlockType<=5&&M$_[z._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(z,this.lineNumber)):this.offset<U.length&&!this.blank&&(this.addChild("paragraph",this.offset),KO(this),Enl(this))}else Enl(this);this.lastLineLength=U.length}for(;this.tip;)this.finalize(this.tip,Q);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");U=new Sre(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;Q=U.next();)c=Q.node,S=c.type,Q.entering||S!=="paragraph"&&S!=="heading"&&S!=="th"&&S!="td"||this.inlineParser.parse(c);this.options.time&&console.timeEnd("inline parsing");return this.doc};Esc.prototype.render=function(S){S=new Sre(S);var c;this.buffer="";for(this.lastOut="\n";c=S.next();){var Q=c.node.type;if(this[Q])this[Q](c.node,c.entering)}return this.buffer};
Esc.prototype.out=function(S){js(this,S)};
var js=function(S,c){S.buffer+=c;S.lastOut=c};
Esc.prototype.cr=function(){this.lastOut!=="\n"&&js(this,"\n")};var V$d=/^javascript:|vbscript:|file:|data:/i,Rfp=/^data:image\/(?:png|gif|jpeg|webp)/i,yqT=function(S){return V$d.test(S)&&!Rfp.test(S)};
xU.prototype=Object.create(Esc.prototype);_.J=xU.prototype;_.J.text=function(S){this.out(S.literal)};
_.J.html_inline=function(S){this.options.safe?js(this,"\x3c!-- raw HTML omitted --\x3e"):js(this,S.literal)};
_.J.html_block=function(S){this.cr();this.options.safe?js(this,"\x3c!-- raw HTML omitted --\x3e"):js(this,S.literal);this.cr()};
_.J.softbreak=function(){js(this,this.options.softbreak)};
_.J.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.J.link=function(S,c){var Q=this.attrs(S);c?(this.options.safe&&yqT(S.destination)||Q.push(["href",Fw(S.destination,!0)]),S.title&&Q.push(["title",Fw(S.title,!0)]),this.tag("a",Q)):this.tag("/a")};
_.J.image=function(S,c){c?(this.disableTags===0&&(this.options.safe&&yqT(S.destination)?js(this,'<img src="" alt="'):js(this,'<img src="'+Fw(S.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(S.title&&js(this,'" title="'+Fw(S.title,!0)),js(this,'" />')))};
_.J.emph=function(S,c){this.tag(c?"em":"/em")};
_.J.strong=function(S,c){this.tag(c?"strong":"/strong")};
_.J.paragraph=function(S,c){var Q=S.parent.parent;S=this.attrs(S);Q!==null&&Q.type==="list"&&Q.listTight||(c?(this.cr(),this.tag("p",S)):(this.tag("/p"),this.cr()))};
_.J.heading=function(S,c){var Q="h"+S.level;S=this.attrs(S);c?(this.cr(),this.tag(Q,S)):(this.tag("/"+Q),this.cr())};
_.J.code=function(S){this.tag("code");this.out(S.literal);this.tag("/code")};
_.J.code_block=function(S){var c=S.info?S.info.split(/\s+/):[],Q=this.attrs(S);c.length>0&&c[0].length>0&&Q.push(["class","language-"+Fw(c[0],!0)]);this.cr();this.tag("pre");this.tag("code",Q);this.out(S.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.J.thematic_break=function(S){S=this.attrs(S);this.cr();this.tag("hr",S,!0);this.cr()};
_.J.block_quote=function(S,c){S=this.attrs(S);c?(this.cr(),this.tag("blockquote",S)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.J.list=function(S,c){var Q=S.listType==="bullet"?"ul":"ol",f=this.attrs(S);c?(S=S.listStart,S!==null&&S!==1&&f.push(["start",S.toString()]),this.cr(),this.tag(Q,f)):(this.cr(),this.tag("/"+Q));this.cr()};
_.J.item=function(S,c){S=this.attrs(S);c?this.tag("li",S):(this.tag("/li"),this.cr())};
_.J.custom_inline=function(S,c){c&&S.onEnter?js(this,S.onEnter):!c&&S.onExit&&js(this,S.onExit)};
_.J.custom_block=function(S,c){this.cr();c&&S.onEnter?js(this,S.onEnter):!c&&S.onExit&&js(this,S.onExit);this.cr()};
_.J.table=function(S,c){S=this.attrs(S);c?(this.cr(),this.tag("table",S)):(this.tag("/table"),this.cr())};
_.J.row=function(S,c){S._rowIsDelimiter||(S=this.attrs(S),c?this.tag("tr",S):this.tag("/tr"))};
_.J.td=function(S,c){var Q=this.attrs(S);S._alignment&&Q.push(["align",S._alignment]);c?this.tag("td",Q):this.tag("/td")};
_.J.th=function(S,c){var Q=this.attrs(S);S._alignment&&Q.push(["align",S._alignment]);c?this.tag("th",Q):this.tag("/th")};
_.J.out=function(S){js(this,Fw(S,!1))};
_.J.tag=function(S,c,Q){if(!(this.disableTags>0)){this.buffer+="<"+S;if(c&&c.length>0){S=0;for(var f;(f=c[S])!==void 0;)this.buffer+=" "+f[0]+'="'+f[1]+'"',S++}Q&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.J.attrs=function(S){var c=[];this.options.sourcepos&&(S=S.sourcepos)&&c.push(["data-sourcepos",String(S[0][0])+":"+String(S[0][1])+"-"+String(S[1][0])+":"+String(S[1][1])]);return c};
xU.prototype.text=xU.prototype.text;xU.prototype.html_inline=xU.prototype.html_inline;xU.prototype.html_block=xU.prototype.html_block;xU.prototype.softbreak=xU.prototype.softbreak;xU.prototype.linebreak=xU.prototype.linebreak;xU.prototype.link=xU.prototype.link;xU.prototype.image=xU.prototype.image;xU.prototype.emph=xU.prototype.emph;xU.prototype.strong=xU.prototype.strong;xU.prototype.paragraph=xU.prototype.paragraph;xU.prototype.heading=xU.prototype.heading;xU.prototype.code=xU.prototype.code;
xU.prototype.code_block=xU.prototype.code_block;xU.prototype.thematic_break=xU.prototype.thematic_break;xU.prototype.block_quote=xU.prototype.block_quote;xU.prototype.list=xU.prototype.list;xU.prototype.item=xU.prototype.item;xU.prototype.custom_inline=xU.prototype.custom_inline;xU.prototype.custom_block=xU.prototype.custom_block;xU.prototype.table=xU.prototype.table;xU.prototype.row=xU.prototype.row;xU.prototype.td=xU.prototype.td;xU.prototype.th=xU.prototype.th;xU.prototype.out=xU.prototype.out;
xU.prototype.tag=xU.prototype.tag;xU.prototype.attrs=xU.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 ond,m_$,nbM;(function(){function S(T,h){return T<h?-1:T>h?1:T>=h?0:NaN}
function c(T){return function(h,G){return S(T(h),G)}}
function Q(){for(var T=0,h=arguments.length,G={},R;T<h;++T){if(!(R=arguments[T]+"")||R in G)throw Error("se`"+R);G[R]=[]}return new f(G)}
function f(T){this._=T}
function U(T,h){return T.trim().split(/^|\s+/).map(function(G){var R="",JZ=G.indexOf(".");JZ>=0&&(R=G.slice(JZ+1),G=G.slice(0,JZ));if(G&&!h.hasOwnProperty(G))throw Error("te`"+G);return{type:G,name:R}})}
function a(T,h,G){for(var R=0,JZ=T.length;R<JZ;++R)if(T[R].name===h){T[R]=YY1;T=T.slice(0,R).concat(T.slice(R+1));break}G!=null&&T.push({name:h,value:G});return T}
function X(T){var h=T,G=h.indexOf(":");G>=0&&(h=T.slice(0,G))!=="xmlns"&&(T=T.slice(G+1));return Xf.hasOwnProperty(h)?{space:Xf[h],local:T}:T}
function z(T){return function(){var h=this.ownerDocument,G=this.namespaceURI;return G==="http://www.w3.org/1999/xhtml"&&h.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?h.createElement(T):h.createElementNS(G,T)}}
function x(T){return function(){return this.ownerDocument.createElementNS(T.space,T.local)}}
function I(T){T=X(T);return(T.local?x:z)(T)}
function n(){}
function b(T){return T==null?n:function(){return this.querySelector(T)}}
function N(T){return Array(T.length)}
function l(T,h){this.ownerDocument=T.ownerDocument;this.namespaceURI=T.namespaceURI;this._next=null;this._parent=T;this.__data__=h}
function H(T){return function(){return T}}
function q(T,h,G,R,JZ,Bc){for(var uM=0,hZ,mp=h.length,RH=Bc.length;uM<RH;++uM)(hZ=h[uM])?(hZ.__data__=Bc[uM],R[uM]=hZ):G[uM]=new l(T,Bc[uM]);for(;uM<mp;++uM)if(hZ=h[uM])JZ[uM]=hZ}
function w(T,h,G,R,JZ,Bc,uM){var hZ,mp,RH={},Sz=h.length,Xh=Bc.length,v_=Array(Sz),Ig;for(hZ=0;hZ<Sz;++hZ)if(mp=h[hZ])v_[hZ]=Ig="$"+uM.call(mp,mp.__data__,hZ,h),Ig in RH?JZ[hZ]=mp:RH[Ig]=mp;for(hZ=0;hZ<Xh;++hZ)Ig="$"+uM.call(T,Bc[hZ],hZ,Bc),(mp=RH[Ig])?(R[hZ]=mp,mp.__data__=Bc[hZ],RH[Ig]=null):G[hZ]=new l(T,Bc[hZ]);for(hZ=0;hZ<Sz;++hZ)(mp=h[hZ])&&RH[v_[hZ]]===mp&&(JZ[hZ]=mp)}
function g(T,h){return T<h?-1:T>h?1:T>=h?0:NaN}
function r(T){return function(){this.removeAttribute(T)}}
function E(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function v(T,h){return function(){this.setAttribute(T,h)}}
function t(T,h){return function(){this.setAttributeNS(T.space,T.local,h)}}
function V(T,h){return function(){var G=h.apply(this,arguments);G==null?this.removeAttribute(T):this.setAttribute(T,G)}}
function AZ(T,h){return function(){var G=h.apply(this,arguments);G==null?this.removeAttributeNS(T.space,T.local):this.setAttributeNS(T.space,T.local,G)}}
function IH(T){return function(){this.style.removeProperty(T)}}
function Nr(T,h,G){return function(){this.style.setProperty(T,h,G)}}
function Hc(T,h,G){return function(){var R=h.apply(this,arguments);R==null?this.style.removeProperty(T):this.style.setProperty(T,R,G)}}
function qr(T,h){return T.style.getPropertyValue(h)||(T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView).getComputedStyle(T,null).getPropertyValue(h)}
function wp(T){return function(){delete this[T]}}
function Pc(T,h){return function(){this[T]=h}}
function ex(T,h){return function(){var G=h.apply(this,arguments);G==null?delete this[T]:this[T]=G}}
function yd(){this.textContent=""}
function op(T){return function(){this.textContent=T}}
function DT(T){return function(){var h=T.apply(this,arguments);this.textContent=h==null?"":h}}
function B_(){this.innerHTML=""}
function zJ(T){return function(){this.innerHTML=T}}
function Qp(T){return function(){var h=T.apply(this,arguments);this.innerHTML=h==null?"":h}}
function xl(){return null}
function xZ(){var T=this.parentNode;T&&T.removeChild(this)}
function hj(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function OT(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function uu(T,h,G){T=sd(T,h,G);return function(R){var JZ=R.relatedTarget;JZ&&(JZ===this||JZ.compareDocumentPosition(this)&8)||T.call(this,R)}}
function sd(T,h,G){return function(){T.call(this,this.__data__,h,G)}}
function LT(T){return T.trim().split(/^|\s+/).map(function(h){var G="",R=h.indexOf(".");R>=0&&(G=h.slice(R+1),h=h.slice(0,R));return{type:h,name:G}})}
function Ci(T){return function(){var h=this.__on;if(h){for(var G=0,R=-1,JZ=h.length,Bc;G<JZ;++G)(Bc=h[G],T.type&&Bc.type!==T.type||Bc.name!==T.name)?h[++R]=Bc:this.removeEventListener(Bc.type,Bc.listener,Bc.capture);++R?h.length=R:delete this.__on}}}
function t$(T,h,G){var R=iLu.hasOwnProperty(T.type)?uu:sd;return function(JZ,Bc,uM){JZ=this.__on;var hZ;Bc=R(h,Bc,uM);if(JZ){uM=0;for(var mp=JZ.length;uM<mp;++uM)if((hZ=JZ[uM]).type===T.type&&hZ.name===T.name){this.removeEventListener(hZ.type,hZ.listener,hZ.capture);this.addEventListener(hZ.type,hZ.listener=Bc,hZ.capture=G);hZ.value=h;return}}this.addEventListener(T.type,Bc,G);hZ={type:T.type,name:T.name,value:h,listener:Bc,capture:G};JZ?JZ.push(hZ):this.__on=[hZ]}}
function kp(T,h,G){var R=T.ownerDocument&&T.ownerDocument.defaultView||T.document&&T||T.defaultView,JZ=R.CustomEvent;typeof JZ==="function"?JZ=new JZ(h,G):(JZ=R.document.createEvent("Event"),G?(JZ.initEvent(h,G.bubbles,G.cancelable),JZ.detail=G.detail):JZ.initEvent(h,!1,!1));T.dispatchEvent(JZ)}
function Ed(T,h){return function(){return kp(this,T,h)}}
function J$(T,h){return function(){return kp(this,T,h.apply(this,arguments))}}
function ez(T,h){this._groups=T;this._parents=h}
function $0(){return new ez([[document.documentElement]],CRU)}
function $l(){this._="@"+(++HWT).toString(36)}
function h$(T,h,G){T.prototype=h.prototype=G;G.constructor=T}
function FE(T,h){T=Object.create(T.prototype);for(var G in h)T[G]=h[G];return T}
function an(){}
function XE(T){var h;T=(T+"").trim().toLowerCase();return(h=DJZ.exec(T))?(h=parseInt(h[1],16),new og(h>>8&15|h>>4&240,h>>4&15|h&240,(h&15)<<4|h&15,1)):(h=pgg.exec(T))?ui(parseInt(h[1],16)):(h=hY8.exec(T))?new og(h[1],h[2],h[3],1):(h=qYV.exec(T))?new og(h[1]*255/100,h[2]*255/100,h[3]*255/100,1):(h=TrZ.exec(T))?gN(h[1],h[2],h[3],h[4]):(h=wg2.exec(T))?gN(h[1]*255/100,h[2]*255/100,h[3]*255/100,h[4]):(h=sr0.exec(T))?sh(h[1],h[2]/100,h[3]/100,1):(h=Mpg.exec(T))?sh(h[1],h[2]/100,h[3]/100,h[4]):ZLd.hasOwnProperty(T)?
ui(ZLd[T]):T==="transparent"?new og(NaN,NaN,NaN,0):null}
function ui(T){return new og(T>>16&255,T>>8&255,T&255,1)}
function gN(T,h,G,R){R<=0&&(T=h=G=NaN);return new og(T,h,G,R)}
function rd(T){T instanceof an||(T=XE(T));if(!T)return new og;T=T.rgb();return new og(T.r,T.g,T.b,T.opacity)}
function pT(T,h,G,R){return arguments.length===1?rd(T):new og(T,h,G,R==null?1:R)}
function og(T,h,G,R){this.r=+T;this.g=+h;this.b=+G;this.opacity=+R}
function Aj(T){T=Math.max(0,Math.min(255,Math.round(T)||0));return(T<16?"0":"")+T.toString(16)}
function sh(T,h,G,R){R<=0?T=h=G=NaN:G<=0||G>=1?T=h=NaN:h<=0&&(T=NaN);return new y0(T,h,G,R)}
function zC(T){if(T instanceof y0)return new y0(T.h,T.s,T.l,T.opacity);T instanceof an||(T=XE(T));if(!T)return new y0;if(T instanceof y0)return T;T=T.rgb();var h=T.r/255,G=T.g/255,R=T.b/255,JZ=Math.min(h,G,R),Bc=Math.max(h,G,R),uM=NaN,hZ=Bc-JZ,mp=(Bc+JZ)/2;hZ?(uM=h===Bc?(G-R)/hZ+(G<R)*6:G===Bc?(R-h)/hZ+2:(h-G)/hZ+4,hZ/=mp<.5?Bc+JZ:2-Bc-JZ,uM*=60):hZ=mp>0&&mp<1?0:uM;return new y0(uM,hZ,mp,T.opacity)}
function Cb(T,h,G,R){return arguments.length===1?zC(T):new y0(T,h,G,R==null?1:R)}
function y0(T,h,G,R){this.h=+T;this.s=+h;this.l=+G;this.opacity=+R}
function yx(T,h,G){return(T<60?h+(G-h)*T/60:T<180?G:T<240?h+(G-h)*(240-T)/60:h)*255}
function eB(T){if(T instanceof lM)return new lM(T.l,T.a,T.b,T.opacity);if(T instanceof Ki){if(isNaN(T.h))return new lM(T.l,0,0,T.opacity);var h=T.h*GSd;return new lM(T.l,Math.cos(h)*T.c,Math.sin(h)*T.c,T.opacity)}T instanceof og||(T=rd(T));var G=AU(T.r),R=AU(T.g),JZ=AU(T.b);h=ZZ(.2225045*G+.7168786*R+.0606169*JZ);if(G===R&&R===JZ)var Bc=G=h;else Bc=ZZ((.4360747*G+.3850649*R+.1430804*JZ)/.96422),G=ZZ((.0139322*G+.0971045*R+.7141733*JZ)/.82521);return new lM(116*h-16,500*(Bc-h),200*(h-G),T.opacity)}
function lM(T,h,G,R){this.l=+T;this.a=+h;this.b=+G;this.opacity=+R}
function ZZ(T){return T>iWV?Math.pow(T,1/3):T/WU_+gNd}
function rp(T){return T>uC?T*T*T:WU_*(T-gNd)}
function bu(T){return 255*(T<=.0031308?12.92*T:1.055*Math.pow(T,1/2.4)-.055)}
function AU(T){return(T/=255)<=.04045?T/12.92:Math.pow((T+.055)/1.055,2.4)}
function qV(T){if(T instanceof Ki)return new Ki(T.h,T.c,T.l,T.opacity);T instanceof lM||(T=eB(T));if(T.a===0&&T.b===0)return new Ki(NaN,0,T.l,T.opacity);var h=Math.atan2(T.b,T.a)*eki;return new Ki(h<0?h+360:h,Math.sqrt(T.a*T.a+T.b*T.b),T.l,T.opacity)}
function B8(T,h,G,R){return arguments.length===1?qV(T):new Ki(T,h,G,R==null?1:R)}
function Ki(T,h,G,R){this.h=+T;this.c=+h;this.l=+G;this.opacity=+R}
function ni(T,h,G,R){if(arguments.length===1){var JZ=T;if(JZ instanceof uE)JZ=new uE(JZ.h,JZ.s,JZ.l,JZ.opacity);else{JZ instanceof og||(JZ=rd(JZ));var Bc=JZ.g/255,uM=JZ.b/255,hZ=(kSd*uM+JZ.r/255*-1.7884503806-3.5172982438*Bc)/(kSd+-1.7884503806-3.5172982438);uM-=hZ;var mp=(1.97294*(Bc-hZ)- -.29227*uM)/-.90649;uM=(Bc=Math.sqrt(mp*mp+uM*uM)/(1.97294*hZ*(1-hZ)))?Math.atan2(mp,uM)*eki-120:NaN;JZ=new uE(uM<0?uM+360:uM,Bc,hZ,JZ.opacity)}}else JZ=new uE(T,h,G,R==null?1:R);return JZ}
function uE(T,h,G,R){this.h=+T;this.s=+h;this.l=+G;this.opacity=+R}
function FA(T,h,G,R,JZ){var Bc=T*T,uM=Bc*T;return((1-3*T+3*Bc-uM)*h+(4-6*Bc+3*uM)*G+(1+3*T+3*Bc-3*uM)*R+uM*JZ)/6}
function ap(T){return function(){return T}}
function bo(T,h){return function(G){return T+G*h}}
function At(T,h,G){return T=Math.pow(T,G),h=Math.pow(h,G)-T,G=1/G,function(R){return Math.pow(T+R*h,G)}}
function iY(T,h){var G=h-T;return G?bo(T,G>180||G<-180?G-360*Math.round(G/360):G):ap(isNaN(T)?h:T)}
function j6(T){return(T=+T)===1?r5:function(h,G){return G-h?At(h,G,T):ap(isNaN(h)?G:h)}}
function r5(T,h){var G=h-T;return G?bo(T,G):ap(isNaN(T)?h:T)}
function Sy(T){return function(h){var G=h.length,R=Array(G),JZ=Array(G),Bc=Array(G),uM;for(uM=0;uM<G;++uM){var hZ=pT(h[uM]);R[uM]=hZ.r||0;JZ[uM]=hZ.g||0;Bc[uM]=hZ.b||0}R=T(R);JZ=T(JZ);Bc=T(Bc);hZ.opacity=1;return function(mp){hZ.r=R(mp);hZ.g=JZ(mp);hZ.b=Bc(mp);return hZ+""}}}
function vc(T,h){return T=+T,h-=T,function(G){return T+h*G}}
function UZ(T){return function(){return T}}
function W8(T){return function(h){return T(h)+""}}
function Rg(T,h){var G=PKY.lastIndex=LUp.lastIndex=0,R,JZ,Bc,uM=-1,hZ=[],mp=[];T+="";for(h+="";(R=PKY.exec(T))&&(JZ=LUp.exec(h));)(Bc=JZ.index)>G&&(Bc=h.slice(G,Bc),hZ[uM]?hZ[uM]+=Bc:hZ[++uM]=Bc),(R=R[0])===(JZ=JZ[0])?hZ[uM]?hZ[uM]+=JZ:hZ[++uM]=JZ:(hZ[++uM]=null,mp.push({i:uM,x:vc(R,JZ)})),G=LUp.lastIndex;G<h.length&&(Bc=h.slice(G),hZ[uM]?hZ[uM]+=Bc:hZ[++uM]=Bc);return hZ.length<2?mp[0]?W8(mp[0].x):UZ(h):(h=mp.length,function(RH){for(var Sz=0,Xh;Sz<h;++Sz)hZ[(Xh=mp[Sz]).i]=Xh.x(RH);return hZ.join("")})}
function on(T,h,G,R,JZ,Bc){var uM,hZ,mp;if(uM=Math.sqrt(T*T+h*h))T/=uM,h/=uM;if(mp=T*G+h*R)G-=T*mp,R-=h*mp;if(hZ=Math.sqrt(G*G+R*R))G/=hZ,R/=hZ,mp/=hZ;T*R<h*G&&(T=-T,h=-h,mp=-mp,uM=-uM);return{translateX:JZ,translateY:Bc,rotate:Math.atan2(h,T)*rkd,skewX:Math.atan(mp)*rkd,scaleX:uM,scaleY:hZ}}
function U7(T,h,G,R){function JZ(RH){return RH.length?RH.pop()+" ":""}
function Bc(RH,Sz,Xh,v_,Ig,bY){RH!==Xh||Sz!==v_?(Ig=Ig.push("translate(",null,h,null,G),bY.push({i:Ig-4,x:vc(RH,Xh)},{i:Ig-2,x:vc(Sz,v_)})):(Xh||v_)&&Ig.push("translate("+Xh+h+v_+G)}
function uM(RH,Sz,Xh,v_){RH!==Sz?(RH-Sz>180?Sz+=360:Sz-RH>180&&(RH+=360),v_.push({i:Xh.push(JZ(Xh)+"rotate(",null,R)-2,x:vc(RH,Sz)})):Sz&&Xh.push(JZ(Xh)+"rotate("+Sz+R)}
function hZ(RH,Sz,Xh,v_){RH!==Sz?v_.push({i:Xh.push(JZ(Xh)+"skewX(",null,R)-2,x:vc(RH,Sz)}):Sz&&Xh.push(JZ(Xh)+"skewX("+Sz+R)}
function mp(RH,Sz,Xh,v_,Ig,bY){RH!==Xh||Sz!==v_?(Ig=Ig.push(JZ(Ig)+"scale(",null,",",null,")"),bY.push({i:Ig-4,x:vc(RH,Xh)},{i:Ig-2,x:vc(Sz,v_)})):Xh===1&&v_===1||Ig.push(JZ(Ig)+"scale("+Xh+","+v_+")")}
return function(RH,Sz){var Xh=[],v_=[];RH=T(RH);Sz=T(Sz);Bc(RH.translateX,RH.translateY,Sz.translateX,Sz.translateY,Xh,v_);uM(RH.rotate,Sz.rotate,Xh,v_);hZ(RH.skewX,Sz.skewX,Xh,v_);mp(RH.scaleX,RH.scaleY,Sz.scaleX,Sz.scaleY,Xh,v_);RH=Sz=null;return function(Ig){for(var bY=-1,io=v_.length,$D;++bY<io;)Xh[($D=v_[bY]).i]=$D.x(Ig);return Xh.join("")}}}
function Ba(T){return function(h,G){var R=T((h=Cb(h)).h,(G=Cb(G)).h),JZ=r5(h.s,G.s),Bc=r5(h.l,G.l),uM=r5(h.opacity,G.opacity);return function(hZ){h.h=R(hZ);h.s=JZ(hZ);h.l=Bc(hZ);h.opacity=uM(hZ);return h+""}}}
function Dv(T){return function(h,G){var R=T((h=B8(h)).h,(G=B8(G)).h),JZ=r5(h.c,G.c),Bc=r5(h.l,G.l),uM=r5(h.opacity,G.opacity);return function(hZ){h.h=R(hZ);h.c=JZ(hZ);h.l=Bc(hZ);h.opacity=uM(hZ);return h+""}}}
function pj(T){return function R(G){function JZ(Bc,uM){var hZ=T((Bc=ni(Bc)).h,(uM=ni(uM)).h),mp=r5(Bc.s,uM.s),RH=r5(Bc.l,uM.l),Sz=r5(Bc.opacity,uM.opacity);return function(Xh){Bc.h=hZ(Xh);Bc.s=mp(Xh);Bc.l=RH(Math.pow(Xh,G));Bc.opacity=Sz(Xh);return Bc+""}}
G=+G;JZ.gamma=R;return JZ}(1)}
function M0(){return JL||(dYs(E0o),JL=ch.now()+nvY)}
function E0o(){JL=0}
function iF(){this._call=this._time=this._next=null}
function of(T,h,G){var R=new iF;R.restart(T,h,G);return R}
function mT(){JL=(byc=ch.now())+nvY;jq=QB=0;try{M0();++jq;for(var T=NXo,h;T;)(h=JL-T._time)>=0&&T._call.call(null,h),T=T._next;--jq}finally{jq=0;T=NXo;for(var G=Infinity;T;)if(T._call){G>T._time&&(G=T._time);var R=T;T=T._next}else h=T._next,T._next=null,T=R?R._next=h:NXo=h;fA=R;Sf(G);JL=0}}
function hBp(){var T=ch.now(),h=T-byc;h>1E3&&(nvY-=h,byc=T)}
function Sf(T){jq||(QB&&(QB=clearTimeout(QB)),T-JL>24?(T<Infinity&&(QB=setTimeout(mT,T-ch.now()-nvY)),Ui&&(Ui=clearInterval(Ui))):(Ui||(byc=ch.now(),Ui=setInterval(hBp,1E3)),jq=1,dYs(mT)))}
function vNi(T,h,G){var R=new iF;h=h==null?0:+h;R.restart(function(JZ){R.stop();T(JZ+h)},h,G);
return R}
function ENM(T,h,G,R,JZ,Bc){var uM=T.__transition;if(!uM)T.__transition={};else if(G in uM)return;ZWV(T,G,{name:h,index:R,group:JZ,on:G1V,tween:WJV,time:Bc.time,delay:Bc.delay,duration:Bc.duration,ease:Bc.ease,timer:null,state:0})}
function t5r(T,h){T=ol(T,h);if(T.state>0)throw Error("ue");return T}
function a2(T,h){T=ol(T,h);if(T.state>2)throw Error("ve");return T}
function ol(T,h){T=T.__transition;if(!T||!(T=T[h]))throw Error("we");return T}
function ZWV(T,h,G){function R(mp){var RH,Sz;if(G.state!==1)return Bc();for(v_ in uM){var Xh=uM[v_];if(Xh.name===G.name){if(Xh.state===3)return vNi(R);Xh.state===4?(Xh.state=6,Xh.timer.stop(),Xh.on.call("interrupt",T,T.__data__,Xh.index,Xh.group),delete uM[v_]):+v_<h&&(Xh.state=6,Xh.timer.stop(),delete uM[v_])}}vNi(function(){G.state===3&&(G.state=4,G.timer.restart(JZ,G.delay,G.time),JZ(mp))});
G.state=2;G.on.call("start",T,T.__data__,G.index,G.group);if(G.state===2){G.state=3;hZ=Array(Sz=G.tween.length);var v_=0;for(RH=-1;v_<Sz;++v_)if(Xh=G.tween[v_].value.call(T,T.__data__,G.index,G.group))hZ[++RH]=Xh;hZ.length=RH+1}}
function JZ(mp){mp=mp<G.duration?G.ease.call(null,mp/G.duration):(G.timer.restart(Bc),G.state=5,1);for(var RH=-1,Sz=hZ.length;++RH<Sz;)hZ[RH].call(null,mp);G.state===5&&(G.on.call("end",T,T.__data__,G.index,G.group),Bc())}
function Bc(){G.state=6;G.timer.stop();delete uM[h];for(var mp in uM)return;delete T.__transition}
var uM=T.__transition,hZ;uM[h]=G;G.timer=of(function(mp){G.state=1;G.timer.restart(R,G.delay,G.time);G.delay<=mp&&R(mp-G.delay)},0,G.time)}
function gHT(T,h){var G,R;return function(){var JZ=a2(this,T),Bc=JZ.tween;if(Bc!==G){R=G=Bc;Bc=0;for(var uM=R.length;Bc<uM;++Bc)if(R[Bc].name===h){R=R.slice();R.splice(Bc,1);break}}JZ.tween=R}}
function eYG(T,h,G){var R,JZ;if(typeof G!=="function")throw Error();return function(){var Bc=a2(this,T),uM=Bc.tween;if(uM!==R){JZ=(R=uM).slice();uM={name:h,value:G};for(var hZ=0,mp=JZ.length;hZ<mp;++hZ)if(JZ[hZ].name===h){JZ[hZ]=uM;break}hZ===mp&&JZ.push(uM)}Bc.tween=JZ}}
function V5o(T,h,G){var R=T._id;T.each(function(){var JZ=a2(this,R);(JZ.value||(JZ.value={}))[h]=G.apply(this,arguments)});
return function(JZ){return ol(JZ,R).value[h]}}
function PKl(T,h){var G;return(typeof h==="number"?vc:h instanceof XE?LUd:(G=XE(h))?(h=G,LUd):Rg)(T,h)}
function k1U(T){return function(){this.removeAttribute(T)}}
function rPE(T){return function(){this.removeAttributeNS(T.space,T.local)}}
function dJN(T,h,G){var R,JZ;return function(){var Bc=this.getAttribute(T);return Bc===G?null:Bc===R?JZ:JZ=h(R=Bc,G)}}
function vHO(T,h,G){var R,JZ;return function(){var Bc=this.getAttributeNS(T.space,T.local);return Bc===G?null:Bc===R?JZ:JZ=h(R=Bc,G)}}
function PRO(T,h,G){var R,JZ,Bc;return function(){var uM=G(this);if(uM==null)return void this.removeAttribute(T);var hZ=this.getAttribute(T);return hZ===uM?null:hZ===R&&uM===JZ?Bc:Bc=h(R=hZ,JZ=uM)}}
function LJ2(T,h,G){var R,JZ,Bc;return function(){var uM=G(this);if(uM==null)return void this.removeAttributeNS(T.space,T.local);var hZ=this.getAttributeNS(T.space,T.local);return hZ===uM?null:hZ===R&&uM===JZ?Bc:Bc=h(R=hZ,JZ=uM)}}
function EHE(T,h){function G(){var R=this,JZ=h.apply(R,arguments);return JZ&&function(Bc){R.setAttributeNS(T.space,T.local,JZ(Bc))}}
G._value=h;return G}
function tpO(T,h){function G(){var R=this,JZ=h.apply(R,arguments);return JZ&&function(Bc){R.setAttribute(T,JZ(Bc))}}
G._value=h;return G}
function Vpg(T,h){return function(){t5r(this,T).delay=+h.apply(this,arguments)}}
function RYZ(T,h){return h=+h,function(){t5r(this,T).delay=h}}
function yPp(T,h){return function(){a2(this,T).duration=+h.apply(this,arguments)}}
function oH8(T,h){return h=+h,function(){a2(this,T).duration=h}}
function mJO(T,h){if(typeof h!=="function")throw Error();return function(){a2(this,T).ease=h}}
function SRT(T){return(T+"").trim().split(/^|\s+/).every(function(h){var G=h.indexOf(".");G>=0&&(h=h.slice(0,G));return!h||h==="start"})}
function cMB(T,h,G){var R,JZ,Bc=SRT(h)?t5r:a2;return function(){var uM=Bc(this,T),hZ=uM.on;if(hZ!==R)(JZ=(R=hZ).copy()).on(h,G);uM.on=JZ}}
function QlZ(T){return function(){var h=this.parentNode,G;for(G in this.__transition)if(+G!==T)return;h&&h.removeChild(this)}}
function f$1(T,h){var G,R,JZ;return function(){var Bc=qr(this,T),uM=(this.style.removeProperty(T),qr(this,T));return Bc===uM?null:Bc===G&&uM===R?JZ:JZ=h(G=Bc,R=uM)}}
function U1G(T){return function(){this.style.removeProperty(T)}}
function JM0(T,h,G){var R,JZ;return function(){var Bc=qr(this,T);return Bc===G?null:Bc===R?JZ:JZ=h(R=Bc,G)}}
function a$G(T,h,G){var R,JZ,Bc;return function(){var uM=qr(this,T),hZ=G(this);hZ==null&&(hZ=(this.style.removeProperty(T),qr(this,T)));return uM===hZ?null:uM===R&&hZ===JZ?Bc:Bc=h(R=uM,JZ=hZ)}}
function AME(T,h,G){function R(){var JZ=this,Bc=h.apply(JZ,arguments);return Bc&&function(uM){JZ.style.setProperty(T,Bc(uM),G)}}
R._value=h;return R}
function XlZ(T){return function(){this.textContent=T}}
function OxO(T){return function(){var h=T(this);this.textContent=h==null?"":h}}
function Ox(T,h,G,R){this._groups=T;this._parents=h;this._name=G;this._id=R}
function Rkc(T){return{type:T}}
function ykp(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function KmZ(){}
function ENu(T,h){var G=new KmZ;if(T instanceof KmZ)T.each(function(uM,hZ){G.set(hZ,uM)});
else if(Array.isArray(T)){var R=-1,JZ=T.length,Bc;if(h==null)for(;++R<JZ;)G.set(R,T[R]);else for(;++R<JZ;)G.set(h(Bc=T[R],R,T),Bc)}else if(T)for(R in T)G.set(R,T[R]);return G}
function $jc(){}
function t5H(T){return function(h){for(var G={},R=0;R<T.length;R++)G[T[R]]=h[R]||"";return G}}
function zdN(T,h){var G=t5H(T);return function(R,JZ){return h(G(R),JZ,T)}}
function x1N(T){var h=Object.create(null),G=[];T.forEach(function(R){for(var JZ in R)JZ in h||G.push(h[JZ]=JZ)});
return G}
function V5h(T){function h(uM,hZ){function mp(){if(bY)return oNr;if(io)return io=!1,Rk_;var YM,W1=Xh,y7;if(uM.charCodeAt(W1)===34){for(;Xh++<Sz&&uM.charCodeAt(Xh)!==34||uM.charCodeAt(++Xh)===34;);(YM=Xh)>=Sz?bY=!0:(y7=uM.charCodeAt(Xh++))===10?io=!0:y7===13&&(io=!0,uM.charCodeAt(Xh)===10&&++Xh);return uM.slice(W1+1,YM-1).replace(/""/g,'"')}for(;Xh<Sz;){if((y7=uM.charCodeAt(YM=Xh++))===10)io=!0;else if(y7===13)io=!0,uM.charCodeAt(Xh)===10&&++Xh;else if(y7!==Bc)continue;return uM.slice(W1,YM)}return bY=
!0,uM.slice(W1,Sz)}
var RH=[],Sz=uM.length,Xh=0,v_=0,Ig,bY=Sz<=0,io=!1;uM.charCodeAt(Sz-1)===10&&--Sz;for(uM.charCodeAt(Sz-1)===13&&--Sz;(Ig=mp())!==oNr;){for(var $D=[];Ig!==Rk_&&Ig!==oNr;)$D.push(Ig),Ig=mp();hZ&&($D=hZ($D,v_++))==null||RH.push($D)}return RH}
function G(uM){return uM.map(R).join(T)}
function R(uM){return uM==null?"":JZ.test(uM)?'"'+uM.replace(/"/g,'""')+'"':uM}
var JZ=new RegExp('["'+T+"\n\r]"),Bc=T.charCodeAt(0);return{parse:function(uM,hZ){var mp,RH;uM=h(uM,function(Sz,Xh){if(mp)return mp(Sz,Xh-1);RH=Sz;mp=hZ?zdN(Sz,hZ):t5H(Sz)});
uM.columns=RH||[];return uM},
parseRows:h,format:function(uM,hZ){hZ==null&&(hZ=x1N(uM));return[hZ.map(R).join(T)].concat(uM.map(function(mp){return hZ.map(function(RH){return R(mp[RH])}).join(T)})).join("\n")},
formatRows:function(uM){return uM.map(G).join("\n")}}}
function FCG(T){if(!T.ok)throw Error("xe`"+T.status+"`"+T.statusText);return T.text()}
function ykd(T){return function(h,G,R){arguments.length===2&&typeof G==="function"&&(R=G,G=void 0);return fetch(h,G).then(FCG).then(function(JZ){return T(JZ,R)})}}
function oNH(T,h,G,R){if(isNaN(h)||isNaN(G))return T;var JZ,Bc=T._root;R={data:R};var uM=T._x0,hZ=T._y0,mp=T._x1,RH=T._y1,Sz,Xh,v_,Ig,bY;if(!Bc)return T._root=R,T;for(;Bc.length;)if((v_=h>=(Sz=(uM+mp)/2))?uM=Sz:mp=Sz,(Ig=G>=(Xh=(hZ+RH)/2))?hZ=Xh:RH=Xh,JZ=Bc,!(Bc=Bc[bY=Ig<<1|v_]))return JZ[bY]=R,T;var io=+T._x.call(null,Bc.data);var $D=+T._y.call(null,Bc.data);if(h===io&&G===$D)return R.next=Bc,JZ?JZ[bY]=R:T._root=R,T;do JZ=JZ?JZ[bY]=Array(4):T._root=Array(4),(v_=h>=(Sz=(uM+mp)/2))?uM=Sz:mp=Sz,(Ig=
G>=(Xh=(hZ+RH)/2))?hZ=Xh:RH=Xh;while((bY=Ig<<1|v_)===(v_=($D>=Xh)<<1|io>=Sz));return JZ[v_]=Bc,JZ[bY]=R,T}
function bl(T,h,G,R,JZ){this.node=T;this.x0=h;this.y0=G;this.x1=R;this.y1=JZ}
function BO1(T){return T[0]}
function I$Z(T){return T[1]}
function mYT(T,h,G,R,JZ,Bc){this._x=T;this._y=h;this._x0=G;this._y0=R;this._x1=JZ;this._y1=Bc;this._root=void 0}
function mYd(T){for(var h={data:T.data},G=h;T=T.next;)G=G.next={data:T.data};return h}
function urY(T,h){if((h=(T=h?T.toExponential(h-1):T.toExponential()).indexOf("e"))<0)return null;var G=T.slice(0,h);return[G.length>1?G[0]+G.slice(2):G,+T.slice(h+1)]}
function nq2(T){return T=urY(Math.abs(T)),T?T[1]:NaN}
function bxV(T,h){return function(G,R){for(var JZ=G.length,Bc=[],uM=0,hZ=T[0],mp=0;JZ>0&&hZ>0;){mp+hZ+1>R&&(hZ=Math.max(1,R-mp));Bc.push(G.substring(JZ-=hZ,JZ+hZ));if((mp+=hZ+1)>R)break;hZ=T[uM=(uM+1)%T.length]}return Bc.reverse().join(h)}}
function NO0(T){return function(h){return h.replace(/[0-9]/g,function(G){return T[+G]})}}
function S$o(T){return new cez(T)}
function cez(T){if(!(h=KCB.exec(T)))throw Error("ye`"+T);var h;this.fill=h[1]||" ";this.align=h[2]||">";this.sign=h[3]||"-";this.symbol=h[4]||"";this.zero=!!h[5];this.width=h[6]&&+h[6];this.comma=!!h[7];this.precision=h[8]&&+h[8].slice(1);this.trim=!!h[9];this.type=h[10]||""}
function S$h(T,h){h=urY(T,h);if(!h)return T+"";T=h[0];h=h[1];return h<0?"0."+Array(-h).join("0")+T:T.length>h+1?T.slice(0,h+1)+"."+T.slice(h+1):T+Array(h-T.length+2).join("0")}
function ceJ(T){return T}
function $1g(T){function h(hZ){function mp(Lh){var vi=y7,hU=u8,OC,Qf;if(W1==="c")hU=gF(Lh)+hU,Lh="";else{Lh=+Lh;var NG=Lh<0;Lh=gF(Math.abs(Lh),$D);if(YM){var Mj=Lh.length,ze=1,C6=-1;a:for(;ze<Mj;++ze)switch(Lh[ze]){case ".":C6=OC=ze;break;case "0":C6===0&&(C6=ze);OC=ze;break;default:if(!+Lh[ze])break a;C6>0&&(C6=0)}Lh=C6>0?Lh.slice(0,C6)+Lh.slice(OC+1):Lh}NG&&+Lh===0&&(NG=!1);vi=(NG?Xh==="("?Xh:"-":Xh==="-"||Xh==="("?"":Xh)+vi;hU=(W1==="s"?Q7l[8+fVs/3]:"")+hU+(NG&&Xh==="("?")":"");if(F4)for(NG=-1,
OC=Lh.length;++NG<OC;)if(Qf=Lh.charCodeAt(NG),48>Qf||Qf>57){hU=(Qf===46?JZ+Lh.slice(NG+1):Lh.slice(NG))+hU;Lh=Lh.slice(0,NG);break}}io&&!Ig&&(Lh=G(Lh,Infinity));Qf=vi.length+Lh.length+hU.length;NG=Qf<bY?Array(bY-Qf+1).join(RH):"";io&&Ig&&(Lh=G(NG+Lh,NG.length?bY-hU.length:Infinity),NG="");switch(Sz){case "<":Lh=vi+Lh+hU+NG;break;case "=":Lh=vi+NG+Lh+hU;break;case "^":Lh=NG.slice(0,Qf=NG.length>>1)+vi+Lh+hU+NG.slice(Qf);break;default:Lh=NG+vi+Lh+hU}return Bc(Lh)}
hZ=S$o(hZ);var RH=hZ.fill,Sz=hZ.align,Xh=hZ.sign,v_=hZ.symbol,Ig=hZ.zero,bY=hZ.width,io=hZ.comma,$D=hZ.precision,YM=hZ.trim,W1=hZ.type;W1==="n"?(io=!0,W1="g"):U9e[W1]||($D==null&&($D=12),YM=!0,W1="g");if(Ig||RH==="0"&&Sz==="=")Ig=!0,RH="0",Sz="=";var y7=v_==="$"?R[0]:v_==="#"&&/[boxX]/.test(W1)?"0"+W1.toLowerCase():"",u8=v_==="$"?R[1]:/[%p]/.test(W1)?uM:"",gF=U9e[W1],F4=/[defgprs%]/.test(W1);$D=$D==null?6:/[gprs]/.test(W1)?Math.max(1,Math.min(21,$D)):Math.max(0,Math.min(20,$D));mp.toString=function(){return hZ+
""};
return mp}
var G=T.grouping&&T.thousands?bxV(T.grouping,T.thousands):ceJ,R=T.currency,JZ=T.decimal,Bc=T.numerals?NO0(T.numerals):ceJ,uM=T.percent||"%";return{format:h,formatPrefix:function(hZ,mp){var RH=h((hZ=S$o(hZ),hZ.type="f",hZ));hZ=Math.max(-8,Math.min(8,Math.floor(nq2(mp)/3)))*3;var Sz=Math.pow(10,-hZ),Xh=Q7l[8+hZ/3];return function(v_){return RH(Sz*v_)+Xh}}}}
function tw(){this.reset()}
function JeT(T,h,G){var R=T.s=h+G,JZ=R-h;T.t=h-(R-JZ)+(G-JZ)}
function jxp(T){return T>1?OI:T<-1?-OI:Math.asin(T)}
function uNO(){}
function aVs(T){var h=T[0];T=T[1];var G=zw(T);return[G*zw(h),G*RI(h),RI(T)]}
function Aei(T,h){return[T[1]*h[2]-T[2]*h[1],T[2]*h[0]-T[0]*h[2],T[0]*h[1]-T[1]*h[0]]}
function Xxi(T){var h=lfY(T[0]*T[0]+T[1]*T[1]+T[2]*T[2]);T[0]/=h;T[1]/=h;T[2]/=h}
function jlT(){var T=[],h;return{point:function(G,R){h.push([G,R])},
lineStart:function(){T.push(h=[])},
lineEnd:uNO,rejoin:function(){T.length>1&&T.push(T.pop().concat(T.shift()))},
result:function(){var G=T;T=[];h=null;return G}}}
function Yjc(T,h,G,R){this.x=T;this.z=h;this.o=G;this.e=R;this.v=!1;this.n=this.p=null}
function l$N(T,h,G,R,JZ){var Bc=[],uM=[];T.forEach(function(Xh){if(!((v_=Xh.length-1)<=0)){var v_,Ig=Xh[0],bY=Xh[v_],io=Ig;if(z3(io[0]-bY[0])<1E-6&&z3(io[1]-bY[1])<1E-6){JZ.lineStart();for(hZ=0;hZ<v_;++hZ)JZ.point((Ig=Xh[hZ])[0],Ig[1]);JZ.lineEnd()}else Bc.push(v_=new Yjc(Ig,Xh,null,!0)),uM.push(v_.o=new Yjc(Ig,null,v_,!1)),Bc.push(v_=new Yjc(bY,Xh,null,!1)),uM.push(v_.o=new Yjc(bY,null,v_,!0))}});
if(Bc.length){uM.sort(h);OOi(Bc);OOi(uM);var hZ=0;for(T=uM.length;hZ<T;++hZ)uM[hZ].e=G=!G;G=Bc[0];for(var mp;;){for(var RH=G,Sz=!0;RH.v;)if((RH=RH.n)===G)return;h=RH.z;JZ.lineStart();do{RH.v=RH.o.v=!0;if(RH.e){if(Sz)for(hZ=0,T=h.length;hZ<T;++hZ)JZ.point((mp=h[hZ])[0],mp[1]);else R(RH.x,RH.n.x,1,JZ);RH=RH.n}else{if(Sz)for(h=RH.p.z,hZ=h.length-1;hZ>=0;--hZ)JZ.point((mp=h[hZ])[0],mp[1]);else R(RH.x,RH.p.x,-1,JZ);RH=RH.p}RH=RH.o;h=RH.z;Sz=!Sz}while(!RH.v);JZ.lineEnd()}}}
function OOi(T){if(h=T.length){for(var h,G=0,R=T[0],JZ;++G<h;)R.n=JZ=T[G],JZ.p=R,R=JZ;R.n=JZ=T[0];JZ.p=R}}
function YRZ(T){return T.length>1}
function CrO(T,h){return((T=T.x)[0]<0?T[1]-OI-1E-6:OI-T[1])-((h=h.x)[0]<0?h[1]-OI-1E-6:OI-h[1])}
function Q7Y(){}
function z6d(T){return function(h,G){var R=zw(h),JZ=zw(G);R=T(R*JZ);return[R*JZ*RI(h),R*RI(G)]}}
function JF(T){return function(h,G){var R=lfY(h*h+G*G),JZ=T(R),Bc=RI(JZ);JZ=zw(JZ);return[x9d(h*Bc,R*JZ),jxp(R&&G*Bc/R)]}}
function Hx1(T){var h=0,G=T.children,R=G&&G.length;if(R)for(;--R>=0;)h+=G[R].value;else h=1;T.value=h}
function FIT(T,h){var G=new a9(T);T=+T.value&&(G.value=T.value);var R,JZ=[G],Bc,uM,hZ,mp;for(h==null&&(h=D1T);R=JZ.pop();)if(T&&(R.value=+R.data.value),(uM=h(R.data))&&(mp=uM.length))for(R.children=Array(mp),hZ=mp-1;hZ>=0;--hZ)JZ.push(Bc=R.children[hZ]=new a9(uM[hZ])),Bc.parent=R,Bc.depth=R.depth+1;return G.eachBefore(plG)}
function D1T(T){return T.children}
function hdB(T){T.data=T.data.data}
function plG(T){var h=0;do T.height=h;while((T=T.parent)&&T.height<++h)}
function a9(T){this.data=T;this.depth=this.height=0;this.parent=null}
function dK(T,h,G,R){function JZ(Bc){return T(Bc=new Date(+Bc)),Bc}
JZ.floor=JZ;JZ.ceil=function(Bc){return T(Bc=new Date(Bc-1)),h(Bc,1),T(Bc),Bc};
JZ.round=function(Bc){var uM=JZ(Bc),hZ=JZ.ceil(Bc);return Bc-uM<hZ-Bc?uM:hZ};
JZ.offset=function(Bc,uM){return h(Bc=new Date(+Bc),uM==null?1:Math.floor(uM)),Bc};
JZ.range=function(Bc,uM,hZ){var mp=[],RH;Bc=JZ.ceil(Bc);hZ=hZ==null?1:Math.floor(hZ);if(!(Bc<uM&&hZ>0))return mp;do mp.push(RH=new Date(+Bc)),h(Bc,hZ),T(Bc);while(RH<Bc&&Bc<uM);return mp};
JZ.filter=function(Bc){return dK(function(uM){if(uM>=uM)for(;T(uM),!Bc(uM);)uM.setTime(uM-1)},function(uM,hZ){if(uM>=uM)if(hZ<0)for(;++hZ<=0;)for(;h(uM,-1),!Bc(uM););
else for(;--hZ>=0;)for(;h(uM,1),!Bc(uM););})};
G&&(JZ.count=function(Bc,uM){fVR.setTime(+Bc);U9p.setTime(+uM);T(fVR);T(U9p);return Math.floor(G(fVR,U9p))},JZ.every=function(Bc){Bc=Math.floor(Bc);
return isFinite(Bc)&&Bc>0?Bc>1?JZ.filter(R?function(uM){return R(uM)%Bc===0}:function(uM){return JZ.count(0,uM)%Bc===0}):JZ:null});
return JZ}
function AL(T){return dK(function(h){h.setDate(h.getDate()-(h.getDay()+7-T)%7);h.setHours(0,0,0,0)},function(h,G){h.setDate(h.getDate()+G*7)},function(h,G){return(G-h-(G.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/6048E5})}
function XW(T){return dK(function(h){h.setUTCDate(h.getUTCDate()-(h.getUTCDay()+7-T)%7);h.setUTCHours(0,0,0,0)},function(h,G){h.setUTCDate(h.getUTCDate()+G*7)},function(h,G){return(G-h)/6048E5})}
function qR1(T){if(0<=T.y&&T.y<100){var h=new Date(-1,T.m,T.d,T.H,T.M,T.S,T.L);h.setFullYear(T.y);return h}return new Date(T.y,T.m,T.d,T.H,T.M,T.S,T.L)}
function CQH(T){if(0<=T.y&&T.y<100){var h=new Date(Date.UTC(-1,T.m,T.d,T.H,T.M,T.S,T.L));h.setUTCFullYear(T.y);return h}return new Date(Date.UTC(T.y,T.m,T.d,T.H,T.M,T.S,T.L))}
function AF(T){return{y:T,m:0,d:1,H:0,M:0,S:0,L:0}}
function TOZ(T){function h(hU,OC){return function(Qf){var NG=[],Mj=-1,ze=0,C6=hU.length,mm,qY;for(Qf instanceof Date||(Qf=new Date(+Qf));++Mj<C6;)if(hU.charCodeAt(Mj)===37){NG.push(hU.slice(ze,Mj));(ze=B9J[mm=hU.charAt(++Mj)])!=null?mm=hU.charAt(++Mj):ze=mm==="e"?" ":"0";if(qY=OC[mm])mm=qY(Qf,ze);NG.push(mm);ze=Mj+1}NG.push(hU.slice(ze,Mj));return NG.join("")}}
function G(hU,OC){return function(Qf){var NG=AF(1900);if(R(NG,hU,Qf,0)!=Qf.length)return null;if("Q"in NG)return new Date(NG.Q);"p"in NG&&(NG.H=NG.H%12+NG.p*12);if("V"in NG){if(NG.V<1||NG.V>53)return null;"w"in NG||(NG.w=1);if("Z"in NG){Qf=CQH(AF(NG.y));var Mj=Qf.getUTCDay();Qf=Mj>4||Mj===0?JeZ.ceil(Qf):JeZ(Qf);Qf=IVd.offset(Qf,(NG.V-1)*7);NG.y=Qf.getUTCFullYear();NG.m=Qf.getUTCMonth();NG.d=Qf.getUTCDate()+(NG.w+6)%7}else Qf=OC(AF(NG.y)),Mj=Qf.getDay(),Qf=Mj>4||Mj===0?aVR.ceil(Qf):aVR(Qf),Qf=n1_.offset(Qf,
(NG.V-1)*7),NG.y=Qf.getFullYear(),NG.m=Qf.getMonth(),NG.d=Qf.getDate()+(NG.w+6)%7}else if("W"in NG||"U"in NG)"w"in NG||(NG.w="u"in NG?NG.u%7:"W"in NG?1:0),Mj="Z"in NG?CQH(AF(NG.y)).getUTCDay():OC(AF(NG.y)).getDay(),NG.m=0,NG.d="W"in NG?(NG.w+6)%7+NG.W*7-(Mj+5)%7:NG.w+NG.U*7-(Mj+6)%7;return"Z"in NG?(NG.H+=NG.Z/100|0,NG.M+=NG.Z%100,CQH(NG)):OC(NG)}}
function R(hU,OC,Qf,NG){for(var Mj=0,ze=OC.length,C6=Qf.length,mm;Mj<ze;){if(NG>=C6)return-1;mm=OC.charCodeAt(Mj++);if(mm===37){if(mm=OC.charAt(Mj++),mm=vi[mm in B9J?OC.charAt(Mj++):mm],!mm||(NG=mm(hU,Qf,NG))<0)return-1}else if(mm!=Qf.charCodeAt(NG++))return-1}return NG}
var JZ=T.dateTime,Bc=T.date,uM=T.time,hZ=T.periods,mp=T.days,RH=T.shortDays,Sz=T.months,Xh=T.shortMonths,v_=XO(hZ),Ig=Oi(hZ),bY=XO(mp),io=Oi(mp),$D=XO(RH),YM=Oi(RH),W1=XO(Sz),y7=Oi(Sz),u8=XO(Xh),gF=Oi(Xh),F4={a:function(hU){return RH[hU.getDay()]},
A:function(hU){return mp[hU.getDay()]},
b:function(hU){return Xh[hU.getMonth()]},
B:function(hU){return Sz[hU.getMonth()]},
c:null,d:bOp,e:bOp,f:wl2,H:sl0,I:MWZ,j:ix1,L:N9p,m:Zxp,M:GE0,p:function(hU){return hZ[+(hU.getHours()>=12)]},
Q:KIT,s:$9d,S:WCB,u:gq8,U:edV,V:kEU,w:rMB,W:d10,x:null,X:null,y:vqT,Y:PrU,Z:LCZ,"%":uws},Lh={a:function(hU){return RH[hU.getUTCDay()]},
A:function(hU){return mp[hU.getUTCDay()]},
b:function(hU){return Xh[hU.getUTCMonth()]},
B:function(hU){return Sz[hU.getUTCMonth()]},
c:null,d:j7d,e:j7d,f:EqE,H:tWZ,I:VWE,j:RdO,L:lVd,m:yMV,M:oqB,p:function(hU){return hZ[+(hU.getUTCHours()>=12)]},
Q:KIT,s:$9d,S:m1N,u:Snp,U:c3E,V:QaE,w:fg8,W:UUO,x:null,X:null,y:J3U,Y:ag0,Z:A3p,"%":uws},vi={a:function(hU,OC,Qf){return(OC=$D.exec(OC.slice(Qf)))?(hU.w=YM[OC[0].toLowerCase()],Qf+OC[0].length):-1},
A:function(hU,OC,Qf){return(OC=bY.exec(OC.slice(Qf)))?(hU.w=io[OC[0].toLowerCase()],Qf+OC[0].length):-1},
b:function(hU,OC,Qf){return(OC=u8.exec(OC.slice(Qf)))?(hU.m=gF[OC[0].toLowerCase()],Qf+OC[0].length):-1},
B:function(hU,OC,Qf){return(OC=W1.exec(OC.slice(Qf)))?(hU.m=y7[OC[0].toLowerCase()],Qf+OC[0].length):-1},
c:function(hU,OC,Qf){return R(hU,JZ,OC,Qf)},
d:Y$p,e:Y$p,f:XHZ,H:Cch,I:Cch,j:O0U,L:zCZ,m:xUp,M:FLN,p:function(hU,OC,Qf){return(OC=v_.exec(OC.slice(Qf)))?(hU.p=Ig[OC[0].toLowerCase()],Qf+OC[0].length):-1},
Q:BTT,s:IgB,S:n5p,u:b0E,U:NTT,V:KL8,w:$U2,W:uST,x:function(hU,OC,Qf){return R(hU,Bc,OC,Qf)},
X:function(hU,OC,Qf){return R(hU,uM,OC,Qf)},
y:jaB,Y:lgO,Z:Yn2,"%":CSp};F4.x=h(Bc,F4);F4.X=h(uM,F4);F4.c=h(JZ,F4);Lh.x=h(Bc,Lh);Lh.X=h(uM,Lh);Lh.c=h(JZ,Lh);return{format:function(hU){var OC=h(hU,F4);OC.toString=function(){return hU};
return OC},
parse:function(hU){var OC=G(hU,qR1);OC.toString=function(){return hU};
return OC},
utcFormat:function(hU){var OC=h(hU,Lh);OC.toString=function(){return hU};
return OC},
utcParse:function(hU){var OC=G(hU,CQH);OC.toString=function(){return hU};
return OC}}}
function Fr(T,h,G){var R=T<0?"-":"";T=(R?-T:T)+"";var JZ=T.length;return R+(JZ<G?Array(G-JZ+1).join(h)+T:T)}
function H0U(T){return T.replace(DUU,"\\$&")}
function XO(T){return new RegExp("^(?:"+T.map(H0U).join("|")+")","i")}
function Oi(T){for(var h={},G=-1,R=T.length;++G<R;)h[T[G].toLowerCase()]=G;return h}
function $U2(T,h,G){return(h=oY.exec(h.slice(G,G+1)))?(T.w=+h[0],G+h[0].length):-1}
function b0E(T,h,G){return(h=oY.exec(h.slice(G,G+1)))?(T.u=+h[0],G+h[0].length):-1}
function NTT(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.U=+h[0],G+h[0].length):-1}
function KL8(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.V=+h[0],G+h[0].length):-1}
function uST(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.W=+h[0],G+h[0].length):-1}
function lgO(T,h,G){return(h=oY.exec(h.slice(G,G+4)))?(T.y=+h[0],G+h[0].length):-1}
function jaB(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.y=+h[0]+(+h[0]>68?1900:2E3),G+h[0].length):-1}
function Yn2(T,h,G){return(h=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(h.slice(G,G+6)))?(T.Z=h[1]?0:-(h[2]+(h[3]||"00")),G+h[0].length):-1}
function xUp(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.m=h[0]-1,G+h[0].length):-1}
function Y$p(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.d=+h[0],G+h[0].length):-1}
function O0U(T,h,G){return(h=oY.exec(h.slice(G,G+3)))?(T.m=0,T.d=+h[0],G+h[0].length):-1}
function Cch(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.H=+h[0],G+h[0].length):-1}
function FLN(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.M=+h[0],G+h[0].length):-1}
function n5p(T,h,G){return(h=oY.exec(h.slice(G,G+2)))?(T.S=+h[0],G+h[0].length):-1}
function zCZ(T,h,G){return(h=oY.exec(h.slice(G,G+3)))?(T.L=+h[0],G+h[0].length):-1}
function XHZ(T,h,G){return(h=oY.exec(h.slice(G,G+6)))?(T.L=Math.floor(h[0]/1E3),G+h[0].length):-1}
function CSp(T,h,G){return(T=pH1.exec(h.slice(G,G+1)))?G+T[0].length:-1}
function BTT(T,h,G){return(h=oY.exec(h.slice(G)))?(T.Q=+h[0],G+h[0].length):-1}
function IgB(T,h,G){return(h=oY.exec(h.slice(G)))?(T.Q=+h[0]*1E3,G+h[0].length):-1}
function bOp(T,h){return Fr(T.getDate(),h,2)}
function sl0(T,h){return Fr(T.getHours(),h,2)}
function MWZ(T,h){return Fr(T.getHours()%12||12,h,2)}
function ix1(T,h){return Fr(1+n1_.count(lC(T),T),h,3)}
function N9p(T,h){return Fr(T.getMilliseconds(),h,3)}
function wl2(T,h){return N9p(T,h)+"000"}
function Zxp(T,h){return Fr(T.getMonth()+1,h,2)}
function GE0(T,h){return Fr(T.getMinutes(),h,2)}
function WCB(T,h){return Fr(T.getSeconds(),h,2)}
function gq8(T){T=T.getDay();return T===0?7:T}
function edV(T,h){return Fr(hCE.count(lC(T),T),h,2)}
function kEU(T,h){var G=T.getDay();T=G>=4||G===0?Aez(T):Aez.ceil(T);return Fr(Aez.count(lC(T),T)+(lC(T).getDay()===4),h,2)}
function rMB(T){return T.getDay()}
function d10(T,h){return Fr(aVR.count(lC(T),T),h,2)}
function vqT(T,h){return Fr(T.getFullYear()%100,h,2)}
function PrU(T,h){return Fr(T.getFullYear()%1E4,h,4)}
function LCZ(T){T=T.getTimezoneOffset();return(T>0?"-":(T*=-1,"+"))+Fr(T/60|0,"0",2)+Fr(T%60,"0",2)}
function j7d(T,h){return Fr(T.getUTCDate(),h,2)}
function tWZ(T,h){return Fr(T.getUTCHours(),h,2)}
function VWE(T,h){return Fr(T.getUTCHours()%12||12,h,2)}
function RdO(T,h){return Fr(1+IVd.count(YS(T),T),h,3)}
function lVd(T,h){return Fr(T.getUTCMilliseconds(),h,3)}
function EqE(T,h){return lVd(T,h)+"000"}
function yMV(T,h){return Fr(T.getUTCMonth()+1,h,2)}
function oqB(T,h){return Fr(T.getUTCMinutes(),h,2)}
function m1N(T,h){return Fr(T.getUTCSeconds(),h,2)}
function Snp(T){T=T.getUTCDay();return T===0?7:T}
function c3E(T,h){return Fr(qnU.count(YS(T),T),h,2)}
function QaE(T,h){var G=T.getUTCDay();T=G>=4||G===0?Xxz(T):Xxz.ceil(T);return Fr(Xxz.count(YS(T),T)+(YS(T).getUTCDay()===4),h,2)}
function fg8(T){return T.getUTCDay()}
function UUO(T,h){return Fr(JeZ.count(YS(T),T),h,2)}
function J3U(T,h){return Fr(T.getUTCFullYear()%100,h,2)}
function ag0(T,h){return Fr(T.getUTCFullYear()%1E4,h,4)}
function A3p(){return"+0000"}
function uws(){return"%"}
function KIT(T){return+T}
function $9d(T){return Math.floor(+T/1E3)}
function aN(T){for(var h=T.length/6|0,G=Array(h),R=0;R<h;)G[R]="#"+T.slice(R*6,++R*6);return G}
function iQ(T){return TT1(T[T.length-1])}
function Hyx(T){var h=T.length;return function(G){return T[Math.max(0,Math.min(h-1,Math.floor(G*h)))]}}
function HOd(T){this._context=T}
function D9d(T){this._curve=T}
function pxH(T,h,G){var R=T._x1-T._x0;h-=T._x1;var JZ=(T._y1-T._y0)/(R||h<0&&-0);T=(G-T._y1)/(h||R<0&&-0);return((JZ<0?-1:1)+(T<0?-1:1))*Math.min(Math.abs(JZ),Math.abs(T),.5*Math.abs((JZ*h+T*R)/(R+h)))||0}
function h6u(T,h){var G=T._x1-T._x0;return G?(3*(T._y1-T._y0)/G-h)/2:h}
function OOz(T,h,G){var R=T._x0,JZ=T._x1,Bc=T._y1,uM=(JZ-R)/3;T._context.bezierCurveTo(R+uM,T._y0+uM*h,JZ-uM,Bc-uM*G,JZ,Bc)}
function z6T(T){this._context=T}
function q$l(T){this._context=T}
function zQ(T,h,G){this.k=T;this.x=h;this.y=G}
(function(T){T.length===1&&(T=c(T));return{left:function(h,G,R,JZ){R==null&&(R=0);JZ==null&&(JZ=h.length);for(;R<JZ;){var Bc=R+JZ>>>1;T(h[Bc],G)<0?R=Bc+1:JZ=Bc}return R},
right:function(h,G,R,JZ){R==null&&(R=0);JZ==null&&(JZ=h.length);for(;R<JZ;){var Bc=R+JZ>>>1;T(h[Bc],G)>0?JZ=Bc:R=Bc+1}return R}}})(S);
var YY1={value:function(){}};
f.prototype=Q.prototype={constructor:f,on:function(T,h){var G=this._,R=U(T+"",G),JZ,Bc=-1,uM=R.length;if(arguments.length<2)for(;++Bc<uM;){var hZ;if(hZ=JZ=(T=R[Bc]).type){a:{hZ=G[JZ];for(var mp=0,RH=hZ.length;mp<RH;++mp)if((JZ=hZ[mp]).name===T.name){JZ=JZ.value;break a}JZ=void 0}hZ=JZ}if(hZ)return JZ}else{if(h!=null&&typeof h!=="function")throw Error("ze`"+h);for(;++Bc<uM;)if(JZ=(T=R[Bc]).type)G[JZ]=a(G[JZ],T.name,h);else if(h==null)for(JZ in G)G[JZ]=a(G[JZ],T.name,null);return this}},
copy:function(){var T={},h=this._,G;for(G in h)T[G]=h[G].slice();return new f(T)},
call:function(T,h){if((JZ=arguments.length-2)>0)for(var G=Array(JZ),R=0,JZ,Bc;R<JZ;++R)G[R]=arguments[R+2];if(!this._.hasOwnProperty(T))throw Error("te`"+T);Bc=this._[T];R=0;for(JZ=Bc.length;R<JZ;++R)Bc[R].value.apply(h,G)},
apply:function(T,h,G){if(!this._.hasOwnProperty(T))throw Error("te`"+T);T=this._[T];for(var R=0,JZ=T.length;R<JZ;++R)T[R].value.apply(h,G)}};
var Xf={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/"},T9d=function(T){return function(){return this.matches(T)}};
if(typeof document!=="undefined"){var x6=document.documentElement;if(!x6.matches){var wHg=x6.webkitMatchesSelector||x6.msMatchesSelector||x6.mozMatchesSelector||x6.oMatchesSelector;T9d=function(T){return function(){return wHg.call(this,T)}}}}var wx_=T9d;
l.prototype={constructor:l,appendChild:function(T){return this._parent.insertBefore(T,this._next)},
insertBefore:function(T,h){return this._parent.insertBefore(T,h)},
querySelector:function(T){return this._parent.querySelector(T)},
querySelectorAll:function(T){return this._parent.querySelectorAll(T)}};
var iLu={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(iLu={mouseenter:"mouseover",mouseleave:"mouseout"}));var CRU=[null];ez.prototype=$0.prototype={constructor:ez,select:function(T){typeof T!=="function"&&(T=b(T));for(var h=this._groups,G=h.length,R=Array(G),JZ=0;JZ<G;++JZ)for(var Bc=h[JZ],uM=Bc.length,hZ=R[JZ]=Array(uM),mp,RH,Sz=0;Sz<uM;++Sz)(mp=Bc[Sz])&&(RH=T.call(mp,mp.__data__,Sz,Bc))&&("__data__"in mp&&(RH.__data__=mp.__data__),hZ[Sz]=RH);return new ez(R,this._parents)},
filter:function(T){typeof T!=="function"&&(T=wx_(T));for(var h=this._groups,G=h.length,R=Array(G),JZ=0;JZ<G;++JZ)for(var Bc=h[JZ],uM=Bc.length,hZ=R[JZ]=[],mp,RH=0;RH<uM;++RH)(mp=Bc[RH])&&T.call(mp,mp.__data__,RH,Bc)&&hZ.push(mp);return new ez(R,this._parents)},
data:function(T,h){if(!T)return Ig=Array(this.size()),RH=-1,this.each(function(W1){Ig[++RH]=W1}),Ig;
var G=h?w:q,R=this._parents,JZ=this._groups;typeof T!=="function"&&(T=H(T));for(var Bc=JZ.length,uM=Array(Bc),hZ=Array(Bc),mp=Array(Bc),RH=0;RH<Bc;++RH){var Sz=R[RH],Xh=JZ[RH],v_=Xh.length,Ig=T.call(Sz,Sz&&Sz.__data__,RH,R),bY=Ig.length,io=hZ[RH]=Array(bY),$D=uM[RH]=Array(bY);v_=mp[RH]=Array(v_);G(Sz,Xh,io,$D,v_,Ig,h);Xh=Sz=0;for(var YM;Sz<bY;++Sz)if(v_=io[Sz]){for(Sz>=Xh&&(Xh=Sz+1);!(YM=$D[Xh])&&++Xh<bY;);v_._next=YM||null}}uM=new ez(uM,R);uM._enter=hZ;uM._exit=mp;return uM},
exit:function(){return new ez(this._exit||this._groups.map(N),this._parents)},
merge:function(T){var h=this._groups;T=T._groups;for(var G=h.length,R=Math.min(G,T.length),JZ=Array(G),Bc=0;Bc<R;++Bc)for(var uM=h[Bc],hZ=T[Bc],mp=uM.length,RH=JZ[Bc]=Array(mp),Sz,Xh=0;Xh<mp;++Xh)if(Sz=uM[Xh]||hZ[Xh])RH[Xh]=Sz;for(;Bc<G;++Bc)JZ[Bc]=h[Bc];return new ez(JZ,this._parents)},
order:function(){for(var T=this._groups,h=-1,G=T.length;++h<G;)for(var R=T[h],JZ=R.length-1,Bc=R[JZ],uM;--JZ>=0;)if(uM=R[JZ])Bc&&Bc!==uM.nextSibling&&Bc.parentNode.insertBefore(uM,Bc),Bc=uM;return this},
sort:function(T){function h(Xh,v_){return Xh&&v_?T(Xh.__data__,v_.__data__):!Xh-!v_}
T||(T=g);for(var G=this._groups,R=G.length,JZ=Array(R),Bc=0;Bc<R;++Bc){for(var uM=G[Bc],hZ=uM.length,mp=JZ[Bc]=Array(hZ),RH,Sz=0;Sz<hZ;++Sz)if(RH=uM[Sz])mp[Sz]=RH;mp.sort(h)}return(new ez(JZ,this._parents)).order()},
call:function(){var T=arguments[0];arguments[0]=this;T.apply(null,arguments);return this},
nodes:function(){var T=Array(this.size()),h=-1;this.each(function(){T[++h]=this});
return T},
node:function(){for(var T=this._groups,h=0,G=T.length;h<G;++h)for(var R=T[h],JZ=0,Bc=R.length;JZ<Bc;++JZ){var uM=R[JZ];if(uM)return uM}return null},
size:function(){var T=0;this.each(function(){++T});
return T},
empty:function(){return!this.node()},
each:function(T){for(var h=this._groups,G=0,R=h.length;G<R;++G)for(var JZ=h[G],Bc=0,uM=JZ.length,hZ;Bc<uM;++Bc)(hZ=JZ[Bc])&&T.call(hZ,hZ.__data__,Bc,JZ);return this},
attr:function(T,h){var G=X(T);if(arguments.length<2){var R=this.node();return G.local?R.getAttributeNS(G.space,G.local):R.getAttribute(G)}return this.each((h==null?G.local?E:r:typeof h==="function"?G.local?AZ:V:G.local?t:v)(G,h))},
style:function(T,h,G){return arguments.length>1?this.each((h==null?IH:typeof h==="function"?Hc:Nr)(T,h,G==null?"":G)):qr(this.node(),T)},
property:function(T,h){return arguments.length>1?this.each((h==null?wp:typeof h==="function"?ex:Pc)(T,h)):this.node()[T]},
text:function(T){return arguments.length?this.each(T==null?yd:(typeof T==="function"?DT:op)(T)):this.node().textContent},
html:function(T){return arguments.length?this.each(T==null?B_:(typeof T==="function"?Qp:zJ)(T)):this.node().innerHTML},
append:function(T){var h=typeof T==="function"?T:I(T);return this.select(function(){return this.appendChild(h.apply(this,arguments))})},
insert:function(T,h){var G=typeof T==="function"?T:I(T),R=h==null?xl:typeof h==="function"?h:b(h);return this.select(function(){return this.insertBefore(G.apply(this,arguments),R.apply(this,arguments)||null)})},
remove:function(){return this.each(xZ)},
clone:function(T){return this.select(T?OT:hj)},
datum:function(T){return arguments.length?this.property("__data__",T):this.node().__data__},
on:function(T,h,G){var R=LT(T+""),JZ=R.length,Bc;if(arguments.length<2){var uM=this.node().__on;if(uM)for(var hZ=0,mp=uM.length,RH;hZ<mp;++hZ){var Sz=0;for(RH=uM[hZ];Sz<JZ;++Sz)if((Bc=R[Sz]).type===RH.type&&Bc.name===RH.name)return RH.value}}else{uM=h?t$:Ci;G==null&&(G=!1);for(Sz=0;Sz<JZ;++Sz)this.each(uM(R[Sz],h,G));return this}},
dispatch:function(T,h){return this.each((typeof h==="function"?J$:Ed)(T,h))}};
var HWT=0;$l.prototype=function(){return new $l}.prototype={constructor:$l,
get:function(T){for(var h=this._;!(h in T);)if(!(T=T.parentNode))return;return T[h]},
set:function(T,h){return T[this._]=h},
remove:function(T){return this._ in T&&delete T[this._]},
toString:function(){return this._}};
var Cd=1/.7,DJZ=/^#([0-9a-f]{3})$/,pgg=/^#([0-9a-f]{6})$/,hY8=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),qYV=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),TrZ=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),wg2=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*\\)$"),
sr0=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),Mpg=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*\\)$"),ZLd={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};
h$(an,XE,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
h$(og,pT,FE(an,{brighter:function(T){T=T==null?Cd:Math.pow(Cd,T);return new og(this.r*T,this.g*T,this.b*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new og(this.r*T,this.g*T,this.b*T,this.opacity)},
rgb:function(){return this},
displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},
hex:function(){return"#"+Aj(this.r)+Aj(this.g)+Aj(this.b)},
toString:function(){var T=this.opacity;T=isNaN(T)?1:Math.max(0,Math.min(1,T));return(T===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(T===1?")":", "+T+")")}}));
h$(y0,Cb,FE(an,{brighter:function(T){T=T==null?Cd:Math.pow(Cd,T);return new y0(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new y0(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=this.h%360+(this.h<0)*360,h=this.l,G=h+(h<.5?h:1-h)*(isNaN(T)||isNaN(this.s)?0:this.s);h=2*h-G;return new og(yx(T>=240?T-240:T+120,h,G),yx(T,h,G),yx(T<120?T+240:T-120,h,G),this.opacity)},
displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));
var GSd=Math.PI/180,eki=180/Math.PI,gNd=4/29,uC=6/29,WU_=3*uC*uC,iWV=uC*uC*uC;h$(lM,function(T,h,G,R){return arguments.length===1?eB(T):new lM(T,h,G,R==null?1:R)},FE(an,{brighter:function(T){return new lM(this.l+18*(T==null?1:T),this.a,this.b,this.opacity)},
darker:function(T){return new lM(this.l-18*(T==null?1:T),this.a,this.b,this.opacity)},
rgb:function(){var T=(this.l+16)/116,h=isNaN(this.a)?T:T+this.a/500,G=isNaN(this.b)?T:T-this.b/200;h=.96422*rp(h);T=1*rp(T);G=.82521*rp(G);return new og(bu(3.1338561*h-1.6168667*T-.4906146*G),bu(-.9787684*h+1.9161415*T+.033454*G),bu(.0719453*h-.2289914*T+1.4052427*G),this.opacity)}}));
h$(Ki,B8,FE(an,{brighter:function(T){return new Ki(this.h,this.c,this.l+18*(T==null?1:T),this.opacity)},
darker:function(T){return new Ki(this.h,this.c,this.l-18*(T==null?1:T),this.opacity)},
rgb:function(){return eB(this).rgb()}}));
var kSd=1.78277*-.29227-.1347134789;h$(uE,ni,FE(an,{brighter:function(T){T=T==null?Cd:Math.pow(Cd,T);return new uE(this.h,this.s,this.l*T,this.opacity)},
darker:function(T){T=T==null?.7:Math.pow(.7,T);return new uE(this.h,this.s,this.l*T,this.opacity)},
rgb:function(){var T=isNaN(this.h)?0:(this.h+120)*GSd,h=+this.l,G=isNaN(this.s)?0:this.s*h*(1-h),R=Math.cos(T);T=Math.sin(T);return new og(255*(h+G*(-.14861*R+1.78277*T)),255*(h+G*(-.29227*R+-.90649*T)),255*(h+1.97294*R*G),this.opacity)}}));
var LUd=function G(h){function R(Bc,uM){var hZ=JZ((Bc=pT(Bc)).r,(uM=pT(uM)).r),mp=JZ(Bc.g,uM.g),RH=JZ(Bc.b,uM.b),Sz=r5(Bc.opacity,uM.opacity);return function(Xh){Bc.r=hZ(Xh);Bc.g=mp(Xh);Bc.b=RH(Xh);Bc.opacity=Sz(Xh);return Bc+""}}
var JZ=j6(h);R.gamma=G;return R}(1),TT1=Sy(function(h){var G=h.length-1;
return function(R){var JZ=R<=0?R=0:R>=1?(R=1,G-1):Math.floor(R*G),Bc=h[JZ],uM=h[JZ+1];return FA((R-JZ/G)*G,JZ>0?h[JZ-1]:2*Bc-uM,Bc,uM,JZ<G-1?h[JZ+2]:2*uM-Bc)}});
Sy(function(h){var G=h.length;return function(R){var JZ=Math.floor(((R%=1)<0?++R:R)*G);return FA((R-JZ/G)*G,h[(JZ+G-1)%G],h[JZ%G],h[(JZ+1)%G],h[(JZ+2)%G])}});
var PKY=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,LUp=new RegExp(PKY.source,"g"),rkd=180/Math.PI,x9Y={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},FO,FIZ,s7d,DjY,saU=U7(function(h){if(h==="none")return x9Y;FO||(FO=document.createElement("DIV"),FIZ=document.documentElement,s7d=document.defaultView);FO.style.transform=h;h=s7d.getComputedStyle(FIZ.appendChild(FO),null).getPropertyValue("transform");FIZ.removeChild(FO);h=h.slice(7,-1).split(",");return on(+h[0],+h[1],+h[2],+h[3],
+h[4],+h[5])},"px, ","px)","deg)"),M1O=U7(function(h){if(h==null)return x9Y;
DjY||(DjY=document.createElementNS("http://www.w3.org/2000/svg","g"));DjY.setAttribute("transform",h);if(!(h=DjY.transform.baseVal.consolidate()))return x9Y;h=h.matrix;return on(h.a,h.b,h.c,h.d,h.e,h.f)},", ",")",")");
Ba(iY);Ba(r5);Dv(iY);Dv(r5);pj(iY);var B9z=pj(r5),jq=0,QB=0,Ui=0,NXo,fA,byc=0,JL=0,nvY=0,ch=typeof performance==="object"&&performance.now?performance:Date,dYs=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(h){setTimeout(h,17)};
iF.prototype=of.prototype={constructor:iF,restart:function(h,G,R){if(typeof h!=="function")throw new TypeError("Ae");R=(R==null?M0():+R)+(G==null?0:+G);this._next||fA===this||(fA?fA._next=this:NXo=this,fA=this);this._call=h;this._time=R;Sf()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Sf())}};
var G1V=Q("start","end","interrupt"),WJV=[],i0O=$0.prototype.constructor,Msp=0,H4=$0.prototype;Ox.prototype=function(h){return $0().transition(h)}.prototype={constructor:Ox,
select:function(h){var G=this._name,R=this._id;typeof h!=="function"&&(h=b(h));for(var JZ=this._groups,Bc=JZ.length,uM=Array(Bc),hZ=0;hZ<Bc;++hZ)for(var mp=JZ[hZ],RH=mp.length,Sz=uM[hZ]=Array(RH),Xh,v_,Ig=0;Ig<RH;++Ig)(Xh=mp[Ig])&&(v_=h.call(Xh,Xh.__data__,Ig,mp))&&("__data__"in Xh&&(v_.__data__=Xh.__data__),Sz[Ig]=v_,ENM(Sz[Ig],G,R,Ig,Sz,ol(Xh,R)));return new Ox(uM,this._parents,G,R)},
filter:function(h){typeof h!=="function"&&(h=wx_(h));for(var G=this._groups,R=G.length,JZ=Array(R),Bc=0;Bc<R;++Bc)for(var uM=G[Bc],hZ=uM.length,mp=JZ[Bc]=[],RH,Sz=0;Sz<hZ;++Sz)(RH=uM[Sz])&&h.call(RH,RH.__data__,Sz,uM)&&mp.push(RH);return new Ox(JZ,this._parents,this._name,this._id)},
merge:function(h){if(h._id!==this._id)throw Error();var G=this._groups;h=h._groups;for(var R=G.length,JZ=Math.min(R,h.length),Bc=Array(R),uM=0;uM<JZ;++uM)for(var hZ=G[uM],mp=h[uM],RH=hZ.length,Sz=Bc[uM]=Array(RH),Xh,v_=0;v_<RH;++v_)if(Xh=hZ[v_]||mp[v_])Sz[v_]=Xh;for(;uM<R;++uM)Bc[uM]=G[uM];return new Ox(Bc,this._parents,this._name,this._id)},
selection:function(){return new i0O(this._groups,this._parents)},
transition:function(){for(var h=this._name,G=this._id,R=++Msp,JZ=this._groups,Bc=JZ.length,uM=0;uM<Bc;++uM)for(var hZ=JZ[uM],mp=hZ.length,RH,Sz=0;Sz<mp;++Sz)if(RH=hZ[Sz]){var Xh=ol(RH,G);ENM(RH,h,R,Sz,hZ,{time:Xh.time+Xh.delay+Xh.duration,delay:0,duration:Xh.duration,ease:Xh.ease})}return new Ox(JZ,this._parents,h,R)},
call:H4.call,nodes:H4.nodes,node:H4.node,size:H4.size,empty:H4.empty,each:H4.each,on:function(h,G){var R=this._id;return arguments.length<2?ol(this.node(),R).on.on(h):this.each(cMB(R,h,G))},
attr:function(h,G){var R=X(h),JZ=R==="transform"?M1O:PKl;return this.attrTween(h,typeof G==="function"?(R.local?LJ2:PRO)(R,JZ,V5o(this,"attr."+h,G)):G==null?(R.local?rPE:k1U)(R):(R.local?vHO:dJN)(R,JZ,G+""))},
attrTween:function(h,G){var R="attr."+h;if(arguments.length<2)return(R=this.tween(R))&&R._value;if(G==null)return this.tween(R,null);if(typeof G!=="function")throw Error();var JZ=X(h);return this.tween(R,(JZ.local?EHE:tpO)(JZ,G))},
style:function(h,G,R){var JZ=h==="transform"?saU:PKl;return G==null?this.styleTween(h,f$1(h,JZ)).on("end.style."+h,U1G(h)):this.styleTween(h,typeof G==="function"?a$G(h,JZ,V5o(this,"style."+h,G)):JM0(h,JZ,G+""),R)},
styleTween:function(h,G,R){var JZ="style."+h;if(arguments.length<2)return(JZ=this.tween(JZ))&&JZ._value;if(G==null)return this.tween(JZ,null);if(typeof G!=="function")throw Error();return this.tween(JZ,AME(h,G,R==null?"":R))},
text:function(h){return this.tween("text",typeof h==="function"?OxO(V5o(this,"text",h)):XlZ(h==null?"":h+""))},
remove:function(){return this.on("end.remove",QlZ(this._id))},
tween:function(h,G){var R=this._id;if(arguments.length<2){R=ol(this.node(),R).tween;for(var JZ=0,Bc=R.length,uM;JZ<Bc;++JZ)if((uM=R[JZ]).name===h)return uM.value;return null}return this.each((G==null?gHT:eYG)(R,h,G))},
delay:function(h){var G=this._id;return arguments.length?this.each((typeof h==="function"?Vpg:RYZ)(G,h)):ol(this.node(),G).delay},
duration:function(h){var G=this._id;return arguments.length?this.each((typeof h==="function"?yPp:oH8)(G,h)):ol(this.node(),G).duration},
ease:function(h){var G=this._id;return arguments.length?this.each(mJO(G,h)):ol(this.node(),G).ease}};
var IVT={time:null,delay:0,duration:250,ease:function(h){return((h*=2)<=1?h*h*h:(h-=2)*h*h+2)/2}};
$0.prototype.transition=function(h){var G;if(h instanceof Ox){var R=h._id;h=h._name}else R=++Msp,(G=IVT).time=M0(),h=h==null?null:h+"";for(var JZ=this._groups,Bc=JZ.length,uM=0;uM<Bc;++uM)for(var hZ=JZ[uM],mp=hZ.length,RH,Sz=0;Sz<mp;++Sz)if(RH=hZ[Sz]){var Xh=RH,v_=h,Ig=R,bY=Sz,io=hZ,$D;if(!($D=G))a:{$D=void 0;for(var YM=R;!($D=RH.__transition)||!($D=$D[YM]);)if(!(RH=RH.parentNode)){$D=(IVT.time=M0(),IVT);break a}}ENM(Xh,v_,Ig,bY,io,$D)}return new Ox(JZ,this._parents,h,R)};
["e","w"].map(Rkc);["n","s"].map(Rkc);"n e s w nw ne se sw".split(" ").map(Rkc);ykp.prototype=function(){return new ykp}.prototype={constructor:ykp,
moveTo:function(h,G){this._+="M"+(this._x0=this._x1=+h)+","+(this._y0=this._y1=+G)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(h,G){this._+="L"+(this._x1=+h)+","+(this._y1=+G)},
bezierCurveTo:function(h,G,R,JZ,Bc,uM){this._+="C"+ +h+","+ +G+","+ +R+","+ +JZ+","+(this._x1=+Bc)+","+(this._y1=+uM)},
rect:function(h,G,R,JZ){this._+="M"+(this._x0=this._x1=+h)+","+(this._y0=this._y1=+G)+"h"+ +R+"v"+ +JZ+"h"+-R+"Z"},
toString:function(){return this._}};
KmZ.prototype=ENu.prototype={constructor:KmZ,has:function(h){return" "+h in this},
get:function(h){return this[" "+h]},
set:function(h,G){this[" "+h]=G;return this},
remove:function(h){h=" "+h;return h in this&&delete this[h]},
clear:function(){for(var h in this)h[0]===" "&&delete this[h]},
keys:function(){var h=[],G;for(G in this)G[0]===" "&&h.push(G.slice(1));return h},
values:function(){var h=[],G;for(G in this)G[0]===" "&&h.push(this[G]);return h},
entries:function(){var h=[],G;for(G in this)G[0]===" "&&h.push({key:G.slice(1),value:this[G]});return h},
size:function(){var h=0,G;for(G in this)G[0]===" "&&++h;return h},
empty:function(){for(var h in this)if(h[0]===" ")return!1;return!0},
each:function(h){for(var G in this)G[0]===" "&&h(this[G],G.slice(1),this)}};
var O4=ENu.prototype;$jc.prototype=function(h,G){var R=new $jc;if(h instanceof $jc)h.each(function(uM){R.add(uM)});
else if(h){var JZ=-1,Bc=h.length;if(G==null)for(;++JZ<Bc;)R.add(h[JZ]);else for(;++JZ<Bc;)R.add(G(h[JZ],JZ,h))}return R}.prototype={constructor:$jc,
has:O4.has,add:function(h){this[" "+h]=h;return this},
remove:O4.remove,clear:O4.clear,values:O4.keys,size:O4.size,empty:O4.empty,each:O4.each};var Rk_={},oNr={},Z0Z=V5h(",").parse,GNE=V5h("\t").parse;ykd(Z0Z);ykd(GNE);var N6=function(h,G,R){G=new mYT(G==null?BO1:G,R==null?I$Z:R,NaN,NaN,NaN,NaN);return h==null?G:G.addAll(h)}.prototype=mYT.prototype;
N6.copy=function(){var h=new mYT(this._x,this._y,this._x0,this._y0,this._x1,this._y1),G=this._root,R,JZ;if(!G)return h;if(!G.length)return h._root=mYd(G),h;for(R=[{source:G,target:h._root=Array(4)}];G=R.pop();)for(var Bc=0;Bc<4;++Bc)if(JZ=G.source[Bc])JZ.length?R.push({source:JZ,target:G.target[Bc]=Array(4)}):G.target[Bc]=mYd(JZ);return h};
N6.add=function(h){var G=+this._x.call(null,h),R=+this._y.call(null,h);return oNH(this.cover(G,R),G,R,h)};
N6.addAll=function(h){var G,R,JZ=h.length,Bc,uM,hZ=Array(JZ),mp=Array(JZ),RH=Infinity,Sz=Infinity,Xh=-Infinity,v_=-Infinity;for(R=0;R<JZ;++R)isNaN(Bc=+this._x.call(null,G=h[R]))||isNaN(uM=+this._y.call(null,G))||(hZ[R]=Bc,mp[R]=uM,Bc<RH&&(RH=Bc),Bc>Xh&&(Xh=Bc),uM<Sz&&(Sz=uM),uM>v_&&(v_=uM));Xh<RH&&(RH=this._x0,Xh=this._x1);v_<Sz&&(Sz=this._y0,v_=this._y1);this.cover(RH,Sz).cover(Xh,v_);for(R=0;R<JZ;++R)oNH(this,hZ[R],mp[R],h[R]);return this};
N6.cover=function(h,G){if(isNaN(h=+h)||isNaN(G=+G))return this;var R=this._x0,JZ=this._y0,Bc=this._x1,uM=this._y1;if(isNaN(R))Bc=(R=Math.floor(h))+1,uM=(JZ=Math.floor(G))+1;else if(R>h||h>Bc||JZ>G||G>uM){var hZ=Bc-R,mp=this._root,RH;switch(RH=(G<(JZ+uM)/2)<<1|h<(R+Bc)/2){case 0:do{var Sz=Array(4);Sz[RH]=mp;mp=Sz}while(hZ*=2,Bc=R+hZ,uM=JZ+hZ,h>Bc||G>uM);break;case 1:do Sz=Array(4),Sz[RH]=mp,mp=Sz;while(hZ*=2,R=Bc-hZ,uM=JZ+hZ,R>h||G>uM);break;case 2:do Sz=Array(4),Sz[RH]=mp,mp=Sz;while(hZ*=2,Bc=R+hZ,
JZ=uM-hZ,h>Bc||JZ>G);break;case 3:do Sz=Array(4),Sz[RH]=mp,mp=Sz;while(hZ*=2,R=Bc-hZ,JZ=uM-hZ,R>h||JZ>G)}this._root&&this._root.length&&(this._root=mp)}else return this;this._x0=R;this._y0=JZ;this._x1=Bc;this._y1=uM;return this};
N6.data=function(){var h=[];this.visit(function(G){if(!G.length){do h.push(G.data);while(G=G.next)}});
return h};
N6.extent=function(h){return arguments.length?this.cover(+h[0][0],+h[0][1]).cover(+h[1][0],+h[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
N6.find=function(h,G,R){var JZ=this._x0,Bc=this._y0,uM,hZ,mp,RH,Sz=this._x1,Xh=this._y1,v_=[],Ig=this._root,bY;Ig&&v_.push(new bl(Ig,JZ,Bc,Sz,Xh));R==null?R=Infinity:(JZ=h-R,Bc=G-R,Sz=h+R,Xh=G+R,R*=R);for(;bY=v_.pop();)if(!(!(Ig=bY.node)||(uM=bY.x0)>Sz||(hZ=bY.y0)>Xh||(mp=bY.x1)<JZ||(RH=bY.y1)<Bc))if(Ig.length){bY=(uM+mp)/2;var io=(hZ+RH)/2;v_.push(new bl(Ig[3],bY,io,mp,RH),new bl(Ig[2],uM,io,bY,RH),new bl(Ig[1],bY,hZ,mp,io),new bl(Ig[0],uM,hZ,bY,io));if(Ig=(G>=io)<<1|h>=bY)bY=v_[v_.length-1],v_[v_.length-
1]=v_[v_.length-1-Ig],v_[v_.length-1-Ig]=bY}else if(bY=h-+this._x.call(null,Ig.data),io=G-+this._y.call(null,Ig.data),bY=bY*bY+io*io,bY<R){var $D=Math.sqrt(R=bY);JZ=h-$D;Bc=G-$D;Sz=h+$D;Xh=G+$D;$D=Ig.data}return $D};
N6.remove=function(h){if(isNaN(RH=+this._x.call(null,h))||isNaN(Sz=+this._y.call(null,h)))return this;var G,R=this._root,JZ,Bc=this._x0,uM=this._y0,hZ=this._x1,mp=this._y1,RH,Sz,Xh,v_,Ig,bY,io;if(!R)return this;if(R.length)for(;;){(Ig=RH>=(Xh=(Bc+hZ)/2))?Bc=Xh:hZ=Xh;(bY=Sz>=(v_=(uM+mp)/2))?uM=v_:mp=v_;if(!(G=R,R=R[io=bY<<1|Ig]))return this;if(!R.length)break;if(G[io+1&3]||G[io+2&3]||G[io+3&3]){var $D=G;var YM=io}}for(;R.data!==h;)if(!(JZ=R,R=R.next))return this;(h=R.next)&&delete R.next;if(JZ)return h?
JZ.next=h:delete JZ.next,this;if(!G)return this._root=h,this;h?G[io]=h:delete G[io];(R=G[0]||G[1]||G[2]||G[3])&&R===(G[3]||G[2]||G[1]||G[0])&&!R.length&&($D?$D[YM]=R:this._root=R);return this};
N6.removeAll=function(h){for(var G=0,R=h.length;G<R;++G)this.remove(h[G]);return this};
N6.root=function(){return this._root};
N6.size=function(){var h=0;this.visit(function(G){if(!G.length){do++h;while(G=G.next)}});
return h};
N6.visit=function(h){var G=[],R,JZ=this._root,Bc,uM,hZ,mp,RH;for(JZ&&G.push(new bl(JZ,this._x0,this._y0,this._x1,this._y1));R=G.pop();)if(!h(JZ=R.node,uM=R.x0,hZ=R.y0,mp=R.x1,RH=R.y1)&&JZ.length){R=(uM+mp)/2;var Sz=(hZ+RH)/2;(Bc=JZ[3])&&G.push(new bl(Bc,R,Sz,mp,RH));(Bc=JZ[2])&&G.push(new bl(Bc,uM,Sz,R,RH));(Bc=JZ[1])&&G.push(new bl(Bc,R,hZ,mp,Sz));(Bc=JZ[0])&&G.push(new bl(Bc,uM,hZ,R,Sz))}};
N6.visitAfter=function(h){var G=[],R=[],JZ;for(this._root&&G.push(new bl(this._root,this._x0,this._y0,this._x1,this._y1));JZ=G.pop();){var Bc=JZ.node;if(Bc.length){var uM,hZ=JZ.x0,mp=JZ.y0,RH=JZ.x1,Sz=JZ.y1,Xh=(hZ+RH)/2,v_=(mp+Sz)/2;(uM=Bc[0])&&G.push(new bl(uM,hZ,mp,Xh,v_));(uM=Bc[1])&&G.push(new bl(uM,Xh,mp,RH,v_));(uM=Bc[2])&&G.push(new bl(uM,hZ,v_,Xh,Sz));(uM=Bc[3])&&G.push(new bl(uM,Xh,v_,RH,Sz))}R.push(JZ)}for(;JZ=R.pop();)h(JZ.node,JZ.x0,JZ.y0,JZ.x1,JZ.y1);return this};
N6.x=function(h){return arguments.length?(this._x=h,this):this._x};
N6.y=function(h){return arguments.length?(this._y=h,this):this._y};
var KCB=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;S$o.prototype=cez.prototype;cez.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 fVs,U9e={"%":function(h,G){return(h*100).toFixed(G)},
b:function(h){return Math.round(h).toString(2)},
c:function(h){return h+""},
d:function(h){return Math.round(h).toString(10)},
e:function(h,G){return h.toExponential(G)},
f:function(h,G){return h.toFixed(G)},
g:function(h,G){return h.toPrecision(G)},
o:function(h){return Math.round(h).toString(8)},
p:function(h,G){return S$h(h*100,G)},
r:S$h,s:function(h,G){var R=urY(h,G);if(!R)return h+"";var JZ=R[0];R=R[1];R=R-(fVs=Math.max(-8,Math.min(8,Math.floor(R/3)))*3)+1;var Bc=JZ.length;return R===Bc?JZ:R>Bc?JZ+Array(R-Bc+1).join("0"):R>0?JZ.slice(0,R)+"."+JZ.slice(R):"0."+Array(1-R).join("0")+urY(h,Math.max(0,G+R-1))[0]},
X:function(h){return Math.round(h).toString(16).toUpperCase()},
x:function(h){return Math.round(h).toString(16)}},Q7l="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),WL1;
(function(h){return WL1=$1g(h)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});tw.prototype={constructor:tw,reset:function(){this.s=this.t=0},
add:function(h){JeT(prx,h,this.t);JeT(this,prx.s,this.s);this.s?this.t+=prx.t:this.s=prx.t},
valueOf:function(){return this.s}};
var prx=new tw,xL=Math.PI,OI=xL/2,iOT=xL/4,g5E=xL*2,n1c=xL/180,z3=Math.abs,bOH=Math.atan,x9d=Math.atan2,zw=Math.cos,RI=Math.sin,lfY=Math.sqrt;new tw;new tw;new tw;var N9H=new tw;(function(h,G,R,JZ){return function(Bc){function uM(gF,F4){h(gF,F4)&&Bc.point(gF,F4)}
function hZ(gF,F4){Ig.point(gF,F4)}
function mp(){u8.point=hZ;Ig.lineStart()}
function RH(){u8.point=uM;Ig.lineEnd()}
function Sz(gF,F4){y7.push([gF,F4]);io.point(gF,F4)}
function Xh(){io.lineStart();y7=[]}
function v_(){Sz(y7[0][0],y7[0][1]);io.lineEnd();var gF=io.clean(),F4=bY.result(),Lh=F4.length,vi;y7.pop();YM.push(y7);y7=null;if(Lh)if(gF&1){if(Lh=F4[0],(F4=Lh.length-1)>0){$D||(Bc.polygonStart(),$D=!0);Bc.lineStart();for(gF=0;gF<F4;++gF)Bc.point((vi=Lh[gF])[0],vi[1]);Bc.lineEnd()}}else Lh>1&&gF&2&&F4.push(F4.pop().concat(F4.shift())),W1.push(F4.filter(YRZ))}
var Ig=G(Bc),bY=jlT(),io=G(bY),$D=!1,YM,W1,y7,u8={point:uM,lineStart:mp,lineEnd:RH,polygonStart:function(){u8.point=Sz;u8.lineStart=Xh;u8.lineEnd=v_;W1=[];YM=[]},
polygonEnd:function(){u8.point=uM;u8.lineStart=mp;u8.lineEnd=RH;var gF=W1,F4=gF.length;var Lh=-1;for(var vi=0,hU,OC;++Lh<F4;)vi+=gF[Lh].length;for(hU=Array(vi);--F4>=0;)for(OC=gF[F4],Lh=OC.length;--Lh>=0;)hU[--vi]=OC[Lh];W1=hU;gF=YM;F4=JZ[0];vi=JZ[1];var Qf=RI(vi);Lh=[RI(F4),-zw(F4),0];OC=hU=0;N9H.reset();Qf===1?vi=OI+1E-6:Qf===-1&&(vi=-OI-1E-6);Qf=0;for(var NG=gF.length;Qf<NG;++Qf)if(ze=(Mj=gF[Qf]).length){var Mj,ze,C6=Mj[ze-1],mm=C6[0],qY=C6[1]/2+iOT,hqo=RI(qY),ZOT=zw(qY);for(qY=0;qY<ze;++qY,mm=
KIZ,hqo=GpJ,ZOT=Bh,C6=qjo){var qjo=Mj[qY],KIZ=qjo[0];Bh=qjo[1]/2+iOT;var GpJ=RI(Bh),Bh=zw(Bh),DG=KIZ-mm,$9Y=DG>=0?1:-1,uwR=$9Y*DG,TXR=uwR>xL;hqo*=GpJ;N9H.add(x9d(hqo*$9Y*RI(uwR),ZOT*Bh+hqo*zw(uwR)));hU+=TXR?DG+$9Y*g5E:DG;TXR^mm>=F4^KIZ>=F4&&(C6=Aei(aVs(C6),aVs(qjo)),Xxi(C6),mm=Aei(Lh,C6),Xxi(mm),mm=(TXR^DG>=0?-1:1)*jxp(mm[2]),vi>mm||vi===mm&&(C6[0]||C6[1]))&&(OC+=TXR^DG>=0?1:-1)}}gF=(hU<-1E-6||hU<1E-6&&N9H<-1E-6)^OC&1;W1.length?($D||(Bc.polygonStart(),$D=!0),l$N(W1,CrO,gF,R,Bc)):gF&&($D||(Bc.polygonStart(),
$D=!0),Bc.lineStart(),R(null,null,1,Bc),Bc.lineEnd());$D&&(Bc.polygonEnd(),$D=!1);W1=YM=null},
sphere:function(){Bc.polygonStart();Bc.lineStart();R(null,null,1,Bc);Bc.lineEnd();Bc.polygonEnd()}};
return u8}})(function(){return!0},function(h){var G=NaN,R=NaN,JZ=NaN,Bc;
return{lineStart:function(){h.lineStart();Bc=1},
point:function(uM,hZ){var mp=uM>0?xL:-xL,RH=z3(uM-G);if(z3(RH-xL)<1E-6)h.point(G,R=(R+hZ)/2>0?OI:-OI),h.point(JZ,R),h.lineEnd(),h.lineStart(),h.point(mp,R),h.point(uM,R),Bc=0;else if(JZ!==mp&&RH>=xL){z3(G-JZ)<1E-6&&(G-=JZ*1E-6);z3(uM-mp)<1E-6&&(uM-=mp*1E-6);RH=G;var Sz=R,Xh=uM,v_,Ig,bY=RI(RH-Xh);R=z3(bY)>1E-6?bOH((RI(Sz)*(Ig=zw(hZ))*RI(Xh)-RI(hZ)*(v_=zw(Sz))*RI(RH))/(v_*Ig*bY)):(Sz+hZ)/2;h.point(JZ,R);h.lineEnd();h.lineStart();h.point(mp,R);Bc=0}h.point(G=uM,R=hZ);JZ=mp},
lineEnd:function(){h.lineEnd();G=R=NaN},
clean:function(){return 2-Bc}}},function(h,G,R,JZ){h==null?(R*=OI,JZ.point(-xL,R),JZ.point(0,R),JZ.point(xL,R),JZ.point(xL,0),JZ.point(xL,-R),JZ.point(0,-R),JZ.point(-xL,-R),JZ.point(-xL,0),JZ.point(-xL,R)):z3(h[0]-G[0])>1E-6?(h=h[0]<G[0]?xL:-xL,R=R*h/2,JZ.point(-h,R),JZ.point(0,R),JZ.point(h,R)):JZ.point(G[0],G[1])},[-xL,
-OI]);new tw;new tw;new tw;new tw;Q7Y.prototype={constructor:Q7Y,point:function(h,G){this.stream.point(h,G)},
sphere:function(){this.stream.sphere()},
lineStart:function(){this.stream.lineStart()},
lineEnd:function(){this.stream.lineEnd()},
polygonStart:function(){this.stream.polygonStart()},
polygonEnd:function(){this.stream.polygonEnd()}};
zw(30*n1c);(function(h){return function(G){var R=new Q7Y,JZ;for(JZ in h)R[JZ]=h[JZ];R.stream=G;return R}})({point:function(h,G){this.stream.point(h*n1c,G*n1c)}});
z6d(function(h){return lfY(2/(1+h))}).invert=JF(function(h){return 2*jxp(h/2)});
z6d(function(h){return(h=h>1?0:h<-1?xL:Math.acos(h))&&h/RI(h)}).invert=JF(function(h){return h});
lfY(3);JF(bOH);JF(jxp);JF(function(h){return 2*bOH(h)});
a9.prototype=FIT.prototype={constructor:a9,count:function(){return this.eachAfter(Hx1)},
each:function(h){var G,R=[this],JZ;do{var Bc=R.reverse();for(R=[];G=Bc.pop();)if(h(G),G=G.children){var uM=0;for(JZ=G.length;uM<JZ;++uM)R.push(G[uM])}}while(R.length);return this},
eachAfter:function(h){for(var G,R=[this],JZ=[],Bc,uM;G=R.pop();)if(JZ.push(G),G=G.children)for(Bc=0,uM=G.length;Bc<uM;++Bc)R.push(G[Bc]);for(;G=JZ.pop();)h(G);return this},
eachBefore:function(h){for(var G,R=[this],JZ;G=R.pop();)if(h(G),G=G.children)for(JZ=G.length-1;JZ>=0;--JZ)R.push(G[JZ]);return this},
sum:function(h){return this.eachAfter(function(G){for(var R=+h(G.data)||0,JZ=G.children,Bc=JZ&&JZ.length;--Bc>=0;)R+=JZ[Bc].value;G.value=R})},
sort:function(h){return this.eachBefore(function(G){G.children&&G.children.sort(h)})},
path:function(h){var G=this;var R=G;var JZ=h;if(R!==JZ){var Bc=R.ancestors(),uM=JZ.ancestors(),hZ=null;R=Bc.pop();for(JZ=uM.pop();R===JZ;)hZ=R,R=Bc.pop(),JZ=uM.pop();R=hZ}for(JZ=[G];G!==R;)G=G.parent,JZ.push(G);for(G=JZ.length;h!==R;)JZ.splice(G,0,h),h=h.parent;return JZ},
ancestors:function(){for(var h=this,G=[h];h=h.parent;)G.push(h);return G},
links:function(){var h=this,G=[];h.each(function(R){R!==h&&G.push({source:R.parent,target:R})});
return G},
copy:function(){return FIT(this).eachBefore(hdB)}};
(function(h,G){this._=h;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=G}).prototype=Object.create(a9.prototype);
var fVR=new Date,U9p=new Date,WIs=dK(function(){},function(h,G){h.setTime(+h+G)},function(h,G){return G-h});
WIs.every=function(h){h=Math.floor(h);return isFinite(h)&&h>0?h>1?dK(function(G){G.setTime(Math.floor(G/h)*h)},function(G,R){G.setTime(+G+R*h)},function(G,R){return(R-G)/h}):WIs:null};
dK(function(h){h.setTime(Math.floor(h/1E3)*1E3)},function(h,G){h.setTime(+h+G*1E3)},function(h,G){return(G-h)/1E3},function(h){return h.getUTCSeconds()});
dK(function(h){h.setTime(Math.floor(h/6E4)*6E4)},function(h,G){h.setTime(+h+G*6E4)},function(h,G){return(G-h)/6E4},function(h){return h.getMinutes()});
dK(function(h){var G=h.getTimezoneOffset()*6E4%36E5;G<0&&(G+=36E5);h.setTime(Math.floor((+h-G)/36E5)*36E5+G)},function(h,G){h.setTime(+h+G*36E5)},function(h,G){return(G-h)/36E5},function(h){return h.getHours()});
var n1_=dK(function(h){h.setHours(0,0,0,0)},function(h,G){h.setDate(h.getDate()+G)},function(h,G){return(G-h-(G.getTimezoneOffset()-h.getTimezoneOffset())*6E4)/864E5},function(h){return h.getDate()-1}),hCE=AL(0),aVR=AL(1);
AL(2);AL(3);var Aez=AL(4);AL(5);AL(6);dK(function(h){h.setDate(1);h.setHours(0,0,0,0)},function(h,G){h.setMonth(h.getMonth()+G)},function(h,G){return G.getMonth()-h.getMonth()+(G.getFullYear()-h.getFullYear())*12},function(h){return h.getMonth()});
var lC=dK(function(h){h.setMonth(0,1);h.setHours(0,0,0,0)},function(h,G){h.setFullYear(h.getFullYear()+G)},function(h,G){return G.getFullYear()-h.getFullYear()},function(h){return h.getFullYear()});
lC.every=function(h){return isFinite(h=Math.floor(h))&&h>0?dK(function(G){G.setFullYear(Math.floor(G.getFullYear()/h)*h);G.setMonth(0,1);G.setHours(0,0,0,0)},function(G,R){G.setFullYear(G.getFullYear()+R*h)}):null};
dK(function(h){h.setUTCSeconds(0,0)},function(h,G){h.setTime(+h+G*6E4)},function(h,G){return(G-h)/6E4},function(h){return h.getUTCMinutes()});
dK(function(h){h.setUTCMinutes(0,0,0)},function(h,G){h.setTime(+h+G*36E5)},function(h,G){return(G-h)/36E5},function(h){return h.getUTCHours()});
var IVd=dK(function(h){h.setUTCHours(0,0,0,0)},function(h,G){h.setUTCDate(h.getUTCDate()+G)},function(h,G){return(G-h)/864E5},function(h){return h.getUTCDate()-1}),qnU=XW(0),JeZ=XW(1);
XW(2);XW(3);var Xxz=XW(4);XW(5);XW(6);dK(function(h){h.setUTCDate(1);h.setUTCHours(0,0,0,0)},function(h,G){h.setUTCMonth(h.getUTCMonth()+G)},function(h,G){return G.getUTCMonth()-h.getUTCMonth()+(G.getUTCFullYear()-h.getUTCFullYear())*12},function(h){return h.getUTCMonth()});
var YS=dK(function(h){h.setUTCMonth(0,1);h.setUTCHours(0,0,0,0)},function(h,G){h.setUTCFullYear(h.getUTCFullYear()+G)},function(h,G){return G.getUTCFullYear()-h.getUTCFullYear()},function(h){return h.getUTCFullYear()});
YS.every=function(h){return isFinite(h=Math.floor(h))&&h>0?dK(function(G){G.setUTCFullYear(Math.floor(G.getUTCFullYear()/h)*h);G.setUTCMonth(0,1);G.setUTCHours(0,0,0,0)},function(G,R){G.setUTCFullYear(G.getUTCFullYear()+R*h)}):null};
var B9J={"-":"",_:" ",0:"0"},oY=/^\s*\d+/,pH1=/^%/,DUU=/[\\^$*+?|[\]().{}]/g,wrp;(function(h){wrp=TOZ(h);ond=wrp.utcFormat;m_$=wrp.utcParse;return wrp})({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||ond("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||m_$("%Y-%m-%dT%H:%M:%S.%LZ");aN("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
aN("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");aN("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");aN("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");aN("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");aN("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");aN("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
aN("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");aN("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");aN("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");aN("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");aN("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var eCN=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(aN);iQ(eCN);var kNp=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(aN);iQ(kNp);var r38=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(aN);iQ(r38);var dU1=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(aN);
iQ(dU1);var v5G=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(aN);iQ(v5G);var PS0=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(aN);iQ(PS0);var LL0=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(aN);iQ(LL0);var E5N=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(aN);iQ(E5N);var t1N=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(aN);iQ(t1N);var V1N=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(aN);iQ(V1N);var RCN=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(aN);iQ(RCN);var y31=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(aN);iQ(y31);var o5Z=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(aN);iQ(o5Z);var mUZ=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(aN);iQ(mUZ);var SbB=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(aN);iQ(SbB);var cmO=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(aN);iQ(cmO);var QzB=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(aN);iQ(QzB);var fAT=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(aN);iQ(fAT);var UI8=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(aN);iQ(UI8);var JmE=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(aN);iQ(JmE);var aAZ=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(aN);iQ(aAZ);var AmT=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(aN);iQ(AmT);var XmT=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(aN);iQ(XmT);var OfT=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(aN);iQ(OfT);var z7N=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(aN);iQ(z7N);var xI8=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(aN);iQ(xI8);var FtE=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(aN);iQ(FtE);B9z(ni(300,.5,0),ni(-240,.5,1));B9z(ni(-100,.75,.35),ni(80,1.5,.8));B9z(ni(260,.75,.35),ni(80,1.5,.8));ni();pT();Hyx(aN("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
Hyx(aN("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
Hyx(aN("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
Hyx(aN("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
HOd.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(h,G){h=+h;G=+G;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(h,G):this._context.moveTo(h,G);break;case 1:this._point=2;default:this._context.lineTo(h,G)}}};
(function(h){function G(R){return new D9d(h(R))}
G._curve=h;return G})(function(h){return new HOd(h)});
D9d.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(h,G){this._curve.point(G*Math.sin(h),G*-Math.cos(h))}};
z6T.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:OOz(this,this._t0,h6u(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(h,G){var R=NaN;h=+h;G=+G;if(h!==this._x1||G!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(h,G):this._context.moveTo(h,G);break;case 1:this._point=2;break;case 2:this._point=3;OOz(this,h6u(this,R=pxH(this,h,G)),R);break;default:OOz(this,this._t0,R=pxH(this,h,G))}this._x0=this._x1;this._x1=h;this._y0=this._y1;this._y1=G;this._t0=R}}};
(function(h){this._context=new q$l(h)}.prototype=Object.create(z6T.prototype)).point=function(h,G){z6T.prototype.point.call(this,G,h)};
q$l.prototype={moveTo:function(h,G){this._context.moveTo(G,h)},
closePath:function(){this._context.closePath()},
lineTo:function(h,G){this._context.lineTo(G,h)},
bezierCurveTo:function(h,G,R,JZ,Bc,uM){this._context.bezierCurveTo(G,h,JZ,R,uM,Bc)}};
zQ.prototype={constructor:zQ,scale:function(h){return h===1?this:new zQ(this.k*h,this.x,this.y)},
translate:function(h,G){return h===0&G===0?this:new zQ(this.k,this.x+this.k*h,this.y+this.k*G)},
apply:function(h){return[h[0]*this.k+this.x,h[1]*this.k+this.y]},
invert:function(h){return[(h[0]-this.x)/this.k,(h[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new zQ(1,0,0);nbM=XE;Xf.svg=Xf.svg;Xf.xhtml=Xf.xhtml;Xf.xlink=Xf.xlink;Xf.xml=Xf.xml;Xf.xmlns=Xf.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 SXd="hammer_"+(Math.random()*1E6|0),c2z=function(){var S=document||document;if(!S[SXd]){var c=function(){(function(Q,f,U,a){function X(lM,ZZ,rp){return setTimeout(N(lM,rp),ZZ)}
function z(lM,ZZ,rp){return Array.isArray(lM)?(x(lM,rp[ZZ],rp),!0):!1}
function x(lM,ZZ,rp){var bu;if(lM)if(lM.forEach)lM.forEach(ZZ,rp);else if(lM.length!==a){var AU=0;for(bu=lM.length;AU<bu;AU++)ZZ.call(rp,lM[AU],AU,lM)}else for(AU in lM)lM.hasOwnProperty(AU)&&ZZ.call(rp,lM[AU],AU,lM)}
function I(lM,ZZ,rp){for(var bu=Object.keys(ZZ),AU=0,qV=bu.length;AU<qV;AU++)if(!rp||rp&&lM[bu[AU]]===a)lM[bu[AU]]=ZZ[bu[AU]];return lM}
function n(lM,ZZ){return I(lM,ZZ,!0)}
function b(lM,ZZ,rp){ZZ=ZZ.prototype;var bu=lM.prototype=Object.create(ZZ);bu.constructor=lM;bu._super=ZZ;rp&&I(bu,rp)}
function N(lM,ZZ){return function(){return lM.apply(ZZ,arguments)}}
function l(lM,ZZ){return typeof lM=="function"?lM.apply(ZZ?ZZ[0]||a:a,ZZ):lM}
function H(lM,ZZ,rp){x(w(ZZ),function(bu){lM.addEventListener(bu,rp,!1)})}
function q(lM,ZZ,rp){x(w(ZZ),function(bu){lM.removeEventListener(bu,rp,!1)})}
function w(lM){return lM.trim().split(/\s+/g)}
function g(lM,ZZ,rp){if(lM.indexOf&&!rp)return lM.indexOf(ZZ);for(var bu=0,AU=lM.length;bu<AU;bu++)if(rp&&lM[bu][rp]==ZZ||!rp&&lM[bu]===ZZ)return bu;return-1}
function r(lM,ZZ,rp){for(var bu=[],AU=[],qV=0,B8=lM.length;qV<B8;qV++){var Ki=ZZ?lM[qV][ZZ]:lM[qV];g(AU,Ki)<0&&bu.push(lM[qV]);AU[qV]=Ki}rp&&(bu=ZZ?bu.sort(function(ni,uE){return ni[ZZ]>uE[ZZ]}):bu.sort());
return bu}
function E(lM,ZZ){for(var rp,bu=ZZ[0].toUpperCase()+ZZ.slice(1),AU=0,qV=J$.length;AU<qV;AU++)if(rp=(rp=J$[AU])?rp+bu:ZZ,rp in lM)return rp;return a}
function v(lM,ZZ){var rp=this;this.manager=lM;this.callback=ZZ;this.element=lM.element;this.target=lM.options.inputTarget;this.domHandler=function(bu){l(lM.options.enable,[lM])&&rp.handler(bu)};
this.evEl&&H(this.element,this.evEl,this.domHandler);this.evTarget&&H(this.target,this.evTarget,this.domHandler);this.evWin&&H(Q,this.evWin,this.domHandler)}
function t(lM){var ZZ;ui?ZZ=Pc:gN?ZZ=ex:XE?ZZ=yd:ZZ=wp;return new ZZ(lM,V)}
function V(lM,ZZ,rp){var bu=rp.pointers.length,AU=rp.changedPointers.length,qV=ZZ&1&&bu-AU===0;rp.isFirst=!!qV;rp.isFinal=!!(ZZ&12&&bu-AU===0);qV&&(lM.session={});rp.eventType=ZZ;ZZ=lM.session;bu=rp.pointers;AU=bu.length;ZZ.firstInput||(ZZ.firstInput=AZ(rp));AU>1&&!ZZ.firstMultiple?ZZ.firstMultiple=AZ(rp):AU===1&&(ZZ.firstMultiple=!1);qV=ZZ.firstInput;var B8=(AU=ZZ.firstMultiple)?AU.center:qV.center,Ki=rp.center=IH(bu);rp.timeStamp=h$();rp.deltaTime=rp.timeStamp-qV.timeStamp;rp.angle=qr(B8,Ki);rp.distance=
Hc(B8,Ki);qV=rp.center;B8=ZZ.offsetDelta||{};Ki=ZZ.prevDelta||{};var ni=ZZ.prevInput||{};if(rp.eventType===1||ni.eventType===4)Ki=ZZ.prevDelta={x:ni.deltaX||0,y:ni.deltaY||0},B8=ZZ.offsetDelta={x:qV.x,y:qV.y};rp.deltaX=Ki.x+(qV.x-B8.x);rp.deltaY=Ki.y+(qV.y-B8.y);rp.offsetDirection=Nr(rp.deltaX,rp.deltaY);AU?(qV=AU.pointers,qV=Hc(bu[0],bu[1],pT)/Hc(qV[0],qV[1],pT)):qV=1;rp.scale=qV;AU?(AU=AU.pointers,bu=qr(bu[1],bu[0],pT)-qr(AU[1],AU[0],pT)):bu=0;rp.rotation=bu;B8=ZZ.lastInterval||rp;bu=rp.timeStamp-
B8.timeStamp;rp.eventType!=8&&(bu>25||B8.velocity===a)?(qV=B8.deltaX-rp.deltaX,B8=B8.deltaY-rp.deltaY,Ki=qV/bu||0,ni=B8/bu||0,bu=Ki,AU=ni,Ki=$l(Ki)>$l(ni)?Ki:ni,qV=Nr(qV,B8),ZZ.lastInterval=rp):(Ki=B8.velocity,bu=B8.velocityX,AU=B8.velocityY,qV=B8.direction);rp.velocity=Ki;rp.velocityX=bu;rp.velocityY=AU;rp.direction=qV;ZZ=lM.element;a:{for(bu=rp.srcEvent.target;bu;){if(bu==ZZ){bu=!0;break a}bu=bu.parentNode}bu=!1}bu&&(ZZ=rp.srcEvent.target);rp.target=ZZ;lM.emit("hammer.input",rp);lM.recognize(rp);
lM.session.prevInput=rp}
function AZ(lM){for(var ZZ=[],rp=0;rp<lM.pointers.length;rp++)ZZ[rp]={clientX:$0(lM.pointers[rp].clientX),clientY:$0(lM.pointers[rp].clientY)};return{timeStamp:h$(),pointers:ZZ,center:IH(ZZ),deltaX:lM.deltaX,deltaY:lM.deltaY}}
function IH(lM){var ZZ=lM.length;if(ZZ===1)return{x:$0(lM[0].clientX),y:$0(lM[0].clientY)};for(var rp=0,bu=0,AU=0;AU<ZZ;AU++)rp+=lM[AU].clientX,bu+=lM[AU].clientY;return{x:$0(rp/ZZ),y:$0(bu/ZZ)}}
function Nr(lM,ZZ){return lM===ZZ?1:$l(lM)>=$l(ZZ)?lM>0?2:4:ZZ>0?8:16}
function Hc(lM,ZZ,rp){rp||(rp=rd);var bu=ZZ[rp[0]]-lM[rp[0]];lM=ZZ[rp[1]]-lM[rp[1]];return Math.sqrt(bu*bu+lM*lM)}
function qr(lM,ZZ,rp){rp||(rp=rd);return Math.atan2(ZZ[rp[1]]-lM[rp[1]],ZZ[rp[0]]-lM[rp[0]])*180/Math.PI}
function wp(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;v.apply(this,arguments)}
function Pc(){this.evEl=zC;this.evWin=Cb;v.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function ex(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};v.apply(this,arguments)}
function yd(){v.apply(this,arguments);var lM=N(this.handler,this);this.touch=new ex(this.manager,lM);this.mouse=new wp(this.manager,lM)}
function op(lM,ZZ){this.manager=lM;this.set(ZZ)}
function DT(lM){if(lM.indexOf("none")>-1)return"none";var ZZ=lM.indexOf("pan-x")>-1,rp=lM.indexOf("pan-y")>-1;return ZZ&&rp?"pan-x pan-y":ZZ||rp?ZZ?"pan-x":"pan-y":lM.indexOf("manipulation")>-1?"manipulation":"auto"}
function B_(lM){this.id=FE++;this.manager=null;this.options=n(lM||{},this.defaults);lM=this.options.enable;this.options.enable=lM===a?!0:lM;this.state=1;this.simultaneous={};this.requireFail=[]}
function zJ(lM){return lM==16?"down":lM==8?"up":lM==2?"left":lM==4?"right":""}
function Qp(lM,ZZ){return(ZZ=ZZ.manager)?ZZ.get(lM):lM}
function xl(){B_.apply(this,arguments)}
function xZ(){xl.apply(this,arguments);this.pY=this.pX=null}
function hj(){xl.apply(this,arguments)}
function OT(){B_.apply(this,arguments);this._input=this._timer=null}
function uu(){xl.apply(this,arguments)}
function sd(){xl.apply(this,arguments)}
function LT(){B_.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function Ci(lM,ZZ){ZZ=ZZ||{};var rp=ZZ.recognizers;ZZ.recognizers=rp===a?Ci.defaults.preset:rp;return new t$(lM,ZZ)}
function t$(lM,ZZ){ZZ=ZZ||{};this.options=n(ZZ,Ci.defaults);this.options.inputTarget=this.options.inputTarget||lM;this.handlers={};this.session={};this.recognizers=[];this.element=lM;this.input=t(this);this.touchAction=new op(this,this.options.touchAction);kp(this,!0);x(ZZ.recognizers,function(rp){var bu=this.add(new rp[0](rp[1]));rp[2]&&bu.recognizeWith(rp[2]);rp[3]&&bu.requireFailure(rp[2])},this)}
function kp(lM,ZZ){var rp=lM.element;x(lM.options.cssProps,function(bu,AU){rp.style[E(rp.style,AU)]=ZZ?bu:""})}
function Ed(lM,ZZ){var rp=f.createEvent("Event");rp.initEvent(lM,!0,!0);rp.gesture=ZZ;ZZ.target.dispatchEvent(rp)}
var J$=" webkit moz MS ms o".split(" "),ez=f.createElement("div"),$0=Math.round,$l=Math.abs,h$=Date.now,FE=1,an=/mobile|tablet|ip(ad|hone|od)|android/i,XE="ontouchstart"in Q,ui=E(Q,"PointerEvent")!==a,gN=XE&&an.test(navigator.userAgent),rd=["x","y"],pT=["clientX","clientY"];v.prototype={handler:function(){},
destroy:function(){this.evEl&&q(this.element,this.evEl,this.domHandler);this.evTarget&&q(this.target,this.evTarget,this.domHandler);this.evWin&&q(Q,this.evWin,this.domHandler)}};
var og={mousedown:1,mousemove:2,mouseup:4};b(wp,v,{handler:function(lM){var ZZ=og[lM.type];ZZ&1&&lM.button===0&&(this.pressed=!0);ZZ&2&&lM.which!==1&&(ZZ=4);this.pressed&&this.allow&&(ZZ&4&&(this.pressed=!1),this.callback(this.manager,ZZ,{pointers:[lM],changedPointers:[lM],pointerType:"mouse",srcEvent:lM}))}});
var Aj={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},sh={2:"touch",3:"pen",4:"mouse",5:"kinect"},zC="pointerdown",Cb="pointermove pointerup pointercancel";Q.MSPointerEvent&&(zC="MSPointerDown",Cb="MSPointerMove MSPointerUp MSPointerCancel");b(Pc,v,{handler:function(lM){var ZZ=this.store,rp=!1,bu=lM.type.toLowerCase().replace("ms","");bu=Aj[bu];var AU=sh[lM.pointerType]||lM.pointerType;bu&1&&(lM.button===0||AU=="touch")?ZZ.push(lM):bu&12&&(rp=!0);var qV=g(ZZ,lM.pointerId,"pointerId");
qV<0||(ZZ[qV]=lM,this.callback(this.manager,bu,{pointers:ZZ,changedPointers:[lM],pointerType:AU,srcEvent:lM}),rp&&ZZ.splice(qV,1))}});
var y0={touchstart:1,touchmove:2,touchend:4,touchcancel:8};b(ex,v,{handler:function(lM){var ZZ=y0[lM.type];var rp=Array.prototype.slice.call(lM.touches,0);var bu=this.targetIds;if(ZZ&3&&rp.length===1)bu[rp[0].identifier]=!0,bu=[rp,rp];else{var AU,qV=Array.prototype.slice.call(lM.targetTouches,0),B8=Array.prototype.slice.call(lM.changedTouches,0),Ki=[];if(ZZ===1)for(rp=0,AU=qV.length;rp<AU;rp++)bu[qV[rp].identifier]=!0;rp=0;for(AU=B8.length;rp<AU;rp++)bu[B8[rp].identifier]&&Ki.push(B8[rp]),ZZ&12&&
delete bu[B8[rp].identifier];bu=Ki.length?[r(qV.concat(Ki),"identifier",!0),Ki]:void 0}bu&&this.callback(this.manager,ZZ,{pointers:bu[0],changedPointers:bu[1],pointerType:"touch",srcEvent:lM})}});
b(yd,v,{handler:function(lM,ZZ,rp){var bu=rp.pointerType=="mouse";if(rp.pointerType=="touch")this.mouse.allow=!1;else if(bu&&!this.mouse.allow)return;ZZ&12&&(this.mouse.allow=!0);this.callback(lM,ZZ,rp)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var yx=E(ez.style,"touchAction"),eB=yx!==a;op.prototype={set:function(lM){lM=="compute"&&(lM=this.compute());eB&&(this.manager.element.style[yx]=lM);this.actions=lM.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var lM=[];x(this.manager.recognizers,function(ZZ){l(ZZ.options.enable,[ZZ])&&(lM=lM.concat(ZZ.getTouchAction()))});
return DT(lM.join(" "))},
preventDefaults:function(lM){if(!eB){var ZZ=lM.srcEvent;lM=lM.offsetDirection;if(this.manager.session.prevented)ZZ.preventDefault();else{var rp=this.actions,bu=rp.indexOf("none")>-1,AU=rp.indexOf("pan-y")>-1;rp=rp.indexOf("pan-x")>-1;if(bu||AU&&rp||AU&&lM&6||rp&&lM&24)return this.preventSrc(ZZ)}}},
preventSrc:function(lM){this.manager.session.prevented=!0;lM.preventDefault()}};
B_.prototype={defaults:{},set:function(lM){I(this.options,lM);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(lM){if(z(lM,"recognizeWith",this))return this;var ZZ=this.simultaneous;lM=Qp(lM,this);ZZ[lM.id]||(ZZ[lM.id]=lM,lM.recognizeWith(this));return this},
dropRecognizeWith:function(lM){if(z(lM,"dropRecognizeWith",this))return this;lM=Qp(lM,this);delete this.simultaneous[lM.id];return this},
requireFailure:function(lM){if(z(lM,"requireFailure",this))return this;var ZZ=this.requireFail;lM=Qp(lM,this);g(ZZ,lM)===-1&&(ZZ.push(lM),lM.requireFailure(this));return this},
dropRequireFailure:function(lM){if(z(lM,"dropRequireFailure",this))return this;lM=Qp(lM,this);lM=g(this.requireFail,lM);lM>-1&&this.requireFail.splice(lM,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(lM){return!!this.simultaneous[lM.id]},
emit:function(lM){function ZZ(AU){rp.manager.emit(rp.options.event+(AU?bu&16?"cancel":bu&8?"end":bu&4?"move":bu&2?"start":"":""),lM)}
var rp=this,bu=this.state;bu<8&&ZZ(!0);ZZ();bu>=8&&ZZ(!0)},
tryEmit:function(lM){if(this.canEmit())return this.emit(lM);this.state=32},
canEmit:function(){for(var lM=0;lM<this.requireFail.length;lM++)if(!(this.requireFail[lM].state&33))return!1;return!0},
recognize:function(lM){lM=I({},lM);l(this.options.enable,[this,lM])?(this.state&56&&(this.state=1),this.state=this.process(lM),this.state&30&&this.tryEmit(lM)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
b(xl,B_,{defaults:{pointers:1},attrTest:function(lM){var ZZ=this.options.pointers;return ZZ===0||lM.pointers.length===ZZ},
process:function(lM){var ZZ=this.state,rp=lM.eventType,bu=ZZ&6;lM=this.attrTest(lM);return bu&&(rp&8||!lM)?ZZ|16:bu||lM?rp&4?ZZ|8:ZZ&2?ZZ|4:2:32}});
b(xZ,xl,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var lM=this.options.direction;if(lM===30)return["none"];var ZZ=[];lM&6&&ZZ.push("pan-y");lM&24&&ZZ.push("pan-x");return ZZ},
directionTest:function(lM){var ZZ=this.options,rp=!0,bu=lM.distance,AU=lM.direction,qV=lM.deltaX,B8=lM.deltaY;AU&ZZ.direction||(ZZ.direction&6?(AU=qV===0?1:qV<0?2:4,rp=qV!=this.pX,bu=Math.abs(lM.deltaX)):(AU=B8===0?1:B8<0?8:16,rp=B8!=this.pY,bu=Math.abs(lM.deltaY)));lM.direction=AU;return rp&&bu>ZZ.threshold&&AU&ZZ.direction},
attrTest:function(lM){return xl.prototype.attrTest.call(this,lM)&&(this.state&2||!(this.state&2)&&this.directionTest(lM))},
emit:function(lM){this.pX=lM.deltaX;this.pY=lM.deltaY;var ZZ=zJ(lM.direction);ZZ&&this.manager.emit(this.options.event+ZZ,lM);this._super.emit.call(this,lM)}});
b(hj,xl,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(lM){return this._super.attrTest.call(this,lM)&&(Math.abs(lM.scale-1)>this.options.threshold||this.state&2)},
emit:function(lM){this._super.emit.call(this,lM);lM.scale!==1&&this.manager.emit(this.options.event+(lM.scale<1?"in":"out"),lM)}});
b(OT,B_,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(lM){var ZZ=this.options,rp=lM.pointers.length===ZZ.pointers,bu=lM.distance<ZZ.threshold,AU=lM.deltaTime>ZZ.time;this._input=lM;if(!bu||!rp||lM.eventType&12&&!AU)this.reset();else if(lM.eventType&1)this.reset(),this._timer=X(function(){this.state=8;this.tryEmit()},ZZ.time,this);
else if(lM.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(lM){this.state===8&&(lM&&lM.eventType&4?this.manager.emit(this.options.event+"up",lM):(this._input.timeStamp=h$(),this.manager.emit(this.options.event,this._input)))}});
b(uu,xl,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(lM){return this._super.attrTest.call(this,lM)&&(Math.abs(lM.rotation)>this.options.threshold||this.state&2)}});
b(sd,xl,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return xZ.prototype.getTouchAction.call(this)},
attrTest:function(lM){var ZZ=this.options.direction;if(ZZ&30)var rp=lM.velocity;else ZZ&6?rp=lM.velocityX:ZZ&24&&(rp=lM.velocityY);return this._super.attrTest.call(this,lM)&&ZZ&lM.direction&&$l(rp)>this.options.velocity&&lM.eventType&4},
emit:function(lM){var ZZ=zJ(lM.direction);ZZ&&this.manager.emit(this.options.event+ZZ,lM);this.manager.emit(this.options.event,lM)}});
b(LT,B_,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(lM){var ZZ=this.options,rp=lM.pointers.length===ZZ.pointers,bu=lM.distance<ZZ.threshold,AU=lM.deltaTime<ZZ.time;this.reset();if(lM.eventType&1&&this.count===0)return this.failTimeout();if(bu&&AU&&rp){if(lM.eventType!=4)return this.failTimeout();rp=this.pTime?lM.timeStamp-this.pTime<ZZ.interval:!0;bu=!this.pCenter||Hc(this.pCenter,lM.center)<ZZ.posThreshold;this.pTime=lM.timeStamp;this.pCenter=lM.center;bu&&rp?this.count+=1:this.count=1;this._input=lM;if(this.count%ZZ.taps===0)return this.hasRequireFailures()?
(this._timer=X(function(){this.state=8;this.tryEmit()},ZZ.interval,this),2):8}return 32},
failTimeout:function(){this._timer=X(function(){this.state=32},this.options.interval,this);
return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(){this.state==8&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});
Ci.VERSION="2.0.2";Ci.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[uu,{enable:!1}],[hj,{enable:!1},["rotate"]],[sd,{direction:6}],[xZ,{direction:6},["swipe"]],[LT],[LT,{event:"doubletap",taps:2},["tap"]],[OT]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};t$.prototype={set:function(lM){I(this.options,lM);return this},
stop:function(lM){this.session.stopped=lM?2:1},
recognize:function(lM){var ZZ=this.session;if(!ZZ.stopped){this.touchAction.preventDefaults(lM);var rp=this.recognizers,bu=ZZ.curRecognizer;if(!bu||bu&&bu.state&8)bu=ZZ.curRecognizer=null;for(var AU=0,qV=rp.length;AU<qV;AU++){var B8=rp[AU];ZZ.stopped===2||bu&&B8!=bu&&!B8.canRecognizeWith(bu)?B8.reset():B8.recognize(lM);!bu&&B8.state&14&&(bu=ZZ.curRecognizer=B8)}}},
get:function(lM){if(lM instanceof B_)return lM;for(var ZZ=this.recognizers,rp=0;rp<ZZ.length;rp++)if(ZZ[rp].options.event==lM)return ZZ[rp];return null},
add:function(lM){if(z(lM,"add",this))return this;var ZZ=this.get(lM.options.event);ZZ&&this.remove(ZZ);this.recognizers.push(lM);lM.manager=this;this.touchAction.update();return lM},
remove:function(lM){if(z(lM,"remove",this))return this;var ZZ=this.recognizers;lM=this.get(lM);ZZ.splice(g(ZZ,lM),1);this.touchAction.update();return this},
on:function(lM,ZZ){var rp=this.handlers;x(w(lM),function(bu){rp[bu]=rp[bu]||[];rp[bu].push(ZZ)});
return this},
off:function(lM,ZZ){var rp=this.handlers;x(w(lM),function(bu){ZZ?rp[bu].splice(g(rp[bu],ZZ),1):delete rp[bu]});
return this},
emit:function(lM,ZZ){this.options.domEvents&&Ed(lM,ZZ);var rp=this.handlers[lM]&&this.handlers[lM].slice();if(rp&&rp.length){ZZ.type=lM;ZZ.preventDefault=function(){ZZ.srcEvent.preventDefault()};
lM=0;for(var bu=rp.length;lM<bu;lM++)rp[lM](ZZ)}},
destroy:function(){this.element&&kp(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
I(Ci,{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:t$,Input:v,TouchAction:op,Recognizer:B_,AttrRecognizer:xl,Tap:LT,Pan:xZ,Swipe:sd,Pinch:hj,Rotate:uu,Press:OT,on:H,off:q,each:x,merge:n,extend:I,inherit:b,bindFn:N,prefixed:E});
Q[U]=Ci})(window,document,"Hammer");
return window.Hammer}.call({});
c.DOCUMENT=S;S[SXd]=c}return S[SXd]};/*

 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 QWs=function(S,c){if(S.length!==c.length)return!1;for(var Q=0;Q<S.length;++Q)if(S[Q]!==c[Q])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var fci=_.A(["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"]),UKu=fci.next();!UKu.done;UKu=fci.next()){var J2d=UKu.value,acp=document.createElement("link");acp.rel="stylesheet";acp.href=J2d;document.head.appendChild(acp)};var m7H,cPz,fxo,Rpx,SYT,ywp,tPx,VPx;m7H={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};cPz={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:"*"};fxo={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};Rpx=/[a-z0-9*]/;SYT=/U\+/;ywp=/^arrow/;tPx=/^space(bar)?/;VPx=/^escape$/;_.lc={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(S,c){this._imperativeKeyBindings[S]=c;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(S,c){c=JPR(c);for(var Q=0;Q<c.length;++Q)if(Qro(c[Q],S))return!0;return!1},
_collectKeyBindings:function(){var S=this.behaviors.map(function(c){return c.keyBindings});
S.indexOf(this.keyBindings)===-1&&S.push(this.keyBindings);return S},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(Q){for(var f in Q)this._addKeyBinding(f,Q[f])},this);
for(var S in this._imperativeKeyBindings)this._addKeyBinding(S,this._imperativeKeyBindings[S]);for(var c in this._keyBindings)this._keyBindings[c].sort(function(Q,f){Q=Q[0].hasModifiers;return Q===f[0].hasModifiers?0:Q?-1:1})},
_addKeyBinding:function(S,c){JPR(S).forEach(function(Q){this._keyBindings[Q.event]=this._keyBindings[Q.event]||[];this._keyBindings[Q.event].push([Q,c])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(S){var c=this._onKeyBindingEvent.bind(this,this._keyBindings[S]);this._boundKeyHandlers.push([this.keyEventTarget,S,c]);this.keyEventTarget.addEventListener(S,c)},this)},
_unlistenKeyEventListeners:function(){for(var S,c,Q;this._boundKeyHandlers.length;)S=this._boundKeyHandlers.pop(),c=S[0],Q=S[1],S=S[2],c.removeEventListener(Q,S)},
_onKeyBindingEvent:function(S,c){this.stopKeyboardEventPropagation&&c.stopPropagation();if(!c.defaultPrevented)for(var Q=0;Q<S.length;Q++){var f=S[Q][0],U=S[Q][1];if(Qro(f,c)&&(this._triggerKeyHandler(f,U,c),c.defaultPrevented))break}},
_triggerKeyHandler:function(S,c,Q){var f=Object.create(S);f.keyboardEvent=Q;S=new CustomEvent(S.event,{detail:f,cancelable:!0});this[c].call(this,S);S.defaultPrevented&&Q.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
*/
_.DI({is:"iron-a11y-keys",_template:null,behaviors:[_.lc],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(S){this.keyEventTarget=S},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(S){this.fire("keys-pressed",S.detail,{})}});_.Y1={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(S){this._setFocused(S.type==="focus")},
_disabledChanged:function(S){this.setAttribute("aria-disabled",S?"true":"false");this.style.pointerEvents=S?"none":"";S?(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 CO={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(S){this._detectKeyboardFocus(S);S||this._setPressed(!1)},
_detectKeyboardFocus:function(S){this._setReceivedFocusFromKeyboard(!this.pointerDown&&S)},
_userActivate:function(S){this.active!==S&&(this.active=S,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(S){S=S.detail.keyboardEvent;var c=_.YU(S).localTarget;this.isLightDescendant(c)||(S.preventDefault(),S.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(S){S=_.YU(S.detail.keyboardEvent).localTarget;this.isLightDescendant(S)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(S,c){c&&c!=S&&this.hasAttribute(c)&&this.removeAttribute(c)},
_activeChanged:function(S){this.toggles?this.setAttribute(this.ariaActiveAttribute,S?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},A2d=[_.lc,
CO];_.Hx={IronButtonState:A2d,IronButtonStateImpl:CO};_.DV={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.pO=function(S){_.pO[" "](S);this.type=S&&S.type||"default";this.key=S&&S.key;S&&"value"in S&&(this.value=S.value)};
_.pO.prototype.byKey=function(S){this.key=S;return this.value};
_.Rh.Object.defineProperties(_.pO.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var S=this.type,c=this.key;if(S&&c)return he[S]&&he[S][c]},
set:function(S){var c=this.type,Q=this.key;c&&Q&&(c=he[c]=he[c]||{},S==null?delete c[Q]:c[Q]=S)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var S=he[this.type];return S?Object.keys(S).map(function(c){return he[this.type][c]},this):[]}}});
_.pO[" "]=function(){};
var he={};_.DI({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(S,c,Q){S=new _.pO({type:S,key:c});Q!==void 0&&Q!==S.value?S.value=Q:this.value!==S.value&&(this.value=S.value);return S},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(S){S&&(this.value=this)},
byKey:function(S){return(new _.pO({type:this.type,key:S})).value}});var XI_;XI_=null;_.q9={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){XI_=new _.pO({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return XI_&&XI_.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(S){this.invalid=S===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(S);return!this.invalid},
_getValidity:function(S){return this.hasValidator()?this._validator.validate(S):!0}};var Ovd={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"}},zoz=[_.DV,
_.q9,Ovd];_.DI({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 _.pO({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(S){return this.name+":"+S},this)},
applyIcon:function(S,c){this.removeIcon(S);if(c=this._cloneIcon(c,this.rtlMirroring&&this._targetIsRTL(S))){var Q=_.YU(S.root||S);Q.insertBefore(c,Q.childNodes[0]);return S._svgIcon=c}return null},
removeIcon:function(S){S._svgIcon&&(_.YU(S.root||S).removeChild(S._svgIcon),S._svgIcon=null)},
_targetIsRTL:function(S){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(S&&S.nodeType!==Node.ELEMENT_NODE&&(S=S.host),this.__targetIsRTL=S&&window.getComputedStyle(S).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 S=Object.create(null);_.YU(this).querySelectorAll("[id]").forEach(function(c){S[c.id]=c});
return S},
_cloneIcon:function(S,c){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[S],this.size,c)},
_prepareSvgClone:function(S,c,Q){if(S){S=S.cloneNode(!0);var f=document.createElementNS("http://www.w3.org/2000/svg","svg");c=S.getAttribute("viewBox")||"0 0 "+c+" "+c;var U="pointer-events: none; display: block; width: 100%; height: 100%;";Q&&S.hasAttribute("mirror-in-rtl")&&(U+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");f.setAttribute("viewBox",c);f.setAttribute("preserveAspectRatio","xMidYMid meet");f.setAttribute("focusable","false");f.style&&(f.style.cssText=
U);f.appendChild(S).removeAttribute("id");return f}return null}});var xKT=function(S){this.multi=!1;this.selection=[];this.selectCallback=S};
_.J=xKT.prototype;_.J.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.J.clear=function(S){this.selection.slice().forEach(function(c){(!S||S.indexOf(c)<0)&&this.setItemSelected(c,!1)},this)};
_.J.isSelected=function(S){return this.selection.indexOf(S)>=0};
_.J.setItemSelected=function(S,c){if(S!=null&&c!==this.isSelected(S)){if(c)this.selection.push(S);else{var Q=this.selection.indexOf(S);Q>=0&&this.selection.splice(Q,1)}this.selectCallback&&this.selectCallback(S,c)}};
_.J.select=function(S){this.multi?this.toggle(S):this.get()!==S&&(this.setItemSelected(this.get(),!1),this.setItemSelected(S,!0))};
_.J.toggle=function(S){this.setItemSelected(S,!this.isSelected(S))};_.rM={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 xKT(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.YU(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(S){return this.items?this.items.indexOf(S):-1},
select:function(S){this.selected=S},
selectPrevious:function(){var S=this.items.length,c=S-1;this.selected!==void 0&&(c=(Number(this._valueToIndex(this.selected))-1+S)%S);this.selected=this._indexToValue(c)},
selectNext:function(){var S=0;this.selected!==void 0&&(S=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(S)},
selectIndex:function(S){this.select(this._indexToValue(S))},
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(S){this.listen(this,S,"_activateHandler")},
_removeListener:function(S){this.unlisten(this,S,"_activateHandler")},
_activateEventChanged:function(S,c){this._removeListener(c);this._addListener(S)},
_updateItems:function(){var S=_.YU(this).queryDistributedElements(this.selectable||"*");S=Array.prototype.filter.call(S,this._bindFilterItem);this._setItems(S)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var S=this._valueToItem(this.selected);S?this._selection.select(S):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(S){return!this._excludedLocalNames[S.localName]},
_valueToItem:function(S){return S==null?null:this.items[this._valueToIndex(S)]},
_valueToIndex:function(S){if(this.attrForSelected)for(var c=0,Q;Q=this.items[c];c++){if(this._valueForItem(Q)==S)return c}else return Number(S)},
_indexToValue:function(S){if(this.attrForSelected){if(S=this.items[S])return this._valueForItem(S)}else return S},
_valueForItem:function(S){if(!S)return null;if(!this.attrForSelected)return S=this.indexOf(S),S===-1?null:S;var c=S[AO(this.attrForSelected)];return c!=void 0?c:S.getAttribute(this.attrForSelected)},
_applySelection:function(S,c){this.selectedClass&&this.toggleClass(this.selectedClass,c,S);this.selectedAttribute&&this.toggleAttribute.call(S,this.selectedAttribute,c);this._selectionChange();this.fire("iron-"+(c?"select":"deselect"),{item:S})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(S){return _.YU(S).observeNodes(function(c){this._updateItems();this._updateSelected();this.fire("iron-items-changed",c,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(S){S=S.target;for(var c=this.items;S&&S!=this;){var Q=c.indexOf(S);if(Q>=0){c=this._indexToValue(Q);this._itemActivate(c,S);break}S=S.parentNode}},
_itemActivate:function(S,c){this.fire("iron-activate",{selected:S,item:c},{cancelable:!0}).defaultPrevented||this.select(S)}};var Fd_={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(S){this.multi?this._toggleSelected(S):this.selected=S},
multiChanged:function(S){this._selection.multi=S;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(S){return this._indexToValue(this.indexOf(S))},this).filter(function(S){return S!=null},this)):_.rM._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(S){S=S||[];S=(this._valuesToItems(S)||[]).filter(function(Q){return Q!==null&&Q!==void 0});
this._selection.clear(S);for(var c=0;c<S.length;c++)this._selection.setItemSelected(S[c],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var S=this._selection.get();this.multi?(this._setSelectedItems(S),this._setSelectedItem(S.length?S[0]:null)):S!==null&&S!==void 0?(this._setSelectedItems([S]),this._setSelectedItem(S)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(S){var c=this.selectedValues.indexOf(S);c<0?this.push("selectedValues",S):this.splice("selectedValues",c,1)},
_valuesToItems:function(S){return S==null?null:S.map(function(c){return this._valueToItem(c)},this)}},BHh=[_.rM,
Fd_];var Ic$;
_.Tp={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(S){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var c=this._valueToItem(S);c&&c.hasAttribute("disabled")||(this._setFocusedItem(c),Fd_.select.apply(this,arguments))},
_resetTabindices:function(){var S=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(c){c.setAttribute("tabindex",c===S?"0":"-1");c.setAttribute("aria-selected",this._selection.isSelected(c))},this)},
_updateMultiselectable:function(S){S?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(S){if(this._MODIFIER_KEYS.indexOf(S.key)===-1){this.cancelDebouncer("_clearSearchText");var c=this._searchText||"";c+=(S.key&&S.key.length==1?S.key:String.fromCharCode(S.keyCode)).toLocaleLowerCase();S=c.length;for(var Q=0,f;f=this.items[Q];Q++)if(!f.hasAttribute("disabled")){var U=this.attrForItemTitle||"textContent";U=(f[U]||f.getAttribute(U)||"").trim();if(!(U.length<S)&&U.slice(0,S).toLocaleLowerCase()==c){this._setFocusedItem(f);break}}this._searchText=c;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var S=this.items.length,c=Number(this.indexOf(this.focusedItem)),Q=1;Q<S+1;Q++){var f=this.items[(c-Q+S)%S];if(!f.hasAttribute("disabled")){var U=_.YU(f).getOwnerRoot()||document;this._setFocusedItem(f);if(_.YU(U).activeElement==f)break}}},
_focusNext:function(){for(var S=this.items.length,c=Number(this.indexOf(this.focusedItem)),Q=1;Q<S+1;Q++){var f=this.items[(c+Q)%S];if(!f.hasAttribute("disabled")){var U=_.YU(f).getOwnerRoot()||document;this._setFocusedItem(f);if(_.YU(U).activeElement==f)break}}},
_applySelection:function(S,c){c?S.setAttribute("aria-selected","true"):S.setAttribute("aria-selected","false");_.rM._applySelection.apply(this,arguments)},
_focusedItemChanged:function(S,c){c&&c.setAttribute("tabindex","-1");!S||S.hasAttribute("disabled")||this.disabled||(S.setAttribute("tabindex","0"),S.focus())},
_onIronItemsChanged:function(S){S.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var S=this.getAttribute("tabindex");_.Tp._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",S);_.Tp._shiftTabPressed=!1},1)},
_onFocus:function(S){!_.Tp._shiftTabPressed&&(S=_.YU(S).rootTarget,S===this||typeof S.tabIndex==="undefined"||this.isLightDescendant(S))&&(this._defaultFocusAsync=this.async(function(){var c=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);c?this._setFocusedItem(c):this.items[0]&&this._focusNext()}))},
_onUpKey:function(S){this._focusPrevious();S.detail.keyboardEvent.preventDefault()},
_onDownKey:function(S){this._focusNext();S.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var S=this.focusedItem;S&&S.blur()},
_onKeydown:function(S){this.keyboardEventMatchesKeys(S,"up down esc")||this._focusWithKeyboardEvent(S);S.stopPropagation()},
_activateHandler:function(S){_.rM._activateHandler.call(this,S);S.stopPropagation()},
_disabledChanged:function(S){S?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Ic$=[BHh,_.lc,_.Tp];_.nzJ={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(S){this.focusedItem&&(this.focusedItem.click(),S.detail.keyboardEvent.preventDefault())},
_onDownKey:function(S){this.focusedItem&&(this.focusedItem.click(),S.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(S){return S.ctrlKey||S.shiftKey||S.altKey||S.metaKey},
_onLeftKey:function(S){this._isSpecialKey(S.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),S.detail.keyboardEvent.preventDefault())},
_onRightKey:function(S){this._isSpecialKey(S.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),S.detail.keyboardEvent.preventDefault())},
_onKeydown:function(S){this.keyboardEventMatchesKeys(S,"up down left right esc")||this._focusWithKeyboardEvent(S)}};
_.bvd=[Ic$,_.nzJ];var NHp;NHp=new Set;_.w9={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):(NHp.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(S){this.resizerShouldNotify(S)&&this._notifyDescendant(S)},this),this._fireResize())},
assignParentResizable:function(S){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=S)&&S._interestedResizables.indexOf(this)===-1&&(S._interestedResizables.push(this),S._subscribeIronResize(this))},
stopResizeNotificationsFor:function(S){var c=this._interestedResizables.indexOf(S);c>-1&&(this._interestedResizables.splice(c,1),this._unsubscribeIronResize(S))},
_subscribeIronResize:function(S){S.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(S){S.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(S){this._notifyingDescendant?S.stopPropagation():Zm||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(S){var c=_.YU(S).rootTarget;c!==this&&(c.assignParentResizable(this),this._notifyDescendant(c),S.stopPropagation())},
_parentResizableChanged:function(S){S&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(S){this.isAttached&&(this._notifyingDescendant=!0,S.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var S=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function Q(){document.removeEventListener("readystatechange",Q);S()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(c){c!==this&&c._findParent()},this):(NHp.forEach(function(c){c!==this&&c._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?NHp.delete(this):NHp.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
*/
_.Kdl={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(S,c){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);c&&(S==="document"?this.scrollTarget=this._doc:typeof S==="string"?this.scrollTarget=(c=this.domHost)&&c.$?c.$[S]:_.YU(this.ownerDocument).querySelector("#"+S):this._isValidScrollTarget()&&(this._oldScrollTarget=S,this._toggleScrollListener(this._shouldHaveListener,S)))},
_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(S){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,S):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
S)},set _scrollLeft(S){this.scrollTarget===this._doc?window.scrollTo(S,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=S)},scroll:function(S,c){if(typeof S==="object"){var Q=S.left;c=S.top}else Q=S;Q=Q||0;c=c||0;this.scrollTarget===this._doc?window.scrollTo(Q,c):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=Q,this.scrollTarget.scrollTop=c)},
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(S,c){c=c===this._doc?window:c;S?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),c.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(c.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(S){this._shouldHaveListener=S;this._toggleScrollListener(S,this.scrollTarget)}};_.DI({is:"iron-selector",_template:null,behaviors:[BHh]});var s$={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(S){if(S.timing)for(var c in S.timing)this.animationTiming[c]=S.timing[c];return this.animationTiming},
setPrefixedProperty:function(S,c,Q){for(var f={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[c],U,a=0;U=f[a];a++)S.style[U]=Q;S.style[c]=Q},
complete:function(){}};_.DI({is:"fade-in-animation",_template:null,behaviors:[s$],configure:function(S){return this._effect=new KeyframeEffect(S.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(S))}});_.DI({is:"fade-out-animation",_template:null,behaviors:[s$],configure:function(S){return this._effect=new KeyframeEffect(S.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(S))}});var $Kl=[{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(S,c){for(var Q in c)S[Q]=c[Q]},
_cloneConfig:function(S){var c={isClone:!0};this._copyProperties(c,S);return c},
_getAnimationConfigRecursive:function(S,c,Q){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 f=S?this.animationConfig[S]:this.animationConfig;Array.isArray(f)||(f=[f]);if(f)for(var U,a=0;U=f[a];a++)if(U.animatable)U.animatable._getAnimationConfigRecursive(U.type||S,c,Q);else if(U.id){var X=c[U.id];
X?(X.isClone||(c[U.id]=this._cloneConfig(X),X=c[U.id]),this._copyProperties(X,U)):c[U.id]=U}else Q.push(U)}},
getAnimationConfig:function(S){var c={},Q=[];this._getAnimationConfigRecursive(S,c,Q);for(var f in c)Q.push(c[f]);return Q}},
{_configureAnimations:function(S){var c=[],Q=[];if(S.length>0)for(var f,U=0;f=S[U];U++){var a=document.createElement(f.name);if(a.isNeonAnimation){var X=null;a.configure||(a.configure=function(){return null});
X=a.configure(f);Q.push({result:X,config:f})}else console.warn(this.is+":",f.name,"not found!")}for(S=0;S<Q.length;S++){X=Q[S].result;f=Q[S].config;try{typeof X.cancel!="function"&&(X=document.timeline.play(X))}catch(z){X=null,console.warn("Couldnt play","(",f.name,").",z)}X&&c.push({neonAnimation:a,config:f,animation:X})}return c},
_shouldComplete:function(S){for(var c=!0,Q=0;Q<S.length;Q++)if(S[Q].animation.playState!="finished"){c=!1;break}return c},
_complete:function(S){for(var c=0;c<S.length;c++)S[c].neonAnimation.complete(S[c].config);for(c=0;c<S.length;c++)S[c].animation.cancel()},
playAnimation:function(S,c){var Q=this.getAnimationConfig(S);if(Q){this._active=this._active||{};this._active[S]&&(this._complete(this._active[S]),delete this._active[S]);var f=this._configureAnimations(Q);if(f.length==0)this.fire("neon-animation-finish",c,{bubbles:!1});else for(this._active[S]=f,Q=0;Q<f.length;Q++)f[Q].animation.onfinish=function(){this._shouldComplete(f)&&(this._complete(f),delete this._active[S],this.fire("neon-animation-finish",c,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var S in this._active){var c=this._active[S],Q;for(Q in c)c[Q].animation&&c[Q].animation.cancel&&c[Q].animation.cancel()}this._active={}}}];var Fu=function(S,c){S=Error.call(this,S);this.message=S.message;"stack"in S&&(this.stack=S.stack);this.arg=c;this.name=this.constructor.name;this.constructor=Fu;this.__proto__=Fu.prototype};
_.C(Fu,Error);var uB$=R8(function(S){var c=function(){return S.apply(this,arguments)||this};
_.C(c,S);c.prototype._marshalArgs=function(Q,f,U){f=S.prototype._marshalArgs.call(this,Q,f,U);if(this._legacyUndefinedCheck&&f.length>1)for(U=0;U<f.length;U++)if(f[U]===void 0||Q[U].wildcard&&f[U].base===void 0)throw Q=Q[U].name,new Fu("Argument '"+Q+"' is undefined.",Q);return f};
c.prototype._addPropertyEffect=function(Q,f,U){return S.prototype._addPropertyEffect.call(this,Q,f,axY(U,U&&U.info&&U.info.methodName))};
c._addTemplatePropertyEffect=function(Q,f,U){return S._addTemplatePropertyEffect.call(this,Q,f,axY(U))};
return c}),jWe=_.DI.Class;
_.DI.Class=function(S,c){return jWe(S,function(Q){return c?c(uB$(Q)):uB$(Q)})};
var lcd=R8(function(S){var c=uB$(S);S=function(){return c.apply(this,arguments)||this};
_.C(S,c);_.Rh.Object.defineProperties(S.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return S}),YXs=Wn.mixin;
Wn.mixin=YXs?function(S){return lcd(YXs(S))}:lcd;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.M9=_.Hx.IronButtonState;var ydz=iO;/*

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 HvT;_.C7s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split("");HvT=function(){var S=[],c;var Q=Q||_.C7s.length;for(c=0;c<8;c++)S[c]=_.C7s[0|Math.random()*Q];return S.join("")};var zYZ=function(){return Math.random().toString(36).substring(7).split("").join(".")},OWz="@@redux/INIT"+zYZ(),Bro="@@redux/REPLACE"+zYZ();var IxY=typeof Symbol==="function"&&Symbol.observable||"@@observable";var DKd=typeof window!=="undefined"&&typeof document!=="undefined"&&window.document===document;var pIl="top right bottom left width height size weight".split(" "),hoJ=typeof MutationObserver!=="undefined",qXe=DKd&&HTMLElement.prototype.attachShadow&&HTMLElement.prototype.attachShadow.toString().indexOf("[native code]")!==-1?HTMLElement.prototype.attachShadow:null,THT=function(){this.mutationEventsAdded_=this.JSC$9702_connected_=!1;this.mutationsObserver_=null;this.observers_=[];this.onTransitionEnd_=this.onTransitionEnd_.bind(this);this.refresh=nHM(this.refresh.bind(this))},wIT=function(S,
c){var Q=S.observers_;
c=Q.indexOf(c);~c&&Q.splice(c,1);!Q.length&&S.JSC$9702_connected_&&DKd&&S.JSC$9702_connected_&&(document.removeEventListener("transitionend",S.onTransitionEnd_),window.removeEventListener("resize",S.refresh),S.mutationsObserver_&&(S.mutationsObserver_.disconnect(),qXe&&(HTMLElement.prototype.attachShadow=qXe)),S.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",S.refresh),S.mutationsObserver_=null,S.mutationEventsAdded_=!1,S.JSC$9702_connected_=!1)};
THT.prototype.refresh=function(){sWJ(this)&&this.refresh()};
var sWJ=function(S){S=S.observers_.filter(function(c){return Mwh(c),c.activeObservations_.length>0});
S.forEach(function(c){return ivT(c)});
return S.length>0},Zvh=function(S){if(DKd&&!S.JSC$9702_connected_){document.addEventListener("transitionend",S.onTransitionEnd_);
window.addEventListener("resize",S.refresh);if(hoJ){S.mutationsObserver_=new MutationObserver(S.refresh);var c={attributes:!0,childList:!0,characterData:!0,subtree:!0};S.mutationsObserver_.observe(document,c);qXe&&(function U(f){var a=f.shadowRoot;a&&(S.mutationsObserver_.observe(a,c),U(a));for(f=f.firstElementChild;f;)U(f),f=f.nextElementSibling}(document),HTMLElement.prototype.attachShadow=function(){var f=qXe.apply(this,_.YD.apply(0,arguments));
S.mutationsObserver_.observe(f,c);return f})}else document.addEventListener("DOMSubtreeModified",S.refresh),S.mutationEventsAdded_=!0;
S.JSC$9702_connected_=!0}};
THT.prototype.onTransitionEnd_=function(S){var c=S.propertyName===void 0?"":S.propertyName;pIl.some(function(Q){return!!~c.indexOf(Q)})&&this.refresh()};
var Gvz=null;var Wd$=function(S,c){for(var Q=_.A(Object.keys(c)),f=Q.next();!f.done;f=Q.next())f=f.value,Object.defineProperty(S,f,{value:c[f],enumerable:!1,writable:!1,configurable:!0})};var ic=function(S){var c;return(S==null?void 0:(c=S.ownerDocument)==null?void 0:c.defaultView)||globalThis};var gzs={x:0,y:0,width:0,height:0},eoT=typeof SVGGraphicsElement!=="undefined"?function(S){return S instanceof ic(S).SVGGraphicsElement}:function(S){return S instanceof ic(S).SVGElement&&typeof S.getBBox==="function"};var kvs=function(S){this.broadcastHeight=this.broadcastWidth=0;this.contentRect_={x:0,y:0,width:0,height:0};this.target=S};
kvs.prototype.isActive=function(){var S=this.target;if(DKd)if(eoT(S)){var c=S.getBBox();c={x:0,y:0,width:c.width,height:c.height}}else{var Q=S.clientWidth,f=S.clientHeight;if(Q||f){var U=ic(S).getComputedStyle(S);c=IY(U["padding-top"]);var a=IY(U["padding-left"]),X=a+IY(U["padding-right"]),z=c+IY(U["padding-bottom"]),x=IY(U.width),I=IY(U.height);U.boxSizing==="border-box"&&(Math.round(x+X)!==Q&&(x-=bWc(U,"left","right")+X),Math.round(I+z)!==f&&(I-=bWc(U,"top","bottom")+z));S!==ic(S).document.documentElement&&
(S=Math.round(x+X)-Q,f=Math.round(I+z)-f,Math.abs(S)!==1&&(x-=S),Math.abs(f)!==1&&(I-=f));c={x:a,y:c,width:x,height:I}}else c=gzs}else c=gzs;this.contentRect_=c;return c.width!==this.broadcastWidth||c.height!==this.broadcastHeight};var r2u=function(S,c){var Q=c.x;var f=c.y;var U=c.width;c=c.height;var a=Object.create((typeof DOMRectReadOnly!=="undefined"?DOMRectReadOnly:Object).prototype);Wd$(a,{x:Q,y:f,width:U,height:c,top:f,right:Q+U,bottom:c+f,left:Q});Wd$(this,{target:S,contentRect:a})};var dKJ=function(S,c){var Q=Gvz;this.activeObservations_=[];this.observations_=new Map;if(typeof S!=="function")throw new TypeError("Re");this.callback_=S;this.controller_=Q;this.callbackCtx_=c};
dKJ.prototype.observe=function(S){if(S===void 0)throw new TypeError("Se");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(S instanceof ic(S).Element))throw new TypeError("Te");var c=this.observations_;c.has(S)||(c.set(S,new kvs(S)),S=this.controller_,~S.observers_.indexOf(this)||S.observers_.push(this),S.JSC$9702_connected_||Zvh(S),this.controller_.refresh())}};
dKJ.prototype.unobserve=function(S){if(S===void 0)throw new TypeError("Se");if(typeof Element!=="undefined"&&Element instanceof Object){if(!(S instanceof ic(S).Element))throw new TypeError("Te");var c=this.observations_;c.has(S)&&(c.delete(S),c.size||wIT(this.controller_,this))}};
dKJ.prototype.disconnect=function(){this.activeObservations_.splice(0);this.observations_.clear();wIT(this.controller_,this)};
var Mwh=function(S){S.activeObservations_.splice(0);S.observations_.forEach(function(c){c.isActive()&&S.activeObservations_.push(c)})},ivT=function(S){if(S.activeObservations_.length>0){var c=S.callbackCtx_,Q=S.activeObservations_.map(function(f){var U=f.target,a=f.contentRect_;
f.broadcastWidth=a.width;f.broadcastHeight=a.height;return new r2u(U,a)});
S.callback_.call(c,Q,c);S.activeObservations_.splice(0)}};var ZV=function(S){if(!(this instanceof ZV))throw new TypeError("Ue");if(!arguments.length)throw new TypeError("Se");Gvz||(Gvz=new THT);this.observer_=new dKJ(S,this)};
ZV.prototype.observe=function(S){this.observer_.observe(S)};
ZV.prototype.unobserve=function(S){this.observer_.unobserve(S)};
ZV.prototype.disconnect=function(){this.observer_.disconnect()};var FHT=typeof globalThis.ResizeObserver!=="undefined"?globalThis.ResizeObserver:ZV;var CRZ="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(" "),YYp={accept_charset:"acceptCharset",
"char":"ch",charoff:"chOff",checked:"defaultChecked","class":"className","for":"htmlFor",http_equiv:"httpEquiv",muted:"defaultMuted",selected:"defaultSelected",value:"defaultValue"},lxY=null,Nro=null;var HWz={},DJT=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 MpH={text:1},qYp={audio:{currentTime:1,srcObject:1},video:{currentTime:1,srcObject:1}};var vzu=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,P7d={CONSTANT:{isUnwrappable:function(S){return S instanceof Ge},
unwrap:Lpd},JAVASCRIPT:{isUnwrappable:function(S){return S instanceof _.ZQ},
unwrap:W7},HTML:{isUnwrappable:function(S){return S instanceof pc},
unwrap:function(S){return qg(S)}},
RESOURCE_URL:{isUnwrappable:function(S){return S instanceof A5},
unwrap:_.Oy},STRING:{isUnwrappable:function(S){return S instanceof Object},
unwrap:function(S){return String(S)}},
STYLE:{isUnwrappable:function(S){return typeof S==="string"},
unwrap:function(S){return S}},
URL:{isUnwrappable:function(S){return In(S)},
unwrap:_.nc}},Ldu={CONSTANT:iWp,JAVASCRIPT:iWp,HTML:function(S){S=S instanceof pc?S:h5(String(S).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"));return qg(S)},
RESOURCE_URL:iWp,STRING:String,STYLE:iWp,URL:function(S,c){S=vzu.test(S)?S:void 0;return S===void 0?c:S}};var LJR=/(?!,)([^\t\n\f\r ]+)(?:[\t\n\f\r ]+([.0-9+\-]+[a-z]?))?/gi,ZWp=/[\t\n\f\r ]+/,WJp=/[\t\n\f\r ,]+/g,eYr=function(S,c,Q){return Q},KP={},Ez$=function(){var S=function(){var f={createHTML:function(){return"zClosurez"},
createScript:function(){return" /*zClosurez*/ "},
createScriptURL:function(){return"about:invalid#zClosurez"}};
return typeof trustedTypes!=="undefined"?trustedTypes.createPolicy("polymer_resin",f):f}(),c=S.createHTML(""),Q=S.createScript("");
S=S.createScriptURL("");return{INNOCUOUS_STRING:c,INNOCUOUS_SCRIPT:Q,INNOCUOUS_URL:S}}(),NE=Ez$.INNOCUOUS_STRING,PRz=Ez$.INNOCUOUS_SCRIPT,vHz=Ez$.INNOCUOUS_URL;var tws=function(S){var c=EHo(S);return function(Q,f,U,a){return a?c(a,f,U,Q):NE}}({reportHandler:function(S,c){if(S)try{throw Error(c);
}catch(Q){_.sH(Q)}},
safeTypesBridge:function(S,c,Q){var f=P7d[c];return f.isUnwrappable(S)&&(f=f.unwrap(S,Q),f!==Q)?f:(0,Ldu[c])(String(S),Q)},
allowedIdentifierPrefixes:[""]});if(K$!==void 0)throw Error("Ve");K$=tws;if(K$!==tws)throw Error("We");$U("Injectable",[]);var $1H=$U("Inject",[["token",void 0]]),jlz=$U("Optional",[]);$U("Injectable",[]);var l$x=$U("Self",[]),YRT=$U("SkipSelf",[]);$U("Host",[]);var Vws={},Roe=function(){};
Roe.prototype.resolve=function(){throw Error("Ye");};
Roe.prototype.addProvider=function(){throw Error("Ye");};var NOY=Function;var y2J=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?\S+\.apply\(this,\s*arguments\)/,ozs=function(){this._reflect=window.Reflect};
_.J=ozs.prototype;_.J.factory=function(S){return function(){return new (Function.prototype.bind.apply(S,[null].concat(_.Hs(_.YD.apply(0,arguments)))))}};
_.J._zipTypesAndAnnotations=function(S,c){var Q=typeof S==="undefined"?Array(c.length):Array(S.length);for(var f=0;f<Q.length;f++)Q[f]=typeof S==="undefined"?[]:S[f]!=Object?[S[f]]:[],c&&VpH(c[f])&&(Q[f]=Q[f].concat(c[f]));return Q};
_.J._ownParameters=function(S,c){if(y2J.exec(S.toString()))return null;if(S.parameters&&S.parameters!==c.parameters)return S.parameters;var Q=S.ctorParameters;return Q&&Q!==c.ctorParameters?(c=typeof Q==="function"?Q():Q,S=c.map(function(f){return f&&f.type}),c=c.map(function(f){return f&&yPY(f.decorators)}),this._zipTypesAndAnnotations(S,c)):VpH(this._reflect)&&VpH(this._reflect.getOwnMetadata)&&(c=this._reflect.getOwnMetadata("parameters",S),(Q=this._reflect.getOwnMetadata("design:paramtypes",S))||
c)?this._zipTypesAndAnnotations(Q,c):Array(S.length).fill(void 0)};
_.J.parameters=function(S){if(!S.prototype)return[];var c=Object.getPrototypeOf(S.prototype).constructor;(S=this._ownParameters(S,c))||c===Object||(S=this.parameters(c));return S||[]};
_.J._ownAnnotations=function(S,c){if(S.annotations&&S.annotations!==c.annotations)return S=S.annotations,typeof S==="function"&&S.annotations&&(S=S.annotations),S;if(S.decorators&&S.decorators!==c.decorators)return yPY(S.decorators);if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("annotations",S)};
_.J.annotations=function(S){var c=Object.getPrototypeOf(S.prototype).constructor;S=this._ownAnnotations(S,c)||[];return(c!==Object?this.annotations(c):[]).concat(S)};
_.J._ownPropMetadata=function(S,c){if(S.propMetadata&&S.propMetadata!==c.propMetadata)return S=S.propMetadata,typeof S==="function"&&S.propMetadata&&(S=S.propMetadata),S;if(S.propDecorators&&S.propDecorators!==c.propDecorators){var Q=S.propDecorators,f={};Object.keys(Q).forEach(function(U){f[U]=yPY(Q[U])});
return f}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",S)};
_.J.propMetadata=function(S){var c=Object.getPrototypeOf(S.prototype).constructor,Q={};if(c!==Object){var f=this.propMetadata(c);Object.keys(f).forEach(function(a){Q[a]=f[a]})}var U=this._ownPropMetadata(S,c);
U&&Object.keys(U).forEach(function(a){var X=[];Q.hasOwnProperty(a)&&X.push.apply(X,_.Hs(Q[a]));X.push.apply(X,_.Hs(U[a]));Q[a]=X});
return Q};
_.J.getter=function(S){return function(c){return c[S]}};
_.J.method=function(S){return function(c,Q){if(!c[S])throw Error("Ze`"+S);return c[S].apply(c,Q)}};var mKs=function(){};var S2J=function(S){this.reflectionCapabilities=S};
_.C(S2J,mKs);_.J=S2J.prototype;_.J.factory=function(S){return this.reflectionCapabilities.factory(S)};
_.J.parameters=function(S){return this.reflectionCapabilities.parameters(S)};
_.J.annotations=function(S){return this.reflectionCapabilities.annotations(S)};
_.J.propMetadata=function(S){return this.reflectionCapabilities.propMetadata(S)};
_.J.getter=function(S){return this.reflectionCapabilities.getter(S)};
_.J.method=function(S){return this.reflectionCapabilities.method(S)};var a$r=new S2J(new ozs);var Gp=function(S,c){this.token=S;this.id=c;if(S===void 0||S===null)throw Error("df");};
_.Rh.Object.defineProperties(Gp.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return ux(this.token)}}});
_.Rh.Object.defineProperties(Gp,{JSC$9744_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return lx.JSC$9748_numberOfKeys}}});
var cai=function(){this._allKeys=new Map};
cai.prototype.get=function(S){if(S instanceof Gp)return S;if(this._allKeys.has(S))return this._allKeys.get(S);var c=new Gp(S,Gp.JSC$9744_numberOfKeys);this._allKeys.set(S,c);return c};
_.Rh.Object.defineProperties(cai.prototype,{JSC$9748_numberOfKeys:{configurable:!0,enumerable:!0,get:function(){return this._allKeys.size}}});
var lx=new cai;var Crz=function(S,c,Q){this.key=S;this.optional=c;this.visibility=Q},XlT=function(S){return new Crz(S,!1,null)},zdx=[],BOp=function(S,c,Q){this.key=S;
this.resolvedFactories=c;this.multiProvider=Q},x1x=function(S,c,Q,f){this.factory=S;
this.dependencies=c;this.providerClass=Q;this.providerValue=f};var Wx={},g9=function(S,c){this.constructedKeyIds={};this.providers=[];this.keyIds=[];this.objs=[];this.keyIdToIndex=new Map;this.parent=c===void 0?null:c;S=_.A(S);for(c=S.next();!c.done;c=S.next())this.addProvider(c.value)};
_.J=g9.prototype;_.J.addProvider=function(S){this.keyIdToIndex.set(S.key.id,this.keyIds.length);this.providers.push(S);this.keyIds.push(S.key.id);this.objs.push(Wx)};
_.J.resolve=function(S,c){c=c===void 0?Vws:c;return this._getByKey(lx.get(jB(S)),null,c)};
_.J._new=function(S){if(this.constructedKeyIds[S.key.id])throw f$p(this,S.key);this.constructedKeyIds[S.key.id]=!0;return this._instantiateProvider(S)};
_.J._instantiateProvider=function(S){if(S.multiProvider){for(var c=Array(S.resolvedFactories.length),Q=0;Q<S.resolvedFactories.length;++Q)c[Q]=this._instantiate(S,S.resolvedFactories[Q]);return c}return this._instantiate(S,S.resolvedFactories[0])};
_.J._instantiate=function(S,c){var Q=this,f=c.factory;try{var U=c.dependencies.map(function(X){return Q._getByReflectiveDependency(X)})}catch(X){throw X.addKey&&X.addKey(this,S.key),X;
}try{var a=f.apply(null,_.Hs(U))}catch(X){throw U1r(this,X,S.key);}return a};
_.J._getByReflectiveDependency=function(S){return this._getByKey(S.key,S.visibility,S.optional?null:Vws)};
_.J._getByKey=function(S,c,Q){return S===QZh?this:c instanceof l$x?this._getByKeySelf(S,Q):this._getByKeyDefault(S,Q,c)};
_.J._getObjByKeyId=function(S){for(var c=0;c<this.keyIds.length;c++)if(this.keyIds[c]===S)return this.objs[c]===Wx&&(this.objs[c]=this._new(this.providers[c])),this.objs[c];return Wx};
_.J._throwOrNull=function(S,c){if(c!==Vws)return c;throw QlT(this,S);};
_.J._getByKeySelf=function(S,c){var Q=this._getObjByKeyId(S.id);return Q!==Wx?Q:this._throwOrNull(S,c)};
_.J._getByKeyDefault=function(S,c,Q){for(var f=Q=Q instanceof YRT?this.parent:this;Q instanceof g9;){var U=Q._getObjByKeyId(S.id);if(U!==Wx)return U;Q=Q.parent}U=void 0;if(Q!==null)try{var a=Q.resolve(S.token,c);if(a!==Wx)return a}catch(X){U=X}if(!(f instanceof g9&&D1z(S.token))){if(U)throw U;return this._throwOrNull(S,c)}for(a=f;a.parent instanceof g9;)a=a.parent;a.addProvider(I$T({provide:S.token,useClass:S.token}));return a.resolve(S.token,c)};
_.J.toString=function(){return this.displayName};
_.Rh.Object.defineProperties(g9.prototype,{displayName:{configurable:!0,enumerable:!0,get:function(){return"ReflectiveInjector(providers: ["+Hxp(this,function(S){return' "'+S.key.displayName+'" '}).join(", ")+"])"}}});
var QZh=lx.get(jB(Roe));(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 fLs=window.XRegExp;var UoH=-1,Ja$=function(S){addEventListener("pageshow",function(c){c.persisted&&(UoH=c.timeStamp,S(c))},!0)};var Aal=function(S,c,Q){var f=aLe,U,a;return function(X){if(c.value>=0&&(X||Q)){var z;if((a=c.value-((z=U)!=null?z:0))||U===void 0)U=c.value,c.delta=a,X=c.value,c.rating=X>f[1]?"poor":X>f[0]?"needs-improvement":"good",S(c)}}};var X3e=function(S){requestAnimationFrame(function(){return requestAnimationFrame(function(){return S()})})};var O4p=function(){var S=performance.getEntriesByType("navigation")[0];if(S&&S.responseStart>0&&S.responseStart<performance.now())return S};var zD_=function(){var S,c;return(c=(S=O4p())==null?void 0:S.activationStart)!=null?c:0};var xoe=function(){var S=S===void 0?-1:S;var c=O4p(),Q="navigate";UoH>=0?Q="back-forward-cache":c&&(document.prerendering||zD_()>0?Q="prerender":document.wasDiscarded?Q="restore":c.type&&(Q=c.type.replace(/_/g,"-")));return{name:"LCP",value:S,rating:"good",delta:0,entries:[],id:"v5-"+Date.now()+"-"+(Math.floor(Math.random()*(9E12-1))+1E12),navigationType:Q}};var hdZ=new WeakMap;var FZT=function(S){var c=c===void 0?{}:c;try{if(PerformanceObserver.supportedEntryTypes.includes("largest-contentful-paint")){var Q=new PerformanceObserver(function(f){Promise.resolve().then(function(){S(f.getEntries())})});
Q.observe(Object.assign({},{type:"largest-contentful-paint",buffered:!0},c));return Q}}catch(f){}};var Bjz=function(S){var c=!1;return function(){c||(S(),c=!0)}};var es=-1,ILH=function(S){document.visibilityState==="hidden"&&es>-1&&(es=S.type==="visibilitychange"?S.timeStamp:0,removeEventListener("visibilitychange",ILH,!0),removeEventListener("prerenderingchange",ILH,!0))},nds=function(){addEventListener("visibilitychange",ILH,!0);
addEventListener("prerenderingchange",ILH,!0)},b4i=function(){if(es<0){var S=zD_(),c,Q;
es=(Q=document.prerendering?void 0:(c=globalThis.performance.getEntriesByType("visibility-state").filter(function(f){return f.name==="hidden"&&f.startTime>S})[0])==null?void 0:c.startTime)!=null?Q:document.visibilityState!=="hidden"||document.prerendering?Infinity:0;
nds();Ja$(function(){setTimeout(function(){es=document.visibilityState!=="hidden"||document.prerendering?Infinity:0;nds()})})}return{get firstHiddenTime(){return es}}};var Nji=function(S){document.prerendering?addEventListener("prerenderingchange",function(){return S()},!0):S()};var KZd=function(S){var c=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?S():(S=Bjz(S),document.addEventListener("visibilitychange",S,{once:!0}),c(function(){S();document.removeEventListener("visibilitychange",S)}))};var plr=function(){};
plr.prototype._processEntry=function(S){var c;(c=this._onBeforeProcessingEntry)==null||c.call(this,S)};var aLe=[2500,4E3],UtR=function(S){var c=c===void 0?{}:c;Nji(function(){var Q=b4i(),f=xoe(),U=qRp(c),a=function(b){c.reportAllChanges||(b=b.slice(-1));b=_.A(b);for(var N=b.next();!N.done;N=b.next())N=N.value,U._processEntry(N),N.startTime<Q.firstHiddenTime&&(f.value=Math.max(N.startTime-zD_(),0),f.entries=[N],z())},X=FZT(a);
if(X){var z=Aal(S,f,c.reportAllChanges);for(var x=Bjz(function(){a(X.takeRecords());X.disconnect();z(!0)}),I=_.A(["keydown",
"click","visibilitychange"]),n=I.next();!n.done;n=I.next())addEventListener(n.value,function(){return KZd(x)},{capture:!0,
once:!0});Ja$(function(b){f=xoe();z=Aal(S,f,c.reportAllChanges);X3e(function(){f.value=performance.now()-b.timeStamp;z(!0)})})}})};var $oi;var uid;_.y=function(){return uid!==void 0?uid:uid=document.createElement("template")};
document.head.appendChild(_.y().content);var jZd;_.DI({_template:function(){if(jZd!==void 0)return jZd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;$oi===void 0&&($oi=document.createElement("template"));var f=$oi;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return jZd=S},
is:"tp-yt-app-toolbar"});var lLh;var Y2e;_.k1=function(){};
_.k1=_.DI({_template:function(){if(Y2e!==void 0)return Y2e;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;lLh===void 0&&(lLh=document.createElement("template"));var f=lLh;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return Y2e=S},
is:"tp-yt-iron-a11y-announcer",properties:{mode:{type:String,value:"polite"},timeout:{type:Number,value:150},_text:{type:String,value:""}},created:function(){_.k1.instance||(_.k1.instance=this);document.addEventListener("iron-announce",this._onIronAnnounce.bind(this))},
announce:function(S){this._text===S&&(S+="\u00a0");this._text="";this.async(function(){this._text=S},this.timeout)},
_onIronAnnounce:function(S){S.detail&&S.detail.text&&this.announce(S.detail.text)}});
_.k1.instance=null;_.k1.requestAvailability=function(){_.k1.instance||(_.k1.instance=document.createElement("tp-yt-iron-a11y-announcer"));document.body?document.body.appendChild(_.k1.instance):document.addEventListener("load",function(){document.body.appendChild(_.k1.instance)})};var C8J;var H4i;/*

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

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 r9,sZu,Myu;r9=Element.prototype;sZu=r9.matches||r9.matchesSelector||r9.mozMatchesSelector||r9.msMatchesSelector||r9.oMatchesSelector||r9.webkitMatchesSelector;Myu=function(){};
_.Z4u=function(S){var c=i4z,Q=[];return c._collectTabbableNodes(S,Q)?c._sortByTabIndex(Q):Q};
_.J=Myu.prototype;_.J._normalizedTabIndex=function(S){return(sZu.call(S,"input, select, textarea, button, object")?sZu.call(S,":not([disabled])"):sZu.call(S,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(S=S.getAttribute("tabindex")||0,Number(S)):-1};
_.J._collectTabbableNodes=function(S,c){if(S.nodeType!==Node.ELEMENT_NODE||!this._isVisible(S))return!1;var Q=this._normalizedTabIndex(S),f=Q>0;Q>=0&&c.push(S);if(S.localName==="content"||S.localName==="slot")Q=_.YU(S).getDistributedNodes();else{var U;Q=((U=_.YU(S).shadowRoot)!=null?U:_.YU(S.root||S)).children}for(S=0;S<Q.length;S++)f=this._collectTabbableNodes(Q[S],c)||f;return f};
_.J._isVisible=function(S){var c=S.style;return c.visibility!=="hidden"&&c.display!=="none"?(c=window.getComputedStyle(S),c.visibility!=="hidden"&&c.display!=="none"):!1};
_.J._sortByTabIndex=function(S){var c=S.length;if(c<2)return S;var Q=Math.ceil(c/2);c=this._sortByTabIndex(S.slice(0,Q));S=this._sortByTabIndex(S.slice(Q));return this._mergeSortByTabIndex(c,S)};
_.J._mergeSortByTabIndex=function(S,c){for(var Q=[];S.length>0&&c.length>0;)this._hasLowerTabOrder(S[0],c[0])?Q.push(c.shift()):Q.push(S.shift());return Q.concat(S,c)};
_.J._hasLowerTabOrder=function(S,c){S=Math.max(S.tabIndex,0);c=Math.max(c.tabIndex,0);return S===0||c===0?c>S:S>c};
var i4z=new Myu;var Gsz;var WZs;_.DI({_template:function(){if(WZs!==void 0)return WZs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Gsz===void 0&&(Gsz=document.createElement("template"));var f=Gsz;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return WZs=S},
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&&_.YU(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.YU(this.parentNode).removeChild(this)},
_onTransitionend:function(S){S&&S.target===this&&this.complete()},
_openedChanged:function(S){S?this.prepare():(S=window.getComputedStyle(this),S.transitionDuration!=="0s"&&S.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 d9=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;qm(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)};
d9.prototype._bringOverlayAtIndexToFront=function(S){var c=this._overlays[S];if(c){var Q=this._overlays.length-1,f=this._overlays[Q];f&&this._shouldBeBehindOverlay(c,f)&&Q--;if(!(S>=Q)){f=Math.max(this._getZ(_.gdi(this)),this._minimumZ);for(this._getZ(c)<=f&&this._applyOverlayZ(c,f);S<Q;)this._overlays[S]=this._overlays[S+1],S++;this._overlays[Q]=c}}};
d9.prototype.addOverlay=function(S){var c=this._overlays.indexOf(S);if(c>=0)this._bringOverlayAtIndexToFront(c);else{c=this._overlays.length;var Q=this._overlays[c-1],f=Math.max(this._getZ(Q),this._minimumZ),U=this._getZ(S);Q&&this._shouldBeBehindOverlay(S,Q)&&(this._applyOverlayZ(Q,f),c--,f=Math.max(this._getZ(this._overlays[c-1]),this._minimumZ));U<=f&&this._applyOverlayZ(S,f);this._overlays.splice(c,0,S)}this.trackBackdrop()};
d9.prototype.removeOverlay=function(S){S=this._overlays.indexOf(S);S!==-1&&(this._overlays.splice(S,1),this.trackBackdrop())};
_.gdi=function(S){return S._overlays[S._overlays.length-1]};
_.J=d9.prototype;_.J.trackBackdrop=function(){var S=this._overlayWithBackdrop();if(S||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(S)-1,this.backdropElement.opened=!!S,this.backdropElement.prepare()};
_.J._overlayWithBackdrop=function(){for(var S=this._overlays.length-1;S>=0;S--)if(this._overlays[S].withBackdrop)return this._overlays[S]};
_.J._getZ=function(S){var c=this._minimumZ;if(S){var Q,f,U=Number(((Q=S.hostElement)!=null?Q:S).style.zIndex||window.getComputedStyle((f=S.hostElement)!=null?f:S).zIndex);U===U&&(c=U)}return c};
_.J._setZ=function(S,c){var Q;((Q=S.hostElement)!=null?Q:S).style.zIndex=c};
_.J._applyOverlayZ=function(S,c){this._setZ(S,c+2)};
_.J._overlayInPath=function(S){S=S||[];for(var c=0;c<S.length;c++){var Q=void 0;if(((Q=S[c].polymerController)!=null?Q:S[c])._manager===this)return S[c]}};
_.J._onCaptureClick=function(S){var c=this._overlays.length-1;if(c!==-1)for(var Q=_.YU(S).path,f,U;(f=this._overlays[c])&&this._overlayInPath(Q)!==((U=f.hostElement)!=null?U:f);)if(f._onCaptureClick(S),f.allowClickThrough)c--;else break};
_.J._onCaptureFocus=function(S){var c=_.gdi(this);c&&c._onCaptureFocus(S)};
_.J._onCaptureKeyDown=function(S){var c=_.gdi(this);c&&(_.lc.keyboardEventMatchesKeys(S,"esc")?c._onCaptureEsc(S):_.lc.keyboardEventMatchesKeys(S,"tab")&&c._onCaptureTab(S))};
_.J._shouldBeBehindOverlay=function(S,c){return!S.alwaysOnTop&&c.alwaysOnTop&&!c.contains(S)};
_.Rh.Object.defineProperties(d9.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 S=document.activeElement;S&&S instanceof Element!==!1||(S=document.body);for(;S.root&&_.YU(S.root).activeElement;)S=_.YU(S.root).activeElement;return S}}});
_.vx=new d9;var TOT=0,wlR=0,slY=null,MWT=[],CP=["wheel","mousewheel","DOMMouseScroll"],ixp;_.u("web_no_lock_on_touchstart_killswitch")&&(CP.push("touchstart"),CP.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;_.Px={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:_.vx},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var S;return this._focusedChild||_.YU((S=this.hostElement)!=null?S:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var S;return _.Z4u((S=this.hostElement)!=null?S: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 S;this._observer=_.YU((S=this.hostElement)!=null?S:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var S;_.YU((S=this.hostElement)!=null?S:this).unobserveNodes(this._observer)}this._observer=null;for(var c in this.__rafs)this.__rafs[c]!==null&&cancelAnimationFrame(this.__rafs[c]);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(S){this.fire("iron-overlay-canceled",S,{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 S;((S=this.hostElement)!=null?S:this).style.outline="none";var c;((c=this.hostElement)!=null?c:this).style.display="none"}},
_openedChanged:function(S){if(S){var c;((c=this.hostElement)!=null?c:this).removeAttribute("aria-hidden")}else{var Q;((Q=this.hostElement)!=null?Q: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 S;if(this.withBackdrop&&!((S=this.hostElement)!=null?S:this).hasAttribute("tabindex")){var c;((c=this.hostElement)!=null?c:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var Q;((Q=this.hostElement)!=null?Q: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 S;((S=this.hostElement)!=null?S:this).style.display="none";var c;((c=this.hostElement)!=null?c:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var S,c;((S=this.hostElement)!=null?S:this).style.transition=((c=this.hostElement)!=null?c:this).style.webkitTransition="none";var Q,f;((Q=this.hostElement)!=null?Q:this).style.transform=((f=this.hostElement)!=null?f:this).style.webkitTransform="none";var U;((U=this.hostElement)!=null?U:this).style.display=""},
_finishPositioning:function(){var S;((S=this.hostElement)!=null?S:this).style.display="none";this.scrollTop=this.scrollTop;var c,Q;((c=this.hostElement)!=null?c:this).style.transition=((Q=this.hostElement)!=null?Q:this).style.webkitTransition="";var f,U;((f=this.hostElement)!=null?f:this).style.transform=((U=this.hostElement)!=null?U:this).style.webkitTransform="";var a;((a=this.hostElement)!=null?a:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var S=this._manager.deepActiveElement,c;if(!(c=S===document.body))a:{for(;S;S=S.assignedSlot||S.parentNode||S.host)if(S===this){c=!0;break a}c=!1}c&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(S){this.noCancelOnOutsideClick||this.cancel(S)},
_onCaptureFocus:function(S){if(this.withBackdrop){var c=_.YU(S).path;c.indexOf(this)===-1?(S.stopPropagation(),this._applyFocus()):this._focusedChild=c[0]}},
_onCaptureEsc:function(S){this.noCancelOnEscKey||this.cancel(S)},
_onCaptureTab:function(S){if(this.withBackdrop){this.__ensureFirstLastFocusables();var c=S.shiftKey,Q=c?this.__firstFocusableNode:this.__lastFocusableNode;c=c?this.__lastFocusableNode:this.__firstFocusableNode;if(Q===c)Q=!0;else{var f=this._manager.deepActiveElement;Q=f===Q||f===this}Q&&(S.preventDefault(),this._focusedChild=c,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 S=this._focusableNodes;this.__firstFocusableNode=S[0];this.__lastFocusableNode=S[S.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(S,c){var Q=this.__rafs;Q[S]!==null&&cancelAnimationFrame(Q[S]);Q[S]=requestAnimationFrame(function(){Q[S]=null;c.call(this)}.bind(this))},
__updateScrollObservers:function(S,c,Q){S&&c&&this.__isValidScrollAction(Q)?(Q==="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),ixp=_._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()):(S=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),S!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(S,1),ixp=_._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(Zm)for(var S=this;S;)S.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&S.host&&this.__rootNodes.push(S),S=S.host||S.assignedSlot||S.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(c){c.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(S){S.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(S){return S==="lock"||S==="refit"||S==="cancel"},
__onCaptureScroll:function(S){if(!(this.__isAnimating||_.YU(S).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(S)}},
__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)}};
_.LO=[w3H,_.w9,_.Px];_.DI({_template:function(){if(q2p!==void 0)return q2p;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;hDT===void 0&&(hDT=document.createElement("template"));var f=hDT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return q2p=S},
is:"tp-yt-iron-dropdown",behaviors:[_.Y1,_.lc,_.LO,$Kl],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 S=_.YU(this.$.content).getDistributedNodes(),c=0,Q=S.length;c<Q;c++)if(S[c].nodeType===Node.ELEMENT_NODE)return S[c]},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(),_.Px._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.Px._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.Px._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var S=this.containedElement,c=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),Q=0;Q<c.length;Q++)c[Q].node=S;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(S){this._readied&&(S?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var S=this.focusTarget||this.containedElement;S&&this.opened&&!this.noAutoFocus?S.focus():_.Px._applyFocus.apply(this,arguments)}});var eDJ;var ksH;/*

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 raz=new _.pO({type:"iconset"});
_.DI({_template:function(){if(ksH!==void 0)return ksH;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;eDJ===void 0&&(eDJ=document.createElement("template"));
var f=eDJ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return ksH=S},
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(S){S=(S||"").split(":");this._iconName=S.pop();this._iconsetName=S.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&&_.YU(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=raz.byKey(this._iconsetName)){var S=this._iconset.applyIcon(this,this._iconName,this.theme);S&&S.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,_.YU(this.root).appendChild(this._img)}});var doJ;var vdJ;_.DI({_template:function(){if(vdJ!==void 0)return vdJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;doJ===void 0&&(doJ=document.createElement("template"));var f=doJ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return vdJ=S},
is:"tp-yt-iron-input",behaviors:[_.q9],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(){_.k1.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.YU(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.YU(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 S=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":S=/[0-9.,e-]/}return S},_bindValueChanged:function(S,c){c&&(S===void 0?c.value=null:S!==c.value&&(this.inputElement.value=S),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:S}))},
_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(S){var c=S.keyCode==19||S.keyCode==20||S.keyCode==45||S.keyCode==46||S.keyCode==144||S.keyCode==145||S.keyCode>32&&S.keyCode<41||S.keyCode>111&&S.keyCode<124;return!(S.keyCode==8||S.keyCode==9||S.keyCode==13||S.keyCode==27)&&!(S.charCode==0&&c)},
_onKeypress:function(S){if(this.allowedPattern||this.inputElement.type==="number"){var c=this._patternRegExp;if(c&&!(S.metaKey||S.ctrlKey||S.altKey)){this._patternAlreadyChecked=!0;var Q=String.fromCharCode(S.charCode);this._isPrintable(S)&&!c.test(Q)&&(S.preventDefault(),this._announceInvalidCharacter("Invalid character "+Q+" not entered."))}}},
_checkPatternValidity:function(){var S=this._patternRegExp;if(!S)return!0;for(var c=0;c<this.inputElement.value.length;c++)if(!S.test(this.inputElement.value[c]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var S=this.inputElement.checkValidity();S&&(this.required&&this.bindValue===""?S=!1:this.hasValidator()&&(S=_.q9.validate.call(this,this.bindValue)));this.invalid=!S;this.fire("iron-input-validate");return S},
_announceInvalidCharacter:function(S){this.fire("iron-announce",{text:S})},
_computeValue:function(S){return S}});var P8d;var LZJ;var Ed$=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),tyl=Ed$&&Ed$[1]>=8;
_.DI({_template:function(){if(LZJ!==void 0)return LZJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;P8d===void 0&&(P8d=document.createElement("template"));var f=P8d;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return LZJ=S},
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:[oFc,_.w9,_.Kdl,Aze],_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 _.YU(_.YU(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var S=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,S-this._physicalCount)},set _virtualStart(S){S=this._clamp(S,0,this._maxVirtualStart);this.grid&&(S-=S%this._itemsPerRow);this._virtualStartVal=S},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(S){S%=this._physicalCount;S<0&&(S=this._physicalCount+S);this.grid&&(S-=S%this._itemsPerRow);this._physicalStartVal=S},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(S){this._physicalCountVal=S},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 S=this._firstVisibleIndexVal;if(S==null){var c=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
S=this._iterateItems(function(Q,f){c+=this._getPhysicalSizeIncrement(Q);if(c>this._scrollPosition)return this.grid?f-f%this._itemsPerRow:f;if(this.grid&&this._virtualCount-1===f)return f-f%this._itemsPerRow})||0}return S},
get lastVisibleIndex(){var S=this._lastVisibleIndexVal;if(S==null){if(this.grid)S=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var c=this._physicalTop+this._scrollOffset;this._iterateItems(function(Q,f){c<this._scrollBottom&&(S=f);c+=this._getPhysicalSizeIncrement(Q)})}this._lastVisibleIndexVal=S}return S},
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,_.Dc);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(S){this.style.webkitOverflowScrolling=S===this?"touch":"";this.style.overflowY=S===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.Dc)},
updateViewportBoundaries:function(){var S=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(S["padding-top"],10);this._isRTL=S.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var S=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),c=S-this._scrollPosition,Q=c>=0;this._scrollPosition=S;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(c)>this._physicalSize&&this._physicalSize>0?(c-=this._scrollOffset,Q=Math.round(c/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=Q,this._physicalStart+=Q,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(S=this._getReusables(Q),Q?(this._physicalTop=S.physicalTop,this._virtualStart+=S.indexes.length,this._physicalStart+=S.indexes.length):(this._virtualStart=this._virtualStart-S.indexes.length,this._physicalStart=this._physicalStart-S.indexes.length),this._update(S.indexes,Q?null:S.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),sP))},
_getReusables:function(S){var c=[],Q=this._hiddenContentSize*this._ratio,f=this._virtualStart,U=this._virtualEnd,a=this._physicalCount,X=this._physicalTop+this._scrollOffset;var z=this._physicalBottom+this._scrollOffset;var x=this._scrollPosition,I=this._scrollBottom;if(S){var n=this._physicalStart;z=x-X}else n=this._physicalEnd,z-=I;for(;;){var b=this._getPhysicalSizeIncrement(n);z-=b;if(c.length>=a||z<=Q)break;if(S){if(U+c.length+1>=this._virtualCount)break;if(X+b>=x-this._scrollOffset)break;c.push(n);
X+=b;n=(n+1)%a}else{if(f-c.length<=0)break;if(X+this._physicalSize-b<=I)break;c.push(n);X-=b;n=n===0?a-1:n-1}}return{indexes:c,physicalTop:X-this._scrollOffset}},
_update:function(S,c){if(!(S&&S.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(S);this._updateMetrics(S);if(c)for(;c.length;)S=c.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(S);this._positionItems();this._updateScrollerSize()}},
_createPool:function(S){this._ensureTemplatized();var c,Q=Array(S);for(c=0;c<S;c++){var f=this.stamp(null);Q[c]=f.root.querySelector("*");this._itemsParent.appendChild(f.root)}return Q},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(S){S=this._clamp(this._physicalCount+S,3,this._virtualCount-this._virtualStart);S=this._convertIndexToCompleteRow(S);if(this.grid){var c=S%this._itemsPerRow;c&&S-c<=this._physicalCount&&(S+=this._itemsPerRow);S-=c}S-=this._physicalCount;c=Math.round(this._physicalCount*.5);if(!(S<0)){if(S>0){c=window.performance.now();[].push.apply(this._physicalItems,this._createPool(S));for(var Q=0;Q<S;Q++)this._physicalSizes.push(0);this._physicalCount+=S;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=S);this._update();this._templateCost=(window.performance.now()-c)/S;c=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||c===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,c)),dmh):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,c),sP))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var S=this._getReusables(!0);this._physicalTop=S.physicalTop;this._virtualStart+=S.indexes.length;this._physicalStart+=S.indexes.length;this._update(S.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 S={__key__:!0};S[this.as]=!0;S[this.indexAs]=!0;S[this.selectedAs]=!0;S.tabIndex=!0;this._instanceProps=S;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(S,c){typeof c!=="undefined"&&(this.notifyResize(),_.Fg(),S&&this._updateGridMetrics())},
_itemsChanged:function(S){if(S.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,
_.Dc);else if(S.path==="items.splices"){this._adjustVirtualIndex(S.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(S.value.indexSplices.some(function(Q){return Q.addedCount>0||Q.removed.length>0})){var c=this._getActiveElement();
this.contains(c)&&c.blur()}S=S.value.indexSplices.some(function(Q){return Q.index+Q.addedCount>=this._virtualStart&&Q.index<=this._virtualEnd},this);
this._isClientFull()&&!S||this._debounce("_render",this._render,_.Dc)}else S.path!=="items.length"&&this._forwardItemPath(S.path,S.value)},
_forwardItemPath:function(S,c){S=S.slice(6);var Q=S.indexOf(".");Q===-1&&(Q=S.length);var f,U=this.modelForElement(this._offscreenFocusedItem),a=parseInt(S.substring(0,Q),10);if(f=this._isIndexRendered(a)){var X=this._getPhysicalIndex(a);var z=this.modelForElement(this._physicalItems[X])}else U&&(z=U);z&&z[this.indexAs]===a&&(S=S.substring(Q+1),S=this.as+(S?"."+S:""),z._setPendingPropertyOrPath(S,c,!1,!0),z._flushProperties&&z._flushProperties(),f&&(this._updateMetrics([X]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(S){S.forEach(function(c){c.removed.forEach(this._removeItem,this);c.index<this._virtualStart&&(c=Math.max(c.addedCount-c.removed.length,c.index-this._virtualStart),this._virtualStart+=c,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=c))},this)},
_removeItem:function(S){this.$.selector.deselect(S);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===S&&this._removeFocusedItem()},
_iterateItems:function(S,c){var Q,f;if(arguments.length===2&&c)for(f=0;f<c.length;f++){var U=c[f];var a=this._computeVidx(U);if((Q=S.call(this,U,a))!=null)return Q}else{U=this._physicalStart;for(a=this._virtualStart;U<this._physicalCount;U++,a++)if((Q=S.call(this,U,a))!=null)return Q;for(U=0;U<this._physicalStart;U++,a++)if((Q=S.call(this,U,a))!=null)return Q}},
_computeVidx:function(S){return S>=this._physicalStart?this._virtualStart+(S-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+S},
_assignModels:function(S){this._iterateItems(function(c,Q){var f=this._physicalItems[c],U=this.items&&this.items[Q];if(U!=null){var a=this.modelForElement(f);a.__key__=null;this._forwardProperty(a,this.as,U);this._forwardProperty(a,this.selectedAs,this.$.selector.isSelected(U));this._forwardProperty(a,this.indexAs,Q);this._forwardProperty(a,"tabIndex",this._focusedVirtualIndex===Q?0:-1);this._physicalIndexForKey[a.__key__]=c;a._flushProperties&&a._flushProperties(!0);f.removeAttribute("hidden")}else f.setAttribute("hidden",
"")},S)},
_updateMetrics:function(S){_.Fg();var c=0,Q=0,f=this._physicalAverageCount,U=this._physicalAverage;this._iterateItems(function(a){Q+=this._physicalSizes[a];this._physicalSizes[a]=this._physicalItems[a].offsetHeight;c+=this._physicalSizes[a];this._physicalAverageCount+=this._physicalSizes[a]?1:0},S);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(Q=this._itemsPerRow===1?Q:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+c-Q,this._itemsPerRow=1);this._physicalAverageCount!==f&&(this._physicalAverage=Math.round((U*f+c)/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 S=this._physicalTop;if(this.grid){var c=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(Q,f){var U=Math.floor(f%this._itemsPerRow*this._itemWidth+c);this._isRTL&&(U*=-1);this.translate3d(U+"px",S+"px",0,this._physicalItems[Q]);this._shouldRenderNextRow(f)&&(S+=this._rowHeight)})}else this._iterateItems(function(Q){this.translate3d(0,S+"px",0,this._physicalItems[Q]);
S+=this._physicalSizes[Q]})},
_getPhysicalSizeIncrement:function(S){return this.grid?this._computeVidx(S)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[S]},
_shouldRenderNextRow:function(S){return S%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var S=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(S!==0){this._physicalTop=this._physicalTop-S;var c=this._scrollPosition;!tyl&&c>0&&this._resetScrollPosition(c-S)}},
_resetScrollPosition:function(S){this.scrollTarget&&S>=0&&(this._scrollPosition=this._scrollTop=S)},
_updateScrollerSize:function(S){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((S=(S=(S=S||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(S){return this.scrollToIndex(this.items.indexOf(S))},
scrollToIndex:function(S){if(!(typeof S!=="number"||S<0||S>this.items.length-1)&&(_.Fg(),this._physicalCount!==0)){S=this._clamp(S,0,this._virtualCount-1);if(!this._isIndexRendered(S)||S>=this._maxVirtualStart)this._virtualStart=this.grid?S-this._itemsPerRow*2:S-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var c=this._physicalStart,Q=this._virtualStart,f=0,U=this._hiddenContentSize;Q<S&&
f<=U;)f+=this._getPhysicalSizeIncrement(c),c=(c+1)%this._physicalCount,Q++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+f);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)},_.Dc)},
selectItem:function(S){return this.selectIndex(this.items.indexOf(S))},
selectIndex:function(S){if(!(S<0||S>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(S)){var c=this.modelForElement(this._physicalItems[this._getPhysicalIndex(S)]);c&&(c[this.selectedAs]=!0);this.updateSizeForIndex(S)}this.$.selector.selectIndex(S)}},
deselectItem:function(S){return this.deselectIndex(this.items.indexOf(S))},
deselectIndex:function(S){S<0||S>=this._virtualCount||(this._isIndexRendered(S)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(S)])[this.selectedAs]=!1,this.updateSizeForIndex(S)),this.$.selector.deselectIndex(S))},
toggleSelectionForItem:function(S){return this.toggleSelectionForIndex(this.items.indexOf(S))},
toggleSelectionForIndex:function(S){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(S):this.$.selector.isSelected(this.items[S]))?this.deselectIndex(S):this.selectIndex(S)},
clearSelection:function(){this._iterateItems(function(S){this.modelForElement(this._physicalItems[S])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(S){(S?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(S){var c=this.modelForElement(S.target);if(c){var Q=_.YU(S).path[0];S=this._getActiveElement();var f=this._physicalItems[this._getPhysicalIndex(c[this.indexAs])];if(Q.localName!=="input"&&Q.localName!=="button"&&Q.localName!=="select"){Q=c.tabIndex;c.tabIndex=-100;var U=S?S.tabIndex:-1;c.tabIndex=Q;S&&f!==S&&f.contains(S)&&U!==-100||this.toggleSelectionForItem(c[this.as])}}},
_multiSelectionChanged:function(S){this.clearSelection();this.$.selector.multi=S},
updateSizeForItem:function(S){return this.updateSizeForIndex(this.items.indexOf(S))},
updateSizeForIndex:function(S){if(!this._isIndexRendered(S))return null;this._updateMetrics([this._getPhysicalIndex(S)]);this._positionItems();return null},
_manageFocus:function(){var S=this._focusedVirtualIndex;S>=0&&S<this._virtualCount?this._isIndexRendered(S)?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(S){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(S/this._itemsPerRow)*this._itemsPerRow:S},
_isIndexRendered:function(S){return S>=this._virtualStart&&S<=this._virtualEnd},
_isIndexVisible:function(S){return S>=this.firstVisibleIndex&&S<=this.lastVisibleIndex},
_getPhysicalIndex:function(S){return(this._physicalStart+(S-this._virtualStart))%this._physicalCount},
focusItem:function(S){this._focusPhysicalItem(S)},
_focusPhysicalItem:function(S){if(!(S<0||S>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(S)||this.scrollToIndex(S);var c=this._physicalItems[this._getPhysicalIndex(S)],Q=this.modelForElement(c),f;Q.tabIndex=-100;c.tabIndex===-100&&(f=c);f||(f=_.YU(c).querySelector('[tabindex="-100"]'));Q.tabIndex=0;this._focusedVirtualIndex=S;f&&f.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 S=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var c=this.stamp(null);this._focusBackfillItem=c.root.querySelector("*");this._itemsParent.appendChild(c.root)}this._offscreenFocusedItem=this._physicalItems[S];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[S]=this._focusBackfillItem;this._focusedPhysicalIndex=S;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var S=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),c=this._physicalItems[S];if(c){var Q=this.modelForElement(c),f=this.modelForElement(this._offscreenFocusedItem);Q[this.as]===f[this.as]?(this._focusBackfillItem=c,Q.tabIndex=-1,this._physicalItems[S]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(S){S=this.modelForElement(S.target);var c=this.modelForElement(this._focusedItem),Q=this._offscreenFocusedItem!==null,f=this._focusedVirtualIndex;S&&(c===S?this._isIndexVisible(f)||this.scrollToIndex(f):(this._restoreFocusedItem(),c&&(c.tabIndex=-1),S.tabIndex=0,this._focusedVirtualIndex=f=S[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(f),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],Q&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(S){switch(S.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&S.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&&S.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(S)}},
_clamp:function(S,c,Q){return Math.min(Q,Math.max(c,S))},
_debounce:function(S,c,Q){this._debouncers=this._debouncers||{};this._debouncers[S]=_.Ak(this._debouncers[S],Q,c.bind(this));_.Xg(this._debouncers[S])},
_forwardProperty:function(S,c,Q){S._setPendingProperty(c,Q)},
_forwardHostPropV2:function(S,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Q){Q&&this.modelForElement(Q).forwardHostProp(S,c)},this)},
_notifyInstancePropV2:function(S,c,Q){rax(this.as,c)&&(S=S[this.indexAs],c==this.as&&(this.items[S]=Q),this.notifyPath(Fm(this.as,"items."+S,c),Q))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(S,c,Q){c.indexOf(this.as+".")===0&&this.notifyPath("items."+S.__key__+"."+c.slice(this.as.length+1),Q)},
_forwardParentPath:function(S,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Q){Q&&this.modelForElement(Q).notifyPath(S,c)},this)},
_forwardParentProp:function(S,c){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(Q){Q&&(this.modelForElement(Q)[S]=c)},this)},
_getActiveElement:function(){var S=this._itemsParent.node.domHost;return _.YU(S?S.root:document).activeElement},
_scrollTargetChanged:function(S,c){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(c)if(S==="document")this.scrollTarget=this._doc;else if(typeof S==="string"){var Q,f;this.scrollTarget=(c=(f=(Q=this.domHost)==null?void 0:Q.polymerController)!=null?f:this.domHost)&&c.$?c.$[S]:_.YU(this.ownerDocument).querySelector("#"+S)}else this._isValidScrollTarget()&&(this._oldScrollTarget=S,this._toggleScrollListener(this._shouldHaveListener,S))}});var Vyz;var RDd;var yad=function(S,c,Q,f){S-=Q;c-=f;return Math.sqrt(S*S+c*c)},od_=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
ZxY.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var GEY=function(S){S.maxRadius=0;S.mouseDownStart=0;S.mouseUpStart=0;S.xStart=0;S.yStart=0;S.xEnd=0;S.yEnd=0;S.containerMetrics=new ZxY(S.element)};
WCZ.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var S=od_()-this.mouseDownStart;this.mouseUpStart&&(S-=this.mouseUpElapsed);return S},get mouseUpElapsed(){return this.mouseUpStart?od_()-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 S=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(S*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-S/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 S=this.radius/(this.containerMetrics.size/2);var c=this.xNow-this.containerMetrics.width/2;var Q=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+c+"px, "+Q+"px)";this.waveContainer.style.transform="translate3d("+c+"px, "+Q+"px, 0)";this.wave.style.webkitTransform="scale("+S+","+S+")";this.wave.style.transform="scale3d("+S+","+S+",1)"},
downAction:function(S){var c=this.containerMetrics.width/2,Q=this.containerMetrics.height/2;GEY(this);this.mouseDownStart=od_();this.center?(this.xStart=c,this.yStart=Q):(this.xStart=S?S.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=S?S.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=c,this.yEnd=Q);S=this.containerMetrics;c=this.xStart;Q=this.yStart;this.maxRadius=Math.max(yad(c,Q,0,0),yad(c,Q,
S.width,0),yad(c,Q,0,S.height),yad(c,Q,S.width,S.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=od_())},
remove:function(){_.YU(_.YU(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.DI({_template:function(){if(RDd!==void 0)return RDd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;Vyz===void 0&&(Vyz=document.createElement("template"));var f=Vyz;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return RDd=S},
is:"tp-yt-paper-ripple",behaviors:[_.lc],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(){_.YU(this).parentNode.nodeType==11?this.keyEventTarget=_.YU(this).getOwnerRoot().host:this.keyEventTarget=_.YU(this).parentNode;var S=this.keyEventTarget;this.listen(S,"up","uiUpAction");this.listen(S,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(S){S.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var S=0;S<this.ripples.length;++S)if(!this.ripples[S].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(S){this.noink||this.downAction(S)},
downAction:function(S){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(S),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(S){this.noink||this.upAction(S)},
upAction:function(S){this.holdDown||(this.ripples.forEach(function(c){c.upAction(S)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var S=0;S<this.ripples.length;++S){var c=this.ripples[S];c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var S=new WCZ(this);_.YU(this.$.waves).appendChild(S.waveContainer);this.$.background.style.backgroundColor=S.color;this.ripples.push(S);this._setAnimating(!0);return S},
removeRipple:function(S){var c=this.ripples.indexOf(S);c<0||(this.ripples.splice(c,1),S.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var S;for(S=0;S<this.ripples.length;++S){var c=this.ripples[S];c.draw();this.$.background.style.opacity=c.outerOpacity;c.isOpacityFullyDecayed&&!c.isRestingAtMaxRadius&&this.removeRipple(c)}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(S,c){c!==void 0&&(S?this.downAction():this.upAction())}});var E$={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(S){CO._downHandler.call(this,S);this.pressed&&this.ensureRipple(S)},
ensureRipple:function(S){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var c=this._rippleContainer||this.root;c&&_.YU(c).appendChild(this._ripple);if(S){c=_.YU(this._rippleContainer||this);var Q=_.YU(S).rootTarget;c.deepContains(Q)&&this._ripple.uiDownAction(S)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(S){this.hasRipple()&&(this._ripple.noink=S)}};var mop={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 S=1;this.disabled?S=0:this.active||this.pressed?S=4:this.receivedFocusFromKeyboard&&(S=3);this._setElevation(S)},
_computeKeyboardClass:function(S){this.toggleClass("keyboard-focus",S)},
_spaceKeyDownHandler:function(S){CO._spaceKeyDownHandler.call(this,S);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(S){CO._spaceKeyUpHandler.call(this,S);this.hasRipple()&&this._ripple.uiUpAction()}},SeT=[A2d,
_.Y1,E$,mop];_.c8e={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(S){S&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=S)},
_createRipple:function(){var S=E$._createRipple();S.id="ink";S.setAttribute("center","");S.classList.add("circle");return S}};
_.Qil=[A2d,_.Y1,E$,_.c8e];_.feJ=[_.Qil,zoz,{_checkedChanged:function(){Ovd._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){E$._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var Use;var J8d;var aeh=function(){};
_.J=aeh.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._createRipple=function(){};
_.J._noinkChanged=function(){};
_.J._computeKeyboardClass=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setElevation=function(){};
aeh=_.DI({_template:function(){if(J8d!==void 0)return J8d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;Use===void 0&&(Use=document.createElement("template"));var f=Use;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return J8d=S},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[SeT],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?mop._calculateElevation.apply(this):this._setElevation(0)}});var A8z;var XKl;var OSd={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(S){_.u("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(S)},
_onDialogClickWrapped:function(S){_.u("dialog_behavior_no_tap_killswitch")||this._onDialogClick(S)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(S,c){c&&(S?(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(S){S?this.setAttribute("aria-modal","true"):this.removeAttribute("aria-modal")},
_updateClosingReasonConfirmed:function(S){this.closingReason=this.closingReason||{};this.closingReason.confirmed=S},
_onDialogClick:function(S){for(var c=_.YU(S).path,Q=0,f,U=c.indexOf((f=this.hostElement)!=null?f:this);Q<U;Q++)if(f=c[Q],f.hasAttribute&&(f.hasAttribute("dialog-dismiss")||f.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(f.hasAttribute("dialog-confirm"));this.close();S.stopPropagation();break}}},zBi=[_.LO,
OSd];var xsh=document.createElement("template");_.D(xsh,'<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(xsh.content);var Fwz=document.createElement("template");_.D(Fwz,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(Fwz.content);_.DI({_template:function(){if(XKl!==void 0)return XKl;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;A8z===void 0&&(A8z=document.createElement("template"));var f=A8z;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return XKl=S},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[zBi,$Kl],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 BJi;var Ied;_.DI({_template:function(){if(Ied!==void 0)return Ied;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;BJi===void 0&&(BJi=document.createElement("template"));var f=BJi;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return Ied=S},
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 S,c,Q;if(((S=window.ShadyDOM)==null?void 0:S.noPatch)!==!0&&((c=window.ShadyDOM)==null?void 0:c.noPatch)!=="on-demand"||((Q=this.__shady_parentNode)==null?void 0:Q.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(OSd)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var nad=_.oK(['<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>']),bSe=_.F1d(nad);bSe.setAttribute("style","display: none;");document.head.appendChild(bSe.content);var NJ$;var Kwd;var $sp;var uZJ;_.DI({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[s$],configure:function(S){var c=S.node,Q=c.getBoundingClientRect().height;return this._effect=new KeyframeEffect(c,[{height:Q/2+"px"},{height:Q+"px"}],this.timingFromConfig(S))}});
_.DI({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[s$],configure:function(S){var c=S.node,Q=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:Q/2+"px"},{width:Q+"px"}],this.timingFromConfig(S))}});
_.DI({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[s$],configure:function(S){var c=S.node,Q=c.getBoundingClientRect().width;return this._effect=new KeyframeEffect(c,[{width:Q+"px"},{width:Q-Q/20+"px"}],this.timingFromConfig(S))}});
_.DI({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[s$],configure:function(S){var c=S.node,Q=c.getBoundingClientRect().height;this.setPrefixedProperty(c,"transformOrigin","0 0");return this._effect=new KeyframeEffect(c,[{height:Q+"px",transform:"translateY(0)"},{height:Q/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(S))}});var te={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},jiz=function(){};
_.J=jiz.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._focusBlurHandler=function(){};
_.J._changedControlState=function(){};
_.J._setFocused=function(){};
jiz=_.DI({_template:function(){if(uZJ!==void 0)return uZJ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;$sp===void 0&&($sp=document.createElement("template"));var f=$sp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return uZJ=S},
is:"tp-yt-paper-menu-button",behaviors:[_.lc,_.Y1],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:te.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:te.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:te.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 S=_.YU(this.$.content).getDistributedNodes(),c=0,Q=S.length;c<Q;c++)if(S[c].nodeType===Node.ELEMENT_NODE)return S[c]},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(S,c){S?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):c!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(S){_.Y1._disabledChanged.apply(this,arguments);S&&this.opened&&this.close()},
__onIronOverlayCanceled:function(S){var c=this.$.trigger;_.YU(S.detail).path.indexOf(c)>-1&&S.preventDefault()}});
Object.keys(te).forEach(function(S){jiz[S]=te[S]});var lee=_.Hx.IronButtonState,Ye$=(0,_.j5)(HTMLElement);
_.DI({_template:function(){if(Kwd!==void 0)return Kwd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;NJ$===void 0&&(NJ$=document.createElement("template"));var f=NJ$;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return Kwd=S},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[lee,_.Y1,E$,_.DV,_.q9],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(S){var c=(0,_.Nm)(this);c.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:S});c.shadowRoot.appendChild(S);return Ye$.prototype._attachDom.call(this,S)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var S=this.contentElement;S&&S.selectedItem&&this._setSelectedItem(S.selectedItem)},
get contentElement(){for(var S=_.YU(this.$.content).getDistributedNodes(),c=0,Q=S.length;c<Q;c++)if(S[c].nodeType===Node.ELEMENT_NODE)return S[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(S){this._setSelectedItem(S.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(S){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S)===this&&this.open()},
_selectedItemChanged:function(S){var c="";S?c=S.label||S.getAttribute("label")||S.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(S,c){return c?c:S?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var S=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",S)},
_computeLabelClass:function(S,c,Q){var f="label";if(S)Q&&(f+=" label-is-hidden");else if(Q||c)f+=" label-is-floating";return f},
_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 C9u;var HSp;_.DI({is:"tp-yt-paper-icon-button",_template:function(){if(HSp!==void 0)return HSp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;C9u===void 0&&(C9u=document.createElement("template"));var f=C9u;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return HSp=S},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Qil],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(S,c){var Q=this.getAttribute("aria-label");Q&&c!=Q||this.setAttribute("aria-label",S)}});var Dsd;var pKd;_.VP=[A2d,_.Y1,{hostAttributes:{role:"option",tabindex:"0"}}];_.DI({_template:function(){if(pKd!==void 0)return pKd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;Dsd===void 0&&(Dsd=document.createElement("template"));var f=Dsd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return pKd=S},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.VP]});var hBe;var qeH;var TJJ={attached:function(){this.fire("addon-attached")},
update:function(){}};var wKd=1,sid=1,M9J=1,iS$=[_.Y1,_.lc,{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();!S5&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(S,c){S?S=S+" "+c:S=c;return S},
_onAddonAttached:function(S){S=_.YU(S).rootTarget;if(S.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,S.id);else{var c="paper-input-add-on-"+sid++;S.id=c;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,c)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(S){_.Y1._focusBlurHandler.call(this,S);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var S=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",S);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(S){try{var c=this.inputElement.selectionStart;this.value=S;this.inputElement.selectionStart=c;this.inputElement.selectionEnd=c}catch(Q){this.value=S}},
_computeAlwaysFloatLabel:function(S,c){return c||S},
_updateAriaLabelledBy:function(){var S=_.YU(this.root).querySelector("label");if(S){if(S.id)var c=S.id;else c="paper-input-label-"+wKd++,S.id=c;this._ariaLabelledBy=c}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+M9J++)},
_onChange:function(S){this.shadowRoot&&this.fire(S.type,{sourceEvent:S},{node:this,bubbles:S.bubbles,cancelable:S.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var S=document.activeElement;S instanceof HTMLElement&&S!==document.body&&S!==document.documentElement||this._focusableElement.focus()}}}];var ZSJ;var GIp;_.DI({_template:function(){if(GIp!==void 0)return GIp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;ZSJ===void 0&&(ZSJ=document.createElement("template"));var f=ZSJ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return GIp=S},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[TJJ],properties:{_charCounterStr:{type:String,value:"0"}},update:function(S){if(S.inputElement){S.value=S.value||"";var c=S.value.toString().length.toString();S.inputElement.hasAttribute("maxlength")&&(c+="/"+S.inputElement.getAttribute("maxlength"));this._charCounterStr=c}}});var WwT;var gal;_.DI({_template:function(){if(gal!==void 0)return gal;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;WwT===void 0&&(WwT=document.createElement("template"));var f=WwT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return gal=S},
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 AO(this.attrForValue)},get _inputElement(){return _.YU(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(S){this._addons||(this._addons=[]);S=S.target;this._addons.indexOf(S)===-1&&(this._addons.push(S),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(S){this._handleValueAndAutoValidate(S.target)},
_onValueChanged:function(S){var c=S.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,c.value===void 0||c.value===""))return;this._handleValueAndAutoValidate(S.target)},
_handleValue:function(S){var c=this._inputElementValue;c||c===0||S.type==="number"&&!S.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:S,value:c,invalid:this.invalid})},
_handleValueAndAutoValidate:function(S){this.autoValidate&&S&&(this.invalid=!(S.validate?S.validate(this._inputElementValue):S.checkValidity()));this._handleValue(S)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(S){if(this._addons)for(var c,Q=0;c=this._addons[Q];Q++)c.update(S)},
_computeInputContentClass:function(S,c,Q,f,U){var a="input-content";S?(U&&(a+=" label-is-hidden"),f&&!this.noUnfloatedLabelError&&(a+=" is-invalid")):(S=this.querySelector("label"),c||U?(a+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",f?a+=" is-invalid":Q&&(a+=" label-is-highlighted")):(S&&(this.$.labelAndInputContainer.style.position="relative"),f&&!this.noUnfloatedLabelError&&(a+=" is-invalid")));Q&&(a+=" focused");return a},
_computeUnderlineClass:function(S,c){var Q="underline";c?Q+=" is-invalid":S&&(Q+=" is-highlighted");return Q},
_computeAddOnContentClass:function(S,c){var Q="add-on-content";c?Q+=" is-invalid":S&&(Q+=" is-highlighted");return Q}});var eBi;var kIi;_.DI({_template:function(){if(kIi!==void 0)return kIi;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;eBi===void 0&&(eBi=document.createElement("template"));var f=eBi;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return kIi=S},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[TJJ],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(S){this._setInvalid(S.invalid)}});_.DI({is:"tp-yt-paper-input",_template:function(){if(qeH!==void 0)return qeH;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;hBe===void 0&&(hBe=document.createElement("template"));var f=hBe;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return qeH=S},
behaviors:[iS$,_.DV],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 r8i;var dsd;_.DI({_template:function(){if(dsd!==void 0)return dsd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=
S.content,Q=c.insertBefore;r8i===void 0&&(r8i=document.createElement("template"));var f=r8i;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return dsd=S},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.VP]});var val;var P9z;_.DI({_template:function(){if(P9z!==void 0)return P9z;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;val===void 0&&(val=document.createElement("template"));var f=val;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return P9z=S},
is:"tp-yt-paper-item-body"});var Lw_;var Eai;var t9h=function(){};
_.J=t9h.prototype;_.J.indexOf=function(){};
_.J.selectPrevious=function(){};
_.J.selectNext=function(){};
_.J.selectIndex=function(){};
_.J.forceSynchronousItemUpdate=function(){};
_.J._checkFallback=function(){};
_.J._addListener=function(){};
_.J._removeListener=function(){};
_.J._activateEventChanged=function(){};
_.J._updateItems=function(){};
_.J._selectSelected=function(){};
_.J._filterItem=function(){};
_.J._valueToItem=function(){};
_.J._valueToIndex=function(){};
_.J._indexToValue=function(){};
_.J._valueForItem=function(){};
_.J._observeItems=function(){};
_.J._itemActivate=function(){};
_.J.multiChanged=function(){};
_.J._updateAttrForSelected=function(){};
_.J._updateSelected=function(){};
_.J._selectMulti=function(){};
_.J._selectionChange=function(){};
_.J._toggleSelected=function(){};
_.J._valuesToItems=function(){};
_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J.select=function(){};
_.J._resetTabindices=function(){};
_.J._updateMultiselectable=function(){};
_.J._focusWithKeyboardEvent=function(){};
_.J._clearSearchText=function(){};
_.J._focusPrevious=function(){};
_.J._focusNext=function(){};
_.J._applySelection=function(){};
_.J._focusedItemChanged=function(){};
_.J._onIronItemsChanged=function(){};
_.J._onShiftTabDown=function(){};
_.J._onFocus=function(){};
_.J._onUpKey=function(){};
_.J._onDownKey=function(){};
_.J._onEscKey=function(){};
_.J._onKeydown=function(){};
_.J._activateHandler=function(){};
_.J._disabledChanged=function(){};
_.J._setSelectedItem=function(){};
_.J._setItems=function(){};
_.J._setSelectedItems=function(){};
_.J._setFocusedItem=function(){};
t9h=_.DI({_template:function(){if(Eai!==void 0)return Eai;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;Lw_===void 0&&(Lw_=document.createElement("template"));var f=Lw_;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return Eai=S},
is:"tp-yt-paper-listbox",behaviors:[Ic$],hostAttributes:{role:"listbox"}});var V9$;var RBJ;var y8d={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(S,c){return[S||c?"active":"",c?"cooldown":""].join(" ")},
__activeChanged:function(S,c){this.__setAriaHidden(!S);this.__coolingDown=!S&&c},
__altChanged:function(S){this.setAttribute("aria-label",S||"loading")},
__setAriaHidden:function(S){S?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.DI({_template:function(){if(RBJ!==void 0)return RBJ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;V9$===void 0&&(V9$=document.createElement("template"));var f=V9$;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return RBJ=S},
is:"tp-yt-paper-spinner",behaviors:[y8d]});var oai;var ms_;_.DI({_template:function(){if(ms_!==void 0)return ms_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;oai===void 0&&(oai=document.createElement("template"));var f=oai;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return ms_=S},
is:"tp-yt-paper-spinner-lite",behaviors:[y8d]});var SI_;var cWd;_.DI({_template:function(){if(cWd!==void 0)return cWd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;SI_===void 0&&(SI_=document.createElement("template"));var f=SI_;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return cWd=S},
is:"tp-yt-paper-tab",behaviors:[_.Y1,_.Hx.IronButtonState,E$],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 S=_.YU(this).parentNode;return!!S&&!!S.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(S){if(this.link){var c=this.queryEffectiveChildren("a");c&&S.target!==c&&c.click()}}});var QCH;var f6h;var U$z=_.oK(['<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>']),JWH=_.F1d(U$z);document.head.appendChild(JWH.content);_.DI({_template:function(){if(f6h!==void 0)return f6h;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;QCH===void 0&&(QCH=document.createElement("template"));var f=QCH;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return f6h=S},
is:"tp-yt-paper-tabs",behaviors:[_.w9,_.bvd],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(S){_.YU(this).querySelectorAll("tp-yt-paper-tab").forEach(S?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(S){S.setAttribute("noink","")},
_removeNoinkAttribute:function(S){S.removeAttribute("noink")},
_computeScrollButtonClass:function(S,c,Q,f){return!c||Q?"hidden":S?f?"hidden":"not-visible":""},
_computeTabsContentClass:function(S,c){var Q="tabs-content";S&&(Q+=" scrollable");if(!S||c)Q+=" fit-container";return Q},
_computeSelectionBarClass:function(S,c){var Q="selection-bar";S?Q+=" hidden":c&&(Q+=" align-bottom");return Q},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(S){return""+S},
_onIronSelect:function(S){this._tabChanged(S.detail.item,this._previousTab);this._previousTab=S.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();_.Tp._activateHandler.apply(this,arguments)},
_scheduleActivation:function(S,c){this._pendingActivationItem=S;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,c)},
_delayedActivationHandler:function(){var S=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;S.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(S){S.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(S,c){this.scrollable&&this._affectScroll(c&&-c.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(S){this.$.tabsContainer.scrollLeft+=S;S=this.$.tabsContainer.scrollLeft;this._leftHidden=S===0||this.hideScrollButtons;this._rightHidden=S===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(S,c){if(S){var Q=this.$.tabsContent.getBoundingClientRect(),f=Q.width,U=S.getBoundingClientRect();Q=U.left-Q.left;this._pos={width:this._calcPercent(U.width,f),left:this._calcPercent(Q,f)};if(this.noSlide||c==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var a=c.getBoundingClientRect();c=this.items.indexOf(c);S=this.items.indexOf(S);this.$.selectionBar.classList.add("expand");
S=c<S;this._isRTL&&(S=!S);S?this._positionBar(this._calcPercent(U.left+U.width-a.left,f)-5,this._left):this._positionBar(this._calcPercent(a.left+a.width-U.left,f)-5,this._calcPercent(Q,f)+5);this.scrollable&&this._scrollToSelectedIfNeeded(U.width,Q)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(S,c){c-=this.$.tabsContainer.scrollLeft;c<0?this.$.tabsContainer.scrollLeft+=c:(c+=S-this.$.tabsContainer.offsetWidth,c>0&&(this.$.tabsContainer.scrollLeft+=c))},
_calcPercent:function(S,c){return 100*S/c},
_positionBar:function(S,c){S=S||0;c=c||0;this._width=S;this._left=c;this.transform("translateX("+c+"%) scaleX("+S/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var S=this.$.selectionBar.classList;S.contains("expand")?(S.remove("expand"),S.add("contract"),this._positionBar(this._pos.width,this._pos.left)):S.contains("contract")&&S.remove("contract")}});var a6d;var AWh;_.DI({_template:function(){if(AWh!==void 0)return AWh;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;a6d===void 0&&(a6d=document.createElement("template"));var f=a6d;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return AWh=S},
is:"tp-yt-paper-textarea",behaviors:[iS$,_.DV],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(S){this.$.input.textarea.selectionStart=S},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(S){this.$.input.textarea.selectionEnd=S},_ariaLabelledByChanged:function(S){this._focusableElement.setAttribute("aria-labelledby",S)},
_ariaDescribedByChanged:function(S){this._focusableElement.setAttribute("aria-describedby",S)},
get _focusableElement(){return this.inputElement.textarea}});var XZu;var ODu;/*

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 zni=function(){};
_.J=zni.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
zni=_.DI({is:"tp-yt-paper-toggle-button",_template:function(){if(ODu!==void 0)return ODu;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;XZu===void 0&&(XZu=document.createElement("template"));var f=XZu;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return ODu=S},
behaviors:[_.feJ],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");_.tO(this,function(){_.wK(this,"pan-y")})},
_ontrack:function(S){S=S.detail;S.state==="start"?this._trackStart(S):S.state==="track"?this._trackMove(S):S.state==="end"&&this._trackEnd(S)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(S){S=S.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+S:S)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+S:S));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 S=E$._createRipple();S.id="ink";S.setAttribute("recenters","");S.classList.add("circle","toggle-ink");return S}});var x$_;var Flu;_.DI({_template:function(){if(Flu!==void 0)return Flu;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;x$_===void 0&&(x$_=document.createElement("template"));var f=x$_;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return Flu=S},
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 S=_.YU(this).parentNode,c=_.YU(this).getOwnerRoot(),Q;this.for?Q=_.YU(c).querySelector("#"+this.for):Q=S.nodeType==Node.DOCUMENT_FRAGMENT_NODE?c.host:S;return Q},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(S){S==="entry"?this.show():S==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.YU(this).textContent.trim()===""){for(var S=!0,c=_.YU(this).getEffectiveChildNodes(),Q=0;Q<c.length;Q++)if(c[Q].textContent.trim()!==""){S=!1;break}if(S)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 S=this.offset;this.marginTop!=14&&this.offset==14&&(S=this.marginTop);var c=this.offsetParent.getBoundingClientRect(),Q=this._target.getBoundingClientRect(),f=this.getBoundingClientRect(),U=(Q.width-f.width)/2,a=(Q.height-f.height)/2,X=Q.left-c.left,z=Q.top-c.top;switch(this.position){case "top":var x=X+U;var I=z-f.height-S;break;case "bottom":x=X+U;I=z+Q.height+S;break;case "left":x=X-f.width-S;I=z+a;break;case "right":x=X+Q.width+
S,I=z+a}this.fitToVisibleBounds?(c.left+x+f.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,x)+"px",this.style.right="auto"),c.top+I+f.height>window.innerHeight?(this.style.bottom=c.height+"px",this.style.top="auto"):(this.style.top=Math.max(-c.top,I)+"px",this.style.bottom="auto")):(this.style.left=x+"px",this.style.top=I+"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(S){S!==500&&this.updateStyles({"--paper-tooltip-delay-in":S+"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(S){if(S==="entry"&&this.animationEntry!=="")return this.animationEntry;if(S==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[S]&&typeof this.animationConfig[S][0].name==="string"){if(this.animationConfig[S][0].timing&&this.animationConfig[S][0].timing.delay&&this.animationConfig[S][0].timing.delay!==0){var c=this.animationConfig[S][0].timing.delay;S==="entry"?this.updateStyles({"--paper-tooltip-delay-in":c+"ms"}):S==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":c+
"ms"})}return this.animationConfig[S][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 BDd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(BDd,_.Ga);var I6_=_.yf(BDd,[0,_.or]);var R7=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(R7,_.Ga);var nuT=[3,4],bDp=[5,6];var NDe=[0,nuT,bDp,_.IBH,-1,_.yQ,_.n0u,-1,Xoz,OGM];var Kl$=_.yf(R7,NDe),$$l=_.oA(NDe);var ufs=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ufs,_.Ga);var jCh=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(jCh,_.Ga);var l6p=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(l6p,_.Ga);var YIT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(YIT,_.Ga);var CV_=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(CV_,_.Ga);var yP=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(yP,_.Ga);yP.prototype.getSource=function(){return _.iR(this,1)};
yP.prototype.getMessage=function(){return _.MJ(this,4)};
yP.prototype.getData=function(){return _.JB(this,CV_,8)};var HDh=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(HDh,_.Ga);var o7=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(o7,_.Ga);var mI=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(mI,_.Ga);var ST=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ST,_.Ga);ST.prototype.getUrl=function(){return _.MJ(this,1)};
ST.prototype.setUrl=function(S){return _.bN(this,1,S)};
ST.prototype.hasUrl=function(){return _.eN(_.jp(this,1))!=null};var D$d=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(D$d,_.Ga);var pZd=[3];var hnz=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(hnz,_.Ga);var cA=function(S){var c=new hnz;return _.aR(c,2,S)};
hnz.prototype.getLanguage=function(){return G1(this,4,Qo)};
var qId=function(S){var c=cA(1);return _.fc(c,6,Qo,S)},Qo=[3,
4,5,6];var TDT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(TDT,_.Ga);var fk=function(S){var c=new TDT;return _.aR(c,1,S)},Ua=function(S,c){return _.fc(S,2,wZp,c)},wZp=[2,
3,4,5];var sCh=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(sCh,_.Ga);var Jp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Jp,_.Ga);var M0T=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(M0T,_.Ga);var iDe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(iDe,_.Ga);var ZDs=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ZDs,_.Ga);var Gwz=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Gwz,_.Ga);var Wli=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Wli,_.Ga);var aJ=function(S){return _.JB(S,mI,5)};var gup=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(gup,_.Ga);gup.prototype.getValue=function(){return wr(this,1)};var en$=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(en$,_.Ga);var Ap=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Ap,_.Ga);Ap.prototype.getMetadata=function(){return _.Wg(this,ZDs,7,XP)};
Ap.prototype.hasMetadata=function(){return _.YH(this,ZDs,7,XP)};
var kwd=_.mE(Ap),XP=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var Oa=function(S){this.JSC$9969_name_=S;this.files_=[];this.directories_=[];this.directoryMap_={}};
Oa.prototype.getName=function(){return this.JSC$9969_name_};var xc=function(S,c){this.callback_=c;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new Oa("");rWe(this,S,this.rootDirectory_);zF(this)},rWe=function(S,c,Q){for(var f=0;f<c.length;f++){var U=c[f];
U.isFile?(S.fileOps_++,U.file((0,_.H1)(S.handleFileSuccess_,S,Q),(0,_.H1)(S.handleFileError_,S))):S.unscannedDirectories_.push(new d$e(U,Q))}},zF=function(S){if(S.unscannedDirectories_.length>0&&S.directoryOps_<5&&!S.hasError_){S.directoryOps_++;
var c=S.unscannedDirectories_.shift(),Q=c.entry,f=new Oa(Q.name);c=c.parent;c.directoryMap_[f.getName()]=f;c.directories_.push(f);Q=Q.createReader();Q.readEntries((0,_.H1)(S.handleDirectorySuccess_,S,Q,f),(0,_.H1)(S.handleDirectoryError_,S))}S.directoryOps_!=0||S.fileOps_!=0||S.unscannedDirectories_.length!=0&&!S.hasError_||S.callback_(S.rootDirectory_.files_,S.rootDirectory_.directories_,S.hasError_)};
xc.prototype.handleDirectorySuccess_=function(S,c,Q){rWe(this,Q,c);Q.length==0?(this.directoryOps_--,zF(this)):S.readEntries((0,_.H1)(this.handleDirectorySuccess_,this,S,c),(0,_.H1)(this.handleDirectoryError_,this))};
xc.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;zF(this)};
xc.prototype.handleFileSuccess_=function(S,c){S.files_.push(c);this.fileOps_--;zF(this)};
xc.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;zF(this)};
var d$e=function(S,c){this.entry=S;this.parent=c};var FP=function(S){_.Y5.call(this);_.HI(S,"drop",this.onObjectsDropped_,!1,this);_.HI(S,"dragenter",this.onFilesDragged_,!1,this);_.HI(S,"dragover",this.onFilesDragged_,!1,this);_.HI(S,"dragleave",this.onDragLeave_,!1,this);_.HI(S,"dragend",this.onDragLeave_,!1,this)};
_.Xa(FP,_.Y5);var vus=function(S,c){_.K0.call(this,"f");this.files=S;this.directories=c};
_.Xa(vus,_.K0);var PVd=function(){_.K0.call(this,"h")};
_.Xa(PVd,_.K0);var Lll=function(){_.K0.call(this,"i")};
_.Xa(Lll,_.K0);var Eui=function(){_.K0.call(this,"g")};
_.Xa(Eui,_.K0);FP.prototype.onObjectsDropped_=function(S){var c=this;S.preventDefault();var Q=S.event_.dataTransfer;if((S=Q&&Q.items)&&S.length>0&&S[0].webkitGetAsEntry){Q=[];for(var f=[],U=0;U<S.length;U++){var a=S[U].webkitGetAsEntry();a?Q.push(a):f.push(S[U])}new xc(Q,function(X,z,x){x?c.dispatchEvent(new Eui("Error occurred while reading from the file system.")):c.dispatchEvent(new vus(X,z,f))})}else(S=Q&&Q.files)&&this.dispatchEvent(new vus(Array.from(S),[]))};
FP.prototype.onFilesDragged_=function(S){S.type==="dragenter"&&this.dispatchEvent(new PVd);S.preventDefault()};
FP.prototype.onDragLeave_=function(){this.dispatchEvent(new Lll)};var t0e=function(S,c){this.JSC$9992_name_=S;this.inputElement_=c};
t0e.prototype.getName=function(){return this.JSC$9992_name_};
t0e.prototype.getInputElement=function(){return this.inputElement_};var BA=function(S,c,Q){c=c===void 0?"single_file":c;Q=Q===void 0?[]:Q;_.Y5.call(this);this.overlayTarget_=S;this.parentOverlay_=S!=null?S.parentNode:_.Nf("scotty-overlay-parent");this.selectorType_=c;this.acceptTypes_=Q;this.overlay_=V0z(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.C(BA,_.Y5);
var V0z=function(S,c,Q,f){var U=document.createElement("input");U.setAttribute("type","file");U.setAttribute("name","Filedata");_.HI(U,"change",S.onFilesSelected_,!1,S);Q==="multiple_file"&&(U.multiple="true");Q==="single_directory"&&(U.webkitdirectory="true");f.length>0&&U.setAttribute("accept",f.join(","));U.style.position="absolute";U.style.overflow="hidden";U.style.height="0px";U.style.width="0px";U.style.opacity="0";U.setAttribute("aria-hidden","true");U.setAttribute("tabIndex",-1);if(S.overlayTarget_!=
null)return U.style.height=c.offsetHeight+"px",U.style.width=c.offsetWidth+"px",S.parentOverlay_&&(S.parentOverlay_.style.position="relative"),_.sR(U,c),gO(U,new _.pn(c.offsetLeft,c.offsetTop)),U;S.parentOverlay_.appendChild(U);return U};
BA.prototype.click=function(){this.overlay_.click()};
BA.prototype.onFilesSelected_=function(S){a:{try{var c=(new XMLHttpRequest).upload!==void 0;break a}catch(I){}c=!1}if(c){var Q;S=Array.from((Q=S.target.files)!=null?Q:[]);Q=[];if(this.selectorType_==="single_directory"&&(_.Ir||yS||_.Bg)){Q=new Oa("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(c=0;c<S.length;c++)for(var f=S[c],U=f.webkitRelativePath.split("/"),a=Q,X=0;X<U.length;X++){var z=U[X];if(X==U.length-1){z!="."&&a.files_.push(f);break}var x=a.directoryMap_[z];x==void 0&&(z=
x=new Oa(z),a.directoryMap_[z.getName()]=z,a.directories_.push(z));a=x}Q=Q.directories_}this.dispatchEvent(new Rn$(S,Q,null))}else S=S.target.value,S.match(/^c:\\fakepath\\/i)&&(S=S.substring(12)),this.dispatchEvent(new Rn$([],[],new t0e(S,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=V0z(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var Rn$=function(S,c){_.K0.call(this,"j");this.files=S;this.directories=c};
_.C(Rn$,_.K0);var yWs=function(S){this.uploadUrl_=S};var oul=function(){_.Y5.call(this)};
_.Xa(oul,_.Y5);var IJ=function(S){_.K0.call(this,S)};
_.Xa(IJ,_.K0);var nk=function(S){_.K0.call(this,S)};
_.Xa(nk,_.K0);var m$e=function(S,c,Q,f,U){_.Y5.call(this);Q=document.createElement("form");Q.setAttribute("method",c);Q.setAttribute("enctype","multipart/form-data");Q.setAttribute("encoding","multipart/form-data");c=document.createElement("input");c.setAttribute("type","hidden");c.setAttribute("name","metadata");c.setAttribute("value",U);Q.appendChild(c);Q.appendChild(f);this.JSC$10009_form_=Q;S=new _.V7(S);_.to(S,"upload_protocol","multipart");this.JSC$10009_url_=S.toString();this.JSC$10009_request_=new cx;this.state_=
"Ready";this.JSC$10009_errorDescription_=null;this.JSC$10009_eventHandler_=new _.fP(this);_.F5(this,this.JSC$10009_eventHandler_);this.JSC$10009_eventHandler_.listen(this.JSC$10009_request_,"success",this.onTransferSuccess_);this.JSC$10009_eventHandler_.listen(this.JSC$10009_request_,"error",this.onTransferError_)};
_.C(m$e,oul);_.J=m$e.prototype;_.J.run=function(){this.state_="Transferring";var S=this.JSC$10009_request_,c=this.JSC$10009_form_;if(S.JSC$9427_active_)throw Error("pe");var Q=new _.V7(this.JSC$10009_url_||c.action);S.JSC$9427_form_=c;c=S.JSC$9427_form_;Q=_.H7(Q.toString());Q!==void 0&&(c.action=Q);pVs(S)};
_.J.getResponseCode=function(){return null};
_.J.getResponseText=function(){return this.JSC$10009_request_&&this.JSC$10009_request_.getResponseText()||null};
_.J.JSC$25952_getErrorDescription=function(){return this.JSC$10009_errorDescription_};
_.J.cancel=function(){this.JSC$10009_request_&&this.JSC$10009_request_.abort();this.state_="Cancelled";this.dispatchEvent(new IJ("o"))};
_.J.pause=function(){};
_.J.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new IJ("l"))};
_.J.onTransferError_=function(){this.JSC$10009_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new IJ("n"))};var bA=function(){_.wT.call(this)};
_.C(bA,_.wT);bA.prototype.createXhr=function(){var S=_.wT.prototype.createXhr.call(this);S.upload&&(S.upload.onprogress=(0,_.H1)(this.onProgress_,this));return S};
bA.prototype.onProgress_=function(S){this.dispatchEvent(S)};var S9J=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},QKu=function(S,c){var Q=S.attempt_+1;
if(S.maxAttempts_>0&&Q>S.maxAttempts_)return!1;Q==0?c():S.delayCallId_=h3(function(){S.delayCallId_=null;c()},cw_(S),S);
S.attempt_=Q;return!0};
S9J.prototype.reset=function(){this.delayCallId_&&_.QY.clearTimeout(this.delayCallId_);this.attempt_=-1};
var cw_=function(S){var c=250*Math.pow(2,S.attempt_);S.maxDelayMs_>=0&&(c=Math.min(c,S.maxDelayMs_));return c};var edp=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var NB=function(){_.Y5.call(this);this.JSC$10019_request_=this.state_=null;this.JSC$10019_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$10019_bytesTransferred_=0;this.retryIterator_=new S9J;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$10019_errorDescription_=null;this.JSC$10019_eventHandler_=new _.fP(this);_.F5(this,this.JSC$10019_eventHandler_);this.JSC$10019_url_=this.blob_=null;this.JSC$10019_method_=void 0;this.chunkSize_=this.JSC$10019_metadata_=
this.JSC$10019_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$10019_responseText_=this.JSC$10019_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.Xa(NB,oul);_.J=NB.prototype;_.J.run=function(){Kk(this)};
_.J.getResponseCode=function(){return this.JSC$10019_responseCode_};
_.J.getResponseText=function(){return this.JSC$10019_responseText_};
_.J.JSC$25952_getErrorDescription=function(){return this.JSC$10019_errorDescription_};
_.J.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$10019_eventHandler_.removeAll();this.JSC$10019_request_&&this.JSC$10019_request_.abort();this.retryIterator_.reset();var S=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(S==="Upload"||S==="Query")S=new bA,S.JSC$7833_withCredentials_=this.JSC$10019_withCredentials_,S.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$10019_bytesTransferred_=
0;this.dispatchEvent(new IJ("o"))}};
_.J.pause=function(){this.pauseRequested_=!0};
var Kk=function(S){var c=S.state_;S.pauseRequested_?(S.pauseRequested_=!1,S.stateAfterUnpausing_=c,S.state_="Paused"):QKu(S.retryIterator_,function(){switch(S.state_){case "Start":S.JSC$10019_request_=new bA;var Q=_.Cn.clone(S.JSC$10019_headers_);S.blob_.size!=null&&(Q["Content-Length"]=S.blob_.size);Q=kEZ(Q);Q["X-Goog-Upload-Protocol"]="resumable";Q["X-Goog-Upload-Command"]="start";S.JSC$10019_eventHandler_.removeAll();S.JSC$10019_eventHandler_.listen(S.JSC$10019_request_,"complete",S.onStartComplete_);
S.JSC$10019_request_.JSC$7833_withCredentials_=S.JSC$10019_withCredentials_;S.JSC$10019_request_.send(S.JSC$10019_url_,S.JSC$10019_method_,S.JSC$10019_metadata_,Q);S.lastCommandResponseCode_=null;S.dispatchEvent(new nk("q"));break;case "Upload":Q=S.transferHandle_.uploadUrl_;var f=S.blob_.size;if(F5$()){var U=S.chunkSize_;var a=S.offset_+U>=f;f=xxd(S.blob_,S.offset_,a?f:S.offset_+U)}else S.offset_=0,f=S.blob_,a=!0;S.JSC$10019_request_=new bA;S.JSC$10019_request_.JSC$7833_withCredentials_=S.JSC$10019_withCredentials_;
S.JSC$10019_eventHandler_.removeAll();S.JSC$10019_eventHandler_.listen(S.JSC$10019_request_,"progress",S.onUploadProgress_);U=(0,_.H1)(S.JSC$10021_onUploadComplete_,S,S.offset_+f.size,a);S.JSC$10019_eventHandler_.listen(S.JSC$10019_request_,"complete",U);S.lastCommandResponseCode_=null;S.dispatchEvent(new nk("q"));a=Object.assign({},S.JSC$10019_headers_||{},{"X-Goog-Upload-Command":"upload"+(a?", finalize":""),"X-Goog-Upload-Offset":S.offset_});S.JSC$10019_request_.send(Q,"POST",f,a);break;case "Query":S.JSC$10019_request_=
new bA;S.JSC$10019_eventHandler_.removeAll();S.JSC$10019_eventHandler_.listen(S.JSC$10019_request_,"complete",S.onQueryComplete_);Q=Object.assign({},S.JSC$10019_headers_||{},{"X-Goog-Upload-Command":"query"});S.JSC$10019_request_.send(S.transferHandle_.uploadUrl_,"POST","",Q);S.lastCommandResponseCode_=null;S.dispatchEvent(new nk("q"));break;default:throw Error("ef");}})||$c(S,"Transfer encountered too many consecutive failures.")},$c=function(S,c){S.state_="Error";
S.JSC$10019_errorDescription_=c;S.dispatchEvent(new IJ("n"))};
NB.prototype.onStartComplete_=function(S){var c=S.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new nk("r"));if(fv$(c))U7e(this,c);else if(JwH(c)){S=oj(S.target.getAllResponseHeaders());for(var Q in S)_.UT(Q.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new IJ("m"));Q=Hd(S,"X-Goog-Upload-URL");S=(S=Hd(S,"X-Goog-Upload-Chunk-Granularity"))?parseInt(S,10):1;Q===void 0||isNaN(S)||S<=0?$c(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
S)*S,this.transferHandle_=new yWs(Q),this.dispatchEvent(new IJ("p")),this.state_="Upload",this.retryIterator_.reset(),Kk(this))}else Kk(this)};
NB.prototype.onUploadProgress_=function(S){this.JSC$10019_bytesTransferred_=this.offset_+S.loaded;this.dispatchEvent(new IJ("k"))};
NB.prototype.JSC$10021_onUploadComplete_=function(S,c,Q){var f=this,U,a;return _.O(function(X){switch(X.nextAddress){case 1:U=Q.target;f.lastCommandResponseCode_=U.getStatus();f.dispatchEvent(new nk("r"));if(av_(U)||U.getStatus()==404)return f.JSC$10019_bytesTransferred_=S,U7e(f,U),X.return();if(JwH(U)){X.jumpTo(2);break}if(!(a=f.detectCorruptedBlobEnabled_)){X.jumpTo(3);break}return _.F(X,Awz(f),4);case 4:a=X.yieldResult;case 3:if(a)return $c(f,"Blob has been modified or corrupted."),X.return();
f.requireUploadRequestModification_=U.getStatus()==400;f.state_="Query";Kk(f);return X.return();case 2:if(c)return $c(f,"Got a non-final success response after issuing a finalize command."),X.return();f.JSC$10019_bytesTransferred_=S;f.offset_=S;f.retryIterator_.reset();Kk(f);return X.return()}})};
NB.prototype.onQueryComplete_=function(S){var c=S.target;this.lastCommandResponseCode_=c.getStatus();this.dispatchEvent(new nk("r"));fv$(c)?(c.getStatus()===200&&(this.JSC$10019_bytesTransferred_=this.blob_.size),U7e(this,c)):JwH(c)?(S=oj(S.target.getAllResponseHeaders()),S=parseInt(Hd(S,"X-Goog-Upload-Size-Received"),10),isNaN(S)?$c(this,"Server did not respond with current offset."):S<this.offset_?$c(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
S+"."):this.requireUploadRequestModification_&&this.offset_===S?$c(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<S&&this.retryIterator_.reset(),this.offset_=this.JSC$10019_bytesTransferred_=S,this.state_="Upload",Kk(this))):Kk(this)};
var U7e=function(S,c){S.JSC$10019_responseCode_=c.getStatus();var Q=oj(c.getAllResponseHeaders());rMZ(Q);S.JSC$10019_responseText_=c.getResponseText();S.state_="Response received";S.dispatchEvent(new IJ("l"))},JwH=function(S){var c=S.getStatus();
S=oj(S.getAllResponseHeaders());S=Hd(S,"X-Goog-Upload-Status");return c===200&&S==="active"},av_=function(S){S=oj(S.getAllResponseHeaders());
return Hd(S,"X-Goog-Upload-Status")==="final"},fv$=function(S){if(av_(S))return!0;
S=S.getStatus();return S>=400&&S<500},Awz=function(S){var c;
return _.O(function(Q){if(Q.nextAddress==1){if(!S.blob_||S.originalBlobSize_<=0)return Q.return(!1);if(S.blob_.size!==S.originalBlobSize_)return Q.return(!0);_.X1(Q,2);if(c=xxd(S.blob_,0,1)){var f=new g6,U=vtp(f);f.reader_.readAsBinaryString(c);Q=_.F(Q,U,4)}else Q=Q.return(!0);return Q}if(Q.nextAddress!=2)return Q.return(S.blob_.size!==S.originalBlobSize_);_.Bs(Q);return Q.return(!0)})};var X$l=function(S,c,Q,f,U,a){_.Y5.call(this);this.payload_=f;this.JSC$10022_url_=S;this.JSC$10022_method_=c;this.JSC$10022_headers_=Q;this.JSC$10022_metadata_=U;this.encoding_=a||"binary";S=new _.YN;this.boundary_="uploader-"+P1()+"-"+S.JSC$9276_toIsoString();this.JSC$10022_responseText_=this.JSC$10022_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$10022_errorDescription_=null;this.JSC$10022_eventHandler_=new _.fP(this);_.F5(this,this.JSC$10022_eventHandler_)};
_.C(X$l,oul);_.J=X$l.prototype;
_.J.run=function(){var S=_.Cn.clone(this.JSC$10022_headers_);this.payload_.length!=null&&(S["Content-Length"]=this.payload_.length);S=kEZ(S);S["X-Goog-Upload-Protocol"]="multipart";S["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new bA;this.JSC$10022_eventHandler_.removeAll();this.JSC$10022_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$10022_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$10022_url_,this.JSC$10022_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$10022_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",S)};
_.J.getResponseCode=function(){return this.JSC$10022_responseCode_};
_.J.getResponseText=function(){return this.JSC$10022_responseText_};
_.J.JSC$25952_getErrorDescription=function(){return this.JSC$10022_errorDescription_};
_.J.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$10022_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new IJ("o")))};
_.J.pause=function(){};
_.J.onTransferProgress_=function(){this.dispatchEvent(new IJ("k"))};
_.J.onTransferComplete_=function(S){var c=S.target.getStatus();c===void 0||c===-1?(this.JSC$10022_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new IJ("n"))):(this.JSC$10022_responseCode_=c,S=S.target,c=oj(S.getAllResponseHeaders()),rMZ(c),this.JSC$10022_responseText_=S.getResponseText(),this.state_="Complete",this.dispatchEvent(new IJ("l")))};_.Oj$=function(S,c,Q,f){f=f===void 0?!1:f;if(Q instanceof t0e)return new m$e(S,"POST",c,Q.getInputElement(),"");if(typeof Q==="string"||Q instanceof String)return new X$l(S,"POST",c,Q,"");var U=new NB(void 0);U.JSC$10019_url_=S;U.JSC$10019_method_="POST";U.JSC$10019_headers_=c;U.blob_=Q;U.originalBlobSize_=Q.size;U.JSC$10019_metadata_="";f&&(U.JSC$10019_withCredentials_=f);U.state_="Start";return U};var uA=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(uA,_.Ga);_.J=uA.prototype;_.J.getEnableSsEngine=function(){return _.T1(this,2)};
_.J.getEnableAwr=function(){return _.T1(this,3)};
_.J.getAlohaAutoGaRollout=function(){return _.T1(this,5)};
_.J.getEnableConfigurator=function(){return _.T1(this,6)};
_.J.getEnableMweb=function(){return _.T1(this,7)};
var x7i=function(){var S=zp$();return _.pP(S,7,!0)};
uA.prototype.getEnableCtlConsentCheckbox=function(){return _.T1(this,8)};
uA.prototype.getEnableIframe=function(){return _.T1(this,9)};
var zp$=function(){var S=new uA;S=_.pP(S,5,!0);S=_.pP(S,2,!0);S=_.pP(S,4,!1);S=_.pP(S,8,!0);return _.pP(S,9,!0)};
uA.prototype.getEnableScreenshotNudge=function(){return _.T1(this,10)};
var F9z=function(){var S=x7i();return _.pP(S,10,!0)};
uA.prototype.getEnableWebStartupConfigEndpoint=function(){return _.T1(this,11)};
uA.prototype.getEnableJunkNudge=function(){return _.T1(this,12)};
var A3Y=function(){var S=F9z();return _.pP(S,12,!0)};
_.J=uA.prototype;_.J.getEnableConfiguratorLocale=function(){return _.T1(this,13)};
_.J.getEnableTinyNoPointer=function(){return _.T1(this,14)};
_.J.getEnableSupportSessionLogging=function(){return _.T1(this,15)};
_.J.getEnableFileUploadForScreenshot=function(){return _.T1(this,16)};
_.J.getEnableDirectDeflectionForSingleCategory=function(){return _.T1(this,17)};
_.J.getEnableImageSanitization=function(){return _.T1(this,18)};
_.J.getEnableAlohaBinarySplit=function(){return _.T1(this,19)};
_.J.getEnableDbFeedbackIntents=function(){return _.T1(this,20)};
_.J.getEnableMarkMandatoryFieldsWithRequired=function(){return _.T1(this,21)};
_.J.getEnableFeedbackCategoryCustomUi=function(){return _.T1(this,22)};
_.J.getEnableRealtimeCtl=function(){return _.T1(this,23)};var agY=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(agY,_.Ga);var d1Y=[/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 PrZ="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 LCT=_.oK(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),Eqo=_.oK(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var VWM,oqZ,Rdz,m1x;var BaH,Ivh;
BaH=function(S,c,Q){S.timeOfStartCall=(new Date).getTime();var f=Q||_.QY,U=f.document,a=S.nonce||_.Mg(f.document);a&&!S.nonce&&(S.nonce=a);if(S.flow=="help"){var X=_.rC("document.location.href",f);!S.helpCenterContext&&X&&(S.helpCenterContext=X.substring(0,1200));X=!0;if(c&&JSON&&JSON.stringify){var z=JSON.stringify(c);(X=z.length<=1200)&&(S.psdJson=z)}X||(c={invalidPsd:!0})}c=[S,c,Q];f.GOOGLE_FEEDBACK_START_ARGUMENTS=c;Q=S.feedbackServerUri||"//www.google.com/tools/feedback";if(X=f.GOOGLE_FEEDBACK_START)X.apply(f,c);
else{f=Q+"/load.js?";for(var x in S)c=S[x],c==null||_.c_(c)||(f+=encodeURIComponent(x)+"="+encodeURIComponent(c)+"&");S=nn(U).createElement("SCRIPT");a&&S.setAttribute("nonce",a);_.eS(S,_.XK(f));U.body.appendChild(S)}};
Ivh=function(S,c,Q,f){var U,a;_.O(function(X){U=Q||_.QY;var z=S.serverEnvironment==="DEV",x=Q||_.QY;x=S.nonce||_.Mg(x.document);z={integrationKeys:{productId:S.productId,feedbackBucket:S.bucket,triggerId:S.triggerId},callbacks:{onClose:S.callback,onLoad:S.onLoadCallback},formContent:{locale:S.locale,disableScreenshot:S.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:S.abuseLink,additionalDataConsent:S.additionalDataConsent},initializationData:{isLocalServer:z,nonce:x,useNightlyRelease:z,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:S.feedbackServerUri,colorScheme:S.colorScheme},extraData:{productVersion:S.productVersion,authUser:S.authuser,configuratorId:S.configuratorId,customZIndex:S.customZIndex,tinyNoPointer:S.tinyNoPointer,
allowNonLoggedInFeedback:S.allowNonLoggedInFeedback,enableAnonymousFeedback:S.enableAnonymousFeedback}};c&&(x=new Map(Object.entries(c)),z.extraData.productSpecificData=x);a=z;return _.F(X,fgc(a,f,U),0)})};
_.nsJ=function(S,c,Q){try{if(S.flow==="help"){var f=S.helpCenterPath.replace(/^\//,"");_.sy(Q||window,"https://support.google.com/"+f)}else S.flow==="submit"?BaH(S,c,Q):XHT(S.productId,S.feedbackServerUri).then(function(U){U=_.JB(U,uA,1);var a=!h9Y||(U==null?void 0:U.getEnableMweb()),X=!S.tinyNoPointer||(U==null?void 0:U.getEnableTinyNoPointer());!U||U.getAlohaAutoGaRollout()&&a&&X?Ivh(S,c,Q,U):BaH(S,c,Q)},function(U){U&&U.name!=="DuplicateFormError"&&BaH(S,c,Q)})}catch(U){Ivh(S,c,Q,null)}};
_.m5("userfeedback.api.startFeedback",_.nsJ);var O0Z=/https?:\/\/\S+\.\S+/,zCT=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],xUY=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var zXo=function(S){var c=S.split(""),Q=[-263237435,15,c,function(f,U,a){var X=U.length;a.forEach(function(z,x,I){this.push(I[x]=U[(U.indexOf(z)-U.indexOf(this[x])+x+X--)%U.length])},f.split(""))},
function(f,U){f=(f%U.length+U.length)%U.length;U.splice(-f).reverse().forEach(function(a){U.unshift(a)})},
"response",function(){for(var f=64,U=[];++f-U.length-32;){switch(f){case 58:f-=14;case 91:case 92:case 93:continue;case 123:f=47;case 94:case 95:case 96:continue;case 46:f=95}U.push(String.fromCharCode(f))}return U},
null,12,1540023973,65941107,null,c,function(f,U){for(f=(f%U.length+U.length)%U.length;f--;)U.unshift(U.pop())},
695603893,function(f){for(var U=f.length;U;)f.push(f.splice(--U,1)[0])},
"'[;'[(",function(f,U){f.push(U)},
null,function(f,U,a,X,z){return U(a,X,z)},
"continuation",c,function(f,U){if(f.length!=0){U=(U%f.length+f.length)%f.length;var a=f[0];f[0]=f[U];f[U]=a}},
function(){for(var f=64,U=[];++f-U.length-32;){switch(f){case 91:f=44;continue;case 123:f=65;break;case 65:f-=18;continue;case 58:f=96;continue;case 46:f=95}U.push(String.fromCharCode(f))}return U},
'"),/]];'];Q[7]=Q;Q[11]=Q;Q[18]=Q;try{(((0,Q[15])(Q[21]),Q[22])(Q[11],Q[9]),Q[22])(Q[new Date("1970-01-01T04:30:12.000+04:30")/1E3],Q[1]),((0,Q[22])(Q[11],Q[23]),Q[4])(Q[10],Q[18]),(0,Q[20])(Q[21],Q[14])<<(0,Q[17])(Q[18],Q[1]),(0,Q[4])(Q[8],Q[21]),(0,Q[19])((0,Q[19])((0,Q[17])(Q[7],Q[9]),Q[3],Q[20],(0,Q[6])(),Q[2]),Q[3],Q[5],(0,Q[15])(),Q[2])}catch(f){return"aTlOUOubTO4AP____8P_"+S}return c.join("")};_.bjd=new _.L("runAttestationCommand");var NaJ=new _.L("verifyCommand");_.jT=new _.L("accessibilityContext");var K9d=new _.L("accessibilityData");var $7H=new _.L("profileCardCommand");var jGc=new _.L("signInEndpoint");var utY=new _.L("signOutEndpoint");var jKT;_.uqi=new _.L("accountItemSectionRenderer");jKT=new _.L("accountItemRenderer");_.lvd=new _.L("saveCommandToSessionStorageAction");var Y9e=new _.L("crossAccountChannelTransferEndpoint");var NRZ=new _.L("getAccountMenuEndpoint");_.K_Y=new _.L("getAccountSwitcherEndpoint");var bdY=new _.L("getAccountsListEndpoint");var Cez=new _.L("getAccountsListInnertubeEndpoint");_.lA=new _.L("addToToastAction");var Hj$=new _.L("hideEnclosingAction");_.Yc=new _.L("replaceEnclosingAction");var D7H=new _.L("buttonRefreshAction");var p$z=new _.L("adsControlFlowOpportunityReceivedCommand");var hpe=new _.L("openAdAllowlistInstructionCommand");var q9T=new _.L("videoMastheadAdPrimaryVideoRenderer");var Tau=new _.L("displayAdRenderer");var ERp=new _.L("instreamVideoAdRenderer");_.w$J=new _.L("inFeedAdLayoutRenderer");var sK$=new _.L("sequenceItemInPlayerAdLayoutRenderer");_.MPd=new _.L("adSlotRenderer");var ijp=new _.L("adAvatarViewModel");var Zjh=new _.L("adBadgeViewModel");var GVH=new _.L("adImageViewModel");var WaT=new _.L("reelsAdCardButtonedViewModel");var W9_=new _.L("reelsPlayerOverlayLayoutViewModel");var gse=new _.L("showSchedulingPanelCommand");var ep_=new _.L("backstageCommentsRenderer");var kVh=new _.L("backstageImageRenderer");var rwp=new _.L("backstagePostRenderer");var d7u=new _.L("postRenderer");var vsd=new _.L("sharedPostRenderer");var Pes=new _.L("createBackstagePostEndpoint");var L9u=new _.L("getPostVideoPreviewEndpoint");var Es_=new _.L("updateBackstagePostEndpoint");var tPz=new _.L("filterChipTransformCommand");var VPz=new _.L("insertRichSectionCommand");var XTY=new _.L("talkToRecsDeselectCommand");var Rpz=new _.L("talkToRecsNextCommand");var A9p=new _.L("talkToRecsSelectCommand");var ywe=new _.L("talkToRecsUpdateTextCommand");_.KJ=new _.L("browseEndpoint");_.os$=new _.L("confirmDialogEndpoint");var m7p=new _.L("expandOnHoverCardRenderer");var SYd=new _.L("lumiereShelfDetailsRenderer");var cPJ=new _.L("revealBusinessEmailCommand");var Qrh=new _.L("validateChannelHandleCommand");var fxh=new _.L("channelCreationFormEndpoint");var UJH=new _.L("aboutChannelViewModel");var JPs=new _.L("channelThumbnailWithLinkRenderer");var axd=new _.L("channelCreationServiceEndpoint");var APl=new _.L("updateChannelPageSettingsEndpoint");var Ck=function(S){this.delegate=S},HA=function(){Ck.apply(this,arguments)};
_.C(HA,Ck);_.Rh.Object.defineProperties(HA.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(S){this.delegate.entityMetadata=S}}});var Xgh=function(){HA.apply(this,arguments)};
_.C(Xgh,HA);Xgh.prototype.getAssociations=function(){return[]};var TvM=new _.L("webThumbnailDetailsExtensionData");var NwY=new _.L("commandContext");var OWi=new _.L("addVideoLinkAction");var zY$=new _.L("createPollAction");var xJJ=new _.L("hideIdentityChipAction");var FJd=new _.L("openUpdateCommentDialogAction");var Dw=new _.L("updateBackstagePollAction");var Brh=new _.L("updateCommentVoteAction");var Ixl=new _.L("commentThreadRenderer");var nHu=function(){HA.apply(this,arguments)};
_.C(nHu,HA);nHu.prototype.getAssociations=function(){return[]};_.bW_=new _.L("commentDialogRenderer");var Nrh=new _.L("updateCommentsSettingsEndpoint");var KJu=new _.L("commentViewModel");var $J$=new _.L("triStateButtonViewModel");var uaz=new _.L("voiceReplyContainerViewModel");_.II=new _.L("commandExecutorCommand");var MK=new _.L("emoji");var jrl=new _.L("updateCreatorChannelInnertubeCommand");_.lxd=new _.L("appendContinuationItemsAction");_.YYd=new _.L("changeEngagementPanelVisibilityAction");_.gj=new _.L("continuationCommand");var CR$=new _.L("listMutationCommand");_.pk=new _.L("openPopupAction");var HWi=new _.L("persistSubscriptionsDisplayPreferencesCommand");var Mpp;_.DJd=new _.L("playlistRemoveVideosAction");_.pgp=new _.L("updatePlaylistAction");_.hY_=new _.L("addToPlaylistCommand");_.qYe=new _.L("endPlaylistCommand");_.Trd=new _.L("recoverPlaylistCommand");_.wgs=new _.L("refreshPlaylistCommand");_.srl=new _.L("refreshFormCommand");Mpp=new _.L("openOnePickAddVideoModalCommand");_.CCR=new _.L("reloadContinuationItemsCommand");_.iWe=new _.L("scrollToEngagementPanelCommand");var ZWe=new _.L("selectCountryCommand");var G1e=new _.L("showReloadUiCommand");var WJe=new _.L("undoFeedbackAction");var gHi=new _.L("updateButtonAction");var eYH=new _.L("updateSubscribeButtonAction");var k1$=new _.L("updateToggleAction");var rPh=new _.L("webNativeShareCommand");_.Qw=new _.L("webCommandMetadata");_.hp=new _.L("webHandleServiceEndpointExtension");var YqY=new _.L("webNavigationEndpointData");var dJz=new _.L("copyLinkCommand");var vHJ=new _.L("playlistVotingRefreshPopupCommand");var PRJ=new _.L("selectChipCommand");var LJs=new _.L("setCookieCommand");var EHh=new _.L("setLocalStorageCommand");var tpJ=new _.L("setPrefStorageEntryCommand");var oH_;_.Vpp=new _.L("settingsUpdateCheckboxCommand");_.RYd=new _.L("settingsUpdateTextCommand");_.yPd=new _.L("settingsUpdateOptionsCommand");oH_=new _.L("settingsUpdateSwitchCommand");_.mJJ=new _.L("settingsUpdateConnectedAppRendererCommand");var SRi=new _.L("updateTextInputFormFieldRendererCommand");var cMT=new _.L("updateToggleButtonStateCommand");var Qld=new _.L("updateUrlParamCommand");var f$d=new _.L("webSubmitFormCommand");var U1H=new _.L("channelSwitcherPageRenderer"),JMl=new _.L("updateChannelSwitcherPageAction");_.aK=new _.L("continuationItemRenderer");_.qB=new _.L("richItemRenderer");var a$H=new _.L("richSectionRenderer");_.AMu=new _.L("richShelfRenderer");_.Xld=new _.L("metadataBadgeRenderer");_.OxJ=new _.L("multiPageMenuNotificationSectionRenderer");_.zdz=new _.L("playlistLoopButtonStateRenderer");var x1z=new _.L("claimLegacyYoutubeChannelEndpoint");var FCH=new _.L("getNotificationMenuEndpoint");var BOd=new _.L("getSearchInVideoCommand");_.I$d=new _.L("getTranscriptEndpoint");_.b2=new _.L("signalServiceEndpoint");var nqs=new _.L("verifyAgeEndpoint");var BYr=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(BYr,_.Ga);BYr.prototype.getPath=function(){return _.MJ(this,1)};
BYr.prototype.getValue=function(){return _.MJ(this,2)};var bxe=[0,_.VQ,-1];var NOl=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(NOl,_.Ga);var FfH=_.yf(NOl,[0,_.Rr,bxe]);var KCT=new _.L("dismissalEndpoint");var $1p=new _.L("elementsCommand");_.Zc=new _.L("innertubeCommand");var uNJ=new _.L("multipleInlinePlaybackCommand");var A_p=new _.L("loggingDirectives");var jli=new _.L("acknowledgeChannelTouStrikeCommand");var l$z=function(){HA.apply(this,arguments)};
_.C(l$z,HA);l$z.prototype.getAssociations=function(){return[]};var YRd=function(){HA.apply(this,arguments)};
_.C(YRd,HA);YRd.prototype.getAssociations=function(){return[]};var ta=new _.L("entityBatchUpdate");_.CrJ=new _.L("entityUpdateCommand");var Hxd=function(){HA.apply(this,arguments)};
_.C(Hxd,HA);Hxd.prototype.getAssociations=function(){var S=[];this.delegate.alternateChannel&&S.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&S.push.apply(S,_.Hs(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&S.push(this.delegate.oneofChannelEntity);return[].concat(_.Hs(new Set(S)))};var D1i=function(){HA.apply(this,arguments)};
_.C(D1i,HA);D1i.prototype.getAssociations=function(){var S=[];this.delegate.entryCollection&&S.push(this.delegate.entryCollection);return[].concat(_.Hs(new Set(S)))};
var plH=function(){HA.apply(this,arguments)};
_.C(plH,HA);plH.prototype.getAssociations=function(){var S=[];this.delegate.parentPlaylist&&S.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var c=_.A(this.delegate.entries),Q=c.next();!Q.done;Q=c.next())S.push.apply(S,_.Hs((new hdT(Q.value)).getAssociations()));return[].concat(_.Hs(new Set(S)))};
var hdT=function(){Ck.apply(this,arguments)};
_.C(hdT,Ck);hdT.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);return[].concat(_.Hs(new Set(S)))};var qRd=function(){HA.apply(this,arguments)};
_.C(qRd,HA);qRd.prototype.getAssociations=function(){var S=[];this.delegate.descriptionEntity&&S.push(this.delegate.descriptionEntity);this.delegate.creators&&S.push.apply(S,_.Hs(this.delegate.creators));this.delegate.theBiggestFan&&S.push(this.delegate.theBiggestFan);return[].concat(_.Hs(new Set(S)))};
var TOd=function(){HA.apply(this,arguments)};
_.C(TOd,HA);TOd.prototype.getAssociations=function(){return[]};var wls=new _.L("fantasyRosterViewModel");var sll=new _.L("addFollowUpSurveyCommand");var MWd=new _.L("getSurveyCommand");var ixd=new _.L("ratingSurveyOptionRenderer");_.ie=new _.L("feedbackEndpoint");var Zxd=new _.L("reportHistoryTableCellRenderer"),GEl=new _.L("reportHistoryTableTextCellRenderer"),WCT=new _.L("reportHistoryTableReasonCellRenderer");_.gq_=new _.L("flagEndpoint");var ede=new _.L("getFlowCommand");var kE$=new _.L("submitFormWithValidationFlowCommand");var rMT=function(){HA.apply(this,arguments)};
_.C(rMT,HA);rMT.prototype.getAssociations=function(){return[]};var d1l=new _.L("flowFormState");var vqi=new _.L("gameCardRenderer");var Pr$=new _.L("accountLinkingStateChangedCommand");var LCd=function(){HA.apply(this,arguments)};
_.C(LCd,HA);LCd.prototype.getAssociations=function(){return[]};var Eqh=new _.L("changeMiniAppPlayStateCommand");var tWd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(tWd,_.Ga);var TF=[1,2,3];var VWu=[0,TF,fyx,_.Uwz,Rix];var RdJ=_.yf(tWd,VWu),yMe=_.oA(VWu);var oqT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(oqT,_.Ga);var m1z=[0,_.LW,_.VQ];var Snd=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Snd,_.Ga);var c3h=[0,_.VQ,_.LW,-1];var wx=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(wx,_.Ga);var Qau=function(S,c){return _.aR(S,3,c)};var fg_=_.oA([0,1,m1z,_.or,c3h]);var UUJ=new _.L("miniAppScoreChallengeViewModel");var J3$=new _.L("miniGameCardViewModel");var agl=new _.L("teaserCardViewModel");var A3d=function(){HA.apply(this,arguments)};
_.C(A3d,HA);A3d.prototype.getAssociations=function(){return[]};_.XHd=new _.L("feedbackItemRenderer");var O0$=function(){HA.apply(this,arguments)};
_.C(O0$,HA);O0$.prototype.getAssociations=function(){return[]};_.zCd=new _.L("playerInterstitialRenderer");var xUd=new _.L("getKidsBlocklistPickerCommand");_.FLz=new _.L("updateKidsBlacklistEndpoint");_.LD=new _.L("likeEndpoint");var BTi,IgT,n5d;BTi=new _.L("addChatItemAction");IgT=new _.L("removeChatItemAction");n5d=new _.L("markChatItemAsDeletedAction");_.b0u=new _.L("setLiveChatCollapsedStateAction");var NTi=function(){HA.apply(this,arguments)};
_.C(NTi,HA);NTi.prototype.getAssociations=function(){return[]};var KL_=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(KL_,_.Ga);var $Us=_.yf(KL_,[0,1,_.LW]);var uSi=new _.L("liveChatEndpoint");var jaT=new _.L("liveChatItemContextMenuEndpoint");var lgJ=new _.L("liveChatReplayEndpoint");_.Yns=new _.L("emojiPickerRenderer");var CSd=new _.L("liveChatAuthorBadgeViewModel");var H0$=new _.L("deleteLiveChatMessageCommand");var DU$=new _.L("liveChatActionEndpoint");var pHd=new _.L("createLiveChatPollEndpoint");var hCu=new _.L("manageLiveChatUserEndpoint");var qn$=new _.L("moderateLiveChatEndpoint");_.TTd=new _.L("sendLiveChatMessageEndpoint");var wHp=new _.L("sendLiveChatVoteEndpoint");var sa$=new _.L("clearLocationCommand");var M1J=new _.L("resolveLocationCommand");var i0J=new _.L("interactionLoggingCommandMetadata");var e_T=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(e_T,_.Ga);var g8x=function(S,c){return _.aj(S,1,c)};var Z0d=[0,_.tP];var Wsp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Wsp,_.Ga);var Guc=function(S,c){return $L(S,1,e_T,c)};Wsp.prototype.JSC$10114_serializeBinary=cjM([0,_.Rr,Z0d]);var wHH={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 GNh={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"},
WLd={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 WpM={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"};_.tuZ=new _.L("logFlowLoggingEventCommand");_.$z=new _.L("loggingContext");var g5h=new _.L("captionLanguageSelectActionCommand");var eCz=new _.L("showCaptionLanguageSelectActionCommand");var kNd=new _.L("dismissDialogEndpoint");var r3_=new _.L("hideItemSectionVideosByIdCommand");var dUd=new _.L("showMiniplayerCommand");var v5H=function(){HA.apply(this,arguments)};
_.C(v5H,HA);v5H.prototype.getAssociations=function(){return[]};var PSl=function(){HA.apply(this,arguments)};
_.C(PSl,HA);PSl.prototype.getAssociations=function(){return[]};var LLl=function(){HA.apply(this,arguments)};
_.C(LLl,HA);LLl.prototype.getAssociations=function(){return[]};var E5z=function(){HA.apply(this,arguments)};
_.C(E5z,HA);E5z.prototype.getAssociations=function(){var S=[];this.delegate.downloadsList&&S.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&S.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&S.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&S.push(this.delegate.refresh);return[].concat(_.Hs(new Set(S)))};var t1z=function(){HA.apply(this,arguments)};
_.C(t1z,HA);t1z.prototype.getAssociations=function(){var S=[];this.delegate.refresh&&S.push(this.delegate.refresh);if(this.delegate.downloads)for(var c=_.A(this.delegate.downloads),Q=c.next();!Q.done;Q=c.next())S.push.apply(S,_.Hs((new V1z(Q.value)).getAssociations()));return[].concat(_.Hs(new Set(S)))};
var V1z=function(){Ck.apply(this,arguments)};
_.C(V1z,Ck);V1z.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);this.delegate.playlist&&S.push(this.delegate.playlist);this.delegate.videoItem&&S.push(this.delegate.videoItem);this.delegate.playlistItem&&S.push(this.delegate.playlistItem);return[].concat(_.Hs(new Set(S)))};var RCz=function(){HA.apply(this,arguments)};
_.C(RCz,HA);RCz.prototype.getAssociations=function(){var S=[];this.delegate.localImageEntities&&S.push.apply(S,_.Hs(this.delegate.localImageEntities));return[].concat(_.Hs(new Set(S)))};var y3d=function(){HA.apply(this,arguments)};
_.C(y3d,HA);y3d.prototype.getAssociations=function(){var S=[];this.delegate.playbackData&&S.push(this.delegate.playbackData);this.delegate.localImageEntities&&S.push.apply(S,_.Hs(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Hs(new Set(S)))};var o5d=function(){HA.apply(this,arguments)};
_.C(o5d,HA);o5d.prototype.getAssociations=function(){return[]};var mUd=function(){HA.apply(this,arguments)};
_.C(mUd,HA);mUd.prototype.getAssociations=function(){var S=[];this.delegate.fakeChildren&&S.push.apply(S,_.Hs(this.delegate.fakeChildren));return[].concat(_.Hs(new Set(S)))};var SbT=function(){HA.apply(this,arguments)};
_.C(SbT,HA);SbT.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);this.delegate.playbackData&&S.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&S.push(this.delegate.offlineVideoPolicy);return[].concat(_.Hs(new Set(S)))};var cmJ=function(){HA.apply(this,arguments)};
_.C(cmJ,HA);cmJ.prototype.getAssociations=function(){return[]};var QzT=function(){HA.apply(this,arguments)};
_.C(QzT,HA);QzT.prototype.getAssociations=function(){var S=[];this.delegate.channelOwner&&S.push(this.delegate.channelOwner);this.delegate.videos&&S.push.apply(S,_.Hs(this.delegate.videos));this.delegate.collaboratorChannels&&S.push.apply(S,_.Hs(this.delegate.collaboratorChannels));this.delegate.downloadState&&S.push(this.delegate.downloadState);this.delegate.refresh&&S.push(this.delegate.refresh);return[].concat(_.Hs(new Set(S)))};var fAi=function(){HA.apply(this,arguments)};
_.C(fAi,HA);fAi.prototype.getAssociations=function(){var S=[];this.delegate.video&&S.push(this.delegate.video);this.delegate.channelContributor&&S.push(this.delegate.channelContributor);return[].concat(_.Hs(new Set(S)))};var UI_=function(){Ck.apply(this,arguments)};
_.C(UI_,Ck);UI_.prototype.getAssociations=function(){var S=[];this.delegate.recommendedVideoMetadata&&S.push.apply(S,_.Hs((new Jmu(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Hs(new Set(S)))};
var Jmu=function(){Ck.apply(this,arguments)};
_.C(Jmu,Ck);Jmu.prototype.getAssociations=function(){var S=[];this.delegate.localImageEntities&&S.push.apply(S,_.Hs(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Hs(new Set(S)))};var aAd=function(){Ck.apply(this,arguments)};
_.C(aAd,Ck);aAd.prototype.getAssociations=function(){var S=[];this.delegate.playbackPosition&&S.push(this.delegate.playbackPosition);return[].concat(_.Hs(new Set(S)))};var Ami=function(){HA.apply(this,arguments)};
_.C(Ami,HA);Ami.prototype.getAssociations=function(){var S=[];this.delegate.owner&&S.push(this.delegate.owner);this.delegate.downloadState&&S.push(this.delegate.downloadState);this.delegate.userState&&S.push.apply(S,_.Hs((new aAd(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&S.push.apply(S,_.Hs((new UI_(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Hs(new Set(S)))};var Xmi=function(){HA.apply(this,arguments)};
_.C(Xmi,HA);Xmi.prototype.getAssociations=function(){var S=[];this.delegate.userChannelDetails&&S.push(this.delegate.userChannelDetails);return[].concat(_.Hs(new Set(S)))};var Ofi=function(){HA.apply(this,arguments)};
_.C(Ofi,HA);Ofi.prototype.getAssociations=function(){var S=[];this.delegate.channelOwner&&S.push(this.delegate.channelOwner);this.delegate.playbackPosition&&S.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&S.push.apply(S,_.Hs(this.delegate.localImageEntities));this.delegate.downloadStatus&&S.push(this.delegate.downloadStatus);return[].concat(_.Hs(new Set(S)))};var fwY=new _.L("downloadsPageSmartDownloadsOptInBannerParams");var z7z=function(){HA.apply(this,arguments)};
_.C(z7z,HA);z7z.prototype.getAssociations=function(){return[]};var xI_=function(){HA.apply(this,arguments)};
_.C(xI_,HA);xI_.prototype.getAssociations=function(){return[]};var Fth=function(){HA.apply(this,arguments)};
_.C(Fth,HA);Fth.prototype.getAssociations=function(){return[]};var Bkd=function(){HA.apply(this,arguments)};
_.C(Bkd,HA);Bkd.prototype.getAssociations=function(){return[]};var IAh=function(){HA.apply(this,arguments)};
_.C(IAh,HA);IAh.prototype.getAssociations=function(){return[]};var nmh=function(){HA.apply(this,arguments)};
_.C(nmh,HA);nmh.prototype.getAssociations=function(){return[]};var bfu=function(){HA.apply(this,arguments)};
_.C(bfu,HA);bfu.prototype.getAssociations=function(){return[]};var Nke=function(){HA.apply(this,arguments)};
_.C(Nke,HA);Nke.prototype.getAssociations=function(){return[]};var Ktu=function(){HA.apply(this,arguments)};
_.C(Ktu,HA);Ktu.prototype.getAssociations=function(){return[]};_.se=new _.L("dislikeButtonViewModel");_.wJ=new _.L("likeButtonViewModel");var $Is=new _.L("videoSummaryContentViewModel");var uzu=new _.L("videoSummaryParagraphViewModel");var jz_=new _.L("changeTimelyActionVisibilityCommand");var lAi=new _.L("hideEngagementPanelEndpoint");var Ybl=new _.L("refreshPanelEndpoint");var Cdd=new _.L("scrollToSectionEndpoint");var Hfu=new _.L("seekToVideoTimestampCommand");_.M7=new _.L("showEngagementPanelEndpoint");var DIT=new _.L("showTransientPlayerScrimOverlayCommand");var pmh=new _.L("toggleEngagementPanelCommand");_.h7l=new _.L("createBroadcastCommand");var qbp=new _.L("metadataUpdateCommand");var Tkd=function(){HA.apply(this,arguments)};
_.C(Tkd,HA);Tkd.prototype.getAssociations=function(){return[]};var wmd=function(){HA.apply(this,arguments)};
_.C(wmd,HA);wmd.prototype.getAssociations=function(){return[]};var sze=function(){HA.apply(this,arguments)};
_.C(sze,HA);sze.prototype.getAssociations=function(){return[]};_.MVh=new _.L("merchandiseShelfRenderer");var ifp=new _.L("gridMovieRenderer");_.Zfd=new _.L("movieRenderer");var GrT=function(){HA.apply(this,arguments)};
_.C(GrT,HA);GrT.prototype.getAssociations=function(){var S=[];this.delegate.trackDownloadMetadatas&&S.push.apply(S,_.Hs(this.delegate.trackDownloadMetadatas));return[].concat(_.Hs(new Set(S)))};var Wtd=function(){HA.apply(this,arguments)};
_.C(Wtd,HA);
Wtd.prototype.getAssociations=function(){var S=[];this.delegate.downloadedTracks&&S.push.apply(S,_.Hs(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&S.push.apply(S,_.Hs(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&S.push.apply(S,_.Hs(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&S.push.apply(S,_.Hs(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&S.push.apply(S,_.Hs(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
S.push.apply(S,_.Hs(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&S.push.apply(S,_.Hs(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&S.push.apply(S,_.Hs(this.delegate.metadataOnlyTracks));return[].concat(_.Hs(new Set(S)))};var gml=function(){HA.apply(this,arguments)};
_.C(gml,HA);gml.prototype.getAssociations=function(){var S=[];this.delegate.trackDownloadMetadatas&&S.push.apply(S,_.Hs(this.delegate.trackDownloadMetadatas));return[].concat(_.Hs(new Set(S)))};var e7J=function(){HA.apply(this,arguments)};
_.C(e7J,HA);e7J.prototype.getAssociations=function(){var S=[];this.delegate.playbackData&&S.push(this.delegate.playbackData);this.delegate.localImageEntities&&S.push.apply(S,_.Hs(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Hs(new Set(S)))};var kr_=function(){HA.apply(this,arguments)};
_.C(kr_,HA);
kr_.prototype.getAssociations=function(){var S=[];this.delegate.musicLibraryStatusEntity&&S.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&S.push.apply(S,_.Hs(this.delegate.primaryArtists));this.delegate.details&&S.push(this.delegate.details);this.delegate.userDetails&&S.push(this.delegate.userDetails);this.delegate.tracks&&S.push.apply(S,_.Hs(this.delegate.tracks));this.delegate.share&&S.push(this.delegate.share);this.delegate.downloadMetadata&&S.push(this.delegate.downloadMetadata);this.delegate.refresh&&
S.push(this.delegate.refresh);return[].concat(_.Hs(new Set(S)))};
var rms=function(){HA.apply(this,arguments)};
_.C(rms,HA);rms.prototype.getAssociations=function(){var S=[];this.delegate.albumRelease&&S.push(this.delegate.albumRelease);this.delegate.tracks&&S.push.apply(S,_.Hs(this.delegate.tracks));return[].concat(_.Hs(new Set(S)))};
var dIu=function(){HA.apply(this,arguments)};
_.C(dIu,HA);dIu.prototype.getAssociations=function(){var S=[];this.delegate.albumRelease&&S.push(this.delegate.albumRelease);return[].concat(_.Hs(new Set(S)))};var vm$=function(){HA.apply(this,arguments)};
_.C(vm$,HA);vm$.prototype.getAssociations=function(){var S=[];this.delegate.details&&S.push(this.delegate.details);this.delegate.userDetails&&S.push(this.delegate.userDetails);return[].concat(_.Hs(new Set(S)))};
var Pd_=function(){HA.apply(this,arguments)};
_.C(Pd_,HA);Pd_.prototype.getAssociations=function(){var S=[];this.delegate.parentArtist&&S.push(this.delegate.parentArtist);return[].concat(_.Hs(new Set(S)))};
var Ltd=function(){HA.apply(this,arguments)};
_.C(Ltd,HA);Ltd.prototype.getAssociations=function(){var S=[];this.delegate.parentArtist&&S.push(this.delegate.parentArtist);return[].concat(_.Hs(new Set(S)))};var Emu=function(){HA.apply(this,arguments)};
_.C(Emu,HA);Emu.prototype.getAssociations=function(){return[]};var tVs=function(){HA.apply(this,arguments)};
_.C(tVs,HA);tVs.prototype.getAssociations=function(){return[]};var VVh=function(){HA.apply(this,arguments)};
_.C(VVh,HA);
VVh.prototype.getAssociations=function(){var S=[];this.delegate.tracks&&S.push.apply(S,_.Hs(this.delegate.tracks));this.delegate.refresh&&S.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&S.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&S.push(this.delegate.details);this.delegate.downloadMetadata&&S.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&S.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&S.push(this.delegate.userDetails);this.delegate.entryCollection&&
S.push(this.delegate.entryCollection);this.delegate.share&&S.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&S.push.apply(S,_.Hs((new R7z(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Hs(new Set(S)))};
var R7z=function(){Ck.apply(this,arguments)};
_.C(R7z,Ck);R7z.prototype.getAssociations=function(){var S=[];this.delegate.creatorEntity&&S.push(this.delegate.creatorEntity);return[].concat(_.Hs(new Set(S)))};var ymH=function(){HA.apply(this,arguments)};
_.C(ymH,HA);ymH.prototype.getAssociations=function(){return[]};var oms=function(){HA.apply(this,arguments)};
_.C(oms,HA);
oms.prototype.getAssociations=function(){var S=[];this.delegate.musicLibraryStatusEntity&&S.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&S.push.apply(S,_.Hs(this.delegate.artists));this.delegate.audioModeVersion&&S.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&S.push(this.delegate.videoModeVersion);this.delegate.userDetails&&S.push(this.delegate.userDetails);this.delegate.details&&S.push(this.delegate.details);this.delegate.albumRelease&&S.push(this.delegate.albumRelease);this.delegate.share&&
S.push(this.delegate.share);this.delegate.libraryEdit&&S.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&S.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&S.push(this.delegate.playbackPosition);this.delegate.lyrics&&S.push(this.delegate.lyrics);return[].concat(_.Hs(new Set(S)))};
var mIJ=function(){HA.apply(this,arguments)};
_.C(mIJ,HA);mIJ.prototype.getAssociations=function(){var S=[];this.delegate.parentTrack&&S.push(this.delegate.parentTrack);return[].concat(_.Hs(new Set(S)))};
var SEd=function(){HA.apply(this,arguments)};
_.C(SEd,HA);SEd.prototype.getAssociations=function(){var S=[];this.delegate.parentTrack&&S.push(this.delegate.parentTrack);return[].concat(_.Hs(new Set(S)))};var QG=new _.L("musicResponsiveListItemRenderer");var hNz=new _.L("addToPlaylistEndpoint");var c1p=new _.L("captionPickerEndpoint");var Q8u=new _.L("suggestStats");var fPs=new _.L("backstageImageUploadEndpoint");var USh=new _.L("createBackstagePostDialogEndpoint");_.J1_=new _.L("createCommentReplyDialogEndpoint");_.aP$=new _.L("updateCommentDialogEndpoint");_.A1T=new _.L("updateCommentReplyDialogEndpoint");var X9z=new _.L("menuEndpoint");var uRp=new _.L("modalEndpoint");var Owd=new _.L("playlistEditorEndpoint");var z1i=new _.L("copyTextEndpoint");var xSz,Fus;xSz=new _.L("shareEndpoint");Fus=new _.L("shareEntityEndpoint");_.B3u=new _.L("shareEntityServiceEndpoint");_.kPp=new _.L("userFeedbackEndpoint");_.tG=new _.L("watchEndpoint");var UcZ=new _.L("watchPlaylistEndpoint");var IPl=new _.L("addUpcomingEventReminderEndpoint");_.sa=new _.L("getCommentsFromInboxCommand");var nod=new _.L("notificationOptOutEndpoint");var bwp=new _.L("recordNotificationInteractionsEndpoint");var N3p=new _.L("removeUpcomingEventReminderEndpoint");var DbY=new _.L("getDownloadActionCommand");_.Kud=new _.L("offlineOrchestrationActionCommand");var $Sp=function(){HA.apply(this,arguments)};
_.C($Sp,HA);$Sp.prototype.getAssociations=function(){return[]};var uxp=function(){HA.apply(this,arguments)};
_.C(uxp,HA);uxp.prototype.getAssociations=function(){return[]};var j8l=function(){HA.apply(this,arguments)};
_.C(j8l,HA);j8l.prototype.getAssociations=function(){return[]};var lPp=function(){HA.apply(this,arguments)};
_.C(lPp,HA);lPp.prototype.getAssociations=function(){return[]};var YEd=function(){HA.apply(this,arguments)};
_.C(YEd,HA);YEd.prototype.getAssociations=function(){var S=[];this.delegate.transfer&&S.push(this.delegate.transfer);this.delegate.adsPlaybackData&&S.push.apply(S,_.Hs(this.delegate.adsPlaybackData));this.delegate.drmLicense&&S.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&S.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&S.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Hs(new Set(S)))};var C4d=function(){HA.apply(this,arguments)};
_.C(C4d,HA);C4d.prototype.getAssociations=function(){return[]};var HwJ=function(){HA.apply(this,arguments)};
_.C(HwJ,HA);HwJ.prototype.getAssociations=function(){var S=[];this.delegate.offlineVideoStreams&&S.push.apply(S,_.Hs(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&S.push.apply(S,_.Hs(this.delegate.captionTrack));return[].concat(_.Hs(new Set(S)))};var DSH=function(){HA.apply(this,arguments)};
_.C(DSH,HA);DSH.prototype.getAssociations=function(){return[]};var p9u=new _.L("showMoreDrawerCommand");var h1u=new _.L("updateEngagementPanelContentCommand");var qEu=new _.L("getPdgBuyFlowCommand");var T3h=new _.L("liveChatPurchaseMessageEndpoint");var w9d=new _.L("openSuperStickerBuyFlowCommand");var s8d=new _.L("updatePdgFeatureEnablementCommand");var Mgs=function(){HA.apply(this,arguments)};
_.C(Mgs,HA);Mgs.prototype.getAssociations=function(){return[]};var iwe=function(){HA.apply(this,arguments)};
_.C(iwe,HA);iwe.prototype.getAssociations=function(){return[]};_.ZwJ=new _.L("pdgCommentChipRenderer");_.Ggs=new _.L("permissionRoleBottomBarRenderer");_.Wu_=new _.L("updatePermissionRoleCommand");var goh=new _.L("prefetchWatchCommand");var e1p=new _.L("updatePlayerErrorMessageCommand");var $bc=new _.L("toggleCaptionsVisibilityCommand");_.kgJ=new _.L("quickActionsViewModel");var r1d=new _.L("playerResponse");var dSi=new _.L("playlistRenderer");_.vod=new _.L("playlistVideoListRenderer");_.MB=new _.L("playlistEditEndpoint");var P4s=new _.L("createImagePollCommand");var LuT=new _.L("createQuizCommand");var EoH=new _.L("quizRenderer");var tgh=new _.L("uploadedVideoRenderer");var VgH=new _.L("decorateMessageEndpoint");var R1_=new _.L("lpOfferCardOptionViewModel");var y1h=new _.L("sfvAudioItemPlaybackCommand");var oou=function(){HA.apply(this,arguments)};
_.C(oou,HA);oou.prototype.getAssociations=function(){return[]};_.iA=new _.L("reelNonVideoContentEndpoint");_.ll=new _.L("reelWatchEndpoint");_.Zw=new _.L("reelItemRenderer");_.mSH=new _.L("reelMetapanelViewModel");_.SWh=new _.L("reelNonVideoContentRenderer");_.ckd=new _.L("reelPlayerOverlayRenderer");var Q0e=new _.L("shortsLockupViewModel");var f2d=new _.L("sponsorButtonViewModel");var UYh=new _.L("reelItemWatchResponse");var Jkp=new _.L("textBadgeRenderer");_.GF=new _.L("buttonRenderer");_.WA=new _.L("toggleButtonRenderer");var HQT=new _.L("switchButtonViewModel");_.a2l=new _.L("confirmDialogRenderer");var Aks;Aks=new _.L("menuRenderer");_.XEJ=new _.L("menuFlexibleItemRenderer");var OLi=new _.L("pollRenderer");_.zkz=new _.L("backgroundPromoRenderer");var FUd;_.xYJ=new _.L("chipCloudRenderer");FUd=new _.L("chipCloudChipRenderer");var B6h=new _.L("dropdownRenderer");var I2_=new _.L("gridVideoRenderer");_.nNl=new _.L("itemSectionRenderer");_.bLe=new _.L("messageRenderer");var N6d=new _.L("sortFilterHeaderRenderer");_.gx=new _.L("videoRenderer");var KUp=new _.L("resolveUrlCommandMetadata");var $Yd=function(){HA.apply(this,arguments)};
_.C($Yd,HA);$Yd.prototype.getAssociations=function(){return[]};_.ugs=new _.L("getAnswerCommand");_.$k=new _.L("searchEndpoint");var j0u=new _.L("genAiRichTextViewModel");var HdM=new _.L("overviewAnswerViewModel");var l2d=new _.L("addToPlaylistServiceEndpoint");var YWp=new _.L("clearSearchHistoryEndpoint");var CKz=new _.L("clearWatchHistoryEndpoint");var HLd=new _.L("webSerializedServiceEndpointExtension");_.DYd=new _.L("createCommentEndpoint");var pEp=new _.L("createCommentReplyEndpoint");var hkl=new _.L("performCommentActionEndpoint");var qWz=new _.L("updateCommentEndpoint");var T6T=new _.L("updateCommentReplyEndpoint");_.eT=new _.L("createPlaylistServiceEndpoint");var wEs=new _.L("deletePlaylistEndpoint");var s0d=new _.L("deleteVideoEndpoint");var p4Z=new _.L("getReportFormEndpoint");var M5H=new _.L("modifyChannelNotificationPreferenceEndpoint");var deM;_.Ii=new _.L("offlinePlaylistEndpoint");deM={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 vVY;_.BK=new _.L("offlineVideoEndpoint");vVY={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 g1T=new _.L("pingingEndpoint");_.e6H=new _.L("selectActiveIdentityEndpoint");var kpH=new _.L("setSettingEndpoint");var OFH=new _.L("undoFeedbackEndpoint");var ree=new _.L("unsubscribeEndpoint");_.d9i=new _.L("updatedMetadataEndpoint");var v1e=function(){HA.apply(this,arguments)};
_.C(v1e,HA);v1e.prototype.getAssociations=function(){return[]};_.Pcd=new _.L("updateLocalAppSettingCommand");var LIp=new _.L("saveImageToDeviceEndpoint");var E1d=new _.L("shareImageCommand");var tss=new _.L("sharingProviderDataCommand");var Vsp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Vsp,_.Ga);var R6u=[0,_.VQ,-1];Vsp.prototype.JSC$10315_serializeBinary=cjM(R6u);var ye$=_.oA(R6u);var o1d=new _.L("userMentionSuggestionRenderer");var m9u=new _.L("liveChatTunnelCommand");var Sas=new _.L("showSponsorshipsGiftOfferDialogCommand");var cpi=new _.L("sponsorshipsScrollableShelfViewModel");var QJd=new _.L("updateUpcomingEventReminderButtonStateCommand");var fwd=new _.L("upcomingEventReminderButtonStateRenderer");var UBJ=new _.L("subscribeEndpoint");var Jpz=new _.L("registerTasksCommand");var awe=new _.L("hideSnackbarCommand");var Apd=new _.L("showDialogCommand");_.KS=new _.L("showSheetCommand");var XAs=new _.L("showSnackbarCommand");var Okz=function(){HA.apply(this,arguments)};
_.C(Okz,HA);Okz.prototype.getAssociations=function(){return[]};var zOd=function(){HA.apply(this,arguments)};
_.C(zOd,HA);zOd.prototype.getAssociations=function(){return[]};_.Ee=new _.L("avatarViewModel");var xBh=new _.L("badgeViewModel");_.Ya=new _.L("buttonViewModel");_.kc=new _.L("chipViewModel");var ZQz=new _.L("collectionThumbnailViewModel");var FxT=new _.L("contentPreviewImageViewModel");var Bxz=new _.L("decoratedAvatarViewModel");var RcZ=new _.L("downloadButtonViewModel");_.pBM=new _.L("engagementBarViewModel");_.Iwu=new _.L("imageBannerViewModel");var haT=new _.L("lockupContentMetadataRowExtension");var ncd=new _.L("lockupMetadataViewModel");_.bk$=new _.L("lockupViewModel");var Nxu=new _.L("avatarStackViewModel");var Kxz=function(){HA.apply(this,arguments)};
_.C(Kxz,HA);Kxz.prototype.getAssociations=function(){return[]};_.$B$=new _.L("pageHeaderViewModel");var uPd=new _.L("snackbarViewModel");var jJ_=new _.L("thumbnailHoverOverlayToggleActionsViewModel");_.CS=new _.L("toggleButtonViewModel");var lw_=function(){HA.apply(this,arguments)};
_.C(lw_,HA);lw_.prototype.getAssociations=function(){return[]};_.hXT=new _.L("votingViewModel");var Yaz=new _.L("sectionHeaderViewModel");var CAJ=new _.L("notifyDropdownOptionSelectedCommand");var ZIc=new _.L("listViewModel");_.$a=new _.L("listItemViewModel");var Hkp=new _.L("dialogHeaderViewModel");var DBH=function(){HA.apply(this,arguments)};
_.C(DBH,HA);DBH.prototype.getAssociations=function(){return[]};var pAi=function(){HA.apply(this,arguments)};
_.C(pAi,HA);pAi.prototype.getAssociations=function(){return[]};var hOi=function(){HA.apply(this,arguments)};
_.C(hOi,HA);hOi.prototype.getAssociations=function(){return[]};_.qaz=new _.L("transcriptSubmitCaptionCorrectionCommand");var Txi=function(){HA.apply(this,arguments)};
_.C(Txi,HA);Txi.prototype.getAssociations=function(){return[]};var Xwx=new _.L("unpluggedStringRunImage");var wAH=new _.L("tabViewModel");var sJh=new _.L("tabbedViewModel");var MTu=function(){HA.apply(this,arguments)};
_.C(MTu,HA);MTu.prototype.getAssociations=function(){return[]};_.ik_=new _.L("updateDescriptionAction");var ZkJ=new _.L("updateToggleButtonTextAction");_.GFp=new _.L("autoplaySwitchButtonRenderer");var W$;_.Wxh=new _.L("multiMarkersPlayerBarRenderer");W$=new _.L("chapterRenderer");var gci=new _.L("heatMarkerRenderer");var j_x=new _.L("heatmapRenderer");var eOd=new _.L("smartSkipPlayerScrimOverlayRenderer");var kFd=new _.L("timedMarkerDecorationRenderer");var nfM=new _.L("postWebToNativeMessageCommand");var rpi=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(rpi,_.Ga);var dBh=_.yf(rpi,[0,_.VQ,-2]);var vce=new _.L("whitelistEditEndpoint");var PAs=new _.L("clearUrlParamCommand");var LxH=new _.L("commerceActionCommand");_.Ecs=new _.L("getPaymentInstrumentsParamsCommand");var tTd=new _.L("getPaymentsClientTokenCommand");var VTp=new _.L("googlePaymentBillingCommand");var ROT=new _.L("googlePaymentPurchaseManagerCommand");_.ypJ=new _.L("logGtmCommand");var ocz=new _.L("updateCardItemOnClickCommand");_.mBJ=new _.L("ypcPauseSubscriptionCommand");_.Sci=new _.L("ypcResumeSubscriptionCommand");var cAz=function(){HA.apply(this,arguments)};
_.C(cAz,HA);cAz.prototype.getAssociations=function(){return[]};var QFd=function(){HA.apply(this,arguments)};
_.C(QFd,HA);QFd.prototype.getAssociations=function(){return[]};var fCd=function(){HA.apply(this,arguments)};
_.C(fCd,HA);fCd.prototype.getAssociations=function(){return[]};var Uid=function(){HA.apply(this,arguments)};
_.C(Uid,HA);Uid.prototype.getAssociations=function(){return[]};var JAd=function(){HA.apply(this,arguments)};
_.C(JAd,HA);JAd.prototype.getAssociations=function(){return[]};var n2T=new _.L("ypcOffersEndpoint");var aCd=new _.L("cardItemRenderer"),AAe=new _.L("cardItemTextRenderer");var XLe=new _.L("commerceCartItemQuantityPickerRenderer");var OtH=new _.L("linkCardRenderer");var XvR=new _.L("quantityIncrementerButtonViewModel");var zeu=new _.L("quantityIncrementerViewModel");var xis=new _.L("themedImageViewModel");_.F6h=new _.L("ypcCancelRecurrenceEndpoint");var B2d=new _.L("ypcCompleteTransactionEndpoint");_.ICh=new _.L("ypcGetCartEndpoint");_.aC=new _.L("ypcGetOffersEndpoint");_.rx=new _.L("ypcHandleTransactionEndpoint");var nAu=new _.L("ypcLogWalletAnalyticDataEndpoint");_.bte=new _.L("ypcRedeemCodeEndpoint");var N2e=new _.L("ypcUpdateFopEndpoint");Ua(fk(1),cA(4));WDH((new MessageChannel).port2);var K6h=function(){this.register=new Map},M1z=function(S,c,Q){S=S+"_"+c;
dx.register.has(S)?Q=dx.register.get(S):(Q=Q(),dx.register.set(S,Q));return Q},$iu=function(S){S=_.A(S.register.values());
for(var c=S.next();!c.done;c=S.next())_.nj(c.value,"ABORTED")};
K6h.prototype.clear=function(){$iu(this);this.register.clear()};
var dx=new K6h;var IgZ=Date.now().toString();var b0M,u2_=_.QY.ytLoggingDocDocumentNonce_;u2_||(u2_=hG(16),_.m5("ytLoggingDocDocumentNonce_",u2_));b0M=u2_;var CSY={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 jFs;jFs=1;_.qE=function(S){this.veData=S};
_.Yz=function(S){return new _.qE({trackingParams:S})};
_.qo=function(S,c,Q,f,U,a){var X=jFs++;return new _.qE({veType:S,veCounter:X,elementIndex:Q,dataElement:c,youtubeData:f,jspbYoutubeData:U,loggingDirectives:a})};
_.J=_.qE.prototype;
_.J.getAsJson=function(){var S={};this.veData.trackingParams!==void 0?S.trackingParams=this.veData.trackingParams:(S.veType=this.veData.veType,this.veData.veCounter!==void 0&&(S.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(S.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(S.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(S.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(S.isCounterfactual=!0);
return S};
_.J.getAsJspb=function(){var S=new yl$;this.veData.trackingParams!==void 0?S.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.gr(S,2,this.veData.veType),this.veData.veCounter!==void 0&&_.gr(S,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.gr(S,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.aj(S,5,!0));if(this.veData.dataElement!==void 0){var c=this.veData.dataElement.getAsJspb();_.Qx(S,7,c)}this.veData.youtubeData!==void 0&&_.Qx(S,8,this.veData.jspbYoutubeData);
return S};
_.J.toString=function(){return JSON.stringify(this.getAsJson())};
_.J.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.J.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.m5("yt_logging_screen.getRootVeType",jaZ);_.m5("yt_logging_screen.getCurrentCsn",_.wN);_.m5("yt_logging_screen.getCttAuthInfo",sM);_.m5("yt_logging_screen.setCurrentScreen",_.ME);var lCz=function(){this.events=new Map},YcT=function(S){var c=[];
S=_.A(S.events.values());for(var Q=S.next();!Q.done;Q=S.next())c.push(Q.value);return c};
lCz.prototype.clear=function(){this.events.clear()};var Htz=function(){this.logTransport=new CnH;this.loggedEventRegister=new lCz;this.unloggedEventRegister=new lCz;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10372_flushTimer=new _.Q7(this.flushInterval);this.JSC$10372_flushTimer.listen("tick",this.flush,!1,this)};
Htz.prototype.flush=function(){if(this.eventsCount){var S={loggedEvents:YcT(this.loggedEventRegister),unloggedEvents:YcT(this.unloggedEventRegister)};if(_.u("export_player_version_to_ytconfig")){var c;(c=_.WY("PLAYER_CLIENT_VERSION"))?(c=c.split("-")[0].replace(/\./g,""),c=isNaN(Number(c))?"0":c):c="";var Q=_.WY("PLAYER_CLIENT_VERSION");if(Q){Q=Q.split("-");var f="";Q.length>1&&(f=Q[Q.length-1]);Q=BTz(f.startsWith("canary_experiment")?"canary":f.startsWith("canary_control")?"control":"none")}else Q=
"CLIENT_CANARY_STATE_UNKNOWN";S.dimensions={playerClientVersion:c,playerCanaryState:Q}}this.logTransport.flush(S);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10372_flushTimer.enabled&&this.JSC$10372_flushTimer.stop()}};
var Diu=function(S){vA==null&&(vA=new Htz);var c=vA;var Q=c.loggedEventRegister;S.dimensions=S.dimensions||{};S.dimensions.csn=_.wN()||"";var f=pHp(S.dimensions).join(";");if(S.records!=null)if(Q.events.has(f)){var U;(U=Q.events.get(f).records)==null||U.push.apply(U,_.Hs(S.records))}else Q.events.set(f,S);c.JSC$10372_flushTimer.enabled||c.JSC$10372_flushTimer.start();c.eventsCount++;c.eventsCount>=100&&c.flush()};var CnH=function(){};
CnH.prototype.flush=function(S,c){_.u("enable_client_sli_logging")&&_.Te("sliEventBatch",S,{sendIsolatedPayload:!!c})};var vA;var hep;hep=function(S){var c=pLd;S=S===void 0?{}:S;c=c.name;var Q=saZ("SUCCESS");Diu({dimensions:S,records:[{name:c,state:"SLI_STATE_END",status:Q}]})};
_.i0z=function(S,c,Q,f){this.name=S;this.sliId=c;this.timeoutMs=Q;this.statusOnTimeout=f;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.i0z.prototype.getId=function(){return this.sliId};
_.IK=function(S,c){c=c===void 0?{}:c;S.ongoing||(S.ongoing=!0,S.dimensions=c,S.logSliId=HvT(),Diu({dimensions:S.dimensions,records:[{name:S.name,state:"SLI_STATE_START",sliId:S.logSliId}]}),S.timeoutMs>0&&(S.timeoutHandle=setTimeout(function(){_.nj(S,S.statusOnTimeout)},S.timeoutMs)))};
_.nj=function(S,c){S.ongoing&&(S.timeoutMs>0&&clearTimeout(S.timeoutHandle),S.ongoing=!1,c={dimensions:S.dimensions,records:[{name:S.name,status:saZ(c),state:"SLI_STATE_END",sliId:S.logSliId}]},dx.register.delete(S.name+"_"+S.sliId),Diu(c))};var pLd=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var qcz=function(){HA.apply(this,arguments)};
_.C(qcz,HA);qcz.prototype.getAssociations=function(){return[]};var toc=new _.L("highlightTextDecoratorColorMapExtension");var Lix=new _.L("styleRunColorMapExtension");var r3c=_.oK(["data-"]),PSY={};var E5x={};var PA=function(S){this.wrappedPromise_=S===void 0?null:S;this.state_=0;this.JSC$10404_value_=null};
PA.prototype.then=function(S,c,Q){return this.wrappedPromise_?this.wrappedPromise_.then(S,c,Q):this.state_===1&&S?(S=S.call(Q,this.JSC$10404_value_))&&typeof S.then==="function"?S:_.Lk(S):this.state_===2&&c?(S=c.call(Q,this.JSC$10404_value_))&&typeof S.then==="function"?S:_.T2d(S):this};
PA.prototype.getValue=function(){return this.JSC$10404_value_};
PA.prototype.isRejected=function(){return this.state_==2};
EZd(PA);_.T2d=function(S){var c=new PA;S=S===void 0?null:S;c.state_=2;c.JSC$10404_value_=S===void 0?null:S;return c};
_.Lk=function(S){var c=new PA;S=S===void 0?null:S;c.state_=1;c.JSC$10404_value_=S===void 0?null:S;return c};var Xmz="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var wLz=["load","abort","error"],Ea=function(S,c,Q){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10424_maxAspectRatio_=S;this.disableAnimation_=c===void 0?!1:c;this.disableExifRotation_=Q===void 0?!1:Q;this.JSC$10424_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10424_reject_=this.resolve_=null};
Ea.prototype.transform=function(S){var c=this;this.mime_=S.type;VE(Lqp(S),this.dataUrlRead_,this.readError_,this);VE(P2i(S.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(Q,f){c.resolve_=Q;c.JSC$10424_reject_=f})};
Ea.prototype.dataUrlRead_=function(S){this.dataUrl_=S;this.angle_!=null&&sFs(this)};
Ea.prototype.exifRead_=function(S){if(this.disableExifRotation_)this.angle_=0;else{a:if(S=new DataView(S),S.byteLength<2||S.getUint16(0)!==65496)S=-2;else{for(var c=2,Q=S.byteLength;c<Q;){var f=S.getUint16(c),U=S.getUint16(c+2);if(f===65505){c+=4;f=S.getUint32(c);U=S.getUint16(c+4);if(f!==1165519206||U!==0)break;c+=6;f=S.getUint16(c)===18761;c+=S.getUint32(c+4,f);U=S.getUint16(c,f);c+=2;for(var a=0;a<U;a++){if(S.getUint16(c,f)===274){c+=8;S=S.getUint16(c,f);break a}c+=12}}else if(f>>8!==255)break;
else c+=U+2}S=-1}switch(S){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&&sFs(this)};
Ea.prototype.readError_=function(){this.JSC$10424_reject_()};
var sFs=function(S){jw(S.JSC$10424_image_,wLz,S.completeTransform_,!1,S);S.JSC$10424_image_.src=_.jS(S.dataUrl_).toString();S.JSC$10424_image_.src!=uo.toString()&&S.JSC$10424_image_.src.substr(0,11)==="data:image/"||S.JSC$10424_reject_()};
Ea.prototype.completeTransform_=function(){if(this.JSC$10424_image_.src!=uo.toString()){var S=_.jS(this.dataUrl_),c=this.JSC$10424_image_.naturalHeight?this.JSC$10424_image_.naturalWidth/this.JSC$10424_image_.naturalHeight:null;this.invalidAspectRatio=c>this.JSC$10424_maxAspectRatio_||c<1/this.JSC$10424_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var Q=this.JSC$10424_image_.naturalWidth,f=this.JSC$10424_image_.naturalHeight,U=c=0,a=this.JSC$10424_image_.naturalHeight?this.JSC$10424_image_.naturalWidth/
this.JSC$10424_image_.naturalHeight:null;a>this.JSC$10424_maxAspectRatio_?(Q=this.JSC$10424_maxAspectRatio_*f,c=(Q-this.JSC$10424_image_.naturalWidth)/2,this.cropped=!0):a<1/this.JSC$10424_maxAspectRatio_?(f=this.JSC$10424_maxAspectRatio_*Q,U=(f-this.JSC$10424_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)a=Q,Q=f,f=a,a=c,c=U,U=a;switch(this.angle_){case 90:U-=Q;break;case 180:c-=Q;U-=f;break;case 270:c-=
f}this.cropped||this.angle_%360!==0?(S=document.createElement("canvas"),S.width=Q||1,S.height=f||1,this.JSC$10424_image_.naturalWidth&&this.JSC$10424_image_.naturalHeight&&(Q=S.getContext("2d"),Q.rotate(Math.PI/180*this.angle_),Q.drawImage(this.JSC$10424_image_,c,U,this.JSC$10424_image_.naturalWidth,this.JSC$10424_image_.naturalHeight)),this.transformedData=_.jS(S.toDataURL(this.mime_))):this.transformedData=S}else this.transformedData=S;this.resolve_(this)}};var tp=function(S,c){_.K0.call(this,S);this.value=c};
_.C(tp,_.K0);
var Vo=function(S,c,Q,f,U,a,X){X=X===void 0?!1:X;_.Y5.call(this);var z=this;this.JSC$10429_url_=S;this.channelId_=c;this.maxFileSizeMb_=Q;this.JSC$10429_maxAspectRatio_=f;this.dropZoneEl_=U;this.rejectInvalidAspectRatio_=X;this.selectButtonEl_=a;this.JSC$10429_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new FP(this.dropZoneEl_);this.selectOverlay_=new BA(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10429_image_=this.transfer_=null;this.handler_=new _.fP(this);_.F5(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(a,"click",function(){z.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.C(Vo,_.Y5);Vo.prototype.disposeInternal=function(){for(var S=this.selectButtonEl_.nextSibling;S&&S.parentNode&&S.tagName=="INPUT";)S.parentNode.removeChild(S),S=this.selectButtonEl_.nextSibling;this.cancel();_.Y5.prototype.disposeInternal.call(this)};
Vo.prototype.uploadPromise=function(){if(this.JSC$10429_image_==null)return null;this.uploadPromise_||Mnh(this);return this.uploadPromise_};
Vo.prototype.cancel=function(){itu(this);this.JSC$10429_image_=null};
var itu=function(S){S.transfer_&&S.transfer_.cancel();S.transfer_=null;S.uploadPromise_=null;S.resolve_=null;S.JSC$10429_reject_=null},Mnh=function(S){itu(S);
S.transfer_=_.Oj$(S.JSC$10429_url_,{"X-YouTube-ChannelId":S.channelId_},S.JSC$10429_image_);S.handler_.listenOnce(S.transfer_,"l",S.JSC$10431_onUploadComplete_);S.handler_.listenOnce(S.transfer_,"n",S.onUploadError_);S.transfer_.run();S.uploadPromise_=new Promise(function(c,Q){S.resolve_=c;S.JSC$10429_reject_=Q})};
_.J=Vo.prototype;_.J.onChange_=function(S){S.files.length&&(this.JSC$10429_image_=S.files[0],this.JSC$10429_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10429_image_=null,this.dispatchEvent(new tp("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(Mnh(this),(new Ea(this.JSC$10429_maxAspectRatio_)).transform(this.JSC$10429_image_).then((0,_.H1)(this.onPreview_,this),(0,_.H1)(this.onPreviewError_,this))))};
_.J.onPreview_=function(S){if(S.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10429_image_=null),this.dispatchEvent(new tp("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;S.cropped&&this.dispatchEvent(new tp("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new tp("yt.comments.ImageUploadOverlay.CHANGE_EVENT",S.transformedData))};
_.J.onPreviewError_=function(){this.JSC$10429_image_=null;this.dispatchEvent(new tp("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.J.onHover_=function(S){S.stopPropagation();S.preventDefault();if(S.type==="dragover")S=!0;else if(S.type==="dragleave")S=!1;else return;this.dispatchEvent(new tp("yt.comments.ImageUploadOverlay.HOVER_EVENT",S))};
_.J.JSC$10431_onUploadComplete_=function(){var S=(0,_.N_h)(this.transfer_.getResponseText());this.resolve_(S.encryptedBlobId)};
_.J.onUploadError_=function(){this.JSC$10429_reject_();itu(this)};var Zt_=function(S){S=S||{};var c={},Q={};this.url=S.url||"";this.args=S.args||_.Cn.clone(c);this.assets=S.assets||{};this.attrs=S.attrs||_.Cn.clone(Q);this.fallback=S.fallback||null;this.fallbackMessage=S.fallbackMessage||null;this.html5=!!S.html5;this.disable=S.disable||{};this.loaded=!!S.loaded;this.messages=S.messages||{}};
Zt_.prototype.clone=function(){var S=new Zt_,c;for(c in this)if(this.hasOwnProperty(c)){var Q=this[c];S[c]=_.nT(Q)=="object"?_.Cn.clone(Q):Q}return S};var G7z,W6i,gAH,c$,k7d,rAJ,diz,vAd,PnT,L6s,EAp,tnd,VnH,Reh,yAT,oAi,miT,SxH,cKs,QtJ,fMT,Uuh,JKd,aMz,AKd,Xbh,OMd,zSl,xuH,YOM,Fn_,BcT,IMl,nRi,bMd,Ncs,Kni,$uh,u6e,jtH,lMz,Yxd,Csp,HMi,Duh,pbs,hST,qxh,Tc$,wbe,stu,MEd,iMu,ZMd,G3p,Wnd,RJ,gRJ,eSd,k3d,rKd,duu,vRd,Pss,LnH,ERe,tEu,VEl,RSp,yKp,oRi,mup,SLd,cNJ,QQ$,jVZ,fp$,Uc$,JNu,apu,ANp,XJ$,Oml,z5l,xcJ,Fyh,B4z,Ipp,nJ$,bmh,N4h,Kyd,$cu,ulp,jQJ,lpl,YLd,Cvu,Hme,DcT,pJJ;G7z=["account/accounts_list"];W6i=["acknowledge_channel_tou_strike"];gAH=["notification/add_upcoming_event_reminder"];
_.eep=["att/get"];c$=["browse","music/browse","unplugged/browse"];k7d=["channel/claim_legacy_youtube_channel"];rAJ=["history/clear_search_history"];diz=["history/clear_watch_history"];vAd=["comment/perform_comment_action"];PnT=["comment/get_comment_replies"];L6s=["ypc/commerce_action"];EAp=["backstage/create_post"];tnd=["live/create_broadcast"];VnH=["channel/create_channel"];Reh=["comment/create_comment_reply"];yAT=["comment/create_comment"];oAi=["live_chat/create_poll"];miT=["playlist/create"];
SxH=["decorate_message"];cKs=["live_chat/delete_message"];QtJ=["playlist/delete"];fMT=["video/delete"];Uuh=["like/dislike"];JKd=["dismissal/dismiss"];aMz=["flag/flag"];AKd=["flow"];Xbh=["account/account_menu"];OMd=["playlist/get_add_to_playlist"];zSl=["get_answer"];xuH=["channel/get_channel_creation_form"];YOM=["offline/get_download_action"];Fn_=["kids/get_kids_blocklist_picker"];BcT=["live_chat/get_item_context_menu"];IMl=["live_chat/get_live_chat_message_buy_flow"];nRi=["live_chat/get_live_chat_replay"];
bMd=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];Ncs=["live_chat/get_live_chat_super_sticker_buy_flow"];Kni=["notification/get_notification_menu"];$uh=["playlist/get_settings_editor"];u6e=["backstage/get_post_video_preview"];jtH=["account/get_profile_card"];lMz=["share/get_share_panel"];Yxd=["share/get_sharing_provider_data"];Csp=["get_survey"];HMi=["notification/get_unseen_count"];Duh=["get_user_mention_suggestions"];pbs=["get_watch"];hST=["guide"];
qxh=["feedback"];Tc$=["kids/update_blacklist"];wbe=["like/like"];stu=["live_chat/live_chat_action"];MEd=["live_chat/manage_user"];iMu=["video_manager/metadata_update"];ZMd=["live_chat/moderate"];G3p=["notification/modify_channel_preference"];Wnd=["notification/opt_out"];RJ=["get_panel","get_posts_by_host_panel"];gRJ=["player"];eSd=["browse/edit_playlist"];k3d=["notification/record_interactions"];rKd=["reel/reel_item_watch"];duu=["reel/reel_watch_sequence"];vRd=["like/removelike"];Pss=["notification/remove_upcoming_event_reminder"];
LnH=["flag/get_form"];ERe=["miniapp/report_value"];tEu=["navigation/resolve_url"];VEl=["channel/reveal_business_email"];RSp=["in_video/search"];yKp=["search","sfv/search","unplugged/search"];oRi=["live_chat/send_message"];mup=["live_chat/send_live_chat_vote"];SLd=["account/set_setting"];cNJ=["submit_caption_correction"];QQ$=["subscription/subscribe"];jVZ=["get_transcript"];fp$=["resolve_location","unplugged/resolve_location"];Uc$=["subscription/unsubscribe"];JNu=["backstage/update_post"];apu=["channel_edit/update_channel_page_settings"];
ANp=["comment/update_comment_reply"];XJ$=["comment/update_comment"];Oml=["comment/update_comments_settings"];z5l=["creator/update_creator_channel"];xcJ=["pdg/update_enablement"];Fyh=["updated_metadata"];B4z=["channel_edit/validate_channel_handle"];Ipp=["verify_age"];nJ$=["next","unplugged/watch_next"];bmh=["whitelist/edit"];N4h=["ypc/cancel_recurrence"];Kyd=["ypc/complete_transaction"];$cu=["ypc/get_cart"];ulp=["ypc/get_fix_instrument_params"];jQJ=["ypc/get_offers"];lpl=["ypc/get_payment_instruments_params"];
YLd=["ypc/handle_transaction"];Cvu=["ypc/log_payment_server_analytics"];Hme=["ypc/pause_subscription"];DcT=["ypc/redeem_code"];pJJ=["ypc/resume_subscription"];var h5d=[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 ND=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.m5("yt.msgs_",ND);var yo=new _.Sg("ACTION_ROUTER_TOKEN");_.oJ=function(){this.autonavState_=_.u("kevlar_is_pupi_enabled")?2:uzM()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.oJ.prototype.getState=function(){return this.autonavState_};
_.oJ.prototype.pause=function(S){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=S):this.autonavState_==1&&(this.disabledAutonavPauseReason_=S)};
_.oJ.prototype.setState=function(S,c,Q){c&&(this.autoplayChangedByUser=!0);c=this.autonavState_===3||S===3;this.autonavState_!=S&&(this.autonavState_=S,S!=3&&_.jzc(S==2),S=_.u("kevlar_is_pupi_enabled")?Q||c:!0,_.dQ.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,S,Q))};
_.oJ.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.ar(_.oJ);var mx=function(){this.hasRun=!1};var Sn={},szp=(Sn.auto_search="LATENCY_ACTION_AUTO_SEARCH",Sn.ad_to_ad="LATENCY_ACTION_AD_TO_AD",Sn.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",Sn.app_startup="LATENCY_ACTION_APP_STARTUP",Sn.browse="LATENCY_ACTION_BROWSE",Sn.cast_splash="LATENCY_ACTION_CAST_SPLASH",Sn.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",Sn.channels="LATENCY_ACTION_CHANNELS",Sn.chips="LATENCY_ACTION_CHIPS",Sn.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",Sn.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
Sn.editor="LATENCY_ACTION_EDITOR",Sn.embed="LATENCY_ACTION_EMBED",Sn.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",Sn.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",Sn.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",Sn.explore="LATENCY_ACTION_EXPLORE",Sn.favorites="LATENCY_ACTION_FAVORITES",Sn.home="LATENCY_ACTION_HOME",Sn.inboarding="LATENCY_ACTION_INBOARDING",Sn.landing="LATENCY_ACTION_LANDING",Sn.library="LATENCY_ACTION_LIBRARY",Sn.live=
"LATENCY_ACTION_LIVE",Sn.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",Sn.management="LATENCY_ACTION_MANAGEMENT",Sn.mini_app="LATENCY_ACTION_MINI_APP_PLAY",Sn.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",Sn.onboarding="LATENCY_ACTION_ONBOARDING",Sn.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",Sn.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",Sn.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",Sn.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
Sn.prebuffer="LATENCY_ACTION_PREBUFFER",Sn.prefetch="LATENCY_ACTION_PREFETCH",Sn.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",Sn.profile_switcher="LATENCY_ACTION_LOGIN",Sn.projects="LATENCY_ACTION_PROJECTS",Sn.reel_watch="LATENCY_ACTION_REEL_WATCH",Sn.results="LATENCY_ACTION_RESULTS",Sn.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Sn.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",Sn.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",Sn.review="LATENCY_ACTION_REVIEW",Sn.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",Sn.search_ui="LATENCY_ACTION_SEARCH_UI",Sn.search_suggest="LATENCY_ACTION_SUGGEST",Sn.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",Sn.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",Sn.seek="LATENCY_ACTION_PLAYER_SEEK",Sn.settings="LATENCY_ACTION_SETTINGS",Sn.store="LATENCY_ACTION_STORE",Sn.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",Sn.tenx="LATENCY_ACTION_TENX",Sn.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",Sn.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
Sn.watch="LATENCY_ACTION_WATCH",Sn.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",Sn["watch,watch7"]="LATENCY_ACTION_WATCH",Sn["watch,watch7_html5"]="LATENCY_ACTION_WATCH",Sn["watch,watch7ad"]="LATENCY_ACTION_WATCH",Sn["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",Sn.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",Sn.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",Sn.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",Sn.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",Sn.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",Sn.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",Sn.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",Sn.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",Sn),tVR=0;var SET=function(S,c){Cw.call(this,1,arguments);this.timer=c};
_.C(SET,Cw);var mIz=new FMT("aft-recorded",SET);var GrZ=_.QY.ytLoggingGelSequenceIdObj_||{};_.m5("ytLoggingGelSequenceIdObj_",GrZ);var cL=_.QY.ytLoggingLatencyUsageStats_||{};_.m5("ytLoggingLatencyUsageStats_",cL);var QO=function(){this.cleanupJob=0},e7z=function(){QO.instance||(QO.instance=new QO);
return QO.instance};
_.J=QO.prototype;_.J.baseline=function(S,c,Q){ft(this,"baseline_"+S)||_.Te("latencyActionBaselined",{clientActionNonce:S},{timestamp:c,cttAuthInfo:Q})};
_.J.tick=function(S,c,Q,f){ft(this,"tick_"+S+"_"+c)||_.Te("latencyActionTicked",{tickName:S,clientActionNonce:c},{timestamp:Q,cttAuthInfo:f})};
_.J.info=function(S,c,Q){var f=Object.keys(S).join("");ft(this,"info_"+f+"_"+c)||(S=Object.assign({},S),S.clientActionNonce=c,_.Te("latencyActionInfo",S,{cttAuthInfo:Q}))};
_.J.jspbInfo=function(S,c,Q){for(var f="",U=0;U<ca(S).length;U++)ca(S)[U]!==void 0&&(f=U===0?f.concat(""+U):f.concat("_"+U));ft(this,"info_"+f+"_"+c)||(_.bN(S,2,c),c={cttAuthInfo:Q},Q=_.u("jspb_sparse_encoded_pivot")?new C1([{}]):new C1,_.fc(Q,7,FYp,S),Wtp("latencyActionInfo",Q,c))};
_.J.span=function(S,c,Q){var f=Object.keys(S).join("");ft(this,"span_"+f+"_"+c)||(S.clientActionNonce=c,_.Te("latencyActionSpan",S,{cttAuthInfo:Q}))};
var ft=function(S,c){cL[c]=cL[c]||{count:0};var Q=cL[c];Q.count++;Q.time=(0,_.Qk)();S.cleanupJob||(S.cleanupJob=_.HG(_.Mq,function(){var f=(0,_.Qk)(),U;for(U in cL)cL[U]&&f-cL[U].time>6E4&&delete cL[U];S&&(S.cleanupJob=0)},5E3));
return Q.count>5?(Q.count===6&&Math.random()*1E5<1&&(Q=new _.Yr("CSI data exceeded logging limit with key",c.split("_")),c.indexOf("plev")>=0||_.i5(Q)),!0):!1};var qLd,T4l;qLd=window;T4l=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.D5=qLd.performance||qLd.mozPerformance||qLd.msPerformance||qLd.webkitPerformance||new T4l;var omR=!1,rmR=!1,c1H=(0,_.H1)(_.D5.clearResourceTimings||_.D5.webkitClearResourceTimings||_.D5.mozClearResourceTimings||_.D5.msClearResourceTimings||_.D5.oClearResourceTimings||_.$q,_.D5);var wJu=window;wJu.ytcsi&&(wJu.ytcsi.infoGel=_.sz,wJu.ytcsi.tick=_.i2);var B3M=function(S){Cw.call(this,1,arguments);this.csn=S};
_.C(B3M,Cw);var NPY=new FMT("screen-created",B3M),qEM=[],FuR=h1M,T3o=0,eL=new Map,IPY=new Map,nop=new Map;var ppp=Symbol("wf"),oI=new WeakMap;var Uc=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},u7=function(){Uc.instance||(Uc.instance=new Uc);
return Uc.instance};
_.J=Uc.prototype;_.J.setClient=function(S){this.client=S};
_.J.JSC$10510_newScreen=function(){this.clear();this.csn=_.wN()};
_.J.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.J.reportShown=function(S,c,Q){var f=this.JSC$10510_getTrackingParams(S),U=S.visualElement?S.visualElement:f;c=this.shownElements.has(U);var a=this.visibleState.get(U);this.shownElements.add(U);this.visibleState.set(U,!0);S.impressionLog&&!c&&S.impressionLog();if(f||S.visualElement)if(Q=sQs(this,S,Q))if(U=MIu(this,S),JA(this,S)||U){f=S.visualElement?S.visualElement:_.Yz(f);var X=S.interactionLoggingClientData;U||c?JA(this,S)&4?a||YEY(this.client,Q,f,X):JA(this,S)&1&&!c&&uxH(this.client,Q,f,X):uxH(this.client,
Q,f,X)}};
_.J.reportHidden=function(S,c,Q){var f=this.JSC$10510_getTrackingParams(S),U=S.visualElement?S.visualElement:f;c=this.hiddenElements.has(U);var a=this.visibleState.get(U);this.hiddenElements.add(U);this.visibleState.set(U,!1);if(a===!1)return!0;if(!f&&!S.visualElement)return!1;Q=sQs(this,S,Q);if(!Q||!JA(this,S)&&MIu(this,S))return!1;f=S.visualElement?S.visualElement:_.Yz(f);JA(this,S)&8?C4T(this.client,Q,f):JA(this,S)&2&&!c&&(S=this.client,c=gS({cttAuthInfo:sM(Q)||void 0},Q),f={csn:Q,ve:f.getAsJson(),
eventType:2},Q==="UNDEFINED_CSN"?rS("visualElementHidden",c,f):S?hc("visualElementHidden",f,S,c):_.Te("visualElementHidden",f,c));return!0};
_.J.JSC$10510_getTrackingParams=function(S){var c=this.getData(S),Q,f;if(_.u("il_use_view_model_logging_context")&&(c==null?0:(Q=c.context)==null?0:(f=Q.loggingContext)==null?0:f.loggingDirectives))return c.context.loggingContext.loggingDirectives.trackingParams||"";var U,a;if(c==null?0:(U=c.rendererContext)==null?0:(a=U.loggingContext)==null?0:a.loggingDirectives)return c.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(c==null?0:c.loggingDirectives)return c.loggingDirectives.trackingParams||
"";var X;return((X=S.veContainer)==null?0:X.trackingParams)?S.veContainer.trackingParams:(c==null?void 0:c.trackingParams)||""};
_.J.JSC$10510_elementShouldLogGesture=function(S,c){S=this.getData(S);return!!((Math.floor(Number(S&&S.loggingDirectives&&S.loggingDirectives.gestures&&S.loggingDirectives.gestures.types||""))||0)&c)};
_.J.JSC$10510_getNearestParentVe=function(S){var c=this.JSC$10510_getTrackingParams(S);return S.visualElement?S.visualElement:c?_.Yz(c):S.parentElement?this.JSC$10510_getNearestParentVe(S.parentElement):null};
var sQs=function(S,c,Q){var f=_.wN(Q);return S.csn===null||f===S.csn||Q?f:(S=new _.Yr("VisibilityLogger called before newScreen",{caller:c.tagName,previous_csn:S.csn,current_csn:f}),_.i5(S),null)};
Uc.prototype.getData=function(S){var c,Q=S.data||((c=S.props)==null?void 0:c.data);if(!Q||S.isWebComponentWrapper){var f;Q=(f=oI.get(S))==null?void 0:f[ppp]}return Q};
var MIu=function(S,c){var Q;return!((Q=S.getData(c))==null||!Q.loggingDirectives)},JA=function(S,c){S=S.getData(c);
return Math.floor(Number(S&&S.loggingDirectives&&S.loggingDirectives.visibility&&S.loggingDirectives.visibility.types||""))||1};var aF;aF=function(){};
_.b7=function(){aF.instance||(aF.instance=new aF);return aF.instance};
aF.prototype.setClient=function(S){_.kC(u7().setClient).bind(u7())(S)};
_.imd=function(){_.b7();_.kC(u7().JSC$10510_newScreen).bind(u7())()};
aF.prototype.clear=function(){_.kC(u7().clear).bind(u7())()};
aF.prototype.reportShown=function(S,c,Q){_.kC(u7().reportShown).bind(u7())(S,c,Q)};
aF.prototype.reportHidden=function(S,c,Q){return _.kC(u7().reportHidden).bind(u7())(S,c,Q)};
var vbZ=function(S,c){return _.kC(u7().JSC$10510_getTrackingParams).bind(u7())(c)},h_M=function(S,c){return _.kC(u7().JSC$10510_getNearestParentVe).bind(u7())(c)};var AA,Zmh;AA=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};
_.Kv=function(){AA.instance||(AA.instance=new AA);return AA.instance};
AA.prototype.setClient=function(S){this.client=S};
Zmh=function(S,c,Q){Q=Q===void 0?{}:Q;_.kC(function(){var f,U,a,X=((f=_.Y(c==null?void 0:c.commandMetadata,_.Qw))==null?void 0:f.rootVe)||((U=_.Y(c==null?void 0:c.commandMetadata,i0J))==null?void 0:(a=U.screenVisualElement)==null?void 0:a.uiType);if(X){f=_.Y(c==null?void 0:c.commandMetadata,KUp);if(f==null?0:f.parentTrackingParams){var z=_.Yz(f.parentTrackingParams);if(f.parentCsn)var x=f.parentCsn}else Q.clickedVisualElement?z=Q.clickedVisualElement:c.clickTrackingParams&&(z=_.Yz(c.clickTrackingParams));
a:{f=_.Y(c,_.tG);U=_.Y(c,UcZ);if(f){if(U=lAz(f,"VIDEO")){f={token:U,videoId:f.videoId};break a}}else if(U&&(f=lAz(U,"PLAYLIST"))){f={token:f,playlistId:U.playlistId};break a}f=void 0}Q=Object.assign({},{cttAuthInfo:f,parentCsn:x},Q);if(_.u("expectation_logging")){var I;Q.loggingExpectations=((I=_.Y(c==null?void 0:c.commandMetadata,i0J))==null?void 0:I.loggingExpectations)||void 0}_.X2(S,X,z,Q)}else _.i5(new _.Yr("Error: Trying to create a new screen without a rootVeType",c))})()};
_.X2=function(S,c,Q,f){f=f===void 0?{}:f;_.kC(function(){h5d.includes(c)||(_.i5(new _.Yr("createClientScreen() called with a non-page VE",c)),c=83769);f.isHistoryNavigation||(S.forwardHistoryStack=[],S.backHistoryStack.push({rootVe:c,key:f.key||""}));S.graftQueue=[];S.stateChangedQueue=[];f.dataPromises?Gyi(S,c,Q,f):Wyd(S,c,Q,f)})()};
_.gJT=function(S,c,Q){Q=Q===void 0?0:Q;_.kC(function(){c.then(function(f){S.pendingScreenCreation.has(Q)&&S.pendingScreenFn&&S.pendingScreenFn();var U=_.wN(Q),a=_.T$(Q);if(U&&a){var X;(f==null?0:(X=f.response)==null?0:X.trackingParams)&&kt(S.client,U,a,_.Yz(f.response.trackingParams));var z;(f==null?0:(z=f.playerResponse)==null?0:z.trackingParams)&&kt(S.client,U,a,_.Yz(f.playerResponse.trackingParams))}})})()};
AA.prototype.graftServerVe=function(S,c,Q){var f=this;return _.kC(function(){var U=_.Yz(S);_.Oc(f,U,c,Q);return U})()};
_.q3c=function(S,c,Q,f){return _.u("enable_client_ve_spec")&&c.clientVeSpec?(c=_.qo(c.clientVeSpec.uiType,void 0,c.clientVeSpec.elementIndex,c.clientVeSpec.clientYoutubeData,void 0,c),_.Oc(S,c,Q,f)?c:null):c.trackingParams?S.graftServerVe(c.trackingParams,Q,f):null};
_.NK=function(S,c,Q,f){return _.kC(function(){if(!c.veType)return _.MP(new _.Yr("Error: Trying to graft a client VE without a veType.")),null;if(c.visibilityTypes){var U=c.visibilityTypes.reduce(function(a,X){return a|X});
U={visibility:{types:String(U)}}}U=_.qo(c.veType,c.visualElement,c.elementIndex,c.clientYouTubeData,void 0,U);return _.Oc(S,U,Q,f)?U:null})()};
_.Oc=function(S,c,Q,f){f=f===void 0?0:f;return _.kC(function(){if(S.pendingScreenCreation.has(f))return S.graftQueue.push([c,Q]),!0;var U=_.wN(f),a=Q||_.T$(f);if(U&&a){if(_.u("combine_ve_grafts")){var X=S.cachedVisualElements.get(a.toString());X?X.push(c):(S.cachedRootVisualElements.set(a.toString(),a),S.cachedVisualElements.set(a.toString(),[c]));S.attachTimeout||(S.attachTimeout=_.HG(_.Mq,function(){e5p(S,U)},1200))}else kt(S.client,U,a,c);
return!0}return!1})()};
_.z7=function(S,c,Q){Q=Q===void 0?0:Q;var f=S.recurringGrafts.get(Q)||new Map;if(_.u("smarter_ve_dedupping"))for(var U=Array.from(f.keys()),a=0;a<U.length;a++){var X=void 0,z=void 0;var x=c;var I=U[a];I.isClientVe()&&x.isClientVe()?(X=x.getAsJson(),z=I.getAsJson(),x=X.veType!==z.veType||X.elementIndex!==z.elementIndex||X.dataElement!==z.dataElement||x.getLoggingDirectives()!==I.getLoggingDirectives()?!1:!0):x=I.veData.trackingParams!==void 0&&x.veData.trackingParams!==void 0?((z=x.veData)==null?void 0:
z.trackingParams)===((X=I.veData)==null?void 0:X.trackingParams):!1;if(x)return}else if(f.has(c))return;f.set(c,void 0);S.recurringGrafts.set(Q,f);_.wN(Q)==="UNDEFINED_CSN"||S.pendingScreenCreation.has(Q)||_.Oc(S,c,void 0,Q)};
_.xA=function(S,c,Q,f){f=_.wN(f===void 0?0:f);if(!f)return!1;DSr(S.client,f,c,Q);return!0};
_.F2=function(S,c,Q,f){if(!c)return!1;f=_.wN(f===void 0?0:f);if(!f)return!1;DSr(S.client,f,_.Yz(c),Q);return!0};
_.rj=function(S,c){var Q=c.getScreenLayer&&c.getScreenLayer();if(c.visualElement)return _.xA(S,c.visualElement,void 0,Q);c=vbZ(_.b7(),c);return _.F2(S,c,void 0,Q)};
AA.prototype.clickCommand=function(S,c,Q){return _.F2(this,S.clickTrackingParams,c,Q===void 0?0:Q)};
AA.prototype.stateChanged=function(S,c,Q){this.visualElementStateChanged(_.Yz(S),c,Q===void 0?0:Q)};
AA.prototype.visualElementStateChanged=function(S,c,Q){Q=Q===void 0?0:Q;Q===0&&this.pendingScreenCreation.has(Q)?this.stateChangedQueue.push([S,c]):this.logStateChanged(S,c,Q)};
AA.prototype.logStateChanged=function(S,c,Q){Q=Q===void 0?0:Q;var f=_.wN(Q);S=S||_.T$(Q);return f&&S?(p9M(this.client,f,S,c),!0):!1};
var Gyi=function(S,c,Q,f){f=f===void 0?{}:f;S.pendingScreenCreation.add(f.layer||0);S.pendingScreenFn=function(){Wyd(S,c,Q,f);var X=_.T$(f.layer);if(X){for(var z=_.A(S.graftQueue),x=z.next();!x.done;x=z.next())x=x.value,_.Oc(S,x[0],x[1]||X,f.layer);X=_.A(S.stateChangedQueue);for(z=X.next();!z.done;z=X.next())z=z.value,S.logStateChanged(z[0],z[1])}};
Q||_.wN(f.layer)||S.pendingScreenFn();if(f.dataPromises)for(var U=_.A(f.dataPromises),a=U.next();!a.done;a=U.next())_.gJT(S,a.value,f.layer);else _.sH(Error("xf"))},Wyd=function(S,c,Q,f){f=f===void 0?{}:f;
var U=void 0;f.layer||(f.layer=0);U=f.parentLayer!==void 0?f.parentLayer:f.layer;var a=_.wN(U);U=_.T$(U);var X=Q||U,z;X&&(f.parentCsn!==void 0?z={clientScreenNonce:f.parentCsn,visualElement:X}:a&&a!=="UNDEFINED_CSN"&&(z={clientScreenNonce:a,visualElement:X}));var x,I=_.WY("EVENT_ID");a==="UNDEFINED_CSN"&&I&&(x={servletData:{serializedServletEventId:I}});_.u("combine_ve_grafts")&&a&&e5p(S,a);_.u("no_client_ve_attach_unless_shown")&&X&&a&&$SH(X,a);try{var n=_.bwH(S.client,c,z,f.csnToClone,f.cttAuthInfo,
x,f.implicitGestureType,void 0,f.loggingExpectations)}catch(l){_.ZE(l,{rootVeType:c,rootVe:U,parentVisualElement:Q,currentCsn:a,parentEl:z,csnToClone:f.csnToClone});_.sH(l);return}_.ME(n,c,f.layer,f.cttAuthInfo);a&&a!=="UNDEFINED_CSN"&&U&&!H0Z(a)&&C4T(S.client,a,U,!0);S.backHistoryStack[S.backHistoryStack.length-1]&&!S.backHistoryStack[S.backHistoryStack.length-1].csn&&(S.backHistoryStack[S.backHistoryStack.length-1].csn=n||"");_.sz({clientScreenNonce:n});_.imd();var b=_.T$(f.layer);a&&a!=="UNDEFINED_CSN"&&
b&&(_.u("web_mark_root_visible")||_.u("music_web_mark_root_visible"))&&_.P2(n,b);S.pendingScreenCreation.delete(f.layer||0);S.pendingScreenFn=void 0;var N;(N=S.recurringGrafts.get(f.layer))==null||N.forEach(function(l,H){l?_.Oc(S,H,l,f.layer):b&&_.Oc(S,H,b,f.layer)});
kyz(S)},kyz=function(S){for(var c=0;c<S.afterNewScreenOneOffJobs.length;c++){var Q=S.afterNewScreenOneOffJobs[c];
try{Q()}catch(f){_.sH(f)}}for(c=S.afterNewScreenOneOffJobs.length=0;c<S.afterNewScreenRecurringJobs.length;c++){Q=S.afterNewScreenRecurringJobs[c];try{Q()}catch(f){_.sH(f)}}},e5p=function(S,c){if(c===void 0)for(var Q=YnR(),f=0;f<Q.length;f++)Q[f]!==void 0&&e5p(S,Q[f]);
else S.cachedVisualElements.forEach(function(U,a){(a=S.cachedRootVisualElements.get(a))&&N3H(S.client,c,a,U)}),S.cachedVisualElements.clear(),S.cachedRootVisualElements.clear(),S.attachTimeout=void 0};var BL=function(S){S=S===void 0?{layer:0}:S;this.hasRun=!1;this.createScreenConfig=S;S={};this.wlm=(S.response=!1,S.playerResponse=!1,S)};
_.C(BL,mx);BL.prototype.validate=function(S){return!(!S.data||!S.data.response&&!S.data.playerResponse)};
BL.prototype.handle=function(S){var c=_.Kv(),Q=this.createScreenConfig.layer;S.data.response&&S.data.response.trackingParams&&!this.wlm.response&&(c.graftServerVe(S.data.response.trackingParams,void 0,Q),this.wlm.response=!0);S.data.playerResponse&&S.data.playerResponse.trackingParams&&!this.wlm.playerResponse&&(c.graftServerVe(S.data.playerResponse.trackingParams,void 0,Q),this.wlm.playerResponse=!0)};var IF=function(){this.n6=_.L4();this.jF=[];this.vOR=0};
IF.prototype.processChunk=function(S){if(S){for(var c=_.A(this.jF),Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.validate(S)&&(Q.handle(S),Q.hasRun=!0);_.i2("np"+this.vOR);this.vOR++}};var mq;var z$p,rNu,Pvs;_.BI=function(S,c,Q,f,U,a,X){X=X===void 0?[]:X;this.buildCommandPayload=S;this.navigate=c;this.handleServiceRequest=Q;this.sendAction=f;this.JSC$10551_screenManager=U;this.commandResolverMap=a;this.autoLogResolverAllowlist=X;this.pendingCommands=new Set;this.isTracingEnabled=!1;rNu(this)};
z$p=function(S,c,Q){var f=RZo,U=yVz,a=_.Kv(),X=dci;Q=Q===void 0?[]:Q;_.BI.instance=new _.BI(S,c,f,U,a,X,Q)};
rNu=function(S){if(!S.isTracingEnabled&&s8p("command")){var c=S.resolveCommand;S.resolveCommand=function(Q,f){a:{for(U in Q)if(Object.prototype.hasOwnProperty.call(Q,U)){var U={commandType:U};break a}U={}}return Zwz("command",U,c.bind(this,Q,f))};
S.isTracingEnabled=!0}};
Pvs=function(S,c,Q){if(!S.commandResolverMap)return!1;var f=e1H(c,S.commandResolverMap);return f?((S.autoLogResolverAllowlist.some(function(U){return!!_.Y(c,U)})||(Q==null?0:Q.forceClickLogging))&&vJp(S,c,Q),f instanceof Promise?f.then(function(U){U.resolve(c,Q)}):f.resolve(c,Q),!0):!1};
_.BI.prototype.resolveCommand=function(S,c){var Q=this,f=Ly$(S);if(Pvs(this,S,c))return!0;if(f)return EJs(this,S,c);if(!this.buildCommandPayload)return GgR(S,"Unhandled command by buildCommandPayload"),!1;var U=this.buildCommandPayload(S,c);if(c==null?0:c.commandController)U.commandController=c.commandController;if(U.type===0){if(!this.navigate)return Wuc(S,"navigate"),!1;if(!tIi(U.command))return GgR(S,"Page requests need to specify a url"),!1;_.u("logging_avoid_blocking_during_navigation")&&_.SXT().transition("application_navigating");
S=this.navigate(U)||[];Syd(S).then(function(){Q.pendingCommands.delete(U.command)});
return!0}if(U.type===1){if(!this.handleServiceRequest)return Wuc(S,"handleServiceRequest"),!1;(c==null?0:c.forceClickLogging)&&vJp(this,U.command,c);S=this.handleServiceRequest(U);Syd(S).then(function(){Q.pendingCommands.delete(U.command)});
return!0}if(U.type===2){if(!this.sendAction)return Wuc(S,"sendAction"),!1;vJp(this,U.command,c);this.sendAction(U);return!0}return!1};
var vJp=function(S,c,Q){if((Q==null||!Q.disableClickTracking)&&S.JSC$10551_screenManager)if(c.clickTrackingParams&&_.u("log_click_with_layer_from_element_in_command_handler")){var f;Q=Q==null?void 0:(f=Q.form)==null?void 0:f.element;S.JSC$10551_screenManager.clickCommand(c,null,Q&&Q.getScreenLayer&&Q.getScreenLayer())}else c.clickTrackingParams?S.JSC$10551_screenManager.clickCommand(c):!_.u("disable_clicked_visual_element_in_command_handler")&&(Q==null?0:Q.clickedVisualElement)&&_.xA(S.JSC$10551_screenManager,
Q.clickedVisualElement)},Ly$=function(S){var c=!!_.Y(S,_.II),Q;
S=((Q=_.Y(S,_.b2))==null?void 0:Q.signal)==="CLIENT_SIGNAL";return c||S},EJs=function(S,c,Q){var f=_.Y(c,_.II);
if(f)var U=(f==null?void 0:f.commands)||[];else{var a;if(((a=_.Y(c,_.b2))==null?void 0:a.signal)==="CLIENT_SIGNAL"){var X;U=((X=_.Y(c,_.b2))==null?void 0:X.actions)||[]}}if(U){c=_.A(U);for(U=c.next();!U.done;U=c.next()){U=U.value;try{S.resolveCommand(U,Q)}catch(z){z instanceof Error&&_.sH(z)}}return!0}GgR(c,"Could not handle the meta command");return!1},tIi=function(S){var c;
return!((c=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null||!c.url)};var nt=function(){mx.apply(this,arguments)};
_.C(nt,mx);nt.prototype.validate=function(S){var c,Q;return!this.hasRun&&!!((c=S.data.response)==null?0:(Q=c.onResponseReceivedEndpoints)==null?0:Q.length)};
nt.prototype.handle=function(S){var c=_.BI.instance;S=_.A(S.data.response.onResponseReceivedEndpoints);for(var Q=S.next();!Q.done;Q=S.next())c.resolveCommand(Q.value)};var VId,R5d,yNz;
VId=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=_.B2();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.bn=function(){R5d||(R5d=new VId);return R5d};
yNz=function(){var S=_.bn();S.miniplayerButtonActivation=!1;S.userActivation=!1;S.playlistWatchPageActivation=!1;S.productDetailsPageActivation=!1;S.miniAppPageActivation=!1;S.playablesDestPageActivation=!1;S.lockupActivation=!1;S.showMiniplayerCommandActivation=!1;S.playlistSuggestionsShelfActivation=!1;S.mediaSessionPipActivation=!1;S.watchPipActivation=!1;S.watchWhileActivation=!1;S.shortsPipActivation=!1};
_.oJz=function(){var S=_.bn(),c=S.mediaSessionPipActivation,Q=S.watchPipActivation,f=S.watchWhileActivation,U=S.playlistWatchPageActivation,a=S.lockupActivation,X=S.showMiniplayerCommandActivation,z=S.navigatingAwayFromWatchDeletedVideo,x=S.shortsPipActivation,I=S.playlistSuggestionsShelfActivation,n=S.productDetailsPageActivation,b=S.miniAppPageActivation,N=S.playablesDestPageActivation;return!S.miniplayerButtonActivation&&!U&&!I&&!n&&!b&&!N&&!a&&!X&&!c&&!Q&&!f&&!x||z};var sfY;_.Ni=cq("FEwhat_to_watch","/",3854);_.MAR=cq("FEdownloads","/feed/downloads",42352);sfY=cq("FEmusic_offline","browse/FEmusic_offline",42352);var tb=function(S,c){c=c===void 0?[]:c;var Q=Q===void 0?[]:Q;c=APY.apply(null,[Xgo.apply(null,_.Hs(c))].concat(_.Hs(Q)));this.store=FJT(S,void 0,c)};
tb.prototype.getState=function(){return this.store.getState()};
tb.prototype.dispatch=function(S){return this.store.dispatch(S)};
tb.prototype.subscribe=function(S){return this.store.subscribe(S)};
tb.prototype.replaceReducer=function(S){return this.store.replaceReducer(S)};
tb.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.Kt=function(S,c,Q){var f=c(S.getState());return S.subscribe(function(){var U=c(S.getState());if(U!==f){var a=f;f=U;Q(U,a)}})};var T6Z;_.Ns=function(S,c,Q){return _.aB({type:"REPLACE_ENTITY",payload:{entityPayload:Q,entityType:S,key:c}})};
T6Z=function(S){return _.aB({type:"REPLACE_ENTITIES",payload:S})};
_.TI=function(S,c,Q,f){return _.aB({type:"UPDATE_ENTITY",payload:{entityPayload:Q,entityType:S,key:c,mergeOption:f}})};var mSr=function(S){var c=this;S=S===void 0?[]:S;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;S.forEach(function(Q){c.append(Q)})};
_.J=mSr.prototype;_.J.getLength=function(){return this.totalLength};
_.J.append=function(S){var c=this.arrays.length===0?!1:(c=this.arrays[this.arrays.length-1])&&c.buffer===S.buffer&&c.byteOffset+c.length===S.byteOffset;c?(c=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(c.buffer,c.byteOffset,c.length+S.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(S);this.totalLength+=S.length};
_.J.split=function(S){for(var c=new mSr,Q=new mSr,f=_.A(this.arrays),U=f.next();!U.done;U=f.next())U=U.value,S>=U.length?(c.append(U),S-=U.length):S?(c.append(new Uint8Array(U.buffer,U.byteOffset,S)),Q.append(new Uint8Array(U.buffer,U.byteOffset+S,U.length-S)),S=0):Q.append(U);return{headView:c,tailView:Q}};
_.J.extract=function(S,c){return this.split(S).tailView.split(c).headView};
_.J.isFocused=function(S){return S>=this.arrayPos&&S<this.arrayPos+this.arrays[this.arrayIdx].length};
_.J.focus=function(S){if(!this.isFocused(S))for(S<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=S&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
var mcd=function(S,c){S.focus(c);return S.arrays[S.arrayIdx][c-S.arrayPos]};(function(){var S=function(f){return new Uint8Array(f)},c=function(f){for(var U=new Uint8Array(f.length),a=0;a<f.length;a++)U[a]=f[a];
return U},Q=new Uint8Array([1]);
return Q.length===1&&Q[0]===1?S:c})();
var Eor=Array(1024),LuZ=window.TextDecoder?new TextDecoder:void 0,Vgr=window.TextEncoder?new TextEncoder:void 0;var ooM=function(S){this.arrayView=S;this.pos=0;this.pendingTagAndType=-1},Ab=function(S){var c=mcd(S.arrayView,S.pos);
++S.pos;if(c<128)return c;for(var Q=c&127,f=1;c>=128;)c=mcd(S.arrayView,S.pos),++S.pos,f*=128,Q+=(c&127)*f;return Q},SWo=function(S,c){var Q=S.pendingTagAndType;
for(S.pendingTagAndType=-1;S.pos+1<=S.arrayView.totalLength;){Q<0&&(Q=Ab(S));var f=Q>>3,U=Q&7;if(f===c)return!0;if(f>c){S.pendingTagAndType=Q;break}Q=-1;switch(U){case 0:Ab(S);break;case 1:S.pos+=8;break;case 2:f=Ab(S);S.pos+=f;break;case 5:S.pos+=4}}return!1};var Q0p=function(){this.pos=0;this.submessagePosStack=[];this.buf=y1o(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},zh=function(S,c){c=S.pos+c;
if(!(S.buf.length>=c)){for(var Q=S.buf.length*2;Q<c;)Q*=2;S.buf=y1o(Q,S.buf.subarray(0,S.pos));S.view=new DataView(S.buf.buffer,S.buf.byteOffset,S.buf.byteLength)}},Om=function(S,c){if(c>268435455){zh(S,4);
for(var Q=c&1073741823,f=0;f<4;f++)S.view.setUint8(S.pos,Q&127|128),Q>>=7,S.pos+=1;c=Math.floor(c/268435456)}for(zh(S,4);c>127;)S.view.setUint8(S.pos,c&127|128),c>>=7,S.pos+=1;S.view.setUint8(S.pos,c);S.pos+=1};for(var f2Y={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},ckY={},Sts=_.A(Object.entries(f2Y)),cvh=Sts.next();!cvh.done;cvh=Sts.next()){var Qv$=_.A(cvh.value),f4l=Qv$.next().value,U3i=Qv$.next().value,Jv_=f4l,a4d=U3i;a4d&&(ckY[a4d]=Jv_)};var JkH=function(S,c){S=S===void 0?{}:S;switch(c.type){case "ENTITY_LOADED":return c.payload.reduce(function(f,U){var a,X=(a=U.options)==null?void 0:a.persistenceOption;if(X&&X!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&X!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return f;if(!U.entityKey)return _.sH(Error("Bf")),f;if(U.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!U.payload)return U=new _.Yr("REPLACE entity mutation is missing a payload",{entityKey:U.entityKey}),_.sH(U),f;var z=(0,_.Cn.getAnyKey)(U.payload);
return AkR(f,z,U.entityKey,U.payload[z])}if(U.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{U=U.entityKey;try{var x=_.XT(U).entityType;z=AkR(f,x,U);break a}catch(b){if(b instanceof Error){U=new _.Yr("Failed to deserialize entity key",{entityKey:U,originalMessage:b.message});_.sH(U);z=f;break a}throw b;}z=void 0}return z}if(U.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!U.payload)return U=new _.Yr("UPDATE entity mutation is missing a payload",{entityKey:U.entityKey}),_.sH(U),f;z=(0,_.Cn.getAnyKey)(U.payload);
var I,n;return XEz(f,z,U.entityKey,U.payload[z],(I=U.fieldMask)==null?void 0:(n=I.mergeOptions)==null?void 0:n.repeatedFieldsMergeOption)}return f},S);
case "REPLACE_ENTITY":var Q=c.payload;return AkR(S,Q.entityType,Q.key,Q.entityPayload);case "REPLACE_ENTITIES":return Object.keys(c.payload).reduce(function(f,U){var a=c.payload[U];return Object.keys(a).reduce(function(X,z){return AkR(X,U,z,a[z])},f)},S);
case "UPDATE_ENTITY":return Q=c.payload,XEz(S,Q.entityType,Q.key,Q.entityPayload,Q.mergeOption);default:return S}};var OLz;var Avd=!1,$A,un,jn,ln,YA,XCe=function(S){_.C9.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!Avd){var c,Q=new Uint8Array(256),f=new Uint8Array(256);var U=1;for(c=0;c<256;c++)Q[U]=c,f[c]=U,U^=U<<1^(U>>7&&283);$A=new Uint8Array(256);un=Bq(256);jn=Bq(256);ln=Bq(256);YA=Bq(256);for(var a=0;a<256;a++){U=a?f[255^Q[a]]:0;U^=U<<1^U<<2^U<<3^U<<4;U=U&255^U>>>8^99;$A[a]=U;c=U<<1^(U>>7&&283);var X=c^U;un[a]=c<<24|U<<16|U<<8|X;jn[a]=X<<24|un[a]>>>8;ln[a]=U<<24|jn[a]>>>
8;YA[a]=U<<24|ln[a]>>>8}Avd=!0}U=Bq(44);for(Q=0;Q<4;Q++)U[Q]=S[4*Q]<<24|S[4*Q+1]<<16|S[4*Q+2]<<8|S[4*Q+3];for(f=1;Q<44;Q++)S=U[Q-1],Q%4||(S=($A[S>>16&255]^f)<<24|$A[S>>8&255]<<16|$A[S&255]<<8|$A[S>>>24],f=f<<1^(f>>7&&283)),U[Q]=U[Q-4]^S;this.key=U};
_.C(XCe,_.C9);
XCe.prototype.encrypt=function(S){var c=S.length;S=new Uint8Array(S.buffer.slice(S.byteOffset,S.byteOffset+c));for(var Q=this.cipherBlock,f=0;f<c&&this.blockOffset<16;)S[f++]^=Q[this.blockOffset++];for(var U=c-(c-f)%16;f<U;)Os$(this),S[f++]^=Q[0],S[f++]^=Q[1],S[f++]^=Q[2],S[f++]^=Q[3],S[f++]^=Q[4],S[f++]^=Q[5],S[f++]^=Q[6],S[f++]^=Q[7],S[f++]^=Q[8],S[f++]^=Q[9],S[f++]^=Q[10],S[f++]^=Q[11],S[f++]^=Q[12],S[f++]^=Q[13],S[f++]^=Q[14],S[f++]^=Q[15];if(f<c)for(Os$(this),this.blockOffset=0;f<c;)S[f++]^=
Q[this.blockOffset++];return S};
var Os$=function(S){for(var c=S.key,Q=S.counter[0]^c[0],f=S.counter[1]^c[1],U=S.counter[2]^c[2],a=S.counter[3]^c[3],X=3;X>=0&&!(S.counter[X]=-~S.counter[X]);X--);for(var z,x,I=4;I<40;)X=un[Q>>>24]^jn[f>>16&255]^ln[U>>8&255]^YA[a&255]^c[I++],z=un[f>>>24]^jn[U>>16&255]^ln[a>>8&255]^YA[Q&255]^c[I++],x=un[U>>>24]^jn[a>>16&255]^ln[Q>>8&255]^YA[f&255]^c[I++],a=un[a>>>24]^jn[Q>>16&255]^ln[f>>8&255]^YA[U&255]^c[I++],Q=X,f=z,U=x;S=S.cipherBlock;X=c[40];S[0]=$A[Q>>>24]^X>>>24;S[1]=$A[f>>16&255]^X>>16&255;S[2]=
$A[U>>8&255]^X>>8&255;S[3]=$A[a&255]^X&255;X=c[41];S[4]=$A[f>>>24]^X>>>24;S[5]=$A[U>>16&255]^X>>16&255;S[6]=$A[a>>8&255]^X>>8&255;S[7]=$A[Q&255]^X&255;X=c[42];S[8]=$A[U>>>24]^X>>>24;S[9]=$A[a>>16&255]^X>>16&255;S[10]=$A[Q>>8&255]^X>>8&255;S[11]=$A[f&255]^X&255;X=c[43];S[12]=$A[a>>>24]^X>>>24;S[13]=$A[Q>>16&255]^X>>16&255;S[14]=$A[f>>8&255]^X>>8&255;S[15]=$A[U&255]^X&255};var zuu=!1;(function(){var S=function(f){return new Uint8Array(f)},c=function(f){for(var U=new Uint8Array(f.length),a=0;a<f.length;a++)U[a]=f[a];
return U},Q=new Uint8Array([1]);
return Q.length===1&&Q[0]===1?S:c})();
var Ct;var BL_=function(S){a:{if(!zuu&&!yS){if(Ct){var c=Ct;break a}Ct=(c=window.crypto)==null?void 0:c.subtle;var Q,f,U;if(((Q=Ct)==null?0:Q.importKey)&&((f=Ct)==null?0:f.sign)&&((U=Ct)==null?0:U.encrypt)){c=Ct;break a}Ct=void 0}c=void 0}c&&(this.nativeEncryptor=new x3J(S,c));this.encryptorPolyfill=new F8z(S)};
BL_.prototype.encrypt=function(S,c){var Q=this,f;return _.O(function(U){switch(U.nextAddress){case 1:if(!Q.nativeEncryptor){U.jumpTo(2);break}_.X1(U,3);return _.F(U,Q.nativeEncryptor.encrypt(S,c),5);case 5:return U.return(U.yieldResult);case 3:f=_.Bs(U),_.i5(f),zuu=!0,Q.nativeEncryptor=void 0;case 2:return U.return(Q.encryptorPolyfill.encrypt(S,c))}})};
var x3J=function(S,c){this.JSC$10623_aesKey=S;this.subtleCrypto=c};
x3J.prototype.encrypt=function(S,c){var Q=this,f;return _.O(function(U){if(U.nextAddress==1)return _.X1(U,2),_.F(U,I4e(Q,S,c),4);if(U.nextAddress!=2)return U.return(U.yieldResult);f=_.Bs(U);_.i5(f);zuu=!0;throw f;})};
var I4e=function(S,c,Q){var f,U;return _.O(function(a){switch(a.nextAddress){case 1:if(S.cryptoKey){a.jumpTo(2);break}return _.F(a,S.subtleCrypto.importKey("raw",S.JSC$10623_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:S.cryptoKey=a.yieldResult;case 2:return f={name:"AES-CTR",counter:Q,length:128},_.F(a,S.subtleCrypto.encrypt(f,S.cryptoKey,c),4);case 4:return U=a.yieldResult,a.return(new Uint8Array(U))}})},F8z=function(S){this.JSC$10626_aesKey=S};
F8z.prototype.encrypt=function(S,c){this.encryptor||(this.encryptor=new XCe(this.JSC$10626_aesKey));for(var Q=this.encryptor,f=0;f<4;f++)Q.counter[f]=c[f*4]<<24|c[f*4+1]<<16|c[f*4+2]<<8|c[f*4+3];Q.blockOffset=16;return this.encryptor.encrypt(S)};var nOs={},FUY=ct("yt-idb-pref-storage",{objectStores:(nOs.prefs={addedAtVersion:1},nOs),shared:!1,upgrade:function(S,c){c(1)&&re(kM(S,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.HL=function(S){this.token=S};
_.HL.getInstance=function(){return _.O(function(S){return S.return(new Promise(function(c){_.S8().then(function(Q){Q?(_.HL.instance||(_.HL.instance=new _.HL(Q)),c(_.HL.instance)):c(void 0)})}))})};
_.HL.prototype.get=function(S){var c=this,Q,f,U;return _.O(function(a){if(a.nextAddress==1)return _.F(a,B6o(c.token),2);if(a.nextAddress!=3)return Q=a.yieldResult,_.F(a,Q.get("prefs",S),3);f=a.yieldResult;if(!f)return a.return();U=(0,_.Qk)();return f.expirationTimestampMs<=U?a.return():a.return(f.value)})};
_.HL.prototype.set=function(S,c,Q){Q=Q===void 0?31536E3:Q;var f=this,U,a,X;return _.O(function(z){if(z.nextAddress==1)return U=(0,_.Qk)(),a={key:S,value:c,expirationTimestampMs:U+Q*1E3},_.F(z,B6o(f.token),2);X=z.yieldResult;return _.F(z,X.put("prefs",a),0)})};
_.HL.prototype.remove=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,B6o(c.token),2);Q=f.yieldResult;return _.F(f,Q.delete("prefs",S),0)})};var DC={},bsi=(DC.INVALID_ENCODER_VERSION="Invalid encoder version",DC.KEY_CREATION_FAILED="Failed to create encoder key",DC.UNKNOWN_DECODE_ERROR="Failed to decode PES data",DC.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",DC.WRONG_DATA_TYPE="Encoder cannot process the data type",DC),IB=function(S,c){c=c===void 0?{}:c;_.Yr.call(this,bsi[S],Object.assign({},{name:"PESEncoderError",type:S},c));this.type=S;this.level="WARNING";Object.setPrototypeOf(this,IB.prototype)};
_.C(IB,_.Yr);var NLi=function(){},K8d=function(S,c,Q){try{return S.encodeImpl(c,Q)}catch(f){N6T(f,nNY)}},$3u=function(S,c,Q){var f;
return _.O(function(U){if(U.nextAddress==1)return _.X1(U,2),_.F(U,S.decodeAsyncImpl(c,Q),4);if(U.nextAddress!=2)return U.return(U.yieldResult);f=_.Bs(U);N6T(f,bLp);_.IN(U)})};
NLi.prototype.decodeAsyncImpl=function(S,c){return Promise.resolve(this.decodeImpl(S,c))};var pt=function(S,c){this.aesEncryptor=S;this.aesEncryptorAsync=c};
_.C(pt,NLi);pt.prototype.encodeImpl=function(S,c){c=KUH(c);S=(new TextEncoder).encode(JSON.stringify(S));return this.aesEncryptor.encrypt(S,c)};
pt.prototype.decodeImpl=function(S,c){if(!(S instanceof Uint8Array))throw I2c(1);var Q=new TextDecoder;c=KUH(c);S=this.aesEncryptor.encrypt(S,c);return JSON.parse(Q.decode(S))};
pt.prototype.decodeAsyncImpl=function(S,c){var Q=this,f,U,a;return _.O(function(X){if(X.nextAddress==1){if(!(S instanceof Uint8Array))throw I2c(1);f=new TextDecoder;U=KUH(c);return _.F(X,Q.aesEncryptorAsync.encrypt(S,U),2)}a=X.yieldResult;return X.return(JSON.parse(f.decode(a)))})};var $YY={accountLinkStatusEntity:LCd,booleanEntity:l$z,buttonEntity:Txi,captionTrack:$Sp,channelHandle:Xgh,chipEntity:Okz,commerceAcquisitionClientPayloadEntity:cAz,commerceCartListEntity:QFd,contextNoteFeedEntityPayload:nHu,continuationTokenEntity:cmJ,downloadQualityPickerEntity:v5H,downloadsPageRefreshTokenEntity:LLl,downloadsPageViewConfigurationEntity:z7z,downloadStatusEntity:PSl,dismissState:zOd,sfvAudioItemCurrentlyPlayingEntity:oou,emojiFountainDataEntity:pAi,emojiCustomizationSetEntity:DBH,
fakeChannel:Hxd,fakePlaylist:D1i,fakePlaylistEntryCollection:plH,fakeVideo:qRd,fakeVideoDescription:TOd,featuredProductsEntity:Tkd,flowStateEntity:rMT,iconBadgeEntity:fCd,interstitialInteractionStateEntity:O0$,likeButtonAnimationEntity:xI_,liveChatPollStateEntity:NTi,liveViewerLeaderboardChatEntryPointStateEntity:Mgs,liveViewerLeaderboardPointsEntity:iwe,liveReactionsDataEntity:hOi,logoEntity:A3d,macroMarkerEntity:Fth,mainDownloadsLibraryEntity:E5z,mainDownloadsListEntity:t1z,mainPlaylistDownloadStateEntity:RCz,
mainPlaylistEntity:QzT,mainPlaylistVideoEntity:fAi,mainVideoDownloadStateEntity:y3d,mainVideoEntity:Ami,markersEngagementPanelSyncEntity:Bkd,markersVisibilityOverrideEntity:IAh,musicAlbumReleaseDetail:rms,musicAlbumReleaseDownloadMetadataEntity:GrT,musicAlbumRelease:kr_,musicAlbumReleaseUserDetail:dIu,musicArtistDetail:Pd_,musicArtist:vm$,musicArtistUserDetail:Ltd,musicDownloadsLibraryEntity:Wtd,musicLibraryEdit:Emu,musicLibraryStatusEntity:tVs,musicPlaylist:VVh,musicPlaylistDownloadMetadataEntity:gml,
musicShare:ymH,musicTrackDetail:mIJ,musicTrackDownloadMetadataEntity:e7J,musicTrack:oms,musicTrackUserDetail:SEd,offlineOrchestrationActionWrapperEntity:uxp,offlineVideoPolicy:j8l,offlineVideoStreams:lPp,offlineabilityEntity:o5d,orchestrationWebSamplingEntity:mUd,pageHeaderEntity:Kxz,pdpStateEntity:Uid,pinnedProductEntity:wmd,playbackData:YEd,playerStateEntity:nmh,quantityIncrementerEntity:JAd,refresh:C4d,saveToPlaylistListEntity:$Yd,selectedChipIndexEntityPayload:bfu,settingEntity:v1e,stringEntity:YRd,
suggestedFeedbackChipStateEntity:Nke,transfer:HwJ,trendingOfferEntity:sze,videoDownloadContextEntity:DSH,videoOverviewAsyncDataEntity:qcz,videoPlaybackPositionEntity:MTu,votingEntity:lw_,ytMainChannelEntity:Xmi,youchatPendingResponseEntity:Ktu,ytMainDownloadedVideoEntity:SbT,ytMainVideoEntity:Ofi};var uyH,l4d,$y,pEH,hkY,Hsh,pCJ,D3T,Cgi;uyH=function(S,c){this.JSC$10645_wrapped=S;this.JSC$10645_encoderRegistry=c;this.changedKeys={}};
l4d=function(S,c){a:{S=jvs(S.JSC$10645_encoderRegistry,c.version);try{var Q=S.decodeImpl(c.data,c.key);break a}catch(f){N6T(f,bLp)}Q=void 0}return Q};
_.Ytd=function(S,c,Q){return S.JSC$10645_wrapped.objectStore("EntityStore").get(c).then(function(f){if(f){if(Q&&f.entityType!==Q)throw Error("Cf");return l4d(S,f)}})};
$y=function(S,c,Q){return Q?(Q=Q.map(function(f){return _.Ytd(S,f,c)}),g5.all(Q)):S.JSC$10645_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(c)).then(function(f){return f.map(function(U){return l4d(S,U)})})};
_.DYp=function(S,c,Q){var f=UYo(c),U=jvs(S.JSC$10645_encoderRegistry,1),a=Object.assign({},c);return S.JSC$10645_wrapped.objectStore("EntityStore").get(f).then(function(X){if(X){if(X.entityType!==Q)throw Error("Cf");a.entityMetadata||(X=l4d(S,X),a.entityMetadata=X.entityMetadata)}}).then(function(){var X={key:f,
entityType:Q,data:K8d(U,a,f),version:1};return g5.all([S.JSC$10645_wrapped.objectStore("EntityStore").put(X),Cgi(S,a,Q)])}).then(function(){Hsh(S,f,Q);
return f})};
pEH=function(S,c){var Q=_.XT(c).entityType;return g5.all([S.JSC$10645_wrapped.objectStore("EntityStore").delete(c),D3T(S,c)]).then(function(){Hsh(S,c,Q)})};
hkY=function(S,c,Q,f){var U=jvs(S.JSC$10645_encoderRegistry,1);return _.Ytd(S,c,f).then(function(a){if(a){a=P4R(a,Q);var X={key:c,entityType:f,data:K8d(U,a,c),version:1};return g5.all([S.JSC$10645_wrapped.objectStore("EntityStore").put(X),Cgi(S,a,f)])}}).then(function(){Hsh(S,c,f);
return c})};
Hsh=function(S,c,Q){var f=S.changedKeys[Q];f||(f=new Set,S.changedKeys[Q]=f);f.add(c)};
pCJ=function(S,c,Q){var f=UYo(c);Q=ugR(Q);if(!Q)return g5.resolve([]);Q=new Q(c);S=S.JSC$10645_wrapped.objectStore("EntityAssociationStore");c=[];Q=_.A(Q.getAssociations());for(var U=Q.next();!U.done;U=Q.next())c.push(S.put({parentEntityKey:f,childEntityKey:U.value}));return g5.all(c).then(function(a){return a.map(function(X){return X[1]})})};
D3T=function(S,c){return S.JSC$10645_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(c))};
Cgi=function(S,c,Q){var f=UYo(c);return D3T(S,f).then(function(){return pCJ(S,c,Q)})};var hud=function(){};
_.C(hud,NLi);hud.prototype.encodeImpl=function(S){return S};
hud.prototype.decodeImpl=function(S){if(S instanceof Uint8Array)throw I2c(0);return S};var YWH=function(){this.cacheMap={};this.cacheMap[0]=new hud;if(!_.u("aes_pes_encoder_killswitch")){var S=this.cacheMap;try{var c=_.jJ();var Q=KUH(c);var f=new pt(new F8z(Q),new BL_(Q))}catch(U){throw S=U instanceof Error?new IB("KEY_CREATION_FAILED",{originalMessage:U.message}):new IB("KEY_CREATION_FAILED"),_.sH(S),S;}S[1]=f}},jvs=function(S,c){c=c===void 0?0:c;
S=S.cacheMap[c];if(!S)throw c=new IB("INVALID_ENCODER_VERSION",{encoderVersion:c}),_.sH(c),c;return S};var bZ=function(S,c){_.C9.call(this);this.token=S;this.JSC$10659_encoderRegistry=c;this.observers=[];S=new _.QY.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.jJ());S.onmessage=this.handleMessage.bind(this);this.channel=S};
_.C(bZ,_.C9);_.KK=function(S,c,Q){var f,U,a,X;return _.O(function(z){if(z.nextAddress==1)return _.F(z,xYz(S.token),2);if(z.nextAddress!=3)return f=z.yieldResult,_.F(z,_.tl(f,["EntityStore","EntityAssociationStore"],c,function(x){U=new uyH(x,S.JSC$10659_encoderRegistry);return Q(U)}),3);
a=z.yieldResult;U&&(X=U.changedKeys,Object.keys(X).length>0&&(S.channel.postMessage(X),qtJ(S,X)));return z.return(a)})};
bZ.prototype.observe=function(S){var c=this;this.observers.push(S);return function(){var Q=c.observers.indexOf(S);Q>=0&&c.observers.splice(Q,1)}};
var ZAo=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,_.KK(S,{mode:"readonly",enableRetries:!0},function(f){return f.JSC$10645_wrapped.objectStore("EntityStore").getAll()}),2);
c=Q.yieldResult;return Q.return(Promise.all(c.filter(function(f){return!!f}).map(function(f){var U,a;
return _.O(function(X){if(X.nextAddress==1){U=f.key;a=f.entityType;var z=$3u(jvs(S.JSC$10659_encoderRegistry,f.version),f.data,f.key);return _.F(X,z,2)}return X.return({key:U,entityType:a,data:X.yieldResult})})})))})};
bZ.prototype.handleMessage=function(S){qtJ(this,S.data)};
var qtJ=function(S,c){S=_.A(S.observers);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q(c)};
bZ.prototype.disposeInternal=function(){this.channel.close()};
var j0M;var hA,wC$,Cco;hA={};_.TLd=(hA.mainVideoEntity="mainVideoEntityActionMetadata",hA.mainPlaylistEntity="mainPlaylistEntityActionMetadata",hA.musicTrack="musicTrackEntityActionMetadata",hA.musicPlaylist="musicPlaylistEntityActionMetadata",hA);wC$=new _.Sg("DOWNLOADS_ENTITY_TYPE_MAP");_.QJT=_.xy("","downloadsPageViewConfigurationEntity");Cco=_.xy("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.Jpx=_.xy("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.xy("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.xy("SMART_DOWNLOADS_ENABLED","settingEntity");_.xy("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var M5r=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var kSY=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var LIH={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var qi,vcp,$6h,Zuz;qi=window;_.gP=qi.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.cAx=qi.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Pq;vcp=qi.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||hW;$6h=qi.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||KST;_.svl=qi.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.ZK_;Zuz=qi.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||gyT;dP({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 UiT=PAR(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(S){return S}}}),VZZ=PAR(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(S){return S}}}),VTH=new Map;var aCY=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],Scz;var MrH=function(S){return _.aB({type:"SET_EPHEMERAL_ACTION",payload:S})};var is_={ephemeralAction:null};var Zsd={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var heH={sharedUi:function(S,c){S=S===void 0?Zsd:S;switch(c.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},S,{animatedThumbnailEnabled:c.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},S,{inlinePreviewEnabled:c.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},S,{currentPageType:c.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},S,{currentPageSubType:c.payload});default:return S}},
a11y:Bd({ephemeralAction:function(S,c){S=S===void 0?is_.ephemeralAction:S;switch(c.type){case "SET_EPHEMERAL_ACTION":return c.payload;default:return S}}})};var F6o={playlistId:"",inviteLinkURL:""};var GKi={};var u2c=Bd({continuationCommand:function(S,c){S=S===void 0?GKi:S;switch(c.type){case "SET_CONTINUATION_COMMAND":return c.payload.continuationCommand;default:return S}}});var ICo={currentFormId:"",commandsMap:{}};var jFR=Bd({isLeaderTab:function(S,c){S=S===void 0?!0:S;switch(c.type){case "SET_IS_LEADER_TAB":var Q,f;return(f=c==null?void 0:(Q=c.payload)==null?void 0:Q.isLeaderTab)!=null?f:S;default:return S}}});var W8d=function(S){return _.aB({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:S}})};var pLY=Bd({isDesktopSmallWidth:function(S,c){switch(c.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return c.payload.isDesktopSmallWidth;default:return S===void 0?!1:S}},
isShortsActive:function(S,c){switch(c.type){case "SET_IS_SHORTS_ACTIVE":return c.payload.isShortsActive;default:return S===void 0?!1:S}},
isWatchWhileMode:function(S,c){switch(c.type){case "SET_IS_WATCH_WHILE_MODE":return c.payload.isWatchWhileMode;default:return S===void 0?!1:S}},
playerState:function(S,c){switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return S===void 0?-1:S}},
isFullscreen:function(S,c){switch(c.type){case "SET_IS_FULLSCREEN":return c.payload.isFullscreen;default:return S===void 0?!1:S}},
isSmallScreenSqueezeback:function(S,c){switch(c.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return c.payload.isSmallScreenSqueezeback;default:return S===void 0?!1:S}},
isShortsPipActive:function(S,c){switch(c.type){case "SET_IS_SHORTS_PIP_ACTIVE":return c.payload.isShortsPipActive;default:return S===void 0?!1:S}},
isPlaybackStarted:function(S,c){switch(c.type){case "SET_IS_PLAYBACK_STARTED":return c.payload.isPlaybackStarted;default:return S===void 0?!1:S}}});var T2p=function(){return function(S){return function(c){var Q=S(c);_.XF(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[c],!0);return Q}}};var gOp,ioR;gOp=new _.O_;_.J8=new _.Sg("WATCH_PLAYER_PROMISE_TOKEN");_.eul=new _.O_;_.kKu=new _.Sg("SHORTS_PLAYER_PROMISE_TOKEN");ioR=new _.Sg("");var wLx=function(){return function(S){return function(c){c.type==="ENTITY_LOADED"&&_.fl().resolve(_.J8).then(function(Q){var f;(f=Q.dispatchReduxAction)==null||f.call(Q,c)});
return S(c)}}};var rvh={};var lCx=Bd({additionalContext:function(S,c){switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var Q;return(Q=c.payload)!=null?Q:"";default:return S===void 0?"":S}},
impersonatedChannelUrl:function(S,c){switch(c.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var Q;return(Q=c.payload)!=null?Q:"";default:return S===void 0?"":S}},
selectedVideoIds:function(S,c){S=S===void 0?rvh:S;switch(c.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var Q={};return Object.assign({},S,(Q[c.payload]=!0,Q));case "VIDEO_UNSELECTED":return c=c.payload,S=Object.assign({},S),delete S[c],S;default:return S}}});var YcZ=Bd({parentClickTrackingParams:function(S,c){switch(c.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return c.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return S===void 0?"":S}}});var d3d=function(S){return _.aB({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:S})};var vOl={};var Cnr=Bd({stepStates:function(S,c){S=S===void 0?vOl:S;switch(c.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var Q=S,f=c.payload,U,a,X;S={};c={selectionStates:Object.assign({},(X=(U=Q[f.stepId])==null?void 0:U.selectionStates)!=null?X:{},(S[f.token]={isSelected:f.isSelected},S)),userQuery:(a=Q[f.stepId])==null?void 0:a.userQuery};U={};return Object.assign({},Q,(U[f.stepId]=c,U));case "TALK_TO_RECS_UPDATE_USER_QUERY":return U=S,a=c.payload,X={selectionStates:Object.assign({},
(f=(Q=U[a.stepId])==null?void 0:Q.selectionStates)!=null?f:{}),userQuery:{userQuery:a.userQuery,token:a.userQueryToken}},Q={},Object.assign({},U,(Q[a.stepId]=X,Q));default:return S}}});var Pgu,L8l,trp;Pgu=function(S){return _.aB({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:S})};
L8l=function(S){return _.aB({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:S})};
_.wa=function(S){return _.aB({type:"SET_CURRENT_PAGE_TYPE",payload:S})};
_.EOh=function(S){return _.aB({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:S})};
trp=function(S){return _.aB({type:"SET_CHIP_BAR_IS_STICKY",payload:S})};var btp={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"};_.Vre=function(S){return _.aB({type:"SET_PLAYER_STATE",payload:{playerState:S}})};var Rui=[],yve={width:0,height:0};var Htx=Bd({isTheaterMode:function(S,c){S=S===void 0?_.u("kevlar_disable_theater_mode_persistence")?!1:_.gC("START_IN_THEATER_MODE"):S;switch(c.type){case "SET_IS_THEATER_MODE":return c.payload.isTheaterMode;default:return S}},
isWatchActive:function(S,c){switch(c.type){case "SET_IS_WATCH_ACTIVE":return c.payload.isWatchActive;default:return S===void 0?!1:S}},
isLearningJourneyActive:function(S,c){switch(c.type){case "SET_IS_LEARNING_JOURNEY_ACTIVE":return c.payload.isLearningJourneyActive;default:return S===void 0?!1:S}},
isWatchFullscreen:function(S,c){switch(c.type){case "SET_IS_WATCH_FULLSCREEN":return c.payload.isWatchFullscreen;default:return S===void 0?!1:S}},
isWatchNarrowWidth:function(S,c){switch(c.type){case "SET_IS_WATCH_NARROW_WIDTH":return c.payload.isWatchNarrowWidth;default:return S===void 0?!1:S}},
isWatchRetroMode:function(S,c){switch(c.type){case "SET_IS_WATCH_RETRO_MODE":return c.payload.isWatchRetroMode;default:return S===void 0?!1:S}},
isLiveChatCollapsed:function(S,c){switch(c.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return c.payload.isLiveChatCollapsed;default:return S===void 0?!1:S}},
openEngagementPanels:function(S,c){S=S===void 0?Rui:S;var Q=[].concat(_.Hs(S));switch(c.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return Q.push(c.payload.panelToAdd),Q;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return Q.splice(Q.indexOf(c.payload.panelToRemove),1),Q;default:return S}},
playerState:function(S,c){switch(c.type){case "SET_PLAYER_STATE":return c.payload.playerState;default:return S===void 0?-1:S}},
watchScrollTop:function(S,c){switch(c.type){case "SET_WATCH_SCROLL_TOP":return c.payload.watchScrollTop;default:return S===void 0?0:S}},
watchWindowSize:function(S,c){S=S===void 0?yve:S;switch(c.type){case "SET_WATCH_WINDOW_SIZE":return c.payload.watchWindowSize;default:return S}}});var oOu={feedbackTokens:[]};var DiM=Bd({surveyFeedbackData:function(S,c){S=S===void 0?oOu:S;switch(c.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return c.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},S,c.payload);default:return S}}});var K6o={};var Mno=void 0;_.u("web_enable_redux_store_on_demand")||(Mno=sFR());var m3d=function(S,c,Q){var f=this;this.listId=S;this.JSC$10793_updateCallback=c;this.isOfflineVideoCallback=Q;_.V5().subscribe(function(){f.handleUpdate()})};
m3d.prototype.getPlaylistData=function(){var S=_.V5().getState().entities;if(this.listId&&this.listId!=="PPSV"){var c=iOZ(S,this.listId,!0),Q=_.xy(this.listId,"mainPlaylistEntity"),f,U;S=S==null?void 0:(f=S.mainPlaylistEntity)==null?void 0:(U=f[Q])==null?void 0:U.title;return itM(c,S,this.listId)}c=_.rkY(Okx(S));S=_.rkY(_.pK(S));return itM(c.concat(S))};
m3d.prototype.getPlaylistId=function(){return this.listId};
m3d.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10793_updateCallback(this.listId,this.getPlaylistData(),{})};var T7=function(S,c,Q,f){f=f===void 0?[]:f;this.JSC$10796_playlistNetworkManager=S;this.listId=c;this.JSC$10796_updateCallback=Q;this.videoIds=f;this.pendingUpdates=[];this.currentIndex=0};
T7.prototype.JSC$10796_setCurrentIndex=function(S){this.currentIndex=S};
T7.prototype.setListId=function(S){this.listId=S};
var S6z=function(S,c){S.currentCreateRequest&&S.currentCreateRequest.cancel(c);S.currentUpdateRequest&&S.currentUpdateRequest.cancel(c);S.currentRefreshRequest&&S.currentRefreshRequest.cancel(c)};
T7.prototype.delete=function(){S6z(this,"PROXY DELETED")};
T7.prototype.addVideos=function(S,c,Q){var f=this;Q!==void 0?this.videoIds.splice.apply(this.videoIds,[Q,0].concat(_.Hs(S))):this.videoIds.push.apply(this.videoIds,_.Hs(S));this.listId||this.currentCreateRequest?(S.forEach(function(U,a){U={addedVideoId:U,action:"ACTION_ADD_VIDEO"};Q&&(U.addedVideoPosition=Q+a);f.pendingUpdates.push(U)}),w2(this)):cdu(this,c.onCreateListCommand)};
var Q5d=function(S,c,Q,f,U){YTx(S.videoIds,c,Q);c>S.currentIndex&&Q<=S.currentIndex?S.JSC$10796_setCurrentIndex(S.currentIndex+1):c===S.currentIndex?S.JSC$10796_setCurrentIndex(Q):c<S.currentIndex&&Q>=S.currentIndex&&S.JSC$10796_setCurrentIndex(S.currentIndex-1);S.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:f,movedSetVideoIdPredecessor:U});w2(S)},cdu=function(S,c){S6z(S,"OBSOLETE");
S.currentCreateRequest=fjh(S.JSC$10796_playlistNetworkManager,c,S.videoIds);_.p0(S.currentCreateRequest,function(){S.currentCreateRequest=void 0}).then(function(Q){S.setListId(Q.playlistId);
S.pendingUpdates.length>0?w2(S):U0_(S)})},w2=function(S){if(S.pendingUpdates.length!==0&&(S.currentRefreshRequest&&S.currentRefreshRequest.cancel("OBSOLETE"),!S.currentUpdateRequest&&!S.currentCreateRequest)){var c=S.pendingUpdates.splice(0,S.pendingUpdates.length);
S.currentUpdateRequest=S.JSC$10796_playlistNetworkManager.updatePlaylist(S.listId,c);_.p0(S.currentUpdateRequest,function(){S.currentUpdateRequest=void 0}).then(function(){S.pendingUpdates.length>0?w2(S):U0_(S)}).thenCatch(function(){S.pendingUpdates.unshift.apply(S.pendingUpdates,_.Hs(c))})}},U0_=function(S){S.currentRefreshRequest=_.JdJ(S.JSC$10796_playlistNetworkManager,S.listId,S.currentIndex,S.videoIds[S.currentIndex]);
_.p0(S.currentRefreshRequest,function(){S.currentRefreshRequest=void 0}).then(function(c){S.JSC$10796_updateCallback(c.playlistId,c.playlistPanelRenderer,c.autoplayRenderer)})};
T7.prototype.size=function(){return this.videoIds.length};var ajs=function(S,c,Q,f){f=f===void 0?[]:f;T7.call(this,S,c,Q,f);this.JSC$10796_playlistNetworkManager=S;this.listId=c;this.JSC$10796_updateCallback=Q;this.videoIds=f};
_.C(ajs,T7);_.sc=function(S,c,Q,f,U,a,X){U=U===void 0?[]:U;X=X===void 0?A3:X;T7.call(this,S,c,Q,U);this.JSC$10796_playlistNetworkManager=S;this.listId=c;this.JSC$10796_updateCallback=Q;this.onAuthChange=f;this.videoIds=U;this.storage=a;this.cookieReader=X;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.Xi(_.Mq,this.checkLoggedInStatusChange.bind(this),1E3)};
_.C(_.sc,T7);_.J=_.sc.prototype;_.J.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.Xi(_.Mq,this.checkLoggedInStatusChange.bind(this),1E3)};
_.J.JSC$10796_setCurrentIndex=function(S){T7.prototype.JSC$10796_setCurrentIndex.call(this,S);this.store()};
_.J.delete=function(){_.Mq.cancelJob(this.queueSapisIdJob);T7.prototype.delete.call(this)};
_.J.setListId=function(S){T7.prototype.setListId.call(this,S);this.store()};
_.J.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var Adz=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Xud=["playerResponse","videoDetails"],OEd=["response","currentVideoEndpoint","watchEndpoint","videoId"],zld=["response","currentVideoEndpoint","watchEndpoint","playlistId"],x0p=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],Frs=["response","contents","twoColumnWatchNextResults","playlist","playlist"],BlT=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
Ij$=["response","contents","twoColumnWatchNextResults"];var Mi={},eeH=(Mi.WEB_UNPLUGGED="^unplugged/",Mi.WEB_UNPLUGGED_ONBOARDING="^unplugged/",Mi.WEB_UNPLUGGED_OPS="^unplugged/",Mi.WEB_UNPLUGGED_PUBLIC="^unplugged/",Mi.WEB_CREATOR="^creator/",Mi.WEB_KIDS="^kids/",Mi.WEB_EXPERIMENTS="^experiments/",Mi.WEB_MUSIC="^music/",Mi.WEB_REMIX="^music/",Mi.WEB_MUSIC_EMBEDDED_PLAYER="^music/",Mi.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",Mi);var lpY,fjh;lpY=function(S,c){this.networkManager=S;this.innertubeTransportService=c};
fjh=function(S,c,Q){if(!_.Y(c,_.eT))return _.pv(Error("Gf"));_.Y(c,_.eT).videoIds=Q;Q={create_playlist_title:_.K8("QUEUE",void 0,"Queue")};return W6z(_.P3(S.innertubeTransportService,c,Q),Ztc)};
_.JdJ=function(S,c,Q,f){c={videoId:f,playlistId:c,playlistIndex:Q};Q=_.RB(nJ$);return W6z(_.ZC(S.innertubeTransportService,c,Q),gAr)};
lpY.prototype.updatePlaylist=function(S,c){return W6z(_.P3(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:S,actions:c}}),G7x)};var nFe=function(S){this.storage=S},bET;
nFe.prototype.store=function(S,c){c=c===void 0?0:c;if(this.storage&&S.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",S),this.storage.set("TLPQindex",String(c)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(Q){}};
nFe.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
nFe.prototype.getPlaylistId=function(){if(!this.storage)return null;var S=null;try{S=this.storage.get("TLPQplaylist")}catch(c){}return S};var vAY=["navigationEndpoint","watchEndpoint","videoId"],dix=["nextButtonVideo","watchEndpoint","videoId"];_.s_=new _.Sg("NETWORK_TOKEN");_.oZ=new _.Sg("PAGE_TOKEN");_.G7=new _.Sg("PLAYLIST_TOKEN");var Nlh;Nlh=new _.Sg("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.M6=new _.Sg("INNERTUBE_TRANSPORT_TOKEN");var KrJ,WL,ud_,j5H,Y6l,CF_;KrJ=new Set(["ci","cr","carml"]);WL=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10843_parkedJobs=new Map;this.parkedProcessors=new Map};
_.g2=function(){WL.instance||(WL.instance=new WL);return WL.instance};
WL.prototype.onAny=function(S){return _.$0J(this,S,2)};
WL.prototype.parkOrScheduleJob=function(S,c,Q,f,U){_.en(this,Q)?_.TV().addJob(S,c,f):(U&&(S=ud_(S),j5H(this,S,c,Q,U)),U=this.JSC$10843_parkedJobs.get(Q),U||(this.JSC$10843_parkedJobs.set(Q,[]),U=this.JSC$10843_parkedJobs.get(Q)),U.push({job:S,priority:c,delay:f}))};
WL.prototype.addListener=function(S,c,Q){Q&&(c=ud_(c),j5H(this,c,0,S,Q));Q=this.parkedProcessors.get(S);Q||(this.parkedProcessors.set(S,[]),Q=this.parkedProcessors.get(S));Q.push(c)};
WL.prototype.processSignal=function(S){if(!_.en(this,S)){this.inProgressSignals.add(S);var c=this.JSC$10843_parkedJobs.get(S);if(c){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,_.TV().addJob(Q.job,Q.priority,Q.delay);this.JSC$10843_parkedJobs.delete(S)}if(c=this.parkedProcessors.get(S)){c=_.A(c);for(Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q();this.parkedProcessors.delete(S)}this.signals.push(S);this.inProgressSignals.delete(S)}};
_.en=function(S,c){return KrJ.has(c)||_.gC("IS_HOMEPAGE_COLD")||_.gC("IS_RESULTS_PAGE_COLD")||_.gC("IS_WATCH_PAGE_COLD")?S.signals.indexOf(c)>=0:!0};
ud_=function(S){var c=!1;return function(){c||(c=!0,S())}};
j5H=function(S,c,Q,f,U){if(ljh.has(f))_.TV().addJob(c,Q,U);else{var a=S.compoundSignals.get(f);a&&_.TV().addJob(function(){_.en(S,f)||(a.isTimeoutConditionSatisfied?_.TV().addJob(c,Q):a.timeoutConditionObservers.push(function(){_.TV().addJob(c,Q)}))},Q,U)}};
_.$0J=function(S,c,Q){if(c.length>1){var f=[],U=Object.create(null);c=_.A(c);for(var a=c.next();!a.done;a=c.next())a=a.value,U[a]||(f.push(a),U[a]=!0);c=f}if(c.length===1)return c[0];a=c;f="";U=Q===2?"|":"&";a.sort();a=_.A(a);for(var X=a.next();!X.done;X=a.next())f+=X.value+U;if(!S.compoundSignals.get(f)){U=0;a=[];X=_.A(c);for(var z=X.next();!z.done;z=X.next())z=z.value,U++,_.en(S,z)||a.push(z);(Q=Q===2)&&U>a.length||!Q&&!a.length?S.signals.push(f):Y6l(S,f,Q,c,a)}return f};
Y6l=function(S,c,Q,f,U){var a=U.length,X=function(){Q||--a===0?S.processSignal(c):CF_(S,c)};
U=_.A(U);for(var z=U.next();!z.done;z=U.next())S.addListener(z.value,X);S.compoundSignals.set(c,{signals:f,isOnAny:Q,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});CF_(S,c)};
CF_=function(S,c){if(!_.en(S,c)){var Q=S.compoundSignals.get(c);if(Q&&!Q.isTimeoutConditionSatisfied){for(var f=!1,U=0,a=0,X=_.A(Q.signals),z=X.next();!z.done;z=X.next()){var x=z.value;z=!_.en(S,x);ljh.has(x)?f=!0:(x=S.compoundSignals.get(x))?z&&!x.isTimeoutConditionSatisfied&&(a++,Q.isInitialized||x.timeoutConditionObservers.push(function(){CF_(S,c)})):z&&U++}Q.isInitialized=!0;
Q.isOnAny?f&&(Q.isTimeoutConditionSatisfied=!0):U===0&&a===0&&(Q.isTimeoutConditionSatisfied=!0);if(Q.isTimeoutConditionSatisfied)for(Q=_.A(Q.timeoutConditionObservers),f=Q.next();!f.done;f=Q.next())f=f.value,f()}}};
WL.prototype.processSignal=WL.prototype.processSignal;WL.prototype.parkOrScheduleJob=WL.prototype.parkOrScheduleJob;WL.prototype.onAny=WL.prototype.onAny;_.m5("ytsignals.getInstance",_.g2);WL.prototype.onAny=WL.prototype.onAny;WL.prototype.parkOrScheduleJob=WL.prototype.parkOrScheduleJob;WL.prototype.processSignal=WL.prototype.processSignal;var ljh=new Set(["eop","eocs","dl","pcl"]);_.ra=new _.Sg("MINIPLAYER_SERVICE");var kA,HEd,D0d;kA=function(S,c,Q){var f=_.dQ.getInstance();if(!bET){var U=new bPp;var a=void 0,X=_.WY("ID_TOKEN");X&&U.isAvailable()&&(a=new pl(U,"yt-queue"+X));bET=new nFe(a)}U=bET;a=_.g2();this.JSC$10850_actionRouter=f;this.pageManager=S;this.playlistManager=c;this.JSC$10850_playlistNetworkManager=Q;this.storage=U;this.signals=a;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.r2=function(){if(!HEd){var S=_.fl(),c=S.resolve(_.QS(_.oZ)),Q=S.resolve(_.QS(_.s_)),f=S.resolve(_.QS(_.G7));S=S.resolve(_.M6);HEd=new kA(c,f,new lpY(Q,S))}return HEd};
D0d=function(S,c,Q){if(Q){var f;if(((f=S.responsePlaylistData)==null?void 0:f.playlistId)!==Q)return}S.responsePlaylistData&&(Q=Reo(c,S.responsePlaylistData),S.responsePlaylistData=(0,_.Cn.unsafeClone)(S.responsePlaylistData),oAz(S.responsePlaylistData,Q));Q=S.temporaryItems.findIndex(function(U){return U.videoId===c});
Q>-1&&S.temporaryItems.splice(Q,1);_.d2(S,_.vL(S,S.response?S.response.autoplayRenderer:void 0))};
_.pud=function(S,c){if(S.responsePlaylistData){var Q=yAZ(c,S.responsePlaylistData);oAz(S.responsePlaylistData,Q);if(S.queueProxy){var f=S.queueProxy;Q<0||(f.videoIds.splice(Q,1),Q<f.currentIndex&&f.JSC$10796_setCurrentIndex(f.currentIndex-1),f.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:c}),w2(f))}}_.d2(S,_.vL(S,S.response?S.response.autoplayRenderer:void 0))};
kA.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.d2(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
kA.prototype.setPlaylistData=function(S,c,Q){this.temporaryItems=[];this.listId=S;this.responsePlaylistData=c;_.d2(this,_.vL(this,Q))};
var hl$=function(S){return(S==null?0:S.playlistId)?S.playlistId:"PPSV"},q6u=function(S){return S&&S.playlistId?S.playlistId==="PPSV"?!0:s7p(_.V5().getState().entities,S.playlistId):!1};
kA.prototype.isPlayingOfflineVideo=function(){return this.response?q6u(this.response):!1};
kA.prototype.closeMiniplayer=function(S){var c=this.queueProxy&&this.queueProxy.size()<=1,Q=_.fl().resolve(_.ra);if(!this.queueProxy||c)this.queueProxy&&this.clearQueue(),Q.close(!0);else{Q.pipController.getWindow()&&window.focus();c=this.responsePlaylistData;var f=this.temporaryItems.length+(c&&c.contents?c.contents.length:0);c=_.K8("QUEUE_CLEARED_UNPLURALIZED")||_.$t("QUEUE_CLEARED",f);c=_.oB(c);Q=_.K8("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");f=_.K8("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.$t("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",f);var U=_.K8("MINIPLAYER_CLOSE",void 0,"Close"),a=_.K8("CANCEL",void 0,"Cancel");_.i4(this.JSC$10850_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.LK(Q),dialogMessages:[_.LK(f)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.LK(U),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
c]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.LK(a)}}}}}}],S)}};
_.vL=function(S,c){var Q={},f=S.response;Q.autoplayRenderer=c;if(!S.responsePlaylistData&&!S.temporaryItems.length)return!f||!f.hasRelatedVideoData&&_.u("kevlar_prefetch_data_augments_network_data")||(Q.playerData={rvs:f.relatedVideoArgs,endScreenRenderer:f.endScreenRenderer}),Q;Q.playerData={};if(S.index===void 0)return _.sH(Error("If")),Q;Q.panel=S.responsePlaylistData?(0,_.Cn.unsafeClone)(S.responsePlaylistData):{titleText:_.LK(_.K8("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
c=Q.panel;if(c.contents)for(var U=_.A(S.temporaryItems),a=U.next();!a.done;a=U.next())c.contents.push({playlistPanelVideoRenderer:a.value});S.queueProxy&&f&&f.playingVideo&&f.playingVideoId&&!Vnr(f.playingVideoId,Q.panel)&&(c=f.playingVideo,U=Q.panel,a=S.index,U.contents&&U.contents.splice(a===void 0?0:a,0,{playlistPanelVideoRenderer:c}));f&&f.playingVideoId&&(c=S.index,U=Q.panel,c=!U.contents||c>=U.contents.length?void 0:U.contents[c].playlistPanelVideoRenderer,c&&c.videoId===f.playingVideoId||(c=
Reo(f.playingVideoId,Q.panel),S.index=c!==-1?c:S.index?S.index-1:0));c=tnp(S.index+1,Q.panel);U=void 0;S.index>0&&(U=tnp(S.index-1,Q.panel));if(U||c)Q.autoplayRenderer=PnZ(c,U,Q.autoplayRenderer);!c&&(f==null?0:f.relatedVideoArgs)&&(Q.playerData.rvs=f.relatedVideoArgs);f=f?f.playlistIndexOffset:0;S.queueProxy?cKR(Q.panel,S.index,f,EAH,!0,!0,!0):cKR(Q.panel,S.index,f);Q.playerData.playlistPanelRenderer=Q.panel;return Q};
kA.prototype.openToast=function(S){_.fl().resolve(_.ra).openToast(S,_.K8("ADDED_TO_QUEUE",void 0,"Added to queue"))};
kA.prototype.isMiniplayerActive=function(){return _.fl().resolve(_.ra).isMiniplayerActive()};
_.d2=function(S,c){S.playlistManager.setAutoplayRenderer(c.autoplayRenderer||null);S.playlistManager.setPlaylistData(c.panel||null);c.playerData&&S.playlistManager.setPlayerPlaybackControlData(c.playerData)};var fMZ="#";var Tl$={},wuu={},s5z={},MXe={},iEp={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:(Tl$.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",Tl$),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:(wuu.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",wuu),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:(s5z.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",s5z),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:(MXe.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",MXe),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 gRz=[{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:iEp},{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:iEp}}];var hSZ;_.XU=[[["bG1wcmk2M245ZjFraW5kIzg=","Mjg3N2trNXB2YWx1ZSNwcms3"],"TlRfS0lORF9TVEFSVCN4dG5zcGllMmV5MnhBRF9QTEFDRU1F"]];
hSZ=[[["dzFwcmltYXJ5I3JxemY3ZG1iY2Y=",null,null],[null,["MXdib2phOXhqb3R5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVzdWx0cy1yZW5kZXJlciM1","ZSN4bWV5dXJjaDlzcXNzdHlsZS1zY29w"],null],["ZCNxZTh5OW1qamRmN3VtYXN0aGVhZC1h",["LWdyaWQtcmVuZGVyZXIjbXAxbGhha2ZjbTFyeXRkLXJpY2g="],null],[null,["Y2gtZ3JpZC1yZW5kZXJlciNyeTA2MmExN241cHl0ZC1yaQ==","ZSNrMzc2NDIxcXhvMWpzdHlsZS1zY29w"],null],[null,["bW8tcmVuZGVyZXIjOWR2YXVvdmw4NHVueXRkLWJhbm5lci1wcm8=","ZSM3bTB3bDVjYW80aGNzdHlsZS1zY29w"],null],[null,["YWQtc2xvdC1yZW5kZXJlciNleWh2MW0xbDc0N3Z5dGQt"],
null]],[["YWRzI3hjN2d1Y213dmNjbnBsYXllci0=",null,null]]];_.A4=["dWsxZDZsZ2xvYmFsQ2FsbGJhY2tzI3lxcG9oNg==","cm1hbGl0eURldGVjdGVkI2VjcXU1cW40c2I3NW9uQWJubw==","bkFkU2tpcCNsemN6ems4MnA5eW9v","cmF3X3BsYXllcl9yZXNwb25zZSNienZ0NW9maXl3NQ==","eWthZFNsb3RzI3VtajNrMmVoMmk="];_.PL="dWsxZDZsZ2xvYmFsQ2FsbGJhY2tzI3lxcG9oNg== cm1hbGl0eURldGVjdGVkI2VjcXU1cW40c2I3NW9uQWJubw== bkFkU2tpcCNsemN6ems4MnA5eW9v cmF3X3BsYXllcl9yZXNwb25zZSNienZ0NW9maXl3NQ== IzQxbnMxc2UycnI2dHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcw== Yl9zYV9lZiMyamdlbWRkczQ0YWhh eWthZFNsb3RzI3VtajNrMmVoMmk=".split(" ");var Lt;Lt=function(S,c,Q){this.oYP=S;this.isAsync=c;this.bj2=Q};
_.yKH=[new Lt("b.f_",!1,0),new Lt("j.s_",!1,2),new Lt("r.s_",!1,4),new Lt("e.h_",!1,6),new Lt("i.s_",!0,8),new Lt("s.t_",!1,10),new Lt("p.h_",!1,12),new Lt("s.i_",!1,14),new Lt("f.i_",!1,16),new Lt("a.b_",!1,18),new Lt("a.o_",!1),new Lt("g.o_",!1,22),new Lt("p.i_",!1,24),new Lt("p.m_",!1),new Lt("n.k_",!0,20),new Lt("i.f_",!1),new Lt("a.s_",!0),new Lt("m.c_",!1),new Lt("n.h_",!1,26),new Lt("o.p_",!1),new Lt("m.p_",!0,28),new Lt("o.a_",!1),new Lt("d.p_",!1),new Lt("e.i_",!1)].reduce(function(S,c){S[c.oYP]=
c;return S},{});var ZET=function(){};
ZET.prototype.flush=function(S,c){S=S===void 0?[]:S;c=c===void 0?!1:c;if(_.u("enable_client_streamz_web")){S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=v0T(Q.value),this.rootSpec&&_.Qx(Q,2,this.rootSpec),Q={serializedIncrementBatch:_.mV(Q.JSC$7644_serializeBinary())},_.Te("streamzIncremented",Q,{sendIsolatedPayload:c})}};
var AKp=function(){};
_.C(AKp,ZET);var GTe=function(S){var c=new GOJ;var Q=new MNH;Q=_.bN(Q,1,"botguard");S=_.bN(Q,2,S);this.rootSpec=_.fc(c,1,WVd,S)};
_.C(GTe,ZET);var U_,Wrh=new Map;var stM,OMY,Knz,Fnc,nRz,Duo,iMM,CsH;stM=2;OMY=2;Knz=2;Fnc=2;nRz=2;Duo=2;iMM=2;CsH=new eUz;var eld,kTJ,rdd;eld=function(){this.ongoingFlowNonces=new Map};
_.FU=function(){kTJ||(kTJ=new eld);return kTJ};
_.zW=function(S,c,Q){return{eventType:{flowEventNamespace:S,flowEventType:c},metadata:Q,statusCode:void 0,csn:void 0,can:void 0}};
_.muH=function(S,c){var Q=_.FU(),f=rdd(Q,c,!0);_.xk(Q,S,c,f)};
_.xk=function(S,c,Q,f){S={flowNonce:f||rdd(S,Q),flowType:Q,flowEventType:c.eventType};c.metadata&&(S.flowMetadata=c.metadata);c.statusCode!==void 0&&(S.flowEventStatus=c.statusCode);c.csn&&(S.csn=c.csn);c.can&&(S.can=c.can);_.Te("flowEvent",S,void 0)};
rdd=function(S,c,Q){Q=Q===void 0?!1:Q;var f=S.ongoingFlowNonces.get(c);if(!f||Q)f=hG(16),S.ongoingFlowNonces.set(c,f);return f};_.d0J=new gpd;var fpZ={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 Ec=function(S,c,Q,f,U,a,X){Q=Q===void 0?!1:Q;f=f===void 0?!1:f;a=a===void 0?_.r2():a;this.hasRun=!1;this.izJ=S;this.f0R=c;this.hTs=Q;this.fromHistory=f;this.previousVideoId=U;this.yzW=a;this.tempData=X;this.gu4=new _.kCu};
_.C(Ec,mx);Ec.prototype.validate=function(S){return!(!S.data.playerResponse||S.data.page!=="watch"&&S.data.page!=="learning_journey_watch"&&S.data.page!=="shorts"||this.hasRun)};
Ec.prototype.handle=function(S){var c=this,Q=_.Y(S.endpoint,_.tG),f=_.Y(S.endpoint,_.ll);if(_.u("kevlar_continue_playback_without_player_response")&&(Q==null?0:Q.videoId)&&this.previousVideoId&&(Q==null?void 0:Q.videoId)===this.previousVideoId&&(Q==null?0:Q.continuePlayback)&&!this.fromHistory)this.izJ.resolve();else{var U={};Q?U.watch_endpoint=Q:f&&(U.watch_endpoint=f,f.endTimeSeconds&&(U.end=f.endTimeSeconds));S.data.page==="watch"?(S.data.filler||this.hTs||(_.Z5("cfg"),_.dQ.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(U,vFs(this,S.endpoint)),_.u("enable_masthead_quartile_ping_fix")&&Object.assign(U,PFh(this)),Object.assign(U,void 0),S.data.forceExternalPlaylist&&(U.external_list=!0)):S.data.page==="shorts"?_.dQ.getInstance().triggerAction("yt-start-loading-shorts"):S.data.page==="learning_journey_watch"&&_.dQ.getInstance().triggerAction("yt-start-loading-learning-journey");if(Q=this.f0R()){try{Q.loadVideoWithPlayerResponse(S.data.playerResponse,U),Q.getPlayerPromise().then(this.izJ.resolve)}catch(a){_.sH(a),
this.izJ.resolve()}this.hasRun=!0;Q.getPlayerPromise().then(function(a){a.addEventListener("onAbnormalityDetected",function(){var X=S.data.playerResponse,z=a.getVideoData().cpn;iMM=0;_.gFT=z;if(z=RSH(X))c.gu4.increment("IN_PLAYER"),_.BV(5),_.u("ab_st_vid_ks")?a.pauseVideo(!0):a.stopVideo(),X.playabilityStatus=Object.assign({},X.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:z}}),X.videoDetails=void 0,_.dQ.getInstance().triggerOptionalAction("yt-updated-playability-status",
X.playabilityStatus)})})}else _.i5(Error("Lf"))}};
var vFs=function(S,c){var Q=_.Y(c,_.tG);if(c&&Q&&Q.playlistId&&Q.videoId&&(S=S.yzW,S.queueProxy?(S=S.queueProxy,Q=S.listId===Q.playlistId?S.attributionData.get(Q.videoId):void 0):Q=void 0,Q))return{queue_info:Q}},PFh=function(S){var c;
if((c=S.tempData)==null?0:c.adpings)return{adpings:S.tempData.adpings}};var tA=function(S,c,Q){this.hasRun=!1;this.kqR=S;this.szs=c;this.pzZ=Q};
_.C(tA,mx);tA.prototype.validate=function(S){return!!_.Cn.getValueByKeys.apply(null,[S.data].concat(_.Hs(Ij$)))};
tA.prototype.handle=function(S){var c=this;this.kqR.promise.then(function(){var Q=S.data;var f=_.Cn.getValueByKeys.apply(null,[Q].concat(_.Hs(Adz))),U=_.Cn.getValueByKeys.apply(null,[Q].concat(_.Hs(Frs))),a=_.Cn.getValueByKeys.apply(null,[Q].concat(_.Hs(OEd)));var X=(X=_.Cn.getValueByKeys.apply(null,[Q].concat(_.Hs(Xud))))?{videoId:X.videoId,thumbnail:X.thumbnail,title:X.title?_.LK(X.title):void 0,shortBylineText:X.author?_.LK(X.author):void 0}:void 0;var z=void 0;_.u("web_get_playlist_id_from_current_endpoint_ks")||
(z=_.Cn.getValueByKeys.apply(null,[Q].concat(_.Hs(zld))));var x=_.Cn.getValueByKeys.apply(null,[Q].concat(_.Hs(BlT))),I=_.Cn.getValueByKeys.apply(null,[Q].concat(_.Hs(x0p))),n=!!x||!!I&&!!I.results&&I.results.length>0,b=0;U&&U.currentIndex&&U.localCurrentIndex&&(b=U.currentIndex-U.localCurrentIndex);U&&U.playlistId&&(z=U.playlistId);Q={rawResponse:Q,autoplayRenderer:f,hasRelatedVideoData:n,playingVideo:X,playingVideoId:a,playlistPanelRenderer:U,playlistId:z,playlistIndex:U&&U.currentIndex,relatedVideoArgs:x,
endScreenRenderer:I,playlistIndexOffset:b};a:{f=c.pzZ;U=c.szs;f.response=Q;if(q6u(Q))f.downloadPlaylistProxy&&f.downloadPlaylistProxy.getPlaylistId()===hl$(Q)||(f.downloadPlaylistProxy=new m3d(hl$(Q),f.setPlaylistData.bind(f),f.isPlayingOfflineVideo.bind(f))),f.responsePlaylistData=f.downloadPlaylistProxy.getPlaylistData(),f.listId=hl$(Q),f.index=0;else if(Q.playlistPanelRenderer&&Q.playlistId&&Q.autoplayRenderer)Q.playlistId.startsWith("TLPQ")?f.queueProxy?f.listId===Q.playlistId?(f.index=Q.playlistIndex,
f.responsePlaylistData=Q.playlistPanelRenderer,f.queueProxy.JSC$10796_setCurrentIndex(f.index)):Q.playingVideoId&&f.index!==void 0&&U.clientParams.autoSaveToQueue&&(f.index+=1,f.queueProxy.JSC$10796_setCurrentIndex(f.index),f.queueProxy.addVideos([Q.playingVideoId],{},f.index)):(f.queueProxy=new _.sc(f.JSC$10850_playlistNetworkManager,Q.playlistId,f.setPlaylistData.bind(f),f.clearQueue.bind(f),_.miZ(Q.playlistPanelRenderer),f.storage),f.responsePlaylistData=Q.playlistPanelRenderer,f.listId=Q.playlistId,
f.index=Q.playlistIndex):(f.index=Q.playlistIndex,f.listId!==Q.playlistId&&f.clearQueue(),f.responsePlaylistData=Q.playlistPanelRenderer,f.listId=Q.playlistId,f.playlistProxy=new ajs(f.JSC$10850_playlistNetworkManager,Q.playlistId,f.setPlaylistData.bind(f),_.miZ(Q.playlistPanelRenderer)));else if(!f.queueProxy)f.responsePlaylistData=void 0;else if(Q.playingVideoId&&U.clientParams.autoSaveToQueue){if(f.index===void 0){_.sH(Error("Hf"));f.clearQueue();break a}f.queueProxy.videoIds.includes(Q.playingVideoId)||
(f.index+=1,f.queueProxy.JSC$10796_setCurrentIndex(f.index),f.queueProxy.addVideos([Q.playingVideoId],{},f.index))}_.d2(f,_.vL(f,f.response.autoplayRenderer))}})};var LrT=function(S,c){c=c===void 0?_.r2():c;IF.call(this);this.jF.push(new tA(this.n6,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},c));this.jF.push(new Ec(this.n6,S,!1,!1));_.u("web_response_commands_chunk_processor")&&this.jF.push(new nt)};
_.C(LrT,IF);LrT.prototype.processChunk=function(S){S&&S.data.player===void 0&&this.n6.resolve();IF.prototype.processChunk.call(this,S)};var VO=function(S,c){S=S===void 0?{layer:0}:S;this.hasRun=!1;this.createScreenConfig=S;this.xrH=c};
_.C(VO,mx);VO.prototype.validate=function(S){return!(this.hasRun||!S.endpoint)};
VO.prototype.handle=function(S){var c=_.Kv(),Q,f,U=(f=_.Y((Q=S.endpoint)==null?void 0:Q.commandMetadata,_.Qw))==null?void 0:f.rootVe;this.xrH&&U?_.X2(c,U,this.xrH,this.createScreenConfig):Zmh(c,S.endpoint,this.createScreenConfig);this.hasRun=!0};var RF=function(S,c){this.hasRun=!1;this.mia=S;this.previousVideoId=c};
_.C(RF,mx);RF.prototype.validate=function(S){return _.u("kevlar_continue_playback_without_player_response")&&(S=_.Y(S.endpoint,_.tG),(S==null?0:S.videoId)&&this.previousVideoId&&(S==null?void 0:S.videoId)===this.previousVideoId&&(S==null?0:S.continuePlayback))?!1:this.mia.vOR===0};
RF.prototype.handle=function(S){_.dQ.getInstance().triggerAction("yt-stop-old-player",S.data,!0)};var EFJ=function(S){S=S===void 0?{layer:0}:S;IF.call(this);this.jF.push(new RF(this));this.jF.push(new VO(S));this.jF.push(new BL(S))};
_.C(EFJ,IF);var tXz=function(){this.hasRun=this.hasRun=!1};
_.C(tXz,mx);tXz.prototype.validate=function(S){return!this.hasRun&&!(!S.data.csn||!S.data.rootVe)};
tXz.prototype.handle=function(S){this.hasRun=!0;_.ME(S.data.csn,S.data.rootVe,3)};var VXl=function(){mx.apply(this,arguments)};
_.C(VXl,mx);VXl.prototype.validate=function(S){return!!S.data.preconnect};
VXl.prototype.handle=function(S){_.i2("bc");S=_.A(S.data.preconnect);for(var c=S.next();!c.done;c=S.next())c=c.value,(new Image).src=c};var Rl$=function(S,c,Q){Q=Q===void 0?{layer:0}:Q;IF.call(this);this.jF.push(new Ec(this.n6,S));this.jF.push(new VO(Q));this.jF.push(new BL(Q))};
_.C(Rl$,IF);var ydJ=function(S,c,Q,f,U){Q=Q===void 0?{layer:0}:Q;f=f===void 0?_.r2():f;IF.call(this);var a=!!c&&!!c.clientParams&&!!c.clientParams.miniplayer;a&&this.jF.push(new tXz);this.jF.push(new tA(this.n6,c,f));this.jF.push(new VXl);var X,z;this.jF.push(new Ec(this.n6,S,a,!((X=c.clientParams)==null||!X.fromHistory),(z=c.clientParams)==null?void 0:z.previousVideoId,f,c.tempData));var x;this.jF.push(new RF(this,(x=c.clientParams)==null?void 0:x.previousVideoId));var I;(I=c.clientParams)!=null&&I.fromHistory||
(Q.layer||(Q=Object.assign({},Q,{layer:a?3:0})),this.jF.push(new VO(Q,U)),this.jF.push(new BL(Q)));_.u("web_response_commands_chunk_processor")&&this.jF.push(new nt)};
_.C(ydJ,IF);var yO,Suu;yO={};
_.oF_=(yO["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},yO["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},yO["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},yO["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},yO["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},yO["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},yO["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},yO);_.oF=new _.ge("yt-edu");_.m0s=function(){this.JSC$10951_eduDisplayedThisLoad_={}};
Suu=function(S){var c=_.m0s.getInstance();var Q=_.a6("kevlar_tooltip_impression_cap");c=Q&&parseInt(_.oF.get(S+"-impression")||0,10)>=Q||_.oF.get(S+"-dismissed")?!1:(Q=_.oF_[S])&&!c.JSC$10951_eduDisplayedThisLoad_[Q.setKey||S]&&(Q.titleText&&_.K8(Q.titleText)||Q.bodyText&&_.K8(Q.bodyText))?!0:!1;if(!c)return null;c=_.oF_[S];if(!c)return null;Q=c.bodyText?_.K8(c.bodyText):void 0;var f=c.titleText?_.K8(c.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:c.position,popup:{bubbleHintRenderer:{text:f?
_.LK(f):void 0,detailsText:Q?_.LK(Q):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.LK(_.K8("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:S}}]}}}}}}}},{eduImpressionAction:{key:S}}]};
_.ar(_.m0s);var SLY=!1;for(var c7d="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),QPe=[],m6=6;m6>=1;m6--)QPe.push({columnCount:m6,query:m6==1?0:m6*2*107-4+32,className:"grid-"+m6+"-columns",width:m6*2*107+"px"});_.Unh=function(S){this.actionRouter_=S=S===void 0?_.dQ.getInstance():S;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.frp(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.frp=function(S){var c=S.miniGuideVisible_?72:0,Q=S.documentWidth_-(S.guidePersistentAndVisible_?240:c);return QPe.find(function(f){return Q>f.query})};
_.ar(_.Unh);var J7H=function(){var S=this;this.JSC$10963_keyboardInUse=!1;document.addEventListener("keydown",function(){S.onKeydown()});
document.addEventListener("mousedown",function(){S.JSC$10963_keyboardInUse=!1})},aru;
J7H.prototype.isKeyBoardInUse=function(){return this.JSC$10963_keyboardInUse};
J7H.prototype.onKeydown=function(){this.JSC$10963_keyboardInUse=!0};var A7u,Q$;_.SE=new _.ge("yt-mentions");_.cb=function(){};
A7u=function(S,c){return Q$(c,"drag-to-reorder-edu-displayed")};
Q$=function(S,c,Q,f,U,a){Q=Q===void 0?"OPEN_POPUP_POSITION_TOP":Q;if(c){if(_.SE.get(c))return;_.SE.set(c,!0,f)}if(U&&a!==void 0){c=Number(_.SE.get(U)||0);if(c>=a)return;_.SE.set(U,c+1)}return[{openPopupAction:{popupType:"HINT",position:Q,popup:{bubbleHintRenderer:{detailsText:S,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.ar(_.cb);var Xed,O3s,zTd;Xed=function(S,c,Q,f){this.JSC$10973_taskManager_=S;this.onFulfilled_=typeof c==="function"?c:null;this.onRejected_=typeof Q==="function"?Q:null;this.JSC$10973_context_=f};
O3s=function(S,c){S.onFulfilled_&&_.u9(S.JSC$10973_taskManager_,function(){S.onFulfilled_.call(S.JSC$10973_context_,c)})};
zTd=function(S,c){S.onRejected_&&_.u9(S.JSC$10973_taskManager_,function(){S.onRejected_.call(S.JSC$10973_context_,c)})};
_.fM=function(S){this.JSC$10976_taskManager_=S;this.callbacks_=[]};
_.fM.prototype.then=function(S,c,Q){this.callbacks_.push(new Xed(this.JSC$10976_taskManager_,S,c,Q));return this};
_.fM.prototype.onSuccess=function(S){this.callbacks_.forEach(function(c){O3s(c,S)})};
_.fM.prototype.onFailure=function(S){this.callbacks_.forEach(function(c){zTd(c,S)})};
_.fM.prototype.cancel=function(){this.callbacks_.length=0};
EZd(_.fM);_.JNM=null;_.wj=new _.Sg("ACTIVITY_TOKEN");var Ux=function(S,c){this.serviceId=new L2s(S,c)};
Ux.prototype.toString=function(){return this.serviceId.toString()};var xnd=function(){this.internalMap={}};
_.J=xnd.prototype;_.J.contains=function(S){return Object.prototype.hasOwnProperty.call(this.internalMap,S)};
_.J.get=function(S){if(this.contains(S))return this.internalMap[S]};
_.J.set=function(S,c){this.internalMap[S]=c};
_.J.getKeys=function(){return Object.keys(this.internalMap)};
_.J.remove=function(S){delete this.internalMap[S]};var JK=function(){this.mappings=new xnd;this.errorCallbacks=new Set};
JK.prototype.getModuleId=function(S){return S.serviceId.getModuleId()};
JK.prototype.get=function(S){var c=this.mappings.get(S.toString());return FhH(this,c,S)};
JK.prototype.getMultipleAsync=function(){var S=_.YD.apply(0,arguments),c=this,Q=S.map(function(x){return c.getModuleId(x)}),f=S.map(function(x){return c.mappings.get(x.toString())}).filter(function(x){return x});
if(f.length===S.length)return _.B2(f.map(function(x,I){return FhH(c,x,S[I])}));
var U=wF().loadMultiple(Q);f=_.Dg(Q.map(function(x){return U[x]}));
var a=document.hidden,X=-1,z=_.a6("get_async_timeout_ms",-1);z>-1&&(X=setTimeout(function(){_.i5(new _.Yr("Module timeout.",Q,a,document.hidden))},z));
return _.p0(f.then(function(){return S.map(function(x){return FhH(c,c.mappings.get(x.toString()),x)})}).thenCatch(function(x){for(var I=_.A(c.errorCallbacks),n=I.next();!n.done;n=I.next())n=n.value,n(x);
throw x;}),function(){clearTimeout(X)})};
JK.prototype.registerService=function(S,c){this.mappings.set(S.toString(),{type:"mapping",value:c});return S};
var FhH=function(S,c,Q){switch(c.type){case "mapping":return c.value;case "factory":return c=c.value(),S.mappings.set(Q.toString(),{type:"mapping",value:c}),c;default:return _.OZ(c)}};
JK.prototype.onLoadError=function(S){var c=this;this.errorCallbacks.add(S);return function(){c.errorCallbacks.delete(S)}};
_.at=new JK;var z5Y=/^[a-zA-Z0-9_\-]{11}$/;var xcz=_.ur(function(){var S,c;return(c=(S=window).matchMedia)==null?void 0:c.call(S,"(prefers-reduced-motion: reduce)").matches});var BVz=_.ur(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 S=_.rC("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");S||(S=_.Nf("VIDEO"),_.m5("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
S));return!!(S&&S.canPlayType&&S.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var N4o=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var AK;AK=function(){this.tokenJars={};if(this.cookiesEnabled=_.uB()){var S=_.Kl.get("CONSISTENCY",void 0);S&&IrJ(this,{encryptedTokenJarContents:S})}};
_.$cM=function(){AK.instance||(AK.instance=new AK);return AK.instance};
AK.prototype.handleResponse=function(S,c){if(!c)throw Error("Rf");var Q,f;c=((Q=c.innerTubeRequest.context)==null?void 0:(f=Q.request)==null?void 0:f.consistencyTokenJars)||[];var U;(S=(U=S.responseContext)==null?void 0:U.consistencyTokenJar)&&this.replace(c,S)};
AK.prototype.replace=function(S,c){S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())delete this.tokenJars[Q.value.encryptedTokenJarContents];IrJ(this,c)};
var IrJ=function(S,c){if(c.encryptedTokenJarContents&&(S.tokenJars[c.encryptedTokenJarContents]=c,typeof c.expirationSeconds==="string")){var Q=Number(c.expirationSeconds);setTimeout(function(){delete S.tokenJars[c.encryptedTokenJarContents]},Q*1E3);
S.cookiesEnabled&&_.$r("CONSISTENCY",c.encryptedTokenJarContents,Q,void 0,!0)}};var n9d,X6;n9d=window.location.hostname.split(".").slice(-2).join(".");_.TW=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var S=_.WY("LOCATION_PLAYABILITY_TOKEN");_.WY("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=b3s(this))&&(S=this.localStorage.get("yt-location-playability-token"));S&&(this.locationPlayabilityToken=S,this.mostRecentPosition=void 0)};
_.TW.getInstance=function(){X6=_.rC("yt.clientLocationService.instance");X6||(X6=new _.TW,_.m5("yt.clientLocationService.instance",X6));return X6};
_.TW.prototype.setLocationOnInnerTubeContext=function(S){S.client||(S.client={});if(this.mostRecentPosition)S.client.locationInfo||(S.client.locationInfo={}),S.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),S.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),S.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),S.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)S.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.TW.prototype.handleResponse=function(S){var c;S=(c=S.responseContext)==null?void 0:c.locationPlayabilityToken;S!==void 0&&(this.locationPlayabilityToken=S,this.mostRecentPosition=void 0,_.WY("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=b3s(this))&&this.localStorage.set("yt-location-playability-token",S,15552E3):_.$r("YT_CL",JSON.stringify({loctok:S}),15552E3,n9d,!0))};
var b3s=function(S){return S.localStorage===void 0?new _.ge("yt-client-location"):S.localStorage};
_.TW.prototype.clearLocationPlayabilityToken=function(S){S==="TVHTML5"?(this.localStorage=b3s(this))&&this.localStorage.remove("yt-location-playability-token"):_.XdY("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.TW.prototype.getCurrentPositionFromGeolocation=function(){var S=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Sf"));var c=!1,Q=1E4;_.WY("INNERTUBE_CLIENT_NAME")==="MWEB"&&(c=!0,Q=15E3);return new Promise(function(f,U){navigator.geolocation.getCurrentPosition(function(a){S.mostRecentPosition=a;f(a)},function(a){U(a)},{enableHighAccuracy:c,
maximumAge:0,timeout:Q})})};
_.TW.prototype.createUnpluggedLocationInfo=function(S){var c={};S=S.coords;if(S==null?0:S.latitude)c.latitudeE7=Math.floor(S.latitude*1E7);if(S==null?0:S.longitude)c.longitudeE7=Math.floor(S.longitude*1E7);if(S==null?0:S.accuracy)c.locationRadiusMeters=Math.round(S.accuracy);return c};
_.TW.prototype.createLocationInfo=function(S){var c={};S=S.coords;if(S==null?0:S.latitude)c.latitudeE7=Math.floor(S.latitude*1E7);if(S==null?0:S.longitude)c.longitudeE7=Math.floor(S.longitude*1E7);return c};var NVT=function(){};
_.J=NVT.prototype;
_.J.JSC$11043_getRequest=function(S,c,Q){c=c===void 0?{}:c;Q=Q===void 0?ord:Q;var f=c;if(this.isNavigationCommand()){var U,a=(U=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:U.url;f=_.ulH(S.clickTrackingParams,!0,!1,a,this.JSC$11043_getClientScreen(f))}else f=_.ulH(S.clickTrackingParams,!1,this.includeCsn);f={context:f};if(U=this.getExtension(S))return this.JSC$11043_buildRequest(f,U,c),U=this.getApiUrl(S),a=Object.assign({},{command:S},this.getRequestConfig(S,c)),f={input:U,requestShell:LP(U),
innerTubeRequest:f,config:a},f.config.authStrategy?f.config.authStrategy.identity=Q:f.config.authStrategy={identity:Q},(S=this.JSC$11043_getRequestKey(S,c))&&!f.config.requestKey&&(f.config.requestKey=S),f;S=new _.Yr("Error: Failed to create Request from Command.",S);_.sH(S)};
_.J.getApiUrl=function(S){var c=_.RB(this.getApiPaths(S)),Q;(S=(Q=_.Y(S.commandMetadata,_.Qw))==null?void 0:Q.apiUrl)&&(c=S);return o5T(y3p(c))};
_.J.isNavigationCommand=function(){return!1};
_.J.JSC$11043_getClientScreen=function(){};
_.J.JSC$11043_getRequestKey=function(){};
_.J.getRequestConfig=function(){};
_.Rh.Object.defineProperties(NVT.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var xR=function(){};
_.C(xR,NVT);xR.prototype.JSC$11050_getStoreKey=function(){};
xR.prototype.JSC$11043_getRequestKey=function(S,c){c=c===void 0?{}:c;return this.JSC$11050_getStoreKey(S,c)};var $nJ;_.F6=function(S,c,Q){var f=Q&&Q>0?Q:0;Q=f?Date.now()+f*1E3:0;if((f=f?(0,_.Khl)():$nJ())&&window.JSON){typeof c!=="string"&&(c=JSON.stringify(c,void 0));try{f.set(S,c,Q)}catch(U){f.remove(S)}}};
_.Bb=function(S){var c=$nJ(),Q=(0,_.Khl)();if(!c&&!Q||!window.JSON)return null;try{var f=c.get(S)}catch(U){}if(typeof f!=="string")try{f=Q.get(S)}catch(U){}if(typeof f!=="string")return null;try{f=JSON.parse(f,void 0)}catch(U){}return f};
_.It=function(S){try{var c=$nJ(),Q=(0,_.Khl)();c&&c.remove(S);Q&&Q.remove(S)}catch(f){}};
_.Khl=_.ur(function(){try{var S=new nUT;var c=S.isAvailable()?S:null}catch(Q){return null}return c?new _.JG(c):null});
$nJ=_.ur(function(){var S=new bPp;return S.isAvailable()?new _.JG(S):null});var xs=new _.Sg("ENTITY_STATE_TOKEN"),nM=new _.Sg("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var ub$=XMLHttpRequest.prototype.fetch,jPp=ub$&&ub$.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!yS?!0:!1;var bs=function(S){this.JSC$11055_storeWithEntities=S};
_.C(bs,xR);_.J=bs.prototype;_.J.getApiPaths=function(){return gRJ};
_.J.getExtension=function(S){return _.Y(S,_.tG)||_.Y(S,_.ll)||_.Y(S,goh)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11050_getStoreKey=function(S){if((_.u("kevlar_cache_on_ttl_player")||_.u("mweb_enable_shorts_innertube_player_prefetch")||_.u("mweb_use_new_history_manager")||_.u("web_shorts_prefetch_service_enabled"))&&(S=this.getExtension(S))&&S.videoId){var c={videoId:S.videoId};S.playlistId&&(c.playlistId=S.playlistId);S.playerParams&&(c.params=S.playerParams);return _.EM("player",c)}};
_.J.JSC$11043_getClientScreen=function(S){var c;return((c=S.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$11043_buildRequest=function(S,c,Q){if(_.u("enable_interstitial_entity_check")){var f=this.JSC$11055_storeWithEntities;if(c.videoId)for(var U=_.A(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),a=U.next();!a.done;a=U.next()){a=a.value;var X;var z=void 0,x=void 0,I=c.videoId,n=a;(X=f)?(I=_.xy(I+n,"interstitialInteractionStateEntity"),X=(z=(x=_.FT(X.getState().entities,"interstitialInteractionStateEntity",I))==null?void 0:x.primaryButtonClicked)!=null?z:!1):X=!1;if(X)switch(a){case "CONTENT_CHECK_REQUIRED":c.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":c.racyCheckOk=!0}}}c.videoId&&(S.videoId=c.videoId);c.playlistId&&(S.playlistId=c.playlistId);c.index!==void 0&&(S.playlistIndex=c.index+1);c.playerParams&&(S.params=c.playerParams);"startTimeSeconds"in c&&c.startTimeSeconds&&(_.u("enable_player_request_builder_start_time_floor")?S.startTimeSecs=Math.floor(c.startTimeSeconds):S.startTimeSecs=c.startTimeSeconds);Q.contentPlaybackContext&&(S.playbackContext={contentPlaybackContext:Q.contentPlaybackContext});Q.prefetchPlaybackContext&&
(S.playbackContext=Object.assign({},S.playbackContext,{prefetchPlaybackContext:Q.prefetchPlaybackContext}),S.context.request||(S.context.request={}),S.context.request.isPrefetch=!0);S.playbackContext||(S.playbackContext={});f=BVz();S.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!f,supportXhr:jPp};Q.overrideMutedAtStart&&(S.overrideMutedAtStart=Q.overrideMutedAtStart);S.racyCheckOk=!!c.racyCheckOk;S.contentCheckOk=!!c.contentCheckOk;!_.u("captions_prefs_killswitch")&&(Q=(Q=_.Bb("yt-player-caption-language-preferences"))?
Q:[],Q==null?0:Q.length)&&(S.captionParams={viewerSelectedCaptionLangs:Q})};
_.J.getRequestConfig=function(S){S=this.JSC$11050_getStoreKey(S);var c;S&&(c={storeStrategy:{storeKey:S}});_.u("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="ps_s",c.responseTick="ps_r");return c};
bs[mt]=[xs];var Nu=function(){};
_.C(Nu,xR);_.J=Nu.prototype;_.J.getApiPaths=function(){return nJ$};
_.J.getExtension=function(S){return _.Y(S,_.tG)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11050_getStoreKey=function(S){if((S=this.getExtension(S))&&S.videoId){var c={videoId:S.videoId};S.playlistId&&(c.playlistId=S.playlistId);S.index&&(c.index=S.index);S.params&&(c.params=S.params);return _.EM("next",c)}};
_.J.JSC$11043_getClientScreen=function(S){var c;return((c=S.contentPlaybackContext)==null?void 0:c.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.J.JSC$11043_buildRequest=function(S,c,Q){c.videoId&&(S.videoId=c.videoId);c.playlistId&&(S.playlistId=c.playlistId);c.params&&(S.params=c.params);c.index!==void 0&&(S.playlistIndex=c.index);S.racyCheckOk=!(!Q.racyCheckOk&&!c.racyCheckOk);S.contentCheckOk=!!c.contentCheckOk;Q.contentPlaybackContext&&(S.autonavState=Q.contentPlaybackContext.autonavState,S.playbackContext={vis:Q.contentPlaybackContext.vis,lactMilliseconds:Q.contentPlaybackContext.lactMilliseconds});Q.prefetchPlaybackContext&&(S.context.request||
(S.context.request={}),S.context.request.isPrefetch=!0);_.u("captions_hats_killswitch")||(c=_.jL().getFlag(65),c=c!=null?!c:!1,Q=!!_.Bb("yt-player-sticky-caption"),S.captionsRequested=c&&Q)};
_.J.getRequestConfig=function(S){S=this.JSC$11050_getStoreKey(S);var c;S&&(c={storeStrategy:{storeKey:S}});_.u("web_log_player_watch_next_ticks")&&(c=c||{},c.requestTick="wn_s",c.responseTick="wn_r");return c};
var KM=function(){};
_.C(KM,xR);KM.prototype.getApiPaths=function(){return nJ$};
KM.prototype.getExtension=function(S){return _.Y(S,_.gj)};
KM.prototype.JSC$11043_buildRequest=function(S,c){c.token&&(S.continuation=c.token)};var $R=function(S,c){this.playerRequestBuilder=S;this.watchNextRequestBuilder=c};
_.C($R,xR);$R.prototype.getApiPaths=function(){return pbs};
$R.prototype.getExtension=function(S){return _.Y(S,_.tG)};
$R.prototype.isNavigationCommand=function(){return!0};
$R.prototype.JSC$11043_buildRequest=function(S,c,Q){S.playerRequest={};this.playerRequestBuilder.JSC$11043_buildRequest(S.playerRequest,c,Q);_.u("web_streaming_watch")&&(S.watchNextRequest={},this.watchNextRequestBuilder.JSC$11043_buildRequest(S.watchNextRequest,c,Q))};
$R[mt]=[bs,Nu];var lrl;_.us=new _.Sg("SHORTS_CONTROLLER_TOKEN");lrl=new _.Sg("SHORTS_STATE_STORE_TOKEN");var jE=function(S,c){var Q=_.YD.apply(2,arguments);S=S===void 0?0:S;_.Yr.call(this,c,Q);this.errorType=S;Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(jE,_.Yr);var Yuh,Cjl,Dns,SUH,P$,uYM,TVh,qud,G0d,Mj_,sPl;Yuh=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(S){return S+"="}).join("|"));
Cjl=RegExp(".*\\?.*playnext=1.*");_.ls=function(S,c,Q,f){this.watchEndpointMap=S;this.reelWatchEndpointMap=c;this.innerTubeTransportService=Q;this.fetchPbj=f};
Dns=function(S,c,Q){var f=_.fl().resolve(_.QS(H3p));_.ls.instance=new _.ls(S,c,Q,f)};
_.pez=function(S,c){var Q=_.a6("web_pbj_log_warning_rate",0);Q=Q>0&&Math.random()<Q;var f;if((f=_.Y(c.commandMetadata,_.Qw))==null||!f.rootVe)return Q&&_.i5(Error("Uf")),!1;var U;f=(U=_.Y(c.commandMetadata,_.Qw))==null?void 0:U.url;if(!f)return Q&&_.i5(Error("Vf")),!1;if(Cjl.test(f))return!0;if(Yuh.test(f))return Q&&_.i5(Error("Wf`"+f)),!1;if(_.Y(c,_.tG)){if(!(S.watchEndpointMap.watchNext&&S.watchEndpointMap.player||_.u("kevlar_fetch_initial_data_op_watch_client")))return Q&&_.i5(Error("Nf")),!1;
S=_.a6("web_pbj_log_warning_rate",0);S=S>0&&Math.random()<S;_.Y(c,_.tG)?XJZ(c)?c=!0:(S&&_.i5(Error("Of")),c=!1):(S&&_.i5(Error("Nf")),c=!1);return c}if(_.Y(c,_.ll))return OmY(c);if(_.Y(c,_.iA))return!0;S=_.v3(S.innerTubeTransportService,c);!S&&Q&&_.sH(Error("Xf"),"WARNING",void 0,void 0,void 0,{command:JSON.stringify(c)});return S};
SUH=function(S,c,Q,f,U,a){c={url:c};if(Q==null?0:Q.itct)c.parentTrackingParams=Q.itct;var X=_.RB(tEu);return _.ZC(S.innerTubeTransportService,c,X).then(function(z){(z=z.endpoint)||(z=_.Ni);(Q==null?0:Q.itct)&&z&&!z.trackingParams&&(z.trackingParams=Q.itct);var x=ul(z);return P$(S,z,Q,f,x,U,a)})};
P$=function(S,c,Q,f,U,a,X,z){z=z===void 0?{}:z;if(S.fetchPbj&&!_.pez(S,c)&&!_.u("force_one_platform")){z=S.fetchPbj(c);var x=_.B2(z.then(function(v){if(!v)throw Error("Yf");X(x)||a(c,v);return v}));
return x}var I,n,b={rootVe:(I=_.Y(c.commandMetadata,_.Qw))==null?void 0:I.rootVe,url:(n=_.Y(c.commandMetadata,_.Qw))==null?void 0:n.url,endpoint:c,page:U};if(_.Y(c,_.tG)){var N,l={contentPlaybackContext:_.HV(Q,(N=_.Y(c.commandMetadata,_.Qw))==null?void 0:N.url,f)},H=_.L4();_.u("web_streaming_watch")&&window.TextDecoderStream?(z=hTe(S.innerTubeTransportService,c,l,function(v){!b.response&&v.content&&(b.response=v.content);!b.playerResponse&&v.player&&(b.playerResponse=v.player);a(c,b)}),I=mUT(c),I.length&&
(b.preconnect=I,a(c,b)),qud(z,H,b).catch(function(v){v instanceof jE&&v.errorType===2&&TVh(S,c,l,b,a,X,H)})):TVh(S,c,l,b,a,X,H);
return H.promise}if(_.Y(c,_.ll)){var q;if(((q=_.Y(c,_.ll))==null?void 0:q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var w=_.L4();_.wez(_.fl().resolve(_.us),c).then(function(v){sPl(S,Q,f,U,a,w,v)});
return w.promise}z=_.B2();var g;I={contentPlaybackContext:_.HV(Q,(g=_.Y(c.commandMetadata,_.Qw))==null?void 0:g.url,f)};(g=S.reelWatchEndpointMap.player)&&(g=g().JSC$11043_getRequest(c,I))&&(z=_.ZC(S.innerTubeTransportService,g.innerTubeRequest,g.input,c.clickTrackingParams,g.config));g=_.B2();(n=S.reelWatchEndpointMap.reelItemWatch)&&(n=n().JSC$11043_getRequest(c))&&(g=_.ZC(S.innerTubeTransportService,n.innerTubeRequest,n.input,c.clickTrackingParams,n.config));n=_.B2();(N=S.reelWatchEndpointMap.reelWatchSequence)&&
_.Y(c,_.ll).sequenceParams&&(I=N().JSC$11043_getRequest(c,I))&&(n=_.ZC(S.innerTubeTransportService,I.innerTubeRequest,I.input,c.clickTrackingParams,I.config));I=_.B2(b);N=_.L4();Mj_(c,I,z,g,n,a,X,N);return N.promise}var r;if(_.Y(c,UcZ)&&((r=_.Y(c.commandMetadata,_.Qw))==null?0:r.url))return z=Kyp(_.L9(hH().location.href),_.L9(_.Y(c.commandMetadata,_.Qw).url)).toString(),SUH(S,z,Q,f,a,function(){return!1});
if(_.Y(c,_.iA))return a(c,b),_.B2(b);if(_.v3(S.innerTubeTransportService,c)){z=Object.assign({},{tempData:Q,disableCache:Q.disableCache},z);var E=_.P3(S.innerTubeTransportService,c,z).then(function(v){b.response=v;X(E)||a(c,b);return b});
return E}return _.B2(b)};
_.Z3$=function(S,c,Q,f){if(_.Y(c,_.tG)||_.Y(c,_.ll)&&(_.u("mweb_enable_shorts_innertube_player_prefetch")||_.u("kevlar_enable_shorts_prefetch_in_sequence"))||_.Y(c,goh)&&_.u("web_enable_prefetching_videos_on_home")){var U,a={contentPlaybackContext:_.HV(Q,(U=_.Y(c.commandMetadata,_.Qw))==null?void 0:U.url,f),prefetchPlaybackContext:B4x(Q)},X,z,x;if(((X=_.Y(c,_.tG))==null?void 0:(z=X.watchEndpointSupportedPrefetchConfig)==null?void 0:(x=z.prefetchHintConfig)==null?void 0:x.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(Q=
S.watchEndpointMap.watchNext)if(a=Q().JSC$11043_getRequest(c,a))return Promise.resolve(_.ZC(S.innerTubeTransportService,a.innerTubeRequest,a.input,void 0,a.config).then(function(b){return b}))}else if(_.Y(c,_.ll)&&_.u("web_prefetch_riw_for_next_video")){if(Q=S.reelWatchEndpointMap.reelItemWatch)if((Q=Q().JSC$11043_getRequest(c,a))&&_.ZC(S.innerTubeTransportService,Q.innerTubeRequest,Q.input,void 0,Q.config).then(function(b){return b}),Q=S.reelWatchEndpointMap.player)if(a=Q().JSC$11043_getRequest(c,
a))return Promise.resolve(_.ZC(S.innerTubeTransportService,a.innerTubeRequest,a.input,void 0,a.config).then(function(b){return b}))}else if(Q=S.watchEndpointMap.player)if(a=Q().JSC$11043_getRequest(c,a))return Promise.resolve(_.ZC(S.innerTubeTransportService,a.innerTubeRequest,a.input,void 0,a.config).then(function(b){return b}))}else if(_.v3(S.innerTubeTransportService,c)){var I={tempData:Q},n=i3_(S.innerTubeTransportService,c);
return n?new Promise(function(b,N){var l,H;return _.O(function(q){if(q.nextAddress==1)return _.F(q,n,2);if(q.nextAddress!=4)return l=q.yieldResult,l.JSC$11050_getStoreKey(c,I)?_.F(q,_.P3(S.innerTubeTransportService,c,I),4):(N(new _.Yr("Prefetching request builder with no store key.",c)),q.jumpTo(0));H=q.yieldResult;b(H);_.IN(q)})}):Promise.reject(new _.Yr("Prefetching unregistered request builder.",c))}return Promise.reject(new _.Yr("No request builder available to prefetch endpoint.",c))};
uYM=function(S,c){var Q,f,U;if(_.Y(c,_.tG)){var a=S.watchEndpointMap.watchNext;a&&(Q=a());(S=S.watchEndpointMap.player)&&(f=S())}else if(_.Y(c,_.ll))(a=S.reelWatchEndpointMap.reelItemWatch)&&(Q=a()),(a=S.reelWatchEndpointMap.player)&&(f=a()),(S=S.reelWatchEndpointMap.reelWatchSequence)&&(U=S());else{a:{S=Jyr(c,S.innerTubeTransportService.endpointMap);if(S!==void 0)if(typeof S.then==="function")_.sH(new _.Yr("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",c));else break a;
S=void 0}S&&(Q=S)}var X,z,x;return{content:(X=Q)==null?void 0:X.JSC$11050_getStoreKey(c),player:(z=f)==null?void 0:z.JSC$11050_getStoreKey(c),reelSequence:(x=U)==null?void 0:x.JSC$11050_getStoreKey(c)}};
TVh=function(S,c,Q,f,U,a,X){var z=_.B2(),x=S.watchEndpointMap.player;_.u("web_streaming_player")&&(x=CJ($R));x&&(x=x().JSC$11043_getRequest(c,Q))&&(z=_.ZC(S.innerTubeTransportService,x.innerTubeRequest,x.input,c.clickTrackingParams,x.config));x=_.B2();var I=S.watchEndpointMap.watchNext;I&&(Q=I().JSC$11043_getRequest(c,Q))&&(x=_.ZC(S.innerTubeTransportService,Q.innerTubeRequest,Q.input,c.clickTrackingParams,Q.config));S=_.B2(f);G0d(c,S,z,x,U,a,X)};
qud=function(S,c,Q){return _.O(function(f){if(f.nextAddress==1)return _.F(f,S,2);c.resolve(Q);_.IN(f)})};
G0d=function(S,c,Q,f,U,a,X){var z,x,I,n,b;_.O(function(N){switch(N.nextAddress){case 1:return _.F(N,c,2);case 2:z=N.yieldResult;if(a(X.promise))return X.resolve(z),N.return();U(S,z);x=mUT(S);if(!x.length){N.jumpTo(3);break}return _.F(N,c,4);case 4:z.preconnect=x,U(S,z);case 3:return _.X1(N,5),_.F(N,Q,7);case 7:I=N.yieldResult;_.Pi(N,6);break;case 5:return n=_.Bs(N),X.reject(n),N.return();case 6:if(I===void 0)return z.reload=!0,U(S,z),X.resolve(z),N.return();if(a(X.promise))return X.resolve(z),N.return();
z.playerResponse=I;U(S,z);_.X1(N,8);return _.F(N,f,10);case 10:b=N.yieldResult;_.Pi(N,9);break;case 8:_.Bs(N);case 9:if(b===void 0)return z.response={responseContext:{}},X.resolve(z),N.return();if(a(X.promise))return X.resolve(z),N.return();z.response=b;U(S,z);X.resolve(z);_.IN(N)}})};
Mj_=function(S,c,Q,f,U,a,X,z){var x,I,n,b,N,l;_.O(function(H){switch(H.nextAddress){case 1:return _.F(H,c,2);case 2:x=H.yieldResult;if(X(z.promise))return z.resolve(x),H.return();a(S,x);I=mUT(S);if(!I.length){H.jumpTo(3);break}return _.F(H,c,4);case 4:x.preconnect=I,a(S,x);case 3:return _.X1(H,5),_.F(H,Q,7);case 7:n=H.yieldResult;_.Pi(H,6);break;case 5:return b=_.Bs(H),z.reject(b),H.return();case 6:if(n===void 0)return x.reload=!0,a(S,x),z.resolve(x),H.return();if(X(z.promise))return z.resolve(x),
H.return();x.playerResponse=n;a(S,x);_.X1(H,8);return _.F(H,f,10);case 10:N=H.yieldResult;_.Pi(H,9);break;case 8:_.Bs(H);case 9:if(N===void 0)return x.response={responseContext:{}},z.resolve(x),H.return();if(X(z.promise))return z.resolve(x),H.return();x.response=N;a(S,x);_.X1(H,11);return _.F(H,U,13);case 13:l=H.yieldResult;_.Pi(H,12);break;case 11:_.Bs(H);case 12:if(X(z.promise))return z.resolve(x),H.return();x.reelWatchSequenceResponse=l;a(S,x);z.resolve(x);_.IN(H)}})};
sPl=function(S,c,Q,f,U,a,X){var z,x,I,n,b,N;_.O(function(l){if((z=X)==null||!z.replacementEndpoint)return a.reject(),l.return();x=X.replacementEndpoint;(I=_.Y(x,_.ll))?(X.sequenceContinuation&&(I.sequenceParams=X.sequenceContinuation),n=_.fl().resolve(_.us),b=I.sequenceParams,Wh_(n,x)&&delete I.sequenceParams,N=P$(S,x,c,Q,f,U,function(){return!1}),N.then(function(H){return _.O(function(q){if(q.nextAddress==1)return g9$(n,{reelWatchEndpoint:{sequenceParams:b}},H),_.F(q,0,2);
a.resolve(H);_.IN(q)})})):a.reject();
_.IN(l)})};_.eTh=function(S){if(S.validatedFragments_.length==0)return null;if(!S.mergedPrefetchedData_){for(var c=[],Q=_.A(S.validatedFragments_),f=Q.next();!f.done;f=Q.next()){f=_.A(S.fragmentConfiguration_[f.value].graftedKeys);for(var U=f.next();!U.done;U=f.next())(U=S.prefetchedData_[U.value].trackingParams)&&c.push(U)}S.mergedPrefetchedData_={};Object.assign(S.mergedPrefetchedData_,S.prefetchedData_,{clientSideGrafts:c})}return S.mergedPrefetchedData_};var k0d;_.YR=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
k0d=function(S,c,Q){if(_.apM(c))return S.prefetchCache_.get(_.ANH(c,Q))};_.CM=new _.Sg("NAVIGATION_TOKEN");var r7h=function(S){var c=this;var Q=Q===void 0?YLY():Q;var f=f===void 0?_.fl().resolve(_.CM):f;this.onePickCommand=S;this.JSC$11153_playlistNetworkManager=Q;this.navigationManager=f;this.videoPickerBuilder=_.jQz("yt-addtoplaylist");_.Fme(Jlp(ahl(Uxd(this.videoPickerBuilder.setTitle(S.modalTitle).setSize(1E3).addView(Xrp()).addView(Ats())).addView("youtube"),S.selectButtonLabel)),function(U){c.handleAction(U)})};
r7h.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
r7h.prototype.handleAction=function(S){var c=this;if(S&&this.onePickCommand.listId&&S.action==="picked"&&S.docs){var Q=[];S.docs.forEach(function(f){Q.push({addedVideoId:f.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$11153_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,Q).then(function(){_.u("playlist_add_video_hard_reload_killswitch")?c.navigationManager.reload():dne(c.navigationManager)})}};var v9l=function(){if(this.constructor===v9l)throw new TypeError("Zf");};
_.J=v9l.prototype;_.J.dispose=function(){};
_.J.disconnect=function(){};
_.J.reconnect=function(){};
_.J.observe=function(S,c,Q){return{element:S,option:Q}};
_.J.unobserveByKey=function(){};var CvM=function(S,c){c=c===void 0?0:c;v9l.call(this);this.viewroot=S;this.defaultPrescanHeight=c;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),S?{root:S,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.C(CvM,v9l);_.J=CvM.prototype;_.J.dispose=function(){this.disconnect();this.handlers.clear()};
_.J.disconnect=function(S){this.isConnected=!1;this.pauseObservingUntilReconnect=S===void 0?!1:S;this.observer.disconnect();S=_.A(this.prescanObservers.values());for(var c=S.next();!c.done;c=S.next())c.value.disconnect()};
_.J.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var S=_.A(this.handlers),c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;var f=Q.next().value;Q=!1;f=_.A(f.keys());for(var U=f.next();!U.done;U=f.next())if((U=U.value)&&U.state==="prescan"){Q=!0;break}Q&&Pjz(this,c).observe(c);this.observer.observe(c)}}};
_.J.handleObserveEvent=function(S){S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;var Q=this.handlers.get(c.target);if(Q){var f=c.isIntersecting;Q=_.A(Q);for(var U=Q.next();!U.done;U=Q.next()){var a=_.A(U.value);U=a.next().value;a=a.next().value;U&&(U.state==="visible"&&f||U.state==="hidden"&&!f)&&(a(c.target,U.state),U.calledOnce&&this.unobserveByKey({element:c.target,option:U}))}}}};
_.J.handlePrescanEvent=function(S){S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;var Q=this.handlers.get(c.target);if(Q&&c.isIntersecting){Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;f&&f.state==="prescan"&&(U(c.target,f.state),f.calledOnce&&this.unobserveByKey({element:c.target,option:f}))}}}};
_.J.observe=function(S,c,Q){var f=(f=this.handlers.get(S))&&f.has(Q)?{element:S,option:Q}:void 0;if(f)return f;f={element:S,option:Q};this.handlers.has(S)||this.handlers.set(S,new Map);var U=this.handlers.get(S);U&&!U.has(Q)&&U.set(Q,c);this.pauseObservingUntilReconnect||(Q.state==="prescan"&&Pjz(this,S).observe(S),this.observer.observe(S));return f};
_.J.unobserveByKey=function(S){var c=this.handlers.get(S.element);if(c&&c.has(S.option)){c.delete(S.option);if(S&&S.option.state==="prescan")for(var Q=_.A(this.prescanObservers.values()),f=Q.next();!f.done;f=Q.next())f.value.unobserve(S.element);c.size===0&&(this.handlers.delete(S.element),this.observer.unobserve(S.element))}};
var Pjz=function(S,c){var Q=S.defaultPrescanHeight;c.hasAttribute("prescan-height")&&(c=Number(c.getAttribute("prescan-height")),isNaN(c)||(Q=c));if(S.prescanObservers.has(Q))return S.prescanObservers.get(Q);c="-0.1px -0.1px "+Q+"px -0.1px";c=new IntersectionObserver(S.handlePrescanEvent.bind(S),S.viewroot?{root:S.viewroot,rootMargin:c}:{rootMargin:c});S.prescanObservers.set(Q,c);return c};var Lhi=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],E9J=function(){var S,c=this;this.JSC$11170_actionRouter=S=S===void 0?_.dQ.getInstance():S;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return c.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return c.visibilityObservedElementHandlerKeys}}},tjz,RTh,mnh;
E9J.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.u("kevlar_use_vimio_behavior")&&_.WY("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Hmp())};
E9J.prototype.dispose=function(){this.visibilityMonitor&&_.lS(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
E9J.prototype.handleVisibilityRefreshed=function(){for(var S=_.A(this.targetMap.entries()),c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;Q=Q.next().value;_.Vji(this,c,Q)}};
_.o9d=function(S,c,Q){RTh(S,Q);var f=_.y7$(S,c);f.element=Q;S.targetedElements.set(Q,c);_.Vji(S,c,f)};
RTh=function(S,c){var Q=S.targetedElements.get(c);if(Q){var f=S.targetMap.get(Q);f&&(delete f.element,S.targetMap.set(Q,f));S.targetedElements.delete(c);S.visibilityObserver&&S.visibilityObservedElementHandlerKeys&&(Q=S.visibilityObservedElementHandlerKeys.get(c))&&(S.visibilityObserver.unobserveByKey(Q),S.visibilityObservedElementHandlerKeys.delete(c))}};
_.Vji=function(S,c,Q){var f=Q.action,U=Q.element;U&&f&&(Lhi.includes(c)||_.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||S.visibilityMonitor&&S.visibilityMonitor.isNodeVisible(U)?mnh(S,c,Q):S.visibilityObserver&&(S.visibilityObservedElementHandlerKeys||(S.visibilityObservedElementHandlerKeys=new WeakMap),f=S.visibilityObserver.observe(U,function(){mnh(S,c,Q);S.visibilityObservedElementHandlerKeys.delete(U)},{calledOnce:!0,
state:"visible"}),S.visibilityObservedElementHandlerKeys.set(U,f)))};
mnh=function(S,c,Q){var f=Q.action;(Q=Q.element)&&f&&(_.i4(S.JSC$11170_actionRouter,[f],Q),S.targetMap.delete(c),S.targetedElements.delete(Q),S.triggeredTargets.add(c))};
_.y7$=function(S,c){var Q=S.targetMap.get(c);Q||(Q={},S.targetMap.set(c,Q));return Q};
_.Hb=function(){tjz||(tjz=new E9J);return tjz};var S4p=document.createElement("div");S4p.style.touchAction="pan-down";var DcZ=S4p.style.touchAction==="pan-down";var cLH,Q2$;cLH=function(){this.hammerFn=c2z();this.JSC$11178_screenManager=_.Kv();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.qo(83615);_.z7(this.JSC$11178_screenManager,this.ve);pJz()};
_.DM=function(){Q2$||(Q2$=new cLH);return Q2$};
cLH.prototype.registerTouchEvents=function(S,c,Q){var f=_.YD.apply(3,arguments),U=this.hammerFn(S,{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}]]});Q&&U.set({touchAction:Q});this.nodeManagerMapping.set(S,U);var a=
h5Y(c);f=_.A(f);for(var X=f.next();!X.done;X=f.next()){X=X.value;if(X.includes("swipe")||X.includes("pinch")||X.includes("pan"))X.includes("swipe")?U.get("swipe").set({enable:!0,direction:a,velocity:.2}):X.includes("pinch")?U.get("pinch").set({enable:!0}):X.includes("pan")&&(U.get("pan").set({enable:!0,direction:a}),U.get("swipe").set({enable:!0,direction:a,velocity:.2}),U.get("swipe").recognizeWith("pan"));fNl(this,S,U,X)}};
var fNl=function(S,c,Q,f){Q.on(f,function(U){if(f.includes("pinch"))S.lastPinchTime=Date.now();else if(f.includes("swipe")&&Date.now()-S.lastPinchTime<400)return;U.pointerType!=="mouse"&&(U=f==="doubletap"?{coordinates:U.center}:f.includes("pan")?U:f.includes("swipe")?{target:U.target}:{},c.dispatchEvent(new CustomEvent(f,{bubbles:!0,composed:!0,detail:U})))})};
cLH.prototype.unregisterTouchEvents=function(S){var c=_.YD.apply(1,arguments),Q=this.nodeManagerMapping.get(S);if(Q){c=_.A(c);for(var f=c.next();!f.done;f=c.next())Q.off(f.value);this.nodeManagerMapping.delete(S);S.style.touchAction="unset"}};var U5_=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var qLT=null;var JLd=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},tIz=function(){JLd.instance||(JLd.instance=new JLd);
return JLd.instance},VIY=function(S){var c=S.networkEvents;
S.networkEvents=[];return _.u("enable_network_monitoring")?c:[]};var aN_;aN_={};_.ALp=ct("yt-serviceworker-metadata",{objectStores:(aN_.auth={addedAtVersion:1},aN_["resource-manifest-assets"]={addedAtVersion:2},aN_),shared:!0,upgrade:function(S,c){c(1)&&kM(S,"resource-manifest-assets");c(2)&&kM(S,"auth")},
version:2});var Zmo=self.location.origin+"/";Gyz([/\.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\//]);Gyz([/purge_shell=1/]);var XM$=void 0;XM$=XM$===void 0?[]:XM$;for(var O2i=[],z8l=_.A(PBe),x5d=z8l.next();!x5d.done;x5d=z8l.next())O2i.push({key:x5d.value});for(var Fzd=_.A(XM$),Bid=Fzd.next();!Bid.done;Bid=Fzd.next())O2i.push(Bid.value);var INe,il=_.QY==null?void 0:(INe=_.QY.performance)==null?void 0:INe.memory,e5H=!1,R5Y={},dcz={},ZO={},GW=navigator;var pM=function(S){this.JSC$11222_expiringStorage=new Hi(S)};
pM.prototype.set=function(S,c,Q){Q=Q!==void 0?Date.now()+Q:void 0;this.JSC$11222_expiringStorage.set(S,c,Q)};
pM.prototype.get=function(S){return this.JSC$11222_expiringStorage.get(S)};
pM.prototype.remove=function(S){this.JSC$11222_expiringStorage.remove(S)};var U3z=_.oK(["https://www.youtube.com/",""]),Jvc=_.oK(["https://studio.youtube.com/",""]),zuM="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",AvY=null,nOR;var n3l=_.oK(["https://www.youtube.com/iframe_api"]),hK=function(){this.playerResolver_=_.L4();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.$q;this.playbackDurationSeconds_=0},b2$=function(S){var c=function(){return window.YT&&typeof window.YT.ready==="function"};
if(c())return _.B2(window.YT);var Q=_.L4(),f=_.Nf("SCRIPT");f.onload=f.onreadystatechange=function(){f.readyState&&f.readyState!="loaded"&&f.readyState!="complete"||(f.onload=_.$q,f.onreadystatechange=_.$q,f.onerror=_.$q,c()?Q.resolve(window.YT):Q.reject(new _.Yr("Failed to load the iframe player library","script.onload",f.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
f.onerror=function(U){f.onload=_.$q;f.onreadystatechange=_.$q;f.onerror=_.$q;Q.reject(new _.Yr("Failed to load the iframe player library","script.onerror",U&&U.target&&U.target.src))};
_.eS(f,_.QN(n3l));S.insertBefore(f,S.firstChild);return Q.promise},Nie=function(S,c,Q){var f,U;
_.O(function(a){switch(a.nextAddress){case 1:return S.playbackEndedCallback_=Q,_.X1(a,2),_.F(a,b2$(c.parentElement||null),4);case 4:f=a.yieldResult;_.Pi(a,3);break;case 2:return U=_.Bs(a),U instanceof _.Yr&&U.args&&U.args[0]=="script.onerror"?_.i5(U):_.sH(U),a.return();case 3:f.ready(function(){return new f.Player(c,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:S.onPlayerReady_.bind(S),onStateChange:S.onPlayerStateChange_.bind(S),
onCueRangeExit:S.onCueRangeExit_.bind(S)}})}),_.IN(a)}})};
_.J=hK.prototype;_.J.getPlayerPromise=function(){return this.playerPromise_};
_.J.onPlayerReady_=function(S){this.playerResolver_.resolve(S.target)};
_.J.onPlayerStateChange_=function(S){if(S.data==YT.PlayerState.PLAYING){S=S.target;var c=S.getCurrentTime();S.addCueRange("playback",c,c+this.playbackDurationSeconds_)}};
_.J.onCueRangeExit_=function(S){S.data=="playback"&&(S.target.stopVideo(),this.playbackEndedCallback_())};
_.J.stopVideo=function(){this.playerPromise_.then(function(S){S.stopVideo()})};
var Kzp=function(S){S.playerVars_&&S.playerPromise_.then(function(c){typeof c.cueVideoByPlayerVars!="function"?_.i5(new _.Yr("vmh: player API not ready","cueVideoByPlayerVars",typeof c.cueVideoByPlayerVars)):c.cueVideoByPlayerVars(S.playerVars_)})};
hK.prototype.playVideo=function(){var S=this;this.playerVars_&&this.playerPromise_.then(function(c){typeof c.loadVideoByPlayerVars!="function"?(c=new _.Yr("vmh: player API not ready","loadVideoByPlayerVars",typeof c.loadVideoByPlayerVars),_.sH(c)):c.loadVideoByPlayerVars(S.playerVars_)})};
var $5d=function(S,c,Q,f,U){c&&(Q===void 0&&(Q=0),f===void 0&&(f=0),S.playbackDurationSeconds_=f/1E3,S.playerVars_={adformat:"17_8",videoId:c,suggestedQuality:"hd720",startSeconds:Q/1E3,player_params:U})};
hK.prototype.mute=function(){this.playerPromise_.then(function(S){S.mute()})};
hK.prototype.unMute=function(){this.playerPromise_.then(function(S){S.unMute()})};var uWd=function(S,c){var Q=Wd();S||(S="unknown");c||(c="unknown");S="MAIN_APP_WEB_PAGE_TYPE_"+S.toUpperCase();S in GNh||(S="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");c="MAIN_APP_WEB_REQUEST_TYPE_"+c.toUpperCase();c in WLd||(c="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.IK(Q,{mainAppWeb:{pageType:S,requestType:c,isShellLoad:_.gC("IS_SHELL_LOAD",!1)}})},j2_={start:function(){_.IK(GNo(),{mainAppWeb:_.vV()})},
success:function(){_.nj(GNo(),"SUCCESS")},
failure:function(){_.nj(GNo(),"FAILURE")},
cancelled:function(){_.nj(GNo(),"CANCELLED")}};var lNu,Y4p,Ytp;lNu=_.oK(["/sw.js"]);Y4p=_.oK(["/sw.js?0"]);_.CXh=_.QN(lNu);Ytp=_.QN(Y4p);var H2d=function(){var S=Error.apply(this,arguments);this.message=S.message;"stack"in S&&(this.stack=S.stack)};
_.C(H2d,Error);_.E_.prototype.load=function(S){this.megabloxUrl_=_.WY("YPC_MB_URL");_.kU(this.megabloxUrl_,(0,_.H1)(function(){S&&S()},this))};
_.OAY=function(S,c,Q,f,U,a,X,z,x,I,n){_.Hso(x);S.load((0,_.H1)(function(){try{var b=a?a:_.WY("HL"),N=_.WY("SESSION_INDEX");_.nmo("client",function(){mZJ("59",{helpCenterPath:"/youtube",locale:b,window:window}).JSC$8012_loadChatSupport({authuser:String(N)})})}catch(l){throw PV(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),U&&U(l),_.sH(l),l;
}D5z(this,c,Q,f,U,a,X,z,x,I,n)},S))};
_.E_.prototype.openFixFlowDialog=function(S,c,Q,f){this.load((0,_.H1)(function(){try{pMu(this,_.rC("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(S).withIntegratorCallback(c).load(Q,f)}catch(U){throw _.sH(U),U;}},this))};
var pMu=function(S,c,Q,f){var U=c.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.u("enable_window_constrained_buy_flow_dialog")&&(U=U.usingPopupStyle(_.rC("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));f&&(U=U.usingCloseCallback(f));c.bootstrap.fromPaymentsUrl(S.megabloxUrl_);S=c.bootstrap.asMashupMode(U);Q=Q?Q:_.WY("HL");S.usingGaiaIndex(_.WY("SESSION_INDEX")).usingLocale(Q).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.u("enable_google_payments_buyflow_material2_style_web")?
S.usingStyle(":m2;pc=#444;ac=#065fd4"):S.usingStyle(":md;pc=#444;ac=#065fd4");return S},D5z=function(S,c,Q,f,U,a,X,z,x,I,n){try{var b=_.rC("payments.business.integration");
if(!b)throw new H2d("payments.business.integration is undefined");var N=b.standaloneContextAuthId.forUserId(),l=pMu(S,b,a,function(){pCz(!1);z&&z()});
X&&l.usingServerAnalyticsEventHandler(X);var H=l.inStandaloneContext(N).buyFlow(function(q){if(q&&(!q.integratorData||q.integratorData===""||q.error))if(q.error!=null)if(String(q.error)==="-1")_.D3Z(x);else{var w=String(q.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";PV(10,n,w,q.debugCode);_.LJ(w,x,q.debugCode);w=new _.Yr("PAYMENT_ERROR_MESSAGE::"+q.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+q.internalErrorDetails);
_.sH(w)}else PV(10,n,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.LJ("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",x,"EMPTY_INTEGRATOR_DATA"),_.sH(Error("dg"));Q&&(pCz(!1),Q(q))}).withEncryptedParameters(c);
I&&H.withClientParameters(O_p(_.xpT(I)));H.load(function(){PV(24,n);_.GZ("ttc",void 0,"commerce_transaction");USo("commerce_transaction");f&&(pCz(!0),f())},function(q){if(q==null?0:q.debugCode)var w=q==null?void 0:q.debugCode;
else if(!q||(q==null?0:q.debugCode))w="EMPTY_LOAD_FAILURE_ERROR",_.sH(Error(w));else{w="EMPTY_LOAD_FAILURE_DEBUG_CODE";var g=new _.Yr("LOAD_FAILURE:"+q.message," DEBUG_CODE:"+w);_.sH(g)}PV(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",w);_.LJ("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",x,w);_.sH(q);U&&U(q)})}catch(q){throw q instanceof H2d&&(PV(10,n,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),U&&U(q)),_.sH(q),q;
}};var h8s;h8s=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.a7z=function(S,c){c=c===void 0?!1:c;S=h8s.test(S)?_.XK(S):null;!c&&window.payments||!S?(S=_.L4(),c=S.promise,S.resolve()):c=_.Gos(S,{attributes:{"data-payments-main":"",id:"payment-lib"}});return c};var q4d;q4d=_.oK(["//www.googletagmanager.com/gtm.js?id=",""]);_.qu=function(S,c){_.Q8(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:c}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.WY("GL")}),c=_.Nf("SCRIPT"),c.async=!0,_.eS(c,_.QN(q4d,S)),c.id="gtm",S=document.getElementsByTagName("script"),S.length==0?document.head.appendChild(c):(S=S[0],S.parentNode.insertBefore(c,S)))};
_.T3=function(S){if(S=JSON.parse(S))window.dataLayer=window.dataLayer||[],window.dataLayer.push(S)};var Til,wMe;Til=_.oK(["https://clients2.google.com/gr/gr_sync.js"]);_.UAo=function(){};
_.UAo.prototype.init=function(){if(wMe()){var S=_.L4();S.resolve();return S.promise}return _.Gos(_.QN(Til)).then(function(){if(!wMe())throw Error("eg");},function(){throw Error("fg");
})};
_.JFc=function(){if(!wMe())return"";var S=window.google.gr;S.init({async:{schedule:"sync"},merchantId:"youtube"});S.start();S=S.finish();return S==null?"":S};
wMe=function(){return window.google!=null&&window.google.gr!=null};window.PolymerFakeBaseClassWithoutHtml=function(){};
_.W=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.C(_.W,PolymerFakeBaseClassWithoutHtml);_.N_=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.C(_.N_,PolymerFakeBaseClassWithoutHtml);var huT=window.ShadyDOM;var OEp,Adx,x0H,FrR,IjZ,nFp,wc,fU;OEp=_.u("enable_shadydom_free_scoped_query_methods");Adx=_.u("enable_shadydom_free_scoped_node_methods");x0H=_.u("enable_shadydom_free_scoped_readonly_properties_batch_one");FrR=_.u("enable_shadydom_free_parent_node");IjZ=_.u("enable_shadydom_free_children");nFp=_.u("enable_shadydom_free_last_child");wc=window.ShadyDOM;_.XV=wc&&wc.noPatch&&wc.wrap?wc.wrap:wc?function(S){return wc.patch(S)}:function(S){return S};
fU=function(S){if(S instanceof ShadowRoot)this.host=(0,_.XV)(S.host),this.root=S;else if(S.$$){this.host=(0,_.XV)(S);var c;this.root=(c=S.root)!=null?c:this.host}else if(S.polymerController){this.host=(0,_.XV)(S);var Q;this.root=(Q=this.host.shadowRoot)!=null?Q:this.host}else this.root=this.host=(0,_.XV)(S)};
XuY();zlp();bEZ();Nlo();BlZ();var s2d={querySelector:function(S,c){c=TLT(c,yI(S));S=_.oM(S);return mS(S).prototype.querySelector.call(S,c)},
querySelectorAll:function(S,c){c=TLT(c,yI(S));S=_.oM(S);return mS(S).prototype.querySelectorAll.call(S,c)}},M7i={appendChild:function(S,c){var Q=yI(S),f=_.RM(c);
return _.Jdz(_.oM(S),Q?_.c0(c,Q,f):c)},
cloneNode:function(S,c){var Q=_.RM(S);S=_.oM(S);c=mS(S).prototype.cloneNode.call(S,c);return Q?Q_(c,Q):c},
contains:function(S,c){var Q=yI(S),f=_.RM(c);return Q!==f?!1:ajR(S,c)},
insertBefore:function(S,c,Q){var f=yI(S),U=_.RM(c);S=_.oM(S);c=f?_.c0(c,f,U):c;return mS(S).prototype.insertBefore.call(S,c,Q)},
removeChild:function(S,c){var Q=yI(S);S=_.oM(S);c=Q?Q_(c,Q):c;return mS(S).prototype.removeChild.call(S,c)},
replaceChild:function(S,c,Q){var f=yI(S),U=_.RM(c);c=f?_.c0(c,f,U):U?Q_(c,U):c;Q=f?Q_(Q,f):Q;S=_.oM(S);return mS(S).prototype.replaceChild.call(S,c,Q)},
getRootNode:function(S,c){c=c===void 0?{composed:!0}:c;var Q;if(((Q=c)!=null?Q:{}).composed)S=rvo(S);else{c=S;for(S=svY(S);S;)c=S,S=isc(S);S=c}return S}},$0z=x0H?{firstChild:m3T,
nextSibling:Ruz,previousSibling:oOM,firstElementChild:S6x,lastElementChild:Q5p,nextElementSibling:Vrp,previousElementSibling:yvp,childNodes:fjo}:{};FrR&&($0z.parentNode=trH);IjZ&&($0z.children=U0c);nFp&&($0z.lastChild=cdM);OEp&&Krz(s2d);Adx&&Krz(M7i);udc();var j5r=function(S){this.node=S instanceof ShadowRoot?S.host:S};
ljo();Y6Y();var D0p=new WeakMap;var hlZ=Symbol("xd");var MXp=new Set(["tap","track","down","up"]),iEH=_.u("pbcm_fi_query_decorators");var sx=function(){return _.N_.apply(this,arguments)||this};
_.C(sx,_.N_);_.J=sx.prototype;_.J.getState=function(){return this.store.getState()};
_.J.dispatch=function(S){this.store.dispatch(S)};
_.J.beforeRegister=function(){if(this&&typeof this==="object"){var S;var c=!!this.useSignals||!((S=this.polymerController)==null||!S.useSignals)}else c=!1;if(!c&&this.properties)for(c=_.A(Object.keys(this.properties)),S=c.next();!S.done;S=c.next()){var Q=S.value;S=this.properties[Q];if(S.selector){if(S.computed)throw Error("lg");Q=["reduxPropertiesRecomputeTrigger",'"'+Q+'"'].concat(_.Hs(S.selectorArgs||[])).join(",");S.computed="recomputeReduxSelector("+Q+")"}}};
_.J.attached=function(){var S=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){S.reduxPropertiesRecomputeTrigger++}));
_.u("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.J.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.J.recomputeReduxSelector=function(S,c){var Q=_.YD.apply(2,arguments),f=this.properties[c].selector;if(!f)throw Error("jg`"+c);return f.apply(null,[this.store.getState()].concat(_.Hs(Q)))};
_.J.select=function(S){var c=_.YD.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return S.apply(null,[this.store.getState()].concat(_.Hs(c)))};
_.Rh.Object.defineProperties(sx.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("kg");}}});
sx.prototype.recomputeReduxSelector=sx.prototype.recomputeReduxSelector;_.d([_.Z(),_.P("design:type",Number)],sx.prototype,"reduxPropertiesRecomputeTrigger",void 0);_.d([_.KU()],sx);var Mu=[],gFZ={},T4=function(){return oh.apply(this,arguments)||this};
_.C(T4,oh);T4.prototype._addPropertyEffect=function(S,c,Q){if(c==="__observeEffects"&&Q){var f,U=(f=Q.info.method)!=null?f:Q.info.methodName;if(U){var a=this[U];this[U]=function(){Mu.push(U);try{a==null||a.apply(this,arguments)}finally{Mu.pop()}}}}_.lK._addPropertyEffect.apply(this,[S,
c,Q])};
T4.prototype._setPendingProperty=function(S,c,Q){if(Mu.length){var f=Mu[Mu.length-1],U;(U=gFZ[this.is])!=null&&U.has(f)||(elY(this.is,f),_.Te("polymerPropertyChangedInObserver",{componentName:this.is,observerName:f}))}return _.lK._setPendingProperty.apply(this,[S,c,Q])};
_.d([uqz()],T4);var kTz=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),d0z,j$={};_.u("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=j$);var CU=function(){return _.N_.apply(this,arguments)||this};
_.C(CU,_.N_);CU.prototype._setUnmanagedPropertyToNode=function(S,c,Q){S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!0);if(Q!==S[c]||typeof Q==="object")S[c]=Q;S.is&&S.polymerController&&S.polymerController!==S&&lw(S.is,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");S.loggingStatus&&(S.loggingStatus.isDeclarativeExternal=!1)};
_.d([_.KU()],CU);rdp()&&(GL.prototype._setUnmanagedPropertyToNode=(new CU)._setUnmanagedPropertyToNode);_.frH={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(S){},set polymerController(S){}}]};var q_=function(){var S=oh.apply(this,arguments)||this;S.json=function(){};
return S};
_.C(q_,oh);q_.prototype.equals=function(S,c){return S===c};
q_.prototype.isEmpty=function(S){return!S||_.yY(S)&&S.length===0};
_.d([uqz()],q_);var i2h=function(S){S=bxp(S);g9.call(this,S)};
_.C(i2h,g9);i2h.prototype.addProvider=function(S){S=S.key?S:bxp([S])[0];var c=this.keyIdToIndex.get(S.key.id);if(c){if(tXx(S,this.providers[c]))throw Error("mg`"+S.key.displayName);}else g9.prototype.addProvider.call(this,S)};
var Z2d=new i2h([]);var G9d=!1;var SuM={};G9d||(m0R(),G9d=!0);
SuM.InjectBehavior={initializeInjection:function(){var S=this.provide;try{if((S=S!=null?S:[])&&S.length>0)for(var c=bxp(S),Q=_.A(c),f=Q.next();!f.done;f=Q.next())Z2d.addProvider(f.value);var U=new Set;VXY(this.behaviors||[],U);c={};for(var a=_.A(U),X=a.next();!X.done;X=a.next()){var z=X.value;z.inject&&Object.assign(c,z.inject)}this.inject&&Object.assign(c,this.inject);for(var x=_.A(Object.keys(c)),I=x.next();!I.done;I=x.next()){var n=I.value,b=c[n];try{this[n]=Z2d.resolve(b)}catch(N){throw N;}}}catch(N){throw Error(N.message);
}}};var QPp;var Uno=/\bclass\b/.test(function(){}.toString()),A7M=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var WzJ=function(S){this.wasDefined=!0;Array.isArray(S)||S instanceof Array?(this.JSC$11351_getImpl=S[0],this.JSC$11351_setImpl=S[1]):this.JSC$11351_getImpl=S};
_.J=WzJ.prototype;_.J.getWithPath=function(S){return zTY(this.JSC$11351_getImpl(),S)};
_.J.setWithPath=function(S,c){var Q=this;if(S.length)throw Error("ng");if(!this.JSC$11351_setImpl)throw Error("og");jd(function(){Q.JSC$11351_setImpl(c)})};
_.J.notifyPath=function(){throw Error("pg");};
_.J.notifySplices=function(){throw Error("qg");};
_.J.getChangeRecordSignal=function(S,c){var Q=this;if(S.length)throw Error("rg");return function(){var f=Q.getWithPath(S);return{path:c!=null?c:"",base:f,value:f}}};
_.J.getSplicesSignal=function(){throw Error("sg");};
_.J.getPathMutationSignal=function(){throw Error("tg");};
_.J.pop=function(){throw Error("ug");};
_.J.push=function(){throw Error("vg");};
_.J.splice=function(){throw Error("wg");};
_.J.unshift=function(){throw Error("xg");};var is=function(S){var c=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(S)||S instanceof Array?(this.JSC$11356_getImpl=S[0],this.JSC$11356_setImpl=S[1]):this.JSC$11356_getImpl=S;this.wasDefined=!1;Ix(function(){c.wasDefined=c.JSC$11356_getImpl()!==void 0})};
is.prototype.getWithPath=function(S){return zTY(this.JSC$11356_getImpl(),S)};
is.prototype.setWithPath=function(S,c){var Q=this;if(S[S.length-1]!=="*"&&S[S.length-1]!=="splices"){if(S.length===0){if(!this.JSC$11356_setImpl)throw Error("yg");this.wasDefined||(this.wasDefined=c!==void 0);jd(function(){Q.JSC$11356_setImpl(c)})}else{for(var f=Ix(function(){return Q.getWithPath([])}),U=0;U<S.length-1;U++){if(!f)return;
f=f[S[U]]}U=S[S.length-1];f&&(f[U]=c);this.wasDefined||(this.wasDefined=S.length>1||c!==void 0)}g3z(this,S,{pathComponents:S,value:c})}};
is.prototype.notifyPath=function(S,c){S.length===0?c&&this.setWithPath(S,c.value):g3z(this,S,{pathComponents:S,value:c==null?void 0:c.value,fallbackWhenUndefined:c==null?void 0:c.value})};
var g3z=function(S,c,Q,f){if(S.setMutationSignal){var U=++S.mutationIndex,a=[S.observedPath],X=S.observedPath,z;c.length===0&&(z=X);for(var x=0;x<c.length;x++){var I=X.subPaths[c[x]];if(!I)break;a.push(I);X=I;x===c.length-1&&(z=I)}for(c=!1;a.length;)X=a.shift(),X.data={index:U,mutation:Q,spliceMutationIndex:f},c||(c=X===z),c&&a.push.apply(a,_.Hs(Object.values(X.subPaths)));jd(function(){S.setMutationSignal(U)})}};
is.prototype.notifySplices=function(S,c){var Q=this,f=Ix(function(){return Q.getWithPath(S)}),U=[].concat(_.Hs(S),["splices"]);
g3z(this,U,{pathComponents:U,value:{indexSplices:c}});if(f==null?0:f.length)c=this.mutationIndex,U=[].concat(_.Hs(S),["length"]),g3z(this,U,{pathComponents:U,value:f.length},c)};
var e8d=function(S,c,Q,f,U,a){S.notifySplices(Q,[{index:f,addedCount:U,removed:a,object:c,type:"splice"}])},k9$=function(S,c){S=S.observedPath;
for(var Q=0;Q<c.length;Q++){var f=c[Q],U=S.subPaths[f];U||(U={pathComponents:c.slice(0,Q+1),subPaths:{}},S.subPaths[f]=U);S=U}},d5d=function(S,c,Q){k9$(S,c);
if(!S.getMutationSignal){var f=_.A(_.ny(S.mutationIndex,void 0,"HavCgf"));S.getMutationSignal=f.next().value;S.setMutationSignal=f.next().value}var U=S.getMutationSignal;return _.uQ(function(){U();return Q(rLd(S,c))},void 0,"BYaPo")};
is.prototype.getChangeRecordSignal=function(S,c){var Q=this,f=this.mutationIndex,U;return d5d(this,S,function(a){if(a&&a.index>f){var X=a.mutation;f=a.index;U=void 0}a=Ix(function(){return Q.getWithPath(S)});
if(X){var z=X.pathComponents[X.pathComponents.length-1],x=[].concat(_.Hs(X.pathComponents));if(z==="splices"||z==="length")return{base:a,path:(c?[c].concat(_.Hs(x)):x).join("."),value:X.value};var I=S.length>x.length?S:x,n;return{base:a!=null?a:X.fallbackWhenUndefined,path:(c?[c].concat(_.Hs(I)):I).join("."),value:(n=Ix(function(){return Q.getWithPath(I)}))!=null?n:X.fallbackWhenUndefined}}U||(U={base:a,
path:(c?[c].concat(_.Hs(S)):S).join("."),value:a});return U})};
is.prototype.getSplicesSignal=function(S){var c=this.mutationIndex,Q;return d5d(this,S,function(f){if(f&&f.index>c&&f.spliceMutationIndex!==c){var U=f.mutation;c=f.index;Q=void 0}return U&&U.pathComponents[U.pathComponents.length-1]==="splices"?Q=f=U.value:Q})};
is.prototype.getPathMutationSignal=function(S){var c=this;k9$(this,S);if(!this.getMutationSignal){var Q=_.A(_.ny(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=Q.next().value;this.setMutationSignal=Q.next().value}var f=this.getMutationSignal,U=this.mutationIndex,a;return _.uQ(function(){f();var X=rLd(c,S);if(X&&X.index>U&&X.mutation&&xnY(X.mutation.pathComponents,S)){var z=X.mutation;U=X.index}if(!a||U!==a.index){var x,I;X=(I=Ix(function(){return c.getWithPath(S)}))!=null?I:(x=z)==null?
void 0:x.fallbackWhenUndefined;
a={index:U,value:X}}return a},void 0,"Aumsyf")};
var rLd=function(S,c){S=S.observedPath;c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())S=S.subPaths[Q.value];return S.data};
is.prototype.pop=function(S){var c=this,Q=Ix(function(){return c.getWithPath(S)});
if(!(Q instanceof Array))throw Error("zg");var f=Q.length>0,U=Q.pop();f&&e8d(this,Q,S,Q.length,0,[U]);return U};
is.prototype.push=function(S){var c=_.YD.apply(1,arguments),Q=this,f=Ix(function(){return Q.getWithPath(S)});
if(!(f instanceof Array))throw Error("Ag");var U=f.length,a=f.push.apply(f,_.Hs(c));c.length&&e8d(this,f,S,U,c.length,[]);return a};
is.prototype.splice=function(S,c,Q){var f=_.YD.apply(3,arguments),U=this,a=Ix(function(){return U.getWithPath(S)});
if(!(a instanceof Array))throw Error("Bg");c<0?c=a.length-Math.floor(-c):c&&(c=Math.floor(c));var X=a.splice.apply(a,[c,Q].concat(_.Hs(f)));(f.length||X.length)&&e8d(this,a,S,c,f.length,X);return X};
is.prototype.unshift=function(S){var c=_.YD.apply(1,arguments),Q=this,f=Ix(function(){return Q.getWithPath(S)});
if(!(f instanceof Array))throw Error("Cg");var U=f.unshift.apply(f,_.Hs(c));c.length&&e8d(this,f,S,0,c.length,[]);return U};var v3$=!0,PXd=!1,E3z=!1,LzH=!1,ZM=!1,E3i=0;LzH=!1;E3i=0;v3$=!0;ZM=PXd=E3z=!1;var G3=function(S,c,Q){this.model=S;this.unknownSignalResolver=c;this.options=Q;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];c=_.A(ubZ());S=c.next().value;c=c.next().value;this.owner=S;this.disposeImpl=c};
G3.prototype.dispose=function(){if(!this.isDisposed){for(var S=_.A(this.childSignalProxies),c=S.next();!c.done;c=S.next())c.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var t7e=function(S,c){S=_.cr(S.owner);try{c()}finally{_.cr(S)}};
G3.prototype.effect=function(S){t7e(this,function(){_.Go(S)})};
var V7e=function(S,c){S.options!=null||(S.options={});var Q;(Q=S.options).immutableProps!=null||(Q.immutableProps=new Set);S.options.immutableProps.add(c)},Lhz=function(S,c){c=""+c;
R8p(S,c);var Q,f;if((Q=S.options)==null?0:(f=Q.immutableProps)==null?0:f.has(c))return!0;var U;if((U=S.model.__signalCache)==null?0:U.has(c))Q=S.model.__signalCache.get(c),Array.isArray(Q)&&V7e(S,c);var a,X,z;return(z=(a=S.options)==null?void 0:(X=a.immutableProps)==null?void 0:X.has(c))!=null?z:!1},yLT=function(S,c){var Q;
S.unknownSignalResolver&&(Q=S.unknownSignalResolver(c));var f,U;((f=S.options)==null?0:(U=f.immutableProps)==null?0:U.has(c))?Q!=null||(Q=new WzJ(_.ny(S.model[c],void 0,"bgwlkd"))):Q!=null||(Q=new is(_.ny(S.model[c],void 0,"V1hou")));var a=S.model.hostElement;Object.defineProperty(S.model,c,{get:function(){PFo(a,c);return Q.getWithPath([])},
set:function(X){Yn(a,c);S.setWithPath([c],X)},
configurable:!0});return Q},R8p=function(S,c){var Q,f,U;
((Q=S.model.__signalCache)==null||!Q.has(c))&&((f=S.options)==null?0:(U=f.externalSignalProps)==null?0:U.has(c))&&S.model[c]},iw=function(S,c){c=""+c;
var Q=S.signalCache[c];if(Q!==void 0)return Q;Q=!1;R8p(S,c);var f;if((f=S.model.__signalCache)==null?0:f.has(c))if(Q=S.model.__signalCache.get(c),Array.isArray(Q))Q=!0,V7e(S,c);else return S.signalCache[c]=S.model.__signalCache.get(c).signal,S.signalCache[c];var U,a;f=(a=(U=S.options)==null?void 0:U.reactivityMode)!=null?a:0;var X,z;if(!((X=S.options)==null?0:(z=X.reactiveProps)==null?0:z.has(c))&&!Q&&f===1)throw Error("Dg`"+c);U=Q?o3J(S,c):yLT(S,c);return S.signalCache[c]=U},o3J=function(S,c){var Q=
Object.getOwnPropertyDescriptor(S.model.constructor.prototype,c),f=function(){return S.model[c]};
return new WzJ(Q&&Q.get&&!Q.set?f:[f,function(U){S.model[c]=U}])};
G3.prototype.getWithPath=function(S){var c=_.A(S);S=c.next().value;c=ya(c);PFo(this.model.hostElement,""+S);return iw(this,S).getWithPath(c)};
G3.prototype.setWithPath=function(S,c){if(S.length){Yn(this.model.hostElement,S.join("."));var Q=_.A(S);S=Q.next().value;Q=ya(Q);iw(this,S).setWithPath(Q,c)}};
G3.prototype.getPathMutationSignal=function(S){var c=_.A(S);S=c.next().value;c=ya(c);return iw(this,S).getPathMutationSignal(c)};
G3.prototype.notifyPath=function(S,c){var Q=_.A(S);S=Q.next().value;Q=ya(Q);iw(this,S).notifyPath(Q,c)};
var m5d=function(S,c){if(c.type==="literal")return function(){return{rootWasDefined:!0,value:c.value}};
var Q=sr(c.path),f=_.A(Q),U=f.next().value;f=ya(f);var a,X;if(c.type==="path"&&(Q.length===1||((a=S.options)==null?0:(X=a.immutableProps)==null?0:X.has(U))))return function(){var b=S.getWithPath(Q.slice(0,1)),N=zTY(b,Q.slice(1));b=b!==void 0;ZM&&(b=iw(S,Q[0]).wasDefined);return{rootWasDefined:b,value:N}};
var z=iw(S,U);if(c.type==="path"){var x=z.getPathMutationSignal(f);return function(){var b=ZM?z.wasDefined:Wr(S.owner,function(){return z.getWithPath([])})!==void 0;
var N,l=(N=x())==null?void 0:N.value;return{rootWasDefined:b,value:l}}}if(c.type==="splices"){var I=z.getSplicesSignal(f);
return function(){var b=I();return{rootWasDefined:ZM?z.wasDefined:b!==void 0,value:b}}}var n=z.getChangeRecordSignal(f,""+U);
return function(){var b=n();return{rootWasDefined:ZM?z.wasDefined:b!==void 0,value:b}}},NVZ=function(S,c,Q){var f=Q.map(function(z){return m5d(S,z)}),U=Q.length===0,a=[],X=Q.length!==1||Q[0].type!=="path"?!1:!0;
S.effect(function(){for(var z=f.length,x=[],I=!!a.length,n=0;n<z;n++){var b=f[n](),N=b.rootWasDefined;b=b.value;U||(U=N);x[n]=b;X&&(x[n+z]=I?a[n]:x[n],a[n]=b)}U&&Wr(S.owner,function(){return void c.apply(null,_.Hs(x))})})},Fhr=function(S,c,Q,f,U){var a=iw(S,c);
U!==void 0&&a.setWithPath([],U);NVZ(S,function(){var X=_.YD.apply(0,arguments);Yn(S.model.hostElement,c,!0);a.setWithPath([],Q.apply(null,_.Hs(X)))},f)};
G3.prototype.arrayPush=function(S){var c=_.YD.apply(1,arguments),Q=_.A(S),f=Q.next().value;Q=ya(Q);f=iw(this,f);return f.push.apply(f,[Q].concat(_.Hs(c)))};
G3.prototype.arraySplice=function(S,c,Q){var f=_.YD.apply(3,arguments),U=_.A(S),a=U.next().value;U=ya(U);a=iw(this,a);return a.splice.apply(a,[U,c,Q].concat(_.Hs(f)))};
G3.prototype.arrayUnshift=function(S){var c=_.YD.apply(1,arguments),Q=_.A(S),f=Q.next().value;Q=ya(Q);f=iw(this,f);return f.unshift.apply(f,[Q].concat(_.Hs(c)))};
G3.prototype.notifySplices=function(S,c){var Q=_.A(S);S=Q.next().value;Q=ya(Q);iw(this,S).notifySplices(Q,c)};var DnR=/([^\s]+?)\(([\s\S]*)\)/,Yuo=/\.([^.]+)$/,hTp=/\\,/g,jPH=/&comma;/g,lrY=/\\(.)/g,pex=[],CjY={"*":"wildcard",splices:"splices"};var g9Z=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"),i3c=/[A-Z]/,SSh=["class","hidden","id","on-dom-change"],k0Y=new Set([].concat(_.Hs(SSh),
["if","notify-dom-change","restamp"])),r7o=new Set([].concat(_.Hs(SSh),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),dnp=new Set(["restamp"]);var kmY=new Set(["className","id"]);var tjx=Symbol(),cLr=window;var O2z=window;var b2Z=0,Fzp=0,ZI=[],n3Y=0,x5p=!1,INp=document.createTextNode("");(new window.MutationObserver(Bip)).observe(INp,{characterData:!0});var W0=new Map,G4=0,cTl=function(S){this.mappedHandleId=S},KzH=function(S,c,Q,f){this.mappedHandleId=S;
var U=this;this.mappedHandleId=S;this.callback=c;this.waitTime=Q;this.schedulerPriority=f;this.handleId=_.Mq.addJob(function(){U.callback();W0.delete(U.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.C(KzH,cTl);KzH.prototype.cancel=function(){_.Mq.cancelJob(this.handleId);W0.delete(this.mappedHandleId)};
var $5p=function(S,c){this.mappedHandleId=S;var Q=this;this.mappedHandleId=S;this.callback=c;this.handleId=Nip(function(){Q.callback();W0.delete(Q.mappedHandleId)})};
_.C($5p,cTl);$5p.prototype.cancel=function(){var S=this.handleId-Fzp;S<0||ZI.length<=S||(ZI[S]=null);W0.delete(this.mappedHandleId)};var Y4H=function(){};
Y4H.prototype.cancel=function(){this.jobHandle!==void 0&&(uWp(this.jobHandle),this.jobHandle=void 0)};
Y4H.prototype.run=function(S,c,Q){var f=this;this.cancel();this.callback=S;this.jobHandle=_.gM(function(){S();f.callback=void 0},c,Q)};
Y4H.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var j2c=new WeakMap;var QSu=R8(function(S){for(var c=S,Q=0;Q<3;Q++)c=Object.getPrototypeOf(c);delete c.prototype.connectedCallback;var f=function(){return S.apply(this,arguments)||this};
_.C(f,S);f.prototype._attachDom=function(U){if(!U)return null;var a=(0,_.XV)(this.hostElement);a.attachShadow({mode:"open",shadyUpgradeFragment:U});a.shadowRoot.appendChild(U);return a.shadowRoot};
f.prototype._takeAttributes=function(){for(var U=this.hostElement.attributes,a=0;a<U.length;a++){var X=U[a],z=void 0,x=void 0;(x=(z=this).__attributeReaction)==null||x.call(z,X.name,null,X.value)}};
f.prototype._readyClients=function(){S.prototype._readyClients.call(this);this.root=this};
f.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);S.prototype.connectedCallback.call(this)};
_.Rh.Object.defineProperties(f,{template:{configurable:!0,enumerable:!0,get:function(){return f.prototype._template}}});
return f}),fYh=R8(function(S){var c=function(){return S.apply(this,arguments)||this};
_.C(c,S);c.prototype.created=function(){if(this.__notifyEffects)for(var Q=_.A(Object.values(this.__notifyEffects)),f=Q.next();!f.done;f=Q.next()){f=_.A(f.value);for(var U=f.next();!U.done;U=f.next())U.value.fn=pMM}if(this.__reflectEffects)for(Q=_.A(Object.values(this.__reflectEffects)),f=Q.next();!f.done;f=Q.next())for(f=_.A(f.value),U=f.next();!U.done;U=f.next())U.value.fn=h8R};
c.prototype._addEventListenerToNode=function(Q,f,U){Q=kn(Q);qm(Q,f,U)||S.prototype._addEventListenerToNode.call(this,Q,f,U)};
c.prototype._removeEventListenerFromNode=function(Q,f,U){Q=kn(Q);TL(Q,f,U)||S.prototype._removeEventListenerFromNode.call(this,Q,f,U)};
c.prototype._propertiesChanged=function(Q,f,U){if(this.__dataToNotify&&this.__notifyEffects)for(var a=_.A(Object.keys(this.__dataToNotify)),X=a.next();!X.done;X=a.next()){X=X.value;var z=D5x(X);this.__notifyEffects[z]||delete this.__dataToNotify[X]}else this.__dataToNotify=null;S.prototype._propertiesChanged.call(this,Q,f,U)};
c.prototype.fire=function(Q,f,U){f=f===void 0?{}:f;var a;return _.Az(kn((a=U==null?void 0:U.node)!=null?a:this),Q,f,U)};
c.prototype._ensureAttribute=function(Q,f){var U=kn(this);U.hasAttribute(Q)||M_(U,f,Q)};
c.prototype.isLightDescendant=function(Q){var f=kn(this);return kn(f)!==Q&&_.Ur(f).contains(Q)&&_.Ur(f).getRootNode()===_.Ur(Q).getRootNode()};
return c});
_.Y1.ready=function(){var S;((S=this.hostElement)!=null?S:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var c;((c=this.hostElement)!=null?c:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.w9._subscribeIronResize=function(S){var c;((c=S.hostElement)!=null?c:S).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.w9._unsubscribeIronResize=function(S){var c;((c=S.hostElement)!=null?c:S).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var wMp=[Array,Boolean,Date,Number,Object,String],dM=function(S,c,Q,f){this.polySiInfo=S;this.polySiParams=c;this.polySiContext=Q;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;this.reflecting=!1;f||this instanceof HTMLElement&&(f=this);if(!f)throw Error("Kg");this.allowedProps=c.allowedProps;this.hostElement=f;this.is=S.is;this.upgradeDisabled=!!c.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");S=new Set(c.reactiveSchemas.filter(function(U){return U.type!==
"observe"}).map(function(U){return U.propertyKey}));
this.signalProxy=new G3(this,void 0,{reactiveProps:S,reactivityMode:c.reactivityMode});this.__dataHasAccessor={};c=_.A(c.reactiveSchemas);for(S=c.next();!S.done;S=c.next())S=S.value,S.type==="signal"&&(this.__dataHasAccessor[S.propertyKey]=!0);this.upgradeDisabled||UFh(this)};
dM.prototype.getExtraMethodsToForward=function(){return[]};
var UFh=function(S){S.polySiContext.didRegister||(S.registered(),S.polySiContext.didRegister=!0);S.polySiContext.finalizedTemplate||(S.polySiContext.finalizedTemplate={},S.polySiParams.templateGetter&&(S.polySiContext.finalizedTemplate.processedTemplate=z8Y(S.polySiParams.templateGetter,S.polySiParams.is)));JTu(S);var c=S.hostElement;c.loggingStatus!=null||(c.loggingStatus={});c.loggingStatus.isInitializing=!0;Ix(function(){return void S.created()});
c.loggingStatus.isInitializing=!1;S.isPolySiElementConnected&&aYu(S)},aYu=function(S){S.didCallReady||(Ix(function(){return void S.ready()}),S.didCallReady=!0);
S.isAttached=!0;S.attached()};
_.J=dM.prototype;_.J.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||aYu(this)};
_.J.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.J.attributeChangedCallback=function(S,c,Q){if(this.upgradeDisabled)S==="disable-upgrade"&&Q===null&&(this.upgradeDisabled=!1,UFh(this));else if(c!==Q){var f=_.bx(S),U=this.polySiContext.typesForSignals[f];if(U&&(!this.reflecting||_.u("polysi_attribute_changed_serializing_killswitch"))){switch(U){case Object:try{var a=JSON.parse(Q)}catch(z){a=Q}break;case Array:try{a=JSON.parse(Q)}catch(z){a=null}break;case Date:a=isNaN(Q)?String(Q):Number(Q);a=new Date(a);break;case Boolean:a=Q!==null;break;case Number:a=
Number(Q);break;default:a=Q}this[f]=a}f=_.A(this.polySiParams.behaviors);for(U=f.next();!U.done;U=f.next())a=void 0,(a=U.value.attributeChanged)==null||a.call(this,S,c,Q);var X;(X=this.attributeChanged)==null||X.call(this,S,c,Q)}};
_.J.attributeChangedCallbackWrapper=function(S,c,Q){this.attributeChangedCallback(S,c,Q)};
_.J.setPropertiesFromInitialAttributeValues=function(){for(var S=0;S<this.hostElement.attributes.length;S++){var c=this.hostElement.attributes[S];(c.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(c.name))&&this.attributeChangedCallback(c.name,null,c.value)}};
_.J.created=function(){this.provide=this.polySiParams.provide;var S;(S=this.initializeInjection)==null||S.call(this);S=_.A(this.polySiParams.reactiveSchemas);for(var c=S.next();!c.done;c=S.next())c=c.value,c.type==="signal"&&(this.mutablePropNames.add(c.propertyKey),iw(this.signalProxy,c.propertyKey));TiY(this,this.polySiInfo,this.polySiParams.behaviors);S=_.A(this.polySiParams.reactiveSchemas);for(c=S.next();!c.done;c=S.next())c=c.value,c.type==="signal"&&c.value!==void 0&&(this.signalProxy.model[c.propertyKey]=
typeof c.value==="function"?c.value.call(this):c.value);if(this.polySiParams.signalProperties)for(S=_.A(this.polySiParams.signalProperties),c=S.next();!c.done;c=S.next()){c=c.value;var Q=void 0;((Q=this.__signalCache)==null?0:Q.has(c))||(this.signalProxy.model[c]=void 0)}LzH||AT_(this);q4p(this);S=_.A(this.polySiParams.behaviors);for(c=S.next();!c.done;c=S.next())Q=void 0,(Q=c.value.created)==null||Q.call(this);var f;(f=this.polySiInfo.created)==null||f.call(this)};
_.J.registered=function(){var S=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var c=Object.getPrototypeOf(this);c.addReactiveSchema=function(z){S.polySiParams.reactiveSchemas.push(z)};
for(var Q=_.A(this.polySiParams.behaviors),f=Q.next();!f.done;f=Q.next()){var U=void 0;(U=f.value.beforeRegister)==null||U.call(c)}var a;(a=this.polySiInfo.beforeRegister)==null||a.call(c);c.addReactiveSchema=M7z;Q=_.A(this.polySiParams.behaviors);for(f=Q.next();!f.done;f=Q.next())U=void 0,(U=f.value.registered)==null||U.call(c);var X;(X=this.polySiInfo.registered)==null||X.call(c)};
_.J.ready=function(){var S;(S=this.beforeReady)==null||S.call(this);LzH&&AT_(this);var c;if(S=(c=this.polySiContext.finalizedTemplate)==null?void 0:c.processedTemplate){S=XMZ(S.template,S.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:S.hasInsertionPoint,thisCtx:this});c=S.nodesById;S=S.root;var Q=this.hostElement;var f=f===void 0?!1:f;Q=(0,_.XV)(Q);if(!Q.attachShadow)throw Error("Dd");if(!Q.shadowRoot||f)Q.attachShadow({mode:"open",shadyUpgradeFragment:S}),Q.shadowRoot.appendChild(S);
this.root=Q.shadowRoot;this.$=c}XXh(this);f=_.A(this.polySiParams.behaviors);for(c=f.next();!c.done;c=f.next())S=void 0,(S=c.value.ready)==null||S.call(this);var U;(U=this.polySiInfo.ready)==null||U.call(this)};
_.J.attached=function(){for(var S=_.A(this.polySiParams.behaviors),c=S.next();!c.done;c=S.next()){var Q=void 0;(Q=c.value.attached)==null||Q.call(this)}var f;(f=this.polySiInfo.attached)==null||f.call(this)};
_.J.detached=function(){for(var S=_.A(this.polySiParams.behaviors),c=S.next();!c.done;c=S.next()){var Q=void 0;(Q=c.value.detached)==null||Q.call(this)}var f;(f=this.polySiInfo.detached)==null||f.call(this)};
var JTu=function(S){for(var c=_.A(S.polySiParams.behaviors),Q=c.next();!Q.done;Q=c.next())if(Q=Q.value,Q.listeners)for(var f in Q.listeners)ALH(S,S.hostElement,f,Q.listeners[f]);if(S.polySiInfo.listeners)for(var U in S.polySiInfo.listeners)ALH(S,S.hostElement,U,S.polySiInfo.listeners[U])},ALH=function(S,c,Q,f,U){S=O3R(S,f,U);
qm(c,Q,S)||c.addEventListener(Q,S);return S},AT_=function(S){for(var c=_.A(S.polySiParams.reactiveSchemas),Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.type==="compute"||Q.type==="computeWithMethod"?BVx(S.signalProxy,Q,S):Q.type==="redux"?b3R(S.signalProxy,Q,S.store):Q.type==="signal"&&Q.readOnly&&n9T(S.signalProxy,Q)},XXh=function(S){for(var c=_.A(S.polySiParams.reactiveSchemas),Q=c.next(),f={};!Q.done;f={schema$jscomp$12:void 0},Q=c.next())f.schema$jscomp$12=Q.value,f.schema$jscomp$12.type==="notify"?
KhY(S.signalProxy,f.schema$jscomp$12,S.hostElement):f.schema$jscomp$12.type==="observe"?$nz(S.signalProxy,f.schema$jscomp$12,S):f.schema$jscomp$12.type==="reflect"&&S.signalProxy.effect(function(a){return function(){var X=S.signalProxy.getWithPath([a.schema$jscomp$12.propertyKey]);
S.reflecting=!0;TVo(S.hostElement,a.schema$jscomp$12.propertyKey,X,!0);S.reflecting=!1}}(f));
if(S.reflectedAttributes)for(c=_.A(Object.entries(S.reflectedAttributes)),f=c.next(),Q={};!f.done;Q={key$jscomp$881:void 0,value$jscomp$8881:void 0},f=c.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;Q.key$jscomp$881=f;Q.value$jscomp$8881=U;S.signalProxy.effect(function(a){return function(){S.reflecting=!0;TVo(S.hostElement,a.key$jscomp$881,(0,a.value$jscomp$8881)(),!0);S.reflecting=!1}}(Q))}};
_.J=dM.prototype;_.J._setPendingProperty=function(S,c){this.set(S,c);return!1};
_.J._enableProperties=function(){};
_.J._setPendingPropertyOrPath=function(S,c){this.notifyPath(S,c);return!1};
_.J._addPropertyEffect=function(){};
_.J._stampTemplate=function(){throw Error("Lg");};
_.J.fire=function(S,c,Q){c=c===void 0?{}:c;Q=Q===void 0?{}:Q;var f,U,a={bubbles:(f=Q.bubbles)!=null?f:!0,cancelable:!!Q.cancelable,composed:(U=Q.composed)!=null?U:!0},X;return _.Az(i2o((X=Q.node)!=null?X:this.hostElement),S,c,a)};
_.J.get=function(S,c){var Q=sr(S);return c?zTY(c,Q):S==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(Q)};
_.J.linkPaths=function(){};
_.J.listen=function(S,c,Q){S=i2o(S);this.boundListeners!=null||(this.boundListeners=new WeakMap);var f=this.boundListeners.get(S);f||(f={},this.boundListeners.set(S,f));var U=c+Q;f[U]||(f[U]=ALH(this,S,c,Q))};
_.J.notifyPath=function(S,c){this.signalProxy.notifyPath(sr(S),arguments.length===2?{value:c}:void 0)};
_.J.canNotifyPath=function(S){return this.mutablePropNames.has(S)&&!Lhz(this.signalProxy,S)};
_.J.notifySplices=function(S,c){this.signalProxy.notifySplices(sr(S),c)};
_.J.pop=function(S){var c=this.signalProxy;S=sr(S);var Q=_.A(S);S=Q.next().value;Q=ya(Q);return iw(c,S).pop(Q)};
_.J.push=function(S){var c=_.YD.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[sr(S)].concat(_.Hs(c)))};
_.J.set=function(S,c,Q){if(Q)throw Error("Mg");S==="hidden"?this.hostElement.hidden=!!c:this.signalProxy.setWithPath(sr(S),c)};
_.J.setProperties=function(S){S=_.A(Object.entries(S));for(var c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;Q=Q.next().value;this[c]=Q}};
_.J.splice=function(S,c,Q){var f=_.YD.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[sr(S),c,Q].concat(_.Hs(f)))};
_.J.unlinkPaths=function(){};
_.J.unlisten=function(S,c,Q){S=i2o(S);if(this.boundListeners){var f=this.boundListeners.get(S);if(f){Q=c+Q;var U=f[Q];U&&(TL(S,c,U)||S.removeEventListener(c,U),delete f[Q])}}};
_.J.unshift=function(S){var c=_.YD.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[sr(S)].concat(_.Hs(c)))};
_.Rh.Object.defineProperties(dM.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 Lzr=[Array,Boolean,Date,Number,Object,String];var V7p=!1;var Wb=function(){var S=HTMLElement.apply(this,arguments)||this;S.restamp=!1;S.notifyDomChange=!1;S.JSC$11464_didCallConnected=!1;S.JSC$11464_renderDebouncer=null;S.disableTemplateUpdateSignalImpl=v0()?void 0:_.ny(!1,void 0,"zLXz1e");var c;S.getDisableTemplateUpdate=(c=S.disableTemplateUpdateSignalImpl)==null?void 0:c[0];var Q;S.setDisableTemplateUpdate=(Q=S.disableTemplateUpdateSignalImpl)==null?void 0:Q[1];return S};
_.C(Wb,HTMLElement);var OXl=function(S){S.conditionSignalImpl!=null||(S.conditionSignalImpl=new is(_.ny(!1,void 0,"wcuOQ")));return S.conditionSignalImpl};
_.J=Wb.prototype;_.J.showHideChildren=function(S){ztu(this,S,this.if)};
_.J.attributeChangedCallback=function(S,c,Q){if(this.JSC$11464_didCallConnected)throw Error("Qg`"+S);S==="notify-dom-change"?this.notifyDomChange=Q!==null:S==="restamp"&&(this.restamp=Q!==null)};
_.J.debounceRender=function(){this.JSC$11464_renderDebouncer=_.Ak(this.JSC$11464_renderDebouncer,sP,this.JSC$11464_renderImpl.bind(this));_.Xg(this.JSC$11464_renderDebouncer)};
_.J.disconnectedCallback=function(){var S=(0,_.XV)(this).parentNode;(!S||S.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in S&&!S.host)&&xFu(this)};
_.J.connectedCallback=function(){var S=this;this.JSC$11464_didCallConnected=!0;v3$?R8H():this.style.display="none";this.parentSignalProxy.effect(function(){OXl(S).getWithPath([]);S.debounceRender()})};
_.J.render=function(){_.Fg()};
_.J.JSC$11464_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var S=this.if;if(S){a:{var c=(0,_.XV)(this).parentNode;if(this.hasInstance()){var Q=this.instance.children;if((Q==null?0:Q.length)&&(0,_.XV)(this).previousSibling!==Q[Q.length-1])for(var f=0;f<Q.length;f++)(0,_.XV)(c).insertBefore(Q[f],this)}else{if(!c){c=!1;break a}Fkd(this,c)}c=!0}if(!c)return}else this.restamp&&xFu(this);ztu(this,!1,S);S&&Boi(this);PXd&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.J.hasInstance=function(){return!!this.instance};
var Fkd=function(S,c){var Q=S.parentSignalProxy;if(v0()){var f=_.A(_.ny(!0,void 0,"wXzgnc"));var U=f.next().value;f=f.next().value;Q=S.parentSignalProxy}else{var a;var X=new G3((a=IY$(S))!=null?a:{},function(x){var I=iw(S.parentSignalProxy,x).getChangeRecordSignal([]);x=_.ny(void 0,void 0,"mryEkc");var n=new is(x);X.effect(function(){if(S.getDisableTemplateUpdate&&!S.getDisableTemplateUpdate()){var b=I();n.notifyPath(sr(b.path),{value:b.value})}});
return n});
S.parentSignalProxy.childSignalProxies.push(X);var z=Q=X}Q=XMZ(S.templateInfo,S.templateInfo.nodeInfoList,Q,{eventListenerHost:S.eventListenerHost,hasInsertionPoint:S.templateInfo.hasInsertionPoint,thisCtx:S.eventListenerHost,enabledSignal:v0()?U:void 0,getModel:function(){return IY$(S)}}).root;
S.instance={root:Q,children:[],hidden:!1,signalProxy:z,getTemplateUpdatesEnabled:U,setTemplateUpdatesEnabled:f};z=_.A(Q.childNodes);for(U=z.next();!U.done;U=z.next())S.instance.children.push(U.value);(0,_.XV)(c).insertBefore(S.instance.root,S)},IY$=function(S){if((S=S.parentSignalProxy.model)&&!S.hostElement){var c={},Q;
for(Q in S)S.hasOwnProperty(Q)&&(c[Q]=S[Q]);return c}},xFu=function(S){if(S.instance){var c=S.instance.children;
if(c.length){var Q=(0,_.XV)(c[0]).parentNode;if(Q){Q=(0,_.XV)(Q);for(var f=0;f<c.length;f++)Q.removeChild(c[f])}}v0()?S.instance.setTemplateUpdatesEnabled(!1):S.instance.signalProxy.dispose();S.instance=void 0}},ztu=function(S,c,Q){c=c||!Q;
S.instance&&S.instance.hidden!==c&&(S.instance.hidden=c,t7p(c,S.instance.children))},Boi=function(S){if(v0()){var c=S.instance;
c&&Wr(S.parentSignalProxy.owner,function(){return!c.getTemplateUpdatesEnabled()})&&c.setTemplateUpdatesEnabled(!0)}else S.setDisableTemplateUpdate(!1)};
_.Rh.Object.defineProperties(Wb.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var S=this;return Wr(this.parentSignalProxy.owner,function(){return OXl(S).getWithPath([])})},
set:function(S){S||(v0()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));OXl(this).setWithPath([],!!S)}}});
_.Rh.Object.defineProperties(Wb,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",Wb);var ngh=[],eE=function(){var S=HTMLElement.apply(this,arguments)||this;S.as="item";S.indexAs="index";S.itemsIndexAs="itemsIndex";S.targetFramerate=20;S.notifyDomChange=!1;S.isDetached=!1;S.JSC$11471_renderDebouncer=null;S.instances=[];S.chunkingId=null;S.chunkCount=null;S.shouldMeasureChunk=!1;S.shouldContinueChunking=!1;S.renderStartTime=null;S.JSC$11471_didCallConnected=!1;return S};
_.C(eE,HTMLElement);var bXi=function(S){S.itemSignalImpl!=null||(S.itemSignalImpl=new is(_.ny(ngh,void 0,"YBrqgf")));return S.itemSignalImpl},Nop=function(S,c){Array.isArray(c)||(c=ngh);
bXi(S).setWithPath([],c)};
_.J=eE.prototype;_.J.showHideChildren=function(S){for(var c=_.A(this.instances),Q=c.next();!Q.done;Q=c.next())t7p(S,Q.value.children)};
_.J.notifyPath=function(S,c){S=sr(S);S[0]==="items"&&(S.length===1?Nop(this,c):bXi(this).setWithPath(S.slice(1),c))};
_.J.canNotifyPath=function(S){return S==="items"};
_.J.attributeChangedCallback=function(S,c,Q){if(this.JSC$11471_didCallConnected)throw Error("Rg`"+S);S==="as"?this.as=Q:S==="index-as"?this.indexAs=Q:S==="items-index-as"?this.itemsIndexAs=Q:S==="initial-count"?this.initialCount=Number(Q):S==="notify-dom-change"?this.notifyDomChange=Q!==null:S==="target-framerate"&&(this.targetFramerate=Number(Q))};
_.J.disconnectedCallback=function(){this.isDetached=!0;for(var S=0;S<this.instances.length;S++)Kk$(this,S);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.J.connectedCallback=function(){var S=this,c=bXi(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var U=c(),a=sr(U.path);if(a[0]===void 0||a[0]==="splices"||a[0]==="length")S.debounceRender();else{var X=a[0];if(X=S.instances[typeof X==="string"?Math.floor(Number(X)):X])a=[S.as].concat(_.Hs(a.slice(1))),X.signalProxy.notifyPath(a,U)}});
this.JSC$11471_didCallConnected=!0;v3$?R8H():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var Q=(0,_.XV)((0,_.XV)(this).parentNode),f=0;f<this.instances.length;f++)Q.insertBefore(this.instances[f].root,this);this.chunkingId&&this.render()}};
_.J.debounceRender=function(){this.JSC$11471_renderDebouncer=_.Ak(this.JSC$11471_renderDebouncer,sP,this.JSC$11471_renderImpl.bind(this));_.Xg(this.JSC$11471_renderDebouncer)};
_.J.render=function(){this.debounceRender();_.Fg()};
_.J.JSC$11471_renderImpl=function(){var S=this,c=this.items,Q=$Fl(this,c.length);uvs(this,c,Q);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){S.chunkingId=null;if(S.shouldMeasureChunk){var f=performance.now()-S.renderStartTime;S.chunkCount=Math.round(Math.ceil(1E3/S.targetFramerate)/f*S.chunkCount)||1}S.shouldContinueChunking&&S.debounceRender()}));
PXd&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var $Fl=function(S,c){var Q=c,f=S.instances.length;if(S.initialCount){if(S.chunkCount){var U=Math.min(Math.max(c-f,0),S.chunkCount);Q=Math.min(f+U,c)}else Q=Math.min(c,S.initialCount),U=Math.max(Q-f,0),S.chunkCount=U||1;S.shouldMeasureChunk=U===S.chunkCount;S.shouldContinueChunking=Q<c;S.renderStartTime=performance.now()}return Q},uvs=function(S,c,Q){for(var f=0;f<Q;f++){var U=S.instances[f],a=c[f];
U?(U.signalProxy.setWithPath([S.as],a),U.signalProxy.setWithPath([S.indexAs],f)):jS_(S,a,f)}for(c=S.instances.length-1;c>=f;c--)Q=S,U=c,Kk$(Q,U),_.A(Q.instances.splice(U,1)).next().value.signalProxy.dispose()},Kk$=function(S,c){S=S.instances[c];
c=(0,_.XV)(S.root);for(var Q=0;Q<S.children.length;Q++)c.appendChild(S.children[Q])},jS_=function(S,c,Q){var f={};
c=Object.assign({},lYh(S),(f[S.as]=c,f[S.indexAs]=Q,f[S.itemsIndexAs]=Q,f));var U=new G3(c,function(X){if(X!==S.as&&X!==S.indexAs){if(X===S.itemsIndexAs)return iw(U,S.indexAs);var z=iw(S.parentSignalProxy,X).getChangeRecordSignal([]);X=_.ny(void 0,void 0,"Mu2Bwb");var x=new is(X);U.effect(function(){var I=z();x.notifyPath(sr(I.path),{value:I.value})});
return x}});
S.parentSignalProxy.childSignalProxies.push(U);f=XMZ(S.templateInfo,S.templateInfo.nodeInfoList,U,{eventListenerHost:S.eventListenerHost,getModel:function(){var X={};return Object.assign({},lYh(S),(X[S.as]=U.model[S.as],X[S.indexAs]=U.model[S.indexAs],X[S.itemsIndexAs]=U.model[S.indexAs],X))},
hasInsertionPoint:S.templateInfo.hasInsertionPoint,thisCtx:S.eventListenerHost,methodInvocationRequirement:E3i,enabledSignal:S.stampingEnabled}).root;c={root:f,children:[],signalProxy:U};f=_.A(f.childNodes);for(var a=f.next();!a.done;a=f.next())c.children.push(a.value);f=(f=S.instances[Q+1])?f.children[0]:S;(0,_.XV)((0,_.XV)(S).parentNode).insertBefore(c.root,f);S.instances[Q]=c},lYh=function(S){if((S=S.parentSignalProxy.model)&&!S.hostElement){var c={},Q;
for(Q in S)S.hasOwnProperty(Q)&&(c[Q]=S[Q]);return c}};
eE.prototype.itemForElement=function(S){var c=this,Q=this.instances.find(function(f){return f.children.includes(S)});
if(Q)return Wr(this.parentSignalProxy.owner,function(){return Q.signalProxy.getWithPath([c.as])})};
eE.prototype.indexForElement=function(S){var c=this.instances.findIndex(function(Q){return Q.children.includes(S)});
return c>=0?c:void 0};
_.Rh.Object.defineProperties(eE.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var S=this;return Wr(this.parentSignalProxy.owner,function(){return bXi(S).getWithPath([])})},
set:function(S){Nop(this,S)}},
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}}});
_.Rh.Object.defineProperties(eE,{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",eE);var YSJ,Cbi;_.kR=new _.Sg("STATE_STORE_TOKEN");YSJ=new _.Sg("SELECT_TOKEN");Cbi=new _.Sg("DISPATCH_TOKEN");var QSM={getSelectFn:function(){var S;return(S=_.fl().resolve(_.QS(YSJ)))!=null?S:yLZ},
getDispatchFn:function(){var S;return(S=_.fl().resolve(_.QS(Cbi)))!=null?S:_.P0().dispatch.bind(_.P0())},
getAppStore:function(){return _.fl().resolve(_.kR)}},o3z,cTY=!1;var R1={traceAllComponents:_.u("web_tracing_all_components"),exportToCsi:_.u("web_tracing_export_to_csi"),exportBreadcrumbs:_.u("web_enable_tracing"),bufferSize:_.a6("web_max_tracing_events"),enabledSpansArray:_.XJ("web_tracing_enabled_spans")};var OXY=function(){};var aYM=void 0;var HXl=function(){};
HXl.prototype.hasAttribute=function(S){if(S==="dir")return!1;if(S==="disable-upgrade"){var c,Q;return(Q=(c=this.hostElement)==null?void 0:c.hasAttribute("disable-upgrade"))!=null?Q:!1}throw Error("Sg`"+S);};
HXl.prototype.attributeChangedCallbackWrapper=function(S,c,Q){if(S==="disable-upgrade"&&this.__isUpgradeDisabled&&Q===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var f;((f=this.hostElement)!=null?f:this).isConnected&&this.connectedCallback()}else c===Q||this.__isReflecting||this.attributeChangedCallback(S,c,Q)};
HXl.prototype.getExtraMethodsToForward=function(){for(var S=this,c=[],Q=_.A(DFu),f=Q.next(),U={};!f.done;U={tagName$jscomp$53:void 0,name$jscomp$531:void 0},f=Q.next())U.name$jscomp$531=f.value,f=void 0,U.name$jscomp$531==="_setPendingProperty"?(U.tagName$jscomp$53=this.hostElement.tagName.toLowerCase(),f=function(a){return function(X,z,x){lw(a.tagName$jscomp$53,X,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return S._setPendingProperty(X,z,x)}}(U)):f=function(a){return function(){return S[a.name$jscomp$531].apply(S,
_.Hs(_.YD.apply(0,arguments)))}}(U),c.push([U.name$jscomp$531,
f]);return c};
for(var FkY=fYh(QSu((0,_.j5)(HXl))),bXz=["disabled","disable-upgrade"],pXd=(0,_.j5)(function(){}),ht$=new Set(Object.getOwnPropertyNames(pXd.prototype)),jSc=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Hs(ht$))),KkZ=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),DFu=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),qSd=new Set([].concat(_.Hs(KkZ),_.Hs(DFu),_.Hs(ht$))),To$=_.A(qSd),wXs=To$.next();!wXs.done;wXs=To$.next())kTz.add(wXs.value);var uvR={created:function(){q4p(this);this.initializeInjection()}};var ToZ=!1,cI=window.ShadyDOM,ggZ=["appendChild","insertBefore","removeChild","replaceChild"],Wkz=[Node];cI&&Wkz.push(cI.Wrapper);var Pbx,LkH,V4r={};var UX=new Set,QX="",Rto="";var fv,J2=new Set;var J6p=new Set("context didCallReady is info params signalProxy".split(" ")),A6Y="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),Xyx="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var sSd=Bd({entities:a2Y}),M4e=new tb(sSd);var iXe=function(){return _.N_.apply(this,arguments)||this};
_.C(iXe,_.N_);_.Rh.Object.defineProperties(iXe.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return M4e}}});
_.d([_.KU()],iXe);_.rc=[sx.prototype,iXe.prototype];_.dc={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var S=this,c={};setTimeout(function(){var Q;return _.Az((Q=S.hostElement)!=null?Q:S,"yt-live-chat-add-tooltip-target",c)},0);
this.handler_=c.handler},
detached:function(){if(this.handler_){var S;this.handler_.removeElementFromSupportingTooltips((S=this.hostElement)!=null?S:this)}this.handler_=null}}};_.FB=new _.Sg("ICON_MANAGER_TOKEN");var ZXh=[48,20,18,16,15,13,12],T$z=new Map,C1c=new Set,jmo=new Set,Y0x=new Set,uHR=new Set,lnz=new Set,Ddp=new Promise(function(S){var c=!1,Q=!1,f=!1,U=[],a=function(X){if("detail"in X)if(X=X.detail,X.name==="yt-icons")HaM(X),c=!0;else if(X.name==="yt-sys-icons")HaM(X),Q=!0;else{var z;((z=X.name)==null?0:z.includes("yt-sys-icons"))&&X.size!==24&&(HaM(X,!0),U.push(X.size),U.length===ZXh.length&&(f=!0))}c&&Q&&f&&(window.removeEventListener("iron-iconset-added",a),S())};
window.addEventListener("iron-iconset-added",a)}),hHp=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"]]);_.vb={};_.vb.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.Em,computeHref_:function(S,c){c=c===void 0?!1:c;if(!S||S.commandExecutorCommand)return null;var Q=r2M(S,c);return c||Q!==null?Q?_.u("enable_polymer_resin")?_.jS(Q).toString():Q:null:(_.i5(new _.Yr("computeHref was null",this.is,S)),null)},
computeOptionalHref_:function(S){return this.computeHref_(S,!0)},
computeNofollow_:function(S){return S?sWz(S)?"nofollow":null:null},
computeIcon_:function(S){return S&&S.iconType?_.xz(S.iconType):""},
resolveCommand:function(S,c,Q){c=c===void 0?{}:c;return _.IW(S,this.hostElement,c,Q===void 0?!1:Q)}};var Wki,Pb;_.Gmd={};Wki=null;
Pb={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_=Hmp(this.viewroot));_.gM(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var S=this;this.unobserve_();if(_.u("kevlar_vimio_use_shared_monitor"))Zap(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 c=[];this.visibilityOptionVisible_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return S.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return S.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&c.push(this.visibilityObserver.observe(this.hostElement,function(){return S.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=c}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){wyo(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 S=_.Mk(this.parentNode,function(Q){var f,U=(f=Q.polymerController)!=null?f:Q;return!!U.getVisibilityObserverForChild&&U.getVisibilityObserverForChild()},!0);
if(S){var c;this.localVisibilityObserver_=((c=S.polymerController)!=null?c:S).getVisibilityObserverForChild()}else Wki||(Wki=Hmp()),this.localVisibilityObserver_=Wki;return this.localVisibilityObserver_},visibilityCallback:function(S){S?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.u("kevlar_use_vimio_behavior")||(Pb={});Pb&&!_.u("kevlar_use_vimio_behavior")&&(delete Pb.attached,delete Pb.detached);_.Gmd.YtVisibilityObserverBehavior=[Pb];var ggT={};ggT.YtVisualElementBehavior=[_.Gmd.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.u("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.u("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var S=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportShown(this,void 0,S)}},
onHidden:function(){if(_.u("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.u("kevlar_vimio_use_shared_monitor")){var S=this.getScreenLayer&&this.getScreenLayer(),c=this.getVisibilityLogger();c&&c.reportHidden(this,void 0,S)}},
getVisibilityLogger:function(){return _.u("kevlar_use_vimio_behavior")?_.b7():null},
shouldSkipLogging:function(){if(_.WY("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var S=this.getParentRenderer&&this.getParentRenderer();if(!S)return!1;var c,Q=(c=S.polymerController)!=null?c:S;if(!Q.data)return!1;S=this.data.trackingParams;S=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:S;var f;c=(f=Q.data)==null?void 0:f.trackingParams;var U,a;c=((U=Q.data)==null?0:U.loggingDirectives)?(a=Q.data)==null?void 0:a.loggingDirectives.trackingParams:c;return S&&c&&S===
c}}];var gbx=new Map,Cv;var D4Z=function(S){this.layer=S},i9=function(S){return S.layer!==void 0?S.layer:S.parent?i9(S.parent):S.layer=0};var P1M;_.m={};P1M=0;_.m.YtRendererBehavior=[_.vb.YtComponentBehavior,ggT.YtVisualElementBehavior,{_noAccessors:!0,properties:{data:Object},observers:["ytRendererBehaviorDataObserver_(data)","ytRendererBehaviorTargetIdObserver_(data.targetId)"],childCache_:null,parentComponent:null,wasVisible:!1,wasPrescan:!1,lastHandledScroll_:0,isRenderer_:!0,screenLayer:null,veFromLoggingDirective_:!1,useVimio_:_.u("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var S,c;(c=(S=this.monitorScrollElement)!=null?S:this.hostElement)==null||c.removeEventListener("scroll",_.xn(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();GXx(this.hostElement);RTh(_.Hb(),this.hostElement);oI.delete(this.hostElement)},
registerRenderer:function(S){var c;((c=S.polymerController)!=null?c:S).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(S),this.markDirty())},
unregisterRenderer_:function(S){this.useVimio_||(this.childCache_.delete(S),this.markDirty())},
attached:function(){var S=this,c=this.getParentRenderer();if(c){var Q,f,U;(f=(Q=(U=c.polymerController)!=null?U:c).registerRenderer)==null||f.call(Q,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var a,X;(X=(a=this.monitorScrollElement)!=null?a:this.hostElement)==null||X.addEventListener("scroll",_.xn(this,this.onScroll))}_.Mq.addJob(function(){eHo(S.hostElement)},8);
Q=new D4Z(this.screenLayer||void 0);(c=oI.get(c))&&c.layerNode&&(Q.parent=c.layerNode);c={};w9Y(this.hostElement,(c.isRenderer=!0,c.layerNode=Q,c[ppp]=this.data,c))},
getParentRenderer:function(){for(var S=this.hostElement.parentNode,c,Q;S&&((c=oI.get(S))==null||!c.isRenderer)&&!((Q=S.polymerController)!=null?Q:S).isRenderer_;)S=S.parentNode||S.host;return S},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.u("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.gC("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.u("debug_web_ve_data")&&this.data.trackingParams){var S="";try{S=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(Q){_.sH(Q)}if(S){var c=UET(S,1);c!==void 0&&(this.hostElement.dataset.veIndex=String(c));S=UET(S,2);
S!==void 0&&(this.hostElement.dataset.ve=String(S))}}this.veFromLoggingDirective_&&(this.dataElement=this.clientYouTubeData=this.veType=this.visualElement=void 0,this.veFromLoggingDirective_=!1);!this.visualElement&&this.data.loggingDirectives&&this.data.loggingDirectives.clientVeSpec&&this.data.loggingDirectives.clientVeSpec.uiType&&(this.veType=this.data.loggingDirectives.clientVeSpec.uiType,this.clientYouTubeData=this.data.loggingDirectives.clientVeSpec.clientYoutubeData,_.u("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.Yz(this.data.loggingDirectives.trackingParams)),this.visualElement=_.NK(_.Kv(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var S=this.data.targetId;_.o9d(_.Hb(),S,this.hostElement)}else RTh(_.Hb(),this.hostElement)},
onScroll:function(){var S=Date.now();S-this.lastHandledScroll_<50||(this.lastHandledScroll_=S,this.markDirty())},
markDirty:function(){_.u("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():LFr(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var S=this.getParentRenderer();if(S&&(S=oI.get(S))&&S.layerNode)return i9(S.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Hs(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var S=0;S<this.data.impressionEndpoints.length;S++)this.sendImpression(this.data.impressionEndpoints[S]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(S){S.clickTrackingParams&&delete S.clickTrackingParams;var c,Q;(S==null?0:(c=S.commandMetadata)==null?0:(Q=c.webCommandMetadata)==null?0:Q.sendPost)?_.xt(this.hostElement,[S,{impression:!0}]):_.FF(this.hostElement,[S],this.hostElement)},
logExplicitClick:function(S){var c=_.wN(this.getScreenLayer());if(c){var Q,f=(Q=S.polymerController)!=null?Q:S;S=f.visualElement;f=f.trackingParams||f.clickTrackingParams;!S&&f&&(S=_.Yz(f));S&&_.tz(c,S)}}}];var etl={},LM=function(){return _.N_.apply(this,arguments)||this};
_.C(LM,_.N_);LM.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
LM.prototype.onPdgItemBehaviorClick=LM.prototype.onPdgItemBehaviorClick;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LM.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LM.prototype,"data",void 0);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],LM.prototype,"onPdgItemBehaviorClick",null);_.d([_.KU()],LM);etl.YtPdgLiveChatItemBehavior=[LM.prototype,_.m.YtRendererBehavior];var kmd;var rTd;_.Ex={};_.Ex.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var tK=function(){var S=oh.apply(this,arguments)||this;S.switchTemplateAtRegistration=!1;return S};
_.C(tK,oh);tK.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||RHZ(this),_.CXo(this,"doRender"),this.doRender())};
tK.prototype.debounceRender=function(){this.templatingFn&&_.e$(this,"doRender",this.doRender)};
tK.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.sH(Error("bh"))};
tK.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
_.d([uqz()],tK);var dFd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,V$={},SqR=(V$[1]={filterString:null,isUnwrappable:null,unwrap:null},V$[2]={filterString:function(S,c,Q){return XZ(Q)},
isUnwrappable:function(S){return S instanceof pc},
unwrap:function(S){return qg(S)}},V$[3]={filterString:function(S,c,Q){return dFd.test(Q)?Q:uo.toString()},
isUnwrappable:function(S){return In(S)},
unwrap:function(S){return _.nc(S)}},V$[4]={filterString:function(){return uo.toString()},
isUnwrappable:function(S){return S instanceof A5},
unwrap:function(S){return _.Oy(S).toString()}},V$[5]={filterString:function(S,c,Q){return Q},
isUnwrappable:function(S){return typeof S==="string"},
unwrap:function(S){return S.toString()}},V$[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(S){return S instanceof _.ZQ},
unwrap:function(S){return W7(S)}},V$[8]={filterString:function(S,c,Q){Q=String(Q).toLowerCase();
return Bep(S,c,Q)?Q:"zClosurez"},
isUnwrappable:null,unwrap:null},V$[10]={filterString:null,isUnwrappable:null,unwrap:null},V$);oT[kv["default"]]=Q3Z;var fsT=[];var K7r=J_Y("A"),$QM=J_Y("BUTTON"),DL=J_Y("DIV"),u7z=J_Y("LABEL");(function(){var S=ox;ox=function(c){S==null||S(c);h2(function(){for(var Q=0;Q<c.length;Q++)UzM(c[Q])})}})();var vgd=function(){var S=_.N_.apply(this,arguments)||this;S.hasUnmounted=!1;return S};
_.C(vgd,_.N_);_.J=vgd.prototype;_.J.beforeRegister=function(){var S=this.doIdomRender;this.templatingFn?_.sH(Error("ah")):(this.templatingFn=S,this.switchTemplateAtRegistration=!0,mdT(this))};
_.J.attached=function(){};
_.J.detached=function(){UzM(this.hostElement)};
_.J.renderIdom=function(){throw Error("dh");};
_.J.doIdomRender=function(){var S=this;S2z(this.hostElement,function(){S.renderIdom()})};
_.d([_.KU()],vgd);var Pbz=[tK.prototype,vgd.prototype];var Lkp,EgJ=function(){return Lkp!==void 0?Lkp:Lkp=document.createElement("template")};
document.head.appendChild(EgJ().content);var t4s;var V4H,Rth=function(){return V4H!==void 0?V4H:V4H=document.createElement("template")};
document.head.appendChild(Rth().content);var yTl;var ogl=document.head,mFd=ogl.appendChild,S0d;if(yTl===void 0){var c6_=document.createElement("template");_.D(c6_,"\x3c!--css-build:shady--\x3e");c6_.content.insertBefore(Rth().content.cloneNode(!0),c6_.content.firstChild);yTl=c6_}S0d=yTl;mFd.call(ogl,S0d.content);var Qms,fnd=function(){return Qms!==void 0?Qms:Qms=document.createElement("template")};
document.head.appendChild(fnd().content);var Udp;var J6d=document.head,anH=J6d.appendChild,A6d;if(Udp===void 0){var Xyz=document.createElement("template");_.D(Xyz,"\x3c!--css-build:shady--\x3e");Xyz.content.insertBefore(fnd().content.cloneNode(!0),Xyz.content.firstChild);Udp=Xyz}A6d=Udp;anH.call(J6d,A6d.content);var Oai=document.head,zH$=Oai.appendChild,xdh;if(t4s===void 0){var FFH=document.createElement("template");_.D(FFH,"\x3c!--css-build:shady--\x3e");FFH.content.insertBefore(EgJ().content.cloneNode(!0),FFH.content.firstChild);t4s=FFH}xdh=t4s;zH$.call(Oai,xdh.content);var B$u,Inp=function(){return B$u!==void 0?B$u:B$u=document.createElement("template")};
document.head.appendChild(Inp().content);var nbu;_.Lv=new _.Sg("DARK_THEME_TOKEN");var Rwr=new _.L("accessibilityProperties");var Vop=new _.L("layoutProperties");var y_p=new _.L("imageType");var bae={};if("ytAttributedStringLinkHoverColor"in bae)throw Error("gh`ytAttributedStringLinkHoverColor");(function(S,c){bae[S]="value"in c&&"unit"in c?zwR(S,c):function(Q){try{return c(Q)}catch(f){throw Error("eh`"+S+"`"+f.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var N$d=function(S){var c=this;this.holdTime=S===void 0?500:S;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(Q){var f=new CustomEvent("LONG_PRESS"),U;(U=Q.changedTouches[0].target)==null||U.dispatchEvent(f)};
this.ontouchstart=function(Q){c.longPressTimeout=_.pS(_.Mq,function(){c.onlongpress(Q);c.longPressOccurred=!0},c.holdTime)};
this.ontouchmove=function(){_.Mq.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!0};
this.ontouchend=function(Q){if(c.longPressTimeout&&!c.longPressOccurred&&!c.moveOccurred){var f;(f=Q.changedTouches[0].target)==null||f.dispatchEvent(new Event("click"))}_.Mq.cancelJob(c.longPressTimeout);c.longPressTimeout=NaN;c.longPressOccurred=!1;c.moveOccurred=!1}};var wwp=function(S,c){N$d.call(this,c);var Q=this;this.callback=S;this.onlongpress=function(f){var U;(U=Q.callback)==null||U.call(Q,f)}};
_.C(wwp,N$d);var s3z=function(S,c){var Q=Object.assign({},c);S=_.A(new Map([["ontouchstart",S.ontouchstart],["ontouchend",S.ontouchend],["ontouchmove",S.ontouchmove]]));for(var f=S.next(),U={};!f.done;U={eventName$jscomp$85:void 0,eventHandler$jscomp$1:void 0},f=S.next()){var a=_.A(f.value);f=a.next().value;a=a.next().value;U.eventName$jscomp$85=f;U.eventHandler$jscomp$1=a;c[U.eventName$jscomp$85]=function(X){return function(z){var x;(x=Q[X.eventName$jscomp$85])==null||x.call(Q,z);(0,X.eventHandler$jscomp$1)(z)}}(U)}};_.U8=new _.Sg("COMMAND_HANDLER_TOKEN");var FiY=new _.L("parallelCommand");var nIx=new _.L("performOnceCommand");var Isp=new _.L("serialCommand");var bgr=void 0;var KFd=function(){this.data=[];this.consumer=null};
KFd.prototype.push=function(S){this.consumer?this.consumer(S):this.data.push(S)};var JW={};_.ny(JW,void 0,"sgPmTd");_.ny(null,void 0,"jypsq");var FBx=new KFd;var CkM=[DTY,pPY,hvp,Tsz,qoY,HrY,wPZ,swr];var EIT=new _.L("bracketTextDecorator");var vI=new _.L("highlightTextDecorator");_.t2=new _.Sg("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var r_Y=function(){},$dl;
($dl=window.requestIdleCallback)==null||$dl.bind(window);var vIz={calledOnce:!1,state:"visible"},dzZ={calledOnce:!1,state:"hidden"};var uHs=new _.Sg("ICON_WIZ_COMPONENT_TOKEN");_.C4=_.y_(function(S){var c=S.icon;var Q=S.active;var f=S.className;var U=S.style;var a=S.dataSelected;var X=S.dataDisabled;var z=S.role;var x=S.animateIcon;var I=S.themeOverride;var n=S.ariaHidden;var b=S.ariaExpanded;var N=S.ariaLabel;var l=S.tabindex;var H=S.id;var q=S.size;var w=S.iconFilter;return _.B(_.K,{cond:c,then:function(){var g=_.fl().resolve(uHs);return _.B(g,{icon:c,dataSelected:a,dataDisabled:X,animateIcon:x,themeOverride:I,ariaExpanded:b,tabindex:l,id:H,active:Q,size:q,role:z,className:f,
ariaHidden:n,ariaLabel:N,style:function(){return U!=null&&U()||q==null||!q()?U==null?void 0:U():"width: "+(q==null?void 0:q())+"px;height: "+((q==null?void 0:q())+"px;")},
iconFilter:w})}})},"b");
_.C4.idomCompat=!0;var Bvz=window.devicePixelRatio||1;var NvZ=new Map([["yt_outline_bag_black_24","bag"]]);var Rt=function(S){var c=this;this.margin=.1;this.whenInViewportWithMargin=S;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){c.requestScan()});
window.addEventListener("touchend",function(){c.requestScan()});
window.addEventListener("updateui",function(){c.requestScan()});
var Q=new _.S0((0,_.H1)(this.requestScan,this),100);window.addEventListener("scroll",function(){Q.fire()},!0);
window.addEventListener("resize",(0,_.H1)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){c.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.H1)(this.requestScan,this))};
Rt.prototype.observe=function(S){this.observationTargets.includes(S)||this.observationTargets.push(S)};
Rt.prototype.unobserve=function(S){this.observationTargets=this.observationTargets.filter(function(c){return c!==S})};
Rt.prototype.requestScan=function(){var S=this;this.scanRequested||(h2(function(){jmh(S)}),this.scanRequested=!0)};
var jmh=function(S){var c=(1+S.margin)*(document.documentElement.clientHeight||window.innerHeight);S.observationTargets=S.observationTargets.filter(function(Q){var f=Q.getBoundingClientRect();(f=c>f.top&&!!f.height)&&S.whenInViewportWithMargin(Q);return!f&&Q.parentNode});
S.scanRequested=!1};
Rt.prototype.disconnect=function(){this.observationTargets=[]};var lni,C1_;lni=_.A(_.ny(luZ(),void 0,"O3X2wd"));_.Y0z=lni.next().value;C1_=lni.next().value;window.addEventListener("resize",function(){C1_(luZ())});var Hau={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},Dde=void 0,pyi=window.innerWidth,hHe=window.innerHeight;window.addEventListener("resize",function(){Dde=void 0});var q0J;if("IntersectionObserver"in window)q0J=H5M();else{if(Dde===void 0){var T$J;T$J="matchMedia"in window?window.matchMedia(Hau.landscape+","+Hau.portrait).matches:void 0;Dde=T$J!==void 0?T$J:pyi>=930&&hHe>=550||pyi>=550&&hHe>=930}q0J=Dde?{observe:function(S){h2(function(){var c;(c=S.onViewportEntered)==null||c.call(S)})},
unobserve:function(){}}:new Rt(function(S){h2(function(){var c;
(c=S.onViewportEntered)==null||c.call(S)})})}var YFx=q0J;var wyh=_.y_(function(S){var c=!1,Q=_.EH("img",function(f){_.wX(function(){c=!0;f.onload=null})});
_.To(function(){var f,U=(f=S.data)==null?void 0:f.call(S),a,X=(a=S.getSrc)==null?void 0:a.call(S).cb,z;f=(z=S.config)==null?void 0:z.call(S);if(z=Q.value)if(a=function(I,n){if(!c)return X?X(I,n):I},hAr(z,f),_.u("web_image_dont_reload_same_src")&&pDY(z,U,a))_.u("web_image_dont_reload_same_src_simulate_load")&&z.dispatchEvent(new CustomEvent("load",{bubbles:!1,
cancelable:!1,detail:{message:"Simulating load event for already loaded image"}}));else{var x;DXY(z,U||null,a,f,(x=S.lazy)==null?void 0:x.call(S))}},"v0I2p");
return _.B("img",{el:Q})},"c");
wyh.idomCompat=!0;_.RW=_.y_(function(S){var c=function(){var Q,f=S.data(),U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V,AZ,IH,Nr,Hc,qr,wp,Pc,ex,yd,op;var DT={contentMode:(U=S.contentMode)==null?void 0:U.call(S),loadedClass:(a=S.loadedClass)==null?void 0:a.call(S),isPreloaded:(X=S.isPreloaded)==null?void 0:X.call(S),notifyOnLoaded:(z=S.notifyOnLoaded)==null?void 0:z.call(S),notifyOnUnloaded:(x=S.notifyOnUnloaded)==null?void 0:x.call(S),preferredThumbnail:(I=S.preferredThumbnail)==null?void 0:I.call(S),preserveHeight:(n=S.preserveHeight)==
null?void 0:n.call(S),preserveWidth:(b=S.preserveWidth)==null?void 0:b.call(S),objectPosition:(N=S.objectPosition)==null?void 0:N.call(S),targetWidth:(l=S.targetWidth)==null?void 0:l.call(S),targetHeight:(H=S.targetHeight)==null?void 0:H.call(S),shouldShowPlaceholder:(q=S.shouldShowPlaceholder)==null?void 0:q.call(S),useWidth:(w=S.useWidth)==null?void 0:w.call(S),isToggled:(g=S.isToggled)==null?void 0:g.call(S),alt:(r=S.alt)==null?void 0:r.call(S),className:(E=S.className)==null?void 0:E.call(S),
onerror:S.onerror,onload:S.onload,style$:((v=S.style$)==null?void 0:v.call(S))||((t=S.style)==null?void 0:t.call(S)),color:(V=S.color)==null?void 0:V.call(S),width:(AZ=S.width)==null?void 0:AZ.call(S),height:(IH=S.height)==null?void 0:IH.call(S),"aria-hidden$":(yd=(Nr=S["aria-hidden$"])==null?void 0:Nr.call(S))!=null?yd:(Hc=S.ariaHidden)==null?void 0:Hc.call(S),draggable:(qr=S.draggable)==null?void 0:qr.call(S),"data-disabled$":(op=(wp=S["data-disabled$"])==null?void 0:wp.call(S))!=null?op:(Pc=S.dataDisabled)==
null?void 0:Pc.call(S),size:(ex=S.size)==null?void 0:ex.call(S)};return wDr(f,DT,(Q=S.hideOn404)==null?void 0:Q.call(S))};
return _.B(_.DJ,null,_.B(_.YC,{when:function(){var Q;return((Q=c())==null?void 0:Q.type)==="image"}},function(){return _.B(wyh,{data:function(){return c().image},
getSrc:{cb:function(Q,f){var U=c().image.sources,a=c().config.isPreloaded,X=c().config.useWidth,z=c().config.targetWidth,x=c().config.targetHeight,I=c().config.preferredThumbnail;return _.IuH(f,U,a,X,z,x,I)||""}},
config:function(){var Q=c().config,f;for(f in Q)Q[f]===void 0&&delete Q[f];return Q},
lazy:S.renderLazy})}),_.B(_.YC,{when:function(){var Q;
return((Q=c())==null?void 0:Q.type)==="icon"}},function(){return _.B(_.C4,{icon:function(){return c().iconName},
role:function(){return c().config.role},
className:function(){return c().config.className},
style:function(){return c().config.style$+";width: "+(c().config.width+"px;height: ")+(c().config.height+"px;color: ")+(c().config.color+";")},
ariaLabel:function(){return c().config["aria-label$"]},
ariaHidden:function(){return c().config["aria-hidden$"]},
dataDisabled:function(){return c().config["data-disabled$"]},
active:function(){return c().config.isToggled},
size:function(){return c().config.size}})}))},"d");
_.RW.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var smu=function(S){return function(c){return _.B(Njz,null,function(){var Q=c.data(),f=_.Zf(c.config);return _.B(RT,null,function(){return void S(Q,f)})})}}(Z5H),MKY=_.y_(function(S){var c=function(f){var U,a=_.oW(function(N){U=sj(function(){for(var l=_.A(n()),H=l.next();!H.done;H=l.next()){H=GUZ(H.value);
H=typeof H==="string"?document.createTextNode(H):H;if(!(H instanceof Node)){l=new _.Yr("Part is not a node",H,typeof H);_.sH(l);break}N.appendChild(H)}})}),X=md(function(){return mzz(f())},{isEqual:sOR}),z=_.tq(S.config),x=function(){var N,l=X();
return!((N=z())==null||!N.ariaLabel)||!(l.commandRuns&&l.commandRuns.length!==0||l.paragraphStyleRuns&&l.paragraphStyleRuns.length!==0)},I=md(z,{isEqual:g_o}),n=function(){var N=oIM(X(),I());
cQo(N,I());return X().content?AQZ(X().content,N).parts:[]},b=!0;
_.To(function(){X();I();if(b)b=!1;else{var N=n();Promise.resolve().then(function(){var l=a.value;if(l){l.innerText="";var H;(H=U)==null||H();U=_.hS(l,function(){return _.B(WPH,{parts:N})})}})}},"YlhjWd");
return _.B("span",{el:a,class:function(){return X()&&Wic(X(),z())},
dir:function(){var N;return((N=z())==null?0:N.userInput)?"auto":void 0},
"aria-label":function(){var N;return x()?(N=z())==null?void 0:N.ariaLabel:void 0},
role:function(){return x()?"text":void 0}})},Q;
return((Q=S.config)==null?0:Q.renderedFromFormattedString)?c(S.text):_.B(_.K,{cond:S.text,then:c})},"e");
MKY.idomCompat=!0;_.mw=_.y_(function(S){var c=_.tq(S.text),Q=eAc(S);S.renderedFromFormattedString!==void 0&&(Q.renderedFromFormattedString=!0);return _.u("attr_string_reactive")?_.B(MKY,{text:c,config:Q}):_.B(_.K,{cond:function(){var f;return c()&&((f=mzz(c()))==null?void 0:f.content)},
then:function(){return _.B(smu,{data:S.text,config:Q})},
debugInstance:"Apcuac"})},"f");
_.mw.idomCompat=!0;var rQx=function(S,c,Q){c=c===void 0?"unknown":c;Q=Q===void 0?{}:Q;_.Yr.call(this,S+" ("+c+")",Object.assign({},{name:"YtWcwError",tagName:c},Q));Object.setPrototypeOf(this,this.constructor.prototype)};
_.C(rQx,_.Yr);_.tKR=new WeakMap;_.E_x=!1;var LPc,VKp,PDr;_.y$=Symbol("ih");_.Qn=Symbol("jh");LPc=Symbol("kh");VKp=new Set(Object.getOwnPropertyNames(Element.prototype));PDr=Symbol("lh");var Mup=_.y_(function(S){return _.B("yt-attributed-string",{"aria-label":S.ariaLabel,hidden:S.hidden,id:S.id,class:S.className,"force-default-style":S.forceDefaultStyle},_.B(_.mw,{text:S.data,ariaLabel:S.ariaLabel,ellipsisTruncate:S.ellipsisTruncate,isOverlay:S.isOverlay,linkInheritColor:S.linkInheritColor,noPreWrap:S.noPreWrap,noWrap:S.noWrap,userInput:S.userInput,noEndpoints:S.noEndpoints,headerRuns:S.headerRuns}))},"g");
_.u("web_wiz_attributed_string")&&_.f4(Mup,"yt-attributed-string",{props:{ariaHidden:_.y$,ariaLabel:_.y$,className:_.y$,ellipsisTruncate:_.y$,isOverlay:_.y$,linkInheritColor:_.y$,noEndpoints:_.y$,noStyleRuns:_.y$,noLinkColor:_.y$,noPreWrap:_.y$,noWrap:_.y$,skipOnClick:_.y$,userInput:_.y$,headerRuns:_.y$,id:_.y$,data:_.y$,hidden:_.y$,forceDefaultStyle:_.y$,text:_.Qn,stopPropagation:_.Qn,disableUpgrade:_.Qn,disable:_.Qn,slot:_.Qn}});var ot=function(){return _.W.apply(this,arguments)||this};
_.C(ot,_.W);ot.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},Z5H(this.data,this.config))};
_.d([_.p(Pbz),_.P("design:type",Object)],ot.prototype,"ytIdomTemplatingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ot.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ot.prototype,"ariaLabel",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"disable",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"ellipsisTruncate",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"isOverlay",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"linkInheritColor",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"noPreWrap",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"noWrap",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"userInput",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ot.prototype,"noEndpoints",void 0);_.d([_.Z(),_.P("design:type",Array)],ot.prototype,"headerRuns",void 0);
_.d([_.wM({is:"yt-attributed-string",disableElementRegistration:!0})],ot);
_.u("web_wiz_attributed_string")||_.k(ot,"yt-attributed-string",function(){if(nbu===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
S.content.insertBefore(Inp().content.cloneNode(!0),S.content.firstChild);nbu=S}S=nbu;return S},{mode:2});var iad,Zad,QLZ;iad=function(){this.firstThumbnailLoaded=!1};
_.GXz=function(){Zad||(Zad=new iad);return Zad};
QLZ=function(S){var c=_.GXz();c.firstThumbnailLoaded||(c.firstThumbnailLoaded=!0,_.i2("ftl",S))};
iad.prototype.reset=function(){this.firstThumbnailLoaded=!1};var yQZ=0,cnY=new WeakMap,mXz=0,aZ=new Set;var WFe,gbz=function(){return WFe!==void 0?WFe:WFe=document.createElement("template")};
document.head.appendChild(gbz().content);var eHh;var akp,XFz,mn;_.O2=_.QY.caches;mn=function(){};
mn.prototype.open=function(S){return _.O2.open(kX_(S))};
mn.prototype.has=function(S){return _.O2.has(kX_(S))};
mn.prototype.delete=function(S){return _.O2.delete(kX_(S))};
mn.prototype.match=function(S,c){var Q=this,f,U,a,X,z,x;return _.O(function(I){switch(I.nextAddress){case 1:return _.F(I,Q.keys(),2);case 2:f=I.yieldResult,U=_.A(f),a=U.next();case 3:if(a.done){I.jumpTo(5);break}X=a.value;return _.F(I,Q.open(X),6);case 6:return z=I.yieldResult,_.F(I,z.match(S,c),7);case 7:if(x=I.yieldResult)return I.return(x);a=U.next();I.jumpTo(3);break;case 5:return I.return()}})};
var ONx=function(){};
_.C(ONx,mn);var kX_=function(S){if(S.includes(":"))throw Error("oh`"+S);return S+":"+_.jJ("CacheStorage get")};
ONx.prototype.keys=function(){var S,c,Q,f,U,a,X,z,x;return _.O(function(I){if(I.nextAddress==1)return S=[],c=_.jJ("CacheStorage keys"),_.F(I,_.O2.keys(),2);Q=I.yieldResult;f=_.A(Q);for(U=f.next();!U.done;U=f.next())a=U.value,X=_.Jnp(a),z=X.originalName,x=X.datasyncId,x===c&&S.push(z);return I.return(S)})};var SI=function(){var S=_.W.apply(this,arguments)||this;S.objectURL=null;S.loadTime=Infinity;return S};
_.C(SI,_.W);_.J=SI.prototype;_.J.renderIdom=function(){ULY(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("rh");this.setConfig();this.config&&qFr(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.J.objectFitToContentMode=function(S){switch(S){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.J.logThumbnailFailureVe=function(){var S=_.qo(197497);_.Oc(_.Kv(),S);var c=_.wN();c&&S&&c&&_.L8(c,[S])};
_.J.loadImageFromCacheIfExists=function(S){var c=this,Q=S.target;(Q==null?0:Q.src)&&xLz(Q.src).then(function(f){c.objectURL=_.lo(f).toString();c.setSrc(Q,c.objectURL)}).catch(function(){})};
_.J.onError=function(S){var c=this;if(_.u("web_use_cache_for_image_fallback")){var Q=S.target;Q&&xLz(Q.src).then(function(f){c.objectURL=_.lo(f).toString();c.setSrc(Q,c.objectURL)}).catch(function(){_.u("kevlar_woffle_log_thumbnail_failure_ve")&&c.logThumbnailFailureVe();
_.u("kevlar_woffle_fallback_image")&&c.setSrc(Q,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.J.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.J.setConfig=function(){var S=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(c){S.loadImageFromCacheIfExists(c);S.revokeObjectURL();fkT(S.hostElement)},
onerror:function(c){S.onError(c)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.u("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.J.setSrc=function(S,c){c&&(S.src=c)};
_.d([_.p(Pbz),_.P("design:type",Object)],SI.prototype,"ytIdomTemplatingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],SI.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],SI.prototype,"alt",void 0);_.d([_.Z(),_.P("design:type",Boolean)],SI.prototype,"ftlEligible",void 0);_.d([_.Z(),_.P("design:type",Number)],SI.prototype,"height",void 0);_.d([_.Z(),_.P("design:type",Boolean)],SI.prototype,"notifyOnLoaded",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],SI.prototype,"notifyOnUnloaded",void 0);_.d([_.Z(),_.P("design:type",String)],SI.prototype,"objectFit",void 0);_.d([_.Z(),_.P("design:type",String)],SI.prototype,"objectPosition",void 0);_.d([_.Z(),_.P("design:type",String)],SI.prototype,"preferredThumbnail",void 0);_.d([_.Z(),_.P("design:type",Boolean)],SI.prototype,"preserveHeight",void 0);_.d([_.Z(),_.P("design:type",Boolean)],SI.prototype,"preserveWidth",void 0);
_.d([_.Z({value:!0}),_.P("design:type",Boolean)],SI.prototype,"useWidth",void 0);_.d([_.Z({value:function(){return!_.gC("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.P("design:type",Boolean)],SI.prototype,"shouldRenderLazy",void 0);_.d([_.Z(),_.P("design:type",Number)],SI.prototype,"width",void 0);_.d([_.wM({is:"yt-image",disableElementRegistration:!0})],SI);
_.k(SI,"yt-image",function(){if(eHh===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(gbz().content.cloneNode(!0),S.content.firstChild);
eHh=S}S=eHh;return S},{mode:2});var cJ=function(){return _.W.apply(this,arguments)||this};
_.C(cJ,_.W);cJ.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var S=_.Gv(this.data.onVisibleCommand);S&&this.ytComponentBehavior.resolveCommand(S)}};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],cJ.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cJ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Ex.YtVisibilityBehavior),_.P("design:type",Object)],cJ.prototype,"ytVisibilityBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cJ.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],cJ);
_.k(cJ,"yt-bumper-user-edu-content-view-model",function(){if(rTd===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;kmd===void 0&&(kmd=document.createElement("template"));var f=kmd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);rTd=S}S=rTd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var r6d;var dde,vb$=function(){if(dde!==void 0)return dde;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;r6d===void 0&&(r6d=document.createElement("template"));var f=r6d;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return dde=S};var P1u;_.Qv={};P1u=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"]);_.Qv.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var S=this.getContext_();return S?S.getTaskManager():_.Mq},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var S=_.Az(this.hostElement,"yt-get-context-provider",{});S.detail&&S.detail.contextProvider?this.cachedProviderNode_=S.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return P1u.has(this.hostElement.localName)},
getNetworkManager:function(){var S=this.getContext_();if(S)return S.getNetworkManager()}};var NEp,LFH,tuT,Ebl;_.fm=function(S){var c=LFH.get(S);if(c&&(c=c.pop()))return Ebl++,c;tuT++;try{var Q=document.createElement(S)}catch(f){throw new _.Yr("ElementPool failed to create element",S,f.message);}return Q};
NEp=function(S){var c=S.is;if(c){var Q=LFH.get(c);Q||(Q=[],LFH.set(c,Q));var f=_.WY("ELEMENT_POOL_CONFIG")||{};Q.length>=(f[c]!==void 0?f[c]:_.WY("ELEMENT_POOL_DEFAULT_CAP",0))||Q.push(S)}else _.i5(new _.Yr("Element pool should only handle custom elements:",S.nodeName))};
LFH=new Map;tuT=0;Ebl=0;var zs=new WeakMap,bNx=new WeakMap;var RH$;_.UL=function(S,c,Q){Q=Q===void 0?_.TV():Q;this.JSC$11735_defaultPriority=S;this.signal=c;this.scheduler=Q;this.nextJobDescriptor=0;this.JSC$11735_parkedJobs=[];this.scheduledJobs=new Map};
_.JN=function(S,c){if(c){var Q=_.g2();S.signal&&!_.en(Q,S.signal)?(Q.addListener(S.signal,function(){S.processSignal()}),S.JSC$11735_parkedJobs.push({job:c,
priority:void 0})):VuJ(S,c)}};
RH$=function(S,c){if(c!==S.JSC$11735_defaultPriority){S.JSC$11735_defaultPriority=c;for(var Q=_.A(S.scheduledJobs.values()),f=Q.next();!f.done;f=Q.next())f=f.value,S.scheduler.cancelJob(f.jobId),f.jobId=S.scheduler.addJob(f.jobWrapper,c)}};
_.UL.prototype.flushJobs=function(){RH$(this,10);this.processSignal()};
_.UL.prototype.cancel=function(){for(var S=_.A(this.scheduledJobs),c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;Q=Q.next().value;this.scheduler.cancelJob(Q.jobId);this.scheduledJobs.delete(c)}this.JSC$11735_parkedJobs=[]};
_.UL.prototype.processSignal=function(){for(var S=_.A(this.JSC$11735_parkedJobs),c=S.next();!c.done;c=S.next())c=c.value,VuJ(this,c.job,c.priority);this.JSC$11735_parkedJobs=[]};
var VuJ=function(S,c,Q){Q=Q||S.JSC$11735_defaultPriority;if(Q===10)Aa(c);else{var f=S.nextJobDescriptor++,U=function(){c();S.scheduledJobs.delete(f)},a=S.scheduler.addJob(U,Q);
S.scheduledJobs.set(f,{jobWrapper:U,jobId:a,priority:Q})}};_.Qu(jLY);var lkY={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};C5p({beforeVisit:function(S){if(UX.has(S.type)){var c;(c=S.props).idomKey!=null||(c.idomKey=S.type)}else S.type.TAG_NAME&&(QX=S.type.TAG_NAME)},
afterRender:function(S,c){var Q;QX=(Q=c==null?void 0:c.type)!=null?Q:""},
didPatch:function(){QX=""}});var y6_;_.aQ={};y6_={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.aQ.YtRendererstamperBehavior=[_.Qv.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 S in this.stampDom){var c=this.stampDom[S];c&&c.id&&this.addReactiveSchema({type:"observe",method:{methodName:BEz(c.id),args:[{type:"wildcard",path:S}]}})}else{(S=(this.constructor.generatedFrom||this).observers)||(S=[]);for(c in this.stampDom){var Q=this.stampDom[c];Q&&Q.id&&S.push(BEz(Q.id)+"("+c+".*)")}this.constructor.generatedFrom.observers=S}},
addStampDomObserverFns_:function(){for(var S in this.stampDom){var c=this.stampDom[S];c.id?(this[BEz(c.id)]=this.rendererStamperObserver_.bind(this,S,c.id),this.hasDataPath_[S]=!1):(c=new _.Yr("Bad rendererstamper config",this.is+":"+S),_.sH(c))}},
rendererStamperObserver_:function(S,c,Q){if(Q.path==S){if(Q.value===void 0&&!this.hasDataPath_[S])return;this.hasDataPath_[S]=Q.value!==void 0}this.rendererStamperApplyChangeRecord_(S,c,Q)},
rendererStamperApplyChangeRecord_:function(S,c,Q){var f=this.renderJobsMap_[c],U=null;S==Q.path?(Q=Q.value,_.yY(Q)||(Q=Q===void 0||Q===null?[]:[Q]),S=this.stampDom[S],S.mapping&&(U=this.stampDomArray_.bind(this,Q,c,S.mapping,S.reuseComponents,S.events,S.stamperStableList)),f&&f.cancel(),Q=S.usePageScheduler?this.getTaskManager():void 0,f||S.initialRenderPriority==void 0)?S.renderPriority==void 0||f||(f=new _.UL(S.renderPriority,S.waitForSignal,Q),this.renderJobsMap_[c]=f):(f=new _.UL(S.initialRenderPriority,
S.waitForSignal,Q),this.renderJobsMap_[c]=f,U=function(a,X){a();RH$(X,10)}.bind(this,U,f)):U=S+".splices"==Q.path?this.stampDomArraySplices_.bind(this,S,c,Q.value):this.forwardRendererStamperChanges_.bind(this,S,c,Q);
f?_.JN(f,U):U()},
forwardRendererStamperChanges_:function(S,c,Q){var f=Q.path.slice(S.length+1),U=this.getStampContainer_(c),a=f.indexOf("."),X=f.substring(0,a),z=!1,x=0,I=parseInt(X,0);if(X[0]=="#"){z=parseInt(X.substring(1),0);I=this.get(S);var n=this.get([S,X]);I[z]==n?x=z:x=I.indexOf(n);z=!0}else isNaN(I)||(x=I,z=!0);z&&(f=f.substring(X.length+1),a=f.indexOf("."));X=_.YU(U).children[x];var b;if(U=(b=X==null?void 0:X.polymerController)!=null?b:X)f="data"+f.slice(a),typeof U.notifyPath!=="function"?_.i5(new _.Yr("notifyPath missing",
this.is+": "+S+", "+c)):Q.value?U.notifyPath(f,Q.value):U.notifyPath(f)},
stampDomArraySplices_:function(S,c,Q){if(Q&&Q.indexSplices){var f=this.getStampContainer_(c);if(f){for(var U=_.YU(f),a=nKr(this.stampDom[S].reuseComponents),X=Q.indexSplices.length,z=0;z<X;z++){for(var x=Q.indexSplices[z],I=U.children[x.index],n=x.removed.length;n>0;n--)I&&I.parentElement&&(_.YU(I.parentElement).removeChild(I),a&&NEp(I),I=U.children[x.index]);n=this.stampDom[S].mapping;for(var b=x.index+x.addedCount,N=document.createDocumentFragment(),l=a,H=x.index;H<b;H++){var q=x.object[H],w=FQz(n,
q);if(w){var g=n[w];q=q[w];w=this.getComponentName_(g,q);var r=I?zs.has(I):!1;l&&I&&I.is==w&&r?(w=I,this.telemetry_.reuse++,I=I.nextElementSibling):l&&I&&r?(w=this.createComponent_(g,q,a),r=_.YU(I).nextElementSibling,U.insertBefore(w,r),$LH(this.is,U,I,a),I=r):(l=!1,w=this.createComponent_(g,q,a),N.appendChild(w));this.deferRenderStamperBinding_(w,g,q)}else g=new _.Yr("Unimplemented type",S,c,f.tagName,Object.keys(q)[0]),_.sH(g)}U.insertBefore(N,I)}this.flushRenderStamperComponentBindings_();this.stampDom[S].events&&
_.Az(this.hostElement,"yt-rendererstamper-finished",{container:f})}else S=new _.Yr("Container object not found",c,this.hostElement?this.hostElement.is:""),_.sH(S)}},
stampDomArray_:function(S,c,Q,f,U,a){var X=this.getStampContainer_(c);if(X)if(c=_.YU(X),f=nKr(f),S){var z=0,x=0,I;if(a=a===void 0?_.gC("STAMPER_STABLE_LIST",!1):a||!1)for(I=c.firstElementChild;I&&!zs.has(I)&&S.length>x;){a=S[x];var n=FQz(Q,a);if(n){if(this.getComponentName_(Q[n],a[n])!=I.is){var b=this.createComponent_(Q[n],a[n],f),N=_.YU(I).nextElementSibling;N?c.insertBefore(b,N):c.appendChild(b);$LH(this.is,c,I,f);I=b}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(I,Q[n],a[n]);z++;
x++;I=_.YU(I).nextElementSibling}else x++}uDM(this.is,c,z,f);z=I;if(S.length>x){a=document.createDocumentFragment();for(n=S.length;x<n;x++)if(b=S[x],N=FQz(Q,b))I=this.createComponent_(Q[N],b[N],f),this.deferRenderStamperBinding_(I,Q[N],b[N]),a.appendChild(I);z&&_.YU(z).parentNode&&I&&!zs.has(I)?c.insertBefore(a,z):c.appendChild(a)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();U&&_.Az(this.hostElement,"yt-rendererstamper-finished",{container:X})}else uDM(this.is,c,0,
f);else S=new _.Yr("Container object not found",c,this.hostElement?this.hostElement.is:""),_.sH(S)},
getStampContainer_:function(S){return this.$&&this.$[S]||_.Ur(this.hostElement).querySelector("#"+S)},
getComponentName_:function(S,c){return typeof S==="string"?S:S.matcher?S.matcher.call(this,c):S.component},
createComponent_:function(S,c,Q){S=this.getComponentName_(S,c);try{var f=J2.has(S)||UX.has(S);if(Q&&!f){var U=_.fm(S);try{_.Or(U)}catch(a){Q="Failed to clear styles for "+S+".",a.message&&(Q+=" Original error: "+a.message),_.i5(new _.Yr(Q))}}else U=document.createElement(S)}catch(a){return U="YtRendererStamperBehavior failed to create "+S+".",a.message&&(U+=" Original description: "+a.message),a.message="YtRendererStamperBehavior failed to create element",_.ZE(a,U),y6_.hasOwnProperty(S)?_.i5(a):_.sH(a),
document.createElement("SPAN")}this.telemetry_.create++;return U},
deferRenderStamperBinding_:function(S,c,Q){this.deferredBindingTasks_.push({component:S,typeOrConfig:c,data:Q})},
flushRenderStamperComponentBindings_:function(){for(var S=0,c=this.deferredBindingTasks_.length;S<c;S++){var Q=this.deferredBindingTasks_[S];if(!Q)break;var f=void 0,U=void 0,a=void 0,X=void 0,z=Q.component,x=Q.typeOrConfig;Q=Q.data;var I=(X=z.polymerController)!=null?X:z;X=z.loggingStatus;try{X&&(X.isRendererStamper=!0);if(typeof x!=="string"){for(a in x.attributes)x.attributes[a]===!0?z.setAttribute(a,""):x.attributes[a]===!1?z.removeAttribute(a):z.setAttribute(a,x.attributes[a]);for(U in x.params)I[U]=
x.params[U],z!==I&&lw(z.localName,U,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(f in x.properties){var n=x.properties[f];if(n){var b=IkY(n);I[f]=this.get(b);z!==I&&lw(z.localName,f,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(f==="on-tap"||f==="on-click"){var N=this.get(b);z.addEventListener("click",N);bNx.set(z,{property:f,listener:{type:"element",eventName:"click",handler:N}})}}else{var l=new _.Yr("Undefined property binding",f);_.sH(l)}}}if(x.classListBinding){var H=IkY(x.classListBinding),
q=H?this[H]:null;if(q)for(f=0;f<q.length;f++)_.a1(z,q[f],!0)}I.data=Q}finally{X&&(X.isRendererStamper=!1)}if(f=zs.get(z))z.hidden=!1,zs.delete(z),_.Mq.cancelJob(f)}this.deferredBindingTasks_.length=0}}];_.AN={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(S){for(var c=_.dQ.getInstance(),Q=_.A(Object.keys(S)),f=Q.next();!f.done;f=Q.next()){var U=f.value;f=S[U];if(this&&this[f]){var a=c.actionRoutingMap.get(U);a||(a=new Map,c.actionRoutingMap.set(U,a));c.registerActionHandler(this,U,this[f].bind(this),a)}else U=Error("jd"),U.params=f,_.eG(U)}},
unregisterActionMap:function(S){_.PG(_.dQ.getInstance(),S,this)}}]};var B3=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 Fi;var IZ=new Map;var iNM=window.matchMedia("(forced-colors: active)").matches;var obu;var mdd;var gKz=new _.Sg("LOTTIE_LOADER_TOKEN");_.f4(_.y_(function(S){return _.B("ytd-lottie-player",{id:S.id,hidden:S.hidden,class:S.className,"aria-label":S.ariaLabel,style:"display: block;"},_.B(_.b8,{data:S.data,animationName:function(){var c;return((c=S.data().animationConfig)==null?void 0:c.name)||""},
animationRef:function(){return S.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.y$,
id:_.y$,hidden:_.y$,className:_.y$,ariaLabel:_.y$}});var Xl=function(){var S=_.W.apply(this,arguments)||this;S.animationRef={};return S};
_.C(Xl,_.W);_.J=Xl.prototype;
_.J.handlePropertyChange=function(){var S=this.animatedIcon,c=this.active,Q=this.isDarkTheme;if(S){var f=this.previousActive!==c;this.previousActive=c;this.animationRef.lottieEl?f&&this.toggleAnimation(c,S.totalFrames):c?this.initializeAnimationAsToggled(S.lottiePlayerProps,S.totalFrames):this.initializeAnimationAsUntoggled(S.lottiePlayerProps);S.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=S.type;this.lottiePlayerProps=this.computeLottiePlayerProps(S,Q)}};
_.J.computeLottiePlayerProps=function(S,c){var Q=this.deepCloneLottiePlayerProps(S);c?(c=S.nameDarkTheme,S=S.pathDarkTheme):(c=S.name,S=S.path);Q.animationConfig.name=c;(c=IZ.get(S))?Q.animationConfig.animationData=c:Q.animationConfig.path=S;return Q};
_.J.initializeAnimationAsToggled=function(S,c){S.animationConfig.initialSegment=[c-1,c]};
_.J.initializeAnimationAsUntoggled=function(S){S.animationConfig.initialSegment=void 0};
_.J.toggleAnimation=function(S,c){if(S){var Q;(Q=this.animationRef.lottieEl)==null||Q.playSegments([0,c],!0)}else{var f;(f=this.animationRef.lottieEl)==null||f.playSegments([0,1],!0)}};
_.J.deepCloneLottiePlayerProps=function(S){var c=Object.assign({},S.lottiePlayerProps.animationConfig);S=Object.assign({},S.lottiePlayerProps);S.animationConfig=c;return S};
Xl.prototype.handlePropertyChange=Xl.prototype.handlePropertyChange;_.d([_.Z(),_.P("design:type",Object)],Xl.prototype,"animatedIcon",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Xl.prototype,"active",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Xl.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Xl.prototype,"animatedIconType",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Xl.prototype,"previousActive",void 0);
_.d([_.Z(),_.P("design:type",Object)],Xl.prototype,"lottiePlayerProps",void 0);_.d([_.Z(),_.P("design:type",Object)],Xl.prototype,"animationRef",void 0);_.d([_.B0("animatedIcon","active","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xl.prototype,"handlePropertyChange",null);_.d([_.wM({is:"yt-animated-icon",disableElementRegistration:!0})],Xl);
_.k(Xl,"yt-animated-icon",function(){if(mdd===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;obu===void 0&&(obu=document.createElement("template"));var f=obu;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);mdd=S}S=mdd;return S},{mode:2});var Sqs;var c__;var rnT=_.y_(function(S){var c=_.tc("span"),Q=sp(function(){return{value:null}});
_.wX(function(){var U;(U=Q.value)==null||U.cancel()});
var f=_.uQ(S.data,{equals:function(U,a){return U.iconName===a.iconName&&U.iconStyle===a.iconStyle&&U.iconSize===a.iconSize&&U.iconSetName===a.iconSetName&&U.iconSelected===a.iconSelected}},"aoiXAb");
_.To(function(){var U,a=(U=S.options)==null?void 0:U.call(S);kMR(c,Q,f(),a)},"QXgxJd");
return _.B("span",{class:"yt-icon-shape",el:c})},"i");
rnT.idomCompat=!0;var wBM=["youtube_fill","youtube_outline"];var Q3T=new _.pO({type:"iconset",value:void 0}),OL=function(){var S=_.W.apply(this,arguments)||this;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.iconName="";S.iconsetName="yt-icons";S.iconset=null;S.missingIconSet=!1;S.iconType=null;S.iconShapeDataSignal=_.ny(void 0,void 0,"RQ9kUb");S.renderingOptionsSignal=_.ny({iconWidth:"100%",iconHeight:"100%",iconFilter:S.iconFilter},void 0,"qtx8Ef");S.wizHasRendered=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(OL,_.W);OL.prototype.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S)};
OL.prototype.handlePropertyChange=function(){var S=this,c,Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g;return _.O(function(r){switch(r.nextAddress){case 1:if(c=!S.icon&&!S.iconName||!S.isAttached)return r.return();Q=S;f=Q.icon;U=Q.size;a=Q.defaultToFilled;X=Q.active;z=Q.targetContainer;S.toggleContainerClass(z);_.u("kevlar_use_wil_icons")&&f&&(x=$dY(f),S.iconType=x.length?x[1]:null);if(f){r.jumpTo(2);break}S.iconsetName="";S.iconName="";return _.F(r,S.renderIcon(z,f),3);case 3:return r.return();case 2:I=fsd(f);
n=$dY(I);n.length&&(S.iconsetName=n[0],S.iconName=n[1]);if(!_.u("kevlar_use_wil_icons")){r.jumpTo(4);break}b=OL;N=Uzu;l=S.iconType;H=S.active;q=S.defaultToFilled;w=S.size;g=S.iconsetName;return _.F(r,J_l(),6);case 6:return _.F(r,N.call(b,l,H,q,w,g,r.yieldResult),5);case 5:S.iconShapeData=r.yieldResult;case 4:if(S.shouldRenderIconShape(z)){r.jumpTo(7);break}return _.F(r,S.determineIconSet(I,X,a,U,z),7);case 7:return _.F(r,S.renderIcon(z,f),0)}})};
OL.prototype.toggleContainerClass=function(S){S?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
var fsd=function(S){return!_.u("default_to_innertube_icon")||S.indexOf(":")>0?S:_.xz(S)};
_.J=OL.prototype;_.J.determineIconSet=function(S,c,Q,f){var U=this;return _.O(function(a){return a.nextAddress==1?_.u("kevlar_system_icons")||_.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.WY("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.F(a,U.switchToYtSysIconset(S,c,Q,f),3):a.jumpTo(2):a.nextAddress!=2?a.return():_.F(a,U.useYtSysIconsetForMissingIcons(S,c,Q,f),0)})};
_.J.switchToYtSysIconset=function(S,c,Q,f){var U=this,a,X,z,x,I,n,b;return _.O(function(N){switch(N.nextAddress){case 1:if(!S||U.iconsetName!=="yt-icons"&&U.iconsetName!=="yt-sys-icons"){N.jumpTo(0);break}a=$dY(S);X=a[1];X=_.q0z(X);_.u("enable_polymer_icons_replace_underscores_dash")&&X.includes("_filled")&&(X=X.replace(/_filled/g,"-filled"));return _.F(N,zv(X,!0),3);case 3:return z=N.yieldResult,_.F(N,zv(X,!1),4);case 4:if((x=N.yieldResult)||c&&z)U.iconsetName="yt-sys-icons";U.iconName=U.getIconName(X,
c,Q,x,z);if(f===24){N.jumpTo(0);break}I="yt-sys-icons"+f+":"+U.iconName;return _.F(N,zv(I,!1,!0),6);case 6:return n=N.yieldResult,_.F(N,zv(I,!0,!0),7);case 7:b=N.yieldResult;U.iconName=U.getIconName(X,c,Q,n,b);if(!c&&n||c&&b)U.iconsetName="yt-sys-icons"+f;_.IN(N)}})};
_.J.getIconName=function(S,c,Q,f,U){S.includes("-filled")&&(S=S.replace("-filled",""));return U&&(c||Q)?S+"-filled":S};
_.J.useYtSysIconsetForMissingIcons=function(S,c,Q,f){var U=this,a,X;return _.O(function(z){if(z.nextAddress==1)return U.iconsetName!=="yt-icons"?z.jumpTo(0):_.F(z,zv(U.iconName,!1,!1,!0),3);if(z.nextAddress!=4)return a=z.yieldResult,_.F(z,zv(U.iconName,!1),4);X=z.yieldResult;if(a||!X)return z.jumpTo(0);U.iconsetName="yt-sys-icons";return _.F(z,U.switchToYtSysIconset(S,c,Q,f),0)})};
_.J.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
var J_l=function(){return _.O(function(S){try{return S.return(_.fl().resolve(_.FB))}catch(c){return S.return(new Promise(function(Q){_.g2().parkOrScheduleJob(function(){Q(_.fl().resolve(_.FB))},2,"ci")}))}})},Uzu=function(S,c,Q,f,U,a){f=f===void 0?24:f;
if(S){S=S.toLowerCase();var X=S.endsWith("_filled")||S.endsWith("-filled");c={iconName:S,iconStyle:(c===void 0?0:c)||(Q===void 0?0:Q)||X?"youtube_fill":"youtube_outline",iconSize:f,iconSetName:U===void 0?"yt-icons":U};Q=!!a.resolveIcon(c);Q||(c.iconSize=void 0,Q=!!a.resolveIcon(c));!Q&&X&&(c.iconName=S.substring(0,S.length-7),c.iconSize=f,Q=!!a.resolveIcon(c),Q||(c.iconSize=void 0,Q=!!a.resolveIcon(c)));Q||(c.iconStyle=void 0,Q=!!a.resolveIcon(c));Q||_.i5(new _.Yr("Icon not supported",{iconName:c.iconName,
iconStyle:c.iconStyle,iconSize:c.iconSize,iconType:S}));return Q?c:void 0}};
_.J=OL.prototype;_.J.shouldRenderIconShape=function(S){if(!_.u("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;S=this.getContainer(S);return!ZNx(S,this.icon)};
_.J.renderIcon=function(S,c){var Q=this,f,U,a,X,z,x,I,n;return _.O(function(b){switch(b.nextAddress){case 1:if(c&&Q.icon!==c)return b.return();f=Q.getContainer(S);U=ZNx(f,Q.icon);if(Q.shouldRenderIconShape(S)&&Q.iconType)return Q.applyIconShape(U,f),b.return();Q.removeIconShape();if(!f)return b.return();Q.iconName===""&&Q.iconset&&f&&(Q.removeStaticIcon(Q.iconset,f),U&&Q.removeAnimatedIcon(f));if(Q.iconName===""&&Q.iconset||!Q.iconsetName||!Q3T)return b.return();Q.iconset=Q3T.byKey(Q.iconsetName);
if(!Q.iconset)return Q.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.xn(Q,Q.onIconsetAdded)),b.return();Q.missingIconSet&&(Q.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.xn(Q,Q.onIconsetAdded)));X=(a=U||Q.isAnimatedIcon?MhH(Q.icon):void 0)&&!a.lazyLoad;x=a&&((z=a)==null?void 0:z.lazyLoad)&&(a.lottiePlayerProps.animationConfig.animationData?!0:IZ.get(Q.isDarkTheme?a.pathDarkTheme:a.path)?!0:!1);if(X||x)return Q.applyAnimatedIcon(f,a,Q.iconset),b.return();if(x||
(I=a)==null||!I.lazyLoad){b.jumpTo(2);break}n=WQZ(a,Q.isDarkTheme);Q.applyStaticIcon(Q.iconset,f,Q.iconName,S,U);return _.F(b,n,3);case 3:return _.F(b,Q.renderIcon(Q.targetContainer,Q.icon),4);case 4:return b.return();case 2:Q.applyStaticIcon(Q.iconset,f,Q.iconName,S,U),_.IN(b)}})};
_.J.getContainer=function(S){var c,Q=(c=rvo(this.hostElement))==null?void 0:c.host;c=!!Q&&!!Q.polymerController;if(!S||c)return S?this.getTargetContainer(S,Q):this.hostElement};
_.J.getTargetContainer=function(S,c){var Q=_.Ur(c).querySelector("#"+S);Q||(S=new _.Yr("yt-icon container missing",c.is,S),_.sH(S));return Q};
_.J.applyStaticIcon=function(S,c,Q,f,U){U&&this.removeAnimatedIcon(c);this.removeIconShape();U=U&&!!this.iconType&&!!this.iconShapeData&&_.u("kevlar_use_wil_icons");try{U?this.applyIconShape(!1,c):S.applyIcon(c,Q)}catch(a){this.handleError(a,f,c)}};
_.J.applyIconShape=function(S,c){this.iconset&&c&&(this.removeStaticIcon(this.iconset,c),S&&this.removeAnimatedIcon(c));S={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var Q=_.A(this.iconShapeDataSignal);c=Q.next().value;Q=Q.next().value;var f=_.A(this.renderingOptionsSignal),U=f.next().value;f=f.next().value;Q(this.iconShapeData);f(S);if(!this.wizHasRendered)for(this.wizHasRendered=!0,S=_.A(dLZ(c,U)).next().value;S.firstChild;)_.Ur(this.hostElement).appendChild(S.firstChild)};
_.J.removeIconShape=function(){if(_.u("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.J.removeStaticIcon=function(S,c){S.removeIcon(c)};
_.J.applyAnimatedIcon=function(S,c,Q){this.removeStaticIcon(Q,S);this.removeIconShape();var f;Q=this.animatedIconElement&&((f=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:f.type)===c.type;if(this.animatedIconElement&&Q){this.animatedIconElement.polymerController.animatedIcon=c;var U;((U=this.animatedIconElement)==null?void 0:U.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(S),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=c,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.u("kevlar_use_wil_icons")?S.insertBefore(this.animatedIconElement,S.childNodes[0]):(S=_.Ur(S),S.insertBefore(this.animatedIconElement,S.childNodes[0]))};
_.J.removeAnimatedIcon=function(S){_.u("kevlar_use_wil_icons")?this.animatedIconElement&&S.contains(this.animatedIconElement)&&S.removeChild(this.animatedIconElement):(S=_.Ur(S),this.animatedIconElement&&S.contains(this.animatedIconElement)&&S.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.J.handleError=function(S,c,Q){_.ZE(S,this.iconName,c,Q);c=ZNx(Q,this.icon);var f=!1;window.location.href.includes("JpymaW6Lh2w")?f=!0:Q._svgIcon&&(Q=(Q=Q._svgIcon.parentNode)?Q.tagName:"unknown",_.ZE(S,Q),Q==="YT-ICON"&&S.name==="NotFoundError"?f=!0:S.name==="NotFoundError"&&c&&(f=!0));f?_.i5(S):_.sH(S)};
_.Rh.Object.defineProperties(OL,{template:{configurable:!0,enumerable:!0,get:function(){if(c__===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;
Sqs===void 0&&(Sqs=document.createElement("template"));var f=Sqs;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);c__=S}S=c__;return S}}});
OL.prototype.handlePropertyChange=OL.prototype.handlePropertyChange;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],OL.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",String)],OL.prototype,"icon",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],OL.prototype,"active",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],OL.prototype,"defaultToFilled",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],OL.prototype,"isAnimatedIcon",void 0);
_.d([_.Z({value:24}),_.P("design:type",Number)],OL.prototype,"size",void 0);_.d([_.Z({value:""}),_.P("design:type",String)],OL.prototype,"targetContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],OL.prototype,"animatedIconElement",void 0);_.d([_.Z(),_.P("design:type",Object)],OL.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],OL.prototype,"ariaHidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],OL.prototype,"ariaLabel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],OL.prototype,"role",void 0);_.d([_.Z(),_.P("design:type",String)],OL.prototype,"style",void 0);_.d([_.Z(),_.P("design:type",String)],OL.prototype,"iconFilter",void 0);_.d([_.B0("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],OL.prototype,"handlePropertyChange",null);_.d([_.wM({is:"yt-icon",noInjection:!0})],OL);var as_;var A_d=function(){var S=document.body,c=S.appendChild;if(as_===void 0){var Q=document.createElement("template");_.D(Q,'\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>');
as_=Q}Q=as_;c.call(S,Q.content)};
document.body?A_d():window.addEventListener("DOMContentLoaded",A_d);var Xwz,Ogl=function(){return Xwz!==void 0?Xwz:Xwz=document.createElement("template")};
document.head.appendChild(Ogl().content);var zws,xzd=function(){return zws!==void 0?zws:zws=document.createElement("template")};
document.head.appendChild(xzd().content);var Fid;_.zy=new _.Sg("KEY_MANAGER_TOKEN");var thR={duration:1E3,easing:"ease",fill:"forwards"};_.Qu(EKH);var RVp={duration:1E3,easing:"ease",fill:"forwards"},nIz=_.y_(function(S){var c=_.EH("animated-rolling-character"),Q=void 0,f=function(){var U,a;return RY((U=S.character)==null?void 0:U.call(S))||RY((a=S.previousCharacter)==null?void 0:a.call(S))};
_.To(function(){if(S.marginMultiplier()){var U;(U=Q)==null||U.cancel();if(f()){var a;U=((a=S.previousCharacter)==null?0:a.call(S))?Number(S.previousCharacter())+10:S.rollUp()?0:30;var X;if((X=S.shouldAnimate)==null||!X.call(S)){var z,x;U-=Vhx((z=S.character)==null?void 0:z.call(S),(x=S.previousCharacter)==null?void 0:x.call(S),S.rollUp(),U)}}else{U=S.rollUp()?0:2;var I;(I=S.shouldAnimate)!=null&&I.call(S)||(a=U,X=S.rollUp()?-1:1,U=a-X)}c.value.style.marginTop="-"+U*S.marginMultiplier()+"px";var n;
if((n=S.shouldAnimate)==null?0:n.call(S)){var b,N;Q=ynp(c.value,(b=S.character)==null?void 0:b.call(S),(N=S.previousCharacter)==null?void 0:N.call(S),S.rollUp(),U,f(),S.marginMultiplier())}else{var l;c.value.style.display=((l=S.character)==null?0:l.call(S))?"":"none"}}},"vt9b9b");
return _.B("animated-rolling-character",{el:c,class:"animated-rolling-character-wiz"},_.B(_.K,{cond:f,then:function(){return _.B(BtH,null)},
else:function(){return _.B(Isd,{character:S.character})}}))},"j");
nIz.idomCompat=!0;var oKr=_.u("web_enable_sink_animated_rolling_character_and_number")?nIz:EKH,bgH=_.u("web_enable_sink_animated_rolling_character_and_number")?nIz:_.K4(EKH),BtH=_.y_(function(){for(var S=[],c=1;c<30;c++)S.push(_.B("div",null,c%10));return _.B(_.ak,null,_.B("div",null,"\u00a0"),S,_.B("div",null,"\u00a0"))},"k"),Isd=_.y_(function(S){var c=S.character;
return _.B(_.ak,null,_.B("div",null,"\u00a0"),_.B(_.K,{cond:function(){return!(c==null?0:c())||_.Xo(c==null?void 0:c())},
then:function(){return _.B("div",null,"\u00a0")},
else:function(){return _.B("div",null,c)}}),_.B("div",null,"\u00a0"))},"l");_.Qu(mLY);var Nts=_.y_(function(S){var c=void 0,Q=void 0,f=function(){var a;return((a=S.fontSizeMultiplier)==null?0:a.call(S))?S.heightPx()*S.fontSizeMultiplier():S.heightPx()},U=_.uQ(function(){if(!S.numberText())return[];
var a,X,z=((a=S.forceRollUp)==null?void 0:a.call(S))||!Q||!((X=S.numberValue)==null?0:X.call(S))||Q<S.numberValue(),x,I=S.numberText();a=f();X=!((x=S.shouldAnimate)==null||!x.call(S));x=[];var n=0,b=0,N=(c?c.replace(/\D/g,"").length:0)-(I?I.replace(/\D/g,"").length:0),l=c?c.split(/(\d)/).filter(Boolean):[];for(I=I.split(/(\d)/).filter(Boolean);N<0;){var H=I[b];x.push({character:H,rollUp:z,marginMultiplier:a,shouldAnimate:X});b++;RY(H)&&N++}for(;n<N;)H=l[n],x.push({previousCharacter:H,rollUp:z,marginMultiplier:a,
shouldAnimate:X}),n++,RY(H)||N++;for(;b<I.length;)N=I[b],H=l[n],RY(N)===RY(H)?(b++,n++):RY(N)?(n++,N=void 0):RY(H)&&(b++,H=void 0),x.push({character:N,previousCharacter:H,rollUp:z,marginMultiplier:a,shouldAnimate:X});c=S.numberText();var q;Q=(q=S.numberValue)==null?void 0:q.call(S);return x},void 0,"B9AmNd");
return _.B("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:function(){return S.numberText()?["height: "+f()+"px;","line-height: "+S.heightPx()+"px;"].join(" "):""},
dir:"ltr","aria-hidden":"true"},_.B(_.lW,{each:U,keyBy:"INDEX"},function(a){return _.B(bgH,{character:function(){return a().character},
previousCharacter:function(){return a().previousCharacter},
marginMultiplier:function(){return a().marginMultiplier},
rollUp:function(){return a().rollUp},
shouldAnimate:function(){return a().shouldAnimate}})}))},"m");
Nts.idomCompat=!0;_.Nzp=_.u("web_enable_sink_animated_rolling_character_and_number")?Nts:mLY;_.Kid=_.u("web_enable_sink_animated_rolling_character_and_number")?Nts:_.K4(mLY);var SQR={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"};_.xJ=_.y_(function(S){var c=_.EH("a",S.ref),Q=S.aTagConfig?S.aTagConfig:_.uQ(function(){var f,U,a,X,z,x;var I=(x=_.Gv((X=S.command)==null?void 0:X.call(S)))!=null?x:(z=S.command)==null?void 0:z.call(S);return _.gH({innertubeCommand:I,skipOnClick:(f=S.skipOnClick)==null?void 0:f.call(S),stopPropagation:(U=S.dangerousStopPropagation)==null?void 0:U.call(S),defaultTarget:(a=S.target)==null?void 0:a.call(S)})||{}},void 0,"gnrRge");
_.To(function(){c.value._data=Q()._data;c.value.params=Q().params},"dcjvAe");
return _.B("a",{el:c,href:function(){return Q().href$},
rel:function(){return Q().rel$},
class:function(){var f,U;return(U=Q().className)!=null?U:(f=S.className)==null?void 0:f.call(S)},
style:function(){var f;if((f=S.style)==null?0:f.call(S))return S.style();var U;return((U=S.disabled)==null?0:U.call(S))?"pointer-events:none":""},
"aria-haspopup":function(){return!!Q()["aria-haspopup$"]},
"force-new-state":jy(function(){return Q()["force-new-state$"]}),
title:jy(function(){var f,U;return(U=Q().title$)!=null?U:(f=S.title)==null?void 0:f.call(S)}),
role:jy(function(){return Q().role$}),
target:jy(function(){return Q().target$}),
dir:jy(function(){var f;return((f=S.dir)==null?0:f.call(S))?S.dir():Q().dir}),
tabindex:function(){var f;return Q().tabindex$?Number(Q().tabindex$):(f=S.tabIndex)==null?void 0:f.call(S)},
"aria-hidden":function(){var f,U;return(U=Q()["aria-hidden$"])!=null?U:(f=S.ariaHidden)==null?void 0:f.call(S)},
"aria-label":function(){var f,U;return(U=Q()["aria-label$"])!=null?U:(f=S.ariaLabel)==null?void 0:f.call(S)},
"aria-current":S.ariaCurrent,"aria-disabled":S.disabled,"aria-labelledby":S.ariaLabelledby,"aria-describedby":S.ariaDescribedby,"aria-selected":S.ariaSelected,"tab-identifier":S.tabIdentifier,"on:pointerdown":_.$d(function(f){var U,a;return void((a=(U=Q()).onpointerdown)==null?void 0:a.call(U,f))}),
"on:click":_.$d(function(f){var U,a;return void((a=(U=Q()).onclick)==null?void 0:a.call(U,f))})},S.children)},"n");var $zl=function(S,c){this.fillAnimation=new Animation(UQr(S),document.timeline);this.strokeAnimation=new Animation(Jxz(c),document.timeline)};
$zl.prototype.play=function(){var S,c;(c=(S=this.fillAnimation).play)==null||c.call(S);var Q,f;(f=(Q=this.strokeAnimation).play)==null||f.call(Q)};
$zl.prototype.cancel=function(){var S,c;(c=(S=this.fillAnimation).cancel)==null||c.call(S);var Q,f;(f=(Q=this.strokeAnimation).cancel)==null||f.call(Q)};_.p4=_.y_(function(S){var c=S.model;var Q=S.pointerDownEvent;var f=S.pointerUpEvent;var U=S.pointerLeaveEvent;S=_.EH("div");var a=_.Yd({"border-radius":function(){return c().borderRadius}}),X=_.EH("div"),z=_.EH("div"),x=_.A(_.l8(function(){return(f==null?0:f())||(U==null?0:U())?!1:!(Q==null||!Q())||!1})),I=x.next().value,n=x.next().value,b=void 0,N=function(){!b&&z.value&&X.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(b=new $zl(z.value,X.value));
var r;(r=b)==null||r.play()},l=function(){var r;
(r=b)==null||r.cancel()},H=function(){var r;
(r=b)==null||r.cancel()};
_.To(function(){(f==null?0:f())&&N()},"YjVIpd");
_.To(function(){(Q==null?0:Q())&&l()},"UrXvqb");
_.To(function(){(U==null?0:U())&&H()},"QK6L8b");
x=_.$d(function(){N();n(!1)});
var q=_.$d(function(){l();n(!0)}),w=_.$d(function(){H();
n(!1)});
_.wX(function(){if(b){var r;(r=b)==null||r.cancel();b=void 0}});
var g={};I=_.n4("yt-spec-touch-feedback-shape",function(){return aXH(c().color)},(g["yt-spec-touch-feedback-shape--focused"]=function(){return!!c().focused&&!c().disabled},g["yt-spec-touch-feedback-shape--circular"]=function(){return!!c().circular},g["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!c().isExtended},g["yt-spec-touch-feedback-shape--down"]=I,g["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!c().triggerEvents},g));
return _.B("yt-touch-feedback-shape",{style:_.Yd({"border-radius":"inherit"})},_.B("div",{el:S,class:I,style:_.Yd({"margin-top":function(){return c().customTopExtend?"-"+c().customTopExtend+"px":void 0}}),
"on:mousedown":q,"on:mouseup":x,"on:pointerleave":w,"on:touchstart":q,"on:touchend":x,"aria-hidden":!0},_.B("div",{class:"yt-spec-touch-feedback-shape__stroke",style:a,el:X}),_.B("div",{class:"yt-spec-touch-feedback-shape__fill",style:a,el:z})))},"o");
_.p4.idomCompat=!0;var uRd={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 Fl=_.bM();Fl=Fl.toLowerCase();if(_.zz(Fl,"android")){var j3d=Fl.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);j3d&&parseFloat(j3d[1])<100||Fl.match("("+Object.keys(uRd).join("|")+")")};var lsi=_.y_(function(S){return _.B(_.K,{cond:S.aTagConfig,then:function(c){return _.B(_.xJ,{aTagConfig:c,disabled:S.disabled,className:S.className,style:S.style,title:S.title,ariaLabel:S.ariaLabel,ariaCurrent:function(){var Q,f;return((Q=S.toggleable)==null?void 0:Q.call(S))&&((f=S.toggled)==null?void 0:f.call(S))}},S.children)},
else:function(){return _.B("button",{"on:click":_.$d(function(c){var Q;return(Q=S.onClick)==null?void 0:Q.call(S,c)}),
class:S.className,title:S.title,style:S.style,disabled:S.disabled,"aria-pressed":function(){var c,Q;return((c=S.toggleable)==null?0:c.call(S))?!((Q=S.toggled)==null||!Q.call(S)):void 0},
"aria-label":S.ariaLabel,"aria-disabled":S.visiblyDisabled,"aria-hidden":S.ariaHidden,tabindex:S.tabIndex},S.children)}})},"p"),Cku=_.y_(function(S){var c=S.data;
var Q=S.hasIconLeading;var f=S.hasIconLeadingTrailing;var U=S.hasIconTrailing;var a=S.iconButton;var X=S.iconClassName;var z=S.secondaryIconClassName;var x=S.icon;var I=S.secondaryIcon;var n=S.textContentClassName;return _.B(BJ,{className:"",style:"display: inherit; justify-content: center"},_.B(_.K,{debugInstance:"V4z1Uc",cond:function(){return x&&(Q()||f()||(a==null?void 0:a()))},
then:function(){return _.B(BJ,null,_.B("div",{class:X,"aria-hidden":"true"},x==null?void 0:x()))}}),_.B(_.K,{debugInstance:"ok3btb",
cond:function(){return(c().buttonText||c().animatedTextProps||c().formattedButtonText)&&!(a==null?0:a())},
then:function(){return _.B(BJ,null,_.B(Yqd,{className:n,iconPosition:function(){return c().iconPosition},
text:function(){return c().buttonText},
oneOffCustomTextWrap:function(){return c().oneOffCustomTextWrap},
formattedButtonText:function(){return c().formattedButtonText},
animatedTextProps:function(){return c().animatedTextProps}}))}}),_.B(_.K,{debugInstance:"DO5Rz",
cond:U,then:function(){return _.B(BJ,null,_.B("div",{class:X},x==null?void 0:x()))}}),_.B(_.K,{debugInstance:"bnojSc",
cond:f,then:function(){return _.B(BJ,null,_.B("div",{class:z},I==null?void 0:I()))}}),_.B(_.K,{debugInstance:"HN3kad",
cond:function(){return!c().disabled&&!0},
then:function(){return _.B(_.p4,{model:function(){return{color:xQT(c())}}})}}))},"q"),Yqd=_.y_(function(S){var c=function(){var Q,f;
return((Q=S.iconPosition)==null?void 0:Q.call(S))==="icon-with-label"||((f=S.oneOffCustomTextWrap)==null?void 0:f.call(S))};
return _.B("div",{class:S.className,"aria-hidden":function(){var Q,f,U;return((Q=S.ariaHidden)==null?void 0:Q.call(S))&&(!((f=S.animatedTextProps)==null||!f.call(S))||!((U=S.formattedButtonText)==null||!U.call(S)))}},_.B(_.DJ,null,_.B(_.YC,{when:function(){var Q;
return(Q=S.animatedTextProps)==null?void 0:Q.call(S)}},function(){return _.B(_.Kid,{numberText:function(){return S.animatedTextProps().numberText},
numberValue:function(){return S.animatedTextProps().numberValue},
heightPx:function(){return S.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return S.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return S.animatedTextProps().shouldAnimate},
forceRollUp:function(){return S.animatedTextProps().forceRollUp}})}),_.B(_.YC,{when:function(){var Q;
return(Q=S.formattedButtonText)==null?void 0:Q.call(S)}},function(){return _.B(_.mw,{text:function(){return Object.assign({},S.formattedButtonText(),{lineBreakMode:c()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":S.formattedButtonText().lineBreakMode,
alignment:c()?"TEXT_ALIGNMENT_CENTER":S.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!c()}})}),_.B(_.YC,{when:function(){var Q,f;
return((Q=S.iconPosition)==null?void 0:Q.call(S))==="icon-with-label"&&((f=S.text)==null?void 0:f.call(S))}},function(){return _.B(_.mw,{text:function(){return{content:S.text(),
lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}},
noLinkColor:!0,noWrap:!1})}),_.B(_.HY,null,function(){return S.text})))},"r"),Hg_=_.y_(function(S){return _.B(_.K,{debugInstance:"kM7Sgc",
cond:S.hasLabel,then:function(){var c;return _.B("label",{class:S.className},S.children,(c=S.textContent)==null?void 0:c.call(S))},
else:function(){return S.children}})},"s"),BJ=_.y_(function(S){return S.children},"t");var FZZ=Qi("stamper-context");var cZ=_.y_(function(S){var c=S.data;var Q=S.icon;var f=S.iconName;var U=S.secondaryIcon;var a=S.secondaryIconName;var X=S.focusedOverride;lXp();var z=Axx(c),x=z.size,I=z.style;S=z.disabled;var n=z.onTap,b=z.alignByText,N=z.aTagConfig,l=z.customColors,H=z.segmentedPosition,q=z.toggled,w=z.toggleable,g=z.accessibilityLabel,r=z.onToggle,E=z.iconPosition,v=z.oneOffCustomTextWrap,t=z.disableTextEllipsis,V=z.disableBackdropFilter,AZ=z.tooltipText,IH=z.ariaHidden,Nr=z.tabIndex,Hc=z.buttonText,qr=z.formattedButtonText,
wp=z.animatedTextProps,Pc=zmp(c,Q,U,f,a,X),ex=Pc.type;Q=Pc.shouldFocus;f=Pc.hasIconLeading;U=Pc.hasIconTrailing;var yd=Pc.hasIconLeadingTrailing,op=Pc.hasIconOnly;a=Pc.hasIconOnly40;var DT=Pc.hasIconWithLabel;X=Pc.iconButton;var B_=Pc.visiblyDisabled;z=Pc.overrideSmallSizeIcon;var zJ=Pc.iconToRender;Pc=Pc.secondaryIconToRender;var Qp={},xl={};return _.B(Hg_,{className:_.n4("yt-spec-button-shape-with-label",(Qp["yt-spec-button-shape-with-label--is-overlay"]=function(){return I()==="overlay"||I()===
"overlay-dark"},Qp)),
hasLabel:DT,textContent:function(){return _.B(Yqd,{text:Hc,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:v,iconPosition:E,formattedButtonText:qr,animatedTextProps:wp})}},_.B(lsi,{aTagConfig:N,
className:_.n4("yt-spec-button-shape-next",function(){return BzZ(ex())},function(){return B_()?void 0:IXZ(I())},function(){return nXH(x())},(xl["yt-spec-button-shape-next--disabled"]=B_,xl["yt-spec-button-shape-next--focused"]=Q,xl["yt-spec-button-shape-next--icon-trailing"]=U,xl["yt-spec-button-shape-next--icon-leading"]=f,xl["yt-spec-button-shape-next--icon-leading-trailing"]=yd,xl["yt-spec-button-shape-next--icon-leading-trailing-no-text"]=function(){return yd()&&!(Hc()||qr())},xl["yt-spec-button-shape-next--icon-button"]=
function(){return op()||DT()},xl["yt-spec-button-shape-next--icon-only-default"]=a,xl["yt-spec-button-shape-next--align-by-text"]=b,xl["yt-spec-button-shape-next--segmented-start"]=function(){return H()==="start"},xl["yt-spec-button-shape-next--segmented-end"]=function(){return H()==="end"},xl["yt-spec-button-shape-next--override-small-size-icon"]=z,xl["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=v,xl["yt-spec-button-shape-next--disable-text-ellipsis"]=t,xl["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=
function(){return!V()&&F7r()},xl)),
style:function(){return bZT(l()).style},
onClick:function(xZ){n==null||n(xZ);w()&&(r==null||r(xZ))},
disabled:S,ariaLabel:g,toggleable:w,toggled:q,title:function(){var xZ;return(xZ=AZ())!=null?xZ:""},
visiblyDisabled:B_,ariaHidden:IH,tabIndex:Nr},_.B(Cku,{data:c,hasIconLeading:f,hasIconLeadingTrailing:yd,hasIconTrailing:U,iconButton:X,icon:zJ,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:Pc})))},"u");
cZ.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var DzT=_.y_(function(S){var c=S.data;var Q=S.id;var f=S.hidden;var U=S.className;var a=S.iconName;var X=S.secondaryIconName;S=_.A(_.ny(!1,void 0,"RyKHFc"));var z=S.next().value,x=S.next().value,I=function(){var b=_.fl().resolve(_.QS(_.zy));b&&x(b.isKeyBoardInUse())},n=function(){x(!1)};
S=_.EH("yt-button-shape",function(b){if(_.fl().resolve(_.QS(_.zy)))return b.addEventListener("focusin",I),b.addEventListener("focusout",n),function(){b.removeEventListener("focusin",I);b.removeEventListener("focusout",n)}});
return _.B("yt-button-shape",{el:S,id:Q,class:U,hidden:f},_.B(_.K,{cond:c,then:function(){return _.B(cZ,{data:c,iconName:a,secondaryIconName:X,focusedOverride:z})}}))},"v");
_.u("web_wiz_button_shape")&&_.f4(DzT,"yt-button-shape",{props:{data:_.y$,id:_.y$,hidden:_.y$,className:_.y$,iconName:_.y$,secondaryIconName:_.y$},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss","disable-upgrade"])});var IQ=function(){var S=_.W.apply(this,arguments)||this;S.keyboardFocused=!1;return S};
_.C(IQ,_.W);IQ.prototype.onFocus=function(){var S=_.fl().resolve(_.QS(_.zy));S&&(this.keyboardFocused=S.isKeyBoardInUse())};
IQ.prototype.onBlur=function(){this.keyboardFocused=!1};
IQ.prototype.renderIdom=function(){var S=this;if(this.data){var c=H3(this.data,!!this.iconName),Q=OZY(this.data);this.data.focused=this.keyboardFocused;jeM(this.data,function(){var f;Tv("yt-icon",{icon:S.iconName,active:(f=S.data)==null?void 0:f.toggled,size:c,style:"width: "+c+"px; height: "+c+"px;",iconFilter:Q},Vi)},function(){var f;
Tv("yt-icon",{icon:S.secondaryIconName,active:(f=S.data)==null?void 0:f.toggled,size:c,style:"width: "+c+"px; height: "+c+"px;",iconFilter:Q},Vi)});
_.Az(this.hostElement,"yt-renderidom-finished")}};
_.Rh.Object.defineProperties(IQ,{template:{configurable:!0,enumerable:!0,get:function(){if(Fid===void 0){var S=document.createElement("template");_.D(S,"\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");
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(xzd().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(Ogl().content.cloneNode(!0),S.content.firstChild);Fid=S}S=Fid;return S}}});
IQ.prototype.onBlur=IQ.prototype.onBlur;IQ.prototype.onFocus=IQ.prototype.onFocus;_.d([_.p(Pbz),_.P("design:type",Object)],IQ.prototype,"ytIdomTemplatingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],IQ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],IQ.prototype,"iconName",void 0);_.d([_.Z(),_.P("design:type",String)],IQ.prototype,"secondaryIconName",void 0);_.d([_.Z(),_.P("design:type",Object)],IQ.prototype,"keyboardFocused",void 0);
_.d([_.FV("focusin"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IQ.prototype,"onFocus",null);_.d([_.FV("focusout"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IQ.prototype,"onBlur",null);_.d([_.wM({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.u("web_wiz_button_shape")})],IQ);_.f4(_.y_(function(S){function c(){Q().seconds&&a(gcz({seconds:Number(Q().seconds)-Date.now()/1E3}))}
var Q=S.targetTimestamp;S=S.className;var f=_.A(_.ny("",void 0,"U1Q8Ae")),U=f.next().value,a=f.next().value;_.qR(function(){c();var X=setInterval(function(){c()},1E3);
_.wX(function(){clearInterval(X)})});
return _.B("yt-countdown",{class:_.n4("ytCountDownHost",S)},_.B("div",null,U))},"w"),"yt-countdown",{props:{targetTimestamp:_.y$,
className:_.Qn}});_.Ze=_.y_(function(S){var c=S.data;var Q=S.className;var f=S.style;var U=S.useOutlinedIcon;var a=S.buttonOverrides;var X=S.animatedTextProps;var z=S.onClick;var x=_.EH("button-view-model",function(w){w.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var g=c().targetId;g&&_.o9d(_.Hb(),g,w);return function(){RTh(_.Hb(),w)}}),I=function(){return c().iconName},n,b=(n=_.fl().resolve(_.QS(_.Lv)))==null?void 0:n(),N=function(){var w=c();
var g=a==null?void 0:a(),r=X==null?void 0:X();if(w){var E=DQR(w.type);var v=!!w.title||!!w.titleFormatted;var t=!(!w.iconName&&!w.iconImage);v=t&&!v?"icon-only":t?w.iconTrailing||w.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;v==="icon-only-40"&&(E="text");var V,AZ=(V=g==null?void 0:g.disabled)!=null?V:w.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||w.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";V=Object;t=V.assign;var IH=w.title,Nr=w.titleFormatted;r=r&&r.numberText&&
!isNaN(Number(r.numberValue))?r:void 0;var Hc=w.accessibilityText,qr=HZo(w.style),wp=pko(w.state),Pc=hmp(w.buttonSize),ex=C$T(w,x,AZ,z);AZ=AZ&&!w.onDisabledTap;var yd=_.gH({elementsCommand:w.onTap,forceNewState:!0});yd=ew(yd)?yd:void 0;var op=w.customFontColor,DT=w.customBackgroundColor;var B_=w.customBorderColor;var zJ=w.customDarkThemeFontColor,Qp=w.customDarkThemeBackgroundColor,xl=w.customDarkThemeBorderColor;op=b&&zJ?zJ:op;DT=b&&Qp?Qp:DT;B_=b&&xl?xl:B_;B_={color:op?_.gh(op):void 0,backgroundColor:DT?
_.gh(DT):void 0,borderColor:B_?_.gh(B_):void 0};w=t.call(V,{},{buttonText:IH,formattedButtonText:Nr,animatedTextProps:r,accessibilityLabel:Hc,style:qr,type:E,state:wp,size:Pc,iconPosition:v,onTap:ex,disabled:AZ,aTagConfig:yd,customColors:B_,tooltipText:w.tooltip},g)}else w={style:"mono",type:"text",state:"active",size:"M"};w.focused=q();return w},l=function(){return H3(N(),!!c().iconName)};
S=_.A(_.ny(!1,void 0,"vxWDPb"));n=S.next().value;var H=S.next().value,q=n;S=_.$d(function(){var w=_.fl().resolve(_.QS(_.zy));w&&H(w.isKeyBoardInUse());return!1});
n=_.$d(function(){H(!1);return!1});
_.To(function(){var w,g=_.Y(c==null?void 0:(w=c())==null?void 0:w.onVisible,_.Zc);g&&_.WI(g,{disableClickTracking:!0})},"x3DHkf");
return _.B("button-view-model",{el:x,class:_.n4("yt-spec-button-view-model",Q),"on:focusin":S,"on:focusout":n},_.B(_.K,{cond:function(){var w;return(c==null?0:(w=c())==null?0:w.iconImage)?{sources:[c().iconImage]}:void 0},
then:function(w){return _.B(cZ,{data:N,icon:function(){return _.B(_.RW,{data:w,alt:"",targetWidth:l,targetHeight:l,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.B(cZ,{data:N,icon:function(){return _.B(_.C4,{icon:I,active:function(){return(U==null?0:U())?!1:N().toggled},
animateIcon:function(){var w;return!!(f==null?0:(w=f())==null?0:w.animateIcon)},
size:l})}})}}))},"x");
_.Ze.idomCompat={callbacks:{onClick:!0}};_.f4(_.y_(function(S){return _.B("yt-button-view-model",{id:S.id,class:_.n4(S.scopingClassName,S.classes),icon:function(){var c;return(c=S.icon)==null?void 0:c.call(S)},
"dialog-dismiss":function(){var c;return((c=S.dialogDismiss)==null?0:c.call(S))?"":void 0}},_.B(_.Ze,{data:function(){var c;
return(c=S.data)==null?void 0:c.call(S)},
className:function(){var c;return(c=S.className)==null?void 0:c.call(S)},
style:function(){var c;return(c=S.style)==null?void 0:c.call(S)},
useOutlinedIcon:function(){var c;return(c=S.useOutlinedIcon)==null?void 0:c.call(S)},
buttonOverrides:function(){var c;return(c=S.buttonOverrides)==null?void 0:c.call(S)},
animatedTextProps:function(){var c;return(c=S.animatedTextProps)==null?void 0:c.call(S)},
onClick:function(c){var Q;return(Q=S.onClick)==null?void 0:Q.call(S,c)}}))},"y"),"yt-button-view-model",{props:{data:_.y$,
className:_.y$,style:_.y$,useOutlinedIcon:_.y$,buttonOverrides:_.y$,animatedTextProps:_.y$,onClick:_.Qn,scopingClassName:_.y$,id:_.y$,icon:_.y$,dialogDismiss:_.y$,classes:_.y$}});var nm=function(){var S=_.W.apply(this,arguments)||this;S.isGoalActive=!0;return S};
_.C(nm,_.W);nm.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
nm.prototype.progressBarChanged=function(){var S=_.Ur(this.hostElement).querySelector("#progress-bar-progress"),c,Q,f,U=(f=Number((c=this.creatorGoalState)==null?void 0:c.currentGoalCount)/Number((Q=this.creatorGoalState)==null?void 0:Q.totalGoalCount)*100)!=null?f:0,a;S.style.width=((a=Math.min(U,100))!=null?a:0)+"%"};
nm.prototype.goalStateChanged=function(){var S;this.isGoalActive=((S=this.creatorGoalState)==null?void 0:S.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var c;S={"--yt-progress-bar-color":EbY((c=this.creatorGoalState)==null?void 0:c.progressBarColor)};_.Or(this.hostElement,S)};
nm.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.Rh.Object.defineProperties(nm.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var S;return this.isGoalActive&&!((S=this.creatorGoalState)==null||!S.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.creatorGoalState)==null?0:S.endTimestampMs){var c;S=Number((c=this.creatorGoalState)==null?void 0:c.endTimestampMs)/1E3;return{seconds:String(S)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.creatorGoalState)==null?0:S.themedTargetImage){var c;S=_.Y((c=this.creatorGoalState)==null?void 0:c.themedTargetImage,xis);return this.isAppDarkTheme()?S==null?void 0:S.imageDark:S==null?void 0:S.imageLight}}}});
_.Rh.Object.defineProperties(nm,{template:{configurable:!0,enumerable:!0,get:function(){return vb$()}}});
nm.prototype.goalStateChanged=nm.prototype.goalStateChanged;nm.prototype.progressBarChanged=nm.prototype.progressBarChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],nm.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nm.prototype,"ytRendererBehavior",void 0);
_.d([_.Z({selectorArgs:["data.creatorGoalEntityKey"],selector:function(S,c){return _.FT(S.entities,"creatorGoalEntity",c)}}),
_.P("design:type",Object)],nm.prototype,"creatorGoalState",void 0);_.d([_.Z(),_.P("design:type",Object)],nm.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],nm.prototype,"isGoalActive",void 0);_.d([_.M("creatorGoalState","isGoalActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],nm.prototype,"shouldShowCountdown",null);_.d([_.M("creatorGoalState"),_.P("design:type",Object),_.P("design:paramtypes",[])],nm.prototype,"endTimestamp",null);
_.d([_.M("creatorGoalState"),_.P("design:type",Object),_.P("design:paramtypes",[])],nm.prototype,"targetIconThemedImage",null);_.d([_.B0("creatorGoalState.currentGoalCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nm.prototype,"progressBarChanged",null);_.d([_.B0("creatorGoalState.creatorGoalState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nm.prototype,"goalStateChanged",null);
_.d([_.wM({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],nm);_.k(nm,"yt-creator-goal-progress-flow-view-model",function(){return vb$()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var pwp;var hwd;var bv=function(){return _.W.apply(this,arguments)||this};
_.C(bv,_.W);bv.prototype.attached=function(){var S,c,Q;if(this==null?0:(S=this.data)==null?0:(c=S.pdgPurchasedBumperLoggingDirectives)==null?0:(Q=c.loggingDirectives)==null?0:Q.trackingParams){var f,U,a;wkz(this==null?void 0:(f=this.data)==null?void 0:(U=f.pdgPurchasedBumperLoggingDirectives)==null?void 0:(a=U.loggingDirectives)==null?void 0:a.trackingParams)}};
bv.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],bv.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bv.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],bv);
_.k(bv,"yt-live-chat-item-bumper-view-model",function(){if(hwd===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;pwp===void 0&&(pwp=document.createElement("template"));var f=pwp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);hwd=S}S=hwd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var qq_;var Tt$;_.Vn=function(S,c){this.data=S;this.actions=c;this.data=S;this.actions=c};
_.kd=function(){};_.Nc={};_.Nc.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(S,c){seZ(this.hostElement,S,c)},
getNavigationEndpointPopupAction:function(S){return MFM(S,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(S,c){iZM(this.hostElement,S,c,this.openPopupConfig)}};var P$H=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.Km={};
_.Km.YtEndpointBehavior=[_.Nc.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.WY("openPopupConfig");(this.useClickHandler=_.gC("useClickHandler",!1))?this.hostElement.addEventListener("click",z4(this,this.onEndpointClick_)):(qm(this.hostElement,"tap",z4(this,this.onEndpointTap_)),qm(this.hostElement,"touchend",z4(this,this.onEndpointTouchEnd_)));qm(this.hostElement,"touchstart",z4(this,this.onEndpointTapStart_));this.hostElement.addEventListener("mousedown",
z4(this,this.onEndpointTapStart_))},
onEndpointClick_:function(S){W7x(this.hostElement,S,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(S){var c=this.hostElement,Q=this.openPopupConfig,f=this.disableCommandHandlerOverride;f=f===void 0?!1:f;var U=ZZp(S);if(U){U.href&&rh(U.href);var a=S.detail;var X=a.sourceEvent;a=a.preventer;X=X.button!==void 0?X.button===0&&!Ts(X):a?!Ts(a):!0;U.data&&X&&GPR(c,U,S,Q,f)}},
onEndpointTouchEnd_:function(S){Ts(S)||ZZp(S)&&S.preventDefault()},
onEndpointTapStart_:function(S){dQc(S)}}];var L7Z="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),tFM=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var wwe={};wwe.YtPlaintextBehavior=[_.lc,{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(S){S.preventDefault();S=S.clipboardData.getData("text/plain");document.execCommand("insertText",!1,S)},
preventRichTextFormatting_:function(S){_.NJ&&(S=S.detail.keyboardEvent,S.stopImmediatePropagation(),S.preventDefault())}}];var s3i;var Mos;var $J=function(){var S=_.W.apply(this,arguments)||this;S.ignoreShadyDom=!1;S.hasChange_=!1;S.hasSetTitle_=!1;S.useIOObserverForVisibilityLogging_=_.u("kevlar_use_vimio_behavior")&&_.WY("INNERTUBE_CLIENT_NAME")==="WEB";S.ytFormattedStringObserverHandlerKeys_=void 0;return S};
_.C($J,_.W);_.J=$J.prototype;_.J.created=function(){this.useIOObserverForVisibilityLogging_=_.u("kevlar_use_vimio_behavior")&&_.WY("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.J.ready=function(){_.WY("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_()};
_.J.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.J.detached=function(){this.unobserveIOObservers_()};
_.J.clearContents_=function(){for(var S=this.getRoot(),c=S.lastChild;c&&c.tagName!=="STYLE";){try{S.removeChild(c)}catch(Q){break}c=S.lastChild}};
_.J.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var S=_.A(this.ytFormattedStringObserverHandlerKeys_),c=S.next();!c.done;c=S.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(c.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.J.resetForAttributedString=function(){var S=this.getRoot();!S.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),S.appendChild(this.ytAttributedStringElementRef))};
_.J.resetForFormattedString=function(){var S=this.getRoot(),c=S.querySelector("yt-attributed-string");c&&(this.ytAttributedStringElementRef=S.removeChild(c))};
_.J.textChanged=function(){this.textChanged_(this.text)};
_.J.textChanged_=function(S){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!S||!S.runs&&!S.simpleText;if(_.u("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var c=this.hostElement.firstChild;c&&c.nodeName==="FONT";){var Q=c;c=c.nextSibling;this.hostElement.removeChild(Q)}c=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
Q=S.simpleText;var f;!Q&&((f=S.runs)==null?void 0:f.length)===1&&this.isSimpleString_(S.runs[0])&&(Q=S.runs[0].text);Q!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.WY("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(Q!==void 0){try{c.textContent=Q}catch(U){}c.textContent||(this.isEmpty=!0)}else S=S.runs,Q!==void 0&&(S=[{text:Q}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),S&&this.updateText_(S),
c.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.J.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)};
_.J.computeAriaLabel_=function(S){return S};
_.J.computeEllipsisTruncateStyling=function(S,c){return S&&!c};
_.J.computeUseAttributedString=function(S){return _.u("web_replace_formatted_with_attributed_string")&&OgY(S)&&!this.disableAttributedString&&!this.enableContentEditable};
_.J.setNodeStyle_=function(S,c){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.u("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?c.removeAttribute("dir"):c.setAttribute("dir","auto");c.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");c.style.color="";var Q=null;this.noStyles||(S.bold&&(c.classList.add("bold"),Q="bold"),S.deemphasize&&(c.classList.add("deemphasize"),Q="deemphasize"),S.italics&&c.classList.add("italic"),
S.strikethrough&&c.classList.add("strikethrough"),S.errorUnderline&&(c.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),S.bracket&&c.classList.add("bracket"),S.textColor&&(c.style.color=_.WV(S.textColor)));Q!==c.getAttribute("style-target")&&(Q?c.setAttribute("style-target",Q):c.removeAttribute("style-target"))};
_.J.setUpVisibilityLogging_=function(S,c){var Q=this;this.setNodeTrackingParams_(S,c);var f;((f=c.data)==null?0:f.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(S=this.ytRendererBehavior.visibilityObserver.observe(c,function(U){var a=Q.ytRendererBehavior.getVisibilityLogger();a&&a.reportShown(U)},this.ytRendererBehavior.visibilityOptionVisible_),c=this.ytRendererBehavior.visibilityObserver.observe(c,function(U){var a=Q.ytRendererBehavior.getVisibilityLogger();
a&&a.reportHidden(U)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(S),this.ytFormattedStringObserverHandlerKeys_.push(c))};
_.J.setNodeTrackingParams_=function(S,c){c.data||(c.data={});if((S=S.loggingDirectives?S.loggingDirectives.trackingParams:null)||c.data.trackingParams)c.data.trackingParams=S};
_.J.computeHasLinkOnly_=function(S){return!(!S||S.length!==1||this.noEndpoints||!S[0].navigationEndpoint)};
_.J.getRoot=function(){var S=this.buildScopeDomOptions();return this.enableContentEditable?_.Ur(_.Ur(this.hostElement,S).querySelector("[contenteditable]")):_.Ur(this.hostElement,S)};
_.J.fixContenteditableScope=function(){var S=function(c){c&&(c.nodeType===1&&c.classList&&(c.classList.add("style-scope"),c.classList.add("yt-formatted-string")),c.childNodes&&c.childNodes.forEach(function(Q){S(Q)}))};
S(this.getRoot())};
_.J.updateText_=function(S){for(var c=S.length,Q=this.getRoot(),f=Q.firstChild;f&&f.nodeName==="STYLE";)f=f.nextSibling;for(var U=0;U<c&&f;){var a=S[U],X=_.u("remove_cr_char")&&a.text?a.text.replace("\r",""):a.text;if(this.isSimpleString_(a)&&!this.useMixedDirectionFormattedStrings)if(f.nodeName==="#text"){f.textContent!=X&&(f.textContent=X);U++;f=f.nextSibling;continue}else break;if(_.Y(a,MK))break;else if(!this.noEndpoints&&a.navigationEndpoint){if(f.nodeName!=="A")break;this.setDataOnAnchor_(f,
a.navigationEndpoint)}else if(f.nodeName!=="SPAN")break;this.setNodeStyle_(a,f);this.setUpVisibilityLogging_(a,f);f.textContent!=X&&(f.textContent=X);U++;f=f.nextSibling}if(f)for(a=Q.lastChild,f=U?f.previousSibling:null;a&&a!=f;){try{Q.removeChild(a)}catch(z){break}a=Q.lastChild}U!==c&&this.addTextNodes_(S,U)};
_.J.addTextNodes_=function(S,c){for(var Q=document.createDocumentFragment(),f=S.length;c<f;c++){var U=S[c],a=_.u("remove_cr_char")&&U.text?U.text.replace("\r",""):U.text;if(this.isSimpleString_(U)&&!this.useMixedDirectionFormattedStrings)Q.appendChild(document.createTextNode(a));else{var X=_.Y(U,MK);if(X){if(X.image){var z=document.createElement("img");X.isCustomEmoji||z.classList.add("small-emoji");z.classList.add("emoji");X.isCustomEmoji&&(z.dataset.emojiId=X.emojiId);z.src=_.U2(X.image.thumbnails,
this.emojiSize);(U=this.get("image.accessibility.accessibilityData.label",X))?z.alt=U:X.shortcuts&&X.shortcuts.length>0?z.alt=X.shortcuts[0]:X.emojiId&&(z.alt=X.emojiId);Q.appendChild(z);this.hasEmoji=!0}}else!this.noEndpoints&&U.navigationEndpoint?(z=document.createElement("a"),z.classList.add("yt-simple-endpoint"),z.setAttribute("spellcheck","false"),this.setDataOnAnchor_(z,U.navigationEndpoint)):z=document.createElement("span"),this.setNodeStyle_(U,z),this.setUpVisibilityLogging_(U,z),z.appendChild(document.createTextNode(a)),
Q.appendChild(z)}}this.getRoot().appendChild(Q)};
_.J.isSimpleString_=function(S){return(this.noEndpoints||!S.navigationEndpoint)&&!_.Y(S,MK)&&(this.noStyles||!(S.bold||S.deemphasize||S.italics||S.strikethrough||S.errorUnderline||S.bracket||S.textColor))&&!S.loggingDirectives};
_.J.getRawText=function(){return _.Em(this.text)};
_.J.getFirstRunText=function(){var S;if(((S=this.text)==null?0:S.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.J.setFirstRunText=function(S){var c;((c=this.text)==null?0:c.runs)&&this.text.runs[0]&&(this.text.runs[0].text=S,this.textChanged_(this.text))};
_.J.setDataOnAnchor_=function(S,c){var Q=this;!_.u("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(c)||this.isSignalServiceEndpoint_(c)?(S.onclick=this.serviceEndpointHandler_(c),DQ(S,"#")):THZ({text:this.text,command:c},function(){dKz(S,c,Q.target)})};
_.J.isServiceEndpoint_=function(S){var c;return!((c=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null||!c.sendPost)};
_.J.isSignalServiceEndpoint_=function(S){return!!_.Y(S,_.b2)};
_.J.serviceEndpointHandler_=function(S){var c=this;return function(Q){_.xt(c.hostElement,[S]);Q.preventDefault()}};
_.J.overrideAriaLabelChanged_=function(){var S=this.getRoot();this.enableContentEditable&&S&&S.setAttribute("aria-label",this.overrideAriaLabel)};
_.J.enableContentEditableChanged_=function(){var S=this,c=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),c=_.Ur(this.hostElement,c),!c.lastChild||c.lastChild instanceof HTMLElement&&c.lastChild.id!=="contenteditable-root"){var Q=document.createElement("div");Q.id="contenteditable-root";Q.setAttribute("contenteditable","true");Q.setAttribute("dir","auto");Q.onfocus=function(){S.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
c.appendChild(Q);this.overrideAriaLabel&&Q.setAttribute("aria-label",this.overrideAriaLabel)}}else Q=_.Jq(this.hostElement).firstChild,Q instanceof HTMLElement&&Q.id==="contenteditable-root"&&_.Ur(this.hostElement,c).removeChild(Q)};
_.J.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.J.getNodesForVisibilityLogging_=function(){return _.z1(this.getRoot().childNodes,function(S){var c;return!((c=S.data)==null||!c.trackingParams)})};
_.J.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.J.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var S=this.ytRendererBehavior.getVisibilityLogger();S&&this.getNodesForVisibilityLogging_().forEach(function(c){S.reportShown(c)})}};
_.J.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var S=this.ytRendererBehavior.getVisibilityLogger();S&&this.getNodesForVisibilityLogging_().forEach(function(c){S.reportHidden(c)})}};
_.Rh.Object.defineProperties($J.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.u("enable_mixed_direction_formatted_strings")}}});
$J.prototype.enableContentEditableChanged_=$J.prototype.enableContentEditableChanged_;$J.prototype.overrideAriaLabelChanged_=$J.prototype.overrideAriaLabelChanged_;$J.prototype.ellipsisTruncateChanged_=$J.prototype.ellipsisTruncateChanged_;$J.prototype.textChanged=$J.prototype.textChanged;_.d([_.p(wwe.YtPlaintextBehavior),_.P("design:type",Object)],$J.prototype,"ytPlaintextBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],$J.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$J.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$J.prototype,"text",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"noEndpoints",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"noStyles",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$J.prototype,"isDarkTheme",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],$J.prototype,"splitLines",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$J.prototype,"forceDefaultStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$J.prototype,"ellipsisTruncate",void 0);_.d([_.Z(),_.P("design:type",Object)],$J.prototype,"ignoreShadyDom",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.P("design:type",Boolean)],$J.prototype,"ellipsisTruncateStyling",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.P("design:type",String)],$J.prototype,"ariaLabel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$J.prototype,"isEmpty",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.P("design:type",Boolean)],$J.prototype,"hasLinkOnly_",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"hasEmoji",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"disableAttributedString",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"isOverlay",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"linkInheritColor",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"noPreWrap",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"userInput",void 0);_.d([_.Z({value:16}),_.P("design:type",Number)],$J.prototype,"emojiSize",void 0);_.d([_.Z(),_.P("design:type",String)],$J.prototype,"target",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"enableContentEditable",void 0);_.d([_.Z(),_.P("design:type",String)],$J.prototype,"overrideAriaLabel",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"respectHtmlDir",void 0);_.d([_.Z(),_.P("design:type",Boolean)],$J.prototype,"respectLangDir",void 0);_.d([_.M("plaintextOnly"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$J.prototype,"useMixedDirectionFormattedStrings",null);_.d([_.Z({computed:"computeUseAttributedString(text)"}),_.P("design:type",Boolean)],$J.prototype,"useYtAttributedString",void 0);
_.d([_.B0("text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$J.prototype,"textChanged",null);_.d([_.B0("ellipsisTruncate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$J.prototype,"ellipsisTruncateChanged_",null);_.d([_.B0("overrideAriaLabel"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$J.prototype,"overrideAriaLabelChanged_",null);
_.d([_.B0("enableContentEditable"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$J.prototype,"enableContentEditableChanged_",null);_.d([_.wM({is:"yt-formatted-string",disableElementRegistration:!0})],$J);
_.k($J,"yt-formatted-string",function(){if(Mos===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;s3i===void 0&&(s3i=document.createElement("template"));var f=s3i;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Mos=S}S=Mos;return S});var igi;var Zgs;var GAe;var Wi_;var uv=function(){var S=_.W.apply(this,arguments)||this;S.focused=!1;S.disabled=!1;S.isOverlay=!1;return S};
_.C(uv,_.W);uv.prototype.triggerDown=function(){if(!this.disabled){_.a1(this.hostElement,"down",!0);var S;(S=this.currentAnimation)==null||S.cancel()}};
uv.prototype.triggerUp=function(){if(!this.disabled){_.a1(this.hostElement,"down",!1);var S=this.fillElement;var c=this.strokeElement;typeof GroupEffect==="function"?(S=new GroupEffect([UQr(S),Jxz(c)]),S=new Animation(S,document.timeline)):S=new $zl(S,c);this.currentAnimation=S;var Q;(Q=this.currentAnimation)==null||Q.play()}};
_.d([_.nU(".stroke"),_.P("design:type",HTMLElement)],uv.prototype,"strokeElement",void 0);_.d([_.nU(".fill"),_.P("design:type",HTMLElement)],uv.prototype,"fillElement",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uv.prototype,"focused",void 0);_.d([_.Z(),_.P("design:type",Object)],uv.prototype,"disabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uv.prototype,"isOverlay",void 0);_.d([_.wM({is:"yt-interaction",disableElementRegistration:!0})],uv);
_.k(uv,"yt-interaction",function(){if(Wi_===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;GAe===void 0&&(GAe=document.createElement("template"));var f=GAe;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Wi_=S}S=Wi_;return S},{mode:2});var jI=function(){return _.W.apply(this,arguments)||this};
_.C(jI,_.W);_.J=jI.prototype;_.J.ready=function(){var S=this,c=_.Ur(this.hostElement).querySelector("#button");c.addEventListener("focus",function(){aru||(aru=new J7H);S.keyboardFocused=aru.isKeyBoardInUse()});
c.addEventListener("blur",function(){S.keyboardFocused=!1;S.rippleUp_()})};
_.J.computeTabIndex_=function(S){return S?-1:0};
_.J.computeButtonAriaPressed_=function(S){if(this.toggleable)return S?"true":"false"};
_.J.rippleDown_=function(){_.Ur(this.hostElement).querySelector("#interaction").triggerDown()};
_.J.rippleUp_=function(){_.Ur(this.hostElement).querySelector("#interaction").triggerUp()};
_.J.onPressedChanged_=function(){var S=_.Jq(_.Ur(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Jq(_.Ur(this.hostElement).querySelector("#button")).children[0];S&&(S.active=this.pressed)};
jI.prototype.onPressedChanged_=jI.prototype.onPressedChanged_;jI.prototype.rippleUp_=jI.prototype.rippleUp_;jI.prototype.rippleDown_=jI.prototype.rippleDown_;_.d([_.Z(),_.P("design:type",String)],jI.prototype,"label",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],jI.prototype,"disabled",void 0);_.d([_.Z(),_.P("design:type",Boolean)],jI.prototype,"pressed",void 0);_.d([_.Z(),_.P("design:type",Object)],jI.prototype,"toggleable",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],jI.prototype,"untabbable",void 0);_.d([_.Z(),_.P("design:type",Boolean)],jI.prototype,"keyboardFocused",void 0);_.d([_.FV("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jI.prototype,"rippleDown_",null);_.d([_.FV("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jI.prototype,"rippleUp_",null);
_.d([_.B0("pressed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jI.prototype,"onPressedChanged_",null);_.d([_.wM({is:"yt-icon-button",disableElementRegistration:!0})],jI);
_.k(jI,"yt-icon-button",function(){if(Zgs===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;igi===void 0&&(igi=document.createElement("template"));var f=igi;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Zgs=S}S=Zgs;return S},{mode:2});var gIl=_.oK(["aria-"]),lv={};lv.YtRenderButtonBehavior=[_.m.YtRendererBehavior,_.Km.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!!_.fl().resolve(_.QS(_.zy))&&_.u("kevlar_keyboard_button_focus")},
reflectToAttribute:!0},keyboardFocused:{type:Boolean,value:!1,reflectToAttribute:!0},startJustified:{type:Boolean,value:!1,reflectToAttribute:!0},forceIconButton:{type:Boolean,value:!1},forceIconOnly:{type:Boolean,value:!1},styleActionButton:{type:Boolean,reflectToAttribute:!0},verticallyAligned:{type:Boolean,value:!1,reflectToAttribute:!0},noink:{type:Boolean,value:!1},showTooltips:{type:Boolean,value:!1},buttonRaised:{type:Boolean,value:!1},disabled:{type:Boolean,observer:"disabledChanged_",reflectToAttribute:!0},
sendServiceEndpointWhenDisabled:{type:Boolean,value:!1},sendCommandWhenDisabled:{type:Boolean,value:!1},ellipsisTruncate:Boolean,buttonTooltipPosition:{type:String,value:"bottom"},buttonSize:{type:String,reflectToAttribute:!0},endpoint:{type:Object,readOnly:!0},serviceEndpoint:{type:Object,readOnly:!0},command:{type:Object,readOnly:!0},buttonIcon:{type:String,readOnly:!0,observer:"buttonIconChanged_"},buttonText:{type:Object,readOnly:!0},buttonAccessibility:{type:Object,readOnly:!0},buttonTooltip:{type:String,
readOnly:!0},buttonClass:{type:String,readOnly:!0,observer:"buttonClassChanged_"},iconPositionType:{type:String,readOnly:!0,observer:"iconPositionTypeChanged_"},iconSize:{type:Number},stampType_:{type:String,computed:"computeStampType_(forceIconButton, buttonText, buttonIcon, endpoint)",observer:"stampTypeChanged_"},componentReady_:Boolean},listeners:{focusin:"onFocus_",focusout:"onBlur_",mouseenter:"addTooltips_",tap:"onYtButtonTap_"},observers:["isDisabledChanged_(data.isDisabled)","observeBasicPalette_(data.colorData.basicColorPaletteData)",
"dataChanged_(data, componentReady_)","isSelectedChanged_(data)"],created:function(){this.elements_={};this.hasChange_=!1},
attached:function(){this.hasChange_&&this.stampTypeChanged_(this.stampType_);this.keyboardFocused=!1},
get container(){return this.root},onYtButtonTapHandler:function(){},
ytButtonServiceEndpointHandler:function(){},
updateRenderedElements:function(){if(this.elements_.endpoint){this.elements_.endpoint.data=this.endpoint;var S=this.computeHref_(this.endpoint,!0);S?DQ(this.elements_.endpoint,S):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){S=this.buttonClass.split(" ");S=_.A(S);for(var c=S.next();!c.done;c=S.next())c=c.value,_.a1(this.hostElement,c,!0),this.elements_.button&&_.a1(this.elements_.button,c,!0),this.elements_.text&&_.a1(this.elements_.text,c,!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&&(S=null,this.buttonAccessibility&&(S=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=S:S?_.r_([_.SC(gIl)],this.elements_.button,"aria-label",S):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var S=_.fl().resolve(_.QS(_.zy));S&&(this.keyboardFocused=S.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.fm("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,_.YU(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.YU(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(S,c){if(c)for(S=c.split(" "),S=_.A(S),c=S.next();!c.done;c=S.next())c=c.value,_.a1(this.hostElement,c,!1),this.elements_.button&&_.a1(this.elements_.button,c,!1),this.elements_.text&&_.a1(this.elements_.text,c,!1)},
buttonIconChanged_:function(S){this.elements_.icon?S?(this.elements_.icon.icon=S,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.YU(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Aq(this.hostElement,"is-paper-button-with-icon",!1)):S&&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"&&_.YU(this.elements_.button).appendChild(this.elements_.icon):_.YU(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Aq(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(S){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,S){var c=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(S){case "yt_icon_button_with_label":c=!0;_.a1(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();S=_.YU(this.elements_.button).firstElementChild;
this.elements_.icon=S;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.YU(this.elements_.endpoint).appendChild(this.elements_.button);_.YU(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.fm("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;_.YU(this.elements_.button).appendChild(this.elements_.text);_.YU(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":c=!0,this.elements_.button=this.getYtIconButton_(),S=_.YU(this.elements_.button).firstElementChild,this.elements_.icon=S,this.setIconActive_(this.elements_.icon),
_.YU(this.elements_.endpoint).appendChild(this.elements_.button)}_.Aq(this.hostElement,"is-icon-button",c);_.Aq(this.hostElement,"is-paper-button",!c);_.Aq(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 Q;_.Ur((Q=this.container.hostElement)!=null?Q:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.YU(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(S){if(S!=void 0||this.disabled)this.disabled=S,this.elements_.button&&(this.elements_.button.disabled=S)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(S){_.u("kevlar_system_icons")&&S&&this.data&&(this.data.isSelected!==void 0?S.active=this.data.isSelected:this.data.isToggled!==void 0&&(S.active=this.data.isToggled))},
observeBasicPalette_:function(S){_.s2(this.hostElement,S)},
disabledChanged_:function(S){this.data&&this.set("data.isDisabled",S)},
onYtButtonTap_:function(S){if(this.disabled)S.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.xt(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(S=this.disableCommandHandlerOverride,!this.data||!this.data.command||S||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.u("handle_service_request_actions")||_.xt(this.hostElement,[this.serviceEndpoint]),
_.Az(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.u("handle_service_request_actions")?(S=[],this.serviceEndpoint&&S.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&S.push(this.data.command),S.length&&_.FF(this.hostElement,S,this.hostElement)):this.data&&this.data.command&&(S=this.data.command,S.accountUnlinkCommand||S.accountLinkCommand||S.insertAdCommand||S.insertHighlightMarkerCommand||
S.createLivestreamHighlightClipCommand||S.getVideoUploadFeedbackCommand||S.musicDeletePrivatelyOwnedEntityCommand||S.ypcCancelRecurrenceEndpoint||S.getMultiSelectCommandEndpoint?_.xt(this.hostElement,[S]):_.FF(this.hostElement,[S],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 S,c=_.Ur((S=this.container.hostElement)!=null?S:this.container);c.lastChild&&c.lastChild.tagName!="STYLE";)try{c.removeChild(c.lastChild)}catch(Q){break}},
getYtIconButton_:function(){var S=this.reuseEnabled_()?_.fm("yt-icon-button"):document.createElement("yt-icon-button"),c=_.YU(S).firstElementChild;if(c&&c.is!="yt-icon"){for(c=_.YU(S);c.lastChild;)c.removeChild(c.lastChild);c=null}c||(c=this.getIcon_(),this.setIconActive_(c),_.YU(S).appendChild(c));return S},
reuseEnabled_:function(){return _.u("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.fm("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.fm("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.ewi={};
_.ewi.YtButtonBehavior=[lv.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var S=this.data;S&&(this._setEndpoint(this.computeEndpoint_(S)),this._setServiceEndpoint(this.computeServiceEndpoint_(S)),this._setCommand(this.computeCommand_(S)),this._setButtonIcon(this.computeButtonIcon_(S)),this._setButtonText(this.computeButtonText_(S,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(S)),this._setButtonTooltip(this.computeTooltip_(S)),this._setButtonClass(this.computeButtonClass_(S)),this._setIconPositionType(this.computeIconPositionType_(S)),this.updateRenderedElements())},
setPressedState:function(S){var c;if((c=this.elements_)==null?0:c.button)this.elements_.button.pressed=!!S},
computeIconPositionType_:function(S){return S&&S.iconPosition||null},
computeEndpoint_:function(S){var c=S&&S.navigationEndpoint,Q=this.get("data.command.commandMetadata.webCommandMetadata.url"),f=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:S&&S.command&&S.command.modalEndpoint?S.command:Q&&!f&&S.command?S.command:null},
computeServiceEndpoint_:function(S){var c=S&&S.serviceEndpoint,Q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:Q&&S.command?S.command:null},
computeCommand_:function(S){return S&&S.command||null},
computeButtonIcon_:function(S){return S&&S.icon&&S.icon.iconType?_.xz(S.icon.iconType):null},
computeButtonText_:function(S,c){return!c&&S&&S.text||null},
computeAccessibility_:function(S){return this.get("accessibilityData.accessibilityData",S)||S&&S.accessibility||(S&&S.text?{label:this.getSimpleString(S.text)}:null)},
computeTooltip_:function(S){return S?S.isDisabled&&S.disabledTooltip||S.tooltip||null:null},
computeButtonClass_:function(S){var c=S&&S.style?S.style.toLowerCase().replace(/_/g,"-")+" ":"";c+=S&&S.size?S.size.toLowerCase().replace(/_/g,"-")+" ":"";S.colorData&&S.colorData.basicColorPaletteData&&S.colorData.basicColorPaletteData.borderColor&&(c+="palette-with-border");return c.trim()}}];var Mo={};var kAd;var r_d;var dz$,vIJ=function(){return dz$!==void 0?dz$:dz$=document.createElement("template")};
document.head.appendChild(vIJ().content);var Pkp;var Liz,EId=function(){return Liz!==void 0?Liz:Liz=document.createElement("template")};
document.head.appendChild(EId().content);var to_;var Voe,RwH=function(){return Voe!==void 0?Voe:Voe=document.createElement("template")};
document.head.appendChild(RwH().content);var y_d;var oIu=document.head,mzJ=oIu.appendChild,SFT;if(y_d===void 0){var cQh=document.createElement("template");_.D(cQh,"\x3c!--css-build:shady--\x3e");cQh.content.insertBefore(RwH().content.cloneNode(!0),cQh.content.firstChild);y_d=cQh}SFT=y_d;mzJ.call(oIu,SFT.content);var QOu=document.head,ful=QOu.appendChild,UX_;if(to_===void 0){var JQT=document.createElement("template");_.D(JQT,"\x3c!--css-build:shady--\x3e");JQT.content.insertBefore(EId().content.cloneNode(!0),JQT.content.firstChild);to_=JQT}UX_=to_;ful.call(QOu,UX_.content);var auz=document.head,AQ$=auz.appendChild,XDH;if(Pkp===void 0){var O5i=document.createElement("template");_.D(O5i,"\x3c!--css-build:shady--\x3e");O5i.content.insertBefore(vIJ().content.cloneNode(!0),O5i.content.firstChild);Pkp=O5i}XDH=Pkp;AQ$.call(auz,XDH.content);var zAl;_.i8("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");zAl=_.u("web_button_rework")&&_.gC("BUTTON_REWORK")||_.u("web_button_rework_with_live");_.YJ=function(){return _.W.apply(this,arguments)||this};
_.C(_.YJ,_.W);_.YJ.prototype.created=function(){this.openPopupConfig=_.WY("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.YJ.prototype.onYtNavigate_=function(S){var c=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);c&&(this.ytOpenPopupBehavior.openPopup(c),S.stopPropagation(),S.preventDefault())};
_.Rh.Object.defineProperties(_.YJ,{template:{configurable:!0,enumerable:!0,get:function(){if(r_d===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;kAd===void 0&&(kAd=document.createElement("template"));var f=kAd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);r_d=S}S=r_d;return S}}});
_.YJ.prototype.onYtNavigate_=_.YJ.prototype.onYtNavigate_;_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],_.YJ.prototype,"ytOpenPopupBehavior",void 0);_.d([_.p(_.ewi.YtButtonBehavior),_.P("design:type",Object)],_.YJ.prototype,"ytButtonBehavior",void 0);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],_.YJ.prototype,"onYtNavigate_",null);
_.d([_.wM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:zAl})],_.YJ);var xXp;var FP_=_.u("web_button_rework")&&_.gC("BUTTON_REWORK")||_.u("web_button_rework_with_live"),Cm=function(){var S=_.W.apply(this,arguments)||this;S.isPressed=!1;S.forceIconButton=!1;S.forceIconOnly=!1;S.forceModernIconButton=!1;S.skipCommandHandling=!1;S.alignByText=!1;S.fitToVisibleBounds=!0;S.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};S.onTap=function(c){_.Az(S.hostElement,"yt-service-request-sent-button-renderer",c)};
return S};
_.C(Cm,_.W);_.J=Cm.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.J.onClick=function(S){var c,Q=this.disabled||((c=this.data)==null?void 0:c.isDisabled);c=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");Q&&c&&S.stopPropagation()};
_.J.computeIcon=function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.icon)==null?void 0:c.iconType;if(Q)return _.xz(Q)};
_.J.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.J.handleUpdateButtonAction=function(S){S=_.Y(S,gHi);var c=_.Y(S==null?void 0:S.updatedButton,_.GF);if(this.data&&S&&c){var Q=this.data;Q.targetId&&S.targetId&&Q.targetId===S.targetId&&(this.data=c)}};
_.Rh.Object.defineProperties(Cm.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var S=this;if(this.data){var c=SlR({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.Az(S.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.Az(S.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});c.alignByText=this.alignByText;return c}}}});
_.Rh.Object.defineProperties(Cm,{template:{configurable:!0,enumerable:!0,get:function(){if(xXp===void 0){var S=document.createElement("template");_.D(S,'\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>');xXp=S}S=xXp;return S}}});
Cm.prototype.onClick=Cm.prototype.onClick;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Cm.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Cm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Cm.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"isPressed",void 0);
_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"forceIconButton",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"forceIconOnly",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"forceModernIconButton",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"skipCommandHandling",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"alignByText",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"buttonTooltipPosition",void 0);
_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"fitToVisibleBounds",void 0);_.d([_.Z({computed:"computeTooltip(data)"}),_.P("design:type",Object)],Cm.prototype,"tooltip",void 0);_.d([_.Z(),_.P("design:type",Object)],Cm.prototype,"overrides",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Cm.prototype,"disabled",void 0);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Cm.prototype,"onClick",null);
_.d([_.M("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cm.prototype,"computedButtonShape",null);_.d([_.wM({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!FP_,cssBuildOptOut:!0}),_.wM({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!FP_,cssBuildOptOut:!0})],Cm);var Bvi;var Iup;var HJ=function(){var S=_.W.apply(this,arguments)||this;S.empty_=!0;S.loadTime=Infinity;S.pendingPaint=!1;S.hasChange_=!1;S.oldThumbnail_=null;S.oldDelayedSrc_="";S.objectURL_=null;return S};
_.C(HJ,_.W);_.J=HJ.prototype;_.J.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.J.ready=function(){var S=this.shouldShowPlaceholder_();_.a1(this.hostElement,"no-transition",!0);S&&this.hostElement.classList.add("with-placeholder")};
_.J.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.J.isThumbPreloaded_=function(S){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",S)};
_.J.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||n_d};
_.J.computeThumbnailSrc_=function(S){return S&&S.thumbnails?_.U2(S.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.J.computeAlt_=function(){var S=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&S||""};
_.J.thumbnailChanged_=function(){var S=_.A([this.thumbnail,this.oldThumbnail_]),c=S.next().value;S=S.next().value;this.oldThumbnail_=c;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(S=this.computeThumbnailSrc_(S),this.computeThumbnailSrc_(c)===S))return;_.u("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(c)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):c&&_.gC("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.tO(this,this.onReload_):_.tO(this,this.onShow_):this.resetImage_();c&&(this.hostElement.style.opacity=""+c.opacity)}};
_.J.delayedSrcChanged_=function(){var S=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===S||this.resetImage_()};
_.J.setSrc_=function(S){S?(_.Ur(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.Ur(this.hostElement).querySelector("#img").src=S):(_.Ur(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.J.resetImage_=function(){ULY(this.hostElement);this.empty_=!0;this.setSrc_(n_d);this.ytRendererBehavior.invalidate(!1)};
_.J.observePlaceholderColor_=function(){var S=this.thumbnail&&this.thumbnail.placeholderColor;S?this.hostElement.style.backgroundColor=_.WV(S):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.J.onLoad_=function(){_.Ur(this.hostElement).querySelector("#img").src&&_.Ur(this.hostElement).querySelector("#img").src!==n_d&&(fkT(this.hostElement),this.notifyOnLoaded&&_.Az(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.J.onError_=function(){var S=this;if(_.u("web_use_cache_for_image_fallback"))xLz(_.Ur(this.hostElement).querySelector("#img").src).then(function(c){S.objectURL_=_.lo(c).toString();S.setSrc_(S.objectURL_)}).catch(function(){_.u("kevlar_woffle_fallback_image")&&S.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.J.onPrescanVisible=function(){this.onShow_()};
_.J.onVisible=function(){if(_.u("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.J.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var S=this.computeSrc_();S!==_.Ur(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(S))}};
_.J.onReload_=function(){this.empty_=!1;var S=this.computeSrc_();S!==_.Ur(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(S))};
_.J.shouldShowPlaceholder_=function(){return _.u("kevlar_thumbnail_bg")};
HJ.prototype.observePlaceholderColor_=HJ.prototype.observePlaceholderColor_;HJ.prototype.delayedSrcChanged_=HJ.prototype.delayedSrcChanged_;HJ.prototype.thumbnailChanged_=HJ.prototype.thumbnailChanged_;_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],HJ.prototype,"alt",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HJ.prototype,"ariaHidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],HJ.prototype,"ariaLabel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"hidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],HJ.prototype,"id",void 0);_.d([_.p(_.Ex.YtVisibilityBehavior),_.P("design:type",Object)],HJ.prototype,"ytVisibilityBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],HJ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",String)],HJ.prototype,"delayedSrc",void 0);
_.d([_.Z(),_.P("design:type",Object)],HJ.prototype,"thumbnail",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"loaded",void 0);_.d([_.Z(),_.P("design:type",Boolean)],HJ.prototype,"notifyOnLoaded",void 0);_.d([_.Z(),_.P("design:type",Number)],HJ.prototype,"height",void 0);_.d([_.Z(),_.P("design:type",Number)],HJ.prototype,"width",void 0);_.d([_.Z({value:function(){return"width"}}),
_.P("design:type",String)],HJ.prototype,"dimension",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"fit",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"fitHeight",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"fitWidth",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],HJ.prototype,"objectFit",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],HJ.prototype,"objectPosition",void 0);_.d([_.Z(),_.P("design:type",String)],HJ.prototype,"preferredThumbnail",void 0);_.d([_.Z({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.P("design:type",String)],HJ.prototype,"alt_",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],HJ.prototype,"sharedTooltipText",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],HJ.prototype,"ftlEligible",void 0);_.d([_.Z({value:void 0}),_.P("design:type",String)],HJ.prototype,"observeHiddenOption",void 0);_.d([_.Z({value:"observe_once"}),_.P("design:type",String)],HJ.prototype,"observePrescanOption",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],HJ.prototype,"roundedContainer",void 0);
_.d([_.$n("thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HJ.prototype,"thumbnailChanged_",null);_.d([_.$n("delayedSrc"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HJ.prototype,"delayedSrcChanged_",null);_.d([_.B0("thumbnail.placeholderColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HJ.prototype,"observePlaceholderColor_",null);
_.d([_.wM({is:"yt-img-shadow",disableElementRegistration:!0})],HJ);var n_d=_.gC("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.aW()(HJ,"yt-img-shadow",function(){if(Iup===void 0){var S=document.createElement("template");_.D(S,'\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">');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Bvi===void 0&&(Bvi=document.createElement("template"));var f=Bvi;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Iup=S}S=Iup;return S},{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 Q_Z;_.Dp=new _.Sg("SCREEN_MANAGER_TOKEN");Q_Z=new _.Sg("LOG_INITIAL_SCREEN_TOKEN");_.qs=_.y_(function(S){function c(AZ){return _.Y(AZ,_.Ya)}
function Q(){var AZ=f().isTogglingDisabled||N()?q():!q();w(AZ);r(!1);if(!f().isTogglingDisabled){var IH;(IH=X)==null||IH(!!AZ)}var Nr;((Nr=a)==null?0:Nr())||_.F2(_.fl().resolve(_.Dp),f().trackingParams);var Hc;if(!AZ||!c(f().defaultButtonViewModel)||(Hc=a)!=null&&Hc()){var qr;!c(f().toggledButtonViewModel)||((qr=a)==null?0:qr())||_.F2(_.fl().resolve(_.Dp),c(f().toggledButtonViewModel).trackingParams)}else _.F2(_.fl().resolve(_.Dp),c(f().defaultButtonViewModel).trackingParams)}
var f=S.data,U=S.buttonShapeOverrides,a=S.disableExplicitClickLogging,X=S.onToggle,z=S.style,x=S.useOutlinedIcon,I=S.className,n=function(){var AZ,IH;return q()?(AZ=S.animatedTextPropsToggled)==null?void 0:AZ.call(S):(IH=S.animatedTextPropsDefault)==null?void 0:IH.call(S)},b=_.uQ(function(){return n()?Object.assign({},n(),{shouldAnimate:g()}):void 0},void 0,"ZKEa0b"),N=function(){var AZ;
return((AZ=t())==null?void 0:AZ.isToggled)!==void 0},l=_.A(_.l8(function(){var AZ,IH,Nr;
return N()?(AZ=t())==null?void 0:AZ.isToggled:(Nr=U==null?void 0:(IH=U())==null?void 0:IH.toggled)!=null?Nr:f().isToggled})),H=l.next().value;
l=l.next().value;var q=H,w=l;l=_.A(_.l8(function(){var AZ,IH;return(AZ=S.animatedTextPropsToggled)==null?void 0:(IH=AZ.call(S))==null?void 0:IH.shouldAnimate}));
H=l.next().value;l=l.next().value;var g=H,r=l;H=_.A(_.ny(!1,void 0,"S11hid"));var E=H.next().value,v=H.next().value,t=_.Gs(function(AZ){var IH;a:{var Nr=f().entityKey,Hc=f().toggledStateEntitySelectorType;if(Hc&&Nr)switch(Hc){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var qr;AZ=(qr=_.FT(AZ.entities,"sfvAudioItemCurrentlyPlayingEntity",Nr))!=null?qr:void 0;qr=(IH=AZ==null?void 0:AZ.sfvAudioItemPlaybackState)!=null?IH:void 0;if(qr==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){IH={isToggled:!0};
break a}if(qr){IH={isToggled:!1};break a}break;default:_.i5(new _.Yr("Error: entitySelectorType defined but not matched in selector.",AZ,Hc))}IH=void 0}return IH}),V=function(){return Object.assign({},U==null?void 0:U(),{onToggle:Q,
toggleable:!0,toggled:q(),focused:E()})};
return _.B("toggle-button-view-model",{"on:focusin":_.$d(function(){var AZ=_.fl().resolve(_.QS(_.zy));AZ&&v(AZ.isKeyBoardInUse());return!1}),
"on:focusout":_.$d(function(){v(!1);return!1}),
class:I},_.B(_.K,{cond:function(){return q()?c(f().toggledButtonViewModel):c(f().defaultButtonViewModel)},
then:function(AZ){return _.B(_.Ze,{data:AZ,className:I,style:z,useOutlinedIcon:x,buttonOverrides:V,animatedTextProps:b})}}))},"z");
_.qs.idomCompat={callbacks:{onToggle:!0}};_.f4(_.y_(function(S){return _.B("yt-toggle-button-view-model",{class:function(){var c;return(c=S.scopingClassName)==null?void 0:c.call(S)}},_.B(_.qs,{data:function(){var c;
return(c=S.data)==null?void 0:c.call(S)},
buttonShapeOverrides:function(){var c;return(c=S.overrides)==null?void 0:c.call(S)},
animatedTextPropsDefault:function(){var c;return(c=S.animatedTextPropsDefault)==null?void 0:c.call(S)},
animatedTextPropsToggled:function(){var c;return(c=S.animatedTextPropsToggled)==null?void 0:c.call(S)},
disableExplicitClickLogging:function(){var c;return(c=S.disableExplicitClickLogging)==null?void 0:c.call(S)},
onToggle:function(c){var Q;return(Q=S.onToggle)==null?void 0:Q.call(S,c)},
style:function(){var c;return(c=S.style)==null?void 0:c.call(S)},
useOutlinedIcon:function(){var c;return(c=S.useOutlinedIcon)==null?void 0:c.call(S)},
className:function(){var c;return(c=S.className)==null?void 0:c.call(S)}}))},"A"),"yt-toggle-button-view-model",{props:{data:_.y$,
buttonShapeOverrides:_.y$,overrides:_.y$,animatedTextPropsDefault:_.y$,animatedTextPropsToggled:_.y$,disableExplicitClickLogging:_.y$,onToggle:_.Qn,style:_.y$,useOutlinedIcon:_.y$,className:_.y$,scopingClassName:_.y$}});var pm=function(){return _.W.apply(this,arguments)||this};
_.C(pm,_.W);pm.prototype.onTap=function(S){S.stopPropagation();S=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.TI("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:S})):this.ytLiveChatReduxBehavior.dispatch(_.Ns("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:S}))};
_.Rh.Object.defineProperties(pm.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.engagementState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=_.Y(this.data.toggleButton,_.CS),c;if(Number(((c=this.likeCountState)==null?void 0:c.likeCountIfIndifferentNumber)||"0")===0){var Q;c=((Q=this.data.likeCountPlaceholder)==null?void 0:Q.content)||""}else{var f,U,a;c=((f=this.likeCountState)==null?void 0:(U=f.likeCountIfIndifferent)==null?void 0:U.content)||((a=this.data.likeCountPlaceholder)==null?void 0:a.content)||""}var X,z;Q=((X=this.likeCountState)==null?void 0:(z=
X.likeCountIfLiked)==null?void 0:z.content)||"1";X=_.Y(S.toggledButtonViewModel,_.Ya);return Object.assign({},S,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.Y(S.defaultButtonViewModel,_.Ya),{title:c})},toggledButtonViewModel:{buttonViewModel:Object.assign({},X,{title:Q})}})}}}});
pm.prototype.onTap=pm.prototype.onTap;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],pm.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],pm.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pm.prototype,"data",void 0);
_.d([_.Z({selectorArgs:["data.likeCountEntityKey"],selector:cyc}),_.P("design:type",Object)],pm.prototype,"likeCountState",void 0);_.d([_.Z({selectorArgs:["data.engagementStateKey"],selector:qQY}),_.P("design:type",Object)],pm.prototype,"engagementState",void 0);_.d([_.M("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pm.prototype,"isLiked",null);
_.d([_.M("data","likeCountState","isLiked"),_.P("design:type",Object),_.P("design:paramtypes",[])],pm.prototype,"toggleButton",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],pm.prototype,"onTap",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],pm);
_.k(pm,"yt-live-chat-like-button-view-model",function(){if(Tt$===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;qq_===void 0&&(qq_=document.createElement("template"));var f=qq_;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Tt$=S}S=Tt$;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var b5i;var NvT;var hN=function(){return _.W.apply(this,arguments)||this};
_.C(hN,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hN.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],hN);
_.k(hN,"yt-live-chat-paid-message-footer-renderer",function(){if(NvT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;b5i===void 0&&(b5i=document.createElement("template"));var f=b5i;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);NvT=S}S=NvT;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var KPd;var $XT;var uQh;var jO$,luT=function(){if(jO$!==void 0)return jO$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;uQh===void 0&&(uQh=document.createElement("template"));var f=uQh;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return jO$=S};var qc=function(){return _.W.apply(this,arguments)||this};
_.C(qc,_.W);qc.prototype.onTap=function(S){S.stopPropagation()};
_.Rh.Object.defineProperties(qc.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=_.Y(this.data.replyButton,_.Ya),c,Q,f,U,a,X,z,x=Number(((c=this.replyCountState)==null?void 0:c.replyCountNumber)||"0")===0?(Q=this.data)==null?void 0:(f=Q.replyCountPlaceholder)==null?void 0:f.content:((U=this.replyCountState)==null?void 0:(a=U.replyCount)==null?void 0:a.content)||((X=this.data)==null?void 0:(z=X.replyCountPlaceholder)==null?void 0:z.content)||"",I;return Object.assign({},
S,{title:x,accessibilityText:(I=this.replyCountState)==null?void 0:I.replyButtonAccessibilityText})}}}});
_.Rh.Object.defineProperties(qc,{template:{configurable:!0,enumerable:!0,get:function(){return luT()}}});
qc.prototype.onTap=qc.prototype.onTap;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],qc.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qc.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],qc.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qc.prototype,"data",void 0);
_.d([_.Z({selectorArgs:["data.replyCountEntityKey"],selector:function(S,c){return _.FT(S.entities,"replyCountEntity",c)}}),
_.P("design:type",Object)],qc.prototype,"replyCountState",void 0);_.d([_.M("data","replyCountState"),_.P("design:type",Object),_.P("design:paramtypes",[])],qc.prototype,"buttonViewModel",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],qc.prototype,"onTap",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],qc);
_.k(qc,"yt-live-chat-reply-button-view-model",function(){return luT()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var YFz;var CDd;var Ty=function(){var S=_.W.apply(this,arguments)||this;S.ariaLabel="";return S};
_.C(Ty,_.W);
Ty.prototype.dataChanged=function(){for(var S=(0,_.XV)(_.Ur(this.hostElement).querySelector("#image"));S.firstChild;)S.removeChild(S.firstChild);if(this.data)if(this.data.icon){var c=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(c.polymerController.icon="yt-sys-icons:shield-filled",c.polymerController.defaultToFilled=!0):c.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();S.appendChild(c)}else if(this.data.customThumbnail){c=document.createElement("img");
var Q=_.RAp(this.data.customThumbnail.thumbnails,16);Q?(c.src=Q,S.appendChild(c),c.setAttribute("alt",this.hostElement.ariaLabel||"")):_.i5(new _.Yr("Could not compute URL for thumbnail",this.data.customThumbnail))}};
Ty.prototype.identity=function(S){return S};
Ty.prototype.computeType=function(S){return XB(S||void 0)};
Ty.prototype.dataChanged=Ty.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],Ty.prototype,"data",void 0);_.d([_.Z({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.P("design:type",Object)],Ty.prototype,"ariaLabel",void 0);_.d([_.Z({computed:"computeType(data)",reflectToAttribute:!0}),_.P("design:type",String)],Ty.prototype,"type",void 0);
_.d([_.Z({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.P("design:type",String)],Ty.prototype,"sharedTooltipText",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("live_chat_enable_new_moderator_badge")}}),
_.P("design:type",Boolean)],Ty.prototype,"enableNewModeratorBadge",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ty.prototype,"dataChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],Ty);
_.k(Ty,"yt-live-chat-author-badge-renderer",function(){if(CDd===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;YFz===void 0&&(YFz=document.createElement("template"));var f=YFz;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);CDd=S}S=CDd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var H5u;var DXl;var w4=function(){return _.W.apply(this,arguments)||this};
_.C(w4,_.W);_.J=w4.prototype;_.J.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"}}}}};
_.J.computeBadgesInsideChip=function(S){return S?S.filter(function(c){return XB(c.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.J.computeBadgesOutsideChip=function(S){return this.prependChatBadges||!S?[]:S.filter(function(c){c=XB(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"})};
_.J.computeBadgesBeforeChip=function(S){return this.prependChatBadges&&S?S.filter(function(c){c=XB(c.liveChatAuthorBadgeRenderer);return c!=="verified"&&c!=="owner"}):[]};
_.J.computeIsHighlighted=function(S,c){var Q=!!xdo(S,"owner"),f=!!xdo(S,"verified");S=!!xdo(S,"moderator");return(Q||f&&!S)&&!c};
_.J.computeAuthorType=function(S){return zHZ(S)};
_.J.computeAuthorClass=function(S,c){return c?(S?S+" ":"")+"single-line":S};
_.J.onSeedColorChanged=function(){_.u("live_chat_author_name_color_usernames")||_.u("live_chat_seed_color_usernames")||_.u("live_chat_colored_usernames")?!this.authorNameColor||this.authorType||this.isHighlighted||this.hostElement.classList.contains("yt-live-chat-paid-message-renderer")||this.hostElement.classList.contains("yt-live-chat-paid-sticker-renderer")||(this.username.style.color=this.authorNameColor):_.u("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
w4.prototype.onSeedColorChanged=w4.prototype.onSeedColorChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],w4.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],w4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],w4.prototype,"authorName",void 0);_.d([_.Z(),_.P("design:type",Array)],w4.prototype,"authorBadges",void 0);
_.d([_.Z({computed:"computeAuthorType(authorBadges)"}),_.P("design:type",String)],w4.prototype,"authorType",void 0);_.d([_.Z({computed:"computeAuthorClass(authorType, singleLine)"}),_.P("design:type",String)],w4.prototype,"authorClass",void 0);_.d([_.Z({computed:"computeBadgesInsideChip(authorBadges)"}),_.P("design:type",Array)],w4.prototype,"badgesInsideChip",void 0);_.d([_.Z({computed:"computeBadgesOutsideChip(authorBadges)"}),_.P("design:type",Array)],w4.prototype,"badgesOutsideChip",void 0);
_.d([_.Z({computed:"computeBadgesBeforeChip(authorBadges)"}),_.P("design:type",Array)],w4.prototype,"badgesBeforeChip",void 0);_.d([_.Z({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.P("design:type",Boolean)],w4.prototype,"isHighlighted",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],w4.prototype,"singleLine",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],w4.prototype,"disableHighlighting",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],w4.prototype,"dashboardMoneyFeed",void 0);_.d([_.Z({value:_.u("live_chat_prepend_badges"),reflectToAttribute:!0}),_.P("design:type",Boolean)],w4.prototype,"prependChatBadges",void 0);_.d([_.Z(),_.P("design:type",String)],w4.prototype,"authorNameColor",void 0);_.d([_.nU("#author-name"),_.P("design:type",HTMLDivElement)],w4.prototype,"username",void 0);
_.d([_.B0("authorNameColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w4.prototype,"onSeedColorChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],w4);
_.k(w4,"yt-live-chat-author-chip",function(){if(DXl===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;H5u===void 0&&(H5u=document.createElement("template"));var f=H5u;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);DXl=S}S=DXl;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var pDd;var hAH;var sL=function(){var S=_.W.apply(this,arguments)||this;S.debounceCommand=_.jW(function(c){S.ytComponentBehavior.resolveCommand(c)},1500);
return S};
_.C(sL,_.W);sL.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var S=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",c,Q,f=this.isHearted?(c=this.data)==null?void 0:c.unheartCommand:(Q=this.data)==null?void 0:Q.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.TI("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:S}));(S=_.Gv(f))&&this.debounceCommand(S)}};
_.Rh.Object.defineProperties(sL.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var S,c;if(!((S=this.data)==null?0:(c=S.creatorThumbnail)==null?0:c.sources))return{};S={thumbnails:[]};c={};c.url=this.data.creatorThumbnail.sources[0].url;S.thumbnails.push(c);return S}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.engagementState)==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((c=this.engagementState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((Q=this.engagementState)==null?void 0:Q.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}}});
sL.prototype.onTap=sL.prototype.onTap;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],sL.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],sL.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sL.prototype,"data",void 0);
_.d([_.Z({selectorArgs:["data.engagementStateKey"],selector:qQY}),_.P("design:type",Object)],sL.prototype,"engagementState",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],sL.prototype,"thumbnailDetails",null);_.d([_.M("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sL.prototype,"isHearted",null);_.d([_.M("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sL.prototype,"isEditable",null);
_.d([_.M("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sL.prototype,"showCreatorView",null);_.d([_.M("data","engagementState"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sL.prototype,"showButton",null);_.d([_.M("data","isHearted"),_.P("design:type",String),_.P("design:paramtypes",[])],sL.prototype,"label",null);_.d([_.M("data","isHearted"),_.P("design:type",Object),_.P("design:paramtypes",[])],sL.prototype,"heartHoverText",null);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sL.prototype,"onTap",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],sL);
_.k(sL,"yt-live-chat-creator-heart-view-model",function(){if(hAH===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;pDd===void 0&&(pDd=document.createElement("template"));var f=pDd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);hAH=S}S=hAH;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Mc=function(){};
_.C(Mc,xR);Mc.prototype.JSC$11043_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:LP("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
Mc.prototype.getApiPaths=function(){return[]};
Mc.prototype.getExtension=function(){};
Mc.prototype.JSC$11043_buildRequest=function(){};var qFH={},Tvu=(qFH.GET_DATASYNC_IDS=Yk(Mc),qFH);var wDH,sOs,MKd,hTe,iv,GUT,i3_,Z5p,i5h;wDH="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");sOs=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.dj=function(S,c,Q,f,U,a,X,z,x){this.endpointMap=S;this.networkManager=c;this.authService=Q;this.responseProcessorMap=f;this.innertubeResponseStore=U;this.contextProcessors=a;this.asyncContextProcessors=X;this.localInnertubeRouter=z;this.requestSequencer=x;this.inflightRequests=new Map;S.signalEndpointMap||(S.signalEndpointMap={});S.signalEndpointMap=Object.assign({},Tvu,S.signalEndpointMap)};
MKd=function(S,c,Q,f,U,a,X,z,x){if(_.dj.instance!==void 0){if(f=_.dj.instance,S=[S!==f.endpointMap,c!==f.networkManager,Q!==f.authService,U!==f.innertubeResponseStore,a!==f.contextProcessors,X!==f.asyncContextProcessors,z!==f.localInnertubeRouter],S.some(function(I){return I}))throw new _.Yr("InnerTubeTransportService is already initialized",S);
}else _.dj.instance=new _.dj(S,c,Q,f,U,a,X,z,x)};
_.P3=function(S,c,Q){var f=f===void 0?ord:f;var U=i3_(S,c);return U?new _.n1(function(a,X){var z,x,I,n,b;return _.O(function(N){switch(N.nextAddress){case 1:return _.F(N,U,2);case 2:z=N.yieldResult;x=z.JSC$11043_getRequest(c,Q,f);if(!x){X(new _.Yr("Error: Failed to build request for command.",c));N.jumpTo(0);break}rh(x.input);n=((I=x.requestShell)==null?void 0:I.mode)==="cors"?"cors":void 0;if(S.authService.syncHeaders){b=i5h(x.config,n);N.jumpTo(4);break}return _.F(N,Z5p(x.config,n),5);case 5:b=
N.yieldResult;case 4:a(GUT(S,x,b)),_.IN(N)}})}):_.pv(new _.Yr("Error: No request builder found for command.",c))};
hTe=function(S,c,Q,f){var U=U===void 0?ord:U;var a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V;return _.O(function(AZ){switch(AZ.nextAddress){case 1:a=Ubp(c,S.endpointMap);if(!a)throw new _.Yr("Error: No streaming request builder found for command",c);X=a.JSC$11043_getRequest(c,Q,U);if(!X)throw new _.Yr("Failed to build YtRequest for streaming Command",c);if((z=S.localInnertubeRouter)==null||!z.shouldPreferLocalResponse(X.input,X.innerTubeRequest)){AZ.jumpTo(2);break}return _.F(AZ,S.localInnertubeRouter.localInnertubeResponse(X.input,
X.innerTubeRequest),3);case 3:return x=AZ.yieldResult,I={},x.playerResponse&&(iv(S,x.playerResponse,X),I.player=x.playerResponse,(n=f)==null||n(I,x)),x.watchNextResponse&&(iv(S,x.watchNextResponse,X),I.content=x.watchNextResponse,(b=f)==null||b(I,x)),AZ.return(I);case 2:l=((N=X.requestShell)==null?void 0:N.mode)==="cors"?"cors":void 0;if(S.authService.syncHeaders){H=i5h(X.config,l);AZ.jumpTo(4);break}return _.F(AZ,Z5p(X.config,l),5);case 5:H=AZ.yieldResult;case 4:return g=(w=(q=X.requestShell)==null?
void 0:q.headers)!=null?w:{},X.requestShell=Object.assign({},X.requestShell,{headers:Object.assign({},g,H)}),r=Object.assign({},X.requestShell),E=JSON.stringify(X.innerTubeRequest),X.requestShell.method==="POST"&&(r=Object.assign({},r,{body:E})),v=function(IH,Nr){iv(S,Nr.playerResponse||Nr.watchNextResponse||Nr.reelItemWatchResponse||Nr.reelWatchSequenceResponse,X);f==null||f(IH,Nr)},t={},_.F(AZ,WPp(S.networkManager,X.input,r,v),6);
case 6:return t=AZ.yieldResult,((V=X.config)==null?0:V.responseTick)&&_.i2(X.config.responseTick),AZ.return(t)}})};
_.ZC=function(S,c,Q,f,U){U=U===void 0?{authStrategy:{identity:ord}}:U;var a=a===void 0?!0:a;var X=function(){};
X=xSx(Owp(Q));c.context||(c.context=_.ulH(f,a));return new _.n1(function(z){var x,I,n,b,N;return _.O(function(l){if(l.nextAddress==1)return x=y3p(Q),I=_.Pd(x),S.authService.syncHeaders?(n=i5h(U,I),l.jumpTo(2)):_.F(l,Z5p(U,I),3);l.nextAddress!=2&&(n=l.yieldResult);b=o5T(y3p(Q));N={input:b,requestShell:LP(b),innerTubeRequest:c,config:U};z(GUT(S,N,n,X));_.IN(l)})})};
iv=function(S,c,Q){var f;if(c&&!(c==null?0:(f=c.sequenceMetaData)==null?0:f.skipProcessing)&&S.responseProcessorMap){f=_.A(wDH);for(var U=f.next();!U.done;U=f.next())U=U.value,S.responseProcessorMap[U]&&S.responseProcessorMap[U].handleResponse(c,Q)}};
GUT=function(S,c,Q,f){f=f===void 0?function(){}:f;
var U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V,AZ,IH,Nr,Hc,qr,wp,Pc,ex,yd,op,DT,B_,zJ,Qp,xl,xZ,hj,OT,uu,sd,LT;return _.O(function(Ci){switch(Ci.nextAddress){case 1:X=(U=c.config)==null?void 0:(a=U.storeStrategy)==null?void 0:a.storeKey;if(!(X&&S.innertubeResponseStore&&S.innertubeResponseStore.has(X))||((z=c.config)==null?0:(x=z.storeStrategy)==null?0:x.disableCache)){Ci.jumpTo(2);break}return _.F(Ci,S.innertubeResponseStore.get(X),3);case 3:if((I=Ci.yieldResult)&&!I.isExpired())return Ci.return(Promise.resolve(_.O9(I)));
case 2:if(!((n=c)==null?0:(b=n.innerTubeRequest)==null?0:b.context)){Ci.jumpTo(4);break}N=c.innerTubeRequest.context;if(!(S.asyncContextProcessors&&S.asyncContextProcessors.length>0)){Ci.jumpTo(5);break}l=[];H=_.A(S.asyncContextProcessors);for(q=H.next();!q.done;q=H.next())w=q.value,g=w.processContext(c),g.wrappedPromise_&&l.push(g.wrappedPromise_);if(!(l.length>0)){Ci.jumpTo(5);break}return _.F(Ci,Promise.all(l),5);case 5:r=_.A(S.contextProcessors||[]),E=r.next();case 8:if(E.done){Ci.jumpTo(4);break}v=
E.value;return _.F(Ci,v.processContext(N),9);case 9:E=r.next();Ci.jumpTo(8);break;case 4:if((t=S.localInnertubeRouter)==null||!t.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){Ci.jumpTo(12);break}return _.F(Ci,S.localInnertubeRouter.localInnertubeResponse(c.input,c.innerTubeRequest),13);case 13:return V=Ci.yieldResult,iv(S,V,c),Ci.return(V);case 12:return(Nr=(IH=c.config)==null?void 0:IH.requestKey)&&S.inflightRequests.has(Nr)?AZ=S.inflightRequests.get(Nr):(Hc=JSON.stringify(c.innerTubeRequest),
Pc=(wp=(qr=c.requestShell)==null?void 0:qr.headers)!=null?wp:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},Pc,Q)}),ex=Object.assign({},c.requestShell),c.requestShell.method==="POST"&&(ex=Object.assign({},ex,{body:Hc})),((yd=c.config)==null?0:yd.requestTick)&&_.i2(c.config.requestTick),op=function(){return S.networkManager.fetch(c.input,ex,c.config)},AZ=S.requestSequencer?g_h(S.requestSequencer,c,op):op(),Nr&&S.inflightRequests.set(Nr,AZ)),_.F(Ci,AZ,14);
case 14:(DT=Ci.yieldResult)&&_.u("web_streaming_player")&&Array.isArray(DT)&&(DT=DT[0].playerResponse);if(DT&&"error"in DT&&((B_=DT)==null?0:(zJ=B_.error)==null?0:zJ.details))for(Qp=DT.error.details,xl=_.A(Qp),xZ=xl.next();!xZ.done;xZ=xl.next())hj=xZ.value,(OT=hj["@type"])&&sOs.indexOf(OT)>-1&&(delete hj["@type"],DT=hj);Nr&&S.inflightRequests.has(Nr)&&S.inflightRequests.delete(Nr);((uu=c.config)==null?0:uu.responseTick)&&_.i2(c.config.responseTick);if(DT||(sd=S.localInnertubeRouter)==null||!sd.canProvideFallbackResponse(c.input,
c.innerTubeRequest)){Ci.jumpTo(15);break}return _.F(Ci,S.localInnertubeRouter.localFallbackInnertubeResponse(c.input,c.innerTubeRequest),16);case 16:DT=Ci.yieldResult;case 15:return iv(S,DT,c),((LT=c.config)==null?0:LT.processorTick)&&_.i2(c.config.processorTick),f(),Ci.return(DT||void 0)}})};
_.v3=function(S,c){return fGp(c,S.endpointMap)};
i3_=function(S,c){S=Jyr(c,S.endpointMap);if(S!==void 0)return Promise.resolve(S)};
Z5p=function(S,c){var Q,f,U,a;return _.O(function(X){if(X.nextAddress==1){U=(Q=S)==null?void 0:(f=Q.authStrategy)==null?void 0:f.sessionIndex;var z=_.B2(Yzr({sessionIndex:U}));return _.F(X,z,2)}a=X.yieldResult;return X.return(Promise.resolve(Object.assign({},aGZ(c),a)))})};
i5h=function(S,c){var Q;S=S==null?void 0:(Q=S.authStrategy)==null?void 0:Q.sessionIndex;Q=Yzr({sessionIndex:S});return Object.assign({},aGZ(c),Q)};var eA_,kU$,rQz,dXs,v_T,PDH,tKs,VKd,WJ,RAe,yQT,E_z,o_h;eA_=0;kU$=/tone[1-5]/;rQz=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");dXs="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
v_T=Number.MAX_SAFE_INTEGER;PDH=RegExp("\ufe0f","g");_.Zp=function(S){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;S&&_.LP_(this,S)};
_.LP_=function(S,c){try{_.I6(c,{context:S,onSuccess:function(f,U){Array.isArray(U)?S.load(U):(f=new _.Yr("Emoji manager JSON response was not an array!",{response:U}),_.sH(f))},
onError:function(f){f=new _.Yr("Failed to retrieve emoji manager initial JSON data!",{url:c,statusCode:_.O8(f).toString()});_.i5(f)}})}catch(f){var Q=new _.Yr("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:c});
_.i5(Q)}};
_.Zp.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.Zp.prototype.load=function(S,c){if(c)if(S.length)S=S.concat(c.emojis);else{this.emojis=c.emojis;this.emojiMap=c.emojiMap;this.emojiShortcutMap=c.emojiShortcutMap;this.emojiShortcutCharMap=E_z(c);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=c.emojiRegex;return}this.emojis=[].concat(_.Hs(new Set(this.emojis.concat(S))));this.hasInitializedShortcutCharMap=!1;S=Array(this.emojis.length);for(c=0;c<this.emojis.length;c++){var Q=this.emojis[c];if(Q.emojiId){this.emojiMap[Q.emojiId]=Q;this.emojiMap[Q.emojiId].index=
c;for(var f=0;Q.shortcuts&&f<Q.shortcuts.length;f++)this.emojiShortcutMap[Q.shortcuts[f].toLocaleLowerCase()]=Q;S[c]=Q.isCustomEmoji&&Q.shortcuts?Q.shortcuts[0]:Q.emojiId}}S.sort(function(U,a){return a.length-U.length});
if(S.length)try{this.emojiRegex=new RegExp(S.join("|").replace("*","\\*"),"gi")}catch(U){this.emojiRegex=/$./}else this.emojiRegex=/$./};
tKs=function(S,c){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){var f=Q.value;if(f.emojiId&&S.emojiMap[f.emojiId]){Q=Object.assign({},S.emojiMap[f.emojiId],f);S.emojiMap[f.emojiId]=Q;var U=void 0;Q.index&&((U=S.emojis[Q.index])==null?void 0:U.emojiId)===f.emojiId&&(S.emojis[Q.index]=Q);f=void 0;if((f=Q.shortcuts)==null?0:f.length)for(S.hasInitializedShortcutCharMap=!1,f=_.A(Q.shortcuts),U=f.next();!U.done;U=f.next())S.emojiShortcutMap[U.value.toLocaleLowerCase()]=Q}}};
VKd=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,_.HL.getInstance(),2);if(f.nextAddress!=3)return(c=f.yieldResult)?_.F(f,c.get("ytlc-emoji-pref"),3):f.return();(Q=f.yieldResult)&&tKs(S,Object.keys(Q).map(function(U){return{emojiId:U,stickyPrefId:Q[U]}}).filter(function(U){return!!U.emojiId&&!!U.stickyPrefId}));
_.IN(f)})};
_.Gy=function(S,c,Q){return(S=S.emojiMap[c])&&(!S.isLocked||Q!==void 0&&Q)?S:void 0};
WJ=function(S,c,Q){Q=_.Gy(S,c,Q===void 0?!1:Q);var f=c.match("\u200d");Q&&S.skinTone!==0&&(S=(f==null?void 0:f.length)===1?_.Gy(S,c.replace("\u200d",rQz[S.skinTone]+"\u200d")):_.Gy(S,c+rQz[S.skinTone]))&&(Q=S);return Q};
RAe=function(S,c){var Q=S.emojiMap[c];return(Q==null?0:Q.stickyPrefId)?S.emojiMap[Q.stickyPrefId]:WJ(S,c)};
_.j0=function(S,c){S=S.emojiShortcutMap[c.toLocaleLowerCase()];return!S||S.isLocked?null:S};
yQT=function(S,c,Q){return E_z(S,Q===void 0?!1:Q)[c]||{}};
E_z=function(S,c){c=c===void 0?!1:c;if(!S.hasInitializedShortcutCharMap){S.hasInitializedShortcutCharMap=!0;for(var Q=0;Q<S.emojis.length;Q++){var f=S.emojis[Q];if(!(f.isLocked||c&&f.isCustomEmoji&&f.emojiId&&!S.pickerCustomEmojiIds.includes(f.emojiId)))for(var U=0;f.shortcuts&&U<f.shortcuts.length;U++){var a=f.shortcuts[U];a.startsWith(":_")&&f.isCustomEmoji&&(S.emojiShortcutCharMap[":_"]==null&&(S.emojiShortcutCharMap[":_"]=Object.create(null)),S.emojiShortcutCharMap[":_"][a]=f);if(!(a.length<3||
!f.isCustomEmoji&&kU$.test(a))){var X=a.substr(0,3).toLocaleLowerCase();S.emojiShortcutCharMap[X]==null&&(S.emojiShortcutCharMap[X]=Object.create(null));S.emojiShortcutCharMap[X][a]=f}}}}return S.emojiShortcutCharMap};
_.Zp.prototype.createEmoji=function(S,c){c=c===void 0?!0:c;var Q=document.createElement("img");S.isCustomEmoji||Q.classList.add("small-emoji");Q.classList.add("emoji");Q.classList.add("yt-formatted-string");Q.src=S.image?_.U2(S.image.thumbnails,this.emojiSize)||"":"";var f=void 0;S.image&&S.image.accessibility&&S.image.accessibility.accessibilityData&&(f=S.image.accessibility.accessibilityData.label);Q.alt=f?f:(S.isCustomEmoji&&S.shortcuts?S.shortcuts[0]:S.emojiId)||"";S.isCustomEmoji&&(Q.dataset.emojiId=
S.emojiId);_.Fa&&(Q.setAttribute("contenteditable","false"),Q.setAttribute("unselectable","on"));c&&(S.shortcuts&&S.shortcuts.length&&Q.setAttribute("shared-tooltip-text",S.shortcuts[0]),Q.id="emoji-"+eA_++);return Q};
_.Zp.prototype.createDocumentFragment=function(S,c,Q,f){c=c===void 0?!1:c;Q=Q===void 0?!0:Q;f=f===void 0?!1:f;S=S.replace(PDH,"");for(var U=document.createDocumentFragment(),a=0,X,z=0;(X=this.emojiRegex.exec(S))!=null;){var x=_.Gy(this,X[0])||_.j0(this,X[0]);!x||x.isCustomEmoji&&!c||(x=this.createEmoji(x,Q),a!==X.index&&U.appendChild(document.createTextNode(S.substring(a,X.index))),U.appendChild(x),a=X.index+X[0].length,z++)}if(!f||z)return U.appendChild(document.createTextNode(S.substr(a))),U};
o_h=function(S,c,Q){var f,U,a,X,z,x,I,n,b;return _.O(function(N){if(N.nextAddress==1){if(!c.emojiId||!S.emojiMap[c.emojiId])return N.return();f=Object.assign({},S.emojiMap[c.emojiId],{stickyPrefId:Q});S.emojiMap[c.emojiId]=f;c.index&&((U=S.emojis[c.index])==null?void 0:U.emojiId)===c.emojiId&&(S.emojis[c.index]=f);if((a=c.shortcuts)==null?0:a.length)for(S.hasInitializedShortcutCharMap=!1,X=_.A(c.shortcuts),z=X.next();!z.done;z=X.next())x=z.value,S.emojiShortcutMap[x.toLocaleLowerCase()]=f;return _.F(N,
_.HL.getInstance(),2)}if(N.nextAddress!=4)return(I=N.yieldResult)?_.F(N,I.get("ytlc-emoji-pref"),4):N.jumpTo(0);b=(n=N.yieldResult)!=null?n:{};b[c.emojiId]=Q;return _.F(N,I.set("ytlc-emoji-pref",b,v_T),0)})};
_.g4=new _.Zp;var cnl;_.eI={};
cnl={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.u("web_context_menu_a11y_opacity_visibility"),reflectToAttribute:!0},timestampString:{type:String,computed:"computeTimestampString(data)"},popupPositionTarget:{type:Object,computed:"identity(menuButton)"},menuButton:Object,menuVisible:{type:Boolean,
computed:"computeMenuVisible_(menuOpen, menuFocused)",reflectToAttribute:!0},menuOpen:{type:Boolean,value:!1},menuFocused:{type:Boolean,value:!1},emojiManager:Object,participantsManager:Object,isDeleted:{type:Boolean,value:!1,computed:"truthy(data.deletedStateMessage)",reflectToAttribute:!0},hasOriginalContent:{type:Boolean,value:!1,computed:"truthy(data.showOriginalContentMessage)"},hasInlineActionButtons:{type:Boolean,computed:"computeHasInlineActionButtons(data)",reflectToAttribute:!0},modern:{type:Boolean,
reflectToAttribute:!0,value:_.u("web_button_rework_with_live")},filledButtonOverrides:{type:Object,value:{type:"filled",style:"overlay"}}},supportsInlineActionButtons:!1,listeners:{"yt-popup-opened":"onYtPopupOpened_","yt-popup-closed":"onYtPopupClosedOrCanceled_","yt-popup-canceled":"onYtPopupClosedOrCanceled_",tap:"onItemTap"},TIME_FORMATTER:new vq(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 S=_.Ur(this.hostElement||this).querySelector("#inline-action-button-container");S&&S.setAttribute("aria-hidden","true");this.menuButton=_.Ur(this.hostElement).querySelector("#menu-button")},
attached:function(){var S=this.menuButton;S&&(S.addEventListener("focusin",_.xn(this,this.onMenuButtonFocus_)),S.addEventListener("focusout",_.xn(this,this.onMenuButtonBlur_)))},
detached:function(){var S=this.menuButton;S&&(S.removeEventListener("focusin",_.xn(this,this.onMenuButtonFocus_)),S.removeEventListener("focusout",_.xn(this,this.onMenuButtonBlur_)))},
identity:_.gp,truthy:function(S){return!!S},
computeTimestampString:function(S){return S?S.timestampText?this.getSimpleString(S.timestampText):this.TIME_FORMATTER.format(new Date(S.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(S){return S},
computeMenuVisible_:function(S,c){return S||c},
computeHasInlineActionButtons:function(S){if(!S)return!1;var c,Q;return!((c=S.inlineActionButtons)==null||!c.length)||!((Q=S.additionalInlineActionButtons)==null||!Q.length)},
createDocumentFragmentFromString:function(S){var c=_.g4.createDocumentFragment.bind(_.g4),Q;if((Q=this.participantsManager)==null||!Q.viewerRegex)return c(S);Q=document.createDocumentFragment();for(var f=0,U;(U=this.participantsManager.viewerRegex.exec(S))!=null;){if(U.index>0){var a=":"+U[0]+":";if((_.Gy(_.g4,a)||_.j0(_.g4,a))&&S.indexOf(a)===U.index-1)continue}Q.appendChild(c(S.substring(f,U.index)));f=document.createElement("span");f.appendChild(c(U[0]));f.classList.add("mention");Q.appendChild(f);
f=U.index+U[0].length}Q.appendChild(c(S.substring(f)));return Q},
createDocumentFragment:function(S){var c=document.createDocumentFragment();if(S.simpleText)return c.appendChild(this.createDocumentFragmentFromString(S.simpleText)),c;if(!S.runs)return c;for(var Q=0;Q<S.runs.length;Q++){var f=S.runs[Q];if(f.emoji)c.appendChild(_.g4.createEmoji(f.emoji));else if(f.text)if(f.navigationEndpoint){var U=document.createElement("a");U.classList.add("yt-simple-endpoint");dKz(U,f.navigationEndpoint);_.Ur(U).appendChild(this.createDocumentFragmentFromString(f.text));c.appendChild(U)}else c.appendChild(this.createDocumentFragmentFromString(f.text))}return c},
hasModerationOverlayVisible:function(){var S;return((S=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:S.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(S){S.composedPath().some(function(c){return(c=c instanceof Element?c:null)?c.tagName&&(c.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||c.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.u("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(S)},
colorFromDecimal:function(S){return EbY(S)},
markAsDeleted:function(S,c){this.set("data.deletedStateMessage",S);this.set("data.showOriginalContentMessage",c)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(S){if(this.data.contextMenuEndpoint){var c=_.fl().resolve(_.s_),Q=this.data.contextMenuEndpoint,f;(f=_.dj.instance)&&_.v3(f,Q)?(c=mXJ(c,Q),f=_.ZC(f,{},c)):f=_.Swh(c,Q);f.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);S&&S.stopPropagation()}},
handleGetContextMenuResponse_:function(S){var c=_.dj.instance;c&&_.v3(c,{liveChatEndpoint:{}})||(S=S.response);S.liveChatItemContextMenuSupportedRenderers&&S.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(S.liveChatItemContextMenuSupportedRenderers.menuRenderer);S.actions&&_.XF(this.hostElement,"yt-live-chat-actions",[S.actions])},
handleGetContextMenuError:function(S){if(S instanceof Error||S instanceof Object||S instanceof String)var c=S;_.sH(new _.Yr("Error encountered calling GetLiveChatItemContextMenu",c))},
showContextMenu_:function(S){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:S}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.Az(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.Az(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.eI.YtLiveChatItemBehavior=[cnl,_.vb.YtComponentBehavior,_.Nc.YtOpenPopupBehavior];_.kJ=function(){};var QL$;var fkd;var ULl;var Jne;var r4=function(){var S=_.W.apply(this,arguments)||this;S.active=!1;S.identity=_.gp;return S};
_.C(r4,_.W);r4.prototype.dataChanged=function(){this.active=!1};
r4.prototype.onClick=function(){_.Az(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
r4.prototype.dataChanged=r4.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],r4.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],r4.prototype,"active",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],r4.prototype,"dataChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],r4);
_.k(r4,"yt-live-chat-text-input-field-suggestion",function(){if(Jne===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;ULl===void 0&&(ULl=document.createElement("template"));var f=ULl;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Jne=S}S=Jne;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});_.d4=function(S,c,Q){return CustomEvent.call(this,S,{detail:{value:c,path:Q}})||this};
_.C(_.d4,CustomEvent);_.vJ=function(){var S=_.W.apply(this,arguments)||this;S.viewerName=null;S.actionMap={"yt-live-chat-actions":"onChatMessage_"};S.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];S.PARTICIPANT_TIME_USEC_=3E8;return S};
_.C(_.vJ,_.W);_.J=_.vJ.prototype;_.J.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.J.addParticipant=function(S){var c=_.jHZ(this.participants,S,function(f,U){f=f[Object.keys(f)[0]];U=U[Object.keys(U)[0]];f=String(_.Em(f.authorName)).toLowerCase();U=String(_.Em(U.authorName)).toLowerCase();return f<U?-1:f==U?0:1}.bind(this));
if(c>=0){var Q=this.participants[c];Q[Object.keys(Q)[0]].timestampUsec&&this.splice("participants",c,1,S)}else this.splice("participants",-c-1,0,S);S=S[Object.keys(S)[0]];c=_.Em(S.authorName).toLocaleLowerCase();Q=c.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(Q)||(this.allParticipantsCharMap_[Q]={});this.allParticipantsCharMap_[Q][c]=S};
_.J.getAuthorsFromPrefix=function(S){return this.allParticipantsCharMap_.hasOwnProperty(S)?this.allParticipantsCharMap_[S]:null};
_.J.computeViewerRegex_=function(S){if(!S)return null;S=S.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");var c=S.indexOf("@")===0&&_.u("live_chat_enable_handles_web_text_input_update")?"([#]":"([@#]";return new RegExp(c+S.replace(/ /g,"\\s*")+"|^"+S.replace(/ /g,"\\s*")+"$|^"+S.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+S.replace(/ /g,"\\s*")+"$|(?<=\\s)"+S.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.J.checkForStaleParticipants_=function(){var S=this;this.trimOldParticipants_();this.asyncHandle_&&uWp(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.gM(function(){S.checkForStaleParticipants_()},3E4))};
_.J.onChatMessage_=function(S){var c=this,Q=Date.now()*1E3;S.forEach(function(f){if(f=_.Y(f,BTi)){f=f.item;var U=Object.keys(f)[0];c.SUPPORTED_ITEM_TYPES_.indexOf(U)!=-1&&f[U].timestampUsec>=Q-c.PARTICIPANT_TIME_USEC_&&c.addParticipant(f)}},this);
this.checkForStaleParticipants_()};
_.J.trimOldParticipants_=function(){for(var S=Date.now()*1E3,c=this.participants.length-1;c>=0;c--){var Q=this.participants[c];Q=Q[Object.keys(Q)[0]];Q.timestampUsec&&Q.timestampUsec<S-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",c,1)}};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],_.vJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],_.vJ.prototype,"viewerName",void 0);_.d([_.Z({computed:"computeViewerRegex_(viewerName)"}),_.P("design:type",Object)],_.vJ.prototype,"viewerRegex",void 0);_.d([_.Z({value:function(){return[]},
notify:!0}),_.P("design:type",Array)],_.vJ.prototype,"participants",void 0);_.d([_.wM({is:"yt-live-chat-participants-manager",noInjection:!0})],_.vJ);var akd=/.*([:@#].*?)$/,PJ=/\u00a0/g,And=String.fromCharCode(160),XFi={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"},Lm=function(){var S=_.W.apply(this,arguments)||this;S.disabled=!1;S.liveChatRichMessageInput=null;S.messageInput=null;S.isValidWithNoInputText=!1;S.suggestions=[];S.emojiManager=_.g4;S.inputMethodEditorActive=
!1;S.suggestionIndex=-1;S.JSC$12041_lastSuggestionRange=null;return S};
_.C(Lm,_.W);_.J=Lm.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.J.attached=function(){_.Bg&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.J.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.J.dataChanged=function(){if(!this.ignoreColorMapping){var S=!1,c={},Q;for(Q in XFi)this.data&&this.data.hasOwnProperty(Q)&&(c[XFi[Q]]=this.colorFromDecimal(this.data[Q]),S=!0);S&&_.Or(this.hostElement,c)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.J.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.J.colorFromDecimal=function(S){S=Math.floor(Number(S));return"rgba("+[S>>16&255,S>>8&255,S&255,(S>>24&255)/255].join()+")"};
_.J.preventDrag=function(S){S.dataTransfer&&(S.dataTransfer.dropEffect="none");S.preventDefault()};
_.J.preventResize=function(S){S.returnValue=!1};
_.J.onInputChange=function(){var S=this.characterCount,c=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&c&&c.remove();if(!c&&this.characterCount>this.maxCharacterLimit){var Q=window.getSelection();if(Q){var f=Q.getRangeAt(0);Q.removeAllRanges();Q.addRange(f)}}if(Q=this.getCurrentRange())f=this.calculateTextBeforeRange(Q),this.completeEmojisInRange(Q,f,!0)||this.updateSuggestions(Q,f);f=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(f);
_.Az(this.hostElement,"yt-live-chat-message-input-change",f);c&&this.characterCount===0&&c.remove();Q&&Q.commonAncestorContainer.parentElement.id==="input"&&Q.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>S):Q&&!Q.collapsed&&Q.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(S=this.input.childNodes.length-1;S>=0;S--)this.input.childNodes[S].nodeName==="BR"&&this.input.childNodes[S].remove()};
_.J.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.J.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var S=this.getCurrentRange();S&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.mergeOverflowText=function(S){if(S){var c=document.createRange();c.selectNodeContents(S);c=c.extractContents();this.input.insertBefore(c,S)}};
_.J.checkRangeAtEndOfInput=function(){var S=this.getCurrentRange();if(S){var c=_.Ur(this.hostElement).querySelector("#overflow-text"),Q=document.createRange();c&&c.previousSibling?c.previousSibling instanceof HTMLImageElement?Q.selectNode(c.previousSibling):Q.selectNodeContents(c.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?Q.selectNode(this.input.lastChild):Q.selectNodeContents(this.input.lastChild));Q.collapse(!1);return Q.isPointInRange(S.startContainer,
S.startOffset)}return!1};
_.J.handleOverflowText=function(S){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var c=_.Ur(this.hostElement).querySelector("#overflow-text"),Q=this.getCurrentRange();this.input.normalize();S=this.checkRangeAtEndOfInput()&&S;this.mergeOverflowText(c);for(var f,U=0,a=0,X,z=this.input.childNodes,x=0;x<z.length;x++){var I=z[x];I instanceof Text?(a+=I.textContent.length,a>this.maxCharacterLimit&&(f=I,U=this.maxCharacterLimit+I.textContent.length-a)):I instanceof HTMLImageElement&&
(f=void 0,a=I.dataset.emojiId&&((f=this.data)==null?0:f.emojiCharacterCount)?a+this.data.emojiCharacterCount:a+I.alt.length,f=this.input,U=x);if(a>this.maxCharacterLimit&&f){X=document.createRange();X.collapse(!1);c?(a=this.input.lastChild.previousSibling,a instanceof Text?X.setEnd(this.input.lastChild.previousSibling,a.textContent.length):a instanceof HTMLImageElement&&X.setEnd(this.input,this.input.childNodes.length-1)):X.selectNodeContents(this.input);X.setStart(f,U);break}}X&&(f=!1,Q&&(S=X.isPointInRange(Q.startContainer,
Q.startOffset-1)),c||(c=document.createElement("span"),c.id="overflow-text",c.textContent="",c.setAttribute("contenteditable","true"),_.Ur(_.Ur(this.hostElement).querySelector("#input")).appendChild(c),f=!0),c&&(Q=X.extractContents(),c.insertBefore(Q,c.firstChild),S&&c.firstChild&&(Q=document.createRange(),f?Q.setStartAfter(c.lastChild):Q.setStartAfter(c.firstChild),Q.collapse(!0),c=window.getSelection(),c.removeAllRanges(),c.addRange(Q))))}};
_.J.checkForDuplicateSpans=function(){for(var S=0;S<this.input.childNodes.length;S++){var c=this.input.childNodes[S];if(c.nodeName==="SPAN"){var Q=document.createRange();Q.selectNodeContents(c);Q=Q.extractContents();this.input.insertBefore(Q,c);c.remove()}}this.handleOverflowText(!0)};
_.J.getCurrentRange=function(){var S=window.getSelection();return S&&S.rangeCount?S.getRangeAt(0).cloneRange():null};
_.J.getInputRange=function(){var S=this.getCurrentRange();if(S){for(var c=S.commonAncestorContainer,Q=!1,f=_.Ur(this.hostElement).querySelector("#input");c;){if(c===f){Q=!0;break}c=c.parentNode}Q||(S=null)}S||(S=this.getRangeAtEnd());return S};
_.J.getRangeAtEnd=function(){var S=document.createRange(),c=_.Ur(this.hostElement).querySelector("#input").lastChild;!c||c.nodeName!=="#text"&&c.nodeName!=="SPAN"?(S.selectNodeContents(_.Ur(this.hostElement).querySelector("#input")),S.collapse(!1)):c.nodeName==="#text"?S.setStart(c,c.textContent.length):S.setStart(c,c.childNodes.length);return S};
_.J.getChatParticipantSuggestions=function(S,c,Q,f){var U=_.u("live_chat_enable_handles_web_text_input_update");if(c)for(var a in c)if(a.indexOf(S)===0||U&&a.indexOf(Q+S)===0){var X=c[a],z=_.Em(X.authorName);f.push({suggestion:{author:!0,authorType:Q,image:X.authorPhoto,alt:z,text:z}});if(f.length>=64)break}};
_.J.getSuggestions=function(S){var c=[],Q=S.substring(0,3),f=yQT(_.g4,Q,!0);if(f)for(var U in f)if(U.toLocaleLowerCase().indexOf(S)===0){var a=f[U];if(a&&a.emojiId){if(a=RAe(_.g4,a.emojiId)){var X=void 0,z=void 0,x=void 0,I=void 0,n=((X=a.image)==null?0:(z=X.accessibility)==null?0:(x=z.accessibilityData)==null?0:x.label)||a.isCustomEmoji?(I=a.shortcuts)==null?void 0:I[0]:a.emojiId;c.push({suggestion:{emoji:!0,image:a.image,alt:n,text:U,textToInsertWhenSelected:a.isCustomEmoji?U:n}})}if(c.length>=
64)break}}if(!this.participantsManager)return null;if(Q.indexOf("@")===0||Q.indexOf("#")===0)f=Q.charAt(0),S=S.substring(1),U=_.u("live_chat_enable_handles_web_text_input_update"),Q.indexOf("@")===0&&U&&(U=this.participantsManager.getAuthorsFromPrefix(Q.substring(0,2)),this.getChatParticipantSuggestions(S,U,f,c)),Q=Q.substring(1),Q=this.participantsManager.getAuthorsFromPrefix(Q),this.getChatParticipantSuggestions(S,Q,f,c);return c?c.sort(function(b,N){return N.suggestion.text<b.suggestion.text?-1:
N.suggestion.text===b.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(S){var c=_.u("live_chat_enable_handles_web_text_input_update"),Q=S.authorType;c=S.text.indexOf(Q)===0&&c?S.text+And:Q+S.text+And;S.emoji?this.insertTextAtRange(this.JSC$12041_lastSuggestionRange,S.textToInsertWhenSelected||""):S.author&&this.insertTextAtRange(this.JSC$12041_lastSuggestionRange,c)};
_.J.updateSuggestionsAtCaret=function(){var S=this.getCurrentRange();S&&this.updateSuggestions(S,this.calculateTextBeforeRange(S))};
_.J.offsetStartOfRangeBy=function(S,c){for(;c>0;)if(S.startOffset-c>=0){S.setStart(S.startContainer,S.startOffset-c);break}else{c=S.startContainer instanceof HTMLImageElement?c-S.startContainer.alt.length:c-S.startOffset;var Q=S.startContainer.previousSibling;if(!Q){S.setStart(S.startContainer,0);break}if(_.u("live_chat_require_space_for_autocomplete_emoji")){var f=void 0,U=void 0;S.setStart(Q,((f=Q)==null?void 0:(U=f.textContent)==null?void 0:U.length)||0)}else S.setStart(Q,Q.childNodes.length||
0)}};
_.J.updateSuggestions=function(S,c){var Q=this;this.JSC$12041_lastSuggestionRange&&(this.JSC$12041_lastSuggestionRange.detach(),this.JSC$12041_lastSuggestionRange=null);if((c=akd.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2&&(this.offsetStartOfRangeBy(S,c.length),this.JSC$12041_lastSuggestionRange=S,(S=this.getSuggestions(c))&&S.length))){this.suggestions=S;_.tO(this,function(){_.Ur(Q.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(S.length-1);return}this.dropdown.opened=!1};
_.J.completeEmojisInRange=function(S,c,Q){var f=c.replace(/[\s\xa0]+$/,"");c=c.length-f.length;f=f.split(" ");f=f[f.length-1].trim().toLocaleLowerCase();var U=f.lastIndexOf(":");if(Q&&!c&&U!==f.length-1)return!1;U!==-1&&(Q=f.lastIndexOf(":",U-1),Q!==-1&&(f=f.substring(Q)));if((Q=_.j0(_.g4,f))&&Q.emojiId){Q=RAe(_.g4,Q.emojiId)||null;this.offsetStartOfRangeBy(S,f.length+c);var a,X,z,x;f=(((a=Q)==null?0:a.isCustomEmoji)?(X=Q)==null?void 0:(z=X.shortcuts)==null?void 0:z[0]:(x=Q)==null?void 0:x.emojiId)||
"";c&&(f+=And);this.insertTextAtRange(S,f);this.dropdown.opened=!1;return!0}return!1};
_.J.onSuggestion=function(S){this.insertSuggestion(S.detail);this.dropdown.opened=!1};
_.J.onKeyPress=function(S){S.keyCode===13&&(S.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.Az(this.hostElement,"yt-live-chat-send-message"))};
_.J.completeEmojis=function(){var S=document.createRange(),c=_.Ur(this.hostElement).querySelector("#input").lastChild;c?S.setStart(c,c.childNodes.length):(S.selectNodeContents(_.Ur(this.hostElement).querySelector("#input")),S.collapse(!1));this.completeEmojisInRange(S,this.calculateTextBeforeRange(S),_.u("live_chat_require_space_for_autocomplete_emoji"))};
_.J.maybePreventTextFormatting=function(S){!_.NJ||!S.ctrlKey&&!S.metaKey||S.keyCode!==66&&S.keyCode!==73||(S.stopImmediatePropagation(),S.preventDefault())};
_.J.onKeyDown=function(S){this.maybePreventTextFormatting(S);if(this.dropdown.opened)switch(S.keyCode){case 27:this.dropdown.opened=!1;S.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;S.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);S.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),S.preventDefault()}};
_.J.onKeyUp=function(S){switch(S.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.Fa)this.onInputChange()};
_.J.changeSuggestionIndex=function(S){if(this.dropdown.opened){var c=_.Ur(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<c.children.length&&(c.children[this.suggestionIndex].active=!1);var Q=this.suggestions.length;this.suggestionIndex=(S+Q)%Q;S=c.children[this.suggestionIndex];S.active=!0;c.scrollTop=S.offsetTop}};
_.J.onInputPaste=function(S){S.preventDefault();(S=S.clipboardData)&&S.types&&(S=S.getData("text/plain")||"",S=S.replace(/\n/g,""),this.insertText(S));(S=this.getCurrentRange())&&S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.J.onFocus=function(){this._setFocused(!0)};
_.J.onBlur=function(){this._setFocused(!1)};
_.J.insertText=function(S){this.insertTextAtRange(this.getInputRange(),S)};
_.J.insertTextAtRange=function(S,c){if(S&&(S.collapsed||S.deleteContents(),c=_.g4.createDocumentFragment(c,!0,!1))){for(var Q=_.A((c==null?void 0:c.childNodes)||[]),f=Q.next();!f.done;f=Q.next()){f=f.value;var U=void 0,a=void 0,X=void 0,z=void 0,x=void 0;(X=(U=window)==null?void 0:(a=U.ShadyCSS)==null?void 0:a.ScopingShim)==null||(x=(z=X).scopeNode)==null||x.call(z,f,this.hostElement.localName)}Q=c.lastChild;S.insertNode(c);this.focused||this.input.focus();if(this.focused){S=S.cloneRange();S.selectNodeContents(Q);
S.collapse(!1);if(c=window.getSelection())c.removeAllRanges(),c.addRange(S);S.commonAncestorContainer.parentElement.id==="input"&&S.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}S=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(S);_.Az(this.hostElement,"yt-live-chat-message-input-change",S)}};
_.J.setLiveChatRichMessageInput=function(S){_.Ur(_.Ur(this.hostElement).querySelector("#input")).textContent="";if(S&&S.textSegments){for(var c=0;c<S.textSegments.length;c++){var Q=S.textSegments[c];Q.text?_.Ur(_.Ur(this.hostElement).querySelector("#input")).appendChild(_.g4.createDocumentFragment(Q.text,!0,!1)):Q.emojiId&&(Q=_.Gy(_.g4,Q.emojiId))&&_.Ur(_.Ur(this.hostElement).querySelector("#input")).appendChild(_.g4.createEmoji(Q,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.J.setText=function(S){this.setLiveChatRichMessageInput(S?{textSegments:[{text:S}]}:null)};
_.J.calculateTextBeforeRange=function(S){var c="",Q=S.startContainer;if(Q&&Q instanceof Text){var f;c=((f=Q.textContent)==null?void 0:f.substring(0,S.startOffset))||"";Q=Q.previousSibling}for(;Q&&Q instanceof Text;)c=Q.textContent+c,Q=Q.previousSibling;return c.replace(PJ," ")};
_.J.calculateLiveChatRichMessageInput=function(){for(var S=[],c="",Q=_.Ur(_.Ur(this.hostElement).querySelector("#input")).childNodes,f=0;f<Q.length;f++){var U=Q[f];U instanceof Text?c+=U.textContent:U instanceof HTMLImageElement&&(U.dataset.emojiId?(c&&(S.push({text:c.replace(PJ," ")}),c=""),S.push({emojiId:U.dataset.emojiId})):c+=U.alt)}c&&S.push({text:c.replace(PJ," ")});if(Q=_.Ur(this.hostElement).querySelector("#overflow-text")){c="";Q=Q.childNodes;for(f=0;f<Q.length;f++)U=Q[f],U instanceof Text?
c+=U.textContent:U instanceof HTMLImageElement&&(U.dataset.emojiId?(c&&(S.push({text:c.replace(PJ," ")}),c=""),S.push({emojiId:U.dataset.emojiId})):c+=U.alt);c&&S.push({text:c.replace(PJ," ")})}return{textSegments:S}};
_.J.computeCharacterCount=function(S){if(!S||!S.textSegments)return 0;for(var c=0,Q=0;Q<S.textSegments.length;Q++){var f=S.textSegments[Q];if(f.text)c+=f.text.length;else if(f.emojiId){var U=void 0;if((U=this.data)==null?0:U.emojiCharacterCount)c+=this.data.emojiCharacterCount;else{var a=U=void 0,X=void 0;c+=((a=_.Gy(_.g4,(U=f)==null?void 0:U.emojiId))==null?void 0:(X=a.shortcuts)==null?void 0:X[0].length)||0}}}return c};
_.J.characterCountChanged=function(){_.Az(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.J.focusedChanged=function(){this.hostElement.dispatchEvent(new _.d4("focused-changed",this.focused))};
_.J.focus=function(){this.setFocus(!1)};
_.J.focusAtEnd=function(){this.setFocus(!0)};
_.J.setFocus=function(S){S=S?this.getRangeAtEnd():this.getInputRange();_.Ur(this.hostElement).querySelector("#input").focus();var c=window.getSelection();c&&(c.removeAllRanges(),c.addRange(S))};
_.J.insertEmoji=function(S){var c,Q=((S==null?0:S.isCustomEmoji)?(c=S.shortcuts)==null?void 0:c[0]:S==null?void 0:S.emojiId)||"";this.insertText(Q)};
_.J.computeText=function(S){if(!S||!S.textSegments)return"";for(var c="",Q=0;Q<S.textSegments.length;Q++){var f=S.textSegments[Q];if(f.text)c+=f.text;else if(f.emojiId){var U=void 0,a=void 0,X=void 0;c+=((a=_.Gy(_.g4,(U=f)==null?void 0:U.emojiId))==null?void 0:(X=a.shortcuts)==null?void 0:X[0])||""}}return c};
_.J.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.Rh.Object.defineProperties(Lm.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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}}});
Lm.prototype.focusedChanged=Lm.prototype.focusedChanged;Lm.prototype.characterCountChanged=Lm.prototype.characterCountChanged;Lm.prototype.onSuggestion=Lm.prototype.onSuggestion;Lm.prototype.onMessageSet=Lm.prototype.onMessageSet;Lm.prototype.dataChanged=Lm.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Lm.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Lm.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Lm.prototype,"disabled",void 0);_.d([_.M("disabled"),_.P("design:type",Number),_.P("design:paramtypes",[])],Lm.prototype,"inputTabIndex",null);_.d([_.M("data.maxCharacterLimit"),_.Z({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],Lm.prototype,"maxCharacterLimit",null);
_.d([_.M("liveChatRichMessageInput"),_.Z({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],Lm.prototype,"characterCount",null);_.d([_.M("maxCharacterLimit, characterCount"),_.Z({readOnly:!0,notify:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],Lm.prototype,"remainingCharacterCount",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Lm.prototype,"isChatMessageInput",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Lm.prototype,"inputExpanded",void 0);_.d([_.Z({readOnly:!0,notify:!0}),_.P("design:type",Object)],Lm.prototype,"liveChatRichMessageInput",void 0);_.d([_.Z(),_.P("design:type",Object)],Lm.prototype,"messageInput",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Lm.prototype,"ignoreColorMapping",void 0);_.d([_.M("characterCount"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Lm.prototype,"hasText",null);
_.d([_.Z(),_.P("design:type",Object)],Lm.prototype,"isValidWithNoInputText",void 0);_.d([_.M("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.Z(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Lm.prototype,"isInputValid",null);_.d([_.Z({readOnly:!0,value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Lm.prototype,"focused",void 0);_.d([_.Z(),_.P("design:type",Array)],Lm.prototype,"suggestions",void 0);
_.d([_.Z(),_.P("design:type",_.Zp)],Lm.prototype,"emojiManager",void 0);_.d([_.Z(),_.P("design:type",_.vJ)],Lm.prototype,"participantsManager",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Lm.prototype,"noUnderline",void 0);_.d([_.Z(),_.P("design:type",Object)],Lm.prototype,"inputMethodEditorActive",void 0);_.d([_.nU("#dropdown"),_.P("design:type",Object)],Lm.prototype,"dropdown",void 0);_.d([_.nU("#input"),_.P("design:type",HTMLElement)],Lm.prototype,"input",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lm.prototype,"dataChanged",null);_.d([_.B0("messageInput"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lm.prototype,"onMessageSet",null);_.d([_.FV("yt-live-chat-select-suggestion"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Lm.prototype,"onSuggestion",null);
_.d([_.B0("characterCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lm.prototype,"characterCountChanged",null);_.d([_.B0("focused"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lm.prototype,"focusedChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],Lm);
_.ONz=_.k(Lm,"yt-live-chat-text-input-field-renderer",function(){if(fkd===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;QL$===void 0&&(QL$=document.createElement("template"));var f=QL$;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);fkd=S}S=fkd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var EL=function(){var S=_.W.apply(this,arguments)||this;S.buttonOverrides={style:"overlay",type:"filled"};S.allowAnimations=!1;S.modern=_.u("web_button_rework_with_live");S.noPadding=!1;return S};
_.C(EL,_.W);_.J=EL.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.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"}}}}};
_.J.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.attached=function(){this.allowAnimations=!1};
_.J.dataChanged=function(){if(this.data){var S={"--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)};_.Or(this.hostElement,S);this.allowAnimations=!0}};
_.J.messageChanged=function(){var S,c=(S=this.data)==null?void 0:S.message;S=_.Ur(_.Ur(this.hostElement).querySelector("#message"));S.textContent="";c&&S.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(c))};
_.J.computeShowOnlyHeader=function(S,c){return!S||S.pdgLikeButton||S.replyButton||S.buyFlowButton?!1:this.isEmpty(S,c)&&!S.footer};
_.J.computeShowFooterDivider=function(S,c,Q){return S?!!S.footer&&!this.isEmpty(S,c)&&!Q:!1};
_.J.computeIsUserEditable=function(S){return!!S.inputField};
_.J.computeHasHeartButton=function(S){return(S==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(S==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(S==null?void 0:S.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.J.computeNoveltyImage=function(S){if(S.headerOverlayImage&&S.headerOverlayImage.thumbnails.length){var c=S.headerOverlayImage.thumbnails[0],Q,f;if((Q=S.pdgPurchasedNoveltyLoggingDirectives)==null?0:(f=Q.loggingDirectives)==null?0:f.trackingParams){var U,a;wkz((U=S.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(a=U.loggingDirectives)==null?void 0:a.trackingParams)}return c.width||0}return 0};
_.J.computeAuthorPhotoSize=function(S){return(S==null?0:S.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.J.inputFocus=function(){var S=_.Ur(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");S&&S.focus()};
_.J.inputInsertEmoji=function(S){var c=_.Ur(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");c&&c.insertEmoji(S)};
_.J.inputMessage=function(){var S=_.Ur(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),c;return S&&((c=this.data)==null?0:c.inputField)?(S.completeEmojis(),_.ey(S.liveChatRichMessageInput)):null};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.J.isEmpty=function(S,c){return S?S.empty||!(S.message||S.inputField||c):!0};
_.J.onLowerBuyButtonClick=function(){var S,c=_.Y((S=this.data)==null?void 0:S.buyButton,_.GF);c&&c.trackingParams&&!Vuz(c.command)&&(S=_.Yz(c.trackingParams))&&(c=_.wN())&&_.tz(c,S)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.Rh.Object.defineProperties(EL.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
EL.prototype.isDeletedChanged=EL.prototype.isDeletedChanged;EL.prototype.messageChanged=EL.prototype.messageChanged;EL.prototype.dataChanged=EL.prototype.dataChanged;_.d([_.p(etl.YtPdgLiveChatItemBehavior),_.P("design:type",Object)],EL.prototype,"ytPdgLiveChatItemBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],EL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],EL.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],EL.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],EL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],EL.prototype,"data",void 0);_.d([_.Z({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:qQY}),_.P("design:type",Object)],EL.prototype,"engagementState",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.P("design:type",Boolean)],EL.prototype,"isUserEditable",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.P("design:type",Boolean)],EL.prototype,"hasHeartButton",void 0);_.d([_.Z({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.P("design:type",Boolean)],EL.prototype,"showOnlyHeader",void 0);
_.d([_.Z({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.P("design:type",Boolean)],EL.prototype,"showFooterDivider",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],EL.prototype,"allowAnimations",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],EL.prototype,"dashboardMoneyFeed",void 0);_.d([_.Z({computed:"computeNoveltyImage(data)"}),_.P("design:type",Number)],EL.prototype,"noveltyWidth",void 0);
_.d([_.Z({computed:"computeAuthorPhotoSize(data)"}),_.P("design:type",Number)],EL.prototype,"authorPhotoSize",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],EL.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],EL.prototype,"noPadding",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EL.prototype,"dataChanged",null);
_.d([_.B0("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EL.prototype,"messageChanged",null);_.d([_.M("data","dashboardMoneyFeed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EL.prototype,"hideLowerBumper",null);_.d([_.B0("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EL.prototype,"isDeletedChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],EL);
_.k(EL,"yt-live-chat-paid-message-renderer",function(){if($XT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;KPd===void 0&&(KPd=document.createElement("template"));var f=KPd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);$XT=S}S=$XT;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var zVH;var xLi;var tN=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;return S};
_.C(tN,_.N_);tN.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.WY("openPopupConfig")};
_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],tN.prototype,"ytOpenPopupBehavior",void 0);_.d([_.KU()],tN);_.Vv=[_.Nc.YtOpenPopupBehavior,tN.prototype];var FQJ;var E2=[_.KJ,fxh,_.MB,_.$k,_.tG,_.I$d,_.ll,_.ugs,_.ie,DbY];_.u("web_watch_get_updated_metadata_response_processing")&&E2.push(_.d9i);_.u("web_continuation_response_processing")&&E2.push(_.gj);var DCo=new _.Sg("RESPONSE_RECEIVED_COMMANDS"),lGT=new _.Sg("RESPONSE_RECEIVED_COMMANDS");var nSp="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),IGT=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],BRr=["GET_UNSEEN_NOTIFICATION_COUNT"];var RQ=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;S.serviceEndpointHandlers=[];return S};
_.C(RQ,_.N_);RQ.prototype.created=function(){var S=this;this.endpointHandlerActionMap={"yt-service-request":function(c,Q,f,U){var a;return F_x(S.hostElement,c,Q,f,U,S.serviceEndpointHandlers,(a=S.onEntitiesUpdated)==null?void 0:a.bind(S))}}};
RQ.prototype.attached=function(){_.vG(_.dQ.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
RQ.prototype.detached=function(){_.PG(_.dQ.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
_.d([_.KU()],RQ);_.BEJ=[RQ.prototype];var Ikl,nKH=function(){return Ikl!==void 0?Ikl:Ikl=document.createElement("template")};
document.head.appendChild(nKH().content);var bNz;var NEd=document.head,KQl=NEd.appendChild,$Lp;if(bNz===void 0){var uDu=document.createElement("template");_.D(uDu,"\x3c!--css-build:shady--\x3e");uDu.content.insertBefore(nKH().content.cloneNode(!0),uDu.content.firstChild);bNz=uDu}$Lp=bNz;KQl.call(NEd,$Lp.content);var jLd,lkl=function(){return jLd!==void 0?jLd:jLd=document.createElement("template")};
document.head.appendChild(lkl().content);var YwH;var C3d=document.head,HN_=C3d.appendChild,DLJ;if(YwH===void 0){var pF$=document.createElement("template");_.D(pF$,"\x3c!--css-build:shady--\x3e");pF$.content.insertBefore(lkl().content.cloneNode(!0),pF$.content.firstChild);YwH=pF$}DLJ=YwH;HN_.call(C3d,DLJ.content);var hVp;_.i8("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.i8("sharingRendererButtons","buttonRenderer","ytd-button-renderer");hVp=_.u("web_button_rework")&&_.gC("BUTTON_REWORK")||_.u("web_button_rework_with_live");_.yv=function(){var S=_.W.apply(this,arguments)||this;S.isPressed=!1;S.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return S};
_.C(_.yv,_.W);_.J=_.yv.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.onHintIdChanged=function(){var S=this,c,Q,f=(c=this.ytButtonBehavior.data)==null?void 0:(Q=c.hint)==null?void 0:Q.hintRenderer;if(f&&f.hintId){c=_.Oz(this.hostElement,"yt-get-opened-popups-action");c=(c&&c.length===1?c[0]:[]).length>0;var U=null;f.hintId!=="sponsor-pre-purchase"||c?f.hintId.startsWith("sponsor-post-purchase")&&!c?U=Suu("membership-manage"):f.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!c&&(U=Suu("membership-freebie-join")):U=Suu("membership-join");U&&_.Mq.addLowPriorityJob(function(){for(var a=
_.A(U),X=a.next();!X.done;X=a.next())S.ytComponentBehavior.resolveCommand(X.value)})}};
_.J.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.J.onYtNavigate=function(S){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);c&&(S.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.J.onYtServiceRequestSent=function(S,c){this.handleServiceRequestActions(c);_.Az(this.hostElement,"yt-service-request-sent-button-renderer")};
_.J.onServiceRequestCompleted=function(S,c){this.handleServiceRequestActions(c);_.Az(this.hostElement,"yt-service-request-completed-button-renderer")};
_.J.updateButton=function(S){var c;if(S=(c=_.Y(S,gHi))==null?void 0:c.updatedButton)this.ytButtonBehavior.data=_.Y(S,_.GF)};
_.J.handleUpdateButtonAction=function(S){var c=this.ytButtonBehavior.data;c.targetId&&S.updateButtonAction.targetId&&c.targetId===S.updateButtonAction.targetId&&this.updateButton(S)};
_.J.handleServiceRequestActions=function(S){if(S=S.actions)for(var c=0;c<S.length;c++)this.updateButton(S[c])};
_.Rh.Object.defineProperties(_.yv,{template:{configurable:!0,enumerable:!0,get:function(){if(FQJ===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);FQJ=S}S=FQJ;return S}}});
_.yv.prototype.onServiceRequestCompleted=_.yv.prototype.onServiceRequestCompleted;_.yv.prototype.onYtServiceRequestSent=_.yv.prototype.onYtServiceRequestSent;_.yv.prototype.onYtNavigate=_.yv.prototype.onYtNavigate;_.yv.prototype.onPressedStateChanged=_.yv.prototype.onPressedStateChanged;_.yv.prototype.onHintIdChanged=_.yv.prototype.onHintIdChanged;_.d([_.Z(),_.P("design:type",Object)],_.yv.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],_.yv.prototype,"isPressed",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],_.yv.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.ewi.YtButtonBehavior),_.P("design:type",Object)],_.yv.prototype,"ytButtonBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],_.yv.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],_.yv.prototype,"ytComponentBehavior",void 0);
_.d([_.p(lv.YtRenderButtonBehavior),_.P("design:type",Object)],_.yv.prototype,"ytRenderButtonBehavior",void 0);_.d([_.B0("data.hint.hintRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],_.yv.prototype,"onHintIdChanged",null);_.d([_.B0("isPressed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],_.yv.prototype,"onPressedStateChanged",null);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],_.yv.prototype,"onYtNavigate",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],_.yv.prototype,"onYtServiceRequestSent",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],_.yv.prototype,"onServiceRequestCompleted",null);_.d([_.e({is:"ytd-button-renderer",disableElementRegistration:hVp})],_.yv);var oQ=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_button_rework_with_live");S.buttonOverrides={style:"overlay",type:"filled"};return S};
_.C(oQ,_.W);_.J=oQ.prototype;_.J.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"}}}}};
_.J.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.J.dataChanged=function(){if(this.data&&this.data.sticker){var S=_.U2(this.data.sticker.thumbnails,this.stickerWidth);S||_.qlo(S).thenCatch(function(){_.i5(new _.Yr("Failed to load Super Sticker with url",S))})}};
_.J.computeAuthorPhotoSize=function(S){return(S==null?0:S.isV2Style)?32:40};
_.J.computeIsV2Style=function(S){return(S==null?0:S.isV2Style)?!0:!1};
_.J.onStickerLoaded=function(S){var c,Q,f;(c=_.VI(S))==null||(Q=c.parentNode)==null||(f=Q.classList)==null||f.add("sticker-loaded")};
_.J.computeNoveltyImageWidth=function(S){var c,Q;if(S==null?0:(c=S.headerOverlayImage)==null?0:(Q=c.thumbnails)==null?0:Q.length){c=S.headerOverlayImage.thumbnails[0];var f,U;if((f=S.pdgPurchasedNoveltyLoggingDirectives)==null?0:(U=f.loggingDirectives)==null?0:U.trackingParams){var a,X;wkz((a=S.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(X=a.loggingDirectives)==null?void 0:X.trackingParams)}return c.width||0}return 0};
_.J.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.J.updateStickerStyles=function(){var S=this.data;S&&(S={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(S.authorNameTextColor)},
_.Or(this.hostElement,S))};
_.J.onBuyButtonClick=function(){var S,c=_.Y((S=this.data)==null?void 0:S.buyButton,_.GF);c&&!Vuz(c.command)&&this.ytRendererBehavior.logExplicitClick(c)};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.Rh.Object.defineProperties(oQ.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 S;return((S=this.data)==null?0:S.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
oQ.prototype.updateStickerStyles=oQ.prototype.updateStickerStyles;oQ.prototype.isDeletedChanged=oQ.prototype.isDeletedChanged;oQ.prototype.onStickerLoaded=oQ.prototype.onStickerLoaded;oQ.prototype.dataChanged=oQ.prototype.dataChanged;_.d([_.p(etl.YtPdgLiveChatItemBehavior),_.P("design:type",Object)],oQ.prototype,"ytPdgLiveChatItemBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],oQ.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],oQ.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],oQ.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],oQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],oQ.prototype,"data",void 0);
_.d([_.Z({computed:"computeAuthorPhotoSize(data)"}),_.P("design:type",Number)],oQ.prototype,"authorPhotoSize",void 0);_.d([_.Z(),_.P("design:type",Boolean)],oQ.prototype,"isDeleted",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],oQ.prototype,"dashboardMoneyFeed",void 0);_.d([_.Z({computed:"computeNoveltyImageWidth(data)"}),_.P("design:type",Number)],oQ.prototype,"noveltyWidth",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oQ.prototype,"modern",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.P("design:type",Boolean)],oQ.prototype,"isV2Style",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oQ.prototype,"dataChanged",null);_.d([_.FV("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],oQ.prototype,"onStickerLoaded",null);
_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],oQ.prototype,"stickerWidth",null);_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],oQ.prototype,"stickerHeight",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oQ.prototype,"hasHeartButton",null);_.d([_.M("data","dashboardMoneyFeed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],oQ.prototype,"hideLowerBumper",null);
_.d([_.B0("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oQ.prototype,"isDeletedChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oQ.prototype,"updateStickerStyles",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],oQ);
_.k(oQ,"yt-live-chat-paid-sticker-renderer",function(){if(xLi===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;zVH===void 0&&(zVH=document.createElement("template"));var f=zVH;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);xLi=S}S=xLi;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var qwi;var TEl;var wF_,sLJ=function(){return wF_!==void 0?wF_:wF_=document.createElement("template")};
document.head.appendChild(sLJ().content);var Mhp,iNu=function(){return Mhp!==void 0?Mhp:Mhp=document.createElement("template")};
document.head.appendChild(iNu().content);var ZNz;var GMi,WQT=function(){return GMi!==void 0?GMi:GMi=document.createElement("template")};
document.head.appendChild(WQT().content);var gKi;var eVz=document.head,kMs=eVz.appendChild,rnd;if(gKi===void 0){var dL$=document.createElement("template");_.D(dL$,"\x3c!--css-build:shady--\x3e");dL$.content.insertBefore(WQT().content.cloneNode(!0),dL$.content.firstChild);gKi=dL$}rnd=gKi;kMs.call(eVz,rnd.content);var vKJ=document.head,P3T=vKJ.appendChild,LQl;if(ZNz===void 0){var my=document.createElement("template");_.D(my,"\x3c!--css-build:shady--\x3e");my.content.insertBefore(iNu().content.cloneNode(!0),my.content.firstChild);my.content.insertBefore(sLJ().content.cloneNode(!0),my.content.firstChild);ZNz=my}LQl=ZNz;P3T.call(vKJ,LQl.content);var Sr=function(){var S=_.N_.apply(this,arguments)||this;S.focusedIndex=0;S.verticalOffset=0;S.verticalAlign="top";S.dynamicAlign=!0;return S};
_.C(Sr,_.N_);Sr.prototype.emojiUrl=function(S){S=_.Gy(this.emojiManager,S);if(!S)return"";var c;S=(c=S.image)==null?void 0:c.thumbnails;return _.U2(S,24)||""};
var EKp=function(S){var c;S.emojiVariants&&(c=S.data)!=null&&c.target&&_.tO(S,function(){S.set("verticalOffset",-1*S.hostElement.clientHeight);var Q=_.Ur(S.hostElement).querySelector("img");Q&&Q.focus()})};
_.J=Sr.prototype;_.J.onKeyboardEnter=function(){};
_.J.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.J.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.J.onKeyDown=function(S){switch(S.keyCode){case 13:this.onKeyboardEnter();S.preventDefault();break;case 40:this.changeFocus(1);S.preventDefault();break;case 38:this.changeFocus(-1);S.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.J.onYtEmojiSelect=function(S){var c=this,Q,f,U,a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1)return f=(Q=c.data)==null?void 0:Q.emoji,X=((U=f)==null?void 0:U.stickyPrefId)||((a=f)==null?void 0:a.emojiId),x=(z=S.detail)==null?void 0:z.emojiId,X&&x&&X!==x?_.F(n,(I=c.emojiManager)==null?void 0:o_h(I,f,x),2):n.return();_.XF(c.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[f,x]);_.IN(n)})};
_.J.changeFocus=function(S){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+S+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(S=_.Ur(this.hostElement).querySelector("#variants"))&&S.children[this.focusedIndex].focus())};
_.Rh.Object.defineProperties(Sr.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
Sr.prototype.onYtEmojiSelect=Sr.prototype.onYtEmojiSelect;Sr.prototype.onKeyDown=Sr.prototype.onKeyDown;Sr.prototype.onEmojiVariantsChanged=Sr.prototype.onEmojiVariantsChanged;Sr.prototype.onVerticalOffsetOrPositionTargetChanged=Sr.prototype.onVerticalOffsetOrPositionTargetChanged;_.d([_.p(_.LO),_.P("design:type",Object)],Sr.prototype,"ironOverlayBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Sr.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],Sr.prototype,"emojiManager",void 0);
_.d([_.Z(),_.P("design:type",Object)],Sr.prototype,"emojiVariants",void 0);_.d([_.Z(),_.P("design:type",Object)],Sr.prototype,"focusedIndex",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Sr.prototype,"positionTarget",null);_.d([_.Z({reflectToAttribute:!0}),_.M("verticalOffset","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Sr.prototype,"isPositioned",null);_.d([_.Z(),_.P("design:type",Object)],Sr.prototype,"verticalOffset",void 0);
_.d([_.Z(),_.P("design:type",Object)],Sr.prototype,"verticalAlign",void 0);_.d([_.Z(),_.P("design:type",Object)],Sr.prototype,"dynamicAlign",void 0);_.d([_.B0("verticalOffset","positionTarget"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sr.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.d([_.B0("emojiVariants"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sr.prototype,"onEmojiVariantsChanged",null);
_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Sr.prototype,"onKeyDown",null);_.d([_.FV("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype",Promise)],Sr.prototype,"onYtEmojiSelect",null);_.d([_.KU()],Sr);var ths=[Sr.prototype];var Vhz;var RVe;var ynd=/medium-light|medium-dark|light|medium|dark/,oKH=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,mLl=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),cC=function(){var S=_.W.apply(this,arguments)||this;S.userSelection={left:null,right:null};S.scrollAction="lock";S.isEmojiDraftInProgress=!1;return S};
_.C(cC,_.W);_.J=cC.prototype;_.J.onClick=function(S){S=_.VI(S);S instanceof HTMLImageElement&&this.selectOrUpdateEmoji(S)};
_.J.selectOrUpdateEmoji=function(S){var c=S.getAttribute("selection");c&&(c==="default"?_.Az(this.hostElement,"yt-emoji-select",_.Gy(this.emojiManager,S.id)):c==="left"?this.userSelection=Object.assign({},this.userSelection,{left:S.src}):c==="right"?this.userSelection=Object.assign({},this.userSelection,{right:S.src}):c==="user"&&this.userSelection.left&&this.userSelection.right&&_.Az(this.hostElement,"yt-emoji-select",_.Gy(this.emojiManager,S.id)))};
_.J.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.J.onMultiSelectorThumbnailRowChanged=function(){var S,c,Q;((S=this.data)==null?0:(c=S.emoji)==null?0:(Q=c.multiSelectorThumbnailRow)==null?0:Q.length)&&this.openSelector()};
_.J.getThumbnailFromEmojiRow=function(S){var c,Q;return(S==null?void 0:(c=S.thumbnails)==null?void 0:(Q=c[0])==null?void 0:Q.url)||""};
_.J.getEmojiAltTextForPartialSelector=function(S){var c;return((c=this.getThumbnailFromEmojiRow(S).match(oKH))==null?void 0:c[0])||""};
_.J.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.J.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.J.getRowSelection=function(S){return["left","right"][S]};
_.J.getIdFromComposedEmoji=function(S){return(S==null?void 0:S.emojiId)||""};
_.J.getEmojiFromPartialSelections=function(S,c){if(!S&&!c)return null;var Q,f,U=(Q=this.data)==null?void 0:(f=Q.emoji)==null?void 0:f.variantIds;if(!U||!U.length)return null;var a;S=(a=S.match(ynd))==null?void 0:a[0];var X;c=(X=c.match(ynd))==null?void 0:X[0];if(!S||!c)return null;var z=mLl.get(S);X=mLl.get(c);if(z===X){X=Array.from(mLl.values()).filter(function(I){return I!==z}).join("|");
var x=new RegExp("^((?!("+X+")).)*"+z+"$")}else x=new RegExp(z+".*"+X);return(U=U.find(function(I){return x.test(I)}))&&_.Gy(this.emojiManager,U)||null};
_.J.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var S,c=this.ytEmojiSelectorBehavior.emojiUrl(((S=this.data.emoji)==null?void 0:S.emojiId)||"");_.Ur(this.hostElement).querySelector('[selection="user"]').src.includes(c)||(this.isEmojiDraftInProgress=!0)}};
_.J.onDomChange=function(){EKp(this.ytEmojiSelectorBehavior)};
_.J.getFocusableElements=function(){return _.Ur(this.hostElement).querySelectorAll("img").filter(function(S){return S.getAttribute("role")==="option"})};
_.J.changeFocus=function(S){var c=this.getFocusableElements();c!=null&&c.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+S+c.length)%c.length,this.ytEmojiSelectorBehavior.focusedIndex<c.length&&(S=c[this.ytEmojiSelectorBehavior.focusedIndex])&&S.focus())};
_.J.onKeyboardEnter=function(){var S=this.getFocusableElements();S!=null&&S.length&&(S=S[this.ytEmojiSelectorBehavior.focusedIndex])&&S instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(S),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.Rh.Object.defineProperties(cC.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var S=this,c,Q,f;return this.emojiManager&&((c=this.data)==null?0:(Q=c.emoji)==null?0:(f=Q.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(U){return!!U&&_.Gy(S.emojiManager,U)}).filter(function(U){return!!U}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var S,c=(S=this.userSelection)==null?void 0:S.left,Q;S=(Q=this.userSelection)==null?void 0:Q.right;return c&&S?this.getEmojiFromPartialSelections(c,S):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.composedEmojiSelection)==null?0:S.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var c;S=(c=this.userSelection)==null?void 0:c.left;var Q;c=(Q=this.userSelection)==null?void 0:Q.right;if(!S&&!c){var f;return this.ytEmojiSelectorBehavior.emojiUrl(((f=this.data.emoji)==null?void 0:f.emojiId)||"")}return S&&!c?S:!S&&c?c:""}}});
cC.prototype.onMultiSelectorThumbnailRowChanged=cC.prototype.onMultiSelectorThumbnailRowChanged;cC.prototype.onClick=cC.prototype.onClick;_.d([_.p(_.LO),_.P("design:type",Object)],cC.prototype,"ironOverlayBehavior",void 0);_.d([_.p(ths),_.P("design:type",Object)],cC.prototype,"ytEmojiSelectorBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cC.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],cC.prototype,"emojiManager",void 0);
_.d([_.Z(),_.P("design:type",Object)],cC.prototype,"userSelection",void 0);_.d([_.Z(),_.P("design:type",Object)],cC.prototype,"scrollAction",void 0);_.d([_.Z(),_.P("design:type",Object)],cC.prototype,"isEmojiDraftInProgress",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],cC.prototype,"emojiVariants",null);_.d([_.M("data","userSelection"),_.P("design:type",Object),_.P("design:paramtypes",[])],cC.prototype,"composedEmojiSelection",null);
_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],cC.prototype,"onClick",null);_.d([_.B0("data.emoji.multiSelectorThumbnailRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cC.prototype,"onMultiSelectorThumbnailRowChanged",null);_.d([_.M("data","userSelection","composedEmojiSelection"),_.P("design:type",String),_.P("design:paramtypes",[])],cC.prototype,"draftEmojiUrl",null);
_.d([_.wM({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],cC);
_.k(cC,"yt-emoji-multi-person-selector",function(){if(RVe===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Vhz===void 0&&(Vhz=document.createElement("template"));var f=Vhz;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);RVe=S}S=RVe;return S},{mode:2});var SQs;var cxs;var Qt=function(){var S=_.W.apply(this,arguments)||this;S.tooltip_=null;return S};
_.C(Qt,_.W);_.J=Qt.prototype;_.J.dataChanged_=function(){var S;if((S=this.data)==null?0:S.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.Ur(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.XV)(this.tooltip_).textContent=this.data.tooltip};
_.J.computeTargetId=function(){var S;return((S=this.data)==null?void 0:S.targetId)||""};
_.J.computeId_=function(S){return S};
_.J.computeIcon_=function(S){return _.xz(S)};
_.J.onTap_=function(){this.active=!this.active;_.Az(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.J.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("active-changed",this.active))};
_.Rh.Object.defineProperties(Qt.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var S,c;if((S=this.data)==null?0:(c=S.icon)==null?0:c.iconType)return this.data.icon.iconType==="SUPER_STICKER";var Q,f;return((Q=this.data)==null?void 0:(f=Q.icon)==null?void 0:f.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
Qt.prototype.activeChangedForBinding=Qt.prototype.activeChangedForBinding;Qt.prototype.dataChanged_=Qt.prototype.dataChanged_;_.d([_.p(_.dc.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],Qt.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Qt.prototype,"data",void 0);_.d([_.Z({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.P("design:type",String)],Qt.prototype,"id",void 0);
_.d([_.Z({computed:"computeTargetId(data.targetId)"}),_.P("design:type",String)],Qt.prototype,"targetId",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Qt.prototype,"active",void 0);_.d([_.Z({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.P("design:type",String)],Qt.prototype,"icon",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qt.prototype,"dataChanged_",null);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qt.prototype,"iconFilled",null);_.d([_.B0("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qt.prototype,"activeChangedForBinding",null);_.d([_.wM({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],Qt);
_.k(Qt,"yt-emoji-picker-category-button-renderer",function(){if(cxs===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;SQs===void 0&&(SQs=document.createElement("template"));var f=SQs;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);cxs=S}S=cxs;return S},{mode:2});var QeH;var fXl;var fs=function(){var S=_.W.apply(this,arguments)||this;S.ariaLabel=null;S.ariaActivedescendant=null;S.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};S.JSC$12106_ignoreNextFocus_=!1;S.longPressTimeoutId=-1;return S};
_.C(fs,_.W);_.J=fs.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var S=_.Kv(),c=0;c<this.emoji.length;c++){var Q={veType:88013,elementIndex:c},f=this.emoji[c];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(Q=_.NK(S,Q))&&(f.visualElement=Q)}};
_.J.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.J.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.J.emojiSkinToneChanged_=function(S){this.skinTone=S};
_.J.dataChanged=function(){this.data&&this.data.emojiData&&tKs(this.emojiManager,this.data.emojiData)};
_.J.emojiUrl=function(S){S=this.getEmoji(S);if(!S)return"";var c;S=(c=S.image)==null?void 0:c.thumbnails;return _.U2(S,24)||""};
_.J.emojiAlt=function(S){var c=this.get("image.accessibility.accessibilityData.label",S);return c?c:S.isCustomEmoji?S.shortcuts[0]:S.emojiId};
_.J.emojiAriaLabel=function(S){return S.shortcuts?S.shortcuts[0]:""};
_.J.emojiAriaSelected=function(S,c,Q){return S&&Q==c?"true":"false"};
_.J.getEmoji=function(S){if(this.emojiManager)return this.shouldUseStickyPreferences?RAe(this.emojiManager,S):WJ(this.emojiManager,S)};
_.J.computeId_=function(S){return S.categoryId||""};
_.J.computeEmoji=function(S){var c=this;return this.emojiManager?S.emojiIds?S.emojiIds.map(function(Q){return Q?_.Gy(c.emojiManager,Q):null}).filter(TRz):S.emojiData?S.emojiData.map(function(Q){var f=!!Q.emojiId&&_.Gy(c.emojiManager,Q.emojiId);
return f?Object.assign({},f,Q):null}).filter(TRz):[]:[]};
_.J.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.J.computeAriaLabel_=function(S){return _.Em(S)};
_.J.computeAriaActivedescendant_=function(S,c){return S&&S[c]?S[c].emojiId||"":""};
_.J.handleLongPressEmojiWithVariants=function(S,c){this.changeFocusToEmoji(S.emojiId,!1);this.openVariantSelector(S,c)};
_.J.onMouseDown=function(S){var c=this;this.hostElement!==document.activeElement&&(this.JSC$12106_ignoreNextFocus_=!0);if(S.button===0){var Q=_.VI(S);if(Q instanceof HTMLImageElement){var f=_.Ur(this.hostElement).querySelector("#repeat").itemForElement(Q);this.emojiContainsVariants(f)&&(this.longPressTimeoutId=setTimeout(function(){c.handleLongPressEmojiWithVariants(f,Q)},500))}}};
_.J.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.J.onFocus=function(){this.JSC$12106_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12106_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.emojiContainsVariants=function(S){return!!(S&&S.variantIds&&S.variantIds.length)};
_.J.onClick=function(S){clearTimeout(this.longPressTimeoutId);S=_.VI(S);if(S instanceof HTMLImageElement){var c=S.id;this.changeFocusToEmoji(c,!1);var Q=this.getEmoji(c),f;if(f=this.shouldUseStickyPreferences&&this.emojiContainsVariants(Q)){var U;f=!((U=this.emojiManager.emojiMap[c])!=null&&U.stickyPrefId)}f?(U=_.Ur(this.hostElement).querySelector("#repeat").itemForElement(S),this.openVariantSelector(U,S)):_.Az(this.hostElement,"yt-emoji-select",Q)}};
_.J.isActiveEmojiWithVariants=function(S,c){return S&&c?c.stickyPrefId?S===c.stickyPrefId:S===c.emojiId:!1};
_.J.onCloseEmojiVariantSelector=function(S){this.activeEmojiWithVariantsId===S&&(this.activeEmojiWithVariantsId="")};
_.J.onMouseOver_=function(S){S=_.VI(S);S instanceof HTMLImageElement&&_.Az(this.hostElement,"yt-emoji-hover",_.Gy(this.emojiManager,S.id))};
_.J.changeFocus_=function(S,c){this.focusedIndex=(this.focusedIndex+S+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(S=this.emoji[this.focusedIndex],c&&(this.showFocus=!0,_.Ur(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.Az(this.hostElement,"yt-emoji-hover",S)))};
_.J.changeFocusToEmoji=function(S,c){if(S){var Q=this.emoji.findIndex(function(f){return f.emojiId===S});
Q!==-1&&this.changeFocus_(Q-this.focusedIndex,c)}};
_.J.onKeyDown_=function(S){switch(S.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var c=this.emoji[this.focusedIndex];if(c&&c.emojiId){if(this.emojiContainsVariants(c)){var Q=_.Ur(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(c,Q)}else _.Az(this.hostElement,"yt-emoji-select",WJ(this.emojiManager,c.emojiId)),this.hostElement.focus();S.preventDefault()}}break;case 40:this.changeFocus_(1,!0);S.preventDefault();break;case 38:this.changeFocus_(-1,!0),
S.preventDefault()}};
_.J.onEmojiStickyPreferenceChanged=function(S,c){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&S.emojiId&&S.variantIds&&S.variantIds.includes(c)&&this.activeEmojiWithVariantsId!==c&&this.setStickyEmojiPreference(S.emojiId,c)};
_.J.openVariantSelector=function(S,c){this.activeEmojiWithVariantsId=S.stickyPrefId||S.emojiId||"";_.Az(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:S,target:c})};
_.J.setStickyEmojiPreference=function(S,c){if(this.data){var Q=this.emoji.findIndex(function(U){return U.emojiId===S});
if(Q!==-1){var f=this.emoji[Q];f.stickyPrefId=c;this.set("emoji."+Q,Object.assign({},f));this.activeEmojiWithVariantsId=c}}};
fs.prototype.onKeyDown_=fs.prototype.onKeyDown_;fs.prototype.onMouseOver_=fs.prototype.onMouseOver_;fs.prototype.onClick=fs.prototype.onClick;fs.prototype.onBlur_=fs.prototype.onBlur_;fs.prototype.onFocus=fs.prototype.onFocus;fs.prototype.onMouseUp=fs.prototype.onMouseUp;fs.prototype.onMouseDown=fs.prototype.onMouseDown;fs.prototype.dataChanged=fs.prototype.dataChanged;fs.prototype.disableIncrementalLoadingChanged_=fs.prototype.disableIncrementalLoadingChanged_;fs.prototype.emojiManagerChanged_=fs.prototype.emojiManagerChanged_;
fs.prototype.emojiChanged_=fs.prototype.emojiChanged_;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],fs.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],fs.prototype,"data",void 0);_.d([_.Z({computed:"computeId_(data)"}),_.P("design:type",String)],fs.prototype,"id",void 0);_.d([_.Z({computed:"computeEmoji(data)"}),_.P("design:type",Array)],fs.prototype,"emoji",void 0);_.d([_.Z(),_.P("design:type",Number)],fs.prototype,"skinTone",void 0);
_.d([_.Z(),_.P("design:type",_.Zp)],fs.prototype,"emojiManager",void 0);_.d([_.Z(),_.P("design:type",Boolean)],fs.prototype,"disableIncrementalLoading",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],fs.prototype,"focusedIndex",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],fs.prototype,"showFocus",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.P("design:type",Object)],fs.prototype,"ariaLabel",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.P("design:type",Object)],fs.prototype,"ariaActivedescendant",void 0);_.d([_.Z({value:60}),_.P("design:type",Number)],fs.prototype,"domRepeatTargetFramerate",void 0);_.d([_.Z({value:1}),_.P("design:type",Number)],fs.prototype,"domRepeatInitialCount",void 0);_.d([_.Z({value:""}),_.P("design:type",String)],fs.prototype,"activeEmojiWithVariantsId",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],fs.prototype,"shouldUseStickyPreferences",void 0);_.d([_.B0("emoji"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fs.prototype,"emojiChanged_",null);_.d([_.B0("emojiManager"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fs.prototype,"emojiManagerChanged_",null);
_.d([_.B0("disableIncrementalLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fs.prototype,"disableIncrementalLoadingChanged_",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fs.prototype,"dataChanged",null);_.d([_.FV("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],fs.prototype,"onMouseDown",null);
_.d([_.FV("mouseup"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fs.prototype,"onMouseUp",null);_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fs.prototype,"onFocus",null);_.d([_.FV("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fs.prototype,"onBlur_",null);
_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],fs.prototype,"onClick",null);_.d([_.FV("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],fs.prototype,"onMouseOver_",null);_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],fs.prototype,"onKeyDown_",null);
_.d([_.wM({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],fs);
_.k(fs,"yt-emoji-picker-category-renderer",function(){if(fXl===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;QeH===void 0&&(QeH=document.createElement("template"));var f=QeH;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);fXl=S}S=fXl;return S},{mode:2});var UQH;var JxJ;var aXp;var Axz;var Ut=function(){var S=_.W.apply(this,arguments)||this;S.ariaLabel=null;S.ariaActivedescendant=null;S.getFormattedStringRawText=_.Em;S.JSC$12112_ignoreNextFocus_=!1;return S};
_.C(Ut,_.W);_.J=Ut.prototype;_.J.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")};
_.J.emojiUrl=function(S){var c,Q;S=(c=WJ(this.emojiManager,S,!0))==null?void 0:(Q=c.image)==null?void 0:Q.thumbnails;return _.U2(S,24)||""};
_.J.emojiAlt=function(S){var c=this.get("image.accessibility.accessibilityData.label",S);return c?c:S.isCustomEmoji?S.shortcuts[0]:S.emojiId};
_.J.emojiId=function(S){return"emoji"+S};
_.J.computeId_=function(S){return S.categoryId||""};
_.J.computeAriaActivedescendant_=function(S){return this.emoji&&S<this.emoji.length?this.emojiId(S):""};
_.J.emojiChanged_=function(){this.changeFocus_(0,!1);for(var S=_.Kv(),c=0;c<this.emoji.length;c++){var Q={veType:88013,elementIndex:c},f=this.emoji[c];f.isCustomEmoji&&(f=document.querySelector(("#"+f.emojiId).replace("/","\\/")))&&(Q=_.NK(S,Q))&&(f.visualElement=Q)}};
_.J.computeEmoji_=function(S){var c=this;return this.emojiManager?S.emojiIds.map(function(Q){return _.Gy(c.emojiManager,Q,!0)}).filter(w4p):[]};
_.J.titleOffsetChanged_=function(){var S=this.hostElement.getBoundingClientRect(),c=_.Ur(this.hostElement).querySelector("#title").getBoundingClientRect();S=Math.max(0,Math.min(this.titleOffset,S.height-c.height));_.Ur(this.hostElement).querySelector("#title").style.top=S+"px"};
_.J.onEmojiMouseOver_=function(S){_.Az(this.hostElement,"yt-emoji-hover",S.model.item)};
_.J.onEmojiTap_=function(S){this.data.command&&(S=emp(_.fl().resolve(_.QS(kL)),this.data.command,S),_.Az(this.hostElement,"yt-navigate",S))};
_.J.emojiAriaLabel=function(S){return S.shortcuts[0]};
_.J.emojiAriaSelected=function(S,c,Q){return S&&Q==c?"true":"false"};
_.J.changeFocus_=function(S,c){var Q=this.emoji.length;this.focusedIndex=(this.focusedIndex+S+Q)%Q;S=this.emoji[this.focusedIndex];if(c){var f;(f=_.Ur(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||f.scrollIntoView(!1);_.Az(this.hostElement,"yt-emoji-hover",S)}};
_.J.onMouseDown_=function(){this.JSC$12112_ignoreNextFocus_=!0};
_.J.onFocus_=function(){this.JSC$12112_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$12112_ignoreNextFocus_=!1};
_.J.onBlur_=function(){this.showFocus=!1};
_.J.onKeyDown_=function(S){switch(S.keyCode){case 13:this.onEmojiTap_(S);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);S.preventDefault();break;case 38:this.changeFocus_(-1,!0),S.preventDefault()}};
Ut.prototype.onKeyDown_=Ut.prototype.onKeyDown_;Ut.prototype.onBlur_=Ut.prototype.onBlur_;Ut.prototype.onFocus_=Ut.prototype.onFocus_;Ut.prototype.onMouseDown_=Ut.prototype.onMouseDown_;Ut.prototype.onEmojiTap_=Ut.prototype.onEmojiTap_;Ut.prototype.titleOffsetChanged_=Ut.prototype.titleOffsetChanged_;Ut.prototype.emojiChanged_=Ut.prototype.emojiChanged_;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Ut.prototype,"ytComponentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Ut.prototype,"data",void 0);_.d([_.Z({computed:"computeId_(data)"}),_.P("design:type",String)],Ut.prototype,"id",void 0);_.d([_.Z({computed:"computeEmoji_(data)"}),_.P("design:type",Array)],Ut.prototype,"emoji",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Ut.prototype,"titleOffset",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.P("design:type",Object)],Ut.prototype,"ariaLabel",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.P("design:type",Object)],Ut.prototype,"ariaActivedescendant",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Ut.prototype,"showFocus",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Ut.prototype,"focusedIndex",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],Ut.prototype,"emojiManager",void 0);
_.d([_.B0("emoji"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"emojiChanged_",null);_.d([_.B0("titleOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"titleOffsetChanged_",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Ut.prototype,"onEmojiTap_",null);
_.d([_.FV("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"onMouseDown_",null);_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"onFocus_",null);_.d([_.FV("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ut.prototype,"onBlur_",null);
_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Ut.prototype,"onKeyDown_",null);_.d([_.wM({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],Ut);
_.k(Ut,"yt-emoji-picker-upsell-category-renderer",function(){if(Axz===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;aXp===void 0&&(aXp=document.createElement("template"));var f=aXp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Axz=S}S=Axz;return S},{mode:2});var XkJ;var OZd;var Jv=function(){var S=_.W.apply(this,arguments)||this;S.scrollAction="lock";S.verticalAlign="top";return S};
_.C(Jv,_.W);_.J=Jv.prototype;_.J.onClick=function(S){S=_.VI(S);S instanceof HTMLImageElement&&_.Az(this.hostElement,"yt-emoji-select",_.Gy(this.emojiManager,S.id))};
_.J.openSelector=function(){this.ironOverlayBehavior.open()};
_.J.onDomChange=function(){EKp(this.ytEmojiSelectorBehavior)};
_.J.computeIsFamilySelector=function(S){var c;return(S==null?void 0:(c=S.emoji)==null?void 0:c.emojiId)==="\ud83d\udc6a"};
_.J.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var S=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];S&&S.emojiId&&(_.Az(this.hostElement,"yt-emoji-select",_.Gy(this.emojiManager,S.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.Rh.Object.defineProperties(Jv.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var S=this,c,Q,f;return this.emojiManager&&((c=this.data)==null?0:(Q=c.emoji)==null?0:(f=Q.variantIds)==null?0:f.length)?this.data.emoji.variantIds.map(function(U){return!!U&&_.Gy(S.emojiManager,U)}).filter(function(U){return!!U}):[]}}});
Jv.prototype.onClick=Jv.prototype.onClick;_.d([_.p(_.LO),_.P("design:type",Object)],Jv.prototype,"ironOverlayBehavior",void 0);_.d([_.p(ths),_.P("design:type",Object)],Jv.prototype,"ytEmojiSelectorBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Jv.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],Jv.prototype,"emojiManager",void 0);_.d([_.Z(),_.P("design:type",Object)],Jv.prototype,"scrollAction",void 0);_.d([_.Z(),_.P("design:type",Object)],Jv.prototype,"verticalAlign",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.P("design:type",Boolean)],Jv.prototype,"isFamilySelector",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Jv.prototype,"emojiVariants",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],Jv.prototype,"onClick",null);_.d([_.wM({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],Jv);
_.k(Jv,"yt-emoji-variant-selector",function(){if(OZd===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;XkJ===void 0&&(XkJ=document.createElement("template"));var f=XkJ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);OZd=S}S=OZd;return S},{mode:2});var zmd=/:/g,xQd=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],av=function(){var S=_.W.apply(this,arguments)||this;S.emojiVariantSelector=null;S.emojiMultiPersonSelector=null;S.identity=_.gp;S.lastAnimationTime_=0;S.animationStart_=null;S.animationEnd_=null;return S};
_.C(av,_.W);_.J=av.prototype;
_.J.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}}};
_.J.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.g4)};
_.J.attached=function(){_.Fa&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&VKd(this.emojiManager)};
_.J.dataChanged=function(){var S;if((S=this.data)==null?0:S.categories){S=this.emojiManager;var c=this.getCustomEmojiIds();S.pickerCustomEmojiIds=[].concat(_.Hs(dXs),_.Hs(c))}};
_.J.getCustomEmojiIds=function(){var S,c=(S=this.data.categories)==null?void 0:S.find(function(a){var X;return((X=a.emojiPickerCategoryRenderer)==null?void 0:X.categoryId)&&xQd.includes(a.emojiPickerCategoryRenderer.categoryId)}),Q;
S=(Q=this.data.categories)==null?void 0:Q.find(function(a){return a.emojiPickerUpsellCategoryRenderer});
var f,U;return[c==null?void 0:(f=c.emojiPickerCategoryRenderer)==null?void 0:f.emojiIds,S==null?void 0:(U=S.emojiPickerUpsellCategoryRenderer)==null?void 0:U.emojiIds].flat().filter(function(a){return!!a})};
_.J.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.J.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.J.updateCategoriesAndPlaceholderInternal=function(S,c){var Q=this;S&&c&&(this.categories=S.categories||[],this.categoryButtons=S.categoryButtons||[],this.resetPlaceholder(),this.search="",_.gM(function(){Q.updateButtons_()}))};
_.J.computeId_=function(S){return S.id||""};
_.J.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(S){return S.emojiPickerCategoryRenderer&&S.emojiPickerCategoryRenderer.emojiData}):!1};
_.J.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.J.onShowEmojiVariantSelector=function(S){var c=S.detail.emojiData;c.variantIds&&c.variantIds.length&&(c.multiSelectorThumbnailRow&&c.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:c,target:S.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:c,target:S.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onIronOverlayClosed=function(S){var c=RAe(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");c&&S.composedPath&&(S.composedPath().includes(_.Ur(this.hostElement).querySelector("#emoji-variant-selector"))||S.composedPath().includes(_.Ur(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.XF(this.hostElement,"yt-close-emoji-variant-selector",[c.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.J.onEmojiVariantSelectorMouseup=function(S){var c=S.target.firstChild;this.variantSelectorOpened&&c&&_.gM(function(){c.noCancelOnOutsideClick=!1},100)};
_.J.onEmojiVariantSelectorMousedown=function(S){S=S.target.firstChild;this.variantSelectorOpened&&S&&(S.noCancelOnOutsideClick=!1)};
_.J.onSelectCategory_=function(S){var c=this.search!="";this.search="";for(var Q=_.Ur(this.hostElement).querySelector("#categories").children,f=0;f<Q.length;f++){var U=Q[f];if(U.id==S.detail.categoryId){c?(_.Ur(this.hostElement).querySelector("#categories").scrollTop=U.offsetTop,this.updateButtons_()):(this.animationStart_=_.Ur(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=U.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.J.onEmojiHover_=function(S){this.placeholder=S.detail.shortcuts?S.detail.shortcuts[0]:""};
_.J.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.J.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.J.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.J.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.J.computeSearchCategory_=function(S){S=S.replace(zmd,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();S=S.split(" ");for(var c=[],Q=this.emojiManager.emojis,f=0;f<Q.length;f++){var U=Q[f];if(U.searchTerms)for(var a=0;a<U.searchTerms.length;a++){for(var X=U.searchTerms[a].toLocaleLowerCase(),z=!1,x=0;x<S.length;x++)if(X.indexOf(S[x])!=-1){z=!0;break}if(z&&(!U.isCustomEmoji||!U.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(U.emojiId))){c.push(U.emojiId);
break}}}return{categoryId:-1,emojiIds:c}};
_.J.computeSearchEmptyMessage_=function(S,c){return S&&c&&c.emojiIds&&c.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.J.computeSearching_=function(S){return this.emojiManager&&S.replace(zmd,"").length>1};
_.J.computeSkinToneHidden=function(){var S;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((S=this.data)==null||!S.hideSkinTonePicker)};
_.J.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.J.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.J.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.J.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.J.selectSkinTone_=function(S){S=Number(S.target.getAttribute("tone"));this.set("emojiManager.skinTone",S);_.XF(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[S]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.J.skinToneChanged_=function(){_.Ur(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var S=_.Ur(this.hostElement).querySelector("#dropdown-content").children,c=0;c<S.length;c++)c===this.skinTone?S[c].setAttribute("selected",""):S[c].removeAttribute("selected")};
_.J.animateScroll_=function(S){this.lastAnimationTime_||(this.lastAnimationTime_=S);S-=this.lastAnimationTime_;S<200?(_.Ur(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*S/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.Ur(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.J.searchChanged_=function(){this.updateButtons_()};
_.J.updateButtons_=function(){var S=null;if(!this.search)for(var c=_.Ur(this.hostElement).querySelector("#categories").scrollTop,Q=_.Ur(this.hostElement).querySelector("#categories").children,f=0;f<Q.length;f++){var U=Q[f];U.offsetTop<=c&&(S=U.id)}c=_.Ur(this.hostElement).querySelector("#category-buttons").children;for(Q=0;Q<c.length;Q++)f=c[Q],f.active=f.id===S};
av.prototype.searchChanged_=av.prototype.searchChanged_;av.prototype.skinToneChanged_=av.prototype.skinToneChanged_;av.prototype.onEmojiHover_=av.prototype.onEmojiHover_;av.prototype.onSelectCategory_=av.prototype.onSelectCategory_;av.prototype.onShowEmojiVariantSelector=av.prototype.onShowEmojiVariantSelector;av.prototype.updateCategoriesAndPlaceholder_=av.prototype.updateCategoriesAndPlaceholder_;av.prototype.dataChanged=av.prototype.dataChanged;
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],av.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],av.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],av.prototype,"data",void 0);_.d([_.Z({value:function(){return[]}}),
_.P("design:type",Array)],av.prototype,"categories",void 0);_.d([_.Z({value:function(){return[]}}),
_.P("design:type",Array)],av.prototype,"categoryButtons",void 0);_.d([_.Z({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.P("design:type",Boolean)],av.prototype,"disableScroll",void 0);_.d([_.Z({computed:"computeId_(data)",reflectToAttribute:!0}),_.P("design:type",String)],av.prototype,"id",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],av.prototype,"selected",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],av.prototype,"disableIncrementalLoading",void 0);_.d([_.Z(),_.P("design:type",String)],av.prototype,"placeholder",void 0);_.d([_.Z({value:""}),_.P("design:type",String)],av.prototype,"search",void 0);_.d([_.Z({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.P("design:type",Boolean)],av.prototype,"searching",void 0);_.d([_.Z({computed:"computeSearchCategory_(search)"}),_.P("design:type",Object)],av.prototype,"searchCategory",void 0);
_.d([_.Z({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.P("design:type",Object)],av.prototype,"searchEmptyMessage",void 0);_.d([_.Z({computed:"identity(emojiManager.skinTone)"}),_.P("design:type",Number)],av.prototype,"skinTone",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],av.prototype,"skinToneOpened",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],av.prototype,"variantSelectorOpened",void 0);
_.d([_.Z({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.P("design:type",Boolean)],av.prototype,"skinToneHidden",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],av.prototype,"emojiManager",void 0);_.d([_.Z(),_.P("design:type",Object)],av.prototype,"emojiVariantSelector",void 0);_.d([_.Z(),_.P("design:type",Object)],av.prototype,"emojiMultiPersonSelector",void 0);
_.d([_.Z({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.P("design:type",Boolean)],av.prototype,"shouldUseStickyPreferences",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],av.prototype,"dataChanged",null);_.d([_.B0("data","selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],av.prototype,"updateCategoriesAndPlaceholder_",null);
_.d([_.FV("yt-show-emoji-variant-selector"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],av.prototype,"onShowEmojiVariantSelector",null);_.d([_.FV("yt-emoji-picker-select-category"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],av.prototype,"onSelectCategory_",null);_.d([_.FV("yt-emoji-hover"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],av.prototype,"onEmojiHover_",null);
_.d([_.B0("skinTone"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],av.prototype,"skinToneChanged_",null);_.d([_.B0("search"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],av.prototype,"searchChanged_",null);_.d([_.wM({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],av);
_.k(av,"yt-emoji-picker-renderer",function(){if(JxJ===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;UQH===void 0&&(UQH=document.createElement("template"));var f=UQH;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);JxJ=S}S=JxJ;return S},{mode:2});var Av=function(){var S=_.W.apply(this,arguments)||this;S.emojiManager=_.g4;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.selectedIndex=1;S.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return S};
_.C(Av,_.W);_.J=Av.prototype;_.J.handleEmojiCustomizationVisible=function(S){this.emojiPickerRenderer.selected=S;this.selectedIndex=1;S?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.J.emojiCustomizationSetChanged=function(){var S;(S=this.data)!=null&&S.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.A$(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.J.updateSaveButtonState=function(S){var c;(c=this.data)!=null&&c.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.Ns("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:S}))};
_.J.emojiUrl=function(S){S=_.Gy(this.emojiManager,S);if(!S)return"";var c;S=(c=S.image)==null?void 0:c.thumbnails;return _.U2(S,24)||""};
_.J.emojiAlt=function(S){var c=_.Gy(this.emojiManager,S);if(!c)return S;var Q,f,U,a=(c==null?void 0:(Q=c.image)==null?void 0:(f=Q.accessibility)==null?void 0:(U=f.accessibilityData)==null?void 0:U.label)||"";return a?a:c.isCustomEmoji?c.shortcuts[0]:c.emojiId||S};
_.J.emojiAriaLabel=function(S){var c,Q;return((c=_.Gy(this.emojiManager,S))==null?void 0:(Q=c.shortcuts)==null?void 0:Q[0])||S};
_.J.onEmojiClick=function(S){S.model.index!==0&&(this.selectedIndex=S.model.index)};
_.J.onEmojiSelect=function(S){S=S.detail;var c,Q;((c=this.data)==null?0:c.emojiCustomizationSetEntityKey)&&((Q=this.emojiCustomizationSet)==null?0:Q.emojiId)&&S.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,S.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.Ns("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,S.emojiId,this.selectedIndex)}))};
_.J.canEditEmoji=function(S,c,Q){S=S.indexOf(c);return S===Q||S===0||Q===0?!1:!0};
_.J.getUpdatedEmojiIdList=function(S,c,Q){var f=S.indexOf(c);S=[].concat(_.Hs(S));f>=0&&(S[f]=S[Q]);S[Q]=c;return S};
_.Rh.Object.defineProperties(Av,{template:{configurable:!0,enumerable:!0,get:function(){if(TEl===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;qwi===void 0&&(qwi=document.createElement("template"));var f=qwi;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);TEl=S}S=TEl;return S}}});
Av.prototype.onEmojiSelect=Av.prototype.onEmojiSelect;_.d([_.p(_.rc),_.P("design:type",Object)],Av.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Av.prototype,"ytActionHandlerBehavior",void 0);_.d([_.nU("yt-emoji-picker-renderer"),_.P("design:type",Object)],Av.prototype,"emojiPickerRenderer",void 0);
_.d([_.Z({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(S,c){return _.FT(S.entities,"emojiCustomizationSetEntity",c)},
observer:"emojiCustomizationSetChanged"}),_.P("design:type",Object)],Av.prototype,"emojiCustomizationSet",void 0);_.d([_.Z(),_.P("design:type",Object)],Av.prototype,"originalEmojiSet",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],Av.prototype,"emojiManager",void 0);_.d([_.Z(),_.P("design:type",Object)],Av.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Av.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],Av.prototype,"selectedIndex",void 0);
_.d([_.FV("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Av.prototype,"onEmojiSelect",null);_.d([_.wM({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],Av);var F7H;var Bz$;var IXT;var nXp;var Xy=function(){var S=_.W.apply(this,arguments)||this;S.authorBadges=[];return S};
_.C(Xy,_.W);_.J=Xy.prototype;_.J.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.J.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]]"}}}}}};
_.J.dataChanged=function(){var S=zHZ(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",S)};
_.J.updateMessage=function(){var S=this.data.message,c=_.Ur(_.Ur(this.hostElement).querySelector("#message"));c.textContent="";S&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S))};
_.J.shouldSupportWholeItemClick=function(){return!0};
_.J.onShowOriginalClick=function(S){S.preventDefault();this.showOriginal=!0};
_.J.computeShowBar=function(S,c,Q){return S&&c||Q};
_.J.computeAuthorBadges=function(S){return S.authorBadges||[]};
_.J.computeAuthorIsOwner=function(S){return!!xdo(S.authorBadges,"owner")};
_.J.computeAuthorNameColor=function(S){var c;if(_.u("live_chat_author_name_color_usernames")&&(S==null?0:(c=S.authorName)==null?0:c.simpleText))return _.N$T(_.KFp(S.authorName.simpleText));if(_.u("live_chat_seed_color_usernames")&&(S==null?0:S.authorSeedColorArgb))return _.N$T(_.OX(S.authorSeedColorArgb));if(_.u("live_chat_colored_usernames"))return"#cc0000";var Q;return _.u("live_chat_simple_color_usernames")&&(S==null?0:(Q=S.authorName)==null?0:Q.simpleText)&&(S==null?0:S.authorUsernameColorLight)&&
(S==null?0:S.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.OX(S.authorUsernameColorDark):_.OX(S.authorUsernameColorLight):""};
Xy.prototype.updateMessage=Xy.prototype.updateMessage;Xy.prototype.dataChanged=Xy.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Xy.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],Xy.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Xy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Xy.prototype,"data",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Xy.prototype,"showOriginal",void 0);_.d([_.Z({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Xy.prototype,"isDimmed",void 0);_.d([_.Z({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Xy.prototype,"showBar",void 0);
_.d([_.Z({computed:"computeAuthorBadges(data)"}),_.P("design:type",Array)],Xy.prototype,"authorBadges",void 0);_.d([_.Z({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Xy.prototype,"authorIsOwner",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Xy.prototype,"inCollapsedBanner",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Xy.prototype,"inBanner",void 0);
_.d([_.Z({value:_.u("live_chat_hide_avatars"),reflectToAttribute:!0}),_.P("design:type",Boolean)],Xy.prototype,"avatarHidden",void 0);_.d([_.Z({computed:"computeAuthorNameColor(data)"}),_.P("design:type",String)],Xy.prototype,"authorNameColor",void 0);_.d([_.Z(),_.P("design:type",_.vJ)],Xy.prototype,"participantsManager",void 0);_.d([_.Z({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.P("design:type",Object)],Xy.prototype,"filledButtonOverrides",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xy.prototype,"dataChanged",null);_.d([_.B0("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Xy.prototype,"updateMessage",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Xy);
_.k(Xy,"yt-live-chat-text-message-renderer",function(){if(nXp===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;IXT===void 0&&(IXT=document.createElement("template"));var f=IXT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);nXp=S}S=nXp;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Ot=function(){var S=_.W.apply(this,arguments)||this;S.tonalButtonOverrides={type:"tonal",style:"overlay"};return S};
_.C(Ot,_.W);
Ot.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]]"}}}}}};
Ot.prototype.shouldSupportInlineActionButtons=function(){return!0};
Ot.prototype.shouldSupportWholeItemClick=function(){return!0};
_.Rh.Object.defineProperties(Ot.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],Ot.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ot.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",_.vJ)],Ot.prototype,"participantsManager",void 0);
_.d([_.Z(),_.P("design:type",Object)],Ot.prototype,"tonalButtonOverrides",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.infoDialogButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ot.prototype,"hasInfoDialogButton",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],Ot);
_.k(Ot,"yt-live-chat-auto-mod-message-renderer",function(){if(Bz$===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;F7H===void 0&&(F7H=document.createElement("template"));var f=F7H;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Bz$=S}S=Bz$;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var bZd;var Nzd;var K7H;var $Qu=function(){return _.W.apply(this,arguments)||this};
_.C($Qu,_.W);_.d([_.Z(),_.P("design:type",Object)],$Qu.prototype,"data",void 0);_.d([_.e({is:"ytd-factoid-renderer",disableElementRegistration:!0})],$Qu);
_.k($Qu,"ytd-factoid-renderer",function(){if(K7H!==void 0)return K7H;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return K7H=S},{mode:1});var zK=function(){return _.W.apply(this,arguments)||this};
_.C(zK,_.W);zK.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.d([_.Z(),_.P("design:type",Object)],zK.prototype,"data",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],zK);
_.k(zK,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Nzd===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;bZd===void 0&&(bZd=document.createElement("template"));var f=bZd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Nzd=S}S=Nzd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var u7i;var jeu;var xO=function(){return _.W.apply(this,arguments)||this};
_.C(xO,_.W);xO.prototype.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xO.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Boolean)],xO.prototype,"menuFocused",void 0);_.d([_.Z(),_.P("design:type",Object)],xO.prototype,"data",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],xO.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],xO);
_.k(xO,"yt-live-chat-donation-announcement-renderer",function(){if(jeu===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;u7i===void 0&&(u7i=document.createElement("template"));var f=u7i;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);jeu=S}S=jeu;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var lXd;var YQd,C$d=function(){if(YQd!==void 0)return YQd;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;lXd===void 0&&(lXd=document.createElement("template"));var f=lXd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return YQd=S};var Fy=function(){return _.W.apply(this,arguments)||this};
_.C(Fy,_.W);_.Rh.Object.defineProperties(Fy,{template:{configurable:!0,enumerable:!0,get:function(){return C$d()}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Fy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Fy.prototype,"data",void 0);_.d([_.wM({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],Fy);_.k(Fy,"yt-live-chat-empty-feed-view-model",function(){return C$d()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var HZh;var DQs;var BC=function(){return _.W.apply(this,arguments)||this};
_.C(BC,_.W);BC.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"}}}}}};
_.Rh.Object.defineProperties(BC.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var S,c;return{runs:[{text:(S=this.data)==null?void 0:(c=S.channelName)==null?void 0:c.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var S=[],c;if((c=this.data)==null||!c.channelBadges)return S;var Q;c=_.A((Q=this.data)==null?void 0:Q.channelBadges);for(Q=c.next();!Q.done;Q=c.next()){Q=_.Y(Q.value,CSd);var f=void 0,U=void 0;if((f=Q)==null?0:(U=f.badgeImage)==null?0:U.sources)f=void 0,U={liveChatAuthorBadgeRenderer:{tooltip:Q.tooltip,accessibility:{accessibilityData:{label:(f=_.Y(Q.rendererContext,_.jT))==null?void 0:f.label}}}},Q.badgeImage.sources[0].clientResource?U.liveChatAuthorBadgeRenderer.icon=
{iconType:Q.badgeImage.sources[0].clientResource.imageName}:U.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:Q.badgeImage.sources},S.push(U)}return S}}});
_.d([_.Z(),_.P("design:type",Object)],BC.prototype,"data",void 0);_.d([_.M("data.channelName"),_.P("design:type",Object),_.P("design:paramtypes",[])],BC.prototype,"channelName",null);_.d([_.M("data.channelBadges"),_.P("design:type",Array),_.P("design:paramtypes",[])],BC.prototype,"channelBadges",null);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],BC.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],BC);
_.k(BC,"yt-live-chat-identity-view-model",function(){if(DQs===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;HZh===void 0&&(HZh=document.createElement("template"));var f=HZh;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);DQs=S}S=DQs;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var pkh;var hme;var qQd;var Tzd;var Iv=function(){var S=_.W.apply(this,arguments)||this;S.hidden=!1;S.supportsInlineActionButtons=!0;return S};
_.C(Iv,_.W);Iv.prototype.ready=function(){var S;((S=document.querySelector("yt-live-chat-app"))==null?0:S.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
Iv.prototype.dataChanged=function(S){var c=(0,_.XV)(_.Ur(this.hostElement).querySelector("#detail-text"));c.textContent="";(S==null?0:S.detailText)&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S.detailText))};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Iv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],Iv.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Iv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({observer:"dataChanged"}),_.P("design:type",Object)],Iv.prototype,"data",void 0);
_.d([_.Z({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.P("design:type",Object)],Iv.prototype,"hidden",void 0);_.d([_.e({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],Iv);
_.k(Iv,"yt-live-chat-legacy-paid-message-renderer",function(){if(Tzd===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;qQd===void 0&&(qQd=document.createElement("template"));var f=qQd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Tzd=S}S=Tzd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var wki;var seT;var MFu={},ns=function(){return _.N_.apply(this,arguments)||this};
_.C(ns,_.N_);ns.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ns.prototype.onLiveChatMembershipItemBehaviorClick=ns.prototype.onLiveChatMembershipItemBehaviorClick;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ns.prototype,"data",void 0);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],ns.prototype,"onLiveChatMembershipItemBehaviorClick",null);_.d([_.KU()],ns);
MFu.YtLiveChatMembershipItemBehavior=[ns.prototype,_.m.YtRendererBehavior];var bg=function(){var S=_.W.apply(this,arguments)||this;S.supportsInlineActionButtons=!0;S.hasPrimaryHeaderText=!1;S.showOnlyHeader=!1;S.authorBadges=[];S.modern=_.u("web_button_rework_with_live");S.buttonOverrides={style:"overlay",type:"filled"};return S};
_.C(bg,_.W);_.J=bg.prototype;_.J.shouldSupportInlineActionButtons=function(){return!0};
_.J.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.J.ready=function(){var S=document.querySelector("yt-live-chat-app");S&&S.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.J.messageChanged=function(){var S=this.data.message,c=(0,_.XV)(_.Ur(this.hostElement).querySelector("#message"));c.textContent="";S&&c.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(S))};
_.J.computeHasPrimaryHeaderText=function(S){return!(!S||!S.headerPrimaryText)};
_.J.computeShowOnlyHeader=function(S,c){return this.isMessageEmpty(S,c)};
_.J.computeAuthorBadges=function(S){return S.authorBadges||[]};
_.J.isMessageEmpty=function(S,c){return!S||S.empty?!0:!S.message&&!S.inputField&&!c};
_.J.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.J.getInputElement=function(){return _.Ur(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.J.inputFocus=function(){var S=this.getInputElement();S&&S.focus()};
_.J.inputInsertEmoji=function(S){var c=this.getInputElement();c&&c.insertEmoji(S)};
_.J.inputMessage=function(){var S=this.getInputElement();return S&&this.data.inputField?(S.completeEmojis(),_.ey(S.liveChatRichMessageInput)):null};
_.J.onFooterButtonClick=function(){this.data.footerButton&&_.Az(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.J.shouldSupportWholeItemClick=function(){return!0};
bg.prototype.isDeletedChanged=bg.prototype.isDeletedChanged;bg.prototype.messageChanged=bg.prototype.messageChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bg.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],bg.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(MFu.YtLiveChatMembershipItemBehavior),_.P("design:type",Object)],bg.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bg.prototype,"data",void 0);_.d([_.Z({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.P("design:type",Object)],bg.prototype,"hasPrimaryHeaderText",void 0);_.d([_.Z({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.P("design:type",Object)],bg.prototype,"showOnlyHeader",void 0);
_.d([_.Z({computed:"computeAuthorBadges(data)"}),_.P("design:type",Array)],bg.prototype,"authorBadges",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bg.prototype,"modern",void 0);_.d([_.B0("data.message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bg.prototype,"messageChanged",null);_.d([_.B0("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bg.prototype,"isDeletedChanged",null);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],bg);
_.k(bg,"yt-live-chat-membership-item-renderer",function(){if(seT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;wki===void 0&&(wki=document.createElement("template"));var f=wki;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);seT=S}S=seT;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var iZu;var ZZd;var N3=function(){return _.W.apply(this,arguments)||this};
_.C(N3,_.W);N3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],N3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],N3.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],N3);
_.k(N3,"yt-live-chat-mode-change-message-renderer",function(){if(ZZd===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;iZu===void 0&&(iZu=document.createElement("template"));var f=iZu;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);ZZd=S}S=ZZd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var GPs;var W7z;var Ks=function(){return _.W.apply(this,arguments)||this};
_.C(Ks,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],Ks.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ks.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],Ks);
_.k(Ks,"yt-live-chat-moderation-message-renderer",function(){if(W7z===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;GPs===void 0&&(GPs=document.createElement("template"));var f=GPs;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);W7z=S}S=W7z;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var gXz;var eme;var $O=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_button_rework");return S};
_.C($O,_.W);$O.prototype.onClick=function(){var S;if((S=this.data)!=null&&S.onClickCommand){var c;_.BI.instance.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],$O.prototype,"modern",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$O.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],$O.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],$O.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$O.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],$O.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],$O);
_.k($O,"yt-live-chat-offer-click-count-message-renderer",function(){if(eme===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;gXz===void 0&&(gXz=document.createElement("template"));var f=gXz;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);eme=S}S=eme;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var kPd;var rxl=function(){return _.W.apply(this,arguments)||this};
_.C(rxl,_.W);_.d([_.Z(),_.P("design:type",Object)],rxl.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],rxl);
_.k(rxl,"yt-live-chat-placeholder-item-renderer",function(){if(kPd===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);kPd=S}S=kPd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var dQ_;var vXd;var P$p=new vq(7),ug=function(){var S=_.W.apply(this,arguments)||this;S.data={};return S};
_.C(ug,_.W);ug.prototype.dataChanged=function(){var S;((S=this.data)==null?0:S.class)&&_.a1(this.hostElement,this.data.class,!0);var c;((c=this.oldData)==null?0:c.class)&&_.a1(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
ug.prototype.computeTimestampString=function(S){return P$p.format(new Date(S/1E3))};
ug.prototype.dataChanged=ug.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],ug.prototype,"data",void 0);_.d([_.Z({computed:"computeTimestampString(data.timestampUsec)"}),_.P("design:type",String)],ug.prototype,"timestampString",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ug.prototype,"dataChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],ug);
_.k(ug,"yt-live-chat-server-error-message",function(){if(vXd===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;dQ_===void 0&&(dQ_=document.createElement("template"));var f=dQ_;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);vXd=S}S=vXd;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var L7$;var EXh;var jr=function(){var S=_.W.apply(this,arguments)||this;S.defaultToFilledIcon=!1;return S};
_.C(jr,_.W);jr.prototype.computeHasPrimaryColorIcon=function(S){return S==="SPARK"||S==="SPONSORSHIP_STAR"};
jr.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jr.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],jr.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],jr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jr.prototype,"defaultToFilledIcon",void 0);_.d([_.Z(),_.P("design:type",Object)],jr.prototype,"data",void 0);
_.d([_.Z({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.P("design:type",Boolean)],jr.prototype,"hasPrimaryColorIcon",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],jr);
_.k(jr,"yt-live-chat-viewer-engagement-message-renderer",function(){if(EXh===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;L7$===void 0&&(L7$=document.createElement("template"));var f=L7$;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);EXh=S}S=EXh;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var tFu;var lg=function(){var S=_.W.apply(this,arguments)||this;S.modernUpdate=!1;S.buttonStyle="overlay";S.buttonType="filled";return S};
_.C(lg,_.W);lg.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
lg.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lg.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lg.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lg.prototype,"modernUpdate",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],lg.prototype,"buttonStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],lg.prototype,"buttonType",void 0);
_.d([_.e({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],lg);
_.k(lg,"ytd-ad-hover-text-button-renderer",function(){if(tFu!==void 0)return tFu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tFu=S},{mode:1});var VFe;var YO=function(){var S=_.W.apply(this,arguments)||this;S.buttonOverrides={size:"XS"};S.modern=_.u("web_button_rework");return S};
_.C(YO,_.W);YO.prototype.onHelpTap=function(S){this.data&&this.data.informationDialog&&(_.Az(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),S.preventDefault(),S.stopPropagation())};
_.d([_.Z(),_.P("design:type",Object)],YO.prototype,"buttonOverrides",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],YO.prototype,"modern",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],YO.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],YO.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],YO);
_.k(YO,"ytd-live-chat-purchased-product-message-renderer",function(){if(VFe!==void 0)return VFe;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return VFe=S},{mode:1});var Rmd;var yxh;var Cs=function(){var S=_.W.apply(this,arguments)||this;S.isContainerDeleted=!1;return S};
_.C(Cs,_.W);Cs.prototype.onContextMenuClick=function(S){this.ytLiveChatItemBehavior.showContextMenu(S)};
Cs.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))};
Cs.prototype.isContainerDeletedChanged=Cs.prototype.isContainerDeletedChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],Cs.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Cs.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Cs.prototype,"isContainerDeleted",void 0);
_.d([_.Z(),_.P("design:type",String)],Cs.prototype,"deletedStateMessage",void 0);_.d([_.B0("isContainerDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cs.prototype,"isContainerDeletedChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],Cs);
_.k(Cs,"ytd-sponsorships-live-chat-header-renderer",function(){if(yxh!==void 0)return yxh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return yxh=S},{mode:1});var HC=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_button_rework_with_live");S.buttonOverrides={style:"overlay",type:"filled"};return S};
_.C(HC,_.W);HC.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]]"}}}}}};
HC.prototype.onCtaButtonClick=function(){var S,c=_.Y((S=this.data)==null?void 0:S.optInPrompt,_.GF);if(S=this.maybeGetButtonCommand(c)){var Q;(Q=_.Kv())==null||Q.clickCommand(S)}};
HC.prototype.maybeGetButtonCommand=function(S){return!S||!S.command||_.Y(S.command,Sas)===void 0&&_.Y(S.command,m9u)===void 0?null:S.command};
HC.prototype.shouldHideOptinPrompt=function(S,c){return!S||c};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],HC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],HC.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],HC.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HC.prototype,"modern",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],HC);
_.k(HC,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(Rmd!==void 0)return Rmd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Rmd=S},{mode:1});var oXh;var D4=function(){return _.W.apply(this,arguments)||this};
_.C(D4,_.W);D4.prototype.onContextMenuClick=function(S){this.ytLiveChatItemBehavior.showContextMenu(S)};
D4.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))};
D4.prototype.isDeletedChanged=D4.prototype.isDeletedChanged;_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],D4.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],D4.prototype,"data",void 0);_.d([_.B0("isDeleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],D4.prototype,"isDeletedChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],D4);
_.k(D4,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(oXh!==void 0)return oXh;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return oXh=S},{mode:1});var ps=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return S};
_.C(ps,_.W);_.J=ps.prototype;
_.J.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"}}}};
_.J.handleLiveChatAction=function(S){_.Y(S,n5d)?this.handleMarkChatItemAsDeletedAction(_.Y(S,n5d)):_.Y(S,IgT)&&this.handleRemoveChatItemAction(_.Y(S,IgT))};
_.J.handleLiveChatActions=function(S){S.forEach(this.handleLiveChatAction,this)};
_.J.handleMarkChatItemAsDeletedAction=function(S){var c=this,Q;((Q=this.data)==null?0:Q.items)&&this.data.items.forEach(function(f,U){var a=Object.keys(f)[0];Object.values(f)[0].id===S.targetItemId&&c.markAsDeleted("data.items",U,a,S.deletedStateMessage,S.showOriginalContentMessage)})};
_.J.handleRemoveChatItemAction=function(S){var c=this,Q;((Q=this.data)==null?0:Q.items)&&this.data.items.forEach(function(f,U){Object.values(f)[0].id===S.targetItemId&&c.splice("data.items",U,1)})};
_.J.markAsDeleted=function(S,c,Q,f,U){S=[S,c,Q].join(".");this.set(S+".deletedStateMessage",f);this.set(S+".showOriginalContentMessage",U)};
_.d([_.Z(),_.P("design:type",Object)],ps.prototype,"data",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],ps);
_.k(ps,"yt-live-chat-item-display-list-renderer",function(){if(hme===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;pkh===void 0&&(pkh=document.createElement("template"));var f=pkh;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);hme=S}S=hme;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var mQe;var Sls,cy_=function(){if(Sls!==void 0)return Sls;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;mQe===void 0&&(mQe=document.createElement("template"));var f=mQe;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return Sls=S};var hv=function(){var S=_.W.apply(this,arguments)||this;S.isHeader=!1;return S};
_.C(hv,_.W);hv.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.Rh.Object.defineProperties(hv,{template:{configurable:!0,enumerable:!0,get:function(){return cy_()}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],hv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hv.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],hv.prototype,"isHeader",void 0);_.d([_.wM({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],hv);_.k(hv,"yt-live-chat-item-display-renderer",function(){return cy_()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Qyz,fGe,X4_,Ay_;
Qyz={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}};fGe={home:"eohps",search:"eosps",watch:"eowps"};_.Ube=["watch","search","home"];
_.q3=function(){this.JSC$12223_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12223_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.WY("PRECONSTRUCTION_DELAY",0);this.signals_=_.g2();this.targetPage_=""};
_.q3.prototype.init=function(S,c){S=S===void 0?"":S;c=c===void 0?null:c;if(this.JSC$12223_isInitialized_)this.abort();else if(this.JSC$12223_isInitialized_=!0,S&&_.JyH(this,S),c){var Q=_.en(this.signals_,"pcl")?0:10,f=function(){for(var U=0,a;a=_.Ube[U++];)a!=S&&a!=c&&this.pendingPages_.push(a);_.aGT(this)}.bind(this);
this.signals_.parkOrScheduleJob(f,Q,"pcl")}};
_.q3.prototype.abort=function(){this.fragmentJobId_&&(_.Mq.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Ay_(this)};
_.JyH=function(S,c){S.JSC$12223_isInitialized_&&!S.targetPage_&&(S.targetPage_=c,X4_(S,c),S.isInitialPass_=!1,X4_(S,c),S.signals_.processSignal(fGe[S.targetPage_]),Ay_(S),_.aGT(S))};
_.aGT=function(S){S.pendingPages_.length&&!S.pagePreparerJobId_&&(S.pagePreparerJobId_=_.HG(_.Mq,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.JyH(this,this.pendingPages_.shift())}.bind(S),S.DEFAULT_DELAY_))};
X4_=function(S,c){if(c=Qyz[c])for(var Q in c){var f=!1,U=Q;Q.charAt(0)=="~"&&(f=!0,U=Q.substring(1));var a=c[Q];a=typeof a=="object"?a:{count:a};c[Q]=a;a.componentName=U;a.count>0&&(S.isInitialPass_?f||S.isSeenDuringInitialPass_[U]||(S.JSC$12223_queue_.push({componentName:U,count:1,signals:a.signals}),S.isSeenDuringInitialPass_[U]=!0,a.count--):S.JSC$12223_queue_.push(a))}};
Ay_=function(S){S.JSC$12223_queue_.length=0;S.targetPage_="";S.isInitialPass_=!0;S.signals_.processSignal("eop")};
_.q3.getInstance=function(){return _.Aw(_.q3)};var OdT=function(){this.signals=_.g2();this.init()};
OdT.prototype.startPreconstruction=function(){_.q3.getInstance().init(_.gC("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
OdT.prototype.init=function(){zNJ(this);window.Polymer&&GDJ&&cNz();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var S=_.QY.ytcsi;if(S&&S.gt&&(S=S.gt())&&S.tick&&(S.tick.aft>0||S.tick.pbs>0)&&(_.gC("IS_HOMEPAGE_COLD")||_.gC("IS_RESULTS_PAGE_COLD")||_.gC("IS_WATCH_PAGE_COLD"))){xbd(this);break a}nyT(mIz,this.onNotifications,this)}};
var zNJ=function(S){var c=function(){S.signals.processSignal("dl")};
document.readyState==="complete"?(_.dC(Error("uh"),"WARNING"),c()):_.Plz(window,"load",c)};
OdT.prototype.onNotifications=function(S){S.timer||(_.gC("IS_HOMEPAGE_COLD")||_.gC("IS_RESULTS_PAGE_COLD")||_.gC("IS_WATCH_PAGE_COLD"))&&xbd(this)};
var xbd=function(S){S.signals.parkOrScheduleJob(function(){S.signals.processSignal("eocs")},10,"eor")};
new OdT;var TK,F_z=function(){return _.N_.apply(this,arguments)||this};
_.C(F_z,_.N_);_.J=F_z.prototype;_.J.enableActiveViewMeasurement=function(S){if(this.isActiveViewEnabled(S)){var c=this.getUrlPrefixesFromCommand(S.viewableCommands);S=this.getUrlPrefixesFromCommand(S.endOfSessionCommands);if(!TK){var Q=_.a6("custom_active_view_tos_timeout_ms");TK=Q>0&&Q!==36E5?new wfY(this.getVersion(),Q):new wfY(this.getVersion())}MUr(TK,this.hostElement);ier(TK,this.hostElement,c,S)}};
_.J.stopActiveViewMeasurement=function(){TK&&MUr(TK,this.hostElement)};
_.J.isActiveViewEnabled=function(S){return!!S&&(this.hasAtLeastOneUrl(S.viewableCommands)||this.hasAtLeastOneUrl(S.endOfSessionCommands))};
_.J.hasAtLeastOneUrl=function(S){return!!S&&S.length>0&&S[0].loggingUrls!=null&&S[0].loggingUrls.length>0};
_.J.getVersion=function(){var S=_.WY("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(S==null?void 0:S.length)===2?S[1]:null};
_.J.getUrlPrefixesFromCommand=function(S){if(!S)return[];var c=[];S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,Q.loggingUrls){Q=_.A(Q.loggingUrls);for(var f=Q.next();!f.done;f=Q.next())f=f.value,f.baseUrl&&c.push(f.baseUrl)}return c};
_.d([_.KU()],F_z);var wL=[F_z.prototype];var BRH=function(){return _.N_.apply(this,arguments)||this};
_.C(BRH,_.N_);_.Rh.Object.defineProperties(BRH.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_entity_store_from_dependency_injection")?_.P0():_.V5()}}});
_.d([_.KU()],BRH);_.st=[sx.prototype,BRH.prototype];var IGd=["ytd-rich-shelf-renderer"],M3=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;S.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";S.followUpDialogPromise=null;S.followUpDialogPromiseResolve=null;S.followUpDialogPromiseReject=null;return S};
_.C(M3,_.N_);_.J=M3.prototype;_.J.dismissibleItemIsDismissedChanged_=function(S){_.u("kevlar_fluid_dismiss")&&(S?_.Az(this.hostElement,"yt-dismissible-item-dismissed"):_.Az(this.hostElement,"yt-dismissible-item-undismissed"))};
_.J.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.J.dismissibleItemReset_=function(){var S=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 _.n1(function(c,Q){S.followUpDialogPromiseResolve=c;S.followUpDialogPromiseReject=Q});
_.Az(this.hostElement,"yt-enable-lockup-interaction")};
_.J.dismissibleItemOnYtServiceRequestSent_=function(S,c){c.actions&&this.dismissibleItemProcessActions(c.actions,S)};
_.J.dismissibleItemOnRequestSent=function(S){if(_.u("web_button_rework"))for(var c=_.A(S.detail),Q=c.next();!Q.done;Q=c.next()){var f=void 0;(Q=(f=_.Y(Q.value,_.b2))==null?void 0:f.actions)&&this.dismissibleItemProcessActions(Q,S)}};
_.J.dismissibleItemOnCommandSent=function(S,c){c&&this.dismissibleItemProcessActions(c,S)};
_.J.setAndGetDismissedContentId=function(S){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+S};
_.J.replayDismissAction=function(S){this.dismissibleItemProcessActions([S])};
_.J.dismissibleItemProcessActions=function(S,c){for(var Q=0;Q<S.length;Q++){var f=S[Q],U=void 0;((U=_.Y(f,_.II))==null?0:U.commands)&&this.dismissibleItemProcessActions(_.Y(f,_.II).commands,c);if(_.Y(f,_.Yc)){if(U=_.Y(f,_.Yc),!U.replaceParentSection||IGd.includes(this.hostElement.nodeName.toLowerCase()))_.u("web_see_fewer_shorts_reactive_dismissal")&&U.groupDismissal&&syp(this,U.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(U),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Ns("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:f})),f=void 0,(f=c)==null||f.stopPropagation()}else if(_.Y(f,Hj$))this.dismissibleItemHandleHideEnclosingAction_(),f=void 0,(f=c)==null||f.stopPropagation();else if(_.Y(f,WJe))_.u("web_see_fewer_shorts_reactive_dismissal")&&(f=_.Y(f,WJe),U=void 0,((U=f)==null?0:U.targetGroupId)&&syp(this,{targetGroupId:f.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.Ns("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),f=void 0,(f=c)==null||f.stopPropagation();else if(_.Y(f,_.b2))(f=_.Y(f,_.b2).actions)&&_.FF(this.hostElement,f,this.hostElement),f=void 0,(f=c)==null||f.stopPropagation();else{var a=U=void 0;((U=_.Y(f,_.ee))==null?void 0:U.signal)!=="TELL_US_WHY"||((a=_.Y(f,_.ee))==null?0:a.targetId)&&_.u("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),f=void 0,(f=c)==null||f.stopPropagation())}}};
_.J.dismissibleItemOnYtServiceRequestCompleted_=function(S,c){var Q=this.get("feedbackResponses.0.followUpDialog",c.data);Q?this.followUpDialogPromiseResolve(Q):c.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(c.actions,S)};
_.J.dismissibleItemHandleReplaceEnclosingAction_=function(S){this.dismissedRenderer=S.item;this.isDismissed=!0;var c=null;(c=_.Ur(this.hostElement).querySelector("#dismissed"))&&_.tO(this,function(){_.RR(c)});
_.Az(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.J.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.J.dismissibleItemHandleUndoFeedbackAction_=function(){_.Az(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.J.dismissibleItemHandleTellUsWhySignalAction_=function(){var S=this;this.followUpDialogPromise.then(function(c){S.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:c}})})};
M3.prototype.dismissibleItemOnYtServiceRequestCompleted_=M3.prototype.dismissibleItemOnYtServiceRequestCompleted_;M3.prototype.dismissibleItemOnCommandSent=M3.prototype.dismissibleItemOnCommandSent;M3.prototype.dismissibleItemOnRequestSent=M3.prototype.dismissibleItemOnRequestSent;M3.prototype.dismissibleItemOnYtServiceRequestSent_=M3.prototype.dismissibleItemOnYtServiceRequestSent_;M3.prototype.dismissibleItemDataChanged_=M3.prototype.dismissibleItemDataChanged_;
M3.prototype.dismissibleItemIsDismissedChanged_=M3.prototype.dismissibleItemIsDismissedChanged_;_.d([_.p(_.Vv),_.P("design:type",Object)],M3.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],M3.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],M3.prototype,"isDismissed",void 0);_.d([_.Z(),_.P("design:type",Object)],M3.prototype,"dismissedRenderer",void 0);
_.d([_.B0("isDismissed"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],M3.prototype,"dismissibleItemIsDismissedChanged_",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],M3.prototype,"dismissibleItemDataChanged_",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],M3.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.d([_.FV("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],M3.prototype,"dismissibleItemOnRequestSent",null);
_.d([_.FV("yt-dismissible-item-action"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Array]),_.P("design:returntype")],M3.prototype,"dismissibleItemOnCommandSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],M3.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);_.d([_.KU()],M3);_.ig=[_.Vv,_.st,M3.prototype];var Z4=function(){var S=_.N_.apply(this,arguments)||this;S.disableGridStateAware=!1;S.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};S.currentGridClass="";return S};
_.C(Z4,_.N_);Z4.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.tO(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var S=this.gridStateAwareGetElement();_.a1(S,"grid",!0)}};
Z4.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Z4.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.Ur(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Z4.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var S="grid-disabled";else{S=_.Unh.getInstance();var c=this.get("pageSubtype");S=c&&c7d.includes(c)?"grid-disabled":S.currentSnapState_?S.currentSnapState_.className:null}(c=this.gridStateAwareGetElement())&&S!==this.currentGridClass&&(S&&_.a1(c,S,!0),this.currentGridClass&&_.a1(c,this.currentGridClass,!1),this.currentGridClass=S)};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Z4.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",String)],Z4.prototype,"gridStateAwareSizingElementSelector",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Z4.prototype,"disableGridStateAware",void 0);_.d([_.KU()],Z4);_.GK=[Z4.prototype,_.AN.YtActionHandlerBehavior];_.WC=new _.Sg("GUIDE_TOKEN");var er;_.gL={};er=function(){var S=_.N_.apply(this,arguments)||this;S.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 S};
_.C(er,_.N_);_.J=er.prototype;_.J.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var S=_.fl().resolve(_.QS(_.WC));S&&(this.guidePersistentAndVisible=S.getGuidePersistentAndVisible(),this.activeEndpoint=S.getActiveEndpoint(),this.guideOpened=S.getGuideOpened(),this.miniGuideVisible=S.getMiniGuideVisible())};
_.J.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.J.handleGuideStateAction=function(S){this.guidePersistentAndVisible=S};
_.J.handleMiniGuideStateAction=function(S){this.miniGuideVisible=S};
_.J.handleGuideOpenedAction=function(S){this.guideOpened=S};
_.J.handleActiveEndpointAction=function(S){this.activeEndpoint=S};
er.prototype.onActiveEndpointChange=er.prototype.onActiveEndpointChange;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],er.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],er.prototype,"guidePersistentAndVisible",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],er.prototype,"miniGuideVisible",void 0);_.d([_.Z(),_.P("design:type",Object)],er.prototype,"activeEndpoint",void 0);
_.d([_.B0("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],er.prototype,"onActiveEndpointChange",null);_.d([_.Z(),_.P("design:type",Boolean)],er.prototype,"guideOpened",void 0);_.d([_.KU()],er);_.gL.YtdGuideStateAwareBehavior=[];_.gL.YtdGuideStateAwareBehavior.push(er.prototype,_.AN.YtActionHandlerBehavior);var nSd=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],kO=function(){var S=_.N_.apply(this,arguments)||this;S.hoverJobId=0;S.JSC$12254_touched=!1;return S};
_.C(kO,_.N_);_.J=kO.prototype;_.J.created=function(){this.useExpandableTooltip=!nSd.includes(this.is)};
_.J.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.J.detached=function(){this.useExpandableTooltip=!1};
_.J.lockupOnDown=function(S){this.interactionElement&&!_.RZ(_.t4(S),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.J.lockupOnUp=function(S){this.interactionElement&&!_.RZ(_.t4(S),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.J.onTouchStart=function(){this.JSC$12254_touched=!0};
_.J.lockupOnMouseEnter=function(){var S=this,c=_.a6("kevlar_lockup_hover_delay",-1);this.JSC$12254_touched&&c>=0?(_.Mq.cancelJob(this.hoverJobId),this.hoverJobId=_.Mq.addJob(function(){S.lockupIsHovered=!0},8,c),this.JSC$12254_touched=!1):this.lockupIsHovered=!0};
_.J.lockupOnMouseLeave=function(){this.hoverJobId&&(_.Mq.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.J.lockupOnPopupClosed=function(S,c){var Q;((Q=c.popupRenderer)==null?void 0:Q.is)==="ytd-menu-popup-renderer"&&(S=c.popupRenderer.veData,c=_.wN(),S&&c&&_.Ez(c,[S]))};
_.J.lockupOnLockupRequested=function(S){var c=S.detail.videoIds[0],Q;S.detail&&c===((Q=this.data)==null?void 0:Q.videoId)&&(S.detail.returnValue=[this.data])};
_.J.lockupOnYtServiceRequestSent=function(S,c){if(S=c.actions)for(var Q=0;Q<S.length;Q++){var f=S[Q];if(f.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&c.ajaxPromise){var U=void 0,a=(U=_.Y(c.endpoint,_.MB))==null?void 0:U.playlistId;U=void 0;f=(U=f.removedVideoId)!=null?U:"";D0d(_.r2(),f,a)}else f.action==="ACTION_REMOVE_VIDEO"&&c.ajaxPromise&&(a=void 0,f=(a=f.setVideoId)!=null?a:"",_.pud(_.r2(),f))}};
_.J.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.J.lockupOnLockupEnabled=function(){if(!this.$){var S=_.fl().resolve(_.oZ).getCurrentPage(),c=this.getParentRenderer?this.getParentRenderer():void 0;_.i5(new _.Yr("component not ready",this.is,this.isAttached,S==null?void 0:S.is,c==null?void 0:c.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
kO.prototype.lockupOnLockupEnabled=kO.prototype.lockupOnLockupEnabled;kO.prototype.lockupOnLockupDisabled=kO.prototype.lockupOnLockupDisabled;kO.prototype.lockupOnYtServiceRequestSent=kO.prototype.lockupOnYtServiceRequestSent;kO.prototype.lockupOnLockupRequested=kO.prototype.lockupOnLockupRequested;kO.prototype.lockupOnPopupClosed=kO.prototype.lockupOnPopupClosed;kO.prototype.lockupOnMouseLeave=kO.prototype.lockupOnMouseLeave;kO.prototype.lockupOnMouseEnter=kO.prototype.lockupOnMouseEnter;
kO.prototype.onTouchStart=kO.prototype.onTouchStart;kO.prototype.lockupOnUp=kO.prototype.lockupOnUp;kO.prototype.lockupOnDown=kO.prototype.lockupOnDown;_.d([_.Z(),_.P("design:type",Object)],kO.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],kO.prototype,"lockupIsHovered",void 0);_.d([_.Z(),_.P("design:type",Boolean)],kO.prototype,"lockupTouchTriggered",void 0);_.d([_.Z(),_.P("design:type",Boolean)],kO.prototype,"useExpandableTooltip",void 0);
_.d([_.nU("#interaction"),_.P("design:type",Object)],kO.prototype,"interactionElement",void 0);_.d([_.FV("down"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kO.prototype,"lockupOnDown",null);_.d([_.FV("up"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kO.prototype,"lockupOnUp",null);
_.d([_.FV("touchstart"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kO.prototype,"onTouchStart",null);_.d([_.FV("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kO.prototype,"lockupOnMouseEnter",null);_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kO.prototype,"lockupOnMouseLeave",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],kO.prototype,"lockupOnPopupClosed",null);_.d([_.FV("yt-lockup-requested"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kO.prototype,"lockupOnLockupRequested",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],kO.prototype,"lockupOnYtServiceRequestSent",null);_.d([_.FV("yt-disable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kO.prototype,"lockupOnLockupDisabled",null);
_.d([_.FV("yt-enable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kO.prototype,"lockupOnLockupEnabled",null);_.d([_.KU()],kO);_.rL=[kO.prototype];_.bdd={YtdReduxBehavior:[]};_.bdd.YtdReduxBehavior.push.apply(_.bdd.YtdReduxBehavior,_.st);var dL=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;S.disableNowPlaying=!1;S.disableTooltips=!1;S.useHoveredProperty=!1;S.hovered=!1;S.isThumbnailHovered_=!1;S.addBackground=_.u("kevlar_thumbnail_bg");S.nowPlaying=!1;S.disableRounding=!1;S.size="small";return S};
_.C(dL,_.N_);_.J=dL.prototype;_.J.computeThumbnailOverlaySidePanelWidth_=function(S,c){return S-c};
_.J.computeSize=function(S,c){if(!this.disableRounding){if(!S&&!c)return"small";S=Math.max(S||0,c||0);return S>=256?"large":S>=96?"medium":"small"}};
_.J.computeFinalHoveredState_=function(S,c,Q){return this.nowPlaying?!1:_.u("kevlar_thumbnail_fluid")&&S?c:Q};
_.J.computeHoverOverlays_=function(S,c){return S&&c?c:void 0};
_.J.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.J.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.J.checkMiniplayer_=function(){var S;if(((S=this.data)==null?0:S.playlistSetVideoId)&&_.u("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{S=_.bn();var c=S.currentEndpoint;!this.disableNowPlaying&&c&&_.Y(c,_.tG)&&this.data?(c=_.Y(c,_.tG),this.nowPlaying=this.data.playlistId?c.playlistId===this.data.playlistId:c.videoId===this.data.videoId,this.isVideoPlaying=S==null?void 0:S.isVideoPlaying):this.nowPlaying=!1}};
dL.prototype.checkMiniplayer_=dL.prototype.checkMiniplayer_;dL.prototype.onMouseLeave_=dL.prototype.onMouseLeave_;dL.prototype.onMouseEnter_=dL.prototype.onMouseEnter_;dL.prototype.computeHoverOverlays_=dL.prototype.computeHoverOverlays_;dL.prototype.computeFinalHoveredState_=dL.prototype.computeFinalHoveredState_;dL.prototype.computeSize=dL.prototype.computeSize;dL.prototype.computeThumbnailOverlaySidePanelWidth_=dL.prototype.computeThumbnailOverlaySidePanelWidth_;
_.d([_.p(_.st),_.P("design:type",Object)],dL.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],dL.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],dL.prototype,"height",void 0);_.d([_.Z(),_.P("design:type",Boolean)],dL.prototype,"bottomSidePanel",void 0);_.d([_.Z(),_.P("design:type",Number)],dL.prototype,"width",void 0);_.d([_.Z(),_.P("design:type",Object)],dL.prototype,"disableNowPlaying",void 0);
_.d([_.Z({selector:_.sm}),_.P("design:type",Boolean)],dL.prototype,"miniplayerIsActive",void 0);_.d([_.Z(),_.P("design:type",Object)],dL.prototype,"disableTooltips",void 0);_.d([_.Z(),_.P("design:type",Object)],dL.prototype,"useHoveredProperty",void 0);_.d([_.Z(),_.P("design:type",Object)],dL.prototype,"hovered",void 0);_.d([_.Z(),_.P("design:type",Object)],dL.prototype,"isThumbnailHovered_",void 0);
_.d([_.Z({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.P("design:type",Boolean)],dL.prototype,"finalHoveredState_",void 0);_.d([_.Z({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.P("design:type",Number)],dL.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dL.prototype,"addBackground",void 0);
_.d([_.Z({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.P("design:type",Object)],dL.prototype,"hoverOverlays_",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dL.prototype,"nowPlaying",void 0);_.d([_.Z(),_.P("design:type",Boolean)],dL.prototype,"isVideoPlaying",void 0);_.d([_.Z(),_.P("design:type",Object)],dL.prototype,"disableRounding",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.P("design:type",Object)],dL.prototype,"size",void 0);_.d([_.FV("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dL.prototype,"onMouseEnter_",null);_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dL.prototype,"onMouseLeave_",null);
_.d([_.B0("data","disableNowPlaying","miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dL.prototype,"checkMiniplayer_",null);_.d([_.KU()],dL);var NRT=[dL.prototype];_.vC={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(S,c){return S+":"+_.Qd(c)},
getPlayerListener_:function(S,c,Q){S=this.getPlayerListenerKey_(S,c);c=this.playerListeners_.get(S);Q&&this.playerListeners_.delete(S);return c},
savePlayerListener_:function(S,c){var Q=c.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(S,c),Q);return Q},
listenToPlayerEvent:function(S,c,Q){Q=this.savePlayerListener_(c,Q);S.addEventListener(c,Q)},
listenToPlayerEvents:function(S,c){c.forEach(function(Q,f){this.listenToPlayerEvent(S,f,Q)}.bind(this))},
unlistenFromPlayerEvent:function(S,c,Q){Q=this.getPlayerListener_(c,Q,!0);S.removeEventListener(c,Q)},
unlistenFromPlayerEvents:function(S,c){c.forEach(function(Q,f){this.unlistenFromPlayerEvent(S,f,Q)}.bind(this))}}};
_.PC=function(){};_.K_l=new _.Sg("PLAYER_API_TOKEN");var gST=!1,dbp,kBo=!1,PCY;var fS=function(S,c,Q,f,U){_.C9.call(this);var a=this;this.playerId=c;this.webPlayerContextConfig=f;this.tvM=U;this.lHk=!1;this.api={};this.s12=this.ukx=null;this.nMU=new _.bB;this.t0={};this.fOR=this.gvU=this.elementId=this.d39=this.config=null;this.kxx=!1;this.vo=this.vIc=null;this.ypc={};this.fMa=["onReady"];this.lastError=null;this.ol9=NaN;this.rsU={};this.bsC=0;this.zn=this.targetElement=S;_.F5(this,this.nMU);$b_(this);Q?this.bsC=setTimeout(function(){a.loadNewVideoConfig(Q)},0):f&&(ukh(this),
jyJ(this))};
_.C(fS,_.C9);fS.prototype.getId=function(){return this.playerId};
fS.prototype.loadNewVideoConfig=function(S){if(!this.isDisposed()){this.bsC&&(clearTimeout(this.bsC),this.bsC=0);var c=S||{};c instanceof Zt_||(c=new Zt_(c));this.config=c;this.setConfig(S);jyJ(this);this.isReady()&&lGd(this)}};
var ukh=function(S){var c;S.webPlayerContextConfig?c=S.webPlayerContextConfig.rootElementId:c=S.config.attrs.id;S.elementId=c||S.elementId;S.elementId==="video-player"&&(S.elementId=S.playerId,S.webPlayerContextConfig?S.webPlayerContextConfig.rootElementId=S.playerId:S.config.attrs.id=S.playerId);var Q;((Q=S.zn)==null?void 0:Q.id)===S.elementId&&(S.elementId+="-player",S.webPlayerContextConfig?S.webPlayerContextConfig.rootElementId=S.elementId:S.config.attrs.id=S.elementId)};
fS.prototype.setConfig=function(S){this.d39=S;this.config=Yld(S);ukh(this);if(!this.gvU){var c;this.gvU=CCs(this,((c=this.config.args)==null?void 0:c.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var Q;if((Q=this.config)==null?0:Q.attrs)S=this.config.attrs,(c=S.width)&&this.zn&&(this.zn.style.width=Wl(Number(c)||c,!0)),(S=S.height)&&this.zn&&(this.zn.style.height=Wl(Number(S)||S,!0))};
var lGd=function(S){if(S.config&&S.config.loaded!==!0)if(S.config.loaded=!0,!S.config.args||S.config.args.autoplay!=="0"&&S.config.args.autoplay!==0&&S.config.args.autoplay!==!1){var c;S.api.loadVideoByPlayerVars((c=S.config.args)!=null?c:null)}else S.api.cueVideoByPlayerVars(S.config.args)},Dbd=function(S){var c=!0,Q=S.getPlayerElement();
Q&&S.config&&(c=Q.dataset.version===Hdu(S));return c&&!!_.rC("yt.player.Application.create")},jyJ=function(S){if(!S.isDisposed()&&!S.kxx){var c=Dbd(S);
if(c&&(S.getPlayerElement()?"html5":null)==="html5")S.fOR="html5",S.isReady()||p4$(S);else if(hNi(S),S.fOR="html5",c&&S.vo&&S.targetElement)S.targetElement.appendChild(S.vo),p4$(S);else{S.config&&(S.config.loaded=!0);var Q=!1;S.vIc=function(){Q=!0;var f=qlh(S,"player_bootstrap_method")?_.rC("yt.player.Application.createAlternate")||_.rC("yt.player.Application.create"):_.rC("yt.player.Application.create");var U=S.config?Yld(S.config):void 0;f&&f(S.targetElement,U,S.webPlayerContextConfig,S.tvM);p4$(S)};
S.kxx=!0;c?S.vIc():(_.kU(Hdu(S),S.vIc),(c=TRi(S))&&$IR(c||""),w4d(S)&&!Q&&_.m5("yt.player.Application.create",null))}}};
fS.prototype.getPlayerElement=function(){var S=_.Q8(document,this.elementId);!S&&this.zn&&this.zn.querySelector&&(S=this.zn.querySelector("#"+this.elementId));return S};
var p4$=function(S){if(!S.isDisposed()){var c=S.getPlayerElement(),Q=!1;c&&c.getApiInterface&&c.getApiInterface()&&(Q=!0);if(Q){S.kxx=!1;if(!qlh(S,"html5_remove_not_servable_check_killswitch")){var f;if((c==null?0:c.isNotServable)&&S.config&&(c==null?0:c.isNotServable((f=S.config.args)==null?void 0:f.video_id)))return}syd(S)}else S.ol9=setTimeout(function(){p4$(S)},50)}},syd=function(S){$b_(S);
S.lHk=!0;var c=S.getPlayerElement();if(c){S.ukx=Mqs(S,c,"addEventListener");S.s12=Mqs(S,c,"removeEventListener");var Q=c.getApiInterface();Q=Q.concat(c.getInternalApiInterface());for(var f=S.api,U=0;U<Q.length;U++){var a=Q[U];f[a]||(f[a]=Mqs(S,c,a))}}for(var X in S.t0)S.t0.hasOwnProperty(X)&&S.ukx&&S.ukx(X,S.t0[X]);lGd(S);S.gvU&&S.gvU(S.api);S.nMU.publish("onReady",S.api)},Mqs=function(S,c,Q){var f=c[Q];
return function(){var U=_.YD.apply(0,arguments);try{return S.lastError=null,f.apply(c,U)}catch(a){if(Q!=="sendAbandonmentPing")throw a.params=Q,S.lastError=a,U=new _.Yr("PlayerProxy error in method call",{error:a,method:Q,playerId:S.playerId}),U.level="WARNING",U;}}},$b_=function(S){S.lHk=!1;
if(S.s12)for(var c in S.t0)S.t0.hasOwnProperty(c)&&S.s12(c,S.t0[c]);for(var Q in S.rsU)S.rsU.hasOwnProperty(Q)&&clearTimeout(Number(Q));S.rsU={};S.ukx=null;S.s12=null;c=S.api;for(var f in c)c.hasOwnProperty(f)&&(c[f]=null);c.addEventListener=function(U,a){S.addEventListener(U,a)};
c.removeEventListener=function(U,a){S.removeEventListener(U,a)};
c.destroy=function(){S.dispose()};
c.getLastError=function(){return S.getLastError()};
c.getPlayerType=function(){return S.getPlayerType()};
c.getCurrentVideoConfig=function(){return S.d39};
c.loadNewVideoConfig=function(U){S.loadNewVideoConfig(U)};
c.isReady=function(){return S.isReady()}};
fS.prototype.isReady=function(){return this.lHk};
fS.prototype.addEventListener=function(S,c){var Q=this;this.isDisposed();var f=CCs(this,c);f&&(_.dp(this.fMa,S)||this.t0[S]||(c=idi(this,S),this.ukx&&this.ukx(S,c)),this.nMU.subscribe(S,f),S==="onReady"&&this.isReady()&&setTimeout(function(){f(Q.api)},0))};
fS.prototype.removeEventListener=function(S,c){this.isDisposed()||(c=CCs(this,c))&&this.nMU.unsubscribe(S,c)};
var CCs=function(S,c){var Q=c;if(typeof c==="string"){if(S.ypc[c])return S.ypc[c];Q=function(){var f=_.YD.apply(0,arguments),U=_.rC(c);if(U)try{U.apply(_.QY,f)}catch(a){throw f=new _.Yr("PlayerProxy error when executing callback",{error:a}),f.level="ERROR",f;}};
S.ypc[c]=Q}return Q?Q:null},idi=function(S,c){var Q=function(f){var U=function(){S.isDisposed();
if(!S.isDisposed())try{S.nMU.publish(c,f!=null?f:void 0)}catch(z){var X=new _.Yr("PlayerProxy error when creating global callback",{error:z.message,event:c,playerId:S.playerId,data:f,originalStack:z.stack,componentStack:z.componentStack});X.level="WARNING";throw X;}};
if(qlh(S,"web_player_publish_events_immediately"))U();else{var a=setTimeout(function(){U();_.Cn.remove(S.rsU,String(a))},0);
_.Cn.add(S.rsU,String(a),!0)}};
return S.t0[c]=Q};
fS.prototype.getPlayerType=function(){return this.fOR||(this.getPlayerElement()?"html5":null)};
fS.prototype.getLastError=function(){return this.lastError};
var hNi=function(S){S.cancel();$b_(S);S.fOR=null;S.config&&(S.config.loaded=!1);var c=S.getPlayerElement();c&&(Dbd(S)||!w4d(S)?S.vo=c:(c&&c.destroy&&c.destroy(),S.vo=null));S.targetElement&&_.TE(S.targetElement)};
fS.prototype.cancel=function(){this.vIc&&_.t1x(Hdu(this),this.vIc);clearTimeout(this.ol9);this.kxx=!1};
fS.prototype.disposeInternal=function(){hNi(this);if(this.vo&&this.config&&this.vo.destroy)try{this.vo.destroy()}catch(c){var S=new _.Yr("PlayerProxy error during disposal",{error:c});S.level="ERROR";throw S;}this.ypc=null;for(S in this.t0)this.t0.hasOwnProperty(S)&&delete this.t0[S];this.d39=this.config=this.api=null;delete this.targetElement;delete this.zn;_.C9.prototype.disposeInternal.call(this)};
var w4d=function(S){var c,Q;S=(c=S.config)==null?void 0:(Q=c.args)==null?void 0:Q.fflags;return!!S&&S.indexOf("player_destroy_old_version=true")!==-1},Hdu=function(S){return S.webPlayerContextConfig?S.webPlayerContextConfig.jsUrl:(S=S.config.assets)?S.js:""},TRi=function(S){return S.webPlayerContextConfig?S.webPlayerContextConfig.cssUrl:(S=S.config.assets)?S.css:""},qlh=function(S,c){if(S.webPlayerContextConfig)var Q=S.webPlayerContextConfig.serializedExperimentFlags;
else{var f;if((f=S.config)==null?0:f.args)Q=S.config.args.fflags}return(Q||"").split("&").includes(c+"=true")},Yld=function(S){for(var c={},Q=_.A(Object.keys(S)),f=Q.next();!f.done;f=Q.next()){f=f.value;
var U=S[f];c[f]=typeof U==="object"?_.Cn.clone(U):U}return c};var RNz={},VqR="player_uid_"+(Math.random()*1E9>>>0);var Ls=function(S,c,Q,f,U,a){c=c===void 0?document.createElement("div"):c;this.webPlayerContextConfig=S;this.container=c;this.commandResolver=Q;this.apiResolver=mbR();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.O_;f||a?Zdd(this):GBJ(this);this.pendingPlayerResponse=f;this.pendingWatchNextResponse=U;this.pendingPlayerVars=a;W_p(this)};
Ls.prototype.loadVideoWithPlayerResponse=function(S,c,Q){this.loadVideo(S,c,Q)};
Ls.prototype.loadVideoWithPlayerVars=function(S){return this.loadVideo(void 0,void 0,S)};
Ls.prototype.destroy=function(S){if(S=_.Q8(document,S))S=VqR+"_"+_.Qd(S),(S=RNz[S])&&S.dispose()};
var eNi=function(S,c){var Q;_.O(function(f){if(f.nextAddress==1)return S.pendingWatchNextResponse=c,S.synchronousApi?(Q=S.synchronousApi,f.jumpTo(2)):_.F(f,S.api,3);f.nextAddress!=2&&(Q=f.yieldResult);gSd(S,Q);S.pendingWatchNextResponse&&(Q.updateVideoData({raw_watch_next_response:S.pendingWatchNextResponse}),S.pendingWatchNextResponse=void 0);_.IN(f)})},gSd=function(S,c){var Q;
if(!(c==null?0:(Q=c.isReady)==null?0:Q.call(c))){var f;S=new _.Yr("playerApi is falsey",{synchronousApi:S.synchronousApi,apiResolved:S.apiResolver.resolved,playerApiUndefined:c===void 0,playerApiNull:c===null,playerApiReady:(c==null?void 0:(f=c.isReady)==null?void 0:f.call(c))===!0,playerApiMethods:c?Object.keys(c):[]});_.sH(S)}},kBh=function(S,c){if(typeof S[c]==="function")return S[c]()},ryp=function(S){var c=window,Q,f=(Q=c.ytplayer)==null?void 0:Q.bootstrapPlayerContainer;
if((Q=f==null?void 0:f.firstElementChild)&&_.vH(Q,"html5-video-player")){var U,a,X=(U=c.ytplayer)==null?void 0:(a=U.bootstrapWebPlayerContextConfig)==null?void 0:a.contextId;U=S.webPlayerContextConfig.contextId;if(X&&X===U){f!==S.container&&(f=!1,kBh(Q,"getPlayerState")===2&&(f=!0),S.container.appendChild(Q),f||kBh(Q,"playVideo"));var z;if((z=c.ytplayer)==null?0:z.bootstrapPlayerResponse)S.bootstrapPlayerResponse=c.ytplayer.bootstrapPlayerResponse}}},W_p=function(S){var c,Q,f,U,a;
_.O(function(X){if(X.nextAddress==1)return S.pageReadyOrDataAvailable?X.jumpTo(2):_.F(X,S.pageReadyOrDataAvailableResolver.promise,2);if(X.nextAddress!=4)return!_.u("kevlar_player_unified_player_loading")||eNz()&&ryH()?X.jumpTo(4):_.F(X,ESY(),4);ryp(S);if(S.pendingPlayerResponse||S.pendingPlayerVars)c=tqz(S.pendingPlayerResponse,S.pendingWatchNextResponse,S.pendingPlayerVars),S.pendingPlayerResponse&&S.pendingPlayerResponse===S.bootstrapPlayerResponse&&(c.loaded=!0),S.bootstrapPlayerResponse=void 0;
Q=oSo(S.container,c,S.webPlayerContextConfig);((f=c)==null?0:f.loaded)&&S.pendingWatchNextResponse?(eNi(S,S.pendingWatchNextResponse),S.pendingPlayerResponse=void 0,S.pendingPlayerVars=void 0):dbe(S);U=function(z){Q.removeEventListener("onReady",U);S.synchronousApi=z;S.apiResolver.resolve(z)};
Q.addEventListener("onReady",U);S.commandResolver!==void 0&&(a=S.commandResolver,Q.addEventListener("innertubeCommand",function(z){a(z)}));
_.IN(X)})};
Ls.prototype.loadVideo=function(S,c,Q){var f=this,U,a,X,z,x,I,n,b,N;return _.O(function(l){if(l.nextAddress==1)return f.pendingPlayerResponse=S,f.pendingWatchNextResponse=c,f.pendingPlayerVars=Q,Zdd(f),f.synchronousApi?(U=f.synchronousApi,l.jumpTo(2)):_.F(l,f.api,3);l.nextAddress!=2&&(U=l.yieldResult);gSd(f,U);X=new Promise(function(H){a=H});
z=function(){var H=U.getPlayerResponse();H&&(U.removeEventListener("onVideoDataChange",z),a(H))};
U.addEventListener("onVideoDataChange",z);if(f.pendingPlayerResponse||f.pendingPlayerVars)f.pendingPlayerResponse&&f.pendingPlayerResponse===f.bootstrapPlayerResponse?(a(f.pendingPlayerResponse),f.pendingWatchNextResponse&&eNi(f,f.pendingWatchNextResponse)):(x=tqz(f.pendingPlayerResponse,f.pendingWatchNextResponse,f.pendingPlayerVars),(N=(I=f.pendingPlayerResponse)==null?void 0:(n=I.playerConfig)==null?void 0:(b=n.playbackStartConfig)==null?void 0:b.startPaused)?U.cueVideoByPlayerVars(x.args):U.loadVideoByPlayerVars(x.args)),
dbe(f),f.bootstrapPlayerResponse=void 0;return l.return(X)})};
var GBJ=function(S){if(document.readyState==="complete"||document.readyState==="interactive")Zdd(S);else{var c=function(){document.removeEventListener("DOMContentLoaded",c);Zdd(S)};
document.addEventListener("DOMContentLoaded",c)}},Zdd=function(S){S.pageReadyOrDataAvailable=!0;
S.pageReadyOrDataAvailableResolver.resolve()},dbe=function(S){S.pendingPlayerResponse=void 0;
S.pendingWatchNextResponse=void 0;S.pendingPlayerVars=void 0};
_.Rh.Object.defineProperties(Ls.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var Et=function(S){sE.call(this,S===void 0?"document_active":S);var c=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(Q){c.transition("document_disposed",{event:Q})});
window.addEventListener("beforeunload",function(Q){c.transition("document_disposed_preventable",{event:Q})});
window.addEventListener("unload",function(Q){c.transition("document_disposed",{event:Q});c.hasRun=new Map})};
_.C(Et,sE);
Et.prototype.runPreventableDispose=function(S,c){if(!this.hasRun.get("document_disposed_preventable")){S(c==null?void 0:c.event);var Q,f;if((c==null?0:(Q=c.event)==null?0:Q.defaultPrevented)||(c==null?0:(f=c.event)==null?0:f.returnValue)){c.event.returnValue||(c.event.returnValue=!0);c.event.defaultPrevented||c.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")};
Et.prototype.runDispose=function(S,c){this.hasRun.get("document_disposed")?this.transition("document_active"):(S(c==null?void 0:c.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
Et.prototype.runFlush=function(S,c){S(c==null?void 0:c.event);this.transition("document_active")};
Et.prototype.runActive=function(){};var tv=function(S){sE.call(this,S===void 0?"document_visibility_unknown":S);var c=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(Q){document.visibilityState==="visible"?c.transition("document_visible",{event:Q}):c.transition("document_hidden",
{event:Q})});
_.u("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(Q){c.transition("document_backgrounded",{event:Q})}),window.addEventListener("focus",function(Q){c.transition("document_foregrounded",{event:Q})}))};
_.C(tv,sE);tv.prototype.runVisible=function(S,c){S(c==null?void 0:c.event);_.u("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
tv.prototype.runHidden=function(S,c){S(c==null?void 0:c.event);_.u("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
tv.prototype.runBackgrounded=function(S,c){S(c==null?void 0:c.event)};
tv.prototype.runForegrounded=function(S,c){S(c==null?void 0:c.event)};var Vt=function(){this.teardownLifecycle=new Et;this.visibilityLifecycle=new tv};
Vt.prototype.install=function(){var S=_.YD.apply(0,arguments),c=this;S.forEach(function(Q){c.teardownLifecycle.install(Q)});
S.forEach(function(Q){c.visibilityLifecycle.install(Q)})};var Rv=function(){Vt.call(this);var S={};this.install((S.document_disposed={callback:this.abortSlisAndFlush},S));_.u("combine_ve_grafts")&&(S={},this.install((S.document_disposed={callback:this.flushInteractionLoggingAttachVes},S)));S={};this.install((S.flush_logs={callback:this.logFinalPayload},S));_.u("web_log_cfg_cee_ks")||_.HG(_.Mq,vSi)};
_.C(Rv,Vt);var SgY=function(){Rv.loggingInstance||(Rv.loggingInstance=new Rv);return Rv.loggingInstance};
Rv.prototype.logFinalPayload=function(){if(_.u("web_fp_via_jspb")){var S=new xPl,c=_.wN();c&&_.bN(S,1,c);c=_.u("jspb_sparse_encoded_pivot")?new C1([{}]):new C1;_.fc(c,380,FYp,S);Wtp("finalPayload",c);_.u("web_fp_via_jspb_and_json")&&_.Te("finalPayload",{csn:_.wN()})}else _.Te("finalPayload",{csn:_.wN()})};
Rv.prototype.abortSlisAndFlush=function(){$iu(dx);vA!=null&&vA.flush()};
Rv.prototype.flushInteractionLoggingAttachVes=function(){e5p(_.Kv())};
var vSi=function(){var S=_.WY("CLIENT_EXPERIMENT_EVENTS");if(S){var c=gYc();S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,c(Q)&&_.Te("genericClientExperimentEvent",{eventType:Q});delete _.ZJ.CLIENT_EXPERIMENT_EVENTS}};var PCl={};
PCl.YtPlayerBehavior=[_.vC.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 S=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.O_;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;c0z(function(){S.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.wK(this,"pan-down"),_.u("kevlar_pinch_fullscreen")&&_.DM().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.u("kevlar_pinch_fullscreen")&&_.DM().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(S,c,Q){var f=this;Ue(this.useUnifiedPlayer_());if(this.mainAppPlayer_)Ue(!1,"MainAppPlayer already created.");else{var U=_.u("kevlar_player_container_query_killswitch")?this.$.container:_.Ur(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Ls(this.getWebPlayerContextConfig_(),U,function(a){return _.IW(a,f.hostElement)},S,c,Q);
this.mainAppPlayer_.api.then(function(a){f.player_=a;f.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&gOp.resolve(a)})}},
loadVideoWithPlayerResponse:function(S,c){var Q=this;if(this.useUnifiedPlayer_()){var f=this.watchNextData,U,a=(U=S.videoDetails)==null?void 0:U.videoId,X,z,x;(U=(X=this.watchNextData)==null?void 0:(z=X.currentVideoEndpoint)==null?void 0:(x=z.watchEndpoint)==null?void 0:x.videoId)&&a!=U&&(f=void 0,_.u("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(S,f,c):this.createMainAppPlayer_(S,f,c);this.mainAppPlayer_.api.then(function(){_.Az(Q.hostElement,
"yt-player-updated")})}else this.update(Zdp(S,c))},
loadVideoWithPlayerVars:function(S){var c=this;this.useUnifiedPlayer_()?(_.u("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(S):this.createMainAppPlayer_(void 0,void 0,S),this.mainAppPlayer_.api.then(function(){_.Az(c.hostElement,"yt-player-updated")})):this.update({args:S})},
update:function(S){var c=this;if(this.useUnifiedPlayer_())Ue(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(S);var Q=fAz(S.args);Q&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==Q&&Object.assign(S.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(S).then(function(f){_.Az(c.hostElement,"yt-player-updated",_.u("kevlar_player_updated_obsolete_player_killswitch")?
f:void 0)})}_.MP(new _.Yr("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.getPlayerPromise(),2);Q=f.yieldResult;if(!Q)throw Error("wh");S&&c.updatePlayerPlaylist_(S);_.IN(f)})},
acquireApi_:function(S){var c=this;if(this.useUnifiedPlayer_())Ue(!1,"Invalid method call in kevlar_unified_player.");else return _.Mq.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(Ue(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(Q){c.shouldAutoplay_(S)?Q.loadVideoByPlayerVars(S.args):Q.cueVideoByPlayerVars(S.args)})):this.initPlayerPromise_=this.initPlayerContainer_(S),this.initPlayerPromise_},
initPlayerContainer_:function(S){var c=this;if(this.useUnifiedPlayer_())Ue(!1,"Invalid method call in kevlar_unified_player.");else return Ue(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.i5(Error("xh")),Ue(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.u("kevlar_player_container_query_killswitch")?this.$.container:_.Ur(this.hostElement).querySelector("#container"),ESY().then(function(){var Q=c.initPlayer_(S);c.playerResolver_.resolve(Q);
return Q})},
onPlayerReady_:function(S,c){this.useUnifiedPlayer_()?Ue(!1,"Invalid method call in kevlar_unified_player."):(S.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&gOp.resolve(S),c(S))},
maybeCallApiMethodOnElement_:function(S,c){if(typeof S[c]==="function")return S[c]()},
maybeAdoptBootstrapPlayer_:function(){var S=window,c,Q=(c=S.ytplayer)==null?void 0:c.bootstrapPlayerContainer;if((c=Q==null?void 0:Q.firstElementChild)&&c.classList.contains("html5-video-player")){var f,U,a=(f=S.ytplayer)==null?void 0:(U=f.bootstrapWebPlayerContextConfig)==null?void 0:U.contextId;f=this.getWebPlayerContextConfig_().contextId;if(a&&a===f){Q!==this.playerContainer_&&(Q=!1,this.maybeCallApiMethodOnElement_(c,"getPlayerState")===2&&(Q=!0),this.playerContainer_.appendChild(c),Q||this.maybeCallApiMethodOnElement_(c,
"playVideo"));var X;if((X=S.ytplayer)==null?0:X.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=S.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(S){var c=this;if(this.useUnifiedPlayer_())Ue(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(Q){c.maybeAdoptBootstrapPlayer_();var f=S?GBz(S):void 0;f&&f==c.bootstrapPlayerResponse_&&(S.loaded=!0);f=c.playerContainer_;var U=c.getWebPlayerContextConfig_();f=oSo(f,S,U);c.player_=f;c.onPlayerReadyEvent_=c.onPlayerReady_.bind(c,c.player_,Q);c.player_.addEventListener("onReady",c.onPlayerReadyEvent_);c.player_.addEventListener("innertubeCommand",
c.onPlayerInnerTubeCommand_.bind(c));_.u("enable_web_shorts_captions_language_command")&&(c.player_.addEventListener("captionschanged",c.storePlayerCaptionLanguage_.bind(c)),c.player_.addEventListener("captionssettingschanged",c.storePlayerCaptionLanguage_.bind(c)),c.player_.addEventListener("onCaptionsTrackListChanged",c.storePlayerCaptionLanguage_.bind(c)))})},
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(S){S.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(S){S.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var S=_.fl().resolve(_.oZ).getCurrentPage();S&&S.getScrollTop()<=0?_.wK(this,"pan-down"):_.wK(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(S){S.isFullscreen()||S.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(S){S.isFullscreen()&&S.toggleFullscreen()})},
updatePlayerPlaylist_:function(S){var c=this,Q,f,U;return _.O(function(a){if(a.nextAddress==1)return Q=_.fl().resolve(_.QS(_.G7)),f=!!(Q&&Q.playlistComponent&&Q.playlistComponent.loopOn),_.F(a,c.getPlayerPromise(),2);var X=U=a.yieldResult,z=X.updatePlaylist,x=[];if(_.u("kevlar_player_playlist_use_local_index")){var I,n;var b=(n=(I=S.localCurrentIndex)!=null?I:S.currentIndex)!=null?n:0}else{var N;b=(N=S.currentIndex)!=null?N:0}if(S.contents)for(I=0;I<S.contents.length;I++)if((n=S.contents[I])&&n.playlistPanelVideoRenderer)if(L6R(n)){n=
n.playlistPanelVideoRenderer;N="";n.shortBylineText&&(N=_.Em(n.shortBylineText));var l="";n.title?l=_.Em(n.title):n.unplayableText&&(l=_.Em(n.unplayableText));x.push({author:N,title:l,encrypted_id:n.videoId})}else I<b&&--b;z.call(X,{index:b,list:S.playlistId?S.playlistId:"",loop:f,playlist_title:S.title,playlist_length:x.length,video:x,fetch:0,external_list:"1",title:S.title?S.title:"",playlist_author:S.ownerName?_.Em(S.ownerName):void 0});_.IN(a)})},
focusOnPlayer:function(){_.tO(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var S=this.playerContainer_.querySelector(".html5-video-player");S&&(_.ov(_.fl().resolve(_.wj)),S.focus())}})},
preparePlayer:function(){var S=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(c){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")c();else{var Q=function(){document.removeEventListener("DOMContentLoaded",Q);c()};
document.addEventListener("DOMContentLoaded",Q)}})).then(function(){return ESY()}).then(function(){S.initPlayerPromise_||S.preparePlayerJobId_||(S.preparePlayerJobId_=_.HG(_.Mq,function(){S.initPlayerPromise_||(S.initPlayerPromise_=S.initPlayerContainer_())}))}):_.MP(new _.Yr("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(S){this.useUnifiedPlayer_()?Ue(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(S)||(S.args.autoplay="0")},
shouldAutoplay_:function(S){if(this.useUnifiedPlayer_())Ue(!1,"Invalid method call in kevlar_unified_player.");else{var c=this.get("args.el",S);return c&&c!="detailpage"&&this.isMiniplayerActive_()||c&&(c=="sponsorshipsoffer"||c=="handlesclaiming")&&this.get("args.autoplay",S)=="0"?!1:(S=GBz(S))&&this.get("playerConfig.playbackStartConfig.startPaused",S)?!1:!0}},
isMiniplayerActive_:function(){return _.fl().resolve(_.ra).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var S=this.getPlayer();if(S){var c=S.getPlayerState();_.u("kevlar_player_check_ad_state_on_stop")&&(c=S.getPlayerState(S.getPresentingPlayerType()));c!=5&&S.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(S,c,Q){Q=Q===void 0?!1:Q;var f=this,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return c||(c=f.hostElement),U=f.useUnifiedPlayer_()?!!f.mainAppPlayer_:!!f.initPlayerPromise_,U?_.F(x,f.getPlayerPromise(),2):(Q?S.insertBefore(c,S.firstChild):S.appendChild(c),x.return());a=x.yieldResult;X=a.getPlayerState(a.getPresentingPlayerType());z=!1;if(X==-1||X==1||X==3)z=!0;Q?S.insertBefore(c,S.firstChild):S.appendChild(c);z&&a.playVideo();a.setSize(NaN,NaN);_.IN(x)})},
watchNextDataChanged_:function(S){var c=this;S&&(this.useUnifiedPlayer_()&&_.u("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&eNi(this.mainAppPlayer_,S):this.getPlayerPromise().then(function(Q){Q.updateVideoData(c.computeWatchNextPlayerVars_(S))}))},
computeWatchNextPlayerVars_:function(S){if(this.useUnifiedPlayer_()&&_.u("kevlar_unified_player_update_watch_next_killswitch"))Ue(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:S}},
maybeSendAbandonmentPing_:function(){var S=this.getPlayer();S&&S.getPlayerState()!=5&&S.getPlayerState()!=0&&S.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var S=_.WY("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(S=Object.assign({},S),S.rootElementId=this.playerId);S.serializedExperimentIds&&S.serializedExperimentFlags||_.i5(Error("yh"));return S},
hasWebPlayerContextConfig_:function(){return!!_.WY("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(S){this.useUnifiedPlayer_()?Ue(!1,"Invalid method call in kevlar_unified_player."):_.IW(S,this.hostElement)},
storePlayerCaptionLanguage_:function(){this.getPlayerPromise().then(function(S){var c=_.fl().resolve(_.us);S=S==null?void 0:S.getOption("captions","track");var Q=_.xy("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(S){var f,U=(f=_.b9(_.Qyx,Q)())==null?void 0:f.value,a;f=typeof(S==null?void 0:S.translationLanguage)==="object"&&((a=S.translationLanguage)==null?void 0:a.languageName)||S.displayName||"";U!==f&&c.store.dispatch(_.Ns("stringEntity",Q,{key:Q,value:f.toString()}))}else c.store.dispatch(_.Ns("stringEntity",
Q,{key:Q,value:"CAPTIONS_UNAVAILABLE"}))})},
useUnifiedPlayer_:function(){var S=_.u("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.u("kevlar_unified_player")||S}}];var L_H={};L_H.YtPlaylistPanelBehavior=[_.m.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(S){S=S.detail;if(S.actions.loop!=void 0||S.actions["yt-icons:loop"]!=void 0)this.loopOn=S.actions.loop||S.actions["yt-icons:loop"];if(S.actions.shuffle!=void 0||S.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=S.actions.shuffle||S.actions["yt-icons:shuffle"]},
setMenuData_:function(S){if(!S||!S.playlistButtons||S.isInfinite)return null;for(var c=S.playlistButtons.menuRenderer.topLevelButtons,Q=c.length,f=0;f<Q;f++)if(c[f].toggleButtonRenderer){var U=c[f].toggleButtonRenderer;U.defaultIcon.iconType=="LOOP"&&this.loopOn?U.isToggled=this.loopOn:U.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(U.isToggled=this.shuffleOn)}return S.playlistButtons}}];var ESd=function(S){UM.call(this,S,132);this.isDocument=S===document.documentElement};
_.C(ESd,UM);ESd.prototype.calculateScrollDelta=function(S,c,Q){var f=0;S<c?f=S<c-100?-48:-8:S>c+Q&&(f=S>c+Q+100?48:8);return f};
ESd.prototype.JSC$9341_onMouseMove=function(S){this.isDocument||(S.clientX=S.event_.pageX,S.clientY=S.event_.pageY);UM.prototype.JSC$9341_onMouseMove.call(this,S)};var m8=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;S.scrollElement=document.documentElement;S.JSC$12313_dragListGroup=null;S.dragScrollSupport=null;S.onDraggerCreated=function(c){var Q=c.JSC$9337_dragger;Q.scrollTarget_=S.scrollElement;c=c.draggerEl;Q&&c.menuOpened&&Q.setEnabled(!1)};
S.onDragStart=function(c){var Q=c.draggerEl;c=c.currDragItem;var f=Object.assign({},c==null?void 0:c.data);f.trackingParams=void 0;Q.data=f;Q.style.position="absolute";Q.style.width=(c==null?void 0:c.clientWidth)+"px";Q.style.zIndex="2030";Q.onDrag&&Q.onDrag();_.u("web_owner_document_fallback_killswitch")?(c=document.querySelector("ytd-app"))&&_.Ur(c).appendChild(Q):(c=_.qk(Q),(f=c.querySelector("ytd-app"))?_.Ur(f).appendChild(Q):c.body.appendChild(Q));S.dragScrollSupport=new ESd(S.scrollElement);
S.dragScrollSupport.horizontalScrolling_=!1;Q=S.dragScrollSupport;Q.constrainScroll_=!!Q.margin_&&!1};
S.onDrop=function(c){S.handleDrop(c);S.dragScrollSupport&&(_.yN(S.dragScrollSupport),S.dragScrollSupport=null)};
S.onReorderableScroll=function(){if(S.JSC$12313_dragListGroup){var c=S.JSC$12313_dragListGroup;UO$(c,c.currDragItem_)}};
return S};
_.C(m8,_.N_);m8.prototype.detached=function(){_.tqi(this)};
_.tqi=function(S){S.JSC$12313_dragListGroup&&(_.lS(S.JSC$12313_dragListGroup,VLs,S.onDragStart),_.lS(S.JSC$12313_dragListGroup,mDh,S.onDragStart),S.JSC$12313_dragListGroup.dispose(),S.JSC$12313_dragListGroup=null);S.dragScrollSupport&&(_.yN(S.dragScrollSupport),S.dragScrollSupport=null);S.scrollElement.removeEventListener("scroll",S.onReorderableScroll)};
_.Vqs=function(S,c,Q,f){f=f===void 0?"":f;_.tqi(S);Q&&(S.scrollElement=Q);S.JSC$12313_dragListGroup=new e5;S.JSC$12313_dragListGroup.hysteresisDistance_=2;cb_(S.JSC$12313_dragListGroup,c);S.JSC$12313_dragListGroup.draggerElClasses_=Fo("dragging").split(" ");f&&QBd(S.JSC$12313_dragListGroup,function(U){var a=U||document,X=null;a.getElementsByClassName?X=a.getElementsByClassName(f)[0]:X=EYT("*",f,U);return X||U});
_.HI(S.JSC$12313_dragListGroup,Etd,S.onDraggerCreated);_.HI(S.JSC$12313_dragListGroup,VLs,S.onDragStart);_.HI(S.JSC$12313_dragListGroup,mDh,S.onDrop);S.JSC$12313_dragListGroup.init();S.scrollElement.addEventListener("scroll",S.onReorderableScroll,{passive:!0})};
m8.prototype.handleDrop=function(){};
_.Rh.Object.defineProperties(m8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.d([_.Z({value:100}),_.P("design:type",Number)],m8.prototype,"scrollMargin",void 0);_.d([_.KU()],m8);_.RNJ=[m8.prototype];_.SX={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(S,c,Q){var f=this.getClickTarget_(c);if(f&&this.isClickAllowed_(f)){c.preventDefault();S=(0,_.Cn.unsafeClone)(S);var U=this.getContainerBoundingRect();c=this.getRelativeClickXy_(c,U);this.expandEndpointUrlMacros_(S,{NX:c[0],NY:c[1],NB:f.code});Q&&this.truncateWebCommendMetadataUrl_(S);_.Az(this.hostElement,"yt-navigate",{endpoint:S})}},
getClickTarget_:function(S){if(!this.clickTargetMap)return null;S=_.t4(S)||[];S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;if(c===_.Ur(this.hostElement).querySelector("#menu"))break;if(c=this.clickTargetMap.get(c.id))return c}return null},
getRelativeClickXy_:function(S,c){var Q=S.detail.x,f=S.detail.y;_.u("use_on_click_for_desktop_display_ad")&&S.clientX!=null&&S.clientY!=null&&(Q=S.clientX,f=S.clientY);S=Math.round(Q-c.left);c=Math.round(f-c.top);return S<0||c<0?[null,null]:[S,c]},
getContainerBoundingRect:function(){return _.Ur(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(S,c){for(var Q=_.A(S.loggingUrls||[]),f=Q.next();!f.done;f=Q.next())f=f.value,f.baseUrl&&(f.baseUrl=H5(f.baseUrl,c));S.urlEndpoint&&S.urlEndpoint.url&&(S.urlEndpoint.url=H5(S.urlEndpoint.url,c));S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.url&&(S.commandMetadata.webCommandMetadata.url=H5(S.commandMetadata.webCommandMetadata.url,c))},
truncateWebCommendMetadataUrl_:function(S){if(S.commandMetadata&&S.commandMetadata.webCommandMetadata&&S.commandMetadata.webCommandMetadata.url){var c=S.commandMetadata.webCommandMetadata.url,Q=c.indexOf("&pp=");if(Q>0){var f=c.indexOf("&",Q+1);S.commandMetadata.webCommandMetadata.url=f>Q&&f<c.length?c.slice(0,Q)+c.slice(f):c.slice(0,Q)}}},
configureClickTargets:function(S,c,Q){this.containerId=S;this.clickTargetMap=new Map;S=_.A(c);for(c=S.next();!c.done;c=S.next())if(c=c.value,c.location){var f=Q.get(c.location);f&&(_.a1(_.Ur(this.hostElement).querySelector("#"+f),"yt-simple-endpoint",this.isClickAllowed_(c)),this.clickTargetMap.set(f,c))}},
isClickAllowed_:function(S){return S.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||S.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||S.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||S.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.cu={};
_.cu.YtLazyListBehavior=[_.Qv.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 S=(this.constructor.generatedFrom||this).observers;S||(S=[]);S.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
S}},
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 S=this.renderElementsOutsideVisibleArea_;S&&(RH$(S,4),S.processSignal())},
deepLazyListObserver_:function(S){var c=this;if(S){var Q=S.value||[];if(this.itemsPath==S.path){var f=this.nonDeferredItemCount;S=0;f>-1&&Q.length>f&&(S=_.WY("REMAINING_DOVA_DEFERRED_CHUNKS",-1));S>0?(f>0&&(f=Q.slice(0,f),this.setInitialItemsOnDataChanged(f)),(f=this.renderElementsOutsideVisibleArea_)?f.cancel():(f=this.renderElementsOutsideVisibleArea_=new _.UL(2,"eocs"),_.Plz(window,"scroll",function(){return c.renderDeferredElements()})),_.JN(f,function(){c.setInitialItemsOnDataChanged(Q)}),_.G_("REMAINING_DOVA_DEFERRED_CHUNKS",
S-1)):this.setInitialItemsOnDataChanged(Q)}else if(this.itemsPath+".splices"==S.path)this.onItemsUpdated_(Q);
else f="shownItems"+S.path.substr(this.itemsPath.length),this.useSignals&&f==="shownItems.length"||this.notifyPath(f,S.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(S){S&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(S),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(S){S=S.indexSplices;for(var c=0,Q=S.length;c<Q;c++){var f=S[c];if(f.index<this.shownCount&&(f.removed&&this.splice("shownItems",f.index,f.removed.length),f.addedCount)){var U=f.object.slice(f.index,f.index+f.addedCount);f=["shownItems",f.index,0];f.push.apply(f,U);this.splice.apply(this,f)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(S){this.cancelPendingTasks_();S||(S=[]);this.items_=S;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&&(_.gC("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.tO(this,this.tryRenderChunk_)))},
fillRange_:function(S,c){this.canShowMore&&this.items_&&(S=this.items_.slice(S,c),S.unshift("shownItems"),this.push.apply(this,S),this.shownCount=c,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var S=this;this.canShowMore&&_.e$(this,"renderChunk",function(){S.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.gC("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.u9(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var S=this.renderElementsOutsideVisibleArea_;S&&(S.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var S=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(S-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=S;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(S){return Math.ceil(1E3/S)},
onCanShowMoreUpdated_:function(S){this.data&&this.items_!==null&&(S?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(S){!this.shouldUseTaskManager()&&this.data&&(!S&&this.canShowMore?(_.CXo(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):S&&this.partiallyRenderedItems_.has(this.items_)&&(_.u("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var U6;_.QW={};
U6=function(){var S=_.N_.apply(this,arguments)||this;S.atStart=!0;S.atEnd=!0;S.startIndex=0;S.endIndex=0;S.scrollCount=0;S.initialStartIndex=0;S.disableScrollEventListener=!1;S.useFloorScrolling=!1;S.isSearch=!1;S.dragging=!1;S.dragMouseStart=0;S.dragOffsetStart=0;S.disableWheelScroll=!1;S.centerListItems=!1;S.offset=0;S.minComponentWidth=0;S.marginWidthRight=0;S.marginWidthLeft=0;S.setButtonsStateRequested=!1;S.itemsVisibilityObserver=null;S.fullyVisibleItemsIndices=[];S.JSC$12324_onWheelScroll=function(c){if(S.isSearch&&
!S.disableWheelScroll&&_.u("desktop_enable_dmpanel_wheel_scroll")){var Q=c.shiftKey?Math.abs(c.deltaY)>Math.abs(c.deltaX)?c.deltaY:c.deltaX:c.deltaX;Q!==0&&(c.preventDefault(),S.ytLazyListBehavior.fillRemainingListItems(),S.offset+=Q,fE(S),S.reposition_())}};
S.onPointerDown=function(c){yyu(S)&&(S.dragMouseStart=c.clientX,S.dragOffsetStart=S.offset,S.dragging=!0)};
S.onPointerMove=function(c){yyu(S)&&S.dragging&&(S.ytLazyListBehavior.fillRemainingListItems(),S.offset=S.dragOffsetStart-(c.clientX-S.dragMouseStart),fE(S),S.reposition_())};
S.onPointerUp=function(){yyu(S)&&(S.dragging=!1)};
return S};
_.C(U6,_.N_);var oSh=function(S){var c=_.Ur(S.hostElement).querySelector("#items").children;if(!c)return 0;var Q=0;S=_.A(S.fullyVisibleItemsIndices);for(var f=S.next();!f.done;f=S.next())Q+=c[f.value].clientWidth;return Q},yyu=function(S){return S.isSearch&&_.u("desktop_enable_dmpanel_click_drag_scroll")};
U6.prototype.created=function(){this.cachedViewportWidth=_.WY("initialInnerWidth")||window.innerWidth;this.JSC$12324_cachedViewportHeight=_.WY("initialInnerHeight")||window.innerHeight;_.WY("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.G_("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
U6.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.u("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();mbs(this)};
U6.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.u("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var S;(S=this.itemsVisibilityObserver)==null||S.disconnect();this.itemsVisibilityObserver=null;var c;(c=this.itemsObserver)==null||c.disconnect()};
var mbs=function(S){var c=_.Ur(S.hostElement).querySelector("#scroll-container");if(c){if(!S.itemsVisibilityObserver){var Q=window.getComputedStyle(c).marginRight;S.itemsVisibilityObserver=new IntersectionObserver(function(f){Sgl(S,f)},{root:c,
rootMargin:Q,threshold:.98})}if(c=_.Ur(S.hostElement).querySelector("#items"))S.itemsObserver=new ZPd(c,function(f){c0J(S,f)})}},c0J=function(S,c){QG_(S)&&(Array.from(c.addedNodes).filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE}).forEach(function(Q){S.itemsVisibilityObserver&&S.itemsVisibilityObserver.observe(Q)}),Array.from(c.removedNodes).filter(function(Q){return Q.nodeType===Node.ELEMENT_NODE}).forEach(function(Q){S.itemsVisibilityObserver&&S.itemsVisibilityObserver.unobserve(Q)}))},
Sgl=function(S,c){var Q=new Set(S.fullyVisibleItemsIndices);
c=_.A(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;var U=f.target.parentElement;U?(U=Array.from(U.children).indexOf(f.target),f.isIntersecting?Q.add(U):Q.has(U)&&Q.delete(U)):_.i5(new _.Yr("Parent element not found",f.target.nodeName))}S.fullyVisibleItemsIndices=Array.from(Q).sort(function(a,X){return a-X});
Q.size===0?_.i5(new _.Yr("No visible entries in horizontal list")):(S.startIndex=S.fullyVisibleItemsIndices[0],S.endIndex=S.fullyVisibleItemsIndices[S.fullyVisibleItemsIndices.length-1])},QG_=function(S){S.data?S=(S=S.data)&&S.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===S.itemSizeConstraint:!1:S=!1;
return S};
_.J=U6.prototype;_.J.addScrollEventListeners=function(){var S=_.Ur(this.hostElement).querySelector("#scroll-container");S.style.touchAction="pan-y";S.addEventListener("wheel",this.JSC$12324_onWheelScroll);S.addEventListener("pointerdown",this.onPointerDown);S.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.J.removeScrollEventListeners=function(){var S=_.Ur(this.hostElement).querySelector("#scroll-container");S.removeEventListener("wheel",this.JSC$12324_onWheelScroll);S.removeEventListener("pointerdown",this.onPointerDown);S.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.J.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.tO(this,this.setStartIndex,[this.initialStartIndex])};
_.J.reposition_=function(){var S=_.WY("HTML_DIR")=="rtl"?"":"-",c=_.Ur(this.hostElement).querySelector("#items");c&&(c.style.transform="translateX("+S+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.J.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.tO(this,this.setButtonsState_))};
_.J.setButtonsState_=function(){this.setButtonsStateRequested=!1;var S=_.Ur(this.hostElement).querySelector("#items").firstElementChild;if(S){this.minComponentWidth||(this.minComponentWidth=fdJ(this,S));S=_.Ur(this.hostElement).querySelector("#scroll-container").clientWidth;var c=_.Ur(this.hostElement).querySelector("#items").clientWidth,Q=this.get(this.ytLazyListBehavior.itemsPath,this);if(Q){var f=Math.round(S/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=
Math.round(this.offset/this.minComponentWidth),this.endIndex=Math.min(this.startIndex+f,Q.length)-1)}this.ytLazyListBehavior.canShowMore?c+this.minComponentWidth>=this.offset+S&&(this.atEnd=!1):this.atEnd=this.offset+S>=c-20?!0:!1;this.atStart=this.offset<=20}};
_.J.setStartIndex=function(S){if(!this.minComponentWidth){var c=_.Ur(this.hostElement).querySelector("#items").firstElementChild;if(!c)return;this.minComponentWidth=fdJ(this,c)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*S;fE(this);this.reposition_()};
_.J.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.Fg();var S=_.Ur(this.hostElement).querySelector("#scroll-container").clientWidth;_.u("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=fdJ(this,_.Ur(this.hostElement).querySelector("#items").firstElementChild));S=this.useFloorScrolling?Math.floor(S/this.minComponentWidth)||1:Math.round(S/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&Ued(this);this.offset+=QG_(this)?
oSh(this):S*this.minComponentWidth;fE(this);this.reposition_();this.scrollCount++};
_.J.prevClick_=function(){var S=_.Ur(this.hostElement).querySelector("#scroll-container").clientWidth;S=this.useFloorScrolling?Math.floor(S/this.minComponentWidth)||1:Math.round(S/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=QG_(this)?oSh(this):this.minComponentWidth*this.scrollCount-1):this.offset-=QG_(this)?oSh(this):S*this.minComponentWidth;this.centerListItems&&Ued(this);fE(this);this.reposition_()};
_.J.onIronResize_=function(){this.resizeSupportEnabled&&_.tO(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.J.onItemsTransitionEnd_=function(S){_.VI(S)===_.Ur(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.J.onChildElementFocus_=function(S){S=S.target.closest("#items > *");var c=_.Ur(this.hostElement).querySelector("#scroll-container");if(c.contains(S)){if(_.u("web_horizontal_list_behavior_focus_killswitch"))if(S.offsetLeft<this.offset)this.offset=Math.abs(S.offsetLeft)<S.clientWidth?0:S.offsetLeft;else if(S.offsetLeft+S.clientWidth>this.offset+c.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.Fg(),this.offset=S.offsetLeft+S.clientWidth-c.clientWidth;else return;else{var Q=_.Ur(this.hostElement).querySelector("#items"),
f=_.WY("HTML_DIR")==="rtl",U=f?Q.clientWidth-S.offsetLeft:S.offsetLeft;Q=f?Q.clientWidth-(S.offsetLeft+S.clientWidth):S.offsetLeft+S.clientWidth;var a=f?U>this.offset+c.clientWidth:U<this.offset,X=f?Q<this.offset:Q>this.offset+c.clientWidth,z=f?a:X;if(f?X:a)c=f?Q:U,this.offset=Math.abs(c)<S.clientWidth?0:c;else if(z)this.ytLazyListBehavior.fillRemainingListItems(),_.Fg(),this.offset=(f?U:Q)-c.clientWidth;else return}fE(this);this.reposition_()}};
_.J.observeShownItems_=function(){this.reset()};
_.J.checkComponentWidthResize=function(){var S=_.Ur(this.hostElement).querySelector("#items").firstElementChild;S&&(S=fdJ(this,S),this.centerListItems||S!==this.minComponentWidth)&&(this.minComponentWidth=S,this.offset=S*this.scrollCount,this.centerListItems&&Ued(this),fE(this),this.reposition_())};
var fdJ=function(S,c){var Q=window.getComputedStyle(c).marginRight;Q=Math.floor(Number(Q.replace("px","")));var f=window.getComputedStyle(c).marginLeft;f=Math.floor(Number(f.replace("px","")));S.centerListItems&&!S.marginWidthRight&&(S.marginWidthRight=Q,S.marginWidthLeft=f);return S.resizeSupportEnabled?c.getBoundingClientRect().width+Q:c.offsetWidth+Q},fE=function(S){var c=_.Ur(S.hostElement).querySelector("#scroll-container").clientWidth,Q=_.Ur(S.hostElement).querySelector("#items").clientWidth;
S.offset<0?S.offset=0:S.offset+c>=Q&&(S.offset=Q-c)},Ued=function(S){S.offset-=(_.Ur(S.hostElement).querySelector("#scroll-container").clientWidth+S.marginWidthRight-S.minComponentWidth)/2-S.marginWidthLeft};
_.Rh.Object.defineProperties(U6.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var S=_.WY("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(S==-1)S=this.JSC$12324_cachedViewportHeight,S=S>1320?5:S>1020?4:S>730?3:S>430?2:1;else if(S==0)return 0;_.G_("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",S-1);S=_.WY("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(S>-1)return S;S=this.cachedViewportWidth;S=S>1600?6:S>1400?5:S>1300?4:S>1090?5:S>870?4:S>660?3:2;_.G_("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
S);return S},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.u("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
U6.prototype.observeShownItems_=U6.prototype.observeShownItems_;U6.prototype.onChildElementFocus_=U6.prototype.onChildElementFocus_;U6.prototype.onItemsTransitionEnd_=U6.prototype.onItemsTransitionEnd_;U6.prototype.onIronResize_=U6.prototype.onIronResize_;U6.prototype.prevClick_=U6.prototype.prevClick_;U6.prototype.nextClick_=U6.prototype.nextClick_;U6.prototype.setButtonsState_=U6.prototype.setButtonsState_;U6.prototype.requestButtonsStateUpdate_=U6.prototype.requestButtonsStateUpdate_;
U6.prototype.reposition_=U6.prototype.reposition_;U6.prototype.reset=U6.prototype.reset;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],U6.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],U6.prototype,"ytLazyListBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],U6.prototype,"atStart",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],U6.prototype,"atEnd",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"startIndex",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"endIndex",void 0);_.d([_.Z({value:6}),_.P("design:type",Number)],U6.prototype,"initialCount",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"scrollCount",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"initialStartIndex",void 0);
_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"disableScrollEventListener",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"supportComponentResize",void 0);_.d([_.Z({value:function(){var S=this;return function(){return S.prevClick_()}}}),
_.P("design:type",Function)],U6.prototype,"boundPrevClick",void 0);_.d([_.Z({value:function(){var S=this;return function(){return S.nextClick_()}}}),
_.P("design:type",Function)],U6.prototype,"boundNextClick",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"useFloorScrolling",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"isSearch",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"dragging",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"dragMouseStart",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"dragOffsetStart",void 0);
_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"disableWheelScroll",void 0);_.d([_.Z(),_.P("design:type",Object)],U6.prototype,"centerListItems",void 0);_.d([_.FV("iron-resize"),_.B0("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],U6.prototype,"onIronResize_",null);_.d([_.FV("transitionend"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],U6.prototype,"onItemsTransitionEnd_",null);
_.d([_.FV("focusin"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],U6.prototype,"onChildElementFocus_",null);_.d([_.B0("shownItems"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],U6.prototype,"observeShownItems_",null);_.d([_.KU()],U6);_.QW.YtdHorizontalListBehavior=[];_.QW.YtdHorizontalListBehavior.push(_.w9,_.m.YtRendererBehavior,_.cu.YtLazyListBehavior,_.gL.YtdGuideStateAwareBehavior,U6.prototype);var fdz=["APP_STATE","PI"];var J0p=_.oK(["about:blank"]),adT={pushState:window.history.pushState,replaceState:window.history.replaceState};var Jd=function(S){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=S;this.internalPushState=S.pushState.bind(S);this.internalReplaceState=S.replaceState.bind(S)};
Jd.prototype.init=function(){this.initialized=!0};
Jd.prototype.pushState=function(S,c){this.initialized||this.init();this.internalPushState&&this.internalPushState(S,"",c)};
Jd.prototype.replaceState=function(S,c){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(S,"",c)};
Jd.prototype.getState=function(){return this.history&&this.history.state};var A0d=function(S){var c=function(){var Q=S.apply(this,arguments)||this;Q.boundHistoryPushState=!1;Q.boundHistoryReplaceState=!1;Q.debugInfo={};return Q};
_.C(c,S);c.prototype.init=function(){var Q=_.Nf("IFRAME");_.TR(Q,_.QN(J0p));Q.sandbox="allow-same-origin";Q.style.display="none";this.iframe=Q;document.body.appendChild(Q);this.bindHistoryStateFunctions();S.prototype.init.call(this)};
c.prototype.bindHistoryStateFunctions=function(){var Q=this,f=[],U;this.iframe&&((U=this.iframe.contentWindow)==null?0:U.history)&&(U=this.iframe.contentWindow.history)&&(f.push(U),Object.getPrototypeOf(U)&&f.push(Object.getPrototypeOf(U)));window.history&&f.push(window.history);U=window.history;Object.getPrototypeOf(U)&&f.push(Object.getPrototypeOf(U));f.push(adT);U=function(X){for(var z=null,x=0;x<f.length;x++){var I=f[x][X];if(typeof I==="function"){z=I.bind(window.history);Q.debugInfo[X]=x;break}}return z};
if(!this.boundHistoryReplaceState){var a=U("replaceState");a&&(this.internalReplaceState=a,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(U=U("pushState"))&&(this.internalPushState=U,this.boundHistoryPushState=!0)};
return c}(Jd),XSh=function(){return A0d.call(this,window.history)||this};
_.C(XSh,A0d);XSh.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var a5=function(S){this.browserHistory=S;this.initialized=!1};
a5.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
a5.prototype.pushState=function(S,c){this.initialized||this.init();this.browserHistory.pushState(S,c)};
a5.prototype.replaceState=function(S,c){this.initialized||this.init();this.browserHistory.replaceState(S,c)};
a5.prototype.handlePopstate=function(S){return S.state};_.Oop=function(S,c,Q,f,U){this.endpoint=S;this.forward=c;this.historyEntry=Q;this.JSC$26653_savedComponentState=f;this.legacyBorder=U===void 0?!1:U};var zL_=function(S,c){this.rootData=S;this.scrollTop=c};var H$=new _.Sg("PAGE_REQUEST_TOKEN"),H3p=new _.Sg("FETCH_PBJ_TOKEN");_.Ad=new _.Sg("EPHEMERAL_STORE_TOKEN");_.Xd=function(S){this.data=Object.assign({},S);var c;(c=this.data.innertubeResponse)==null||delete c.frameworkUpdates};
_.Xd.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.Qk)()};
_.O9=function(S){return Object.assign({},S.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var xed=function(){this.maxSize=100;this.timeToDataCache=new Map};
xed.prototype.get=function(S){var c=this.timeToDataCache.get(S);c&&(this.timeToDataCache.delete(S),this.timeToDataCache.set(S,c));if(c&&c.rootData&&(_.u("web_use_response_store_for_history_cache")||_.u("mweb_use_new_history_manager"))){var Q=_.fl().resolve(_.Ad),f=F$u(c),U=!!f;if(f){if(f.content){var a=O6(Q,f.content);U&&a?c.rootData.response=_.O9(a):U=!1}f.player&&(a=O6(Q,f.player),U&&a?c.rootData.playerResponse=_.O9(a):U=!1);f.reelSequence&&(Q=O6(Q,f.reelSequence),U&&Q?c.rootData.reelWatchSequenceResponse=
_.O9(Q):U=!1)}U||(this.timeToDataCache.delete(S),c=void 0)}return c};
xed.prototype.set=function(S,c){if(c.rootData&&(_.u("web_use_response_store_for_history_cache")||_.u("mweb_use_new_history_manager"))){var Q=F$u(c),f=Object.assign({},c.rootData);Q&&(Q.content&&c.rootData.response&&(BWd(this,Q.content,c.rootData.response),f.response=null),Q.player&&c.rootData.playerResponse&&(BWd(this,Q.player,c.rootData.playerResponse),f.playerResponse=null),Q.reelSequence&&c.rootData.reelWatchSequenceResponse&&(BWd(this,Q.reelSequence,c.rootData.reelWatchSequenceResponse),f.reelWatchSequenceResponse=
null));c=new zL_(f,c.scrollTop)}this.timeToDataCache.has(S)?this.timeToDataCache.delete(S):this.timeToDataCache.size>=this.maxSize&&(Q=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(Q.value));this.maxSize!==0&&this.timeToDataCache.set(S,c)};
xed.prototype.clear=function(){this.timeToDataCache.clear()};
var F$u=function(S){var c=_.fl().resolve(_.QS(H$)),Q;if((Q=S.rootData)==null?0:Q.endpoint)return c==null?void 0:uYM(c,S.rootData.endpoint);var f;_.i5(new _.Yr("History snapshot response data does not contain endpoint",(f=S.rootData)==null?void 0:f.url));return null},BWd=function(S,c,Q){if(S.maxSize>0){var f;
(S=(f=Q.responseContext)==null?void 0:f.maxAgeSeconds)&&Number(S)>0&&(f=_.fl().resolve(_.Ad),Q=A8(Q,S),f.put(c,new _.Xd(Q)))}};var Idl=function(S,c,Q){this.endpoint=c;this.JSC$26658_savedComponentState=Q===void 0?null:Q;this.entryTime=S};var OoH=1;var zT=function(S){var c=function(){var Q=S.apply(this,[].concat(_.Hs(_.YD.apply(0,arguments))))||this;Q.historyEntryTime=0;Q.historySnapshotCache=Q.createHistoryCache();return Q};
_.C(c,S);c.prototype.createHistoryCache=function(){return new xed};
c.prototype.saveAndReplace=function(Q,f,U){var a=window.location.href;var X=X===void 0?{}:X;var z=(z=this.browserHistory.getState())&&z.entryTime?z.entryTime:zLc();Q=this.createNewHistoryEntry(Q,X,z);this.saveSnapshot(z,f,U);this.replaceState(Q,a||window.location.href)};
c.prototype.saveAndPush=function(Q,f,U,a,X){X=X===void 0?{}:X;this.saveSnapshot(this.historyEntryTime,U,a);U=this.historySnapshotCache;a=this.historyEntryTime;var z=U.timeToDataCache.keys();z=_.A(z);for(var x=z.next();!x.done;x=z.next())x=x.value,x>a&&U.timeToDataCache.delete(x);f=this.createNewHistoryEntry(f,X);this.pushState(f,Q)};
c.prototype.saveSnapshot=function(Q,f,U){this.historySnapshotCache.set(Q,new zL_(f,U))};
c.prototype.createNewHistoryEntry=function(Q,f,U){U=U===void 0?zLc():U;return new Idl(U,Q,f)};
c.prototype.handlePopstate=function(Q){var f=S.prototype.handlePopstate.call(this,Q),U=null,a=null,X=!1,z=null;f&&f.entryTime&&(z=this.historySnapshotCache.get(f.entryTime)||null,X=f.entryTime>this.historyEntryTime,this.historyEntryTime=f.entryTime,U=f.endpoint,a=f.JSC$26658_savedComponentState);this.handleHistoryCacheLoad(new _.Oop(U,X,z,a),Q);return f};
c.prototype.pushState=function(Q,f){Number(Q==null?void 0:Q.entryTime)>=0&&(this.historyEntryTime=Q.entryTime);S.prototype.pushState.call(this,Q,f)};
c.prototype.replaceState=function(Q,f){Number(Q==null?void 0:Q.entryTime)>=0&&(this.historyEntryTime=Q.entryTime);S.prototype.replaceState.call(this,Q,f)};
c.prototype.handleHistoryCacheLoad=function(){};
return c}(a5),nVd=function(){var S=zT.call(this,new XSh)||this;
S.dispatchElement=null;S.entryIndex=0;return S};
_.C(nVd,zT);_.J=nVd.prototype;_.J.init=function(S){S=S===void 0?!0:S;zT.prototype.init.call(this);this.initialized||(S||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.J.handlePopstate=function(S){var c=null;S.state||(c="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return zT.prototype.handlePopstate.call(this,S);var Q=new CustomEvent("yt-history-pop",{cancelable:!0});_.XF(this.dispatchElement,"yt-history-pop",[Q,{errorMsg:c}]);_.Oz(this.dispatchElement,"yt-close-all-popups-action");if(!Q.defaultPrevented){Q=_.fl().resolve(_.oZ);c=Q.getCurrentData();var f=Q.getCurrentPage();Q=0;f?(f=_.XF(this.dispatchElement,"yt-get-page-offset",
[f]),f.length>0&&(Q=f[0])):_.i5(new _.Yr("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:c?c.page:"undefined"}));c&&(c.csn=_.wN());this.saveSnapshot(this.historyEntryTime,c,Q)}return zT.prototype.handlePopstate.call(this,S)};
_.J.handleHistoryCacheLoad=function(S,c){S.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.A(_.Oz(this.dispatchElement,"yt-history-will-navigate",[c])).next().value||_.XF(this.dispatchElement,"yt-history-load",[c,S]))};
_.J.pushState=function(S,c){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var Q=new _.Yr("history.pushState is not a function",this.getDebugString());_.sH(Q)}zT.prototype.pushState.call(this,S,c)};
_.J.replaceState=function(S,c){if(!this.browserHistory.boundHistoryReplaceState){var Q=new _.Yr("history.replaceState is not a function",this.getDebugString());_.sH(Q)}zT.prototype.replaceState.call(this,S,c)};
_.J.saveAndPush=function(S,c,Q,f,U){U=U===void 0?{}:U;Q&&(Q.csn=_.wN());zT.prototype.saveAndPush.call(this,S,c,Q,f,U)};
_.J.getDebugString=function(){var S=[];this.initialized&&S.push("i");this.browserHistory.boundHistoryReplaceState&&S.push("bhr");this.browserHistory.boundHistoryPushState&&S.push("bhs");"replaceState"in this.browserHistory.debugInfo&&S.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&S.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&S.push("ei:"+String(this.entryIndex));return S.join(",")};
_.xF=function(S,c){S.init(!0);var Q=S.browserHistory.getState();S.replaceState(Q,ai(c))};
nVd.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.Fd=new _.Sg("DESKTOP_HISTORY_MANAGER_TOKEN");var boh=[10,20,30,40,50,60],Bu=function(){this.currentPartitionIndex=0},NWh=function(S){hep({mainAppWeb:_.vV(),
survivalSli:{partitionMinute:S,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},K$d=function(S){hep({mainAppWeb:_.vV(),
survivalSli:{partitionMinute:S,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},$ez=function(S){return S.currentPartitionIndex>=0&&S.currentPartitionIndex<boh.length?boh[S.currentPartitionIndex]:-1},utl=function(S){return S.currentPartitionIndex>0&&S.currentPartitionIndex-1<boh.length?boh[S.currentPartitionIndex-1]:-1};
Bu.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var S=utl(this);S>0&&K$d(S);S=$ez(this);S>0&&NWh(S);jG_(this)}};
var jG_=function(S){var c=$ez(S);if(c>0){var Q=utl(S);Q<0&&(Q=0);S.intervalId=_.Mq.addJob(function(){var f=utl(S);f>0&&K$d(f);f=$ez(S);f>0&&NWh(f);jG_(S)},3,(c-Q)*6E4);
S.currentPartitionIndex+=1}else S.currentPartitionIndex=-1};var ldJ=function(){this.skipNextNavigation=!1},Ygd=function(S,c,Q){if(!c)return!1;
if(S.skipNextNavigation)return S.skipNextNavigation=!1;if(_.Y(Q,_.rQ))return!1;var f,U,a;if((f=_.Y(Q,_.KJ))==null?0:(U=f.browseEndpointContextSupportedConfigs)==null?0:(a=U.browseEndpointContextMainConfig)==null?0:a.skipConfirmation)return!1;var X;return((X=_.Y(c.commandMetadata,_.Qw))==null?void 0:X.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
ldJ.prototype.showConfirmationDialog=function(S,c){this.navigateParams=c;this.customConfirmationCommand?_.fl().resolve(_.U8).resolveCommand(this.customConfirmationCommand):(c={openPopupAction:{popup:{confirmDialogRenderer:{title:_.LK(_.K8("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.LK(_.K8("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.LK(_.K8("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.LK(_.K8("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.dQ.getInstance().triggerAction("yt-open-popup-action",c,S))};
ldJ.prototype.cancelPendingNavigation=function(){var S;((S=this.navigateParams)==null?void 0:S.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var Caz=function(){},DeJ=function(S,c,Q,f,U,a,X){Q=Q===void 0?{}:Q;
X=X===void 0?{}:X;var z=_.ls.instance,x,I=(x=_.Y(c,_.rQ))==null?void 0:x.url;return I?SUH(z,I,Q,window.location.href,function(n,b){Hoe(S,n,b,!1,!0,Q,a,f)},function(){return!1}):P$(z,c,Q,window.location.href,ul(c),function(n,b){Hoe(S,n,b,!1,!0,Q,a,f)},U,X)},Hoe=function(S,c,Q,f,U,a,X,z){if(!S.JSC$12382_chunkHandler)if(Q.page==="watch"||Q.page==="learning_journey_watch")if(U||f){if(_.u("kevlar_continue_playback_without_player_response")){var x;
var I=(x=_.Y(z,_.tG))==null?void 0:x.videoId}S.JSC$12382_chunkHandler=new ydJ(_.S9,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:f,previousVideoId:I},tempData:a},X)}else S.JSC$12382_chunkHandler=new LrT(_.S9);else Q.page==="shorts"&&U&&!f?S.JSC$12382_chunkHandler=new Rl$(_.S9,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:a},X):S.JSC$12382_chunkHandler=new EFJ(X);S.JSC$12382_chunkHandler.processChunk({endpoint:c,data:Q});return S.JSC$12382_chunkHandler.n6.promise},
pSe=function(S,c,Q,f,U){(Q=_.eTh(Q))&&Hoe(S,c,Q,!1,!0,f,void 0,U)};var hL_=function(){this.pendingNavigationPromise=null};
_.J=hL_.prototype;_.J.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.J.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.J.addEventListener=function(){throw Error("zh");};
_.J.dispatchEvent=function(){throw Error("zh");};
_.J.removeEventListener=function(){throw Error("zh");};var qgd=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],I5=function(){_.Y5.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];TWl(this)};
_.C(I5,_.Y5);I5.prototype.verifyUser=function(){var S=TWl(this),c=S.logout;if(!S.sessionChange)return!0;this.dispatchEvent("ytsessionchange");c&&this.dispatchEvent("ytuserinvalid");return!1};
var TWl=function(S){var c=qgd.map(function(U){var a;return(a=_.Kl.get(U))!=null?a:""}),Q=c.some(function(U,a){return S.sessionCookies&&S.sessionCookies[a]!==""&&U===""}),f=c.some(function(U,a){return S.sessionCookies&&S.sessionCookies[a]!==U});
S.sessionCookies=c;return{logout:Q,sessionChange:f}};
I5.prototype.clearTimeout=function(){this.scheduledJobId&&(_.Mq.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var nVp=new _.Sg("POSTMESSAGE_TUNNEL_TOKEN");var F$M=["/parent_tools","/file_download","/artist_roster"],K$Y=[DTY,pPY,hvp,Tsz,qoY,HrY,wPZ,swr];var wSz=new _.Sg("APP_ROOT");var nE=new _.Sg("NAVIGATION_CONFIRMATION_SERVICE");var sG$="/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(" "),MMd=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
bF=function(S,c){this.pendingNavigationPromise=null;this.JSC$12400_clientRoot=S;this.historyManager=c;this.logger=null;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 Caz;this.debugString=S.is;S={"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};_.vG(_.dQ.getInstance(),S,this.JSC$12400_clientRoot)},gVh,eLh,k5_,r0l,W$d;
_.C(bF,hL_);bF.prototype.reload=function(){_.dh(window.location.href)};
var dne=function(S){S.currentEndpoint&&_.Y(S.currentEndpoint,_.ll)?S.reload():S.currentEndpoint&&S.navigate(S.currentEndpoint,!0,void 0,{disableCache:!0})};
bF.prototype.navigate=function(S,c,Q,f,U,a,X,z){c=c===void 0?!1:c;Q=Q===void 0?{}:Q;f=f===void 0?{}:f;var x=_.fl().resolve(nE),I;if(!X&&Ygd(x,(I=this.currentEndpoint)!=null?I:void 0,S))return x.showConfirmationDialog(this.JSC$12400_clientRoot.parentElement,{endpoint:S,reload:c,params:Q,tempData:f,requestType:U,createScreenConfig:a}),!1;var n=_.g2();_.en(n,"eocs")||n.parkOrScheduleJob(function(){n.processSignal("eocs")},10,"eor");
X=ul(S);x=f.autonav==="1";I=_.wN();I5.instance||(I5.instance=new I5);var b=I5.instance.verifyUser(),N;if(_.u("enable_dark_theme_only_on_shorts")){var l=document.documentElement.hasAttribute("dark"),H=_.pJ(!0)==="USER_INTERFACE_THEME_DARK";if(X==="shorts"){if(!l)if(_.u("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var q;_.dh((q=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:q.url,void 0,void 0,window.top)}}else{var w;_.dh(_.tS((w=_.Y(S==null?
void 0:S.commandMetadata,_.Qw))==null?void 0:w.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.u("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!l){var g;_.dh(_.tS((g=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:g.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(H!==l){var r;_.dh(_.tS((r=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:r.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(X==="watch"){if(ios(_.fl().resolve(_.ra),
S)&&(b||_.u("fix_miniplayer_navigation_killswitch")))return!1;_.u("block_all_player_prefetch_requests")||(N=k0d(_.Aw(_.YR),S,x))}else{var E,v=(E=_.Y(this.currentEndpoint,_.tG))==null?void 0:E.videoId;v&&_.HL.getInstance().then(function(qr){qr&&qr.set("yt-miniplayer-shown-video-id",v)})}N&&(Q.frags=N.missingFragments_.join(","));
q=null;var t;w=(t=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:t.ignoreNavigation;if(!w)if(_.u("kevlar_command_url")){var V;q=(V=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?void 0:V.url}else q=_.wIZ(S,Q);if(q&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&q==this.lastNavigationUrl)return _.sz({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.nj(Wd(),"CANCELLED")}q&&(this.lastNavigationUrl=q);oRz();_.G_("IS_HOMEPAGE_COLD",
!1);_.G_("IS_RESULTS_PAGE_COLD",!1);_.G_("IS_WATCH_PAGE_COLD",!1);S.loggingUrls&&S.loggingUrls.forEach(function(qr){qr.baseUrl&&_.vt(qr.baseUrl)});
_.ldz(S,a?a.layer:0)&&_.u("kevlar_flush_logs_on_away_navigation")&&_.wQ();if($ex(S))return!1;uWd(X,U);if(!q)return w||_.i5(new _.Yr("Can't construct url for endpoint",S)),_.nj(Wd(),"FAILURE"),!1;_.xep();t=S&&_.Y(S,_.KJ)&&_.Y(S,_.KJ).browseId.startsWith("UC");Q=(V=_.u("enable_dark_theme_only_on_shorts")&&X==="shorts"?!1:_.h4()&&document.documentElement.hasAttribute("dark")!==_.DO())?{themeRefresh:1}:{};V&&!_.uB()&&_.pJ()==="USER_INTERFACE_THEME_DARK"&&(Q.theme="dark");t=V||Zoh(q)&&!t&&!_.u("kevlar_disable_url_allowlist");
b||(t=!0);if(t||_.WY("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var AZ;var IH=(AZ=window.top)==null?void 0:AZ.location.href}catch(qr){var Nr;IH=(Nr=qr)==null?void 0:Nr.message}_.i5(new _.Yr("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:IH}))}S=_.u("kevlar_redirect_on_window_killswitch")?window.top:window;rh(q);_.dh(_.tS(q,Q),void 0,void 0,S);_.nj(Wd(),"ABORTED");return!1}_.u("kevlar_early_popup_close")&&_.XF(this.JSC$12400_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12382_chunkHandler=void 0;var Hc;IH=ul((Hc=this.currentEndpoint)!=null?Hc:void 0);(Hc=X==="shorts"&&IH==="shorts")||_.fPR();_.kC(dIM)("nr",void 0);x&&_.sz({webInfo:{navigationReason:"an"}});S.clickTrackingParams&&(f.itct=S.clickTrackingParams,f.csn=I);OsZ(f);f.endpoint=JSON.stringify(S);_.u("enable_unknown_lact_fix_on_html5")&&(_.fl().resolve(_.wj),f.lact=_.f1());_.Cn.isEmpty(f)||_.SL(q,f);!_.u("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(a=Object.assign({},{layer:0},a,{parentLayer:3}));this.pendingNavigationPromise=a=DeJ(this.pageFetcher,S,f,this.currentEndpoint,this.JSC$12400_isNetworkPromiseStale.bind(this),a,z);a=a.then(this.handleNavigateSuccess.bind(this,a,S,N,f),this.handleNavigateFail.bind(this,a,S));_.bn().navigationFinishPromise=a;c={endpoint:S,pageType:X,url:ai(q),reload:!!c,noProgressBar:Hc};U&&(c.type=U);this.fireEvent("yt-navigate-start",c);N&&pSe(this.pageFetcher,S,N,f,this.currentEndpoint);
return!0};
bF.prototype.JSC$12400_isNetworkPromiseStale=function(S){return S!=this.pendingNavigationPromise};
var G5h=function(S,c,Q,f,U){var a=ul(c);c={endpoint:c,pageType:a};U&&(c.errorMessage=U);_.i5(Q);c.navigationDoneMs=_.i2("nd");c.navigationErrorReason=f;S.fireEvent("yt-navigate-error",c)};
bF.prototype.handleNavigateFail=function(S,c,Q){var f=void 0;Q instanceof _.EI&&(f=Q,qXp(Q));if(this.JSC$12400_isNetworkPromiseStale(S))return _.pv(f);_.nj(Wd(),"FAILURE");G5h(this,c,Q,"101");return _.pv(Q)};
bF.prototype.handleNavigateSuccess=function(S,c,Q,f,U){if(this.JSC$12400_isNetworkPromiseStale(S))return _.B2();this.pendingNavigationPromise=null;if(!U)return c=new _.Yr("Missing data in response for navigation endpoint",c),_.pv(c);if(U.reload)return window.location.reload(!0),_.B2();Q&&(S={},_.Cn.extend(S,_.eTh(Q),U),U=S);var a,X;Q=(a=U)==null?void 0:(X=a.timing)==null?void 0:X.responseStart;Q!=null&&_.i2("srt",Q);_.i2("pdc");var z,x;a=(z=U)==null?void 0:(x=z.timing)==null?void 0:x.info;a!=null&&
(z=_.kC(_.EmM)(a),_.sz(z));_.nj(Wd(),"SUCCESS");W$d(this,c,U,1,f);return _.B2()};
var Zoh=function(S){var c=S;_.u("kevlar_no_redirect_to_classic_2_ks")||(c=(new _.V7(S)).getPath());if(c==="/"||c==="/red")return!1;var Q=!0;sG$.forEach(function(f){S.indexOf(f)===0&&(Q=!1)});
MMd.forEach(function(f){var U=f.url;_.u(f.expFlag)&&S.indexOf(U)===0&&(Q=!1)});
return Q};
bF.prototype.publishPageData=function(S){this.fireEvent("yt-page-data-fetched",{pageData:S})};
gVh=function(S,c,Q,f,U,a){var X=null;c.page!=="watch"&&c.page!=="learning_journey_watch"||f?c.filler||_.XF(S.JSC$12400_clientRoot,"yt-stop-old-player",[c]):X=Hoe(S.pageFetcher,U,c,Q,!1,a,void 0,S.currentEndpoint);if(X)return X.then(S.publishPageData.bind(S,c));S.publishPageData(c);return _.B2()};
eLh=function(S,c,Q){var f=null;if(!Q)return f=new _.Yr("Empty data",S.debugString,c);var U=Q.response;if(!U)return f;var a={endpointType:ul(c)||"unknown"};U.responseContext?(U=U.responseContext.errors)&&(f=new _.Yr("Errors in response context",S.debugString,c,U,a)):f=U.error||U.errorMetadata?new _.Yr("Errors in response",S.debugString,c,U.error,U.errorMetadata,a):new _.Yr("responseContext missing",S.debugString,c,Object.keys(U).sort().join(","),a);var X,z,x,I;if(S=Q==null?void 0:(X=Q.response)==null?
void 0:(z=X.responseContext)==null?void 0:(x=z.webResponseContextExtensionData)==null?void 0:(I=x.webResponseContextDebugData)==null?void 0:I.debugErrorMessages)for(X=0;X<S.length;X++);return f};
k5_=function(S){var c,Q,f,U;return S==null?void 0:(c=S.response)==null?void 0:(Q=c.responseContext)==null?void 0:(f=Q.errors)==null?void 0:(U=f.error)==null?void 0:U["0"]};
r0l=function(S,c){var Q;if(Q=c.url&&!c.url.startsWith("/clip"))Q=c.url,Q=!_.u("webfe_parse_debug_param_in_resolveurl_service")&&S.searchDebugUrlMatcher.test(Q)||GLz(Q)?!0:!1;if(Q)GLz(c.url)&&_.Ep(window.location.href).themeRefresh?(c=_.c2(c.url,"themeRefresh"),_.xF(S.historyManager,c)):c.url&&!A0Y(c.url)&&_.xF(S.historyManager,c.url);else if(c.endpoint){var f,U,a;(Q=(f=c.endpoint)==null?void 0:(U=f.commandMetadata)==null?void 0:(a=U.webCommandMetadata)==null?void 0:a.url)&&!A0Y(Q)&&_.xF(S.historyManager,
Q);Q&&c.url&&Q!=c.url&&!c.url.match("playnext=1")&&new _.Yr("Response url mismatch in response data",S.debugString,Q,c.url)}};
_.deu=function(S,c,Q,f,U,a,X,z){a=a===void 0?!1:a;var x=_.fl().resolve(nE),I;if(!z&&Ygd(x,(I=S.currentEndpoint)!=null?I:void 0,c))return x.showConfirmationDialog(S.JSC$12400_clientRoot.parentElement,{endpoint:c,data:Q,navigationType:f,tempData:U,isMiniplayer:a,isForwardHistoryNavigation:X==null?void 0:X.forward}),_.B2();S.pageFetcher.JSC$12382_chunkHandler=void 0;return W$d(S,c,Q,f,U,a)};
W$d=function(S,c,Q,f,U,a){a=a===void 0?!1:a;S.isMiniplayerExpansion=a;var X=f===2;S.currentEndpoint=c;S.numNavigations++;S.numNavigations&&(R5Y.navigationCount=S.numNavigations);_.G_("NUM_NAV",S.numNavigations);var z=eLh(S,c,Q);if(z)return G5h(S,c,z,"102",k5_(Q)),_.pv(z);var x,I,n,b;z=Q.rootVe||(Q==null?void 0:(x=Q.response)==null?void 0:(I=x.responseContext)==null?void 0:(n=I.webResponseContextExtensionData)==null?void 0:(b=n.ytConfigData)==null?void 0:b.rootVisualElementType);!X&&Q&&r0l(S,Q);var N,
l;x=Q==null?void 0:(N=Q.response)==null?void 0:(l=N.responseContext)==null?void 0:l.maxAgeSeconds;if(!X&&!isNaN(x)){var H;_.u("kevlar_use_response_ttl_to_invalidate_cache")?H=(0,_.Qk)()+1E3*x:_.u("kevlar_always_invalidate_cache")&&(H=0);isNaN(H)||(Q.expirationTime=H)}_.u("html5_enable_ssap_entity_id")&&X&&Q.playerResponse&&(Q.playerResponse.cacheMetadata={isCacheHit:!0});_.Aw(_.YR).prefetchCache_.clear();X||Q.page!=="watch"||Q.type!=="reduced"&&f!==1?f=gVh(S,Q,X,!!a,c,U):(S.publishPageData(Q),f=_.B2());
U=f.then(function(){var q=ul(c);q={endpoint:c,pageType:q,fromHistory:X,response:Q};q.navigationDoneMs=_.i2("nd");S.fireEvent("yt-navigate-finish",q)});
Q.csn&&z&&Q.clientSideGrafts&&f.then(S.attachClientSideGrafts.bind(S,Q,_.T$()));return U};
_.J=bF.prototype;_.J.attachClientSideGrafts=function(S,c){S.clientSideGrafts&&c&&S.clientSideGrafts.forEach(function(Q){if(c&&Q){var f=_.Yz(Q);_.u("combine_ve_grafts")?_.Kv().graftServerVe(Q,c):_.dS(S.csn,c,f)}})};
_.J.handleSignalActionHistoryBack=function(){window.history.back()};
_.J.handleSignalActionCloseWindow=function(){window.close()};
_.J.handleSignalActionReloadPage=function(){this.reload()};
_.J.handleSignalActionSoftReloadPage=function(){dne(this)};
_.J.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.J.fireEvent=function(S,c){S=new CustomEvent(S,{bubbles:!0,cancelable:!1,composed:!0,detail:c});this.dispatchEvent(S)};
_.J.addEventListener=function(S,c){this.JSC$12400_clientRoot.addEventListener(S,c)};
_.J.dispatchEvent=function(S){return this.JSC$12400_clientRoot.dispatchEvent(S)};
_.J.removeEventListener=function(S,c){this.JSC$12400_clientRoot.removeEventListener(S,c)};
bF[mt]=[wSz,_.Fd];_.Aup=new Ux("browse","h8y2qb");_.XUp=new Ux("search","JzFVk");_.O7Z=new Ux("shorts","xwEKAe");_.z4T=new Ux("watchFixie","nmfa2d");_.xCM=new Ux("watchFlexy","CF909");_.FXY=new Ux("watchGrid","Tm0L3c");_.B7z=new Ux("watchLearningJourney","L3n37");var vVl;var Pau=function(){return _.W.apply(this,arguments)||this};
_.C(Pau,_.W);_.Rh.Object.defineProperties(Pau,{template:{configurable:!0,enumerable:!0,get:function(){if(vVl===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);vVl=S}S=vVl;return S}}});
_.d([_.p(PCl.YtPlayerBehavior),_.P("design:type",Object)],Pau.prototype,"ytPlayerBehavior",void 0);_.d([_.e({is:"ytd-player"})],Pau);var L$l;var EVJ;var tMh;var N0=function(){var S=_.W.apply(this,arguments)||this;S.forceModernIconButton=!1;S.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return S};
_.C(N0,_.W);N0.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]]"}}}}}};
N0.prototype.handleAccountLinkingStateChangedCommand=function(S){if(S=_.Y(S,Pr$)){var c,Q=(c=this.data)==null?void 0:c.providerKey;c=S.providerKey;Q&&c&&Q.id===c.id&&Q.subject===c.subject&&(S=S.linked,S!==void 0&&(this.set("data.linked",S),this.notifyPath("data.linked"),_.u("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(S)))}};
N0.prototype.setPlayerAccountLinkState=function(S){var c=new Wsp;Guc(c,g8x(new e_T,S));var Q=_.S9();Q&&Q.getPlayerPromise().then(function(f){f.setAccountLinkState(_.mV(c.JSC$10114_serializeBinary(),4));f.updateAccountLinkingConfig(S)})};
N0.prototype.handleShowAccountLinkDialog=function(){var S=this.get("button.buttonRenderer.command");S&&_.n8([S],this.hostElement)};
_.Rh.Object.defineProperties(N0.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}}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],N0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],N0.prototype,"ytRendererBehavior",void 0);_.d([_.p([_.AN.YtActionHandlerBehavior]),_.P("design:type",Object)],N0.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],N0.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],N0.prototype,"overrides",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],N0.prototype,"forceModernIconButton",void 0);_.d([_.Z({value:"bottom"}),_.P("design:type",String)],N0.prototype,"buttonTooltipPosition",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],N0.prototype,"forceIconButton",void 0);_.d([_.Z(),_.P("design:type",Boolean)],N0.prototype,"disableTextTransform",void 0);
_.d([_.M("data","data.linked","data.isWarning"),_.P("design:type",Object),_.P("design:paramtypes",[])],N0.prototype,"button",null);_.d([_.e({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],N0);
_.k(N0,"ytd-account-link-button-renderer",function(){if(tMh!==void 0)return tMh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return tMh=S},{mode:1});var VMu;var RLi=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],KE=function(){return _.W.apply(this,arguments)||this};
_.C(KE,_.W);KE.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
KE.prototype.updateButtonActiveState=function(){var S=this,c=!!RLi.find(function(Q){return S.currentState===Q});
this.button&&(this.button.isPressed=c)};
_.Rh.Object.defineProperties(KE.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.playlistLoopStateEntity)==null?void 0:S.state)||((c=this.data)==null?void 0:c.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var S=void 0,c;if(this.currentState&&((c=this.data)==null?0:c.states)){c=_.A(this.data.states);for(var Q=c.next();!Q.done;Q=c.next()){Q=_.Y(Q.value,_.zdz);var f=void 0;if(((f=Q)==null?void 0:f.state)===this.currentState){S=Q;break}}}return S}}});
KE.prototype.updateButtonActiveState=KE.prototype.updateButtonActiveState;_.d([_.p(_.st),_.P("design:type",Object)],KE.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KE.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],KE.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.qgT}),_.P("design:type",Object)],KE.prototype,"playlistLoopStateEntity",void 0);_.d([_.Z(),_.P("design:type",Object)],KE.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],KE.prototype,"forceIconOnly",void 0);_.d([_.nU("ytd-button-renderer"),_.P("design:type",_.yv)],KE.prototype,"button",void 0);
_.d([_.M("data","playlistLoopStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],KE.prototype,"currentState",null);_.d([_.B0("currentButtonStateRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KE.prototype,"updateButtonActiveState",null);_.d([_.M("currentState"),_.P("design:type",Object),_.P("design:paramtypes",[])],KE.prototype,"currentButtonStateRenderer",null);
_.d([_.e({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],KE);
_.k(KE,"ytd-playlist-loop-button-renderer",function(){if(VMu!==void 0)return VMu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return VMu=S},
{mode:1});var y0h;var oVl=_.K8("DOWNLOAD",{},"Download"),mez=_.K8("DOWNLOADING",{},"Downloading"),SDe=_.K8("DOWNLOADED",{},"Downloaded"),cJ_=_.K8("RETRY",{},"Retry"),$F=function(){var S=_.W.apply(this,arguments)||this;S.forceIconButton=!1;S.forceIconOnly=!1;S.overrides=!1;S.buttonTooltipPosition=!1;S.styleActionButton=!1;S.disableTextTransform=!1;S.downloadProgress=0;S.isDownloadComplete=!1;S.isHidden=!0;S.transferState="TRANSFER_STATE_UNKNOWN";S.isVideoDeletedByUser=!1;S.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return S};
_.C($F,_.W);_.J=$F.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var S;(S=this.data)!=null&&S.text||(S=_.iZ(_.V5().getState(),this.videoId),this.updateButtonState(S))};
_.J.computeVideoId=function(S){return S};
_.J.showHideButton=function(){this.updateButtonVisibility()};
_.J.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};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(S){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==mez||!_.jD(S))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(S){case "TRANSFER_STATE_UNKNOWN":S=oVl;var c="OFFLINE_DOWNLOAD";var Q="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":S=cJ_;c="OFFLINE_DOWNLOAD";Q="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":S=SDe;c="OFFLINE_PIN";Q="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":S=
mez;c="OFFLINE_DOWNLOADING_ZERO";Q="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":S=cJ_;c="OFFLINE_DOWNLOAD";Q="ACTION_RETRY";break;default:S=oVl,c="OFFLINE_DOWNLOAD",Q="ACTION_ADD"}this.isVideoDeletedByUser&&(S=oVl,c="OFFLINE_DOWNLOAD",Q="ACTION_ADD");var f=Object.assign({},this.data);f.text=_.LK(S);f.tooltip=S;f.icon={iconType:c};f.size="SIZE_DEFAULT";f.style="STYLE_DEFAULT";_.Y(f.command,_.BK)&&(_.Y(f.command,_.BK).action=Q);this.set("data",f)}};
_.J.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var S="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?S="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?S="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?S="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?S="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?S="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(S="OFFLINE_PIN",this.isDownloadComplete=!0);var c;S!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.text=_.LK(mez),c.tooltip=mez,c.icon={iconType:S},_.Y(c.command,_.BK)&&(_.Y(c.command,_.BK).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
$F.prototype.updateProgress=$F.prototype.updateProgress;$F.prototype.onTransferStateChanged=$F.prototype.onTransferStateChanged;$F.prototype.showHideButton=$F.prototype.showHideButton;$F.prototype.dataChanged=$F.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$F.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],$F.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$F.prototype,"forceIconButton",void 0);
_.d([_.Z(),_.P("design:type",Object)],$F.prototype,"forceIconOnly",void 0);_.d([_.Z(),_.P("design:type",Object)],$F.prototype,"overrides",void 0);_.d([_.Z(),_.P("design:type",Object)],$F.prototype,"buttonTooltipPosition",void 0);_.d([_.Z(),_.P("design:type",Object)],$F.prototype,"styleActionButton",void 0);_.d([_.Z(),_.P("design:type",Object)],$F.prototype,"disableTextTransform",void 0);
_.d([_.Z({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.P("design:type",String)],$F.prototype,"videoId",void 0);_.d([_.Z(),_.P("design:type",Object)],$F.prototype,"data",void 0);_.d([_.Z({selector:Gh,selectorArgs:["videoId"]}),_.P("design:type",Object)],$F.prototype,"downloadProgress",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],$F.prototype,"isDownloadComplete",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],$F.prototype,"isHidden",void 0);_.d([_.Z({selector:_.iZ,selectorArgs:["videoId"]}),_.P("design:type",String)],$F.prototype,"transferState",void 0);_.d([_.Z({selector:_.MTM,selectorArgs:["videoId"]}),_.P("design:type",Object)],$F.prototype,"isVideoDeletedByUser",void 0);_.d([_.Z({selector:hOz,selectorArgs:["videoId"]}),_.P("design:type",Object)],$F.prototype,"offlineabilityState",void 0);
_.d([_.Z({value:!0}),_.P("design:type",Boolean)],$F.prototype,"showTooltips",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],$F.prototype,"sendCommandWhenDisabled",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],$F.prototype,"disabled",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$F.prototype,"dataChanged",null);
_.d([_.$n("offlineabilityState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$F.prototype,"showHideButton",null);_.d([_.$n("transferState","isVideoDeletedByUser"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$F.prototype,"onTransferStateChanged",null);_.d([_.$n("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$F.prototype,"updateProgress",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],$F);
_.k($F,"ytd-download-button-renderer",function(){if(y0h!==void 0)return y0h;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return y0h=S},{mode:2});var QEd;var fHJ,Uhd=function(){if(fHJ!==void 0)return fHJ;var S=document.createElement("template");_.D(S,'\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 fHJ=S};var JJT=_.u("web_button_rework")&&_.gC("BUTTON_REWORK")||_.u("web_button_rework_with_live"),aHz=_.a6("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,uF=function(){var S=_.W.apply(this,arguments)||this;S.isPressed=!1;S.forceIconButton=!1;S.forceIconOnly=!1;S.forceModernIconButton=!1;S.alignByText=!1;S.isShorts=!1;S.animatedText=!1;S.shouldAnimate=!1;S.JSC$12438_browserSupportsAnimation=_.u("web_supports_animations_api");S.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};S.onTap=function(){var c;if((c=S.data)==null||!c.defaultNavigationEndpoint){var Q;c=!((Q=S.data)==null?0:Q.isToggled);var f;if((f=S.data)==null||!f.preventAutoToggle){S.shouldAnimate=!1;S.disableTextUpdateJobId&&_.Mq.cancelJob(S.disableTextUpdateJobId);S.disableTextUpdateJobId=_.Mq.addLowPriorityJob(function(){S.disableTextUpdateJobId=void 0},aHz);
var U;S.set("data.isToggled",!((U=S.data)==null?0:U.isToggled));Q=S.getInnertubeIcon();f={toggled:c,actions:{}};Q&&(f.actions[Q.toLowerCase()]=c);_.Az(S.hostElement,"yt-toggle-button",f)}}};
return S};
_.C(uF,_.W);_.J=uF.prototype;_.J.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.Mq.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.toggle=function(S){var c;this.set("data.isToggled",S!==void 0?S:!((c=this.data)==null?0:c.isToggled))};
_.J.handleUpdateToggleButtonStateCommand=function(S){if(this.data){S=_.Y(S,cMT);var c,Q,f,U=(c=this.data)==null?void 0:(Q=c.toggleButtonSupportedData)==null?void 0:(f=Q.toggleButtonIdData)==null?void 0:f.id;U&&S&&U===(S==null?void 0:S.buttonId)&&this.set("data.isToggled",S.toggled)}};
_.J.handleUpdateToggleButtonTextAction=function(S){if(this.data){S=_.Y(S,ZkJ);var c,Q,f,U=(c=this.data)==null?void 0:(Q=c.toggleButtonSupportedData)==null?void 0:(f=Q.toggleButtonIdData)==null?void 0:f.id;U&&S&&U===(S==null?void 0:S.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=S.defaultNumericalValue,this.set("data.defaultText",S.defaultText),this.set("data.toggledText",S.toggledText),this.shouldAnimate=!1)}};
_.J.getInnertubeIcon=function(){var S=this.data;if(S){var c,Q,f=((c=S.defaultIcon)==null?0:c.iconType)?(Q=S.defaultIcon)==null?void 0:Q.iconType:null,U,a;c=((U=S.toggledIcon)==null?0:U.iconType)?(a=S.toggledIcon)==null?void 0:a.iconType:f;return S.isToggled?c:f}};
_.J.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.Rh.Object.defineProperties(uF.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S={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$12438_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var c=S.renderer;var Q=S.element;var f=S.toggled;var U=S.onTapCallback;var a=S.commandClientArgs;var X=S.overrides;var z=S.forceIcon;var x=S.forceModernIconButton;var I=S.forceDisabled;var n=S.useAnimatedText;var b=S.animatedTextProps;S=MMp(c,f);z=!c.defaultIcon||!z&&c.defaultText?c.defaultIcon?"leading":void 0:x?"icon-only":"icon-only-40";z==="icon-only-40"&&(S.type="text");var N;x=Object;var l=x.assign,H;a:switch((H=
c.style)==null?void 0:H.styleType){case "STYLE_COMPACT_GRAY":H={size:"S"};break a;default:H={size:"M"}}var q=!!f;var w=(w=f&&c.toggledText||c.defaultText)?_.sX(w):void 0;n?(n=_.Em(f&&c.toggledText||c.defaultText))&&b&&!isNaN(Number(b.numberValue))?(b.numberText=n,f&&(b.numberValue+=1),n=b):n=void 0:n=void 0;var g,r,E,v;var t=(b=((r=f?c.toggledAccessibilityData||((t=c.toggledText)==null?void 0:t.accessibility):c.accessibilityData||((g=c.defaultText)==null?void 0:g.accessibility))==null?void 0:(E=r.accessibilityData)==
null?void 0:E.label)||((v=c.accessibility)==null?void 0:v.label))?b:_.Em(f&&c.toggledText||c.defaultText);I=I===void 0?c.isDisabled:I;Q=sGZ(c,f,U,Q,a);f=wSx(c,f);f!=null&&f.length?(f=_.gH({innertubeCommand:lsz(f),forceNewState:!0}),f=ew(f)?f:void 0):f=void 0;c=l.call(x,{},S,H,{iconPosition:z},X,{focused:!1,toggled:q,toggleable:!0,formattedButtonText:w,animatedTextProps:n,accessibilityLabel:t,disabled:I,onTap:Q,aTagConfig:f},VFp((N=c.colorData)==null?void 0:N.basicColorPaletteData));c.alignByText=
this.alignByText;this.isShorts&&this.data.isToggled&&(c.type="filled");return c}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var S=this.getInnertubeIcon();if(S)return _.xz(S)}}});
uF.prototype.resetAnimation=uF.prototype.resetAnimation;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],uF.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],uF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"isPressed",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"forceIconButton",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"forceIconOnly",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"forceModernIconButton",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"alignByText",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"overrides",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],uF.prototype,"disabled",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"isShorts",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"buttonTooltipPosition",void 0);_.d([_.Z(),_.P("design:type",Object)],uF.prototype,"animatedText",void 0);_.d([_.Z(),_.P("design:type",String)],uF.prototype,"textNumberValue",void 0);_.d([_.Z({computed:"computeTooltip(data, data.isToggled)"}),_.P("design:type",Object)],uF.prototype,"tooltip",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uF.prototype,"resetAnimation",null);_.d([_.M("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.P("design:type",Object),_.P("design:paramtypes",[])],uF.prototype,"computedButtonShape",null);_.d([_.M("data.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],uF.prototype,"computedIcon",null);
_.d([_.e({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],uF);JJT&&_.k(uF,"ytd-toggle-button-renderer",Uhd,{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var Ms=_.y_(function(S){function c(I){var n;return _.O(function(b){if(b.nextAddress==1)return(n=!Zoo(I,z())||!z().enabled)?b.jumpTo(2):_.F(b,k5c(),3);b.nextAddress!=2&&(n=b.yieldResult);if(n)return b.return();Q();setTimeout(function(){X(!1)},1500);
_.IN(b)})}
function Q(){setTimeout(function(){X(!0);var I;(I=f.lottieEl)==null||I.goToAndPlay(0)},150)}
var f=_.xa(),U=_.A(_.ny(!1,void 0,"JJXzp")),a=U.next().value,X=U.next().value,z=_.tq(S.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.wC(function(){var I,n;((I=S.settings)==null?void 0:(n=I.call(S))==null?void 0:n.uniqueId)==="this is not intended behavior"&&_.i5(new _.Yr("Smartimation Settings is undefined"))});
_.To(function(){z().experimentEnabled&&(z().enabled?G5o(c):(X(!1),W$Y(c)),_.wX(function(){W$Y(c)}))},"FRiAUe");
_.To(function(){z().timings.join("");z().experimentEnabled&&(gVo(z()),_.wX(function(){eLo(z())}))},"VKiJOe");
var x=_.uQ(function(){var I=f,n=z().uniqueId+"-border",b,N;var l="https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+((N=(b=_.fl().resolve(_.QS(_.Lv)))==null?void 0:b())!=null&&N?"dark":"light")+"_v2.json";return{animationRef:I,animationConfig:{name:n,autoplay:!1,loop:!1,path:l}}},void 0,"tgykab");
U={};return _.B("yt-smartimation",{class:_.n4(S.className,"smartimation",(U["smartimation--experiment-enabled"]=function(){return z().experimentEnabled},U["smartimation--active-border"]=a,U["smartimation--enable-masking"]=r0Y(),U))},_.B(_.K,{cond:function(){return z().experimentEnabled},
then:function(){return _.B("div",{class:"smartimation__border"},_.B(_.b8,{className:"smartimation__border-gradient",data:x,animationName:function(){return x().animationConfig.name}}))}}),_.B("div",{class:"smartimation__content"},S.children))},"B");
Ms.idomCompat=!0;_.f4(Ms,"yt-smartimation",{props:{className:_.y$,settings:_.y$}});var jX=function(){var S=_.W.apply(this,arguments)||this;S.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};S.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};S.shouldEnableSmartimation=!1;return S};
_.C(jX,_.W);jX.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
jX.prototype.onDataChanged=function(){var S,c;this.shouldEnableSmartimation=(((S=this.data)==null?void 0:(c=S.timedAnimationData)==null?void 0:c.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
jX.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var S=_.Y(this.data.likeButton,_.WA),c=_.Y(this.data.dislikeButton,_.WA);return!!((S==null?0:S.isToggled)||(c==null?0:c.isToggled))};
jX.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]]"}}}}}};
_.Rh.Object.defineProperties(jX.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=((S=this.data)==null?void 0:(c=S.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"like-dislike",timings:Q,enabled:this.shouldEnableSmartimation,experimentEnabled:Q.length>0}}}});
jX.prototype.onDataChanged=jX.prototype.onDataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],jX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jX.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],jX.prototype,"likeButtonOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],jX.prototype,"dislikeButtonOverride",void 0);
_.d([_.M("shouldEnableSmartimation"),_.P("design:type",Object),_.P("design:paramtypes",[])],jX.prototype,"smartimationSettings",null);_.d([_.B0("data"),_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jX.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],jX);
_.k(jX,"ytd-segmented-like-dislike-button-renderer",function(){if(QEd!==void 0)return QEd;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return QEd=S},{mode:1});var AJ$;var XWd;(XWd=document.body)==null||XWd.setAttribute("rounded-container","");var OId={};OId.YtToggleButtonBehavior=[_.AN.YtActionHandlerBehavior,lv.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 S=this.data.isToggled;if(!this.isModal_(S)){if(!this.data.preventAutoToggle){this.toggle();var c={toggled:this.data.isToggled,actions:{}};c.actions[this.buttonIcon]=this.data.isToggled;_.Az(this.hostElement,"yt-toggle-button",c)}c=this.data.defaultServiceEndpoint||null;var Q=this.data.toggledServiceEndpoint||null;if(c&&Q||c&&this.data.preventAutoToggle)S=S?Q:c,c=this.disableCommandHandlerOverride,_.u("killswitch_toggle_button_behavior_resolve_command")||c?_.xt(this.hostElement,
[S]):_.IW(S,this.hostElement),_.Az(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:S})}},
stateChanged_:function(){var S=this.data;if(S){var c=S.isToggled;this._setEndpoint(this.computeEndpoint_(S));this._setServiceEndpoint(this.computeServiceEndpoint_(S));this._setButtonIcon(this.computeButtonIcon_(S,c));this._setButtonText(this.computeButtonText_(S,c));this._setButtonAccessibility(this.computeAccessibility_(S,c));this._setButtonTooltip(this.computeTooltip_(S,c));this._setButtonClass(this.computeButtonClass_(S,c));this._setIconPositionType(this.computeIconPositionType_(S));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=c):this.elements_.button.setAttribute("aria-pressed",c));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=c)}},
shouldSetIconActiveState_:function(){return _.u("kevlar_system_icons")},
toggle:function(S){this.set("data.isToggled",S!==void 0?S:!this.data.isToggled);_.u("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(S){if(S){var c,Q;return!!((c=this.data)==null?0:(Q=c.toggledServiceEndpoint)==null?0:Q.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(S){return S&&S.defaultNavigationEndpoint||null},
computeButtonIcon_:function(S,c){var Q=S&&S.defaultIcon?_.xz(S.defaultIcon.iconType):null;S=S&&S.toggledIcon?_.xz(S.toggledIcon.iconType):Q;return c?S:Q},
handleUpdateToggleButtonStateCommand_:function(S){S=S.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==S.buttonId&&this.toggle(S.toggled)},
computeButtonText_:function(S,c){return S?c&&S.toggledText||S.defaultText||null:null},
computeAccessibility_:function(S,c){return S?(c?this.get("toggledAccessibilityData.accessibilityData",S):this.get("accessibilityData.accessibilityData",S))||S.accessibility||null:null},
computeTooltip_:function(S,c){return S?c&&S.toggledTooltip||S.defaultTooltip||null:null},
computeButtonClass_:function(S,c){if(!S)return"";var Q="",f=S.toggledStyle||S.style;if(c=c?f:S.style){c.styleType&&(c=c.styleType);try{Q+=c.toLowerCase().replace(/_/g,"-")+" "}catch(U){_.ZE(U,c,typeof c),_.i5(U)}}if(S=S.size){S.sizeType&&(S=S.sizeType);try{Q+=S.toLowerCase().replace(/_/g,"-")+" "}catch(U){_.ZE(U,S,typeof S),_.i5(U)}}return Q.trim()},
computeIconPositionType_:function(S){return S&&S.iconPosition||null},
computeServiceEndpoint_:function(S){var c=S&&S.serviceEndpoint,Q=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return c?c:Q&&S.command?S.command:null},
handleUpdateToggleButtonTextAction_:function(S){S=S.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==S.buttonId&&(this.set("data.defaultText",S.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",S.toggledText),this.notifyPath("data.toggledText"))}}];_.i8("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var zcs=_.u("web_button_rework")&&_.gC("BUTTON_REWORK")||_.u("web_button_rework_with_live"),lF=function(){var S=_.W.apply(this,arguments)||this;S.systemIcons=_.u("kevlar_system_icons");S.roundedContainer=!0;return S};
_.C(lF,_.W);lF.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
lF.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var S=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var c={toggled:!!this.data.isToggled,actions:{}};c.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var Q,f;c.actions.playlistId=(Q=this.data.defaultServiceEndpoint)==null?void 0:(f=Q.playlistEditEndpoint)==null?void 0:f.playlistId;_.Az(this.hostElement,"yt-toggle-button",c)}(S=S?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(S)}};
lF.prototype.onYtNavigate=function(S){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);c&&(S.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(c))};
_.Rh.Object.defineProperties(lF,{template:{configurable:!0,enumerable:!0,get:function(){if(AJ$===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);AJ$=S}S=AJ$;return S}}});
lF.prototype.onYtNavigate=lF.prototype.onYtNavigate;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],lF.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],lF.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(OId.YtToggleButtonBehavior),_.P("design:type",Object)],lF.prototype,"ytToggleButtonBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],lF.prototype,"data",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],lF.prototype,"showTooltips",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lF.prototype,"systemIcons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lF.prototype,"roundedContainer",void 0);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],lF.prototype,"onYtNavigate",null);
_.d([_.e({is:"ytd-toggle-button-renderer",disableElementRegistration:zcs})],lF);var xhJ;_.YF=new _.Sg("PANEL_CONTROLLER_TOKEN");_.CE=new _.Sg("SHEET_CONTROLLER_TOKEN");_.Hu=new _.Sg("DIALOG_CONTROLLER_TOKEN");xhJ=new _.Sg("DIALOG_CONTAINER_TOKEN");var y0o=_.K8("DOWNLOAD",{},"Download"),oVY=_.K8("DOWNLOADING",{},"Downloading"),mex=_.K8("DOWNLOADED",{},"Downloaded"),SDp=_.K8("RETRY",{},"Retry");var QET=[],fHz=!1;var Fjd=_.y_(function(S){var c=FjY,Q=function(){return""},f=XWY(S.data),U=OIY(S.data),a=zcR(S.data),X=xhz(S.data);
c=function(){var z=S.data(),x=VMM(z,f(),U(),a(),X()),I=!!z.videoId,n=x.text;return{title:I?n:void 0,tooltip:I?void 0:n,accessibilityText:n,onTap:x.onTap,iconName:x.iconType,style:z.buttonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:x.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:z.buttonSize}};
Q={};Q=_.n4("ytDownloadButtonViewModelHost",(Q.ytDownloadButtonViewModelIsHidden=function(){var z=S.data(),x=X();return z.playlistId||x()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||x()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},Q));
return _.B("download-button-view-model",{class:Q},_.B(_.Ze,{data:c}))},"C");
Fjd.idomCompat=!0;var IH$=_.y_(function(S){var c=S.backgroundLottieRef;var Q=S.foregroundLottieRef;var f=S.children;var U=S.wrapperClass;var a=S.disableAnimation;S=function(){return(_.u("web_animated_actions")||_.u("web_animated_actions_v2"))&&!(a==null?0:a())};
return _.B("yt-animated-action",{class:_.n4("animated-action__container",U)},_.B("div",{class:"animated-action__content-with-background"},_.B(_.K,{cond:S,then:function(){return _.B(Bfl,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:c==null?void 0:c(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(BfY()?"dark":"light")+"_v5.json"}}}})}}),f),_.B(_.K,{cond:S,
then:function(){return _.B(Bfl,{lottiePlayerProps:function(){return{animationRef:Q==null?void 0:Q(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(BfY()?"dark":"light")+"_v4.json"}}}})}}))},"D");
IH$.idomCompat=!0;var Bfl=_.y_(function(S){var c=S.wrapperClass;var Q=S.lottieClass;var f=S.lottiePlayerProps;return _.B("div",{class:_.n4("animated-action__lottie",c),"aria-hidden":"true"},_.B(_.b8,{className:Q,data:f,animationName:function(){return f().animationConfig.name}}))},"E");var IHZ={isOpen:!1};var bIx={isAllowed:!1};var Kjr={errorMessage:"",title:"",privacy:"",isDisabled:!0};var u0z={isOpen:!1};var lHo={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var nWl={response:void 0};var C_Z=function(S,c){S=S===void 0?nWl:S;switch(c.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},S,{response:c.payload});default:return S}};var bIz={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var HIp=function(S,c){S=S===void 0?bIz:S;switch(c.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},S,{nextDisabled:c.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},S,{nextCommand:c.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},S,{footerSubmissionData:c.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},S,{isImpersonationValid:c.payload});default:return S}};var Nf$={reportFormData:void 0,reportDetailsFormData:void 0};var DhM=function(S,c){S=S===void 0?Nf$:S;switch(c.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},S,{reportFormData:c.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},S,{reportDetailsFormData:c.payload});default:return S}};var KjH=void 0;_.u("mweb_enable_redux_store_on_demand")||(KjH=new tb(pWR()));var $hh=_.y_(function(S){S=_.V_(S,{themeOverride:void 0,animationRef:{}});var c=S.animatedIconType,Q=S.active,f=S.themeOverride,U=S.animationRef;S=S.staticIconFn;var a=_.A(_.ny(void 0,void 0,"P5a72b")),X=a.next().value,z=a.next().value,x=function(){a:{var w=c();var g=f==null?void 0:f();var r;g=(g==null?void 0:g.useDarkTheme)||((r=_.fl().resolve(_.QS(_.Lv)))==null?void 0:r());switch(w){case "LIKE":KjH||(KjH=new tb(pWR()));w=(w=qwz(KjH.getState()))&&w.animationLightUrl&&w.animationDarkUrl?{lottiePlayerProps:{animationConfig:{name:g?
"custom_animated_like_icon_dark":"custom_animated_like_icon",path:g?w.animationDarkUrl:w.animationLightUrl,loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"custom-animated-like-icon"}}},totalFrames:120,lazyLoad:!0}:void 0;if(w){g=w;break a}g="animated_like_icon_"+(g?"dark_v4":"light_v4");g={lottiePlayerProps:{animationConfig:{name:g,path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/"+g+".json",loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},
totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":g={lottiePlayerProps:{animationConfig:{name:g?"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(g?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}g=void 0}return g},I=function(){var w,g;
return(g=(w=x())==null?void 0:w.lottiePlayerProps.animationConfig.name)!=null?g:""},n=function(){if(x()){var w=x().lottiePlayerProps.animationConfig.path;
return IZ.get(w)||X()}};
a=_.A(_.ny(!1,void 0,"h6xR3c"));var b=a.next().value;a=a.next().value;var N=qDp(a),l=function(){var w=x(),g,r,E;return(E=w==null?void 0:(g=w.lottiePlayerProps.animationConfig)==null?void 0:(r=g.rendererSettings)==null?void 0:r.className)!=null?E:""},H=void 0,q=void 0;
_.To(function(){var w=x(),g=I(),r=n(),E=b(),v=Q();if(w&&(q!==g&&(q=g,H=v,g=U(),N.animationConfig=w.lottiePlayerProps.animationConfig,N.animationRef=g,r&&(N.animationConfig.animationData=r,N.animationConfig.path=void 0),g=w.lottiePlayerProps.animationConfig.path,!IZ.get(g)&&w.lazyLoad&&g&&hcz(g,z)),!(E||w.lazyLoad&&!r))){if(r=!U().lottieEl)v?(E=w.totalFrames,N.animationConfig.initialSegment=[E-1,E]):N.animationConfig.initialSegment=void 0;if(H!==v&&!r)if(r=U(),v){var t;(t=r.lottieEl)==null||t.playSegments([0,
w.totalFrames],!0)}else{var V;(V=r.lottieEl)==null||V.playSegments([0,1],!0)}H=v}},"YCYOCe");
return _.B("animated-icon",{class:"ytAnimatedIconHost"},_.B(_.K,{cond:function(){var w,g;return!((w=x())==null||!w.lottiePlayerProps.animationConfig.path||((g=x())==null?0:g.lazyLoad)&&!n()||b())},
then:function(){return _.B(_.b8,{data:N,animationName:I,className:l,animationRef:U})},
else:S}))},"F");_.Dj=_.y_(function(S){var c=_.EH("yt-subscribe-button-view-model"),Q=_.EH("div"),f=_.EH("div"),U=_.xa(),a=_.xa(),X=_.xa(),z=_.b9(YgY,function(){return S.data().stateEntityStoreKey}),x=_.b9(Cax,function(){var B_,zJ;
return(zJ=(B_=S.data().notificationStateEntityStoreKeys)==null?void 0:B_.subsNotificationStateKey)!=null?zJ:""}),I=function(){return!S.data().enableSubscribeButtonPostClickAnimation},n=_.A(_.ny(0,void 0,"eTsWvc")),b=n.next().value,N=n.next().value;
n=_.A(_.ny(0,void 0,"dniDQ"));var l=n.next().value,H=n.next().value;n=_.A(_.ny(!1,void 0,"EluPic"));var q=n.next().value,w=n.next().value;n=_.A(_.ny(!1,void 0,"r0jnre"));var g=n.next().value,r=n.next().value;n=_.A(_.ny(!1,void 0,"KMvoQe"));var E=n.next().value,v=n.next().value,t;n=_.A(_.ny(!1,void 0,"aSENce"));var V=n.next().value,AZ=n.next().value,IH=function(){r(!0);_.u9(_.Mq,function(){r(!1)},1500)};
_.To(function(){var B_=g();Ix(function(){B_&&!I()&&z()&&ecY(U,a,X)})},"LgmX6c");
_.To(function(){var B_=z();Ix(function(){if(!I()&&B_){var zJ;((zJ=S.animateWidth)==null?0:zJ.call(S))&&gWz(c.value,!!B_.subscribed,b(),l());var Qp,xl;((Qp=t)==null?0:Qp.subscribed)||!B_.subscribed||B_.key!==((xl=t)==null?void 0:xl.key)||IH();t=B_}})},"iZzoUb");
n=_.uQ(function(){var B_,zJ,Qp,xl=S.data(),xZ=!((B_=z())==null||!B_.subscribed);B_=!((zJ=S.isOverlay)==null||!zJ.call(S));zJ=q()?c:void 0;var hj=(Qp=x())==null?void 0:Qp.state;Qp=V();Wjc(xl,hj);return sEc({model:xl,subscribed:xZ,isOverlay:B_,element:zJ,notificationState:hj,disableTextEllipsis:!0,focused:Qp})},void 0,"yGQGue");
var Nr=function(){var B_;if(!I()&&((B_=S.animateWidth)==null?0:B_.call(S))&&(Q==null?0:Q.value)&&(f==null?0:f.value)&&!E()){B_=z();var zJ=_.A((B_==null?0:B_.subscribed)?[Q,f]:[f,Q]),Qp=zJ.next().value;zJ=zJ.next().value;Qp=Math.ceil(Qp.value.getBoundingClientRect().width);zJ=Math.ceil(zJ.value.getBoundingClientRect().width);N(Qp);H(zJ);gWz(c.value,!(B_==null||!B_.subscribed),Qp,zJ);v(!0)}},Hc=_.$d(function(B_){Nr();
var zJ=z();zJ&&(B_.detail.endpoint.subscribeEndpoint||B_.detail.endpoint.unsubscribeEndpoint)&&iIz(c.value,!zJ.subscribed,zJ)}),qr=function(){var B_=_.fl().resolve(_.QS(_.zy));
B_&&AZ(B_.isKeyBoardInUse())},wp=function(){AZ(!1)};
_.L1("yt-player-subscribe",function(B_){var zJ=z();zJ&&B_===S.data().channelId&&iIz(c.value,!0,zJ)});
_.L1("yt-player-unsubscribe",function(B_){var zJ=z();zJ&&B_===S.data().channelId&&iIz(c.value,!1,zJ)});
_.L1("yt-update-subscribe-button-action",function(B_){B_=_.Y(B_,eYH);var zJ=z();zJ&&B_&&B_.channelId===S.data().channelId&&iIz(c.value,!!B_.subscribed,zJ)});
_.wC(function(){c.value&&(c.value.addEventListener("focusin",qr),c.value.addEventListener("focusout",wp));var B_=_.HG(_.Mq,function(){Nr()});
w(!0);_.wX(function(){_.Mq.cancelJob(B_);c.value&&(c.value.removeEventListener("focusin",qr),c.value.removeEventListener("focusout",wp))})});
var Pc=function(){var B_,zJ,Qp;if(Qp=!((B_=z())==null||!B_.subscribed))B_=!!S.data().disableNotificationBell,Qp=(zJ=x())==null?void 0:zJ.state,Qp=!B_&&!!Qp;return Qp},ex=function(){var B_;
return!((B_=z())==null?0:B_.subscribed)},yd=function(){var B_,zJ;
if(zJ=ex()){zJ=!!S.data().disableNotificationBell;var Qp=(B_=x())==null?void 0:B_.state;zJ=!zJ&&!!Qp}return zJ},op={},DT={};
return _.B("yt-subscribe-button-view-model",{class:_.n4(S.className,"yt-subscribe-button-view-model-wiz",(op["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var B_,zJ;return!((B_=z())==null||!B_.subscribed)&&((zJ=S.animateWidth)==null?void 0:zJ.call(S))&&g()},op["yt-subscribe-button-view-model-wiz--hidden"]=function(){var B_;
return!((B_=z())==null?0:B_.subscribed)&&S.data().hideWhenUnsubscribed},op)),
el:c,"on:yt-service-request-sent":Hc},_.B(IH$,{backgroundLottieRef:U,foregroundLottieRef:a,wrapperClass:_.n4("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(DT["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var B_;return((B_=S.animateWidth)==null?void 0:B_.call(S))&&g()},DT["yt-subscribe-button-view-model-wiz__static-width"]=function(){var B_;
return!((B_=S.animateWidth)==null?0:B_.call(S))},DT)),
disableAnimation:I},_.B("div",{el:Q,class:"yt-subscribe-button-view-model-wiz__container"},_.B(cZ,{data:n,icon:function(){return _.B(_.K,{cond:Pc,then:function(){var B_=function(){var zJ;return MYR((zJ=x())==null?void 0:zJ.state)};
return _.B(_.K,{cond:function(){return I()||B_()!=="NOTIFICATIONS_NONE"},
then:function(){return _.B(_.C4,{icon:B_})},
else:function(){return _.B($hh,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:X})}})}})},
secondaryIconName:function(){return Pc()?"EXPAND":void 0}}))),_.B("div",{el:f,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.B(_.K,{cond:function(){var B_;return((B_=S.animateWidth)==null?void 0:B_.call(S))&&!I()&&!E()},
then:function(){return _.B(cZ,{data:_.uQ(function(){var B_;return sEc({model:S.data(),subscribed:ex(),isOverlay:!((B_=S.isOverlay)==null||!B_.call(S)),element:c,disableTextEllipsis:!0})},void 0,"lwPlub"),
iconName:function(){var B_;return yd()?MYR((B_=x())==null?void 0:B_.state):void 0},
secondaryIconName:function(){return yd()?"EXPAND":void 0}})}})))},"G");
_.Dj.idomCompat=!0;var klz=new _.Sg("RENDERER_STAMPER_OPTIONS_TOKEN");var u0i=_.y_(function(S){var c=S.data;var Q=_.b9(YgY,function(){return c().subscriptionStateEntityKey});
return _.B(_.K,{cond:function(){var f=c(),U=Q();return!f.hideWhenUnsubscribed||(U==null?0:U.subscribed)?_.Y(c().button,_.Ya):void 0},
then:function(f){return _.B("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.B(_.Ze,{data:f,buttonOverrides:function(){return{toggled:!0}}}))}})},"H");
u0i.idomCompat=!0;var yJp=_.l9({buttonViewModel:_.Ze,subscribeButtonViewModel:_.Dj,downloadButtonViewModel:Fjd,toggleButtonViewModel:_.qs,subscribePlusButtonViewModel:u0i});_.Qu(mhT);var De;_.HK=new iJp;De=new Map;var Xpo="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),z_z=["notificationTextRenderer","notificationMultiActionRenderer"],Opr="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
ADH=S3Z(function(S){return _.Zf(S==null?void 0:S.targetId)}).useUpdatableData;var aiR=0;_.h8.debugName="EjJbCe";var jEi=_.y_(function(S){return _.B(_.h8,{data:function(){return S.actionRow().actions}},{buttonViewModel:_.u("web_enable_sink_yt_flexible_actions_view_model")?function(c){var Q=c.data;
c={};return _.B(_.Ze,{data:Q,className:_.n4("yt-flexible-actions-view-model-wiz__action",(c["yt-flexible-actions-view-model-wiz__action--row-action"]=S.isRow,c["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=S.useIntrinsicWidth,c["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,c["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return x4Y(Q())},c))})}:function(c){var Q=c.data;
return _.B(pE,{isRow:S.isRow,isIconOnlyButton:function(){return x4Y(Q())},
useIntrinsicWidth:S.useIntrinsicWidth},_.B(_.Ze,{data:Q}))},
subscribeButtonViewModel:_.u("web_enable_sink_yt_flexible_actions_view_model")?function(c){var Q=c.data;c={};return _.B(_.Dj,{data:Q,isOverlay:!1,animateWidth:function(){return!S.isRow()},
className:_.n4("yt-flexible-actions-view-model-wiz__action",(c["yt-flexible-actions-view-model-wiz__action--row-action"]=S.isRow,c["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=S.useIntrinsicWidth,c["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,c["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=function(){return x4Y(Q())},c))})}:function(c){return _.B(pE,{isRow:S.isRow},_.B(_.Dj,{data:c.data,
isOverlay:!1,animateWidth:function(){return!S.isRow()}}))},
downloadButtonViewModel:function(c){var Q=c.data;return _.B(pE,{isRow:S.isRow,isIconOnlyButton:function(){return!!Q().playlistId}},_.B(Fjd,{data:Q}))},
toggleButtonViewModel:function(c){var Q=c.data;return _.B(pE,{isRow:S.isRow,isIconOnlyButton:function(){var f=Q();return x4Y(_.Y(f.isToggled?f.toggledButtonViewModel:f.defaultButtonViewModel,_.Ya))}},_.B(_.qs,{data:Q}))},
subscribePlusButtonViewModel:function(c){return _.B(pE,{isRow:S.isRow},_.B(u0i,{data:c.data}))}})},"I"),pE=_.y_(function(S){var c={};
return _.B("div",{class:_.n4("yt-flexible-actions-view-model-wiz__action",(c["yt-flexible-actions-view-model-wiz__action--row-action"]=S.isRow,c["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=S.useIntrinsicWidth,c["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,c["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=S.isIconOnlyButton,c))},S.children)},"J"),lHh=_.y_(function(S){var c=function(){var f;
return((f=S.layout)==null?void 0:f.call(S))===1},Q={};
return _.B("yt-flexible-actions-view-model",{class:_.n4("yt-flexible-actions-view-model-wiz",S.className,(Q["yt-flexible-actions-view-model-wiz--inline"]=function(){return!c()},Q["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return S.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},Q))},_.B(_.lW,{each:function(){return S.data().actionsRows||[]}},function(f){return _.B(_.K,{cond:c,
then:function(){return _.B("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.B(jEi,{actionRow:f,isRow:c,useIntrinsicWidth:function(){return!!S.data().respectActionIntrinsicWidth}}))},
else:function(){return _.B(jEi,{actionRow:f,isRow:c})}})}))},"K"),hd=_.u("web_enable_sink_yt_flexible_actions_view_model")?lHh:_.K4(mhT);
lHh.idomCompat=!0;_.f4(hd,"yt-flexible-actions-view-model",{props:{data:_.y$,layout:_.y$,justifyContentOverride:_.y$,className:_.y$}});_.Qu(Fso);var YD_,NgT;YD_=_.y_(function(S){var c=_.b9(W3,function(){var U;return(U=S.data().dislikeEntityKey)!=null?U:""}),Q=_.uQ(function(){var U=c();
return U?U.likeStatus==="DISLIKE":_.Y(S.data().toggleButtonViewModel,_.CS).isToggled},void 0,"D8oIFb"),f=_.uQ(function(){return Object.assign({},_.Y(S.data().toggleButtonViewModel,_.CS),{isToggled:Q()})},void 0,"shaCXe");
return _.B("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.B(_.qs,{data:f,buttonShapeOverrides:S.buttonShapeOverrideables,onToggle:function(U){var a=c();a&&U!==(a.likeStatus==="DISLIKE")&&a.key&&_.Er(_.TI("likeStatusEntity",a.key,{likeStatus:U?"DISLIKE":"INDIFFERENT",hadUserInteraction:U}))}}))},"L");
NgT=_.u("web_enable_sink_dislike_button_view_model")?YD_:Fso;_.q0=_.u("web_enable_sink_dislike_button_view_model")?YD_:_.K4(Fso);YD_.idomCompat=!0;_.Qu(Iiz);var C_T,bpR;C_T=_.y_(function(S){var c=_.u("web_supports_animations_api"),Q=md(function(N){var l=I(),H,q=(l==null?void 0:(H=l.likeCountIfIndifferent)==null?void 0:H.content)!==N.numberText;if(z()||!q)return N;var w,g;return{numberText:(l==null?void 0:(w=l.likeCountIfIndifferent)==null?void 0:w.content)||"",numberValue:Number((g=l==null?void 0:l.likeCountIfIndifferentNumber)!=null?g:0),heightPx:36,shouldAnimate:!!l}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),f=md(function(N){var l=I(),H,q=(l==null?void 0:(H=l.likeCountIfIndifferent)==null?void 0:H.content)!==N.numberText;if(z()||!q)return N;var w,g;return{numberText:(l==null?void 0:(w=l.likeCountIfLiked)==null?void 0:w.content)||"",numberValue:Number((g=l==null?void 0:l.likeCountIfLikedNumber)!=null?g:0),heightPx:36,shouldAnimate:!!l}},{initial:{numberText:"",
numberValue:0,heightPx:36,shouldAnimate:!1}}),U=_.A(_.ny(void 0,void 0,"T6jMHc")),a=U.next().value,X=U.next().value,z=a,x=_.b9(W3,function(){var N,l;return(l=(N=S.data())==null?void 0:N.likeStatusEntityKey)!=null?l:""}),I=_.b9(cyc,function(){var N,l;
return((N=S.likeCountEntity)==null?void 0:(l=N.call(S))==null?void 0:l.key)||""}),n=_.uQ(function(){var N;
return((N=x())==null?void 0:N.likeStatus)==="LIKE"},void 0,"WxQBcd"),b=function(){var N;
return c&&!((N=S.likeCountEntity)==null||!N.call(S))};
return _.B("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.B(_.qs,{data:function(){var N=Object,l=N.assign,H;var q=_.Y((H=S.data())==null?void 0:H.toggleButtonViewModel,_.CS);return l.call(N,{},q||{},{isToggled:n()})},
buttonShapeOverrides:S.buttonShapeOverrideables,animatedTextPropsDefault:function(){return b()?Q():void 0},
animatedTextPropsToggled:function(){return b()?f():void 0},
onToggle:function(N){n8Y(N,x(),z(),X)},
style:function(){var N;return((N=S.disableIconAnimation)==null?0:N.call(S))?void 0:{animateIcon:"true"}}}))},"M");
bpR=_.u("web_enable_sink_like_button_view_model")?C_T:Iiz;_.TT=_.u("web_enable_sink_like_button_view_model")?C_T:_.K4(Iiz);_.Qu(Ksz);var HIe=_.y_(function(S){var c=function(){return _.Y(S.data().likeButtonViewModel,_.wJ)},Q=function(){var U;
return((U=c())==null?void 0:U.likeStatusEntityKey)||""},f=_.uQ(function(){var U,a;
var X=(a=_.b9(W3,Q)())!=null?a:(U=c())==null?void 0:U.likeStatusEntity;U=S.data();var z;U=(U==null?void 0:(z=U.timedAnimationData)==null?void 0:z.animationTiming)||[];return{uniqueId:"like-dislike",timings:U,enabled:(X==null?void 0:X.likeStatus)==="INDIFFERENT"&&U.length>0,experimentEnabled:U.length>0}},void 0,"e1fsz");
return _.B("segmented-like-dislike-button-view-model",{class:_.n4("ytSegmentedLikeDislikeButtonViewModelHost",S.className),"button-renderer":!0},_.B(Ms,{settings:f},_.B("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},_.B(_.K,{cond:c,then:function(U){return _.B(_.TT,{data:U,likeCountEntity:function(){return S.data().likeCountEntity},
buttonShapeOverrideables:{segmentedPosition:"start"}})}}),_.B(_.K,{cond:function(){return _.Y(S.data().dislikeButtonViewModel,_.se)},
then:function(U){return _.B(_.q0,{data:U,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}})}}))))},"N"),Dhu=_.u("web_enable_sink_segmented_like_dislike_button_view_model")?HIe:Ksz;
HIe.idomCompat=!0;_.u("web_enable_sink_segmented_like_dislike_button_view_model")?_.f4(Dhu,"segmented-like-dislike-button-view-model",{props:{data:_.y$,className:_.y$}}):_.xd(Dhu,"segmented-like-dislike-button-view-model",{propNames:["data"]});var Cmr=0;_.f4(kuM,"account-link-button-view-model",{props:{data:_.y$,className:_.Qn,setMinWidth:_.Qn,forceIconOnly:_.Qn}});_.i8("menuRenderer","menuRenderer","ytd-menu-renderer");
var pWs={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"}},
hcJ=_.u("web_fix_missing_action_buttons")?100:200,wl=function(){var S=_.W.apply(this,arguments)||this;S.safeArea=!_.u("kevlar_flex_menu_safe_area_killswitch");S.tonalOverride=!1;S.threeDotSize="M";S.isOverlay=!1;S.useOverlayDark=!1;S.topLevelIconsOnly=!1;S.JSC$12583_lastWidth=0;S.maybeUpdateFlexibleMenu=function(){_.u("web_fix_missing_action_buttons")?requestAnimationFrame(S.maybeUpdateFlexibleMenuImpl):S.maybeUpdateFlexibleMenuImpl()};
S.maybeUpdateFlexibleMenuImpl=function(){var c;if((c=S.data)!=null&&c.flexibleItems){S.maybeFlushDebouncer();c=S.hostElement.clientWidth;var Q=c>S.JSC$12583_lastWidth,f,U=((f=S.topLevelButtonsContainer)==null?void 0:f.scrollHeight)||0,a;f=((a=S.flexibleItemButtonsContainer)==null?void 0:a.scrollHeight)||0;a=S.hostElement.scrollHeight>Math.max(U,f)+8;Q?(S.resetFlexibleItems(),S.JSC$12583_lastWidth=S.hostElement.clientWidth,S.maybeUpdateFlexibleMenu()):a&&(S.shrinkFlexibleMenu(),S.JSC$12583_lastWidth=
c)}};
S.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){S.onOverflowTap()},
iconPosition:"icon-only",style:S.isOverlay?S.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:S.threeDotSize,state:"active",accessibilityLabel:S.computeAccessibilityLabel(S.data)},S.threeDotButtonOverride)};
S.onOverflowTap=function(){if(S.data.fetchMenuCommand)_.fl().resolve(_.U8).resolveCommand(S.data.fetchMenuCommand,{form:{element:S.hostElement}});else if(S.data.isDisabled&&S.data.disabledCommand)_.IW(S.data.disabledCommand,S.hostElement);else{var c=S.createMenuRendererVe(),Q={items:S.items};S.data.menuPopupAccessibility&&(Q.menuPopupAccessibility=S.data.menuPopupAccessibility);S.data.footer&&(Q.footer=S.data.footer);c={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:Q},veData:c}};
_.fl().resolve(_.CE).openSheet({openPopupActionCommand:c},S.hostElement)}};
return S};
_.C(wl,_.W);_.J=wl.prototype;_.J.updateButtonOverrides=function(){if(!_.u("menu_renderer_label_update_upkillswitch")){var S=_.Ur(this.hostElement).querySelector("yt-button-view-model");S&&(S.buttonOverrides=this.buttonOverrides)}};
_.J.computeHasItems=function(){var S;return((S=this.topLevelButtonData)==null?void 0:S.length)||this.hasFlexibleItems};
_.J.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.J.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.Or(this.hostElement,{"--ytd-menu-renderer-button-color":_.WV(this.data.iconColor)}))};
_.J.onStamperFinished=function(){this.JSC$12583_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.J.setupFlexibleMenu=function(){var S=this,c;(c=this.data)!=null&&c.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.S0(this.maybeUpdateFlexibleMenu,hcJ,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){S.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))};
_.J.maybeFlushDebouncer=function(){if(_.u("web_replace_formatted_with_attributed_string")){var S;(S=this.topLevelButtons)==null||S.forEach(function(Q){var f;(Q=(f=Q.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&H2p(Q)});
var c;(c=this.flexibleItemButtons)==null||c.forEach(function(Q){var f;(Q=(f=Q.getElementsByTagName("yt-attributed-string"))==null?void 0:f[0])&&H2p(Q)})}};
_.J.resetFlexibleItems=function(){var S;if((S=this.data)!=null&&S.flexibleItems){_.u("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var c;this.flexAsTopLevelButtons=(c=this.data.flexibleItems)==null?void 0:c.map(function(Q){return _.Y(Q,_.XEJ).topLevelButton});
_.u("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.J.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.J.shrinkFlexibleMenu=function(){var S;(S=this.flexAsTopLevelButtons)!=null&&S.length&&(this.flexAsTopLevelButtons=[].concat(_.Hs(this.flexAsTopLevelButtons.slice(0,-1))))};
_.J.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:pWs,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:pWs,events:!0}}};
_.J.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.J.detached=function(){this.icon="MORE_VERT"};
_.J.computeTopLevelButtonData=function(S){if(!S)return[];var c;S=(c=S==null?void 0:S.topLevelButtons)!=null?c:[];return _.Cn.unsafeClone([].concat(_.Hs(S)))};
_.J.computeItems=function(S,c){if(!S)return[];var Q=[];if(c){var f=(S.flexibleItems||[]).map(function(X){return _.Y(X,_.XEJ)});
f=_.A(f);for(var U=f.next();!U.done;U=f.next())U=U.value,c.includes(U.topLevelButton)||(U=U.menuItem)&&Q.push(U)}var a;S=(a=S==null?void 0:S.items)!=null?a:[];return[].concat(_.Hs(Q),_.Hs(S))};
_.J.computeMenuActive=function(S,c){return S||c};
_.J.onPopupOpened=function(){this.overlayOpen=!0;_.Az(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.J.onPopupClosed=function(){this.overlayOpen=!1;_.Az(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.onPopupCanceled=function(){this.overlayOpen=!1;_.Az(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.J.computeAccessibilityLabel=function(S){return this.get("accessibility.accessibilityData.label",S)};
_.J.isHidden=function(S,c){return this.tonalOverride||!S?!0:S.fetchMenuCommand||S.isDisabled&&S.disabledCommand?!1:!(c==null?0:c.length)};
_.J.isModernOverflowHidden=function(S,c){return this.tonalOverride&&S?S.fetchMenuCommand?!1:!(c==null?0:c.length):!0};
_.J.createMenuRendererVe=function(){var S=this.data.trackingParams,c=_.wN(),Q=_.T$();return S&&c&&Q?(S=_.Yz(S),Q=_.qo(7591),_.u("combine_ve_grafts")?_.Oc(_.Kv(),Q,S):_.dS(c,S,Q),Q):null};
_.Rh.Object.defineProperties(wl.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.flexAsTopLevelButtons)==null||!S.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
wl.prototype.onPopupCanceled=wl.prototype.onPopupCanceled;wl.prototype.onPopupClosed=wl.prototype.onPopupClosed;wl.prototype.onPopupOpened=wl.prototype.onPopupOpened;wl.prototype.tonalOverrideChanged=wl.prototype.tonalOverrideChanged;wl.prototype.resetFlexibleItems=wl.prototype.resetFlexibleItems;wl.prototype.setupFlexibleMenu=wl.prototype.setupFlexibleMenu;wl.prototype.iconButtonColorChanged=wl.prototype.iconButtonColorChanged;wl.prototype.updateButtonOverrides=wl.prototype.updateButtonOverrides;
_.d([_.p(_.Vv),_.P("design:type",Object)],wl.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wl.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("#button-shape"),_.P("design:type",IQ)],wl.prototype,"buttonShape",void 0);_.d([_.nU("#button"),_.P("design:type",Object)],wl.prototype,"button",void 0);
_.d([_.Z(),_.P("design:type",Object)],wl.prototype,"data",void 0);_.d([_.Z({computed:"computeTopLevelButtonData(data)"}),_.P("design:type",Array)],wl.prototype,"topLevelButtonData",void 0);_.d([_.Z(),_.P("design:type",Array)],wl.prototype,"flexAsTopLevelButtons",void 0);_.d([_.Z({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.P("design:type",Array)],wl.prototype,"items",void 0);_.d([_.Z({value:"MORE_VERT"}),_.P("design:type",String)],wl.prototype,"icon",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],wl.prototype,"safeArea",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.P("design:type",Boolean)],wl.prototype,"menuActive",void 0);_.d([_.Z(),_.P("design:type",Boolean)],wl.prototype,"menuFocused",void 0);_.d([_.Z({value:"bottom"}),_.P("design:type",String)],wl.prototype,"buttonTooltipPosition",void 0);_.d([_.Z(),_.P("design:type",Boolean)],wl.prototype,"overlayOpen",void 0);
_.d([_.Z({value:!0}),_.P("design:type",Boolean)],wl.prototype,"forceIconButton",void 0);_.d([_.Z(),_.P("design:type",Boolean)],wl.prototype,"styleActionButton",void 0);_.d([_.Z(),_.P("design:type",Boolean)],wl.prototype,"disableTextTransformOnButtons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],wl.prototype,"tonalOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],wl.prototype,"threeDotSize",void 0);
_.d([_.Z(),_.P("design:type",Object)],wl.prototype,"threeDotButtonOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],wl.prototype,"isOverlay",void 0);_.d([_.Z(),_.P("design:type",Object)],wl.prototype,"useOverlayDark",void 0);_.d([_.Z({computed:"computeButtonOverride(tonalOverride)"}),_.P("design:type",Object)],wl.prototype,"buttonOverride",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],wl.prototype,"hasCustomIconColor",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("flexAsTopLevelButtons"),_.P("design:type",Object),_.P("design:paramtypes",[])],wl.prototype,"hasFlexibleItems",null);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.P("design:type",Boolean)],wl.prototype,"hasItems",void 0);_.d([_.Z(),_.P("design:type",Object)],wl.prototype,"topLevelIconsOnly",void 0);
_.d([_.B0("topLevelIconsOnly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"updateButtonOverrides",null);_.d([_.M("topLevelIconsOnly"),_.P("design:type",Object),_.P("design:paramtypes",[])],wl.prototype,"buttonOverrides",null);_.d([_.nU("#top-level-buttons-computed"),_.P("design:type",HTMLElement)],wl.prototype,"topLevelButtonsContainer",void 0);_.d([_.bw(".top-level-buttons > *"),_.P("design:type",Array)],wl.prototype,"topLevelButtons",void 0);
_.d([_.nU("#flexible-item-buttons"),_.P("design:type",HTMLElement)],wl.prototype,"flexibleItemButtonsContainer",void 0);_.d([_.bw("#flexible-item-buttons > *"),_.P("design:type",Array)],wl.prototype,"flexibleItemButtons",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"iconButtonColorChanged",null);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"setupFlexibleMenu",null);_.d([_.$n("topLevelIconsOnly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"resetFlexibleItems",null);_.d([_.B0("tonalOverride"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"tonalOverrideChanged",null);
_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"onPopupOpened",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"onPopupClosed",null);_.d([_.FV("yt-popup-canceled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wl.prototype,"onPopupCanceled",null);
_.k(wl,"ytd-menu-renderer",function(){if(EVJ===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);EVJ=S}S=EVJ;return S},{mode:_.A2("kevlar_poly_si_batch_j030")?1:2});var qDe;var Tfp;_.y8=_.y_(function(S){var c=S.data;var Q=function(){if(c().icon)a:{var f={iconName:c().icon};for(var U=_.fl().resolve(_.FB),a=_.A([12,24]),X=a.next();!X.done;X=a.next()){var z=X.value;X=Object.assign({},f,{iconStyle:"youtube_fill",iconSize:z});z=Object.assign({},f,{iconStyle:"youtube_outline",iconSize:z});if(U.resolveIcon(X)){f=X;break a}if(U.resolveIcon(z)){f=z;break a}}f=void 0}else f=void 0;return f};
S={};return _.B("badge-shape",{class:_.n4("badge-shape-wiz",function(){return v8c(c().type)},(S["badge-shape-wiz--overlay"]=function(){return c().isOverlay},S["badge-shape-wiz--ads-include-dot"]=function(){return c().adsIncludeDot},S["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(c().type){case 16:case 17:case 18:var f=!0;
break a;default:f=!1}return f},S["badge-shape-wiz--status-badge"]=function(){a:switch(c().type){case 11:case 12:case 13:case 14:case 15:var f=!0;
break a;default:f=!1}return f},S["badge-shape-wiz--no-text"]=function(){return!c().text},S["badge-shape-wiz--modern"]=function(){return c().modern||_.u("web_modern_badge_shape")},S)),
style:_.Yd({"background-color":function(){var f;return(f=c().customColors)==null?void 0:f.backgroundColor}}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},_.B(_.K,{cond:function(){return c().animation},
then:function(f){return _.B(_.b8,{className:"badge-shape-wiz__icon",data:f,animationName:function(){return f().animationConfig.name||""}})}}),_.B(_.K,{cond:function(){var f;
return Q()&&!((f=c())==null?0:f.animation)},
then:function(){return _.B("div",{class:"badge-shape-wiz__icon"},_.B(rnT,{data:function(){return Q()}}))}}),_.B("div",{class:"badge-shape-wiz__text"},function(){var f;
return(f=c())==null?void 0:f.text}))},"O");
_.y8.idomCompat=!0;_.f4(_.y8,"badge-shape",{props:{data:_.y$}});var s6=function(){var S=_.W.apply(this,arguments)||this;S.systemIcons=_.u("kevlar_system_icons");S.animated=_.u("animated_live_badge_icon");S.useBadgeShape=_.u("web_badge_shape_defrag");return S};
_.C(s6,_.W);_.J=s6.prototype;_.J.addTooltips=function(){for(var S=_.Ur(this.hostElement).querySelectorAll(".badge"),c=0,Q;Q=S[c++];){var f=this.repeatElement.itemForElement(Q);Q=_.Ur(Q);Q.lastChild&&Q.lastChild.is==="tp-yt-paper-tooltip"&&Q.removeChild(Q.lastChild);if(f=f.metadataBadgeRenderer&&f.metadataBadgeRenderer.tooltip){var U=_.fm("tp-yt-paper-tooltip");(0,_.XV)(U).textContent=f;U.setAttribute("position","top");U.setAttribute("aria-hidden","true");Q.appendChild(U)}}};
_.J.badgesChanged=function(){var S=this;_.g2().parkOrScheduleJob(function(){S.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.J.standaloneRoundedBadgeChanged=function(){var S=this.useRoundedBadge?this.useRoundedBadge:void 0;S&&(this.useRoundedBadge=S)};
_.J.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.J.computeStyle=function(S){_.u("enable_html5_teal_ad_badge")&&S==="BADGE_STYLE_TYPE_AD"&&(S="badge-style-type-ad-alternate");_.u("kevlar_ytb_live_badges")&&S==="BADGE_STYLE_TYPE_LIVE_NOW"&&(S="badge-style-type-live-now-alternate");return S?S.toLowerCase().replace(/_/g,"-"):""};
_.J.computeRole=function(S){return this.computeAriaLabel(S)?"img":"status"};
_.J.computeAriaLabel=function(S){var c;return(S==null?void 0:(c=S.accessibilityData)==null?void 0:c.label)||(S==null?void 0:S.label)};
_.J.computeBadgeShape=function(S){var c;if(S){var Q,f=rDc(S.style),U=d4o(S.style),a=S.label,X=((Q=S.accessibilityData)==null?void 0:Q.label)||S.label;S=(c=S.icon)==null?void 0:c.iconType;c={type:f,brNzRatingBadgeType:U,text:a,accessibilityText:X,icon:S!=="PREMIUM"?S:void 0}}else c={};return c};
_.J.updateComputedBadges=function(S,c,Q){var f=this;(c=c?[c]:Q?[Q]:void 0)?this.computedBadges=c:this.computedBadges=S==null?void 0:S.filter(function(U){var a;if((a=U.metadataBadgeRenderer)==null?0:a.groups){a=!1;U=_.A(U.metadataBadgeRenderer.groups);for(var X=U.next();!X.done;X=U.next()){X=X.value;var z=void 0;a=a||((z=f.hiddenBadgeGroups)==null?void 0:z.includes(X))}return!a}return!0})};
_.J.useFilledIcons=function(S){return _.u("kevlar_system_icons")&&(S==="AUDIO_BADGE"||S==="CHECK_CIRCLE_THICK"||S==="OFFICIAL_ARTIST_BADGE"||S==="SPONSORSHIP_STAR"||S==="PERSON_RADAR_FILLED"||S==="PERSON_RADAR")};
_.J.computeIcon=function(S){var c,Q;S=S==null?void 0:(c=S.metadataBadgeRenderer)==null?void 0:(Q=c.icon)==null?void 0:Q.iconType;if(S!=="PREMIUM"&&S)return _.xz(S)};
_.J.computeStandaloneBadge=function(S){var c;S=S==null?void 0:(c=S.icon)==null?void 0:c.iconType;return S==="PREMIUM_STANDALONE"||S==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
s6.prototype.hiddenBadgeGroupsChanged=s6.prototype.hiddenBadgeGroupsChanged;s6.prototype.standaloneBadgeChanged=s6.prototype.standaloneBadgeChanged;s6.prototype.standaloneRoundedBadgeChanged=s6.prototype.standaloneRoundedBadgeChanged;s6.prototype.badgesChanged=s6.prototype.badgesChanged;_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"hidden",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],s6.prototype,"componentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Array)],s6.prototype,"badges",void 0);_.d([_.Z(),_.P("design:type",Object)],s6.prototype,"topStandaloneBadge",void 0);_.d([_.Z(),_.P("design:type",Object)],s6.prototype,"bottomStandaloneBadge",void 0);_.d([_.Z(),_.P("design:type",Object)],s6.prototype,"computedBadges",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"mediumFontAdBadge",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"useRoundedBadge",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"largeFontAdBadge",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"overlayAd",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"overlayPremium",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"noDotAdBadge",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"collectionTruncate",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"isThumbnailBadge",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],s6.prototype,"wrapBadges",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],s6.prototype,"systemIcons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],s6.prototype,"animated",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],s6.prototype,"useBadgeShape",void 0);_.d([_.Z({value:[]}),_.P("design:type",Array)],s6.prototype,"hiddenBadgeGroups",void 0);_.d([_.nU("#repeat"),_.P("design:type",pU)],s6.prototype,"repeatElement",void 0);_.d([_.$n("badges"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s6.prototype,"badgesChanged",null);
_.d([_.$n("useRoundedBadge"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s6.prototype,"standaloneRoundedBadgeChanged",null);_.d([_.$n("topStandaloneBadge","bottomStandaloneBadge"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s6.prototype,"standaloneBadgeChanged",null);_.d([_.$n("hiddenBadgeGroups"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s6.prototype,"hiddenBadgeGroupsChanged",null);
_.d([_.e({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],s6);
var wWd=_.aW()(s6,"ytd-badge-supported-renderer",function(){if(Tfp===void 0){var S=document.createElement("template");_.D(S,'\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"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);Tfp=S}S=Tfp;return S},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.A2("kevlar_poly_si_batch_j053")?1:2});var Zj=function(){var S=_.W.apply(this,arguments)||this;S.iconType="STAR";S.standardizeIconSize=_.u("kevlar_system_icons");S.mediaHoverOverlayInitialVisibility=_.u("enable_top_landscape_image_button_command_web");S.noBottomMargin=!1;S.thumbnailObjectFit="CONTAIN";S.thumbnailFitHeight=!0;S.actionMap={"yt-mute-ad-action":"handleMuteAd"};return S};
_.C(Zj,_.W);_.J=Zj.prototype;
_.J.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"}}}};
_.J.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",Zj.JSC$12595_DEFAULT_CLICK_LOCATION_BEHAVIOR,Zj.JSC$12595_CLICK_LOCATION_ID_MAP))};
_.J.onTap=function(S){if(!_.u("use_on_click_for_desktop_display_ad"))this.onTapOrClick(S)};
_.J.onClick=function(S){if(_.u("use_on_click_for_desktop_display_ad"))this.onTapOrClick(S)};
_.J.onTapOrClick=function(S){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,S,!1)};
_.J.updateMediaBackgroundImage=function(){var S=this.get("data.image.thumbnail.thumbnails");S&&(S=_.U2(S,0))&&_.Or(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+S+")"})};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var S=0;S<this.data.impressionEndpoints.length;S++){var c=this.data.impressionEndpoints[S];c.clickTrackingParams&&delete c.clickTrackingParams;_.fl().resolve(_.U8).resolveCommand(c,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var Q;((Q=this.data)==null?0:Q.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.J.handleMuteAd=function(){};
_.J.attached=function(){var S=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Rh.Object.defineProperties(Zj.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.titleText)return"";var c;return _.K8("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((c=this.data)==null?void 0:c.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.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 S;return!((S=this.data)==null||!S.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"}}});
Zj.prototype.onClick=Zj.prototype.onClick;Zj.prototype.onTap=Zj.prototype.onTap;Zj.prototype.dataChanged=Zj.prototype.dataChanged;
Zj.JSC$12595_CLICK_LOCATION_ID_MAP=_.u("enable_web_home_top_landscape_image_layout_click_location")?new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","body-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER","secondary-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL","media-hover-overlay"],["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",
"media"],["PROMOTED_SPARKLES_CLICK_LOCATION_BORDER","media-background"]]):new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root"]]);
Zj.JSC$12595_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.u("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Zj.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Zj.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.ig),_.P("design:type",Object)],Zj.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Zj.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Zj.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.p(wL),_.P("design:type",Object)],Zj.prototype,"ytdActiveViewBehavior",void 0);_.d([_.p([_.AN.YtActionHandlerBehavior]),_.P("design:type",Object)],Zj.prototype,"actionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Zj.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Zj.prototype,"clickCommand",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],Zj.prototype,"miniMode",void 0);_.d([_.Z(),_.P("design:type",String)],Zj.prototype,"iconType",void 0);_.d([_.M("data.titleText"),_.P("design:type",String),_.P("design:paramtypes",[])],Zj.prototype,"titleAriaLabel",null);
_.d([_.M("data.rating"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zj.prototype,"getRating",null);_.d([_.M("data.price"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zj.prototype,"getPrice",null);_.d([_.M("data.thirdLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zj.prototype,"getThirdLine",null);_.d([_.M("data.fourthLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zj.prototype,"getFourthLine",null);
_.d([_.M("data.fifthLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zj.prototype,"getFifthLine",null);_.d([_.M("getRating"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"computeRatingHidden",null);_.d([_.M("getPrice"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"computePriceHidden",null);_.d([_.M("getThirdLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"computeThirdLineHidden",null);
_.d([_.M("getFourthLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"computeFourthLineHidden",null);_.d([_.M("getFifthLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"computeFifthLineHidden",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.energyIcon"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"hasEnergyIcon",null);
_.d([_.M("computePriceHidden","computeRatingHidden"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"computeSecondaryTextHidden",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Zj.prototype,"standardizeIconSize",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Zj.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Zj.prototype,"noBottomMargin",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.layout"),_.P("design:type",String),_.P("design:paramtypes",[])],Zj.prototype,"layout",null);_.d([_.M("data.layout"),_.P("design:type",Object),_.P("design:paramtypes",[])],Zj.prototype,"mediaThumbnailWidth",null);_.d([_.M("layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zj.prototype,"useRoundedBadge",null);_.d([_.Z(),_.P("design:type",String)],Zj.prototype,"thumbnailObjectFit",void 0);
_.d([_.Z(),_.P("design:type",Object)],Zj.prototype,"thumbnailFitHeight",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zj.prototype,"dataChanged",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Zj.prototype,"onTap",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Zj.prototype,"onClick",null);
_.d([_.e({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],Zj);
_.k(Zj,"ytd-display-ad-renderer",function(){if(qDe!==void 0)return qDe;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return qDe=S},{mode:1});var sE_;var MYs;var iIi;var Pmx=new Map;var ZI_=!1;var GT=function(){var S=_.W.apply(this,arguments)||this;S.DEFAULT_TOOLTIP_OFFSET="10";S.TOOLTIP_OFFSET_NO_BANNER="-8";S.badges=null;S.noEndpoints=!1;S.wrapText=!1;S.forceVerified=!1;S.tooltipPosition="top";S.compactStyle=!1;S.height=0;S.lineHeight=0;return S};
_.C(GT,_.W);_.J=GT.prototype;_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.J.attached=function(){var S=this;this.observer=new MutationObserver(function(c,Q){S.handleResized();Q.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.J.detached=function(){this.observer&&this.observer.disconnect()};
_.J.logTooltipEvent=function(){_.u("kevlar_wiz_tooltip_event_killswitch")||ZI_||(_.Lso("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),ZI_=!0)};
_.J.handleWindowResized=function(){this.handleResized()};
_.J.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")))};
_.J.onHeightChanged=function(){if(this.verified){var S=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.WY("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=S:this.textContainerEl.style.marginRight=S}};
_.J.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.WY("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.J.handleResized=function(){var S=this;this.verified&&_.Mq.addLowPriorityJob(function(){S.fitBackgroundToText();var c=getComputedStyle(S.hostElement).lineHeight;c&&(c=c.match(/\d+/))&&c.length&&(S.lineHeight=Number(c[0]));S.height=S.lineHeight&&!S.wrapText?S.lineHeight:S.textEl.offsetHeight})};
_.J.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var S=document.createRange(),c=_.Ur(this.textEl).children;c.length>0?S.selectNodeContents(c[0]):S.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(S.getBoundingClientRect().width)+"px"}};
_.J.computeChannelBadgeStyle=function(S){var c;if((S==null?0:(c=S.runs)==null?0:c.length)&&S.runs[0].textColor)return"--ytd-badge-icon-color:"+_.WV(S.runs[0].textColor)+";"};
_.Rh.Object.defineProperties(GT.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"?_.LK(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var S=this.get("badges.0.metadataBadgeRenderer.tooltip");if(S)return S}return _.Em(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
GT.prototype.onLineHeightChanged=GT.prototype.onLineHeightChanged;GT.prototype.onHeightChanged=GT.prototype.onHeightChanged;GT.prototype.onChannelNameChanged=GT.prototype.onChannelNameChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],GT.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"badges",void 0);_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"channelName",void 0);
_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"noEndpoints",void 0);_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"wrapText",void 0);_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"forceVerified",void 0);_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"tooltipPosition",void 0);_.d([_.Z(),_.P("design:type",String)],GT.prototype,"tooltip",void 0);_.d([_.Z(),_.P("design:type",Boolean)],GT.prototype,"hasChannelArt",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],GT.prototype,"compactStyle",void 0);_.d([_.nU("#text-container"),_.P("design:type",HTMLElement)],GT.prototype,"textContainerEl",void 0);_.d([_.nU("#text"),_.P("design:type",Object)],GT.prototype,"textEl",void 0);_.d([_.nU("#verified-tooltip"),_.P("design:type",HTMLElement)],GT.prototype,"verifiedTooltip",void 0);_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"height",void 0);
_.d([_.Z(),_.P("design:type",Object)],GT.prototype,"lineHeight",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("badges","forceVerified"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],GT.prototype,"verified",null);_.d([_.M("badges","verified"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],GT.prototype,"hideBadges",null);_.d([_.M("channelName"),_.P("design:type",Object),_.P("design:paramtypes",[])],GT.prototype,"formattedName",null);
_.d([_.M("badges","verified","formattedName"),_.P("design:type",String),_.P("design:paramtypes",[])],GT.prototype,"tooltipText",null);_.d([_.M("hasChannelArt"),_.P("design:type",String),_.P("design:paramtypes",[])],GT.prototype,"tooltipOffset",null);_.d([_.B0("channelName"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GT.prototype,"onChannelNameChanged",null);
_.d([_.B0("height"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GT.prototype,"onHeightChanged",null);_.d([_.B0("lineHeight","height"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GT.prototype,"onLineHeightChanged",null);_.d([_.e({is:"ytd-channel-name",disableElementRegistration:!0})],GT);
_.k(GT,"ytd-channel-name",function(){if(iIi!==void 0)return iIi;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return iIi=S},{mode:_.A2("kevlar_poly_si_batch_j036")?1:2});var Wu=function(){var S=_.W.apply(this,arguments)||this;S.standardizeIconSize=_.u("kevlar_system_icons");S.enableModernCommentBadges=_.u("enable_modern_comment_badges");return S};
_.C(Wu,_.W);Wu.prototype.basicPaletteChanged=function(){var S;(S=this.data.color)!=null&&S.basicColorPaletteData&&_.s2(this.hostElement,this.data.color.basicColorPaletteData)};
Wu.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var S,c=this.get("basicColorPaletteData.backgroundColor",(S=this.data)==null?void 0:S.color),Q;S=this.get("basicColorPaletteData.foregroundTitleColor",(Q=this.data)==null?void 0:Q.color);Q={};c?(c=_.WV(c),Q["--ytd-author-comment-badge-background-color"]=c):(Q["--ytd-author-comment-badge-icon-background-color"]="transparent",Q["--ytd-author-comment-badge-background-color"]="transparent");S?(c=_.WV(S),Q["--ytd-author-comment-badge-name-color"]=
c,Q["--ytd-author-comment-badge-icon-color"]=c):Q["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(Q).length>0&&_.Or(this.hostElement,Q)}};
Wu.prototype.useFilledIcons=function(S){return _.u("kevlar_system_icons")&&(S==="CHECK_CIRCLE_THICK"||S==="OFFICIAL_ARTIST_BADGE")};
_.Rh.Object.defineProperties(Wu.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")}}});
Wu.prototype.colorChanged=Wu.prototype.colorChanged;Wu.prototype.basicPaletteChanged=Wu.prototype.basicPaletteChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Wu.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Wu.prototype,"standardizeIconSize",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Wu.prototype,"enableModernCommentBadges",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.authorUnifiedVerified"),_.P("design:type",Object),_.P("design:paramtypes",[])],Wu.prototype,"verified",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Wu.prototype,"creator",null);_.d([_.B0("data.color.basicColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wu.prototype,"basicPaletteChanged",null);
_.d([_.B0("data.color"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wu.prototype,"colorChanged",null);_.d([_.e({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],Wu);
_.k(Wu,"ytd-author-comment-badge-renderer",function(){if(MYs!==void 0)return MYs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return MYs=S},{mode:1});var Gli;var gl=function(){return _.W.apply(this,arguments)||this};
_.C(gl,_.W);gl.prototype.computeThumbnailWidth=function(S){if(S==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gl.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gl.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],gl.prototype,"icon",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],gl.prototype,"surface",void 0);
_.d([_.Z({reflectToAttribute:!0,value:_.u("enable_shrink_image_size_on_web_posts_singleton")}),_.P("design:type",Boolean)],gl.prototype,"searchSxsUx",void 0);_.d([_.e({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],gl);
_.k(gl,"ytd-backstage-image-renderer",function(){if(Gli!==void 0)return Gli;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Gli=S},{mode:1});var Wj_;var eX=function(){var S=_.W.apply(this,arguments)||this;S.isLoading=!1;S.selectedItemIndex=-1;return S};
_.C(eX,_.W);_.J=eX.prototype;_.J.computeIsChannelOwner=function(S){if(!S)return!0;S=S[0];return!(S&&(S.signinEndpoint||S.selectServiceEndpoint))};
_.J.computeIsImagePoll=function(S){return(S==null?void 0:S.type)==="POLL_TYPE_IMAGE"};
_.J.computeIsTotalVotesDisabled=function(S){return!(S==null?0:S.totalVotes)};
_.J.thumbnailSrc=function(S){var c,Q,f,U;return(S==null?0:(c=S.thumbnails)==null?0:(Q=c[0])==null?0:Q.url)?_.jS((f=S.thumbnails)==null?void 0:(U=f[0])==null?void 0:U.url):void 0};
_.J.progressWidth=function(S){return"width:"+(S?S*100:0)+"%;"};
_.J.textAreaWidth=function(S){return this.isImagePoll?null:"width:"+(S?S*100:0)+"%;"};
_.J.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.J.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var S=this.data.choices,c=0;c<S.length;c++)if(S[c].selected){this.selectedItemIndex=c;break}};
_.J.onPopupClosed=function(S,c){S=Number(this.pollVotes.selected);c.confirmed&&(this.selectChoice(S,!1),_.XF(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.J.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.J.onYtCommentPollRevert=function(S,c){c&&(this.selectChoice(c.selectedChoiceIndex,!0),this.set("data.totalVotes",c.totalVotes))};
_.J.onYtServiceRequestSent=function(S,c){if(c.actions)for(S=0;S<c.actions.length;S++){var Q=c.actions[S];_.Y(Q,Dw)&&this.set("data.totalVotes",_.Y(Q,Dw).totalVotes)}};
_.J.onYtServiceRequestCompleted=function(S){var c=this.get("detail.data.actionResults.0.feedback",S);S=this.get("detail.data.actionResults.0.status",S);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,S==="STATUS_FAILED"?_.Az(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.J.getEndpoint=function(S,c){return c===S?this.data.choices[c].deselectServiceEndpoint||null:this.data.choices[S].selectServiceEndpoint||null};
_.J.selectChoice=function(S,c){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var Q=0;Q<this.data.choices.length;Q++){var f;if(S===this.selectedItemIndex){var U=!1;var a=f=null}else f=(U=Q===S)?this.data.choices[Q].voteRatioIfSelected:this.data.choices[Q].voteRatioIfNotSelected,a=U?this.data.choices[Q].votePercentageIfSelected:this.data.choices[Q].votePercentageIfNotSelected;this.set("data.choices."+Q+".voteRatio",f);
this.set("data.choices."+Q+".votePercentage",a);this.set("data.choices."+Q+".selected",U)}c||(this.isLoading=!0,(c=this.getEndpoint(S,this.selectedItemIndex))&&_.fl().resolve(_.U8).resolveCommand(c,{form:{element:this.hostElement}}));this.selectedItemIndex=this.selectedItemIndex===S?-1:S};
_.Rh.Object.defineProperties(eX.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
eX.prototype.onYtServiceRequestCompleted=eX.prototype.onYtServiceRequestCompleted;eX.prototype.onYtServiceRequestSent=eX.prototype.onYtServiceRequestSent;eX.prototype.onYtCommentPollRevert=eX.prototype.onYtCommentPollRevert;eX.prototype.onPopupClosed=eX.prototype.onPopupClosed;eX.prototype.dataChanged=eX.prototype.dataChanged;_.d([_.p(_.VP),_.P("design:type",Object)],eX.prototype,"paperItemBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],eX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],eX.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],eX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],eX.prototype,"isLoading",void 0);_.d([_.Z({computed:"computeIsChannelOwner(data.choices)"}),_.P("design:type",Boolean)],eX.prototype,"isChannelOwner",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.P("design:type",Boolean)],eX.prototype,"isImagePoll",void 0);_.d([_.Z({computed:"computeIsTotalVotesDisabled(data)"}),_.P("design:type",Boolean)],eX.prototype,"isTotalVotesDisabled",void 0);_.d([_.Z(),_.P("design:type",Object)],eX.prototype,"previousPollInfo",void 0);_.d([_.Z(),_.P("design:type",Object)],eX.prototype,"selectedItemIndex",void 0);_.d([_.nU("#poll-votes"),_.P("design:type",Object)],eX.prototype,"pollVotes",void 0);
_.d([_.M("isChannelOwner"),_.P("design:type",Object),_.P("design:paramtypes",[])],eX.prototype,"endpointStyle",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eX.prototype,"dataChanged",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],eX.prototype,"onPopupClosed",null);
_.d([_.FV("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],eX.prototype,"onYtCommentPollRevert",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],eX.prototype,"onYtServiceRequestSent",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],eX.prototype,"onYtServiceRequestCompleted",null);_.d([_.e({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],eX);
_.k(eX,"ytd-backstage-poll-renderer",function(){if(Wj_!==void 0)return Wj_;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Wj_=S},{mode:2});var gWi;var ecd={autoplay:!1,loop:!1},klJ={simpleText:""},kF=function(){var S=_.W.apply(this,arguments)||this;S.isLoading=!1;S.usesPanelLockup=!1;S.selectedItemIndex=-1;S.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},ecd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});S.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},ecd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});S.correctnessAnimationProps=[];S.correctnessAnimationRefs=[];return S};
_.C(kF,_.W);_.J=kF.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.J.computeIsChannelOwner=function(S){if(!S)return!0;S=S[0];return!(S&&(S.signinEndpoint||S.selectServiceEndpoint))};
_.J.computeIsTotalVotesDisabled=function(S){return!(S==null?0:S.totalVotes)};
_.J.computeIsImageQuiz=function(S){return(S==null?void 0:S.type)==="POLL_TYPE_IMAGE"};
_.J.onExplanationChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var S=this.data.choices;if(S){this.maybeInitializeQuizLotties(S);for(var c=0;c<S.length;c++)if(S[c].isSelected||this.isChannelOwner&&S[c].isCorrect){this.selectedItemIndex=c;return}this.selectedItemIndex=-1}}};
_.J.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var S=this.selectedItemIndex,c=Number(this.quizVotes.selected);this.selectChoice(c);this.sendVoteAction(c,S);this.quizVotes.selected=-1;var Q;S=!((Q=this.data)==null?0:Q.enableAnimation);this.maybePlayAnswerAnimations(S)}};
_.J.onYtCommentPollRevert=function(S,c){c&&(this.selectChoice(c.selectedChoiceIndex),this.set("data.totalVotes",c.totalVotes))};
_.J.onYtServiceRequestSent=function(S,c){if(c.actions)for(S=_.A(c.actions),c=S.next();!c.done;c=S.next())(c=_.Y(c.value,Dw))&&this.set("data.totalVotes",c.totalVotes)};
_.J.onYtServiceRequestCompleted=function(S){var c=this.get("detail.data.actionResults.0.feedback",S);S=this.get("detail.data.actionResults.0.status",S);if(c==="FEEDBACK_DESELECT"||c==="FEEDBACK_SELECT")this.isLoading=!1,S==="STATUS_FAILED"?_.Az(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.J.getAnimationPropsForChoiceIndex=function(S,c){return c[S]};
_.J.maybePlayAnswerAnimations=function(S){S=S===void 0?!1:S;var c;if((c=this.data)!=null&&c.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){c=_.A(this.correctnessAnimationRefs);for(var Q=c.next();!Q.done;Q=c.next()){var f=void 0,U=void 0;(f=Q.value)==null||(U=f.lottieEl)==null||U.stop()}if(!(this.selectedItemIndex<0)){c=0;S&&(c=this.isCorrect?37:25);var a,X;(a=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(X=a.lottieEl)==null||X.goToAndPlay(S?c:0,!0);if(!(this.isCorrect||
(a=this.data.choices.findIndex(function(n){return n.isCorrect}),a<0))){var z,x;
(x=(z=this.correctnessAnimationRefs[a])==null?void 0:z.lottieEl)==null||x.goToAndPlay(37,!0);var I;z=(I=this.fadeContainers)==null?void 0:I.item(a);!S&&z&&this.fadeIn(z)}}}};
_.J.thumbnailSrc=function(S){var c,Q,f,U;return(S==null?0:(c=S.thumbnails)==null?0:(Q=c[0])==null?0:Q.url)?_.jS((f=S.thumbnails)==null?void 0:(U=f[0])==null?void 0:U.url):void 0};
_.J.a11yVotedText=function(S,c){var Q,f,U=((Q=this.data)==null?void 0:(f=Q.correctVotedText)==null?void 0:f.simpleText)||"",a,X;Q=((a=this.data)==null?void 0:(X=a.votedText)==null?void 0:X.simpleText)||"";if(!c)return"";var z,x;if((z=this.data)==null?0:(x=z.choices)==null?0:x[S].isCorrect)return U;var I,n;return((I=this.data)==null?0:(n=I.choices)==null?0:n[S].isSelected)?Q:""};
_.J.getEndpoint=function(S,c){return c===S?this.data.choices[S].deselectServiceEndpoint||null:this.data.choices[S].selectServiceEndpoint||null};
_.J.sendVoteAction=function(S,c){if(S=this.getEndpoint(S,c))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(S)};
_.J.selectChoice=function(S){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var c=0;c<this.data.choices.length;c++)this.set("data.choices."+c+".isSelected",S===this.selectedItemIndex?!1:c===S);this.selectedItemIndex=this.selectedItemIndex===S?-1:S};
_.J.maybeInitializeQuizLotties=function(S){var c=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=S.map(function(Q){return{animationConfig:Q.isCorrect?c.baseCorrectLottiePlayerAnimationConfig:c.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){c.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(Q){return Q.animationRef||{}})};
_.J.fadeIn=function(S){S.classList.add("fade-in");_.Xi(_.Mq,function(){S.classList.remove("fade-in")},900)};
_.Rh.Object.defineProperties(kF.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.Em(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 S,c;return((S=this.data)==null?void 0:(c=S.choices)==null?void 0:c.some(function(Q){return Q.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null||!S.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?klJ:this.data.choices[this.selectedItemIndex].explanation||klJ}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null||!S.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
kF.prototype.onYtServiceRequestCompleted=kF.prototype.onYtServiceRequestCompleted;kF.prototype.onYtServiceRequestSent=kF.prototype.onYtServiceRequestSent;kF.prototype.onYtCommentPollRevert=kF.prototype.onYtCommentPollRevert;kF.prototype.dataChanged=kF.prototype.dataChanged;kF.prototype.onExplanationChanged=kF.prototype.onExplanationChanged;_.d([_.p(_.VP),_.P("design:type",Object)],kF.prototype,"paperItemBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],kF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],kF.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.Qv.YtTaskEmitterBehavior),_.P("design:type",Object)],kF.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],kF.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],kF.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],kF.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Object)],kF.prototype,"usesPanelLockup",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.P("design:type",Boolean)],kF.prototype,"isChannelOwner",void 0);_.d([_.Z({computed:"computeIsTotalVotesDisabled(data)"}),_.P("design:type",Boolean)],kF.prototype,"isTotalVotesDisabled",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.P("design:type",Boolean)],kF.prototype,"isImageQuiz",void 0);_.d([_.Z(),_.P("design:type",Object)],kF.prototype,"previousQuizInfo",void 0);_.d([_.Z(),_.P("design:type",Object)],kF.prototype,"selectedItemIndex",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data","usesPanelLockup"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kF.prototype,"shouldUseModernUi",null);
_.d([_.bw(".fade-container"),_.P("design:type",Object)],kF.prototype,"fadeContainers",void 0);_.d([_.Z(),_.P("design:type",Array)],kF.prototype,"correctnessAnimationProps",void 0);_.d([_.M("explanation","showCorrectAnswer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kF.prototype,"showExplanation",null);_.d([_.M("isChannelOwner","isAttempted"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kF.prototype,"showCorrectAnswer",null);
_.d([_.M("isChannelOwner","isAttempted","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kF.prototype,"isQuizAnsweringDisabled",null);_.d([_.M("isQuizAnsweringDisabled"),_.P("design:type",Object),_.P("design:paramtypes",[])],kF.prototype,"endpointStyle",null);_.d([_.M("data","selectedItemIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kF.prototype,"isAttempted",null);
_.d([_.M("data","selectedItemIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],kF.prototype,"explanation",null);_.d([_.M("data","selectedItemIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kF.prototype,"isCorrect",null);_.d([_.nU("ytd-expander"),_.P("design:type",Object)],kF.prototype,"expander",void 0);_.d([_.nU("#quiz-votes"),_.P("design:type",Object)],kF.prototype,"quizVotes",void 0);
_.d([_.B0("explanation"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kF.prototype,"onExplanationChanged",null);_.d([_.B0("data","isChannelOwner"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kF.prototype,"dataChanged",null);_.d([_.FV("yt-comment-quiz-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],kF.prototype,"onYtCommentPollRevert",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],kF.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kF.prototype,"onYtServiceRequestCompleted",null);_.d([_.e({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],kF);
_.k(kF,"ytd-backstage-quiz-renderer",function(){if(gWi!==void 0)return gWi;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return gWi=S},{mode:1});var rJJ;var rl=function(){return _.W.apply(this,arguments)||this};
_.C(rl,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rl.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rl.prototype,"data",void 0);_.d([_.e({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],rl);
_.k(rl,"ytd-post-uploaded-video-renderer",function(){if(rJJ!==void 0)return rJJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return rJJ=S},{mode:1});var dh_;var dl=function(){return _.W.apply(this,arguments)||this};
_.C(dl,_.W);dl.prototype.useFilledIcons=function(S){return S==="SPONSORSHIP_STAR"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dl.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],dl.prototype,"data",void 0);_.d([_.e({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],dl);
_.k(dl,"ytd-sponsors-only-badge-renderer",function(){if(dh_!==void 0)return dh_;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return dh_=S},{mode:1});var vWT;var vu=function(){return _.W.apply(this,arguments)||this};
_.C(vu,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],vu.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vu.prototype,"data",void 0);_.d([_.e({is:"ytd-child-video-renderer",disableElementRegistration:!0})],vu);
_.k(vu,"ytd-child-video-renderer",function(){if(vWT!==void 0)return vWT;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return vWT=S},{mode:1});var P_$;var Ljz;var Pu=function(){var S=_.W.apply(this,arguments)||this;S.size=0;S.enableWebModernCollectionsV2=_.u("web_modern_collections_v2");S.fallbackImageSize={height:void 0,width:9999};S.webModernCollections=!1;return S};
_.C(Pu,_.W);_.J=Pu.prototype;_.J.computeBlurredImageSize=function(S){return S?{height:S*2,width:S*2}:this.fallbackImageSize};
_.J.computeImageSize=function(S){return S?{height:S,width:S}:this.fallbackImageSize};
_.J.computeObjectFit=function(S){return S?"FILL":"CONTAIN"};
_.J.computePreserve=function(S){return S?!0:!1};
_.J.setBackground=function(){var S,c;_.u("web_modern_collections_v2")&&((S=this.data)==null?0:(c=S.thumbnail)==null?0:c.sampledThumbnailColor)&&(S=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+S.red+","+S.green+","+S.blue+",1)")};
Pu.prototype.setBackground=Pu.prototype.setBackground;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Pu.prototype,"watchFeedThumbnail",void 0);_.d([_.Z(),_.P("design:type",Object)],Pu.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Pu.prototype,"size",void 0);
_.d([_.Z({computed:"computeBlurredImageSize(size)"}),_.P("design:type",Object)],Pu.prototype,"blurredImageSize",void 0);_.d([_.Z({computed:"computeImageSize(size)"}),_.P("design:type",Object)],Pu.prototype,"imageSize",void 0);_.d([_.Z({computed:"computePreserve(size)"}),_.P("design:type",String)],Pu.prototype,"preserve",void 0);_.d([_.Z({computed:"computeObjectFit(size)"}),_.P("design:type",String)],Pu.prototype,"objectFit",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Pu.prototype,"enableWebModernCollectionsV2",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Pu.prototype,"webModernCollections",void 0);_.d([_.B0("data.thumbnail.sampledThumbnailColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pu.prototype,"setBackground",null);_.d([_.e({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Pu);
_.k(Pu,"ytd-playlist-custom-thumbnail-renderer",function(){if(Ljz!==void 0)return Ljz;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Ljz=S},{mode:1});var EW_;var LE=function(){return _.W.apply(this,arguments)||this};
_.C(LE,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LE.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LE.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],LE.prototype,"width",void 0);_.d([_.e({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],LE);
_.k(LE,"ytd-playlist-video-thumbnail-renderer",function(){if(EW_!==void 0)return EW_;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return EW_=S},{mode:1});var tY$;var E6=function(){return _.W.apply(this,arguments)||this};
_.C(E6,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],E6.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],E6.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],E6.prototype,"width",void 0);_.d([_.e({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],E6);
_.k(E6,"ytd-show-custom-thumbnail-renderer",function(){if(tY$!==void 0)return tY$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tY$=S},{mode:1});var VYu;var td=function(){return _.W.apply(this,arguments)||this};
_.C(td,_.W);td.prototype.useFilledIcons=function(S){return S==="MUSIC"||S==="COURSE"};
td.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=em(this.overlayColor,"0.8");else if(this.overlayColor){var S=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+S.red+","+S.green+","+S.blue+",0.8)"}};
_.Rh.Object.defineProperties(td.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)}}});
td.prototype.overlayColorChanged=td.prototype.overlayColorChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],td.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],td.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],td.prototype,"overlayColor",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.icon","data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],td.prototype,"overlayStyle",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.icon","data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],td.prototype,"overlayTextStyle",null);_.d([_.B0("overlayColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],td.prototype,"overlayColorChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],td);
_.k(td,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(VYu!==void 0)return VYu;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return VYu=S},{mode:1});var Rc$;var VW=function(){var S=_.W.apply(this,arguments)||this;S.active=!1;return S};
_.C(VW,_.W);VW.prototype.computeIsSpinnerHidden=function(S){return(S==null?void 0:S.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
VW.prototype.computeOverlayIcon=function(S){return(S==null?void 0:S.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(S==null?void 0:S.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VW.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VW.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],VW.prototype,"active",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],VW);
_.k(VW,"ytd-thumbnail-overlay-downloading-renderer",function(){if(Rc$!==void 0)return Rc$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Rc$=S},{mode:1});var yJe;var R5=function(){return _.W.apply(this,arguments)||this};
_.C(R5,_.W);_.Rh.Object.defineProperties(R5.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],R5.prototype,"data",void 0);_.d([_.M("data.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],R5.prototype,"text",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],R5);
_.k(R5,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(yJe!==void 0)return yJe;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return yJe=S},{mode:1});var oWl,mhd=function(){if(oWl!==void 0)return oWl;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return oWl=S};var yW=function(){return _.W.apply(this,arguments)||this};
_.C(yW,_.W);_.Rh.Object.defineProperties(yW,{template:{configurable:!0,enumerable:!0,get:function(){return mhd()}}});
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],yW.prototype,"animateEqualizer",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],yW);_.aW()(yW,"ytd-thumbnail-overlay-equalizer",function(){return mhd()},{allowedProps:["animateEqualizer"],
mode:1});var S3T;var o5=function(){var S=_.W.apply(this,arguments)||this;S.nowPlayingBadge=_.u("web_now_playing_badge");S.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return S};
_.C(o5,_.W);o5.prototype.activeChanged=function(){var S=this;_.u("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.tO(this,function(){_.Az(S.hostElement,"yt-playlist-lockup-now-playing-active",S)})};
o5.prototype.onMiniplayerPlayStateChanged=function(S){var c,Q=(c=_.Y(_.bn().currentEndpoint,_.tG))==null?void 0:c.videoId;this.isVideoPlaying=S&&(_.u("web_limit_now_playing_animation_killswitch")||this.videoId===Q)};
o5.prototype.activeChanged=o5.prototype.activeChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],o5.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],o5.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],o5.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],o5.prototype,"isVideoPlaying",void 0);_.d([_.Z(),_.P("design:type",String)],o5.prototype,"videoId",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],o5.prototype,"equalizerOnly",void 0);_.d([_.Z(),_.P("design:type",Boolean)],o5.prototype,"isActive",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],o5.prototype,"nowPlayingBadge",void 0);_.d([_.B0("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o5.prototype,"activeChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],o5);
_.k(o5,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(S3T!==void 0)return S3T;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return S3T=S},{mode:1});var cDd;var mr=function(){return _.W.apply(this,arguments)||this};
_.C(mr,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mr.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mr.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],mr);
_.k(mr,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(cDd!==void 0)return cDd;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return cDd=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var Qud;var Sj=function(){return _.W.apply(this,arguments)||this};
_.C(Sj,_.W);Sj.prototype.onDurationChanged=function(){var S,c;_.Ur(this.hostElement).querySelector("#progress").style.width=((c=(S=this.data)==null?void 0:S.percentDurationWatched)!=null?c:0)+"%"};
Sj.prototype.onDurationChanged=Sj.prototype.onDurationChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Sj.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Sj.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Sj.prototype,"isLive",void 0);_.d([_.B0("data.percentDurationWatched"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sj.prototype,"onDurationChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],Sj);
_.k(Sj,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(Qud!==void 0)return Qud;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Qud=S},{mode:1});var fiu;var ce=function(){var S=_.W.apply(this,arguments)||this;S.bottomPanel=!1;S.richGridOverlay=!1;S.watchFeedOverlay=!1;S.isCompact=!1;return S};
_.C(ce,_.W);ce.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.Rh.Object.defineProperties(ce.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:(c=S.icon)==null?void 0:c.iconType)==="PLAY_ALL"&&_.u("kevlar_system_icons")}}});
ce.prototype.widthChanged=ce.prototype.widthChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ce.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],ce.prototype,"width",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ce.prototype,"bottomPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ce.prototype,"richGridOverlay",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ce.prototype,"watchFeedOverlay",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ce.prototype,"isCompact",void 0);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ce.prototype,"isIconFilled",null);_.d([_.B0("width","watchFeedOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ce.prototype,"widthChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],ce);
_.k(ce,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(fiu!==void 0)return fiu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return fiu=S},{mode:1});var U4u;var JDz=["CLIP","SHORTS"],QA=function(){var S=_.W.apply(this,arguments)||this;S.animated=_.u("animated_live_badge_icon");S.hasIcon=!1;S.updateTimerIntervalId=0;S.timeSinceLive=0;return S};
_.C(QA,_.W);_.J=QA.prototype;_.J.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.J.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.J.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.J.hasIconOrText=function(){var S,c;return!!(((S=this.data)==null?0:S.icon)||((c=this.data)==null?0:c.text))};
_.J.initializeLiveBadgeTimer=function(){var S=this,c,Q=(c=this.liveBadgeData)==null?void 0:c.startTimestampSec;if(Q&&this.canShowLiveBadgeTimer()){var f;c=Number((f=this.liveBadgeData)==null?void 0:f.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(Q);this.updateTimerIntervalId=_.xr(function(){S.canShowLiveBadgeTimer()?S.timeSinceLive++:(S.timeSinceLive=0,window.clearInterval(S.updateTimerIntervalId))},c)}else this.timeSinceLive=0};
_.J.canShowLiveBadgeTimer=function(){var S=Date.now(),c,Q;return S<(Number((c=this.liveBadgeData)==null?void 0:c.endTimestampSec)-1)*1E3&&S>Number((Q=this.liveBadgeData)==null?void 0:Q.startTimestampSec)*1E3};
_.Rh.Object.defineProperties(QA.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=this.data;var c=this.timeSinceLive;var Q,f,U,a;a:{var X=S.style;if(X===void 0)X=16;else switch(X){case "LIVE":X=17;break a;default:X=16}}c={type:X,text:c?gcz({seconds:c}):_.Em(S.text),accessibilityText:(Q=S.text)==null?void 0:(f=Q.accessibility)==null?void 0:(U=f.accessibilityData)==null?void 0:U.label,icon:(a=S.icon)==null?void 0:a.iconType}}else c={};return c}},
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 S;return(S=this.data)==null?void 0:S.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 JDz.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
QA.prototype.initializeLiveBadgeTimer=QA.prototype.initializeLiveBadgeTimer;QA.prototype.dataChanged=QA.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],QA.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],QA.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],QA.prototype,"icon",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],QA.prototype,"animated",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.P("design:type",Boolean)],QA.prototype,"hideTimeStatus",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],QA.prototype,"hasIcon",void 0);_.d([_.Z(),_.P("design:type",Object)],QA.prototype,"timeSinceLive",void 0);_.d([_.M("data","timeSinceLive"),_.P("design:type",Object),_.P("design:paramtypes",[])],QA.prototype,"badgeShapeData",null);
_.d([_.M("data","overlayType"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QA.prototype,"hideBadgeShape",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QA.prototype,"dataChanged",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],QA.prototype,"overlayStyle",null);
_.d([_.M("data.liveBadgeData"),_.P("design:type",Object),_.P("design:paramtypes",[])],QA.prototype,"liveBadgeData",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.type"),_.P("design:type",Object),_.P("design:paramtypes",[])],QA.prototype,"overlayType",null);_.d([_.M("overlayType","overlayStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],QA.prototype,"useFilledIcon",null);
_.d([_.$n("liveBadgeData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QA.prototype,"initializeLiveBadgeTimer",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],QA);
_.k(QA,"ytd-thumbnail-overlay-time-status-renderer",function(){if(U4u!==void 0)return U4u;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return U4u=S},{mode:_.A2("kevlar_poly_si_batch_j035")?1:2});var ais;var f3=function(){return _.W.apply(this,arguments)||this};
_.C(f3,_.W);f3.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"}}}}};
f3.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(S){if(this.hasPlaybackProgressBar)return{percentDurationWatched:S.percentDurationWatched}};
f3.prototype.computeHasPlaybackProgressBar=function(S){return!!S.percentDurationWatched&&S.percentDurationWatched>0};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],f3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],f3.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.P("design:type",Boolean)],f3.prototype,"hasPlaybackProgressBar",void 0);
_.d([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],f3);
_.k(f3,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(ais!==void 0)return ais;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ais=S},{mode:1});var ADp;var Xph=_.y_(function(S){var c=S.data;var Q=S.children;var f=function(){return!!c().doubleStack};
return _.B("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!c().experimentEnabled}},_.B(_.K,{cond:c,
then:function(){return _.B("div",null,_.B(_.K,{cond:f,then:function(){var U={};return _.B("div",{class:_.n4("collections-stack-wiz__collection-stack2",function(){return c().customClassName2ndStack},(U["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return c().enableResponsiveMode},U)),
style:_.Yd({"background-color":function(){return tZR(c())}})})}}),_.B("div",{class:_.n4("collections-stack-wiz__collection-stack1",function(){return c().customClassName1stStack},function(){return E8z(c().thumbnailSize?c().thumbnailSize:"medium")}),
style:_.Yd({"background-color":function(){return tZR(c())}})}),Q)}}))},"P");_.f4(Xph,"yt-collections-stack",{props:{data:_.y$}});var Uu=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};S.webModernCollections=!1;S.isSearch=!1;S.isDoubleStack=!1;S.thumbnailSize="medium";S.enableWebModernCollectionsV2=_.u("web_modern_collections_v2");return S};
_.C(Uu,_.W);_.J=Uu.prototype;
_.J.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]]"}}}}}};
_.J.getThumbnailDetails=function(S){if(S!=null&&S.thumbnailRenderer){var c=S.thumbnailRenderer,Q;if((Q=c.playlistVideoThumbnailRenderer)==null?0:Q.thumbnail)return c.playlistVideoThumbnailRenderer.thumbnail;var f;if((f=c.playlistCustomThumbnailRenderer)==null?0:f.thumbnail)return c.playlistCustomThumbnailRenderer.thumbnail;S=S.thumbnailRenderer;var U;if((U=S.showCustomThumbnailRenderer)==null?0:U.thumbnail)return S.showCustomThumbnailRenderer.thumbnail}};
_.J.computeOverlayColor=function(S){var c,Q;if((c=this.getThumbnailDetails(S))==null?0:(Q=c.darkColorPalette)==null?0:Q.section2Color)return this.getThumbnailDetails(S).darkColorPalette.section2Color;var f;return(f=this.getThumbnailDetails(S))==null?void 0:f.sampledThumbnailColor};
_.J.computeWebModernCollections=function(S){if(S==null||!S.thumbnailOverlays)return!1;S=_.A(S.thumbnailOverlays);for(var c=S.next();!c.done;c=S.next()){var Q=void 0;if((Q=c.value)==null?0:Q.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.J.computeNavigationEndpoint=function(S){return dSz(S==null?void 0:S.navigationEndpoint)};
_.Rh.Object.defineProperties(Uu.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var S=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:S==null?void 0:S.sampledThumbnailColor,vibrantColorPalette:S==null?void 0:S.vibrantColorPalette,darkColorPalette:S==null?void 0:S.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Uu.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Uu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(NRT),_.P("design:type",Object)],Uu.prototype,"ytdThumbnailBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Uu.prototype,"componentBehavior",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Uu.prototype,"watchFeedThumbnail",void 0);_.d([_.Z(),_.P("design:type",Number)],Uu.prototype,"customThumbnailSize",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],Uu.prototype,"hideAria",void 0);_.d([_.Z(),_.P("design:type",Object)],Uu.prototype,"data",void 0);_.d([_.Z({computed:"computeOverlayColor(data)"}),_.P("design:type",Object)],Uu.prototype,"overlayColor",void 0);
_.d([_.Z({computed:"computeWebModernCollections(data)"}),_.P("design:type",Object)],Uu.prototype,"webModernCollections",void 0);_.d([_.Z({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],Uu.prototype,"computedNavigationEndpoint",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Uu.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Uu.prototype,"isDoubleStack",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Uu.prototype,"thumbnailSize",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Uu.prototype,"enableWebModernCollectionsV2",void 0);_.d([_.M("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],Uu.prototype,"collectionStack",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Uu);
_.k(Uu,"ytd-playlist-thumbnail",function(){if(ADp!==void 0)return ADp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ADp=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var OpH;var J7=function(){var S=_.W.apply(this,arguments)||this;S.noEndpoints=!1;S.amsterdamPostMvp=_.u("web_amsterdam_post_mvp_playlists");S.badges=[];S.transferState="TRANSFER_STATE_UNKNOWN";return S};
_.C(J7,_.W);_.J=J7.prototype;_.J.getMetadata=function(S){if(!S)return[];var c=[],Q=S.shortViewCountText||S.viewCountText;Q&&c.push(_.Em(Q));S.publishedTimeText&&c.push(_.Em(S.publishedTimeText));S.upcomingEventData&&S.upcomingEventData.upcomingEventText&&c.push(_.GI(_.Em(S.upcomingEventData.upcomingEventText),Number(S.upcomingEventData.startTime)));return c};
_.J.observeDataForBylineSeparator=function(){this.data&&_.a1(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.J.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.WV(this.metadataColor)};
_.J.getSimpleString=function(S){return _.Em(S)};
_.J.isBylineHidden=function(S){return this.noByline||!((S==null?0:S.longBylineText)||(S==null?0:S.shortBylineText))};
_.J.isMetadataHidden=function(S){var c;return((c=this.getMetadata(S))==null?void 0:c.length)===0};
_.J.isBylineMetadataSeparatorHidden=function(S){return this.isMetadataHidden(S)||!this.shouldShowVideoInfo};
_.J.isLongByline=function(S,c){return c&&!(S==null||!S.longBylineText)};
_.Rh.Object.defineProperties(J7.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var S;return this.amsterdamPostMvp&&!((S=this.data)==null||!S.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
J7.prototype.metadataColorChanged=J7.prototype.metadataColorChanged;J7.prototype.observeDataForBylineSeparator=J7.prototype.observeDataForBylineSeparator;_.d([_.p(_.st),_.P("design:type",Object)],J7.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],J7.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],J7.prototype,"noEndpoints",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],J7.prototype,"isSlimShort",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],J7.prototype,"radioMeta",void 0);_.d([_.Z({selector:_.e9}),_.P("design:type",Object)],J7.prototype,"isGridViewEnabled",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],J7.prototype,"richMeta",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],J7.prototype,"amsterdamPostMvp",void 0);_.d([_.Z(),_.P("design:type",Boolean)],J7.prototype,"noByline",void 0);
_.d([_.Z({computed:"isLongByline(data, radioMeta)"}),_.P("design:type",Boolean)],J7.prototype,"longByline",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],J7.prototype,"truncateMetadataLine",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],J7.prototype,"miniMode",void 0);_.d([_.Z(),_.P("design:type",Number)],J7.prototype,"metadataColor",void 0);_.d([_.Z(),_.P("design:type",Array)],J7.prototype,"badges",void 0);
_.d([_.Z({selector:_.iZ,selectorArgs:["data.videoId"]}),_.P("design:type",String)],J7.prototype,"transferState",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],J7.prototype,"isDownloading",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],J7.prototype,"typographyBump",void 0);_.d([_.nU("#metadata-line"),_.P("design:type",HTMLElement)],J7.prototype,"metadataLine",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],J7.prototype,"observeDataForBylineSeparator",null);_.d([_.B0("metadataColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],J7.prototype,"metadataColorChanged",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],J7.prototype,"shouldShowVideoInfo",null);
_.d([_.M("badges"),_.P("design:type",String),_.P("design:paramtypes",[])],J7.prototype,"inlineBadgeClass",null);_.d([_.M("longByline"),_.P("design:type",String),_.P("design:paramtypes",[])],J7.prototype,"longBylineClass",null);_.d([_.M("data","longByline"),_.P("design:type",Object),_.P("design:paramtypes",[])],J7.prototype,"bylineText",null);_.d([_.M("isGridViewEnabled","data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],J7.prototype,"watchFeedBigThumbs",null);
_.d([_.e({is:"ytd-video-meta-block",disableElementRegistration:!0})],J7);
_.k(J7,"ytd-video-meta-block",function(){if(OpH!==void 0)return OpH;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return OpH=S},{mode:_.A2("kevlar_poly_si_batch_j080")?1:2});_.i8("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var aP=function(){var S=_.W.apply(this,arguments)||this;S.displayItemCount=2;S.isBackstagePlaylist=!1;S.isPostCompactPlaylist=!1;S.shouldShowChannelThumbnail=!1;S.useModernCollectionsV2=_.u("web_modern_collections_v2");return S};
_.C(aP,_.W);_.J=aP.prototype;_.J.computeFirstVideos=function(S,c){return S===void 0||c===void 0?[]:S.slice(0,c)};
_.J.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var S=this.data.thumbnailRenderer;S.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",S.playlistVideoThumbnailRenderer.thumbnail);S.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",S.playlistCustomThumbnailRenderer.thumbnail)}};
_.J.computeThumbnailHeight=function(S,c,Q,f,U){return f?U==="BIG"?280:U==="MASSIVE"?337:234:Q?240:c?72:S?118:138};
_.J.computeThumbnailWidth=function(S,c,Q,f,U){return f?U==="MEDIUM"?450:U==="BIG"?500:U==="MASSIVE"?600:420:Q?360:c?128:S?210:246};
_.J.computeUseBiggerThumbs=function(S){return S&&_.u("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelThumbnail=function(S,c){return S&&!(c==null||!c.channelThumbnail)};
_.Rh.Object.defineProperties(aP.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
aP.prototype.dataChanged=aP.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],aP.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],aP.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],aP.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],aP.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],aP.prototype,"displayItemCount",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],aP.prototype,"isBackstagePlaylist",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],aP.prototype,"isPostCompactPlaylist",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],aP.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.P("design:type",Boolean)],aP.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],aP.prototype,"biggerThumbsStyle",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],aP.prototype,"isDownloads",void 0);_.d([_.Z({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.P("design:type",Object)],aP.prototype,"shouldShowChannelThumbnail",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],aP.prototype,"useModernCollectionsV2",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aP.prototype,"dataChanged",null);_.d([_.M("isSearch"),_.P("design:type",String),_.P("design:paramtypes",[])],aP.prototype,"stackThumbnailSize",null);_.d([_.e({is:"ytd-playlist-renderer",disableElementRegistration:!0})],aP);
_.k(aP,"ytd-playlist-renderer",function(){if(P_$===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);P_$=S}S=P_$;return S},{mode:1});var z_i;var x4d;var A7=function(){var S=_.W.apply(this,arguments)||this;S.collections=!!_.u("web_modern_collections_v2");S.startX=0;return S};
_.C(A7,_.W);A7.prototype.onEndpointMouseDown=function(S){this.startX=S.clientX};
A7.prototype.onEndpointClick=function(S){this.startX!==S.clientX&&(S.preventDefault(),S.stopPropagation())};
A7.prototype.computeObjectFit=function(S){return S==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||S==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||S==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
A7.prototype.computeCardStyle=function(S){return S?S.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.Rh.Object.defineProperties(A7.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var S,c;return this.collections&&((S=this.data)==null?void 0:(c=S.searchRefinementCardRendererStyle)==null?void 0:c.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}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],A7.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],A7.prototype,"data",void 0);_.d([_.Z({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.P("design:type",Number)],A7.prototype,"objectFit",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.P("design:type",String)],A7.prototype,"cardStyle",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],A7.prototype,"roundContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],A7.prototype,"collections",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],A7.prototype,"isAlbumCard",null);_.d([_.M("data","collections","isAlbumCard"),_.P("design:type",Object),_.P("design:paramtypes",[])],A7.prototype,"collectionStack",null);
_.d([_.e({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],A7);
_.k(A7,"ytd-search-refinement-card-renderer",function(){if(x4d!==void 0)return x4d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return x4d=S},{mode:1});var Fsh;var Xb=function(){var S=_.W.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.C(Xb,_.W);_.d([_.Z(),_.P("design:type",Object)],Xb.prototype,"data",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Xb.prototype,"componentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Xb.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Xb.prototype,"isRichGrid",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],Xb.prototype,"miniMode",void 0);
_.d([_.e({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Xb);
_.k(Xb,"ytd-game-details-renderer",function(){if(Fsh!==void 0)return Fsh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Fsh=S},{mode:1});var Bgd;var IiJ;var Ou=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return S};
_.C(Ou,_.W);_.J=Ou.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(S){var c=S||this.data;return c&&c.states&&c.currentStateId!=null?c.states.find(function(Q){return Q.stateId===c.currentStateId})||null:null};
_.J.currentStateRendererData=function(S){return(S=this.currentStateData(S))&&S.state&&S.state.buttonRenderer?S.state.buttonRenderer:null};
_.J.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())};
_.J.computeButtonIcon=function(S){S=this.currentStateRendererData(S);var c;return(S==null?0:(c=S.icon)==null?0:c.iconType)?S.icon.iconType.toLowerCase():null};
_.J.computeAccessibility=function(S){return(S=this.currentStateRendererData(S))&&S.accessibilityData?S.accessibilityData.accessibilityData||null:null};
_.J.computeButtonClass=function(S){var c=this.currentStateRendererData(S);if(!c)return"";S="";var Q=c.style;Q&&(S+=Q.toLowerCase().replace(/_/g,"-")+" ");(c=c.size)&&(S+=c.toLowerCase().replace(/_/g,"-")+" ");return S.trim()};
_.J.computeServiceEndpoint=function(S){if(!S)return null;var c=S&&S.serviceEndpoint,Q=this.get("command.commandMetadata.webCommandMetadata.sendPost",S);return c?c:Q&&S.command?S.command:null};
_.J.computeBellMenuItemParams=function(S){var c;S=(c=_.Y(S==null?void 0:S.command,_.II))==null?void 0:c.commands;if(!S||S.length===0)return null;c=_.Y(S[0],_.pk);var Q,f;return(c==null?0:(Q=c.popup)==null?0:(f=Q.menuPopupRenderer)==null?0:f.items)?c.popup.menuPopupRenderer.items.map(function(U){return U.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(S){var c=S.trackingParams,Q=this.computeBellMenuItemParams(this.data);this.data&&c&&Q&&Q.includes(c)&&this.ytRenderButtonBehavior._setButtonIcon(S.icon.iconType.toLowerCase())};
_.J.onYtServiceRequestCompleted=function(S,c){(S=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))&&this.set("data",S)};
_.J.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.J.resetState=function(){this.set("data.currentStateId",3)};
_.J.onYtButtonTapHandler=function(){if(this.data){var S=this.currentStateRendererData(this.data);S&&this.ytRendererBehavior.logExplicitClick(S)}};
Ou.prototype.onYtServiceRequestError=Ou.prototype.onYtServiceRequestError;Ou.prototype.onYtServiceRequestCompleted=Ou.prototype.onYtServiceRequestCompleted;Ou.prototype.stateChanged=Ou.prototype.stateChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ou.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Ou.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(lv.YtRenderButtonBehavior),_.P("design:type",Object)],Ou.prototype,"ytRenderButtonBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ou.prototype,"data",void 0);_.d([_.$n("data","data.currentStateId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ou.prototype,"stateChanged",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],Ou.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ou.prototype,"onYtServiceRequestError",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],Ou);
_.k(Ou,"ytd-subscription-notification-toggle-button-renderer",function(){if(IiJ!==void 0)return IiJ;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return IiJ=S},{mode:1});var n8l;var z0=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};S.tapHandler=function(){if(S.data){var c=S.currentStateRendererData();c&&S.ytRendererBehavior.logExplicitClick(c)}};
return S};
_.C(z0,_.W);_.J=z0.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.currentStateData=function(){var S=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(c){return c.stateId===S.data.currentStateId})||null:null};
_.J.currentStateRendererData=function(){var S=this.currentStateData();return S&&S.state&&S.state.buttonRenderer?S.state.buttonRenderer:null};
_.J.computeAccessibilityLabel=function(){var S,c,Q;return(S=this.currentStateRendererData())==null?void 0:(c=S.accessibilityData)==null?void 0:(Q=c.accessibilityData)==null?void 0:Q.label};
_.J.computeBellMenuItemParams=function(){var S,c,Q=(c=_.Y((S=this.data)==null?void 0:S.command,_.II))==null?void 0:c.commands;if(!Q||Q.length===0)return null;S=_.Y(Q[0],_.pk);var f,U;return(S==null?0:(f=S.popup)==null?0:(U=f.menuPopupRenderer)==null?0:U.items)?S.popup.menuPopupRenderer.items.map(function(a){return a.menuServiceItemRenderer.trackingParams}):null};
_.J.handleBellMenuOpenSelectedAction=function(S){var c=S.trackingParams,Q=this.computeBellMenuItemParams();if(this.data&&c&&Q&&Q.includes(c)&&(S==null||!S.isDisabled)){var f;((f=_.Y(S.serviceEndpoint,_.b2))==null?void 0:f.signal)!=="CLIENT_SIGNAL"&&(this.icon=S.icon.iconType)}};
_.J.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.J.onYtServiceRequestCompleted=function(S,c){if(S=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",c))this.icon=void 0,this.set("data",S)};
_.J.onYtServiceRequestError=function(){this.icon=void 0};
_.Rh.Object.defineProperties(z0.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=this.data,c=this.textLabel,Q=this.hostElement,f=this.computeAccessibilityLabel(),U=this.tapHandler,a=this.isOverlay?"overlay":"mono",X=(S==null?0:S.disableButton)?"disabled":"active";c=c?_.sX(c):void 0;return{style:a,type:"tonal",state:X,size:"M",focused:!1,formattedButtonText:c,iconPosition:"leading-trailing",onTap:yDz(S,U,Q),accessibilityLabel:f}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var S=this.currentStateRendererData(),c,Q,f=(Q=this.icon)!=null?Q:S==null?void 0:(c=S.icon)==null?void 0:c.iconType;if(f)return _.xz(f)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.secondaryIcon)==null?void 0:c.iconType;if(Q)return _.xz(Q)}}});
z0.prototype.onYtServiceRequestError=z0.prototype.onYtServiceRequestError;z0.prototype.onYtServiceRequestCompleted=z0.prototype.onYtServiceRequestCompleted;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],z0.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],z0.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],z0.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],z0.prototype,"textLabel",void 0);
_.d([_.Z(),_.P("design:type",String)],z0.prototype,"icon",void 0);_.d([_.Z(),_.P("design:type",Boolean)],z0.prototype,"isOverlay",void 0);_.d([_.M("data.*","textLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],z0.prototype,"computedButtonShape",null);_.d([_.M("data.*","icon"),_.P("design:type",Object),_.P("design:paramtypes",[])],z0.prototype,"computedIcon",null);_.d([_.M("data.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],z0.prototype,"computedSecondaryIcon",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],z0.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],z0.prototype,"onYtServiceRequestError",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],z0);
_.k(z0,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(n8l!==void 0)return n8l;var S=document.createElement("template");_.D(S,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return n8l=S},{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var bps;_.f4(IH$,"yt-animated-action",{props:{backgroundLottieRef:_.y$,foregroundLottieRef:_.y$,wrapperClass:_.y$,disableAnimation:_.y$},unsafeExternallySettableAttributes:new Set(["key"])});var x9=function(){var S=_.W.apply(this,arguments)||this;S.animatedActionEnabled=_.u("web_animated_actions");S.foregroundLottieRef={};S.backgroundLottieRef={};S.forceIconOnly=!1;S.showTextWhileAnimating=!1;S.keyboardFocused=!1;S.isAnimating=!1;S.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return S};
_.C(x9,_.W);_.J=x9.prototype;_.J.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.J.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]]"}}}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onYtServiceRequestSent=function(S,c){(this.get("endpoint.subscribeEndpoint",c)||this.get("endpoint.unsubscribeEndpoint",c))&&this.updateSubscriptionState(!this.subscribed)};
_.J.onYtServiceRequestCompleted=function(S,c){(S=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",c.data))&&this.bellButton&&(this.bellButton.data=S)};
_.J.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.Or(this.hostElement)};
_.J.onPlayerSubscribe=function(S){this.isCompactRed()||S!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.J.onPlayerUnsubscribe=function(S){this.isCompactRed()||S!==this.data.channelId||this.updateSubscriptionState(!1)};
_.J.handleUpdateSubscribeButtonAction=function(S){S=_.Y(S,eYH);var c;S&&S.channelId===((c=this.data)==null?void 0:c.channelId)&&this.updateSubscriptionState(!!S.subscribed)};
_.J.computeButtonStyle=function(S){return this.get("style.styleType",S)||null};
_.J.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.J.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.J.updateSubscriptionState=function(S){if(S!==this.subscribed){this.set("data.subscribed",S);var c,Q=(c=this.data)==null?void 0:c.subscribedEntityKey;Q&&this.ytdReduxBehavior.dispatch(_.Ns("subscriptionStateEntity",Q,{key:Q,subscribed:S}));this.isCompactRed()||_.Az(this.hostElement,"yt-subscription-changed",S);S||(_.XF(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!S),S&&this.hasBellButton&&this.startAnimation())}};
_.J.startAnimation=function(){var S=this;if(!this.isAnimating){var c=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var Q;(Q=this.backgroundLottieRef.lottieEl)==null||Q.goToAndPlay(0);var f;(f=this.foregroundLottieRef.lottieEl)==null||f.goToAndPlay(0);_.Mq.addJob(function(){S.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.Mq.addJob(function(){S.updateContainerToFitContent(!!S.subscribed,!0)},2,1500);
_.Mq.addJob(function(){S.isAnimating=!1},2,c)}};
_.J.maybeAnimateBellIcon=function(){var S=_.Jq(this.hostElement).querySelector("yt-animated-icon");if(S){var c;(c=S.animationRef.lottieEl)==null||c.goToAndPlay(0)}};
_.J.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.J.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.J.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var S;this.unsubscribedWidth=(S=this.subscribeButtonShape)==null?void 0:S.getBoundingClientRect().width}var c;this.subscribedWidth=(c=this.bellButton)==null?void 0:c.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.J.updateContainerToFitContent=function(S,c){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(S?(S=this.subscribedWidth,c=this.isAnimating&&!c,this.subscribedIconOnlyWidth===void 0||c||(S=this.subscribedIconOnlyWidth),this.hostElement.style.width=S+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.J.clearContainerSize=function(){this.hostElement.style.width=""};
_.J.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.J.maybeSetSubscribedButtonIconOnlyWidth=function(){var S=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 c;S.subscribedIconOnlyWidth=(c=S.bellButton)==null?void 0:c.getBoundingClientRect().width;requestAnimationFrame(function(){if(S.bellButton){var Q;S.bellButton.textLabel=
(Q=S.data)==null?void 0:Q.subscribedButtonText}})})))};
_.Rh.Object.defineProperties(x9.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 S;return(S=this.data)==null?void 0:S.subscribedButtonText}var c;return this.forceIconOnly?void 0:(c=this.data)==null?void 0:c.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=((S=this.data)==null?void 0:(c=S.timedAnimationData)==null?void 0:c.animationTiming)||[];return{uniqueId:"subscribe",timings:Q,enabled:Q.length>0&&!this.subscribed,experimentEnabled:Q.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var S;return!this.subscribed&&((S=this.data)==null?void 0:S.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 S={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var c=S.renderer;var Q=S.element;var f=S.subscribed;var U=S.commandController;var a=S.isOverlay;S=S.stopPropagation;var X=cEp(c,f);a&&(X.style="overlay");a=Object;var z=a.assign,x;a:switch((x=c.style)==null?void 0:x.styleType){case "COMPACT_GRAY":case "COMPACT_RED":x={size:"S"};break a;default:x={size:"M"}}var I=SBY(c,
f);var n=(n=f?c.subscribedButtonText:c.unsubscribedButtonText)?_.sX(n):void 0;return z.call(a,{},X,x,{focused:!1,toggled:f,accessibilityLabel:I,formattedButtonText:n,onTap:m4c(c,f,Q,U,S)})}}}});
x9.prototype.onMouseDown=x9.prototype.onMouseDown;x9.prototype.onDataChanged=x9.prototype.onDataChanged;x9.prototype.observedSubscribed=x9.prototype.observedSubscribed;x9.prototype.onYtServiceRequestCompleted=x9.prototype.onYtServiceRequestCompleted;x9.prototype.onYtServiceRequestSent=x9.prototype.onYtServiceRequestSent;x9.prototype.maybeUpdateBellButtonText=x9.prototype.maybeUpdateBellButtonText;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],x9.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],x9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],x9.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],x9.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],x9.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],x9.prototype,"data",void 0);
_.d([_.Z({selectorArgs:["data.subscribedEntityKey"],selector:YgY}),_.P("design:type",Object)],x9.prototype,"subscriptionStateEntity",void 0);_.d([_.Z({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.P("design:type",Boolean)],x9.prototype,"subscribed",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],x9.prototype,"branded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],x9.prototype,"animatedActionEnabled",void 0);
_.d([_.Z(),_.P("design:type",Object)],x9.prototype,"foregroundLottieRef",void 0);_.d([_.Z(),_.P("design:type",Object)],x9.prototype,"backgroundLottieRef",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],x9.prototype,"overlayButton",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.P("design:type",Object)],x9.prototype,"buttonStyle",void 0);_.d([_.Z(),_.P("design:type",Object)],x9.prototype,"forceIconOnly",void 0);
_.d([_.Z(),_.P("design:type",Object)],x9.prototype,"showTextWhileAnimating",void 0);_.d([_.Z({value:function(){return!!_.fl().resolve(_.QS(_.zy))&&_.u("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.P("design:type",Boolean)],x9.prototype,"useKeyboardFocused",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],x9.prototype,"keyboardFocused",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],x9.prototype,"isAnimating",void 0);_.d([_.M("data.notificationPreferenceButton.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],x9.prototype,"hasBellButton",null);
_.d([_.B0("subscribedButtonText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x9.prototype,"maybeUpdateBellButtonText",null);_.d([_.M("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],x9.prototype,"subscribedButtonText",null);_.d([_.M("data.timedAnimationData.animationTiming","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],x9.prototype,"smartimationSettings",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],x9.prototype,"subscribeButtonHidden",null);_.d([_.Z({reflectToAttribute:!0}),_.M("subscribed","hasBellButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],x9.prototype,"subscribeButtonInvisible",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],x9.prototype,"unsubscribeButtonHidden",null);_.d([_.nU("ytd-subscription-notification-toggle-button-renderer-next"),_.P("design:type",Object)],x9.prototype,"bellButton",void 0);_.d([_.nU("#subscribe-button-shape"),_.P("design:type",HTMLElement)],x9.prototype,"subscribeButtonShape",void 0);
_.d([_.M("overlayButton","subscribed","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],x9.prototype,"buttonShape",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],x9.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],x9.prototype,"onYtServiceRequestCompleted",null);
_.d([_.B0("subscribed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x9.prototype,"observedSubscribed",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x9.prototype,"onDataChanged",null);_.d([_.FV("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],x9.prototype,"onMouseDown",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],x9);
_.k(x9,"ytd-subscribe-button-renderer",function(){if(bps!==void 0)return bps;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return bps=S},{mode:1});var Fb=function(){var S=_.W.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.C(Fb,_.W);Fb.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Fb.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Fb.prototype,"isRichGrid",void 0);_.d([_.e({is:"ytd-game-card-renderer",disableElementRegistration:!0})],Fb);
_.k(Fb,"ytd-game-card-renderer",function(){if(Bgd!==void 0)return Bgd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Bgd=S},{mode:1});var Be={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.u("defer_menus")&&!U5_?0:void 0,waitForSignal:"eocs"};var Ngd;var KsJ;var IP=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return S};
_.C(IP,_.W);_.J=IP.prototype;_.J.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.J.onSeriesReminderStateEntityChange=function(){var S,c,Q;((S=this.eventReminderStateEntity)==null?0:S.key)&&((c=this.seriesReminderStateEntity)==null?void 0:c.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((Q=this.eventReminderStateEntity)==null?void 0:Q.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.Ns("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.J.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.J.onYtServiceRequestError=function(){var S;this.updateReminderStateEntitiesFromButtonState((S=this.data)==null?void 0:S.currentState)};
_.J.handleUpdateUpcomingEventReminderButtonStateCommand=function(S){if(S=_.Y(S,QJd)){var c,Q=(c=this.data)==null?void 0:c.targetId;Q&&S.targetId===Q&&_.gM(this.updateReminderStateEntitiesFromButtonState.bind(this,S.state))}};
_.J.getButtonStateFromReminderState=function(){var S;if(((S=this.seriesReminderStateEntity)==null?void 0:S.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var c;if(((c=this.eventReminderStateEntity)==null?void 0:c.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var Q,f;if(((Q=this.seriesReminderStateEntity)==null?void 0:Q.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((f=this.eventReminderStateEntity)==
null?void 0:f.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var U;return(U=this.data)==null?void 0:U.currentState};
_.J.updateReminderStateEntitiesFromButtonState=function(S){if(S){switch(S){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":S="UPCOMING_EVENT_REMINDER_STATE_NONE";var c="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":S="UPCOMING_EVENT_REMINDER_STATE_SINGLE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":S="UPCOMING_EVENT_REMINDER_STATE_NONE";c="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var Q;
((Q=this.eventReminderStateEntity)==null?0:Q.key)&&this.ytdReduxBehavior.dispatch(_.Ns("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:S})));var f;((f=this.seriesReminderStateEntity)==null?0:f.key)&&this.ytdReduxBehavior.dispatch(_.Ns("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:c})))}};
_.Rh.Object.defineProperties(IP.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var S=this.getButtonStateFromReminderState(),c,Q;if(S&&((c=this.data)==null?0:(Q=c.states)==null?0:Q.length))for(c=_.A(this.data.states),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0;if(((f=_.Y(Q,fwd))==null?void 0:f.state)===S)return _.Y(Q,fwd)}}}});
IP.prototype.onYtServiceRequestError=IP.prototype.onYtServiceRequestError;IP.prototype.onYtServiceRequestCompleted=IP.prototype.onYtServiceRequestCompleted;IP.prototype.onSeriesReminderStateEntityChange=IP.prototype.onSeriesReminderStateEntityChange;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],IP.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],IP.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],IP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],IP.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],IP.prototype,"data",void 0);_.d([_.Z({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:Hop}),_.P("design:type",Object)],IP.prototype,"eventReminderStateEntity",void 0);
_.d([_.Z({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(S,c){return _.FT(S.entities,"sportsSeriesReminderStateEntity",c)}}),
_.P("design:type",Object)],IP.prototype,"seriesReminderStateEntity",void 0);_.d([_.M("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],IP.prototype,"currentButtonStateRenderer",null);_.d([_.B0("seriesReminderStateEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IP.prototype,"onSeriesReminderStateEntityChange",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IP.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IP.prototype,"onYtServiceRequestError",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],IP);
_.k(IP,"ytd-upcoming-event-reminder-button-renderer",function(){if(KsJ!==void 0)return KsJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return KsJ=S},{mode:1});var $4H;var n3=function(){return _.W.apply(this,arguments)||this};
_.C(n3,_.W);n3.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.Rh.Object.defineProperties(n3.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}},
textAriaLabel:{configurable:!0,enumerable:!0,get:function(){if(_.u("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],n3.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],n3.prototype,"shelfDismissal",void 0);_.d([_.M("data.responseText"),_.P("design:type",Object),_.P("design:paramtypes",[])],n3.prototype,"text",null);
_.d([_.M("data.responseText"),_.P("design:type",Object),_.P("design:paramtypes",[])],n3.prototype,"textAriaLabel",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],n3);
_.k(n3,"ytd-notification-multi-action-renderer",function(){if($4H!==void 0)return $4H;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return $4H=S},{mode:1});var uju;var bj=function(){return _.W.apply(this,arguments)||this};
_.C(bj,_.W);bj.prototype.ready=function(){var S=this;_.Ur(this.hostElement).querySelector("#undo").addEventListener("tap",function(){S.onUndoTap()})};
bj.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bj.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bj.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],bj);
_.k(bj,"ytd-notification-text-renderer",function(){if(uju!==void 0)return uju;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return uju=S},{mode:1});var jue;var Nn=function(){var S=_.W.apply(this,arguments)||this;S.mouseOverDelayJobId=0;S.fadeInImageDelayJobId=0;S.startTimeMs=-1;S.loadingStartTimeMs=-1;S.loadingEndTimeMs=-1;S.hasVideoPreview=!1;return S};
_.C(Nn,_.W);_.J=Nn.prototype;_.J.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.J.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.J.showThumbnail=function(){var S=this;this.csn=_.wN();_.Z5("fmth");_.Mq.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.Xi(_.Mq,function(){S.loadingStartTimeMs=(0,_.Qk)();var c=_.Ur(S.hostElement).querySelector("#thumbnail");c.complete?S.displayMouseOverImage():c.addEventListener("load",_.xn(S,S.displayMouseOverImage))},150):_.a1(_.Ur(this.hostElement).querySelector("#play"),"show",!0)};
_.J.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.J.onTap=function(){this.removeVideoPreview()};
_.J.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var S=this.videoId,c=this.csn,Q=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,f=this.startTimeMs,U=this.hasVideoPreview,a=_.Yz(this.trackingParams),X={isMovingThumbnail:U};U&&f>0&&(Q>0&&(X.movingThumbnailLoadingDurationMs=Math.round(Q)),X.durationHoveredMs=Math.round((0,_.Qk)()-f));S&&(X.videoId=S);_.Vw(c,a,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:X});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.J.removeVideoPreview=function(){_.Mq.cancelJob(this.mouseOverDelayJobId);_.Mq.cancelJob(this.fadeInImageDelayJobId);var S=_.Ur(this.hostElement).querySelector("#thumbnail");_.a1(S,"fade-in",!1);S.removeEventListener("load",_.xn(this,this.displayMouseOverImage));S=_.Ur(this.hostElement).querySelector("#play");_.a1(S,"fade-in",!1);_.a1(S,"show",!1)};
_.J.displayMouseOverImage=function(){var S=_.Ur(this.hostElement).querySelector("#thumbnail"),c=_.Ur(this.hostElement).querySelector("#play");this.isImageAvailable(S)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.Qk)(),this.startTimeMs=(0,_.Qk)(),this.fadeInImageDelayJobId=_.Xi(_.Mq,function(){_.a1(S,"fade-in",!0)},50)):_.a1(c,"fade-in",!0)};
_.J.computeThumbnail=function(S,c){var Q;S&&S.movingThumbnailDetails&&S.movingThumbnailDetails.thumbnails&&c?Q=_.U2(S.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):Q=c?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(Q)return _.jS(Q)};
_.J.isImageAvailable=function(S){return!(!S.src||S.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||S.naturalWidth===120)};
Nn.prototype.onTap=Nn.prototype.onTap;Nn.prototype.dataChanged=Nn.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Nn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Nn.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Nn.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Nn.prototype,"csn",void 0);_.d([_.Z(),_.P("design:type",Object)],Nn.prototype,"trackingParams",void 0);
_.d([_.Z(),_.P("design:type",String)],Nn.prototype,"videoId",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Nn.prototype,"isAttachedAndDataSet",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nn.prototype,"dataChanged",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nn.prototype,"onTap",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],Nn);
_.k(Nn,"ytd-moving-thumbnail-renderer",function(){if(jue!==void 0)return jue;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return jue=S},{mode:1});var li_;_.B$=function(S){this.hostElement=S;this.eventSink=null;this.eventList=[]};
_.B$.prototype.shouldForward=function(){var S,c;return(c=(S=this.eventSink)==null?void 0:S.isConnected)!=null?c:document.body.contains(this.eventSink)};
_.B$.prototype.start=function(S,c){this.eventSink&&this.stop();for(var Q=0;Q<S.length;Q++)this.hostElement.addEventListener(S[Q],_.xn(this,this.forwardEvent));var f;this.eventSink=(f=c.hostElement)!=null?f:c;this.eventList=S};
_.B$.prototype.stop=function(){for(var S=0;S<this.eventList.length;S++)this.hostElement.removeEventListener(this.eventList[S],_.xn(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.B$.prototype.forwardEvent=function(S,c){this.shouldForward()&&(S.stopPropagation(),this.eventSink instanceof Element?_.Az(this.eventSink,S.type,c):_.i5(new _.Yr("eventSink is not an element")))};_.K3={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.B$(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(S,c){this.forwarder_.start(S,c)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var $9=function(){return _.W.apply(this,arguments)||this};
_.C($9,_.W);_.J=$9.prototype;_.J.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=_.WY("HTML_DIR")==="rtl"?"right":"left"};
_.J.dataChanged=function(){this.popupOpen=!1};
_.J.computeAriaLabel=function(S){return _.Y(S,K9d).label};
_.J.onTap=function(S){S.stopPropagation();S.preventDefault();this.data.command&&_.fl().resolve(_.U8).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
$9.prototype.onPopupClosed=$9.prototype.onPopupClosed;$9.prototype.onPopupOpened=$9.prototype.onPopupOpened;$9.prototype.onTap=$9.prototype.onTap;$9.prototype.dataChanged=$9.prototype.dataChanged;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],$9.prototype,"eventForwardingBehavior",void 0);_.d([_.p(_.M9),_.P("design:type",Object)],$9.prototype,"ironButtonState",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],$9.prototype,"componentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],$9.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:-1}),_.P("design:type",Number)],$9.prototype,"tabindex",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.P("design:type",Object)],$9.prototype,"ariaLabel",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],$9.prototype,"disableTooltips",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$9.prototype,"popupOpen",void 0);
_.d([_.Z(),_.P("design:type",Element)],$9.prototype,"eventSink",void 0);_.d([_.nU("#tooltip"),_.P("design:type",Object)],$9.prototype,"tooltip",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$9.prototype,"dataChanged",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],$9.prototype,"onTap",null);
_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$9.prototype,"onPopupOpened",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$9.prototype,"onPopupClosed",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],$9);
_.k($9,"ytd-thumbnail-overlay-button-renderer",function(){if(li_!==void 0)return li_;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return li_=S},{mode:1});var Y3p;var uj=function(){return _.W.apply(this,arguments)||this};
_.C(uj,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uj.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uj.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uj.prototype,"disableAnimation",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uj.prototype,"rounded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uj.prototype,"transparentBackground",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uj.prototype,"noPadding",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],uj);
_.k(uj,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(Y3p!==void 0)return Y3p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Y3p=S},{mode:1});var CmH;var jj=function(){return _.W.apply(this,arguments)||this};
_.C(jj,_.W);jj.prototype.computeIconPosition=function(S){return this.get("iconPosition",S)||null};
jj.prototype.computeIconStyle=function(S){return this.get("iconStyle",S)||null};
jj.prototype.computeIsIconStyleFilled=function(S){if(!S)return!1;var c;return S.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((c=S.icon)==null?void 0:c.iconType)==="ERROR_BLACK"};
_.d([_.Z(),_.P("design:type",Object)],jj.prototype,"data",void 0);_.d([_.Z({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.P("design:type",Object)],jj.prototype,"iconPosition",void 0);_.d([_.Z({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.P("design:type",Object)],jj.prototype,"iconStyle",void 0);_.d([_.Z({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],jj.prototype,"iconStyleFilled",void 0);
_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],jj);
_.k(jj,"ytd-thumbnail-overlay-icon-renderer",function(){if(CmH!==void 0)return CmH;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return CmH=S},{mode:1});var Hp$;var lj=function(){return _.W.apply(this,arguments)||this};
_.C(lj,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lj.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lj.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],lj);
_.k(lj,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(Hp$!==void 0)return Hp$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Hp$=S},{mode:1});var D4$;var Y9=function(){var S=_.W.apply(this,arguments)||this;S.isPreviewLoading=!1;return S};
_.C(Y9,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Y9.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Y9.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Y9.prototype,"isPreviewLoading",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Y9);
_.k(Y9,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(D4$!==void 0)return D4$;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return D4$=S},{mode:1});var ppe;var C3=function(){return _.W.apply(this,arguments)||this};
_.C(C3,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],C3.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],C3);
_.k(C3,"ytd-thumbnail-overlay-pinking-renderer",function(){if(ppe!==void 0)return ppe;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ppe=S},{mode:1});var h_u;var He=function(){var S=_.W.apply(this,arguments)||this;S.disableTooltips=!1;S.isLoading=!1;S.useExpandableTooltip=!1;S.toggled=!1;S.hovered=!1;S.mouseoverDelayJobId=0;S.toggleDelayJobId=0;S.expandAnimationDelayJobId=0;return S};
_.C(He,_.W);_.J=He.prototype;_.J.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");_.Ur(this.hostElement).querySelector("#tooltip").position=_.WY("HTML_DIR")==="rtl"?"right":"left"};
_.J.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.Mq.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.Mq.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.Mq.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.J.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.Mq.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.Mq.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.Mq.cancelJob(this.expandAnimationDelayJobId)};
_.J.computeIcon=function(S,c,Q){return(S=Q?c:S)&&S.iconType?_.xz(S.iconType):void 0};
_.J.computeAriaLabel=function(S,c,Q){return _.Y(Q?c:S,K9d).label};
_.J.computeTooltip=function(S,c,Q){return Q?c:S};
_.J.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.J.computeIconOnHover=function(S,c){if((S==null?0:S.iconType)&&!c)return _.xz(S.iconType)};
_.J.onTap=function(S){var c=this;S.stopPropagation();S.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(S=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(S),this.useExpandableTooltip&&(this.toggleDelayJobId=_.Xi(_.Mq,function(){c.hovered=!1;c.data&&!c.data.toggledServiceEndpoint&&(c.expandAnimationDelayJobId=_.Xi(_.Mq,function(){c.set("data.isToggled",
!1)},200))},2E3))};
_.J.onMouseenter=function(){var S=this;this.mouseoverDelayJobId=_.Xi(_.Mq,function(){S.hovered=!0},300)};
_.J.onMouseleave=function(){_.Mq.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.J.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.J.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.J.onServiceRequestCompleted=function(S,c){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(c)||this.set("data.isToggled",!this.data.isToggled)};
_.J.serviceRequestWasSuccessful=function(S){return _.Y(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.MB)?S.data.status==="STATUS_SUCCEEDED":!0};
He.prototype.onServiceRequestCompleted=He.prototype.onServiceRequestCompleted;He.prototype.onPopupClosed=He.prototype.onPopupClosed;He.prototype.onPopupOpened=He.prototype.onPopupOpened;He.prototype.onMouseleave=He.prototype.onMouseleave;He.prototype.dataChanged=He.prototype.dataChanged;_.d([_.p(_.M9),_.P("design:type",Object)],He.prototype,"ironButtonState",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],He.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],He.prototype,"ytEventForwardingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],He.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.P("design:type",Object)],He.prototype,"ariaLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],He.prototype,"disableTooltips",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],He.prototype,"popupOpen",void 0);_.d([_.Z(),_.P("design:type",Object)],He.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Element)],He.prototype,"eventSink",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],He.prototype,"useExpandableTooltip",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.P("design:type",Object)],He.prototype,"toggled",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],He.prototype,"hovered",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.P("design:type",Object)],He.prototype,"iconOnHover",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],He.prototype,"dataChanged",null);
_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],He.prototype,"onMouseleave",null);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],He.prototype,"onPopupOpened",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],He.prototype,"onPopupClosed",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],He.prototype,"onServiceRequestCompleted",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],He);
_.k(He,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(h_u!==void 0)return h_u;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return h_u=S},{mode:_.A2("kevlar_poly_si_batch_j053")?1:2});var q3_;var Tg$=_.y_(function(S){var c=S.data;var Q=S.thumbnailSize;var f=function(){return c().enableSegmentView};
return _.B("yt-thumbnail-overlay-progress-bar-view-model",{class:_.n4("ytThumbnailOverlayProgressBarHost",function(){return Q4p(Q==null?void 0:Q())})},_.B(_.K,{cond:f,
then:function(){return _.B("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.B("div",{class:_.No("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+c().startPercent+"%"}}),_.B("div",{class:_.No("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+c().segmentDurationPercent+"%"}},_.B("div",{class:_.No("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.B("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.B("div",null," ",function(){return c().segmentLabel})),_.B("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.B("div",{class:_.No("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.B(_.K,{cond:function(){return!f()&&c().startPercent},
then:function(){var U={};return _.B("div",{class:_.No("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(U.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.u("web_enable_modern_progress_bar_overlay"),U))},_.B("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+c().startPercent+"%"}}))}}))},"Q");
Tg$.idomCompat=!0;var wpT=_.y_(function(S){var c=_.xa(),Q=_.Gs(function(U){var a,X,z;a:{var x=(a=S.data())==null?void 0:a.animationActivationTargetId;a=((X=S.data())==null?void 0:X.animationActivationEntityKey)||"";X=(z=S.data())==null?void 0:z.animationActivationEntitySelectorType;if(a&&x)switch(X){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":U=_.FT(U.entities,"playerStateEntity",a);z=_.fl().resolve(_.QS(_.ra));x=!!(U&&U.videoId===x&&(z==null?0:z.isMiniplayerActive()));x={activated:x,playAnimation:x&&
U.playerState==="PLAYER_STATE_PLAYING"};break a}x=void 0}return x});
_.To(function(){var U;if((U=Q())==null?0:U.activated){var a;if((a=Q())==null?0:a.playAnimation){var X;(X=c.lottieEl)==null||X.goToAndPlay(0)}else{var z;(z=c.lottieEl)==null||z.goToAndStop(0)}}},"MDTl2e");
var f=function(){var U,a=!((U=Q())==null||!U.activated);if(S.data()){U=S.data();var X=void 0;U.icon&&(X=_.xXH(U.icon),X=KPT(X));var z=void 0,x;if((x=U.backgroundColor)==null?0:x.lightTheme){var I;z={backgroundColor:em((I=U.backgroundColor)==null?void 0:I.lightTheme,"0.8")}}if(U.text||X||a){if(a&&U.lottieData&&c){I=U.lottieData;var n,b,N;x={animationConfig:{name:I.url,path:I.url,autoplay:(n=I.settings)==null?void 0:n.autoplay,loop:(N=(b=I.settings)==null?void 0:b.loop)!=null?N:!0},animationRef:c}}else x=
void 0;if(a)n=16;else b:switch(U.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":n=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":n=18;break b;default:n=16}a={type:n,text:a&&U.animatedText?U.animatedText:U.text,icon:X,customColors:z,animation:x}}else a=void 0}else a=void 0;return a};
return _.B("yt-thumbnail-badge-view-model",{class:_.n4("yt-thumbnail-badge-view-model-wiz",S.class)},_.B(_.K,{cond:f,then:function(){return _.B(_.y8,{data:function(){return f()}})}}))},"R");var sup=_.y_(function(S){var c={},Q={};return _.B("yt-thumbnail-bottom-overlay-view-model",{class:_.n4("ytThumbnailBottomOverlayViewModelHost",(c.ytThumbnailBottomOverlayViewModelHostBackground=function(){return S.data().enableGradientBackground},c))},_.B(_.h8,{data:function(){return S.data().progressBar}},{thumbnailOverlayProgressBarViewModel:function(f){return _.B(Tg$,{data:f.data,
thumbnailSize:S.thumbnailSize})}}),_.B("div",{class:_.n4("ytThumbnailBottomOverlayViewModelBadgeContainer",function(){var f;
return fSZ((f=S.thumbnailSize)==null?void 0:f.call(S))},(Q.ytThumbnailBottomOverlayViewModelBadgeContainerClip=function(){var f;
return(f=S.isClip)==null?void 0:f.call(S)},Q.ytThumbnailBottomOverlayViewModelBadgeContainerSmallLegacy=function(){var f;
return!_.u("web_enable_modern_progress_bar_overlay")&&((f=S.thumbnailSize)==null?void 0:f.call(S))==="small"},Q))},_.B(_.h8,{data:function(){return S.data().badge}},{thumbnailBadgeViewModel:function(f){return _.B(wpT,{data:f.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}}),_.B(_.h8,{data:function(){return S.data().badges}},{thumbnailBadgeViewModel:function(f){return _.B(wpT,{data:f.data,
class:"ytThumbnailBottomOverlayViewModelBadge"})}})))},"S");
sup.idomCompat=!0;_.f4(sup,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Qn,thumbnailSize:_.Qn,isClip:_.Qn}});var ISY={calledOnce:!1,state:"visible"},n$R={calledOnce:!1,state:"hidden"};var Dr=_.y_(function(S){var c=S.data;var Q=S.className;S=S.alwaysShow;var f=_.EH("thumbnail-hover-overlay-view-model");_.LS(f,function(){return c().rendererContext});
var U=_.aSR(),a={};return _.B("thumbnail-hover-overlay-view-model",{el:f,class:_.n4("ytThumbnailHoverOverlayViewModelHost",Q,(a.ytThumbnailHoverOverlayViewModelHostForceHover=S,a)),"aria-label":function(){var X;return(X=_.Y(c().rendererContext,_.jT))==null?void 0:X.label},
role:function(){return _.vK(c().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.vK(c().rendererContext)!==void 0?0:void 0},
"on:keypress":U},_.B("div",{class:_.n4("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(c().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var X="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:X="ytThumbnailHoverOverlayViewModelStyleCover"}return X})},_.B(_.K,{cond:function(){return c().icon},
then:function(X){return _.B(_.RW,{data:X,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.B(_.K,{cond:function(){return c().text},
then:function(X){return _.B(_.mw,{text:X,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"T");
Dr.idomCompat=!0;var MZT=_.y_(function(S){var c=S.data;return _.B(_.h8,{data:function(){return c==null?void 0:c().overlays}},{thumbnailHoverOverlayViewModel:Dr})},"U");
MZT.idomCompat=!0;var ipd={};var Zpi=_.y_(function(S){var c=S.data;var Q=S.image;var f=S.state;var U=S.iconType;var a=S.overlays;var X=S.isOverlay;var z=_.tc("div");S=_.A(_.ny(!0,void 0,"sUzEZ"));var x=S.next().value,I=S.next().value,n=function(){return!!c().onTap},b=_.tq(U,"LIVE");
_.To(function(){var l=c();requestAnimationFrame(function(){if(z.value===null)var H=!0;else{var q=z.value;H=l.badgeText;var w=K3x(l.size);H in ipd?q=ipd[H]:(q=q.clientWidth,ipd[H]=q);(H=q>w)?z.value.style.display="none":z.value.style.visibility="visible"}I(H)})},"SpVcNb");
var N=function(){var l={};return l["yt-spec-avatar-shape__image"]=!0,l["yt-spec-avatar-shape__image--ads-app"]=c().type===1,l};
return _.B("yt-avatar-shape",null,_.B("div",{el:_.oW(u8z(n,{keydown:function(l){if(l.key==="Enter"){var H;(H=l.currentTarget)==null||H.click()}},
click:function(l){var H,q;return void((q=(H=c()).onTap)==null?void 0:q.call(H,l))}})),
class:function(){var l={"yt-spec-avatar-shape":!0,"yt-spec-avatar-shape__button":!0},H=c();l=(l[H.clusterLayoutConfig?YBr(H.clusterLayoutConfig):CpR(H.size)]=!0,l["yt-spec-avatar-shape__button--tappable"]=n(),l);(H=c().avatarButtonCustomClassName)&&(l[H]=!0);return _.No(l)},
"aria-label":function(){return n()?c().accessibilityText:""},
role:function(){return n()?"button":void 0},
tabindex:function(){return n()?0:void 0}},_.B("div",{class:function(){var l,H=c(),q=f==null?void 0:f(),w=X==null?void 0:X(),g=!((l=H.decorations)==null||!l.includes(2)||H.size!=="medium"&&H.size!=="large"),r=H.size==="tiny"||H.size==="extra-small",E,v,t,V,AZ={};
l=(AZ["yt-spec-avatar-shape--live-ring"]=!!(((E=H.decorations)==null?0:E.includes(0))&&DNZ(H.size)),AZ["yt-spec-avatar-shape--stories-watched"]=g&&!(q==null||!q.storiesWatched),AZ["yt-spec-avatar-shape--stories-unwatched"]=g&&!(q==null?0:q.storiesWatched),AZ["yt-spec-avatar-shape--background-border"]=pzo(H.decorations)&&!r,AZ["yt-spec-avatar-shape--background-border-thin"]=pzo(H.decorations)&&r,AZ["yt-spec-avatar-shape__on-select-border"]=!((v=H.decorations)==null||!v.includes(4)),AZ["yt-spec-avatar-shape__white-border"]=
!((t=H.decorations)==null||!t.includes(5)),AZ["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((V=H.decorations)==null?0:V.includes(5))&&r),AZ["yt-spec-avatar-shape--is-overlay"]=!!w,AZ);return _.No(l)},
style:function(){a:{var l=c().clusterLayoutConfig;if(l){b:{var H=l.numAvatarsInCluster;var q=l.avatarIndex;if(q!==H-1){switch(l.clusterSize){case "small":l="32";break;case "medium":l="36";break;case "40":l="40";break;default:H=void 0;break b}H="https://www.gstatic.com/youtube/img/creator/video_collaborations/cluster_size_"+l+"x"+l+"_avatars_"+H+"_index_"+q+".svg"}else H=void 0}if(H){H=_.Yd({"-webkit-mask-image":"url("+H+")","mask-image":"url("+H+")","--webkit-mask-size":"100%","--mask-size":"100%",
"-webkit-mask-repeat":"no-repeat","mask-repeat":"no-repeat"})();break a}}H=void 0}return H}},_.B("div",{class:function(){var l={};
var H=c();l=(l[H.clusterLayoutConfig?j4c(H.clusterLayoutConfig):lSZ(H.size)]=!0,l["yt-spec-avatar-shape--no-margin"]=pzo(c().decorations),l);return _.No(l)}},_.B(_.RW,{data:Q,
alt:function(){return!n()&&c().accessibilityText?c().accessibilityText:""},
targetWidth:function(){return HCY(c().size)},
targetHeight:function(){return HCY(c().size)},
className:function(){return _.No(N())}}),_.B(_.K,{cond:function(){var l;
return((l=c().decorations)==null?void 0:l.includes(0))&&DNZ(c().size)},
then:function(){return _.B("div",{class:function(){var l={};l=(l["yt-spec-avatar-shape__live-badge"]=!0,l["yt-spec-avatar-shape__live-badge--badge-small"]=c().size==="small",l["yt-spec-avatar-shape__live-badge--badge-medium"]=c().size==="medium"||c().size==="48",l["yt-spec-avatar-shape__live-badge--badge-large"]=c().size==="large",l["yt-spec-avatar-shape__live-badge--badge-extra-large"]=c().size==="extra-large"||c().size==="extra-extra-large"||c().size==="giant",l);return _.No(l)}},_.B(_.K,{cond:function(){return c().badgeText},
then:function(l){return _.B("div",{class:"yt-spec-avatar-shape__badge-text",el:z},l)}}),_.B(_.K,{cond:x,
then:function(){return _.B("div",{class:"yt-spec-avatar-shape__badge-icon"},_.B(_.C4,{icon:b,size:function(){a:switch(c().size){case "extra-large":var l=16;break a;default:l=13}return l}}))}}))}}),_.B(_.K,{cond:function(){var l,H;
return((l=c().decorations)==null?void 0:l.includes(1))||((H=c().decorations)==null?void 0:H.includes(0))&&!DNZ(c().size)},
then:function(){return _.B("div",{class:function(){var l=c(),H,q,w={};var g=(w["yt-spec-avatar-shape__live-dot"]=!((H=l.decorations)==null||!H.includes(0)||DNZ(l.size)),w["yt-spec-avatar-shape__new-content"]=!((q=l.decorations)==null||!q.includes(1)),w);return _.No(g)}})}}),_.B(_.K,{cond:function(){return!!a},
then:function(){return _.B("div",{class:function(){var l={};l=Object.assign((l["yt-spec-avatar-shape__image-overlays"]=!0,l),N());return _.No(l)}},a==null?void 0:a())}})))))},"V");
Zpi.idomCompat={callbacks:{overlays:!0}};_.p3=_.y_(function(S){function c(){Q().endpoint&&_.kz(Q().endpoint)}
var Q=S.data;var f=S.decorations;var U=S.avatarButtonCustomClassName;var a=S.isOverlay;var X=S.clusterLayoutConfig;return _.B("avatar-view-model",null,_.B(_.K,{cond:function(){return Q().image},
then:function(z){return _.B(Zpi,{data:function(){return qBZ({data:Q(),onTap:Q().endpoint?c:void 0,decorations:f==null?void 0:f(),badgeText:void 0,accessibilityText:Q().accessibilityText,avatarButtonCustomClassName:U==null?void 0:U(),clusterLayoutConfig:X==null?void 0:X()})},
image:z,iconType:"RADAR_LIVE",overlays:function(){return _.B(MZT,{data:Q})},
isOverlay:a})}}))},"W");
_.p3.idomCompat=!0;_.h7=_.y_(function(S){var c=S.data;S=S.className;var Q=_.tc("yt-decorated-avatar-view-model"),f=function(){return _.Y(c().avatar,_.Ee)},U=_.uQ(function(){var a,X=c(),z=f(),x=_.vK(c().rendererContext),I=(a=Q.value)!=null?a:void 0,n;
if(z){I={data:X,avatar:z,onTap:x,element:I};a=I.data;X=I.avatar;z=I.onTap;x=I.element;I=I.commandController;z=z?M3M(z,x,I):void 0;x=[];a.liveData&&x.push(0);var b;I=(b=a.liveData)==null?void 0:b.liveBadgeText;b=(n=_.Y(a.rendererContext,_.jT))==null?void 0:n.label;n=qBZ({data:X,onTap:z,decorations:x,badgeText:I,accessibilityText:b?b:a.a11yLabel})}else n={size:"medium"};return n},void 0,"H8tk9d");
return _.B("yt-decorated-avatar-view-model",{class:_.n4("yt-decorated-avatar-view-model-wiz",S),el:Q},_.B(_.K,{cond:function(){var a;return(a=f())==null?void 0:a.image},
then:function(a){return _.B(Zpi,{data:U,image:a,iconType:"RADAR_LIVE",overlays:function(){return _.B(MZT,{data:f})}})}}))},"X");
_.h7.idomCompat=!0;_.qn=_.y_(function(S){var c=function(){var x;return Object.assign({},S.data(),(x=S.overrides)==null?void 0:x.call(S))},Q=_.EH("yt-avatar-stack-view-model"),f=function(){return Q&&_.PK(c().rendererContext)};
_.LS(Q,function(){return c().rendererContext});
var U=function(){var x=c().avatars,I,n;return(n=(I=(x==null?0:x[0])?_.Y(x[0],_.Ee):void 0)==null?void 0:I.avatarImageSize)!=null?n:"AVATAR_SIZE_UNKNOWN"},a=function(){return s4z(c())},X=function(){if(c().layoutType==="AVATAR_STACK_LAYOUT_CLUSTER")var x=void 0;
else if((x=S.decorations)==null?0:x.call(S))x=S.decorations();else{x=c();var I=0;x.avatars&&(I+=x.avatars.length);x.decoratedText&&(I+=1);x=I>1?[3]:[]}return x},z={};
return _.B("yt-avatar-stack-view-model",{el:Q,class:_.n4("yt-avatar-stack-view-model-wiz",S.className,(z["yt-avatar-stack-view-model-wiz--tappable"]=f,z["yt-avatar-stack-view-model-wiz--is-overlay"]=S.isOverlay,z["yt-avatar-stack-view-model-wiz--medium-text"]=S.useMediumText,z)),tabindex:function(){return f()?0:void 0},
role:function(){return f()?"link":void 0},
"aria-label":function(){var x,I;return(I=(x=_.Y(c().rendererContext,_.jT))==null?void 0:x.label)!=null?I:""}},_.B(_.K,{cond:function(){var x;
return c().avatars&&!((x=S.hideAvatar)==null?0:x.call(S))},
then:function(){return _.B("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.B(_.K,{cond:function(){return c().decoratedText},
then:function(x){var I={};return _.B("div",{class:_.n4("yt-avatar-stack-view-model-wiz__text-container",(I["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return U()==="AVATAR_SIZE_XXS"||U()==="AVATAR_SIZE_XS"},I["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var n;
return((n=S.isOverlay)==null?void 0:n.call(S))&&(U()==="AVATAR_SIZE_XXS"||U()==="AVATAR_SIZE_XS")},I)),
style:_.Yd({width:function(){return a().avatarSizeInPx+"px"},
height:function(){return a().avatarSizeInPx+"px"}})},_.B(_.mw,{text:x,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.B("div",{style:function(){return _.Yd(a().avatarStackStyle)()},
class:function(){return a().avatarStackClass}},_.B(_.h8,{data:function(){return a().avatars.reverse()}},{avatarViewModel:function(x,I){return _.B("div",{style:function(){var n,b;
return _.Yd((b=(n=a()).avatarStyle)==null?void 0:b.call(n,I()))()},
class:function(){return a().avatarClass}},_.B(_.p3,{data:x.data,
decorations:X,avatarButtonCustomClassName:function(){return a().avatarButtonCustomClassName},
isOverlay:S.isOverlay,clusterLayoutConfig:function(){var n,b;return(b=(n=a()).clusterLayoutConfig)==null?void 0:b.call(n,I())}}))},
decoratedAvatarViewModel:function(x,I){return _.B("div",{style:function(){var n,b;return _.Yd((b=(n=a()).avatarStyle)==null?void 0:b.call(n,I()))()},
class:function(){return a().avatarClass}},_.B(_.h7,{data:x.data}))}})))}}),_.B(_.K,{cond:function(){return c().text},
then:function(x){return _.B(_.mw,{text:x,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"Y");
_.qn.idomCompat=!0;_.f4(_.y_(function(S){var c=S.data;var Q=S.thumbnailSize;return _.B("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.B("div",{class:_.n4("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return iCp(Q==null?void 0:Q())})},_.B(_.h8,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(f){return _.B(_.qn,{data:f.data,
decorations:[5]})}})))},"Z"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.y$,
thumbnailSize:_.y$}});var Gu_=_.y_(function(S){S=_.V_(S,{hidden:!1});var c=S.data;return _.B("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:S.hidden},_.B(_.mw,{text:function(){return c().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.B(_.K,{cond:function(){return c().subtitle},
then:function(){return _.B(_.mw,{text:function(){return c().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"$");
Gu_.idomCompat=!0;_.f4(Gu_,"yt-thumbnail-overlay-title-view-model",{props:{data:_.y$,hidden:_.y$}});var Wse=_.y_(function(S){S=_.V_(S,{isClip:!1});var c=S.data,Q=S.thumbnailSize,f={};return _.B("yt-thumbnail-overlay-badge-view-model",{class:_.n4("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(c().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var U="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:U="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return U},function(){return ZCT(Q==null?void 0:Q())},(f["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
S.isClip,f))},_.B(_.h8,{data:function(){return c().thumbnailBadges}},{thumbnailBadgeViewModel:function(U){return _.B(wpT,{data:U.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"aa");
Wse.idomCompat=!0;_.f4(Wse,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.y$,thumbnailSize:_.y$,isClip:_.y$}});_.Qu(GGM);_.xd(GGM,"yt-page-indicator-view-model",{propNames:["data"]});var T0=function(){var S=_.W.apply(this,arguments)||this;S.eventSink=function(){return S};
S.disableInteraction=!1;S.noRoundedCorners=!1;S.isPreviewLoading=!1;S.isOriginalAspectRatio=!1;S.computedObjectFit=!1;S.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return S};
_.C(T0,_.W);_.J=T0.prototype;
_.J.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer",properties:{overlayColor:"[[overlayColor]]"}},thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayResumePlaybackRenderer:{component:"ytd-thumbnail-overlay-resume-playback-renderer",properties:{isLive:"[[isLiveVideo]]"}},thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",properties:{width:"[[thumbnailOverlaySidePanelWidth_]]",
bottomPanel:"[[bottomSidePanel]]",richGridOverlay:"[[richGridThumbnail]]",watchFeedOverlay:"[[watchFeedThumbnail]]"}},thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayNowPlayingRenderer:{component:"ytd-thumbnail-overlay-now-playing-renderer",properties:{isVideoPlaying:"[[isVideoPlaying]]",equalizerOnly:"[[nowPlayingEqualizerOnly]]",isActive:"[[data.selected]]",videoId:"[[data.videoId]]"}},thumbnailOverlayPinkingRenderer:"ytd-thumbnail-overlay-pinking-renderer",
thumbnailOverlayDownloadingRenderer:{component:"ytd-thumbnail-overlay-downloading-renderer",params:{active:!0}},thumbnailOverlayIconRenderer:"ytd-thumbnail-overlay-icon-renderer",thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model",pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailBottomOverlayViewModel:"yt-thumbnail-bottom-overlay-view-model",thumbnailOverlayAvatarStackViewModel:"thumbnail-overlay-avatar-stack-view-model",thumbnailOverlayBadgeViewModel:{component:"yt-thumbnail-overlay-badge-view-model",
properties:{thumbnailSize:"[[thumbnailSize]]"}}},initialRenderPriority:_.u("defer_overlays")?1:void 0,waitForSignal:void 0},hoverOverlays_:{id:"hover-overlays",reuseComponents:!1,mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayInlineUnplayableRenderer:"ytd-thumbnail-overlay-inline-unplayable-renderer",thumbnailOverlayToggleButtonRenderer:{component:"ytd-thumbnail-overlay-toggle-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",
eventSink:"[[eventSink]]",useExpandableTooltip:"[[useExpandableTooltip]]"}},thumbnailOverlayButtonRenderer:{component:"ytd-thumbnail-overlay-button-renderer",properties:{disableTooltips:"[[disableTooltips]]",eventSink:"[[eventSink]]"}},thumbnailOverlayEndorsementRenderer:"ytd-thumbnail-overlay-endorsement-renderer",thumbnailOverlayLoadingPreviewRenderer:{component:"ytd-thumbnail-overlay-loading-preview-renderer",properties:{isPreviewLoading:"[[isPreviewLoading]]"}}}},richThumbnail:{id:"mouseover-overlay",
mapping:{movingThumbnailRenderer:{component:"ytd-moving-thumbnail-renderer",properties:{trackingParams:"[[data.trackingParams]]",videoId:"[[data.videoId]]"}}},renderPriority:2,waitForSignal:"eocs"}}};
_.J.onImageLoaded=function(){this.loaded=!0};
_.J.onImageUnloaded=function(){this.loaded=!1};
_.J.computeRichThumbnail=function(S,c,Q,f){if(S&&c&&!f&&!_.u("disable_moving_thumbs_handling")&&!Q)return c};
_.J.computeImageWidth=function(S,c){return c||9999};
_.J.computeIsOriginalAspectRatio=function(S){return S};
_.J.computeIsLive=function(S){if(S==null?0:S.badges)for(var c=0;c<S.badges.length;c++){var Q=S.badges[c];if(Q.metadataBadgeRenderer&&Q.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(S==null?0:S.thumbnailOverlays)for(c=0;c<S.thumbnailOverlays.length;c++)if(Q=S.thumbnailOverlays[c],Q.thumbnailOverlayTimeStatusRenderer&&Q.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.J.computeObjectFit=function(S,c){return c||(S?"CONTAIN":"")};
_.J.computeNavigationEndpoint=function(S,c,Q){return S?c:Q};
_.J.computeHasClip=function(S){S=_.A(S||[]);for(var c=S.next();!c.done;c=S.next())if(c.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.J.computeOverlayColor=function(S){var c;return(S==null?0:(c=S.darkColorPalette)==null?0:c.section2Color)?S.darkColorPalette.section2Color:S==null?void 0:S.sampledThumbnailColor};
_.Rh.Object.defineProperties(T0.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return MqR(this.width)}}});
T0.prototype.onImageUnloaded=T0.prototype.onImageUnloaded;T0.prototype.onImageLoaded=T0.prototype.onImageLoaded;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],T0.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],T0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(NRT),_.P("design:type",Object)],T0.prototype,"ytdThumbnailBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],T0.prototype,"componentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],T0.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],T0.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],T0.prototype,"circular",void 0);
_.d([_.Z({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.P("design:type",Object)],T0.prototype,"richThumbnail",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.P("design:type",Boolean)],T0.prototype,"hasClip",void 0);_.d([_.Z(),_.P("design:type",Object)],T0.prototype,"eventSink",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],T0.prototype,"queued",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],T0.prototype,"richGridThumbnail",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],T0.prototype,"useExpandableTooltip",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],T0.prototype,"useUntranslatedNavigationEndpoint",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],T0.prototype,"disableInteraction",void 0);
_.d([_.Z({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.P("design:type",Object)],T0.prototype,"computedNavigationEndpoint",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],T0.prototype,"nowPlayingEqualizerOnly",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],T0.prototype,"hidePlaybackStatus",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],T0.prototype,"objectFit",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],T0.prototype,"noRoundedCorners",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],T0.prototype,"watchFeedThumbnail",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],T0.prototype,"isPreviewLoading",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.P("design:type",Object)],T0.prototype,"isOriginalAspectRatio",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.P("design:type",Object)],T0.prototype,"computedObjectFit",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.P("design:type",Boolean)],T0.prototype,"isLiveVideo",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],T0.prototype,"loaded",void 0);_.d([_.Z({computed:"computeOverlayColor(data.thumbnail)"}),_.P("design:type",Object)],T0.prototype,"overlayColor",void 0);_.d([_.Z({selector:_.bkZ}),_.P("design:type",Boolean)],T0.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.Z(),_.P("design:type",Number)],T0.prototype,"width",void 0);
_.d([_.M("inlinePreviewIsEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],T0.prototype,"isPreviewDisabled",null);_.d([_.M("width"),_.P("design:type",String),_.P("design:paramtypes",[])],T0.prototype,"thumbnailSize",null);_.d([_.FV("image-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T0.prototype,"onImageLoaded",null);
_.d([_.FV("image-unloaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T0.prototype,"onImageUnloaded",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-thumbnail"})],T0);
var g8z=_.aW()(T0,"ytd-thumbnail",function(){if(q3_===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);q3_=S}S=q3_;return S},{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 kGo=function(S){var c=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12858_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12858_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(Q){e_d(c,Q)};
this.onLockupMouseLeaveFn=function(Q){Q=Q.relatedTarget;var f,U;((f=document.getElementsByTagName("ytd-video-preview"))==null?0:(U=f.item(0))==null?0:U.contains(Q))||(c.terminateVideoPreview(),wV(c))};
this.onThumbnailMouseDownFn=function(){c.terminateVideoPreview();wV(c)};
this.onTouchStart=function(){c.JSC$12858_touched=!0};
this.mediaRenderer=S.mediaRenderer;this.thumbnailElement=S.thumbnailElement;this.lockupElement=S.lockupElement;this.videoPreviewOptsInput=S.videoPreviewOpts;kuu(this);su(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)):
_.i5(Error("Dh")):_.i5(Error("Eh")):rD_(this)},Jw=function(S){rD_(S);
var c;(c=S.lockupElement)==null||c.removeEventListener("mouseenter",S.onMouseMoveFn);var Q;(Q=S.lockupElement)==null||Q.removeEventListener("mouseleave",S.onLockupMouseLeaveFn);var f;(f=S.lockupElement)==null||f.removeEventListener("touchstart",S.onTouchStart);var U;(U=S.thumbnailElement)==null||U.removeEventListener("mousedown",S.onThumbnailMouseDownFn);wV(S)},kuu=function(S){S.inlinePreviewIsEnabledForUser=_.V5().getState().ui.inlinePreviewIsEnabled;
S.unsubscribeFromInlinePreviewIsEnabled=_.Kt(_.V5(),_.bkZ,function(c){(S.inlinePreviewIsEnabledForUser=c)||wV(S)});
S.JSC$12858_unsubscribeFromInlinePreviewIsActive=_.Kt(_.V5(),_.ncY,function(c){(S.inlinePreviewIsActive=c)||wV(S)})},rD_=function(S){S.unsubscribeFromInlinePreviewIsEnabled();
S.unsubscribeFromInlinePreviewIsEnabled=function(){};
S.JSC$12858_unsubscribeFromInlinePreviewIsActive();S.JSC$12858_unsubscribeFromInlinePreviewIsActive=function(){}},e_d=function(S,c){c.buttons>0||(c=_.a6("kevlar_lockup_hover_delay",-1),S.JSC$12858_touched&&c>=0?(_.Mq.cancelJob(S.videoPreviewJobId),S.videoPreviewJobId=_.Xi(_.Mq,function(){d4h(S)},c),S.JSC$12858_touched=!1):d4h(S))},Wfp=function(S){S.videoPreviewJobId=_.Xi(_.Mq,function(){var c,Q,f,U;
return _.O(function(a){if(a.nextAddress==1){if(!su(S))return a.return();c=S.getVideoPreviewOpts();if(!c)return a.return();c.isAutoplay=!0;return(f=(Q=_.Oz(S.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&Q[0])?_.F(a,Q[0],3):a.jumpTo(2)}a.nextAddress!=2&&(f=a.yieldResult===1);f&&g$p((U=S.mediaRenderer)==null?void 0:U.data);_.IN(a)})})},d4h=function(S){!S.previewTriggered&&su(S)&&(S.inlinePreviewIsActive&&S.terminateVideoPreview(),S.previewTriggered=!0,S.mediaRenderer.isInlinePreviewTriggered=
!0,_.Mq.cancelJob(S.videoPreviewJobId),S.videoPreviewJobId=_.Xi(_.Mq,function(){var c,Q,f,U;
return _.O(function(a){if(a.nextAddress==1){if(!su(S))return a.return();c=S.getVideoPreviewOpts();return c?(f=(Q=_.Oz(S.mediaRenderer.hostElement,"yt-open-video-preview-action",[c]))&&Q[0])?_.F(a,Q[0],3):a.jumpTo(2):a.return()}a.nextAddress!=2&&(f=a.yieldResult===1);f&&g$p((U=S.mediaRenderer)==null?void 0:U.data);_.IN(a)})}))};
kGo.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var S,c;if((c=(S=this.videoPreviewOptsInput)==null?void 0:S.videoPreviewData)!=null)S=c;else if(S=this.mediaRenderer.data)if(W3c(S))S={inlinePlaybackEndpoint:_.Gv(S.inlinePlayerData.onVisible),navigationEndpoint:_.Gv(S.onTap),thumbnail:"image"in S?S.image:S.thumbnail,thumbnailOverlays:void 0,accessibilityText:eyY(S)};else if("multipleInlinePlaybackEndpoint"in S){var Q=_.Y(_.Y(S.multipleInlinePlaybackEndpoint,$1p),uNJ);if(Q!=
null&&Q.playerDescriptors){c=[];Q=_.A(Q.playerDescriptors);for(var f=Q.next();!f.done;f=Q.next())f=f.value,c.push({inlinePlaybackEndpoint:f.inlinePlaybackEndpoint,navigationEndpoint:f.navigationEndpoint,thumbnail:f.thumbnail,thumbnailOverlays:f.thumbnailOverlays,accessibilityText:eyY(S)});S=c}else S=void 0}else S={inlinePlaybackEndpoint:S.inlinePlaybackEndpoint,navigationEndpoint:S.navigationEndpoint,thumbnail:S.thumbnail,thumbnailOverlays:S.thumbnailOverlays,accessibilityText:eyY(S)};else S=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:S,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var su=function(S){var c;if(c=S.inlinePreviewIsEnabledForUser)c=(S=S.mediaRenderer.data)?"inlinePlaybackEndpoint"in S&&S.inlinePlaybackEndpoint||W3c(S)&&S.inlinePlayerData||"multipleInlinePlaybackEndpoint"in S&&S.multipleInlinePlaybackEndpoint?!0:!1:!1;return c};
kGo.prototype.terminateVideoPreview=function(){_.XF(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var wV=function(S){_.Mq.cancelJob(S.videoPreviewJobId);S.inlinePreviewIsActive=!1;S.previewTriggered=!1;S.mediaRenderer.isInlinePreviewTriggered=!1};var v8_=_.oK(["#"]),Mn=function(){var S=_.W.apply(this,arguments)||this;S.isDisabled=!1;return S};
_.C(Mn,_.W);_.J=Mn.prototype;_.J.configureRendererStamper=function(){return{"data.menu":Be,"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"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.getMetadata=function(S){var c=[];if(S.metadataText&&Object.keys(S.metadataText).length>0){var Q=this.ytRendererBehavior.getSimpleString(S.metadataText);S.upcomingEventData&&S.upcomingEventData.upcomingEventText&&(Q=_.GI(Q,Number(S.upcomingEventData.startTime)));c.push(Q)}else S.shortViewCountText&&c.push(this.ytRendererBehavior.getSimpleString(S.shortViewCountText)),S.publishedTimeText&&c.push(this.ytRendererBehavior.getSimpleString(S.publishedTimeText)),S.upcomingEventData&&S.upcomingEventData.upcomingEventText&&
(Q=this.ytRendererBehavior.getSimpleString(S.upcomingEventData.upcomingEventText),c.push(_.GI(Q,Number(S.upcomingEventData.startTime))));return c};
_.J.calculateBylineText=function(S){return S.shortBylineText?S.shortBylineText:S.bylineText?S.bylineText:null};
_.J.calculateIsDisabled=function(S){return!!S.isDisabled};
_.J.computeHrefWithDefault=function(S){return this.ytComponentBehavior.computeHref_(S)||_.Cc(v8_)};
_.J.onDetailsTap=function(S){var c=this.data&&this.data.navigationEndpoint;c&&!_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.u("kevlar_grid_video_renderer_killswitch")?_.Az(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12863_inlinePreviewHoverListener=t8({mediaRenderer:this,lockupElement:_.Ur(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.Ur(this.hostElement).querySelector("ytd-thumbnail")})};
_.J.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$12863_inlinePreviewHoverListener)==null||Jw(S)};
_.J.computeThumbnailWidth=function(S,c){return c&&c>0?c:S?360:210};
_.J.computeShowChannelThumbnail=function(S,c){var Q;return c&&!!(S==null?0:(Q=S.channelThumbnailSupportedRenderers)==null?0:Q.channelThumbnailWithLinkRenderer)};
_.Rh.Object.defineProperties(Mn.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$12863_inlinePreviewHoverListener)==null?0:su(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Mn.prototype.dataChanged=Mn.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Mn.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Mn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],Mn.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.rL),_.P("design:type",Object)],Mn.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Mn.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Mn.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Mn.prototype,"noEndpoints",void 0);_.d([_.Z({computed:"calculateBylineText(data)"}),_.P("design:type",Object)],Mn.prototype,"bylineText",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Mn.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Mn.prototype,"isDownloading",void 0);_.d([_.Z({reflectToAttribute:!0,value:0}),_.P("design:type",Number)],Mn.prototype,"width",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.P("design:type",Object)],Mn.prototype,"isDisabled",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mn.prototype,"dataChanged",null);_.d([_.M("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Mn.prototype,"isHovered",null);_.d([_.e({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],Mn);
_.k(Mn,"ytd-grid-video-renderer",function(){if(Ngd!==void 0)return Ngd;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Ngd=S},{mode:_.A2("kevlar_poly_si_batch_j047")?1:2});var Pmz;var ij=function(){var S=_.W.apply(this,arguments)||this;S.roundedContainer=!0;S.skipRoundingTop=!1;S.disableTopPadding=!1;S.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return S};
_.C(ij,_.W);ij.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
ij.prototype.onClick=function(S){var c,Q=(c=this.data)==null?void 0:c.sourceEndpoint;!_.RZ(_.t4(S),this.hostElement,["A".toString()])&&Q&&_.Az(this.hostElement,"yt-navigate",{endpoint:Q})};
_.Rh.Object.defineProperties(ij.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 S;return!((S=this.data)==null||!S.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=(S=this.data)==null?void 0:S.paragraphMaxLines)!=null?c:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ij.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ij.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ij.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ij.prototype,"showVerticalDividers",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ij.prototype,"roundedContainer",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ij.prototype,"skipRoundingTop",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ij.prototype,"disableTopPadding",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],ij.prototype,"amsterdamEnabled",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ij.prototype,"showMetadataAtTop",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ij.prototype,"showMetadataBelowTitle",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],ij.prototype,"hasMenu",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.truncateParagraphs"),_.P("design:type",Object),_.P("design:paramtypes",[])],ij.prototype,"truncateParagraphs",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.paragraphMaxLines"),_.P("design:type",Number),_.P("design:paramtypes",[])],ij.prototype,"paragraphMaxLines",null);_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.background"),_.P("design:type",Object),_.P("design:paramtypes",[])],ij.prototype,"background",null);_.d([_.e({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],ij);
_.k(ij,"ytd-info-panel-content-renderer",function(){if(Pmz!==void 0)return Pmz;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Pmz=S},{mode:_.A2("kevlar_poly_si_batch_j076")?1:2});var Lsh;var E8J;var tZs;var VZ$;var Zr=function(){return _.W.apply(this,arguments)||this};
_.C(Zr,_.W);Zr.prototype.computeStyle=function(S){return S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Zr.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],Zr.prototype,"style_",void 0);_.d([_.wM({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Zr);
_.k(Zr,"yt-channel-thumbnail-with-link-renderer",function(){if(VZ$===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;tZs===void 0&&(tZs=document.createElement("template"));var f=tZs;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);VZ$=S}S=VZ$;return S},{mode:2});var G0=function(){var S=_.W.apply(this,arguments)||this;S.modernTypography=_.u("web_modern_typography");return S};
_.C(G0,_.W);G0.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"}}}};
G0.prototype.computeTitleStyle=function(S){return S||null};
G0.prototype.computeAvatarStyle=function(S){return S||null};
G0.prototype.computeShowNavigationButton=function(S,c){return!(S==null||!S.navigationButton||c)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],G0.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],G0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],G0.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.P("design:type",String)],G0.prototype,"titleStyle",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.P("design:type",String)],G0.prototype,"avatarStyle",void 0);_.d([_.Z(),_.P("design:type",Boolean)],G0.prototype,"hideNavigationButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],G0.prototype,"isModernSd",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],G0.prototype,"modernTypography",void 0);
_.d([_.e({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],G0);
_.k(G0,"ytd-rich-list-header-renderer",function(){if(E8J!==void 0)return E8J;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return E8J=S},{mode:_.A2("kevlar_poly_si_batch_j058")?1:2});var We=function(){return _.W.apply(this,arguments)||this};
_.C(We,_.W);We.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]]"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],We.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],We.prototype,"isSearch",void 0);_.d([_.e({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],We);
_.k(We,"ytd-preview-card-renderer",function(){if(Lsh!==void 0)return Lsh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Lsh=S},{mode:1});var R_s;var gV=function(){return _.W.apply(this,arguments)||this};
_.C(gV,_.W);gV.prototype.configureRendererStamper=function(){return{"data.menu":Be}};
gV.prototype.dataChanged=function(){var S=this.get("colorExtractionPalette.section1Color",this.data);S=_.WV(S);_.Or(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":S})};
gV.prototype.computeCardStyle=function(S){return this.get("style.value",S)||null};
gV.prototype.dataChanged=gV.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],gV.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gV.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.P("design:type",String)],gV.prototype,"cardStyle",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gV.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],gV);
_.k(gV,"ytd-compact-channel-recommendation-card-renderer",function(){if(R_s!==void 0)return R_s;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return R_s=S},{mode:1});var yDi;var o8u;var ej=function(){var S=_.W.apply(this,arguments)||this;S.alignAuto=!1;S.collapsed=!0;S.isToggled=!1;S.alwaysCollapsed=!1;S.canToggle=!0;S.collapsedHeight=80;S.disableToggle=!1;S.alwaysToggleable=!1;S.reversed=!1;S.shouldUseNumberOfLines=!1;S.recomputeOnResize=!1;S.canToggleJobId=0;S.lastReversed=!1;return S};
_.C(ej,_.W);_.J=ej.prototype;_.J.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.J.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.J.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var S=_.Ur(this.hostElement),c=S.childNodes,Q=document.createDocumentFragment(),f=S.childNodes.length-1;f>=0;f--)_.Ur(Q).appendChild(c[f]);_.u("enable_shadydom_free_scoped_node_methods")?_.Jq(this.hostElement).appendChild(Q):S.appendChild(Q)}};
_.J.ready=function(){var S=this;_.gM(function(){S.initChildrenObserver()},1)};
_.J.detached=function(){this.detachObserver()};
_.J.toggle=function(S,c){this.canToggle&&(this.isToggled=c,_.Az(this.hostElement,"yt-refit"),S&&S.stopPropagation())};
_.J.reset=function(){this.childrenChanged()};
_.J.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.J.computeIsMoreVisible=function(S,c){return S&&!c};
_.J.computeShouldUseNumberOfLines=function(S){try{return!!S&&window.CSS.supports("-webkit-line-clamp","1")}catch(c){}return!1};
_.J.computeIsLessVisible=function(S,c){return S&&c};
_.J.observeCollapsedHeightAndMaxLines=function(){var S=this.collapsedHeight,c=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.Or(this.hostElement,{"--ytd-expander-max-lines":""+c,"--ytd-expander-collapsed-height":""}):_.Or(this.hostElement,{"--ytd-expander-collapsed-height":S+"px","--ytd-expander-max-lines":""})};
_.J.handleMoreTap=function(S){this.disableToggle||(_.Az(this.hostElement,"yt-expander-more-tapped"),this.toggle(S,!0))};
_.J.handleLessTap=function(S){_.Az(this.hostElement,"yt-expander-less-tapped");this.toggle(S,!1)};
_.J.initChildrenObserver=function(){var S=this;this.observer=new MutationObserver(function(){S.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.J.childrenChanged=function(){var S=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){Aa(function(){S.canToggleJobId=0;S.calculateCanCollapse()})}))};
_.J.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};
_.J.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.J.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("collapsed-changed",this.collapsed))};
_.J.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("is-toggled-changed",this.isToggled))};
_.J.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("can-toggle-changed",this.canToggle))};
_.Rh.Object.defineProperties(ej.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
ej.prototype.canToggleChangedForBinding=ej.prototype.canToggleChangedForBinding;ej.prototype.isToggledChangedForBinding=ej.prototype.isToggledChangedForBinding;ej.prototype.collapsedChangedForBinding=ej.prototype.collapsedChangedForBinding;ej.prototype.observeCollapsedHeightAndMaxLines=ej.prototype.observeCollapsedHeightAndMaxLines;ej.prototype.onIronResize=ej.prototype.onIronResize;ej.prototype.reversedChanged=ej.prototype.reversedChanged;ej.prototype.toggledChanged=ej.prototype.toggledChanged;
ej.prototype.alwaysToggleableChanged=ej.prototype.alwaysToggleableChanged;_.d([_.p(_.w9),_.P("design:type",Object)],ej.prototype,"ironResizableBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ej.prototype,"alignAuto",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ej.prototype,"collapsed",void 0);_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"isToggled",void 0);_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"alwaysCollapsed",void 0);
_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"canToggle",void 0);_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"collapsedHeight",void 0);_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"disableToggle",void 0);_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"alwaysToggleable",void 0);_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"reversed",void 0);_.d([_.Z(),_.P("design:type",Number)],ej.prototype,"maxNumberOfLines",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.P("design:type",Object)],ej.prototype,"shouldUseNumberOfLines",void 0);_.d([_.Z(),_.P("design:type",Object)],ej.prototype,"recomputeOnResize",void 0);_.d([_.nU("#content"),_.P("design:type",HTMLDivElement)],ej.prototype,"content",void 0);_.d([_.$n("alwaysToggleable"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"alwaysToggleableChanged",null);
_.d([_.$n("isToggled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"toggledChanged",null);_.d([_.M("canToggleJobId"),_.P("design:type",Object),_.P("design:paramtypes",[])],ej.prototype,"isResetting",null);_.d([_.B0("reversed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"reversedChanged",null);
_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"onIronResize",null);_.d([_.B0("maxNumberOfLines","collapsedHeight"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"observeCollapsedHeightAndMaxLines",null);_.d([_.B0("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"collapsedChangedForBinding",null);
_.d([_.B0("isToggled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"isToggledChangedForBinding",null);_.d([_.B0("canToggle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ej.prototype,"canToggleChangedForBinding",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-expander"})],ej);
_.k(ej,"ytd-expander",function(){if(o8u!==void 0)return o8u;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return o8u=S},{mode:1});var k9=function(){return _.W.apply(this,arguments)||this};
_.C(k9,_.W);k9.prototype.computeIsCarousel=function(S){return!!S.isCarousel};
k9.prototype.observeLightsourcePalette=function(){var S,c=(S=this.data)==null?void 0:S.vibrantsourceColorPaletteData;c&&_.s2(this.hostElement,c)};
k9.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
k9.prototype.observeLightsourcePalette=k9.prototype.observeLightsourcePalette;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],k9.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],k9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],k9.prototype,"data",void 0);_.d([_.Z({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],k9.prototype,"isCarousel",void 0);
_.d([_.B0("data.vibrantsourceColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],k9.prototype,"observeLightsourcePalette",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],k9);
_.k(k9,"ytd-media-upsell-renderer",function(){if(yDi!==void 0)return yDi;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return yDi=S},{mode:2});var m4_;var rV=function(){var S=_.W.apply(this,arguments)||this;S.JSC$12891_playerEvents=new Map;S.listeningToPlayer=!1;S.startX=0;S.active=!1;S.shouldShowButtons=_.u("web_buttons_hidden_killswitch");S.isHighlighted=!1;S.useHighlightStyling=_.u("web_enable_deeper_metadata_highlight_styling");S.modern=_.u("kevlar_modern_sd");S.enableProblemWalkthrough=_.u("problem_walkthrough_sd");return S};
_.C(rV,_.W);_.J=rV.prototype;
_.J.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}}}}}};
_.J.created=function(){this.JSC$12891_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.xn(this,this.onRepeatButtonToggle));_.u("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.xn(this,this.onActiveUpdate))};
_.J.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.xn(this,this.onRepeatButtonToggle));_.u("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.xn(this,this.onActiveUpdate))};
_.J.onDataChanged=function(){this.removePlayerListeners()};
_.J.onColorPaletteChange=function(){var S={},c;if(_.pJ()==="USER_INTERFACE_THEME_DARK"&&((c=this.data)==null?0:c.darkColorPalette)){var Q=this.data.darkColorPalette;S["--ytd-macro-markers-list-item-background-color"]=_.gh(this.get("section2Color",Q))}else{var f;_.pJ()==="USER_INTERFACE_THEME_LIGHT"&&((f=this.data)==null?0:f.lightColorPalette)&&(Q=this.data.lightColorPalette,S["--ytd-macro-markers-list-item-background-color"]=_.gh(this.get("section3Color",Q)))}Q?(S["--ytd-macro-markers-list-item-title-color"]=
_.gh(this.get("primaryTitleColor",Q)),S["--ytd-macro-markers-list-item-secondary-color"]=_.gh(this.get("secondaryTitleColor",Q)),S["--ytd-macro-markers-list-item-timestamp-background-color"]=_.gh(this.get("section1Color",Q)),this.customButtonProperties={customColors:{color:_.gh(this.get("primaryTitleColor",Q))}},this.useColorSampling=!0):(S["--ytd-macro-markers-list-item-background-color"]="initial",S["--ytd-macro-markers-list-item-title-color"]="initial",S["--ytd-macro-markers-list-item-secondary-color"]=
"initial",S["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.Or(this.hostElement,S)};
_.J.onEndpointMouseDown=function(S){this.startX=S.clientX};
_.J.onEndpointClick=function(S){var c=this,Q,f,U;return _.O(function(a){if(a.nextAddress==1){if(c.startX!==S.clientX)return S.preventDefault(),a.return();c.data&&c.ytRendererBehavior.logExplicitClick(c.data);if(!c.seekWithAnimationOnClick)return a.jumpTo(0);if(S.button!==0||S.shiftKey||S.altKey||S.metaKey||S.ctrlKey||_.RZ(_.t4(S),c.hostElement,["BUTTON".toString()]))return a.return();S.stopPropagation();S.preventDefault();return c.data?_.F(a,_.cK().getPlayerPromise(),3):a.return()}Q=a.yieldResult;
U=(f=_.Y(c.data.onTap,_.tG))==null?void 0:f.startTimeSeconds;U!==void 0&&Q.seekToTimeWithAnimation(U*1E3,_.Em(c.data.title));_.IN(a)})};
_.J.computeLayout=function(S){return S};
_.J.computeIsHighlighted=function(S){return!!S};
_.J.computeCarouselType=function(S){return S};
_.J.hideModernCarousel=function(S){return this.modern&&this.hideThumbnail(S)};
_.J.hideThumbnail=function(S){return this.enableProblemWalkthrough&&S!==null&&S==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.J.onRepeatButtonToggle=function(S){var c=this;S.detail.toggled&&_.cK().getPlayerPromise().then(function(Q){c.ytPlayerListenerBehavior.listenToPlayerEvents(Q,c.JSC$12891_playerEvents);c.listeningToPlayer=!0})};
_.J.onLoopRangeChange=function(S){var c=_.Ur(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(c){var Q=c.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",c.polymerController.data);if(Q){var f=Number(Q.endTimeMs);if(Number(Q.startTimeMs)!==(S==null?void 0:S.startTimeMs)||f!==(S==null?void 0:S.endTimeMs))c.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.J.removePlayerListeners=function(){var S=this;this.listeningToPlayer&&_.cK().getPlayerPromise().then(function(c){S.ytPlayerListenerBehavior.unlistenFromPlayerEvents(c,S.JSC$12891_playerEvents);S.listeningToPlayer=!1})};
_.J.onActiveUpdate=function(S){this.active=S.detail.active};
rV.prototype.onColorPaletteChange=rV.prototype.onColorPaletteChange;rV.prototype.onDataChanged=rV.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rV.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],rV.prototype,"ytPlayerListenerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],rV.prototype,"data",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],rV.prototype,"useCustomColors",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rV.prototype,"active",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],rV.prototype,"shouldShowButtons",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.P("design:type",String)],rV.prototype,"layout",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.P("design:type",Object)],rV.prototype,"isHighlighted",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rV.prototype,"useHighlightStyling",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rV.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rV.prototype,"enableProblemWalkthrough",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.P("design:type",String)],rV.prototype,"carouselType",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],rV.prototype,"useColorSampling",void 0);_.d([_.Z(),_.P("design:type",Boolean)],rV.prototype,"seekWithAnimationOnClick",void 0);_.d([_.Z(),_.P("design:type",Object)],rV.prototype,"customButtonProperties",void 0);
_.d([_.nU("#repeat-button"),_.P("design:type",HTMLElement)],rV.prototype,"repeatButton",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rV.prototype,"onDataChanged",null);_.d([_.B0("data.lightColorPalette","data.darkColorPalette"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rV.prototype,"onColorPaletteChange",null);_.d([_.e({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],rV);
_.k(rV,"ytd-macro-markers-list-item-renderer",function(){if(m4_!==void 0)return m4_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return m4_=S},{mode:1});var SBl;var cEd;var dV=function(){var S=_.W.apply(this,arguments)||this;S.modernTypography=_.u("web_modern_typography");return S};
_.C(dV,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dV.prototype,"modernTypography",void 0);_.d([_.Z(),_.P("design:type",Object)],dV.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],dV);
_.k(dV,"ytd-title-and-button-list-header-renderer",function(){if(cEd!==void 0)return cEd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return cEd=S},{mode:1});var Q4d;var fST=new _.Sg("BUTTON_RENDERER_WIZ_TOKEN"),UNh=new _.Sg("BUTTON_RENDERER_TOKEN");_.ve=_.y_(function(S){var c=_.fl().resolve(_.QS(fST));if(c)return _.B(c,Object.assign({},S));var Q=_.fl().resolve(UNh);return Q?_.B(Njz,null,function(){return _.B(RT,null,function(){var f,U,a,X,z,x,I,n,b,N,l,H;return void Q(S.data(),{onButtonClickCallback:S.onButtonClickCallback,shouldShowIcons:(f=S.shouldShowIcons)==null?void 0:f.call(S),icon:(U=S.icon)==null?void 0:U.call(S),processAllEndpoints:(a=S.processAllEndpoints)==null?void 0:a.call(S),preventDefault:(X=S.preventDefault)==null?void 0:X.call(S),
stopPropagation:(z=S.stopPropagation)==null?void 0:z.call(S),disableButtonRendererClickHandling:(x=S.disableButtonRendererClickHandling)==null?void 0:x.call(S),className:(I=S.className)==null?void 0:I.call(S),buttonOverrides:(n=S.buttonOverrides)==null?void 0:n.call(S),forceModernIconButton:(b=S.forceModernIconButton)==null?void 0:b.call(S),isSubscribe:(N=S.isSubscribe)==null?void 0:N.call(S),alignByText:(l=S.alignByText)==null?void 0:l.call(S),forceDisabled:(H=S.forceDisabled)==null?void 0:H.call(S)})})}):
_.B(_.ak,null)},"ba");
_.ve.idomCompat=!0;var JEJ=_.y_(function(S){var c=S.data,Q=_.tq(S.useSquareAspectRatio,!1);return _.B("dismissed-mini-game-card-view-model",null,_.B(_.K,{cond:function(){var f,U;return(f=c().responseText)==null?void 0:(U=f.runs)==null?void 0:U.length},
then:function(){var f={};return _.B("div",{class:_.n4("yt-mini-game-card-view-model__dismissed-card",(f["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!Q()},f["yt-mini-game-card-view-model--dismissed-square-card"]=Q,f))},_.B("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.B(_.K,{cond:function(){return c().responseText.runs[0].text},
then:function(U){return _.B("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:U},U)}}),_.B(_.h8,{data:function(){return c().buttons}},{buttonRenderer:_.ve,
buttonViewModel:_.Ze})))}}))},"ca");var xNi=_.y_(function(S){S=_.V_(S,{data:{},className:void 0,useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var c=S.data,Q=S.useFullWidth,f=S.isDesktopWeb,U=S.addSearchResultTopMargin,a=function(){return c().layout},X=function(){return c().title},z=function(){return c().metadataText?c().metadataText:c().genre},x=function(){return c().channelName},I=function(){return c().image},n=function(){return c().colorPalette},b=function(){return c().actionButton},N=function(){return c().overflowButton},
l=function(){return c().avatar},H=function(){var r={};
r=_.n4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(r["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return f()},r));
return _.B("div",{class:r},_.B(aSs,{imageData:I,colorPalette:n}),_.B(AEH,{onTap:function(){return c().onTap},
imageData:I,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.B(_.K,{cond:function(){return!f()},
then:function(){return _.B(_.ak,null,_.B(Xzh,{layout:a,colorPalette:n,isDesktopWeb:f,overflowButton:N,avatar:l,onTap:function(){return c().onTap},
genre:z,title:X,channelName:x,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.B(Pe,{actionButton:b}))}}))},q=function(){var r={};
r=_.n4((r["yt-mini-game-card-view-model--search-result-desktop"]=function(){return f()},r["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!f()},r["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return U()},r));
return _.B("div",{class:r},H(),_.B(OCs,{description:function(){return c().description},
isDesktopWeb:f,title:X,genre:z,onTap:function(){return c().onTap},
actionButton:b,overflowButton:N,avatar:l,channelName:x}))},w=function(){var r=function(){var v;
return(v=c().entityRedesignExperiments)==null?void 0:v.changePlayablesLayoutWithCta},E={};
E=_.n4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(E["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return r()},E["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return f()},E["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return f()&&c().width===135},E["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return f()},E["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!r()&&f()&&c().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},E["yt-mini-game-card-view-model--big-metadata-font"]=function(){return c().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},E["yt-mini-game-card-view-model--use-full-width"]=function(){return Q()},E["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!b()},E));
return _.B("div",{class:E},_.B(_.K,{cond:function(){return r()},
then:function(){return _.B(_.ak,null,_.B(zyT,{entityRedesignExperiments:function(){return c().entityRedesignExperiments},
colorPalette:n,isDesktopWeb:f,onTap:function(){return c().onTap},
accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
actionButton:b,imageData:I}),_.B(Xzh,{layout:a,colorPalette:n,isDesktopWeb:f,overflowButton:N,avatar:l,onTap:function(){return c().onTap},
genre:z,title:X,channelName:x,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.B(_.K,{cond:function(){return!!r()===!1&&b()},
then:function(){return _.B(Pe,{actionButton:b})}}))},
else:function(){return _.B(_.ak,null,_.B(aSs,{imageData:I,colorPalette:n}),_.B(AEH,{onTap:function(){return c().onTap},
imageData:I,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.B(Xzh,{layout:a,colorPalette:n,isDesktopWeb:f,overflowButton:N,avatar:l,onTap:function(){return c().onTap},
genre:z,title:X,channelName:x,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}),_.B(Pe,{actionButton:b}))}}))},g=function(){var r={};
r=_.n4("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(r["yt-mini-game-card-view-model--square-card-desktop"]=function(){return f()},r["yt-mini-game-card-view-model--use-full-width"]=function(){return Q()},r));
return _.B("div",{class:r},_.B(AEH,{onTap:function(){return c().onTap},
imageData:I,accessibilityText:function(){return c().accessibilityText},
overlayBadgeText:function(){return c().overlayBadgeText},
iconName:function(){return c().iconName},
unplayableInlinePlaybackIconName:function(){return c().unplayableInlinePlaybackIconName},
isDesktopWeb:f}),_.B(Xzh,{layout:a,colorPalette:n,isDesktopWeb:f,overflowButton:N,avatar:l,onTap:function(){return c().onTap},
genre:z,title:X,channelName:x,entityRedesignExperiments:function(){return c().entityRedesignExperiments}}))};
return _.B("mini-game-card-view-model",{class:S.className},_.B(_.DJ,null,_.B(_.YC,{when:function(){return a()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return w()}),_.B(_.YC,{when:function(){return a()==="MINI_APP_LAYOUT_SQUARE"}},function(){return g()}),_.B(_.YC,{when:function(){return a()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return q()})))},"da");
xNi.idomCompat=!0;var Pe=_.y_(function(S){var c=_.tq(S.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.B(_.h8,{data:S.actionButton},{buttonViewModel:function(Q){return _.B("div",{class:c},_.B(_.Ze,{data:Q.data}))}})},"ea"),AEH=_.y_(function(S){var c=S.onTap;
var Q=S.imageData;var f=S.accessibilityText;var U=S.overlayBadgeText;var a=S.iconName;var X=S.unplayableInlinePlaybackIconName;S=S.isDesktopWeb;return _.B(_.xJ,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:c},_.B(_.RW,{data:Q,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(f==null?void 0:f())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.B(F3J,{overlayBadgeText:U,iconName:a,unplayableInlinePlaybackIconName:X,isDesktopWeb:S}))},"fa"),F3J=_.y_(function(S){var c=S.overlayBadgeText;
var Q=S.iconName;var f=S.unplayableInlinePlaybackIconName;var U=S.isDesktopWeb;return _.B("div",{class:"yt-mini-game-card-view-model__badge-container"},_.B(_.K,{cond:Q,then:function(a){return _.B("div",{class:"yt-mini-game-card-view-model__badge"},_.B("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.B(_.C4,{icon:a,className:"yt-mini-game-card-view-model__icon"}),_.B("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},c)))}}),_.B(_.K,{cond:function(){return!Q()&&
c()},
then:function(){return _.B("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},c)}}),_.B(_.K,{cond:function(){return f()&&U()},
then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.B(_.C4,{icon:f,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"ga"),aSs=_.y_(function(S){var c=S.colorPalette;
var Q=S.imageData;var f=function(){return c().vibrantColorPalette?c().vibrantColorPalette.section2Color:c().sectionTwoColor};
return _.B(_.ak,null,_.B("div",{class:"yt-mini-game-card-view-model__background-base",style:_.Yd({"background-color":function(){return em(f(),"1")}})}),_.B("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.Yd({"background-image":function(){return"url("+Q().sources[0].url+")"}})}),_.B("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.Yd({background:function(){return"linear-gradient(180deg,\n    "+em(f(),".8")+" 0%,\n    "+em(f(),".4")+" 25%,\n    "+em(c().vibrantColorPalette?c().vibrantColorPalette.section4Color:c().sectionFourColor,".8")+" 100%)"}})}))},"ha"),Xzh=_.y_(function(S){var c=S.layout;
var Q=S.colorPalette;var f=S.overflowButton;var U=S.avatar;var a=S.onTap;var X=S.title;var z=S.channelName;var x=S.entityRedesignExperiments;var I=S.genre;var n=function(){var N;return c()!=="MINI_APP_LAYOUT_SQUARE"&&((N=Q())==null?0:N.textPrimaryColor)?"color: "+em(Q().textPrimaryColor,".7"):""},b=function(){var N;
return x==null?void 0:(N=x())==null?void 0:N.changePlayablesLayoutWithCta};
return _.B("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.B(_.K,{cond:U,then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__avatar"},_.B(_.h8,{data:U},{avatarViewModel:_.p3}))}}),_.B(_.xJ,{command:a,
className:"yt-mini-game-card-view-model__metadata-details"},_.B("h3",{class:"yt-mini-game-card-view-model__title",title:X},X),_.B(_.K,{cond:U,then:function(){return _.B("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.B("span",{class:"yt-mini-game-card-view-model__genre",title:z,style:n},z),_.B("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:n},I))},
else:function(){return _.B(_.K,{cond:b,then:function(){return _.B("span",{class:"yt-mini-game-card-view-model__genre",title:I},I)},
else:function(){return _.B("span",{class:"yt-mini-game-card-view-model__genre",title:I,style:n},I)}})}})),_.B("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.B(_.h8,{data:f},{buttonViewModel:function(N){var l=N.data;
return _.B(_.Ze,{data:function(){return Object.assign({},l(),{customFontColor:b()?void 0:l().customFontColor})}})}})))},"ia"),zyT=_.y_(function(S){var c=S.entityRedesignExperiments;
var Q=S.colorPalette;var f=S.isDesktopWeb;var U=S.onTap;var a=S.accessibilityText;var X=S.overlayBadgeText;var z=S.iconName;var x=S.unplayableInlinePlaybackIconName;var I=S.actionButton;S=S.imageData;var n=function(){var b;return c==null?void 0:(b=c())==null?void 0:b.changePlayablesLayoutWithCta};
return _.B("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.B(aSs,{imageData:S,colorPalette:Q}),_.B(AEH,{onTap:U,imageData:S,accessibilityText:a,overlayBadgeText:X,iconName:z,unplayableInlinePlaybackIconName:x,isDesktopWeb:f}),_.B(_.K,{cond:function(){return(n==null?void 0:n())&&(I==null?void 0:I())},
then:function(){return _.B(Pe,{actionButton:I})}}))},"ja"),OCs=_.y_(function(S){var c=S.description;
var Q=S.isDesktopWeb;var f=S.title;var U=S.genre;var a=S.onTap;var X=S.actionButton;var z=S.overflowButton;var x=S.avatar;S=S.channelName;var I={};I=_.n4("yt-mini-game-card-view-model--search-result-metadata-wrapper",(I["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=Q,I["yt-mini-game-card-view-model--show-unplayable-on-hover"]=Q,I["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!Q()},I));
var n={};n=_.n4("yt-mini-game-card-view-model__search-result-info-row",(n["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!Q()},n));
return _.B("div",{class:I},_.B("div",{class:n},_.B(_.xJ,{command:a,className:"yt-mini-game-card-view-model__metadata-details"},_.B("h3",{class:"yt-mini-game-card-view-model__title",title:f},f),_.B("span",{class:"yt-mini-game-card-view-model__genre",title:U},U)),_.B(Pe,{actionButton:X,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.B("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.B(_.h8,{data:z},{buttonViewModel:_.Ze}))),_.B("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.B("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.B("div",{class:"yt-mini-game-card-view-model__avatar"},_.B(_.h8,{data:x},{avatarViewModel:function(b){var N=b.data;return _.B(_.p3,{data:function(){return Object.assign({},N(),{avatarImageSize:Q()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.B(_.xJ,{command:a,
className:"yt-mini-game-card-view-model__description"},_.B("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},S)),_.B(_.xJ,{command:a,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.B("div",null)))),_.B(_.K,{cond:Q,then:function(){return _.B(_.xJ,{command:a,className:"yt-mini-game-card-view-model__description"},c)}}))},"ka");_.f4(xNi,"mini-game-card-view-model",{props:{data:_.y$,className:_.y$,useFullWidth:_.y$,isDesktopWeb:_.y$,addSearchResultTopMargin:_.y$}});_.f4(JEJ,"dismissed-mini-game-card-view-model",{props:{data:_.y$,useSquareAspectRatio:_.y$}});var L3=function(){var S=_.W.apply(this,arguments)||this;S.isSearch=!1;S.isRichGrid=!1;return S};
_.C(L3,_.W);_.J=L3.prototype;_.J.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.J.dismissibleItemOnYtServiceRequestSent=function(S,c){c.actions&&this.dismissibleItemProcessActions(S,c.actions)};
_.J.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.J.dataChanged=function(){this.dismissibleItemReset()};
_.J.dismissibleItemProcessActions=function(S,c){for(var Q=0;Q<c.length;Q++){var f=c[Q];_.Y(f,_.Yc)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.Y(f,_.Yc)),S.stopPropagation())}};
_.J.dismissibleItemHandleReplaceEnclosingAction=function(S){this.dismissedRenderer=S.item;this.isDismissed=!0};
_.Rh.Object.defineProperties(L3.prototype,{useSquareAspectRatio:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layout)==="MINI_APP_LAYOUT_SQUARE"}},
showCard:{configurable:!0,enumerable:!0,get:function(){var S;return!!this.data&&!((S=this.dismissedRenderer)==null?0:S.notificationMultiActionRenderer)}},
showDismissed:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.dismissedRenderer)==null||!S.notificationMultiActionRenderer)}}});
L3.prototype.dataChanged=L3.prototype.dataChanged;L3.prototype.dismissibleItemOnRequestSent=L3.prototype.dismissibleItemOnRequestSent;L3.prototype.dismissibleItemOnYtServiceRequestSent=L3.prototype.dismissibleItemOnYtServiceRequestSent;_.d([_.Z(),_.P("design:type",Object)],L3.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],L3.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],L3.prototype,"isDismissed",void 0);
_.d([_.Z(),_.P("design:type",Object)],L3.prototype,"dismissedRenderer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],L3.prototype,"isRichGrid",void 0);_.d([_.M("data.layout"),_.P("design:type",Object),_.P("design:paramtypes",[])],L3.prototype,"useSquareAspectRatio",null);_.d([_.M("data","dismissedRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],L3.prototype,"showCard",null);
_.d([_.M("data","dismissedRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],L3.prototype,"showDismissed",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],L3.prototype,"dismissibleItemOnYtServiceRequestSent",null);
_.d([_.FV("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],L3.prototype,"dismissibleItemOnRequestSent",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L3.prototype,"dataChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],L3);
_.k(L3,"ytd-mini-game-card-view-model",function(){if(Q4d!==void 0)return Q4d;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Q4d=S},{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var Bwp;var ISl;var Eu=function(){return _.yu.apply(this,arguments)||this};
_.C(Eu,_.yu);Eu.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Eu.prototype.getContinuationUrl=function(S){var c={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.V0(S,c)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Eu.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Eu.prototype,"data",void 0);_.d([_.wM({is:"yt-reload-continuation",noInjection:!0})],Eu);var n$s;var bCH;var t7=function(){var S=_.W.apply(this,arguments)||this;S.notificationData={};return S};
_.C(t7,_.W);_.J=t7.prototype;_.J.isMenuExpanded=function(S){return S&&S.length<=1?"undefined":"false"};
_.J.dataChanged_=function(){this.selected=void 0;var S=this.computeSelectedIndex_(this.data);S>=0&&(this.selected=S);S=this.data&&this.data.length>1;_.a1(this.hostElement,"has-items",S);_.Ur(this.hostElement).querySelector("#label").tabIndex=S?0:-1};
_.J.onDropdownOpen=function(){var S=_.wN();if(this.parentTrackingParams&&this.data){var c=_.Yz(this.parentTrackingParams);this.data.forEach(function(Q){S&&c&&Q.trackingParams&&(Q=_.Yz(Q.trackingParams),_.dS(S,c,Q),_.L8(S,[Q]))})}else this.parentTrackingParams||_.i5(new _.Yr("No parent tracking params passed in for yt-dropdown-menu."))};
_.J.hasNotification=function(S){var c;if(S.targetId&&((c=this.notificationData)==null?0:c.targetId)){var Q;return S.targetId===((Q=this.notificationData)==null?void 0:Q.targetId)}};
_.J.computeSelectedIndex_=function(S){if(S)for(var c=0,Q=S.length;c<Q;c++)if(S[c].selected)return c;return-1};
_.J.computeLabel_=function(S){return this.data&&S!=void 0?this.data[S].title:""};
_.J.computeShowIcon_=function(S,c){return!c&&!!S};
_.J.computeVerticalOffset_=function(S){return S?36:0};
_.J.computeEndpoint_=function(S){return S.endpoint||S.navigationEndpoint};
_.J.onLabelClick_=function(S){this.data&&this.data.length<=1?S.stopPropagation():this.menuExpanded="true"};
_.J.onIronActivate_=function(S){S=S.detail.item;var c=_.Ur(this.hostElement).querySelector("#repeat").itemForElement(S);if(c&&c.trackingParams){var Q=_.wN(),f=_.Yz(c.trackingParams);Q&&_.tz(Q,f)}if(c&&c.serviceEndpoint)_.u("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(c.serviceEndpoint):_.xt(this.hostElement,[c.serviceEndpoint]),_.Az(this.hostElement,"yt-playlist-reloading");else a:{if((c=S.querySelector("yt-supported-renderers"))&&
(c=c.rendererElement)&&c.is=="yt-reload-continuation"){c.trigger();break a}(S=S.querySelector("yt-reload-continuation"))&&S.trigger()}};
_.J.onTap_=function(S){S.preventDefault()};
_.J.onItemTap_=function(S){this.ytEndpointBehavior.onEndpointTap_(S)};
_.J.onLinkFocus_=function(S){try{var c=S.target}catch(f){}if(c){var Q=c.querySelector("tp-yt-paper-item");Q&&_.e$(this,"focus",function(){Q.focus()})}};
_.J.onMenuClose_=function(){this.menuExpanded="false"};
_.J.isLabelIconActive_=function(S){return S==="true"};
_.J.computeHasSubtitle_=function(S){return!!S};
_.J.computeHrefForItem_=function(S){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(S))};
_.J.updateSelectedFromBinding=function(S){this.selected=S.detail.value};
_.Rh.Object.defineProperties(t7.prototype,{computedAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.useComputedAriaLabel&&this.selected!==void 0?this.ariaLabel+": "+this.data[this.selected].title:this.ariaLabel}}});
t7.prototype.onMenuClose_=t7.prototype.onMenuClose_;t7.prototype.onTap_=t7.prototype.onTap_;t7.prototype.onIronActivate_=t7.prototype.onIronActivate_;t7.prototype.onDropdownOpen=t7.prototype.onDropdownOpen;t7.prototype.dataChanged_=t7.prototype.dataChanged_;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],t7.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.Km.YtEndpointBehavior),_.P("design:type",Object)],t7.prototype,"ytEndpointBehavior",void 0);
_.d([_.Z(),_.P("design:type",Array)],t7.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],t7.prototype,"parentTrackingParams",void 0);_.d([_.Z(),_.P("design:type",Object)],t7.prototype,"selected",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],t7.prototype,"useLabel",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],t7.prototype,"useComputedAriaLabel",void 0);_.d([_.Z(),_.P("design:type",String)],t7.prototype,"icon",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],t7.prototype,"iconLabel",void 0);_.d([_.Z(),_.P("design:type",String)],t7.prototype,"ariaLabel",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],t7.prototype,"disabled",void 0);_.d([_.Z({computed:"isMenuExpanded(data)"}),_.P("design:type",String)],t7.prototype,"menuExpanded",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],t7.prototype,"closeOnActivate",void 0);
_.d([_.Z({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.P("design:type",Boolean)],t7.prototype,"modernButtons",void 0);_.d([_.Z(),_.P("design:type",Object)],t7.prototype,"notificationData",void 0);_.d([_.M("ariaLabel, selected"),_.Z(),_.P("design:type",String),_.P("design:paramtypes",[])],t7.prototype,"computedAriaLabel",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],t7.prototype,"dataChanged_",null);
_.d([_.FV("paper-dropdown-open"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],t7.prototype,"onDropdownOpen",null);_.d([_.FV("iron-activate"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],t7.prototype,"onIronActivate_",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],t7.prototype,"onTap_",null);
_.d([_.FV("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],t7.prototype,"onMenuClose_",null);_.d([_.wM({is:"yt-dropdown-menu",disableElementRegistration:!0})],t7);
_.k(t7,"yt-dropdown-menu",function(){if(bCH===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;n$s===void 0&&(n$s=document.createElement("template"));var f=n$s;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);bCH=S}S=bCH;return S},{mode:2});var VA=function(){var S=_.W.apply(this,arguments)||this;S.hasNotification=!1;return S};
_.C(VA,_.W);VA.prototype.computeId=function(S){return S};
VA.prototype.computeHorizontalAlign=function(S){return S?"right":"left"};
VA.prototype.computeAccessibilityLabel=function(S){var c,Q;return((c=S.accessibility)==null?void 0:(Q=c.accessibilityData)==null?void 0:Q.label)||null};
VA.prototype.notificationDataChanged=function(){var S;this.hasNotification=!!this.notificationData&&!((S=this.data)==null?0:S.icon)};
VA.prototype.notificationDataChanged=VA.prototype.notificationDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.dc.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],VA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VA.prototype,"data",void 0);_.d([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",String)],VA.prototype,"id",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],VA.prototype,"isRightAligned",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],VA.prototype,"disabled",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],VA.prototype,"closeOnActivate",void 0);_.d([_.Z(),_.P("design:type",Object)],VA.prototype,"notificationData",void 0);_.d([_.Z(),_.P("design:type",Object)],VA.prototype,"hasNotification",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],VA.prototype,"useComputedAriaLabel",void 0);_.d([_.B0("notificationData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VA.prototype,"notificationDataChanged",null);_.d([_.wM({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],VA);
_.k(VA,"yt-sort-filter-sub-menu-renderer",function(){if(ISl===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Bwp===void 0&&(Bwp=document.createElement("template"));var f=Bwp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);ISl=S}S=ISl;return S},{mode:2});_.Qu(dNo);
var Nwd=_.y_(function(S){var c=S.children;var Q=S.className;var f=S.style;var U=S.role;var a=S.ariaSelected;var X=S.ariaLabel;var z=S.ariaHidden;var x=S.ariaLabelledby;var I=S.ariaDescribedby;var n=S.command;var b=S.elementsCommand;var N=S.forceNewState;var l=S.tabIdentifier;var H=S.target;var q=S.tabIndex;var w=S.stopPropagation;S=_.uQ(function(){var g=_.gH({innertubeCommand:n==null?void 0:n(),elementsCommand:b==null?void 0:b(),forceNewState:N==null?void 0:N(),stopPropagation:(w==null?void 0:w())!==
!1});g||(g={});g["aria-hidden$"]=z==null?void 0:z();var r;g.tabindex$=(r=q==null?void 0:q())!=null?r:g.tabindex$;var E;g["force-new-state$"]=(E=N==null?void 0:N())!=null?E:g["force-new-state$"];var v;g.role$=(v=U==null?void 0:U())!=null?v:g.role$;var t;g["aria-hidden$"]=(t=z==null?void 0:z())!=null?t:g["aria-hidden$"];var V;g.target$=(V=H==null?void 0:H())!=null?V:g.target$;return g},void 0,"SU0Mnc");
return _.B(_.xJ,{aTagConfig:S,className:Q,style:f,ariaLabel:X,ariaLabelledby:x,ariaDescribedby:I,ariaSelected:a,tabIdentifier:l},c)},"la");var K3z=_.K4(v$o);_.Qu(v$o);_.f4(K3z,"place-data-view-model",{props:{data:_.y$}});var $Nd=new _.Sg("INLINE_PLAYBACK_HOOK_TOKEN");var u8J=function(S){this.setActiveSlideIndex=S;this.jobIds=[];this.isSlideshowPlaying=!1},YBH=function(S,c){S.isSlideshowPlaying||(S.isSlideshowPlaying=!0,j4_(S),lS$(S,c,0))},j4_=function(S){_.Xi(_.Mq,function(){S.setActiveSlideIndex(0)},1)},lS$=function(S,c,Q){S.jobIds.push(_.Xi(_.Mq,function(){var f=Q<c-1?Q+1:0;
S.setActiveSlideIndex(f);lS$(S,c,f)},1800))};var Cps=new _.Sg("IMAGE_ON_LOAD_HANDLER_TOKEN");var HCl=_.y_(function(S){return _.B("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.B(_.K,{cond:function(){var c;return(c=S.data())==null?void 0:c.thumbnail},
then:function(c){return _.B(_.RW,{data:c,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ma");_.DNT=_.y_(function(S){var c=S.data;var Q=S.lockupExperiments;S={};return _.B("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.B("div",{class:_.n4("ytThumbnailOverlayButtonViewModelButton",(S.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var f;return Q&&((f=Q())==null?void 0:f.useLegacySizedIconButton)},S))},_.B(_.h8,{data:function(){return c().overlayButton}},{buttonViewModel:function(f){return _.B(_.Ze,{data:f.data,
buttonOverrides:function(){var U;return Q&&((U=Q())==null?0:U.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"na");
_.DNT.idomCompat=!0;var pzh=_.y_(function(S){return _.B("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":_.$d(function(c){c.preventDefault();return!1})},_.B(_.h8,{data:function(){return S.data().buttons}},{toggleButtonViewModel:function(c){return _.B("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.B(_.qs,{data:c.data}))}}))},"oa");
pzh.idomCompat=!0;var hy$=_.y_(function(S){var c=function(){var Q;return((Q=_.Y(S.data().rendererContext,_.jT))==null?void 0:Q.label)||""};
return _.B("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.B(_.K,{cond:function(){return S.data().image},
then:function(){return _.B("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.B(_.RW,{data:function(){return S.data().image},
alt:c}))}}),_.B(_.K,{cond:function(){return S.data().text},
then:function(){return _.B("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return S.data().text})}}))},"pa");_.RP=_.y_(function(S){var c=[],Q=function(){var N,l;return MqR((N=S.width)==null?void 0:N.call(S),(l=S.height)==null?void 0:l.call(S))},f=_.fl().resolve(_.QS(Cps)),U=_.EH("yt-thumbnail-view-model",function(){c.push("elRef.value set");
var N;(N=S.playbackRef)==null||N.call(S,{thumbnailElRef:U,thumbnail:S.data().image,thumbnailOverlays:S.data().overlays,thumbnailSize:Q()})});
_.wC(function(){c.push("onInit");_.wX(function(){c.push("onCleanup")})});
var a=_.Gs(L3M),X=function(){var N,l;return(l=(N=S.aspectRatio)==null?void 0:N.call(S))!=null?l:0},z=function(){return(S.data().image?_.zAY(S.data().image):X())<=1&&X()===0},x=function(){return z()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},I=function(){U.value||_.i5(new _.Yr("Thumbnail elRef.value is null",c.join("\n")));
f&&U.value&&f(U.value)},n=function(){var N,l;
return((N=S.hovered)==null?void 0:N.call(S))&&Q()!=="large"&&((l=S.data().overlays)==null?void 0:l.some(function(H){return _.Y(H,jJ_)}))},b={};
return _.B("yt-thumbnail-view-model",{class:_.n4("yt-thumbnail-view-model",S.className,function(){return V3Y(X())},function(){var N,l;
a:{var H=Q(),q=(N=S.disableRounding)==null?void 0:N.call(S);N=(l=S.isClip)==null?void 0:l.call(S);if(!q&&!N)switch(H){case "large":l="yt-thumbnail-view-model--large";break a;case "small":l="yt-thumbnail-view-model--small";break a;default:l="yt-thumbnail-view-model--medium";break a}l=void 0}return l},(b["yt-thumbnail-view-model--cinematic"]=z,b)),
style:_.Yd({"background-color":function(){var N,l=z()?(N=S.data().backgroundColor)==null?void 0:N.lightTheme:void 0;return l?em(l,"1"):void 0}}),
el:U},_.B(_.K,{cond:z,then:function(){return _.B("div",{class:"yt-thumbnail-view-model__blurred-image"},_.B(_.RW,{data:function(){return S.data().image},
alt:"",contentMode:x,targetWidth:S.width,onload:I}))}}),_.B("div",{class:"yt-thumbnail-view-model__image"},_.B(_.RW,{data:function(){return S.data().image},
alt:"",contentMode:x,targetWidth:S.width,onload:I}),null),_.B(_.h8,{data:function(){return n()?void 0:S.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Gu_,thumbnailOverlayBadgeViewModel:function(N){return _.B(Wse,{data:N.data,thumbnailSize:Q,isClip:S.isClip})},
thumbnailBottomOverlayViewModel:function(N){return _.B(sup,{data:N.data,thumbnailSize:Q,isClip:S.isClip})},
thumbnailOverlayFullViewModel:hy$,thumbnailOverlayButtonViewModel:function(N){return _.B(_.DNT,{data:N.data,lockupExperiments:S.lockupExperiments})}}),_.B(_.h8,{data:function(){var N;
return((N=S.hovered)==null?0:N.call(S))?S.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(N){return _.B(Dr,{data:N.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:pzh}),_.B(_.h8,{data:function(){var N;return((N=S.hovered)==null?0:N.call(S))&&a()?S.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:HCl}),_.B(_.K,{cond:S.isClip,then:function(){return _.B("div",{class:"yt-pinking"},_.B("svg",{class:"yt-pinking__pinking-left"},_.B("defs",null,_.B("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.B("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.B("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.B("svg",{class:"yt-pinking__pinking-right"},_.B("defs",null,_.B("pattern",{id:"right-pattern",
width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.B("polygon",{class:"yt-pinking__pinking",points:"4,0 0,4 4,8"}))),_.B("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))}}))},"qa");
_.RP.idomCompat={callbacks:{playbackRef:!0}};var qB$=_.y_(function(S){var c=_.A(_.ny(-1,void 0,"IOLZ0b")),Q=c.next().value,f=c.next().value;_.wC(function(){var U=new u8J(f);YBH(U,S.data().thumbnails.length);_.wX(function(){if(U.isSlideshowPlaying){U.isSlideshowPlaying=!1;for(var a=U.jobIds,X=0,z=a.length;X<z;X++)_.Mq.cancelJob(a[X]);U.jobIds.length=0}})});
return _.B("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.B(_.h8,{data:function(){return S.data().thumbnails}},{thumbnailViewModel:function(U,a){return _.B("div",{class:function(){var X=!S.data().primaryThumbnail,z=a(),x=Q(),I=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
X&&z===0&&I.push("yt-collection-thumbnail-slideshow--first-slide");z<=x&&I.push("yt-collection-thumbnail-slideshow--show-slide");return I.join(" ")}},_.B(_.RP,{data:U.data,
disableRounding:S.disableRounding}))}}))},"ra");
qB$.idomCompat=!0;var RyZ=new _.Sg("DWELL_DETECTOR_REGISTRY_TOKEN");var wzd=_.y_(function(S){var c=o$x(S.triggeringElement),Q=function(){return!!S.data().primaryThumbnail};
return _.B("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.B(TwH,{stackEnabled:Q,thumbnailSize:function(){var f,U;return MqR((f=S.width)==null?void 0:f.call(S),(U=S.height)==null?void 0:U.call(S))},
doubleStack:S.doubleStack,stackColor:function(){return S.data().stackColor}},_.B("div",null,_.B(_.h8,{data:function(){return S.data().primaryThumbnail}},{thumbnailViewModel:function(f){var U={};
return _.B(_.RP,{data:f.data,width:S.width,height:S.height,aspectRatio:S.aspectRatio,disableRounding:S.disableRounding,className:_.n4((U["yt-collection-thumbnail-view-model--has-stacks"]=Q,U)),hovered:S.hovered,playbackRef:S.playbackRef})}}),_.B(_.K,{cond:function(){var f;
return c()&&((f=S.data().thumbnails)==null?void 0:f.length)},
then:function(){return _.B("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.B(qB$,{data:S.data,disableRounding:function(){return!Q()}}))}}))))},"sa");
wzd.idomCompat={callbacks:{playbackRef:!0}};
var TwH=_.y_(function(S){var c=S.children;var Q=S.stackEnabled;var f=S.thumbnailSize;var U=S.doubleStack;var a=S.stackColor;var X,z=(X=_.fl().resolve(_.QS(_.Lv)))==null?void 0:X();return _.B(_.K,{cond:Q,then:function(){return _.B(Xph,{data:function(){var x,I;return{experimentEnabled:!0,thumbnailSize:f(),doubleStack:U==null?void 0:U(),color:z?a==null?void 0:(x=a())==null?void 0:x.darkTheme:a==null?void 0:(I=a())==null?void 0:I.lightTheme,enableResponsiveMode:!1}}},c)},
else:function(){return c}})},"ta");var s4i=new _.Sg("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var oP;_.yA={calledOnce:!0,state:"visible"};oP={calledOnce:!0,state:"hidden"};_.mh=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;var f=S.className;var U=S.delayedClassName;S=S.animationEntityKey;var a=_.EH("ad-button-view-model"),X=_.tq(S,""),z=_.b9(pFZ,X),x=function(){var V,AZ;return(AZ=(V=z())==null?void 0:V.value)!=null?AZ:!1},I=function(){_.Er(_.Ns("booleanEntity",X(),{key:X(),
value:!0}));g=void 0};
S=_.A(_.l8(x));var n=S.next().value,b=S.next().value;S=_.A(_.l8(x));var N=S.next().value,l=S.next().value;S=_.A(_.l8(function(){var V;return x()?(V=c().styleTransitionConfig)==null?void 0:V.destinationStyle:void 0}));
var H=S.next().value,q=S.next().value,w=function(){var V=Object.assign({},c(),H()&&{style:H()}),AZ,IH,Nr=V.label,Hc=(AZ=V.interaction)==null?void 0:(IH=AZ.accessibility)==null?void 0:IH.label;AZ=V.iconImage?V.label&&V.label.content?V.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Nr,accessibilityLabel:Hc,style:QXp(V.style),type:fUz(V.style),state:"active",size:cro(V.size),iconPosition:AZ,disabled:!1,aTagConfig:S5Y(V,Q)}},g;
_.cn(a,{visibilityCallback:function(V){var AZ,IH=(AZ=c().interaction)==null?void 0:AZ.onFirstVisible;V&&IH&&_.kz(IH)},
showOption:_.yA});var r=function(){return H3(w(),!!c().iconImage)};
f=_.n4(function(){return"ytwAdButtonViewModelHost"},function(){return c().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var V=!!c().delayedAppearanceConfig,AZ=n();
return V?AZ?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var V=!!c().delayedAppearanceConfig,AZ=N();
return V?AZ?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!c().delayedAppearanceConfig||n()?U==null?void 0:U():""},f!=null?f:"");
var E=function(){var V,AZ=(V=c().delayedAppearanceConfig)==null?void 0:V.delayedInvisibleSeconds;AZ&&(g=_.u9(_.Mq,function(){b(!0);v()},AZ*1E3))},v=function(){var V,AZ=(V=c().delayedAppearanceConfig)==null?void 0:V.delayedVisibleSeconds;
AZ&&(g=_.u9(_.Mq,function(){l(!0);t()},AZ*1E3))},t=function(){var V,AZ=(V=c().styleTransitionConfig)==null?void 0:V.styleTransitionSeconds,IH,Nr=(IH=c().styleTransitionConfig)==null?void 0:IH.destinationStyle;
AZ&&Nr?g=_.u9(_.Mq,function(){q(Nr);I()},AZ*1E3):I()};
_.wC(function(){var V;((V=c().delayedAppearanceConfig)==null?0:V.transitionDurationSeconds)&&a.value.style.setProperty("transition-duration",c().delayedAppearanceConfig.transitionDurationSeconds+"s");E()});
_.wX(function(){g&&_.Mq.cancelJob(g)});
return _.B("ad-button-view-model",{class:f,el:a},_.B(_.K,{cond:w,then:function(){return _.B(cZ,{data:w,icon:function(){return _.B(_.K,{cond:function(){return c().iconImage},
then:function(V){return _.B(_.RW,{data:V,alt:"",targetWidth:r,targetHeight:r,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"ua");var M3u=_.y_(function(S){var c=S.data;S=_.EH("ad-button-group-view-model");_.cn(S,{visibilityCallback:function(f){var U,a=(U=c().interaction)==null?void 0:U.onFirstVisible;f&&a&&_.kz(a)},
showOption:_.yA});var Q={};return _.B("ad-button-group-view-model",{class:_.n4("ytwAdButtonGroupViewModelHost",(Q.ytwAdButtonGroupViewModelHostCompactWidth=function(){return c().style==="AD_BUTTON_GROUP_STYLE_COMPACT_WIDTH"},Q)),
el:S},_.B("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.B(_.h8,{data:function(){return c().secondaryAdButton}},{adButtonViewModel:function(f){return _.B(_.mh,{data:f.data})}})),_.B("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.B(_.h8,{data:function(){return c().primaryAdButton}},{adButtonViewModel:function(f){return _.B(_.mh,{data:f.data})}})))},"va");var iCd=_.y_(function(S){var c=function(){var Q;return((Q=S.data())==null?void 0:Q.answers)||[]};
return _.B("yt-survey-icons",{class:"ytSurveyIconsHost"},_.B("div",{class:"ytSurveyIconsHeader"},_.B("div",{class:"ytSurveyIconsTitle"},function(){var Q;return(Q=S.data())==null?void 0:Q.text}),_.B("div",null,_.B(cZ,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var Q;(Q=S.onDismiss)==null||Q.call(S)}}},
iconName:"DISMISSAL"}))),_.B("div",null,_.B("div",{class:"ytSurveyIconsAnswers"},_.B(_.lW,{each:function(){return c()},
keyBy:"INDEX"},function(Q,f){return _.B("div",null,_.B(cZ,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var U;(U=S.onSelect)==null||U.call(S,Q(),f)}}},
icon:function(){return _.B(_.C4,{icon:function(){var U,a;return(U=Q())==null?void 0:(a=U.icon)==null?void 0:a.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.B("div",{class:"ytSurveyIconsAnswersText"},_.B("div",null,function(){return c().length?c()[0].text:""}),_.B("div",null,function(){return c().length?c()[c().length-1].text:""}))))},"wa");var ZCd=_.y_(function(S){var c=_.A(_.ny(!1,void 0,"s8HkOb")),Q=c.next().value,f=c.next().value,U=_.b9(MZZ,function(){var z;return(z=S.data().keys)==null?void 0:z.surveyEntityKey}),a=_.b9(ipp,function(){var z;
return(z=S.data().keys)==null?void 0:z.surveyStateEntityKey});
_.L1("ytd-slimline-survey-show-action",function(){f(!1)});
var X=function(){var z,x;var I=(z=a())==null?void 0:(x=z.questionStack)==null?void 0:x[0];if(I!==void 0){var n,b;return(n=U())==null?void 0:(b=n.questions)==null?void 0:b[I]}};
c={};return _.B("yt-slimline-survey-view-model",{class:_.n4("ytSlimlineSurveyViewModelHost",(c.ytSlimlineSurveyViewModelCollapsed=function(){return Q()},c))},_.B("div",{class:"ytSlimlineSurveyViewModelContainer"},_.B(_.K,{cond:function(){var z;
return((z=X())==null?void 0:z.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.B(iCd,{data:function(){return X()},
onSelect:function(z,x){var I,n;return _.O(function(b){f(!0);if(n=(I=S.data())==null?void 0:I.onSelectRating)_.kz(n),_.Er(Pgu(x));_.IN(b)})},
onDismiss:function(){f(!0)}})}})))},"xa");var GGu=_.y_(function(S){return _.B("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.B(_.h8,{data:function(){var c;return(c=S.data())==null?void 0:c.attachments}},{flexibleActionsViewModel:function(c){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(lHh,{data:c.data,
layout:function(){var Q;return((Q=S.lockupStyle())==null?void 0:Q.arrangement)===1?0:1},
justifyContentOverride:function(){var Q;return((Q=S.lockupStyle())==null?void 0:Q.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(c){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(ZCd,{data:c.data}))},
expandableMetadataViewModel:function(c){c=c.data;var Q;return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},(Q=_.fl().resolve(_.QS(s4i)))==null?void 0:Q({data:c}))},
adButtonGroupViewModel:function(c){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(M3u,{data:c.data}))},
adButtonViewModel:function(c){return _.B("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.B(_.mh,{data:c.data}))}}))},"ya");var OqM=_.a6("rich_grid_min_item_width",310),Arz=_.a6("rich_grid_max_item_width",500);var jXH=_.y_(function(S){var c=S.data;return _.B("br-nz-badge-shape",{class:_.n4(function(){return NBo(c().brNzRatingBadgeType)}),
role:function(){return c().accessibilityText?"img":void 0},
"aria-label":function(){return c().accessibilityText}},function(){var Q;
return(Q=c())==null?void 0:Q.text})},"za");_.Qu(lUp);var W3_,g$e;W3_=_.y_(function(S){var c=function(){var Q=S.data(),f,U;return Q?uCp(Q,!((f=S.workaroundShortsIsThumbnailBadge)==null||!f.call(S)),(U=S.modern)==null?void 0:U.call(S)):void 0};
return _.B("yt-badge-view-model",{class:_.n4("yt-badge-view-model-wiz",S.class)},_.B(_.DJ,null,_.B(_.YC,{when:function(){var Q;return!((Q=c())==null||!Q.brNzRatingBadgeType)}},function(){return _.B(jXH,{data:function(){return c()}})}),_.B(_.YC,{when:function(){return!!c()&&!c().brNzRatingBadgeType}},function(){return _.B(_.y8,{data:function(){return c()}})})))},"Aa");
g$e=_.u("web_enable_sink_yt_badge_view_model")?W3_:lUp;_.S7=_.u("web_enable_sink_yt_badge_view_model")?W3_:_.K4(lUp);W3_.idomCompat=!0;var CUY,Y5c;CUY=16/9;Y5c=2/3;_.cM=_.y_(function(S){var c=S.data;var Q=S.className;var f=S.imageSizeConfig;var U=S.notifyOnLoaded;S=_.EH("yt-content-preview-image-view-model");var a=function(){return c().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},X=function(){var l;
return _.PK((l=c())==null?void 0:l.rendererContext)},z={};
z=(z["yt-content-preview-image-view-model-wiz"]=!0,z["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return a()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},z["yt-content-preview-image-view-model-wiz--tappable"]=function(){return X()},z);
var x=function(){var l,H;return(H=(l=_.Y(c().rendererContext,_.jT))==null?void 0:l.label)!=null?H:""},I=function(){return DMp(c())},n=function(){var l=Hqo(a(),c().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",f==null?void 0:f(),pOr(I()),c().layoutWidth,c().layoutHeight),H=Object.assign({},l);
l.width&&(H.width=Math.round(l.width));l.height&&(H.height=Math.round(l.height));l.maxWidth&&(H.maxWidth=Math.round(l.maxWidth));l.maxHeight&&(H.maxHeight=Math.round(l.maxHeight));return H},b=_.uQ(function(){return n().height},void 0,"QOtei"),N=_.uQ(function(){return n().width},void 0,"rKpuNc");
_.LS(S,function(){var l;return(l=c())==null?void 0:l.rendererContext});
return _.B("yt-content-preview-image-view-model",{el:S,role:function(){return X()?"link":void 0},
tabindex:function(){return X()?0:void 0},
class:_.n4(Q,z,function(){var l=a();var H=f==null?void 0:f();l=l==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||l==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||l==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||l==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(H==null?void 0:H.size)!=null&&H.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(H==null?void 0:H.size)!=null&&H.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 l}),
style:function(){var l=n(),H=[];l.width&&H.push("width: "+l.width+"px");l.height&&H.push("height: "+l.height+"px");l.maxWidth&&H.push("max-width: "+l.maxWidth+"px");l.maxHeight&&H.push("max-height: "+l.maxHeight+"px");l.fullWidth&&H.push("width: 100%");return H.join(";")}},_.B(_.K,{cond:I,
then:function(l){return _.B(_.RW,{data:l,alt:x,"data-disabled$":function(){return!x()},
notifyOnLoaded:U,targetWidth:N,targetHeight:b,preserveWidth:function(){return!!N()},
preserveHeight:function(){return!!b()}})}}),_.B(_.h8,{data:function(){var l;
return(l=c())==null?void 0:l.overlays}},{thumbnailHoverOverlayViewModel:Dr,
thumbnailOverlayButtonViewModel:_.DNT}))},"Ba");
_.cM.idomCompat=!0;var kGh=_.y_(function(S){var c=S.data;var Q=S.className;var f=S.useSmallLayout;var U=S.useMediumText;S=_.EH("yt-attribution-view-model");var a={};U=(a["yt-attribution-view-model-wiz"]=!0,a["yt-attribution-view-model-wiz--medium-text"]=U,a);_.LS(S,function(){var X;return(X=c())==null?void 0:X.rendererContext});
return _.B("yt-attribution-view-model",{el:S,class:_.n4(Q,U)},_.B(_.K,{cond:function(){return _.PK(c().rendererContext)},
then:function(){return _.B("button",{class:"yt-attribution-view-model-wiz--tappable"},_.B(eyd,{data:c,useSmallLayout:f}))},
else:function(){return _.B(eyd,{data:c,useSmallLayout:f})}}))},"Ca"),eyd=_.y_(function(S){var c=S.data;
var Q=S.useSmallLayout;var f=function(){return{size:(Q==null?0:Q())?16:24}};
return _.B(_.ak,null,_.B(_.h8,{data:function(){return c().contentPreviewImage}},{contentPreviewImageViewModel:function(U){return _.B(_.cM,{data:U.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:f})}}),_.B(_.h8,{data:function(){return c().badge}},{badgeViewModel:function(U){return _.B(_.S7,{data:U.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.B(_.K,{cond:function(){return c().text},
then:function(){return _.B(_.mw,{text:function(){return c().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.B(_.K,{cond:function(){return c().suffix},
then:function(){return _.B(_.mw,{text:function(){return c().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"Da");
kGh.idomCompat=!0;var iqz=_.l9({avatarStackViewModel:_.qn,badgeViewModel:g$e});_.Qu(WNx);var rEe,dNh,v$h,PpT,L3u,E$s;rEe=_.y_(function(S){var c=S.delimiter;var Q=S.max;var f=S.index;var U=S.isStandalone;return _.B(_.K,{cond:function(){return Q()-1>f()},
then:function(){var a={};return _.B("span",{class:_.n4("yt-content-metadata-view-model-wiz__delimiter",(a["yt-content-metadata-view-model-wiz__delimiter--standalone"]=U,a)),"aria-hidden":!0},c)}})},"Ea");
dNh=_.y_(function(S){var c=S.metadataPart;var Q=S.maxLines;return _.B(_.mw,{text:function(){return c().text},
linkInheritColor:!0,className:function(){return g7M(Q())},
userInput:!0})},"Fa");
v$h=_.y_(function(S){var c=S.metadataPart;var Q=S.maxLines;return _.B(_.K,{cond:function(){return c().tooltip},
then:function(f){return _.B("span",{title:f,role:"tooltip"},_.B(dNh,{metadataPart:c,maxLines:Q}))},
else:function(){return _.B(dNh,{metadataPart:c,maxLines:Q})}})},"Ga");
PpT=_.y_(function(S){var c=S.metadataPart;var Q=S.isOverlay;var f=S.useMediumText;var U=S.hideAvatar;var a=function(){return c().maxLines!==void 0?c().maxLines:1};
return _.B(_.ak,null,_.B(_.h8,{data:function(){return c().avatarStack}},{avatarStackViewModel:function(X){return _.B(_.qn,{data:X.data,
isOverlay:Q,useMediumText:f,hideAvatar:U})},
badgeViewModel:_.S7}),_.B(_.K,{cond:function(){return c().text},
then:function(){return _.B(v$h,{metadataPart:c,maxLines:a})}}))},"Ha");
L3u=_.y_(function(S){var c=S.metadataRow;var Q=S.isInline;var f=S.delimiter;var U=S.isOverlay;var a=S.useMediumText;var X=S.extensions;var z=function(){var I;return q5Z(X==null?void 0:(I=X())==null?void 0:I.lockupMetadata,c())},x=function(){return c().metadataParts||[]};
S={};return _.B("div",{class:_.n4("yt-content-metadata-view-model-wiz__metadata-row",(S["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=Q,S["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var I;return TBM(X==null?void 0:(I=X())==null?void 0:I.lockupMetadata,c())},S["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var I;
return!!(X==null?0:(I=X())==null?0:I.lockupMetadata)&&c().badges&&!c().metadataParts},S))},_.B(_.h8,{data:function(){return c().badges}},{badgeViewModel:function(I){return _.B("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.B(_.S7,{data:I.data}))}}),_.B(_.lW,{each:x},function(I,n){return _.B(_.ak,null,_.B(PpT,{metadataPart:I,
isOverlay:U,useMediumText:a,hideAvatar:z}),_.B(rEe,{delimiter:f,max:function(){return x().length},
index:n,isStandalone:!1}))}),_.B(_.K,{cond:function(){return c().isSpacerRow&&!Q()},
then:function(){return _.B("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ia");
E$s=_.y_(function(S){var c=_.V_(S,{layout:0,isOverlay:!1});S=c.className;var Q=c.data,f=c.layout,U=c.isOverlay,a=c.useMediumText,X=c.extensions;c=_.EH("yt-content-metadata-view-model");var z=function(){return f()===0};
_.LS(c,function(){return Q().rendererContext});
var x=function(){return Q().metadataRows||[]},I={};
return _.B("yt-content-metadata-view-model",{class:_.n4(S,"yt-content-metadata-view-model-wiz",(I["yt-content-metadata-view-model-wiz--inline"]=z,I["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.PK(Q().rendererContext)},I["yt-content-metadata-view-model-wiz--medium-text"]=a,I)),
el:c},_.B(_.lW,{each:x},function(n,b){return _.B(_.ak,null,_.B(L3u,{metadataRow:n,isInline:z,delimiter:function(){return Q().delimiter},
isOverlay:U,useMediumText:a,extensions:X}),_.B(_.K,{cond:function(){return z()&&!n.isSpacerRow},
then:function(){return _.B(rEe,{delimiter:function(){return Q().delimiter},
max:function(){return x().length},
index:b,isStandalone:!0})}}))}))},"Ja");
_.t3p=_.u("web_enable_sink_yt_content_metadata_view_model")?E$s:_.K4(WNx);E$s.idomCompat=!0;var V3d=_.y_(function(S){var c={};return _.B("yt-lockup-metadata-view-model",{class:_.n4("yt-lockup-metadata-view-model-wiz",function(){a:{var Q=S.lockupStyle();if(Q==null?0:Q.isOverlay)Q="yt-lockup-metadata-view-model-wiz--overlay";else switch(Q==null?void 0:Q.arrangement){case 1:Q="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:Q="yt-lockup-metadata-view-model-wiz--vertical"}}return Q},function(){a:{var Q=S.lockupStyle();
if(Q==null?0:Q.isTiny)Q="yt-lockup-metadata-view-model-wiz--tiny";else switch(Q==null?void 0:Q.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":Q="yt-lockup-metadata-view-model-wiz--compact";break a;default:Q="yt-lockup-metadata-view-model-wiz--standard"}}return Q},(c["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var Q;
return(Q=S.lockupStyle())==null?void 0:Q.isOverlay},c["yt-lockup-metadata-view-model-wiz--card"]=function(){var Q;
return(Q=S.lockupStyle())==null?void 0:Q.isCard},c["yt-lockup-metadata-view-model-wiz--centered"]=function(){var Q;
return(Q=S.lockupStyle())==null?void 0:Q.isCentered},c["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var Q;
return(Q=S.lockupStyle())==null?void 0:Q.typographyBump},c["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var Q;
return(Q=S.lockupStyle())==null?void 0:Q.useLegacyTypography},c["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var Q;
return(Q=S.lockupStyle())==null?void 0:Q.useRichGridLegacyTypography},c))},_.B(_.h8,{data:function(){return S.data().image}},{avatarStackViewModel:function(Q){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.qn,{data:Q.data,
overrides:{layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"}}))},
avatarViewModel:function(Q){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.p3,{data:Q.data}))},
decoratedAvatarViewModel:function(Q){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.B(_.h7,{data:Q.data}))}}),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.B("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var Q;return(Q=S.data().title)==null?void 0:Q.content}},_.B(_.K,{cond:function(){return S.data().title},
then:function(Q){return _.B(_.xJ,{command:S.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:S.lockupAccessibilityLabel},_.B(_.mw,{text:Q}))}})),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.B(_.h8,{data:function(){return S.data().metadata}},{contentMetadataViewModel:function(Q){return _.B(_.t3p,{data:Q.data,
layout:1,useMediumText:function(){var f,U;return((f=S.lockupStyle())==null?void 0:f.typographyBump)||((U=S.lockupStyle())==null?void 0:U.useRichGridLegacyTypography)},
extensions:function(){var f,U;return{lockupMetadata:{byline:{hideAvatar:((f=S.lockupStyle())==null?void 0:f.arrangement)===0,addPadding:((U=S.lockupStyle())==null?void 0:U.arrangement)===1}}}}})}})),_.B(_.h8,{data:function(){return S.data().attribution}},{attributionViewModel:function(Q){return _.B("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.B(kGh,{data:Q.data,
useSmallLayout:!0}))}})),_.B("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.B(_.h8,{data:function(){return S.data().menuButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
buttonOverrides:function(){var f;return((f=S.lockupStyle())==null?0:f.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ka");
V3d.idomCompat=!0;var Ry$=_.y_(function(S){var c=_.EH("notification-multi-action-renderer");_.qR(function(){requestAnimationFrame(function(){_.RR(c.value)})});
var Q={},f={},U={};return _.B("notification-multi-action-renderer",{class:_.n4("ytNotificationMultiActionRendererHost",(Q.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var a;return(a=S.useLegacyShelfStyle)==null?void 0:a.call(S)},Q)),
el:c},_.B("span",{"aria-live":"polite",class:_.n4("ytNotificationMultiActionRendererTextContainer",(f.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var a;return(a=S.useLegacyShelfStyle)==null?void 0:a.call(S)},f))},_.B(_.mw,{text:function(){return S.data().responseText}})),_.B("div",{class:_.n4("ytNotificationMultiActionRendererButtonContainer",(U.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var a;
return(a=S.useLegacyShelfStyle)==null?void 0:a.call(S)},U))},_.B(_.h8,{data:function(){var a;
return(a=S.data().buttons)==null?void 0:a.map(function(X){if(X=X.buttonRenderer){var z,x=Object,I=x.assign,n=(z=X.icon)==null?void 0:z.iconType;z=(z=X.command||X.serviceEndpoint||X.navigationEndpoint)?{innertubeCommand:z}:void 0;X={buttonViewModel:I.call(x,{},{iconName:n,onTap:z,trackingParams:X.trackingParams,titleFormatted:X.text?_.sX(X.text):void 0},eax(X))}}else X=void 0;return X}).filter(function(X){return!!X})}},{buttonViewModel:function(a,X){return _.B("div",null,_.B(_.Ze,{data:a.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var z;return((z=S.useModernStyles)==null?0:z.call(S))?{type:X()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"La");var yEl=_.y_(function(S){var c=_.EH("notification-text-renderer");_.qR(function(){requestAnimationFrame(function(){_.RR(c.value)})});
return _.B("notification-text-renderer",{el:c,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.B(_.mw,{text:function(){return S.data().successResponseText}}))},"Ma");_.o$z=_.y_(function(S){var c=_.b9(TWY,function(){var f;return k6T((f=S.contentId)==null?void 0:f.call(S))}),Q=function(){var f;
return _.Y((f=c())==null?void 0:f.command,_.Yc)};
return _.B(_.K,{cond:function(){var f;if(!(f=Q())){var U;f=_.Y((U=c())==null?void 0:U.command,Hj$)}return f},
then:function(){return _.B(_.K,{cond:Q,then:function(){var f={};return _.B("div",{class:_.n4("ytDismissibleItemReplacedContent",function(){var U;return rrc((U=S.aspectRatio)==null?void 0:U.call(S))})},_.B("div",{class:_.n4((f.ytDismissibleItemAspectRatioContainer=function(){var U;
return((U=S.aspectRatio)==null?void 0:U.call(S))!==void 0},f))},_.B(_.h8,{data:function(){var U;
return(U=Q())==null?void 0:U.item}},{notificationMultiActionRenderer:function(U){return _.B(Ry$,{data:U.data,
useModernStyles:S.useModernStyle,useLegacyShelfStyle:S.useLegacyShelfStyle})},
notificationTextRenderer:yEl})))}})},
else:S.children})},"Na");_.mNd=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;S=_.tc("ad-avatar-view-model");var f=function(){var a;return((a=c().interaction)==null?0:a.onTap)?function(X){var z;mNp(X,(z=c().interaction)==null?void 0:z.onTap,Q)}:void 0},U=function(){var a,X=c(),z=f(),x=(a=_.Y(c().rendererContext,_.jT))==null?void 0:a.label;
a:switch(X.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":a=1;break a;default:a=0}return{size:PUZ(X.size),type:a,onTap:z,accessibilityText:x}};
_.cn(S,{visibilityCallback:function(a){var X,z=(X=c().interaction)==null?void 0:X.onFirstVisible;a&&z&&_.kz(z)},
showOption:_.yA});return _.B("ad-avatar-view-model",{class:function(){var a;return((a=c().interaction)==null?0:a.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:S},_.B(_.K,{cond:function(){return c().image},
then:function(a){return _.B(Zpi,{data:U,image:a})}}))},"Oa");_.Q3=_.y_(function(S){S=_.V_(S,{hasDot:!1});var c=Object.assign({},S),Q=S.data,f=S.hasDot;S=S.customCommandResolver;var U=(delete c.data,delete c.hasDot,delete c.customCommandResolver,c);c=function(){return Q().style};
c!==void 0&&c!==null||_.dC(Error("Fh"));c=_.EH("ad-badge-view-model");_.V8(c,function(){return Q().interaction},S);
return _.B("ad-badge-view-model",{class:_.n4(function(){var a;return((a=Q().interaction)==null?0:a.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var a=U.adRenderingContextType();
Q();return a==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:c},_.B(_.y8,{data:function(){var a;Q();return{type:2,text:(a=Q().label)==null?void 0:a.content,adsIncludeDot:f(),isOverlay:Q().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Pa");var S5l;_.f2=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;var f=S.adRenderingContextType;S=_.EH("ad-details-line-view-model");_.V8(S,function(){return c().interaction},Q);
_.cn(S,{visibilityCallback:function(U){var a,X=(a=c().interaction)==null?void 0:a.onFirstVisible;U&&X&&_.kz(X)},
showOption:_.yA});return _.B("ad-details-line-view-model",{class:function(){var U;return((U=c().interaction)==null?0:U.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:S},_.B(_.K,{cond:function(){return c().style},
then:function(U){return _.B(_.lW,{each:function(){var a;return((a=c())==null?void 0:a.attributes)||[]},
keyBy:"INDEX"},function(a){return _.B(S5l,{attribute:a,style:U,adRenderingContextType:function(){return f()}})})}}))},"Qa");
S5l=_.y_(function(S){var c=S.attribute;var Q=S.style;var f=S.adRenderingContextType;return _.B(_.K,{cond:function(){return c().text},
then:function(U){return _.B(_.mw,{text:U,className:function(){var a=f();Q();return a==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"Ra");var crh=_.y_(function(S){var c=S.data;var Q=S.typographyBump;var f=function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
S={};return _.B(_.ak,null,_.B("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.B(_.mw,{text:function(){return c().headline},
className:_.n4("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(S.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return f==null?void 0:f()},S.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(Q==null?void 0:Q())&&!(f==null?0:f())},S)),
linkInheritColor:!0}),_.B(_.K,{cond:function(){return c().description},
then:function(U){var a={};return _.B(_.mw,{text:U,className:_.n4("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(a.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return f==null?void 0:f()},a.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(Q==null?void 0:Q())&&!(f==null?0:f())},a)),
linkInheritColor:!0})}}),_.B(_.K,{cond:function(){return c().secondaryDescription},
then:function(U){var a={};return _.B(_.mw,{text:U,className:_.n4("ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescription",(a.ytwFeedAdMetadataViewModelHostTextsStyleCompactSecondaryDescriptionTypographyBump=function(){return Q==null?void 0:Q()},a)),
linkInheritColor:!0})}}),_.B("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.B(_.K,{cond:function(){return c().adAvatar},
then:function(){return _.B("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleCompact"},_.B(_.h8,{data:function(){return c().adAvatar}},{adAvatarViewModel:_.mNd}))}}),_.B(_.h8,{data:function(){return c().adBadge}},{adBadgeViewModel:function(U){return _.B(_.Q3,{data:U.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.B(_.h8,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(U){return _.B(_.f2,{data:U.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}}))),_.B("div",{class:function(){return f()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.B(_.h8,{data:function(){return c().menu}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
buttonOverrides:function(){a:switch(c().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var a="S";break a;default:a="M"}return{size:a}}})}})))},"Sa"),QXe=_.y_(function(S){var c=S.data;
var Q=S.noBottomMargin;var f=S.useVideoLockupTopPadding;var U=S.typographyBump;S={};S=_.n4("ytwFeedAdMetadataViewModelHostMetadata",(S.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return Q==null?void 0:Q()},S.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},S));
var a=function(){return c().adBadge};
a!==void 0&&a!==null||_.dC(Error("Gh"));a={};var X={};return _.B(_.ak,null,_.B(_.K,{cond:function(){return c().adAvatar},
then:function(){return _.B("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.B(_.h8,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(z){return _.B(_.mNd,{data:z.data})}}))}}),_.B("div",{class:S},_.B("div",{class:_.n4("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(a.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return U==null?void 0:U()},a.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(U==
null?void 0:U())&&_.u("web_enable_typography_bump_v2")},a))},_.B(_.mw,{text:function(){return c().headline},
linkInheritColor:!0})),_.B(_.K,{cond:function(){return c().description},
then:function(z){return _.B(_.mw,{text:z,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.B("div",{class:function(){return c().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.u("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.B(_.h8,{data:function(){return c().adBadge}},
{adBadgeViewModel:function(z){return _.B(_.Q3,{data:z.data,
hasDot:function(){return!!c().adDetailsLine},
adRenderingContextType:function(){return c().adRenderingContextType}})}}),_.B(_.h8,{data:function(){return c().adDetailsLine}},{adDetailsLineViewModel:function(z){return _.B(_.f2,{data:z.data,
adRenderingContextType:function(){return c().adRenderingContextType}})}})),_.B(_.K,{cond:function(){return c().secondaryDescription},
then:function(z){return _.B(_.mw,{text:z,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.B("div",{class:_.n4("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(X.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return f==null?void 0:f()},X))},_.B(_.h8,{data:function(){return c().menu}},{buttonViewModel:_.Ze})))},"Ta"),fUJ=_.y_(function(S){var c=S.data;
var Q=S.noBottomMargin;var f=S.listenToTapEvent;var U=S.setTouchEndHandler;var a=S.useVideoLockupTopPadding;var X=S.typographyBump;var z=_.EH("feed-ad-metadata-view-model");_.V8(z,function(){return c().interaction},void 0,function(){return f==null?void 0:f()});
S=_.A(_.ny(!1,void 0,"qjt0Xc"));var x=S.next().value,I=S.next().value;S=_.$d(function(){(U==null?0:U())&&!x()&&(z.value.click(),I(!0),setTimeout(function(){I(!1)},100));
return!1});
_.cn(z,{visibilityCallback:function(n){var b,N=(b=c().interaction)==null?void 0:b.onFirstVisible;n&&N&&_.kz(N)},
showOption:_.yA});return _.B("feed-ad-metadata-view-model",{class:function(){var n;return((n=c().interaction)==null?0:n.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:z,"on:touchend":S},_.B(_.DJ,null,_.B(_.YC,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.B(crh,{data:c,
typographyBump:X})}),_.B(_.YC,{when:function(){return c().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.B(QXe,{data:c,
noBottomMargin:Q,useVideoLockupTopPadding:a,typographyBump:X})})))},"Ua");var UMd;_.U4=_.y_(function(S){return _.B("yt-lockup-view-model",{class:_.n4(S.className)},_.B(_.o$z,{contentId:function(){return S.data().contentId},
useModernStyle:!0,aspectRatio:function(){var c,Q;return((c=S.containerType)==null?void 0:c.call(S))!==3?n7p(S.data().contentType,(Q=S.force16By9ThumbnailAspectRatio)==null?void 0:Q.call(S)):void 0}},function(){return _.B(UMd,Object.assign({},S))}))},"Va");
UMd=_.y_(function(S){S=_.V_(S,{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 c=S.data,Q=S.containerLayoutConfig,f=S.containerType,U=S.sizing,a=S.protectBackground,X=S.typographyBump,z=S.force16By9ThumbnailAspectRatio,x=S.thumbnailFixedWidth,I=S.thumbnailTargetWidth,n=S.lockupExperiments,b=S.elementsPerRow;
S=_.EH("div");_.LS(S,function(){var wp;return(wp=c())==null?void 0:wp.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 N=_.Gs(E$R),l=_.fl().resolve(_.QS($Nd)),H=l?{}:void 0,q=function(){var wp,Pc,ex;return(ex=(Pc=_.Y((wp=c())==null?void 0:wp.rendererContext,_.jT))==null?void 0:Pc.label)!=null?ex:void 0},w=function(){var wp=Q==null?void 0:Q(),Pc;
if(wp==null?0:wp.containerType){var ex=(Pc=c())==null?void 0:Pc.contentType;Pc=n();var yd=X(),op=I(),DT=a();wp=Object.assign({},bqx(FNM(wp),zaZ(wp.responsiveSize),yd,ex,wp.force16By9ThumbnailAspectRatio,op,DT,Pc),{thumbnailFixedWidth:wp.contentPreviewWidth})}else wp=bqx(f(),U(),X(),(ex=c())==null?void 0:ex.contentType,z(),I(),a(),n());return wp};
l&&H&&l({enabled:function(){return N()},
itemPlaybackModel:function(){return c().itemPlayback},
thumbnailElRef:function(){return H.thumbnailElRef},
containerElRef:S,options:function(){var wp,Pc=(wp=_.Y(c().metadata,ncd))==null?void 0:wp.endorsement;wp=H.thumbnailOverlays||[];Pc&&wp.push(Pc);var ex,yd;return{thumbnail:H.thumbnail,thumbnailOverlays:wp,accessibilityText:q(),thumbnailSize:H.thumbnailSize,enableRounding:w().isCollection,containPlayerWithinThumbnail:w().isCollection,trackingParams:(ex=_.Y(c().rendererContext,_.$z))==null?void 0:(yd=ex.loggingDirectives)==null?void 0:yd.trackingParams}}});
var g=0;l=_.A(_.ny(!1,void 0,"BKBkhb"));var r=l.next().value,E=l.next().value;l=_.A(_.ny(!1,void 0,"GK0mq"));var v=l.next().value,t=l.next().value;l=_.$d(function(){var wp=N()&&c().itemPlayback;v()?(_.Mq.cancelJob(g),g=_.Mq.addJob(function(){E(!wp)},8,32)):E(!wp);
return!0});
var V=_.$d(function(){g&&(_.Mq.cancelJob(g),g=0);E(!1)});
_.wX(function(){g&&(_.Mq.cancelJob(g),g=0)});
var AZ=v7x(function(){t(!0)}),IH=AZ.touchFeedbackEvents,Nr=AZ.touchFeedbackOnPointerUp,Hc=AZ.touchFeedbackOnPointerDown;
AZ=AZ.touchFeedbackOnPointerLeave;var qr={};return _.B("div",{el:S,class:_.n4("yt-lockup-view-model-wiz",function(){a:{var wp=w();if(wp.isOverlay)wp="yt-lockup-view-model-wiz--overlay";else switch(wp.arrangement){case 1:wp="yt-lockup-view-model-wiz--horizontal";break a;default:wp="yt-lockup-view-model-wiz--vertical"}}return wp},function(){a:{var wp=w();
if(wp.isOverlay)wp="yt-lockup-view-model-wiz--overlay";else{switch(wp.collectionStackNumber){case 1:wp="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:wp="yt-lockup-view-model-wiz--collection-stack-2";break a}wp=void 0}}return wp},(qr["yt-lockup-view-model-wiz--card"]=function(){return w().isCard},qr["yt-lockup-view-model-wiz--compact"]=function(){return w().isTiny||w().sizing!=="STANDARD"},qr["yt-lockup-view-model-wiz--protect-background"]=a,qr["yt-lockup-view-model-wiz--add-margins"]=
function(){return w().addMarginForFullbleed},qr["yt-lockup-view-model-wiz--centered"]=function(){return w().isCentered},qr["yt-lockup-view-model-wiz--fullbleed"]=function(){return w().fullbleed},qr["yt-lockup-view-model-wiz--single-column-grid"]=function(){return b()===1&&f()===2},qr["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var wp;
return(wp=n())==null?void 0:wp.useRichGridLegacyMargin},qr)),
"on:mousedown":Hc,"on:mouseleave":V,"on:mouseup":Nr,"on:mouseover":l,"on:touchstart":Hc,"on:touchend":Nr,"on:pointerleave":AZ},_.B(_.xJ,{command:function(){var wp;return _.vK((wp=c())==null?void 0:wp.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return x()&&w().arrangement===1?"width: "+x():""}},_.B(_.h8,{data:function(){var wp;
return(wp=c())==null?void 0:wp.contentImage}},{thumbnailViewModel:function(wp){return _.B(_.RP,{data:wp.data,
aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:I,hovered:r,isClip:function(){var Pc;return((Pc=c())==null?void 0:Pc.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:PpZ(H),lockupExperiments:function(){return n()}})},
collectionThumbnailViewModel:function(wp){return _.B(wzd,{data:wp.data,aspectRatio:function(){return w().aspectRatio},
disableRounding:function(){return w().disableRounding},
width:I,doubleStack:function(){return w().collectionStackNumber===2},
hovered:r,playbackRef:PpZ(H)})},
decoratedAvatarViewModel:_.h7})),_.B("div",{class:"yt-lockup-view-model-wiz__metadata"},_.B(_.h8,{data:function(){var wp;return(wp=c())==null?void 0:wp.metadata}},{lockupMetadataViewModel:function(wp){return _.B(V3d,{data:wp.data,
lockupStyle:w,lockupCommand:function(){var Pc;return _.vK((Pc=c())==null?void 0:Pc.rendererContext)},
lockupAccessibilityLabel:function(){return q()}})},
feedAdMetadataViewModel:function(wp){return _.B(fUJ,{data:wp.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:X})}}),_.B(_.h8,{data:function(){var wp;
return(wp=c())==null?void 0:wp.attachmentSlot}},{lockupAttachmentsViewModel:function(wp){return _.B(GGu,{data:wp.data,
lockupStyle:w})}})),_.B(_.p4,{model:function(){a:{switch(w().collectionStackNumber){case 1:var wp=8;
break a;case 2:wp=12;break a}wp=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:wp}},
pointerDownEvent:IH.pointerDownEvent,pointerUpEvent:IH.pointerUpEvent,pointerLeaveEvent:IH.pointerLeaveEvent}))},"Wa");
_.U4.idomCompat=!0;_.f4(_.U4,"yt-lockup-view-model",{props:{data:_.y$,containerLayoutConfig:_.y$,containerType:_.y$,sizing:_.y$,protectBackground:_.y$,typographyBump:_.y$,thumbnailFixedWidth:_.y$,thumbnailTargetWidth:_.y$,force16By9ThumbnailAspectRatio:_.y$,className:_.y$,lockupExperiments:_.y$,elementsPerRow:_.y$}});var Rap;_.Qu(Qsp);var Jrd=_.K4(Qsp,{callbacks:{onExpandClick:!0}});var Xfp=_.l9({buttonViewModel:_.Ze}),aUs=_.K4(abp);_.Qu(abp);_.Qu(Uao);_.Qu(JgT);_.f4(aUs,"yt-video-attribute-view-model",{props:{data:_.y$,className:_.y$}});var z9=function(){var S=_.W.apply(this,arguments)||this;S.useHighlightStyling=_.u("web_enable_deeper_metadata_highlight_styling");S.isSearch=!1;S.JSC$13094_lastScrollContainerWidth=NaN;S.pageLoadingFromNavigation=!1;S.currentIndex=0;S.supportComponentResize=!1;return S};
_.C(z9,_.W);_.J=z9.prototype;
_.J.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}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.xn(this,this.onPageChange))};
_.J.detached=function(){document.removeEventListener("yt-page-type-changed",_.xn(this,this.onPageChange))};
_.J.getItemsPath=function(){return"data.cards"};
_.J.onIronResize=function(){this.updateListStyles()};
_.J.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var S;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(S=this.data)==null?void 0:S.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.u("problem_walkthrough_sd")&&!!this.centerItems};
_.J.computeCardListStyle=function(S){return S||null};
_.J.computeEmpty=function(S){return!this.get("cards.length",S)};
_.J.computeThumbnailStyle=function(S){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",S)||null};
_.J.computeHasSubtitle=function(S){return!!this.get("header.richListHeaderRenderer.subtitle",S)};
_.J.computeInitialCountNumber=function(S){return this.hasSquareMiniApp&&S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.J.computeUseFloorScrolling=function(S){return S==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.J.computeHasGameCard=function(S){return(S=this.get("cards",S))?S.some(function(c){return c.gameCardRenderer}):!1};
_.J.computeCenterHeaderTitle=function(S){return!(S==null||!S.centerHeaderTitle)};
_.J.computeHasPortraitMiniApp=function(S){return(S=S==null?void 0:S.cards)?S.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.J.computeHasSquareMiniApp=function(S){return(S=S==null?void 0:S.cards)?S.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.J.computeHasSkinnyWidthPortraitMiniApp=function(S){return(S=S==null?void 0:S.cards)?S.some(function(c){return c.miniGameCardViewModel&&c.miniGameCardViewModel.width===135}):!1};
_.J.computeCenterItems=function(S){return!!S};
_.J.computeHasInfoPanel=function(S){var c;return S==null?void 0:(c=S.cards)==null?void 0:c.some(function(Q){return Q.infoPanelContentRenderer})};
_.J.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.J.getItemByIndex=function(S){var c=this.items.children;return c&&c.length>S?c[S]:void 0};
_.J.onPageChange=function(){var S=this;this.pageLoadingFromNavigation=!0;_.Mq.addJob(function(){S.pageLoadingFromNavigation=!1;_.Oz(S.hostElement,"yt-terminate-video-preview-action")},8)};
_.J.updateListStyles=function(){if(_.u("problem_walkthrough_sd")&&this.JSC$13094_scrollContainer!==void 0){var S=this.JSC$13094_scrollContainer.clientWidth;S!==this.JSC$13094_lastScrollContainerWidth&&(this.JSC$13094_lastScrollContainerWidth=S,_.Or(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(S*.8,415)+"px"}),_.Az(this.hostElement,"iron-resize"))}};
_.Rh.Object.defineProperties(z9.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.u("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return!!((S=this.data)==null?0:(c=S.cards)==null?0:(Q=c[0])==null?0:Q.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return!!((S=this.data)==null?0:(c=S.cards)==null?0:(Q=c[0])==null?0:Q.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return _.u("enable_desktop_amsterdam_info_panels")&&!!((S=this.data)==null?0:(c=S.cards)==null?0:(Q=c[0])==null?0:Q.infoPanelContentRenderer)}}});
z9.prototype.dataChanged=z9.prototype.dataChanged;z9.prototype.onIronResize=z9.prototype.onIronResize;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],z9.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],z9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.QW.YtdHorizontalListBehavior),_.P("design:type",Object)],z9.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.p(_.ig),_.P("design:type",Object)],z9.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],z9.prototype,"data",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],z9.prototype,"useCustomColors",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],z9.prototype,"useHighlightStyling",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.P("design:type",Object)],z9.prototype,"cardListStyle",void 0);_.d([_.Z({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.P("design:type",Boolean)],z9.prototype,"empty",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.P("design:type",Boolean)],z9.prototype,"hasSubtitle",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.P("design:type",Boolean)],z9.prototype,"thumbnailStyle",void 0);_.d([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.P("design:type",Boolean)],z9.prototype,"hasGameCard",void 0);_.d([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.P("design:type",Boolean)],z9.prototype,"centerHeaderTitle",void 0);
_.d([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.P("design:type",Boolean)],z9.prototype,"hasPortraitMiniApp",void 0);_.d([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.P("design:type",Boolean)],z9.prototype,"hasSquareMiniApp",void 0);_.d([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.P("design:type",Boolean)],z9.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.d([_.Z({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.P("design:type",Boolean)],z9.prototype,"hasInfoPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],z9.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],z9.prototype,"inlineStructuredDescription",void 0);_.d([_.nU("#scroll-container"),_.P("design:type",HTMLDivElement)],z9.prototype,"JSC$13094_scrollContainer",void 0);
_.d([_.Z({computed:"computeInitialCountNumber(data.style.type)"}),_.P("design:type",Number)],z9.prototype,"initialCount",void 0);_.d([_.Z({computed:"computeUseFloorScrolling(data.style.type)"}),_.P("design:type",Boolean)],z9.prototype,"useFloorScrolling",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.P("design:type",Boolean)],z9.prototype,"centerItems",void 0);_.d([_.Z(),_.P("design:type",Object)],z9.prototype,"pageLoadingFromNavigation",void 0);
_.d([_.Z(),_.P("design:type",Object)],z9.prototype,"currentIndex",void 0);_.d([_.Z(),_.P("design:type",Number)],z9.prototype,"scrollCount",void 0);_.d([_.Z(),_.P("design:type",Object)],z9.prototype,"supportComponentResize",void 0);_.d([_.nU("#items"),_.P("design:type",HTMLDivElement)],z9.prototype,"items",void 0);_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],z9.prototype,"onIronResize",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],z9.prototype,"dataChanged",null);_.d([_.Z({reflectToAttribute:!0}),_.M("inlineStructuredDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],z9.prototype,"hideNavigationButton",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],z9.prototype,"modernChapters",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],z9.prototype,"hasVideoAttributeViewModels",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],z9.prototype,"modernInfoPanels",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],z9);
_.k(z9,"ytd-horizontal-card-list-renderer",function(){if(SBl!==void 0)return SBl;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return SBl=S},{mode:_.A2("kevlar_poly_si_batch_j072")?1:2});var ArJ=_.y_(function(S){var c=S.data;var Q={};return _.B("video-summary-content-view-model",{class:_.n4("video-summary-content-view-model-wiz",S.className,(Q["video-summary-content-view-model-wiz--is-search"]=S.isSearch,Q))},_.B(_.lW,{each:function(){var f=[],U=c().paragraphs;if(U==null||!U.length)return[];for(var a=0;a<U.length;a++){var X=_.Y(U[a],uzu),z=void 0;a>0&&(z=_.Y(U[a-1],uzu));z&&!!z.marker===!!X.marker?f[f.length-1].paragraphs.push(X):f.push({isList:!!X.marker,paragraphs:[X]})}return f},
keyBy:"INDEX"},function(f){return _.B(_.K,{cond:function(){return f().isList},
then:function(){return _.B("ul",{class:"video-summary-content-view-model-wiz__list"},_.B(_.lW,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(U){return _.B("li",{class:"video-summary-content-view-model-wiz__list-item"},_.B(_.mw,{text:function(){return U().text}}))}))},
else:function(){return _.B(_.lW,{each:function(){return f().paragraphs},
keyBy:"INDEX"},function(U){return _.B("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.B(_.mw,{text:function(){return U().text}}))})}})}),_.B(_.K,{cond:function(){return!!_.Y(c().likeButtonViewModel,_.wJ)&&!!_.Y(c().dislikeButtonViewModel,_.se)},
then:function(){return _.B("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},_.B("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.B(_.TT,{data:function(){return _.Y(c().likeButtonViewModel,_.wJ)},
disableIconAnimation:!0})),_.B(_.q0,{data:function(){return _.Y(c().dislikeButtonViewModel,_.se)}}))}}))},"Xa");
ArJ.idomCompat=!0;_.f4(ArJ,"video-summary-content-view-model",{props:{data:_.y$,isSearch:_.y$,className:_.y$}});var x3=function(){var S=_.W.apply(this,arguments)||this;var c,Q;S.isExpanded=(Q=(c=S.data)==null?void 0:c.isExpanded)!=null?Q:!1;S.disableExpand=!1;S.showProminentLabel=!1;S.showRightSideLabel=!0;S.toggleExpandableContent=function(f){S.disableExpand||(f.stopPropagation(),_.yn(_.t4(f),S.hostElement,["info","expanded-subtitle"])||(S.isExpanded=!S.isExpanded,S.ytRendererBehavior.logExplicitClick(S.data),S.JSC$13105_cardList&&!_.u("expandable_metadata_a11y_fix_ks")&&_.tO(S,function(){_.Vk(S.hostElement)})))};
S.useSquareThumbnail=!1;S.startX=0;return S};
_.C(x3,_.W);_.J=x3.prototype;_.J.computeUseSquareThumbnail=function(){var S;return(S=this.data)==null?void 0:S.useSquareThumbnail};
_.J.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"}}}}};
_.J.dataChanged=function(){if(this.data){var S,c;this.isExpanded=(c=(S=this.data)==null?void 0:S.isExpanded)!=null?c:!1;var Q,f,U,a;if(S=this.isDarkTheme()?(Q=this.data)==null?void 0:(f=Q.colorData)==null?void 0:f.darkColorPalette:(U=this.data)==null?void 0:(a=U.colorData)==null?void 0:a.lightColorPalette){var X,z;if((X=this.data)==null?0:(z=X.colorData)==null?0:z.vibrantColorPalette)S.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.s2(this.hostElement,S)}}};
_.J.isExpandedChanged=function(){this.isExpanded&&this.JSC$13105_cardList&&_.Az(this.JSC$13105_cardList,"iron-resize")};
_.J.computeIsExpanded=function(S){return!!S.isExpanded};
_.J.computeShowProminentLabel=function(S,c){var Q;return!!(S==null?0:(Q=S.header)==null?0:Q.showLeadingCollapsedLabel)&&!c};
_.J.computeShowRightSideLabel=function(S,c){var Q;return!(S==null?0:(Q=S.header)==null?0:Q.showLeadingCollapsedLabel)&&!c};
_.J.captureContentClick=function(S){if(!this.disableExpand)if(_.u("expandable_metadata_fix_killswitch")){var c=S.target;_.Nde(c,"ytd-macro-markers-list-item-renderer")||S.stopPropagation();(c==null?void 0:c.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.yn(_.t4(S),this.hostElement,["items"])||_.RZ(_.t4(S),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.J.timestampClick=function(S){S.stopPropagation();var c,Q;(S=(c=this.data)==null?void 0:(Q=c.header)==null?void 0:Q.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(S)};
_.J.onDown=function(S){S.stopPropagation();this.startX=S.detail?S.detail.x:0};
_.J.onUp=function(S){this.skipKeyInteraction(S)&&S.stopPropagation()};
_.J.skipKeyInteraction=function(S){var c=S.target;if((c==null?void 0:c.id)==="scroll-container"||(c==null?void 0:c.id)==="items"||S.detail&&S.detail.x!==this.startX)return!0;S=_.t4(S);S=_.A(S);for(c=S.next();!c.done;c=S.next()){c=c.value;if(c===this.hostElement)break;if(c.hasAttribute&&c.hasAttribute("skip-key-interaction"))return!0}return!1};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.Rh.Object.defineProperties(x3.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.Y((S=this.data)==null?void 0:S.expandedContent,$Is)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.Y((S=this.data)==null?void 0:S.expandedContent,_.bk$)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.useCustomColors)&&!((c=this.data)==null||!c.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var S,c;return!!((S=this.data)==null?0:(c=S.header)==null?0:c.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var S,c;return!!((S=this.data)==null?0:(c=S.header)==null?0:c.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var S,c;return!!((S=this.data)==null?0:(c=S.header)==null?0:c.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
x3.prototype.onUp=x3.prototype.onUp;x3.prototype.onDown=x3.prototype.onDown;x3.prototype.isExpandedChanged=x3.prototype.isExpandedChanged;x3.prototype.dataChanged=x3.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],x3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],x3.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],x3.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],x3.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],x3.prototype,"isExpanded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],x3.prototype,"disableExpand",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],x3.prototype,"isSearch",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],x3.prototype,"isWatch",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.P("design:type",Object)],x3.prototype,"showProminentLabel",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.P("design:type",Object)],x3.prototype,"showRightSideLabel",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x3.prototype,"hasVideoSummary",null);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x3.prototype,"hasLockupViewModel",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data","isWatch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x3.prototype,"useCustomColors",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x3.prototype,"showInfoButton",null);_.d([_.M("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x3.prototype,"showTimestamp",null);_.d([_.M("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x3.prototype,"showExpandedSubtitle",null);
_.d([_.M("data","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],x3.prototype,"showThumbnail",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],x3.prototype,"useVppShoppingDestinationStyle",null);_.d([_.Z(),_.P("design:type",Object)],x3.prototype,"toggleExpandableContent",void 0);_.d([_.nU("ytd-horizontal-card-list-renderer"),_.P("design:type",Object)],x3.prototype,"JSC$13105_cardList",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.P("design:type",Object)],x3.prototype,"useSquareThumbnail",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x3.prototype,"dataChanged",null);_.d([_.B0("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x3.prototype,"isExpandedChanged",null);
_.d([_.FV("down"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],x3.prototype,"onDown",null);_.d([_.FV("up"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],x3.prototype,"onUp",null);_.d([_.e({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],x3);
_.k(x3,"ytd-expandable-metadata-renderer",function(){if(z_i!==void 0)return z_i;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return z_i=S},{mode:1});var XOJ,Oqu=function(){if(XOJ!==void 0)return XOJ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return XOJ=S};_.f4(_.qn,"yt-avatar-stack-view-model",{props:{className:_.y$,data:_.y$,overrides:_.y$,isOverlay:_.y$,useMediumText:_.y$,decorations:_.y$,hideAvatar:_.y$}});_.i8("itemSectionRenderer","videoRenderer","ytd-video-renderer");var FW=function(){var S=_.W.apply(this,arguments)||this;S.disableExpand=!1;S.shouldShowChannelInfo=!1;S.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return S};
_.C(FW,_.W);_.J=FW.prototype;_.J.computeUseSearchUi=function(){var S,c;return this.isSearch||((S=this.data)==null?void 0:(c=S.style)==null?void 0:c.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.computeUseThreeLineTitle=function(){var S;return((S=this.data)==null?void 0:S.maxTitleLines)===3};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.u("polymer_video_renderer_defer_menu")&&!U5_?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"}}}};
_.J.attached=function(){_.a1(this.hostElement,"blue-links",_.u("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Aq(_.Ur(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var S=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;S&&((c=_.Y(S.commandMetadata,_.hp))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(S);this.updateInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13110_inlinePreviewHoverListener=t8({mediaRenderer:this,lockupElement:this.JSC$13110_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.J.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13110_inlinePreviewHoverListener)==null||Jw(S)};
_.J.onTextWrapperClick=function(S){var c,Q,f=this.hideTranslation?(c=this.data)==null?void 0:c.untranslatedNavigationEndpoint:(Q=this.data)==null?void 0:Q.navigationEndpoint;c=_.yn(_.t4(S),this.hostElement,["expandable-metadata"]);!f||c&&!_.u("expandable_metadata_fix_killswitch")||_.RZ(_.t4(S),this.hostElement,["A".toString(),"BUTTON".toString(),"YT-AVATAR-STACK-VIEW-MODEL"])||_.Az(this.hostElement,"yt-navigate",{endpoint:f})};
_.J.computeThumbnailWidth=function(S,c,Q,f,U){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:f?U==="MASSIVE"?600:U==="BIG"?500:U==="MEDIUM"?450:420:Q?360:c?128:S?210:246};
_.J.computeUseBiggerThumbs=function(S){return S&&_.u("enable_desktop_search_bigger_thumbs")};
_.J.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.J.computeVideoStyle=function(){if(_.u("enable_video_style")){var S,c;return(S=this.data)==null?void 0:(c=S.style)==null?void 0:c.value}};
_.J.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.J.handleHideItemSectionVideosByIdCommand=function(S){var c;S=(c=_.Y(S,r3_))==null?void 0:c.videoId;this.data&&this.data.videoId===S&&(this.isHidden=!0)};
_.J.getMetadataSnippetContainerClass=function(S){return S?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.J.computeTitleText=function(S,c,Q){return S?Q:c};
_.J.computeDescriptionSnippet=function(S,c,Q){return S?Q:c};
_.J.computeSnippetText=function(S,c,Q){return S?Q:c};
_.J.computeNavigationEndpoint=function(S,c){return S?c==null?void 0:c.untranslatedNavigationEndpoint:c==null?void 0:c.navigationEndpoint};
_.J.hideInlineTitleIcon=function(S,c){return S||!c};
_.Rh.Object.defineProperties(FW.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 S;return(S=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?S:[]}return[]}},
shouldShowChannelThumbnail:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return!!(this==null?0:(S=this.data)==null?0:(c=S.channelThumbnailSupportedRenderers)==null?0:(Q=c.channelThumbnailWithLinkRenderer)==null?0:Q.thumbnail)&&!this.useAvatar}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.Y((S=this.data)==null?void 0:S.avatar,Nxu)}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13110_inlinePreviewHoverListener)==null?0:su(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.Rh.Object.defineProperties(FW,{template:{configurable:!0,enumerable:!0,get:function(){return Oqu()}}});
FW.prototype.dataChanged=FW.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],FW.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],FW.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],FW.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],FW.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.rL),_.P("design:type",Object)],FW.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],FW.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],FW.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],FW.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FW.prototype,"isBackstageVideo",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FW.prototype,"isPostCompactVideo",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],FW.prototype,"isHistory",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FW.prototype,"isRichGridVideoPost",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FW.prototype,"isHidden",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],FW.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.P("design:type",Boolean)],FW.prototype,"useSearchUi",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.P("design:type",Boolean)],FW.prototype,"useThreeLineTitle",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.P("design:type",Boolean)],FW.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.P("design:type",Object)],FW.prototype,"videoStyle",void 0);_.d([_.Z({computed:"computeDisableExpand(videoStyle)"}),_.P("design:type",Object)],FW.prototype,"disableExpand",void 0);
_.d([_.Z({computed:"computeShouldShowChannelInfo(useSearchUi)"}),_.P("design:type",Object)],FW.prototype,"shouldShowChannelInfo",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],FW.prototype,"biggerThumbsStyle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.P("design:type",String)],FW.prototype,"inlineTitleIcon",void 0);_.d([_.Z({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.P("design:type",Object)],FW.prototype,"computedNavigationEndpoint",void 0);_.d([_.Z({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(S,c){return _.FT(S.entities,"searchVideoResultEntity",c)}}),
_.P("design:type",Object)],FW.prototype,"searchVideoResultEntity",void 0);_.d([_.nU("ytd-thumbnail"),_.P("design:type",HTMLElement)],FW.prototype,"thumbnail",void 0);_.d([_.nU("#dismissible"),_.P("design:type",HTMLElement)],FW.prototype,"JSC$13110_dismissibleMedia",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FW.prototype,"dataChanged",null);
_.d([_.M("searchVideoResultEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FW.prototype,"hideTranslation",null);_.d([_.M("searchVideoResultEntity"),_.P("design:type",Array),_.P("design:paramtypes",[])],FW.prototype,"hiddenBadgeGroups",null);_.d([_.M("data","useAvatar"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FW.prototype,"shouldShowChannelThumbnail",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FW.prototype,"useAvatar",null);
_.d([_.M("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FW.prototype,"isHovered",null);_.d([_.e({is:"ytd-video-renderer",disableElementRegistration:!0})],FW);_.k(FW,"ytd-video-renderer",function(){return Oqu()},{mode:_.A2("kevlar_poly_si_batch_j047")?1:2});var BM=function(){var S=_.W.apply(this,arguments)||this;S.editDialog=null;S.roundedContainer=!0;S.isLoading=!1;S.isRichGrid=!1;S.isRichGridRepost=!1;S.reduceSidePaddings=_.u("reduce_side_paddings_in_shelf");S.JSC$13117_spinnerEl=null;return S};
_.C(BM,_.W);_.J=BM.prototype;
_.J.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"}}}};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){var S=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var c=0,Q=this.data.actions&&this.data.actions.length;c<Q;c++)this.openEditDialog(_.Y(this.data.actions[c],FJd));if((c=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(c=this.get("buttonRenderer.hint.hintRenderer.hintId",c))&&c.startsWith("share-post-hint")){var f=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(f){_.cb.getInstance();var U=Q$(_.LK(_.K8("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.Mq.addLowPriorityJob(function(){_.FF(S.hostElement,U,f)})}}}};
_.J.updatePoll=function(S){S>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13117_spinnerEl||(this.JSC$13117_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Ur(this.hostElement).appendChild(this.JSC$13117_spinnerEl));this.JSC$13117_spinnerEl&&(this.JSC$13117_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(S){var c=this.get("updateCommentDialogEndpoint",S.detail.endpoint);c&&(this.openEditDialog(c),S.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(S,c){c&&this.updatePoll(c.selectedChoiceIndex)};
_.J.onYtServiceRequestSent=function(S,c){var Q;c.endpoint&&(_.Y(c.endpoint,qWz)||_.Y(c.endpoint,hkl)&&((Q=_.Y(c.endpoint,hkl))==null||!Q.clientActions))&&(this.isLoading=!0);if(c.actions)for(S=0;S<c.actions.length;S++)Q=c.actions[S],_.Y(Q,Dw)&&(Q=this.get("updateBackstagePollAction.selectedChoiceIndex",Q),Q==void 0&&(Q=-1),this.updatePoll(Q))};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(S){S&&S.dialog&&(this.editDialog=S.dialog,S=this.editDialogEl.firstElementChild)&&(S.focus(),S.openDialog&&S.openDialog())};
_.J.computeIsPostHidden=function(S,c){return!!S||c};
_.J.computeSurfaceType=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.J.computeUsesCompactLockup=function(S){return S==="BACKSTAGE_SURFACE_TYPE_HOME"||S==="BACKSTAGE_SURFACE_TYPE_SEARCH"||S==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||S==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||S==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||S==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeShowWithoutToolbar=function(S){return!S.actionButtons&&!S.actionMenu};
_.J.computePostAttachment=function(S){if(S.backstageAttachment){if(_.Y(S.backstageAttachment,OLi))return"poll";if(_.Y(S.backstageAttachment,EoH))return"quiz";if(_.Y(S.backstageAttachment,_.gx))return"video";if(_.Y(S.backstageAttachment,tgh))return"uploaded-videos";if(_.Y(S.backstageAttachment,kVh))return S.contentText?"image":"image-only";if(_.Y(S.backstageAttachment,dSi))return"playlist"}return"none"};
_.J.computePostTabIndex=function(S){return S?0:-1};
_.J.computeButtonTooltipPosition=function(S){return this.computeUsesCompactLockup(S)?"top":"bottom"};
_.J.computeHasText=function(S){return!(S==null||!S.contentText)};
_.J.onTap=function(S){var c,Q;if(((c=this.data)==null?0:c.navigationEndpoint)&&((Q=this.data)==null?void 0:Q.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var f;((f=this.data)==null?0:f.navigationEndpoint)&&!_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.Rh.Object.defineProperties(BM.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.voteCount)||_.LK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,OLi))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,tgh))}}});
BM.prototype.onYtServiceRequestCompleted=BM.prototype.onYtServiceRequestCompleted;BM.prototype.onYtServiceRequestSent=BM.prototype.onYtServiceRequestSent;BM.prototype.onYtCommentPollRevert=BM.prototype.onYtCommentPollRevert;BM.prototype.onYtCommentboxDismiss=BM.prototype.onYtCommentboxDismiss;BM.prototype.onYtNavigate=BM.prototype.onYtNavigate;BM.prototype.isLoadingChanged=BM.prototype.isLoadingChanged;BM.prototype.dataChanged=BM.prototype.dataChanged;BM.prototype.contentTextChanged=BM.prototype.contentTextChanged;
_.d([_.p(_.ig),_.P("design:type",Object)],BM.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BM.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],BM.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BM.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],BM.prototype,"editDialog",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BM.prototype,"roundedContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],BM.prototype,"isLoading",void 0);_.d([_.Z({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.P("design:type",String)],BM.prototype,"surface",void 0);
_.d([_.Z({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.P("design:type",Boolean)],BM.prototype,"usesCompactLockup",void 0);_.d([_.Z({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],BM.prototype,"showWithoutToolbar",void 0);_.d([_.Z({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.P("design:type",String)],BM.prototype,"attachment",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BM.prototype,"isRichGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BM.prototype,"isRichGridRepost",void 0);_.d([_.Z({reflectToAttribute:!0,value:_.u("use_better_post_dismissals")}),_.P("design:type",Boolean)],BM.prototype,"useBetterPostDismissals",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BM.prototype,"reduceSidePaddings",void 0);
_.d([_.Z({computed:"computeHasText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],BM.prototype,"hasText",void 0);_.d([_.nU("#expander"),_.P("design:type",Object)],BM.prototype,"expander",void 0);_.d([_.nU("#action-buttons"),_.P("design:type",Object)],BM.prototype,"actionButtons",void 0);_.d([_.nU("#edit-dialog"),_.P("design:type",HTMLElement)],BM.prototype,"editDialogEl",void 0);
_.d([_.B0("data.contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BM.prototype,"contentTextChanged",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BM.prototype,"dataChanged",null);_.d([_.B0("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BM.prototype,"isLoadingChanged",null);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],BM.prototype,"onYtNavigate",null);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BM.prototype,"onYtCommentboxDismiss",null);_.d([_.FV("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],BM.prototype,"onYtCommentPollRevert",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],BM.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],BM.prototype,"onYtServiceRequestCompleted",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],BM.prototype,"voteCount",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],BM.prototype,"commentCount",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],BM.prototype,"hasPoll",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],BM.prototype,"hasUploadedVideo",null);_.d([_.e({is:"ytd-post-renderer",disableElementRegistration:!0})],BM);
_.k(BM,"ytd-post-renderer",function(){if(sE_!==void 0)return sE_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return sE_=S},{mode:1});var za$;var xMz;var I2=function(){return _.W.apply(this,arguments)||this};
_.C(I2,_.W);I2.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],I2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],I2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.QW.YtdHorizontalListBehavior),_.P("design:type",Object)],I2.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],I2.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],I2.prototype,"data",void 0);
_.d([_.Z({value:"$.items.children"}),_.P("design:type",String)],I2.prototype,"itemsPath",void 0);_.d([_.Z({value:1}),_.P("design:type",Number)],I2.prototype,"initialCount",void 0);_.d([_.Z(),_.P("design:type",String)],I2.prototype,"surface",void 0);_.d([_.e({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],I2);
_.k(I2,"ytd-post-multi-image-renderer",function(){if(xMz!==void 0)return xMz;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return xMz=S},{mode:_.A2("kevlar_poly_si_batch_j079")?1:2});var FNu={"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"}}},n2=function(){var S=_.W.apply(this,arguments)||this;S.hasInlineCommentSection=!1;S.editDialog=null;S.isLoading=!1;S.shouldHideAuthor=!1;S.shouldShowVideoTime=!1;
S.isInEngagementPanel=!1;S.hideBorder=!1;S.usesFullLockup=!1;S.shouldShowMenuInCompactView=!1;S.JSC$13133_spinnerEl=null;S.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return S};
_.C(n2,_.W);_.J=n2.prototype;_.J.configureRendererStamper=function(){return FNu};
_.J.computeIsPollHeaderEnabled=function(S){return(S==null?void 0:S.pollMetadataIcon)!=null};
_.J.getPublishTimeStampString=function(S,c){c=new Date((Number(c)-60*((new Date).getTimezoneOffset()-(new Date(Number(c)*1E3)).getTimezoneOffset()))*1E3);c=(new vq(10)).format(c);if(S&&S.runs&&S.runs.length)for(var Q=0;Q<S.runs.length;Q++)S.runs[Q].text&&(S.runs[Q].text=S.runs[Q].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",c));return S};
_.J.created=function(){this.JSC$13133_spinnerEl=null};
_.J.contentTextChanged=function(){this.expander.reset()};
_.J.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var S;if((S=this.data)==null?0:S.actions){S=_.A(this.data.actions);for(var c=S.next();!c.done;c=S.next())this.openEditDialog(_.Y(c.value,FJd))}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){_.Ur(this.hostElement).querySelector("#action-buttons").reply()};
_.J.updatePoll=function(S,c){c&&this.set("data.pollMetadataVoteCountText",c);this.hasInlineCommentSection&&(S=S>=0,c=_.Ur(this.hostElement).querySelector("#action-buttons"),S?c.reply():c.hideReplyDialog())};
_.J.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$13133_spinnerEl||(this.JSC$13133_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Ur(this.hostElement).appendChild(this.JSC$13133_spinnerEl));this.JSC$13133_spinnerEl&&(this.JSC$13133_spinnerEl.active=this.isLoading)};
_.J.onYtNavigate=function(S){var c=this.get("updateCommentDialogEndpoint",S.detail.endpoint);c&&(this.openEditDialog(c),S.stopPropagation())};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.onYtCommentPollRevert=function(S,c){c&&this.updatePoll(c.selectedChoiceIndex,c.totalVotes)};
_.J.onYtServiceRequestSent=function(S,c){S.stopPropagation();S=_.Y(c.endpoint,hkl);if(_.Y(c.endpoint,qWz)||S&&!S.clientActions)this.isLoading=!0;if(c.actions)for(S=0;S<c.actions.length;S++){var Q=c.actions[S],f=_.Y(Q,Dw);f&&(Q=this.get("updateBackstagePollAction.selectedChoiceIndex",Q),Q===void 0&&(Q=-1),this.updatePoll(Q,f.totalVotes))}};
_.J.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.J.openEditDialog=function(S){S&&S.dialog&&(this.editDialog=S.dialog,S=this.editDialogElement.firstElementChild)&&(S.focus(),S.openDialog&&S.openDialog())};
_.J.computeIsBodyHidden=function(S,c){return!!S||c};
_.Rh.Object.defineProperties(n2.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var S,c;if((S=this.data)==null?0:(c=S.pollMetadataIcon)==null?0:c.iconType)return _.xz(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.voteCount)||_.LK("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,OLi))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,EoH))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.Y(this.data.backstageAttachment,tgh))}}});
n2.prototype.onYtServiceRequestCompleted=n2.prototype.onYtServiceRequestCompleted;n2.prototype.onYtServiceRequestSent=n2.prototype.onYtServiceRequestSent;n2.prototype.onYtCommentPollRevert=n2.prototype.onYtCommentPollRevert;n2.prototype.onYtCommentboxDismiss=n2.prototype.onYtCommentboxDismiss;n2.prototype.onYtNavigate=n2.prototype.onYtNavigate;n2.prototype.isLoadingChanged=n2.prototype.isLoadingChanged;n2.prototype.dataChanged=n2.prototype.dataChanged;n2.prototype.contentTextChanged=n2.prototype.contentTextChanged;
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],n2.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],n2.prototype,"rendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],n2.prototype,"rendererstamperBehavior",void 0);_.d([_.nU("#contentTextExpander"),_.P("design:type",Object)],n2.prototype,"expander",void 0);
_.d([_.nU("#edit-dialog"),_.P("design:type",Element)],n2.prototype,"editDialogElement",void 0);_.d([_.Z(),_.P("design:type",Object)],n2.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],n2.prototype,"hasInlineCommentSection",void 0);_.d([_.Z(),_.P("design:type",Object)],n2.prototype,"editDialog",void 0);_.d([_.Z(),_.P("design:type",Object)],n2.prototype,"isLoading",void 0);
_.d([_.Z({computed:"computeIsPollHeaderEnabled(data)"}),_.P("design:type",Boolean)],n2.prototype,"isPollHeaderEnabled",void 0);_.d([_.Z(),_.P("design:type",Object)],n2.prototype,"shouldHideAuthor",void 0);_.d([_.Z(),_.P("design:type",Object)],n2.prototype,"shouldShowVideoTime",void 0);_.d([_.Z(),_.P("design:type",Object)],n2.prototype,"isInEngagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],n2.prototype,"hideBorder",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],n2.prototype,"usesFullLockup",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],n2.prototype,"shouldShowMenuInCompactView",void 0);_.d([_.M("isInEngagementPanel"),_.P("design:type",Number),_.P("design:paramtypes",[])],n2.prototype,"postTextMaxLines",null);_.d([_.M("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],n2.prototype,"pollIcon",null);
_.d([_.B0("data.contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n2.prototype,"contentTextChanged",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n2.prototype,"dataChanged",null);_.d([_.B0("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n2.prototype,"isLoadingChanged",null);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n2.prototype,"onYtNavigate",null);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n2.prototype,"onYtCommentboxDismiss",null);_.d([_.FV("yt-comment-poll-revert"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],n2.prototype,"onYtCommentPollRevert",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],n2.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],n2.prototype,"onYtServiceRequestCompleted",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],n2.prototype,"voteCount",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],n2.prototype,"commentCount",null);_.d([_.M("data.backstageAttachment"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],n2.prototype,"hasPoll",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],n2.prototype,"hasQuiz",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],n2.prototype,"hasUploadedVideo",null);
_.d([_.e({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],n2);
_.k(n2,"ytd-backstage-post-renderer",function(){if(za$!==void 0)return za$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return za$=S},{mode:1});var BBi;var bX=function(){var S=_.W.apply(this,arguments)||this;S.editDialog=null;S.showExpandButton=!1;S.isRichGrid=!1;S.usesFullLockup=!1;return S};
_.C(bX,_.W);_.J=bX.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.J.computeShowExpandButton=function(S){return this.usesCompactLockup||S&&S.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.J.computeUsesCompactLockup=function(S){return!!S.condensedContent};
_.J.computeShowFullContentText=function(S){return!S};
_.J.onYtNavigate=function(S){S=this.get("updateCommentDialogEndpoint",S.detail.endpoint);this.openEditDialog(S)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null};
_.J.openEditDialog=function(S){S&&S.dialog&&(this.editDialog=S.dialog,S=this.repostEditDialogEl.firstElementChild)&&(S.focus(),S.openDialog&&S.openDialog())};
_.J.onTap=function(S){if(this.data){var c=null;this.usesCompactLockup&&!_.RZ(_.t4(S)||[],this.hostElement,["YT-IMG-SHADOW"])?c=this.get("navigationEndpoint",this.data):S.target===this.moreButtonEl&&(c=this.get("navigationEndpoint",S.target.data));c&&_.Az(this.hostElement,"yt-navigate",{endpoint:c})}};
bX.prototype.onYtCommentboxDismiss=bX.prototype.onYtCommentboxDismiss;bX.prototype.onYtNavigate=bX.prototype.onYtNavigate;bX.prototype.dataChanged=bX.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bX.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],bX.prototype,"editDialog",void 0);_.d([_.Z({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],bX.prototype,"usesCompactLockup",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bX.prototype,"showExpandButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bX.prototype,"isRichGrid",void 0);
_.d([_.Z({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.P("design:type",Boolean)],bX.prototype,"showFullContentText",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bX.prototype,"usesFullLockup",void 0);_.d([_.nU("#more"),_.P("design:type",Object)],bX.prototype,"moreButtonEl",void 0);_.d([_.nU("#repost-content-text"),_.P("design:type",HTMLElement)],bX.prototype,"repostContentTextEl",void 0);
_.d([_.nU("#repost-edit-dialog"),_.P("design:type",HTMLElement)],bX.prototype,"repostEditDialogEl",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bX.prototype,"dataChanged",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],bX.prototype,"onYtNavigate",null);
_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bX.prototype,"onYtCommentboxDismiss",null);_.d([_.e({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],bX);
_.k(bX,"ytd-shared-post-renderer",function(){if(BBi!==void 0)return BBi;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return BBi=S},{mode:1});var IUd;var n7e;var N5=function(){return _.W.apply(this,arguments)||this};
_.C(N5,_.W);N5.prototype.attached=function(){var S=this;this.networkStatusManager||(this.networkStatusManager=new _.L6,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){S.onlineHandler()}))};
N5.prototype.detached=function(){var S=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){S.onlineHandler()}),delete this.networkStatusManager)};
N5.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],N5.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],N5);
_.k(N5,"ytd-reload-page-button-renderer",function(){if(n7e!==void 0)return n7e;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return n7e=S},{mode:1});var bqz={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"},K2=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(K2,_.W);_.J=K2.prototype;_.J.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.J.computeHasBodyText=function(S){return!!S.bodyText};
_.J.computeButtons=function(S){var c=[];S.ctaButton&&c.push(S.ctaButton);S.secondaryButton&&c.push(S.secondaryButton);return c};
_.J.computeRendererStyle=function(S){return S.style?S.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():S.icon?"":"no-icon"};
_.J.getIconName=function(S,c){c=c===void 0?!1:c;if(S===void 0)return"";S=this.get("icon.iconType",S);var Q;_.u("enable_hlp_client_icon_pick")?Q=this.getThemedIcon(S,c):Q=S;(c=bqz[Q])||(c="yt-icons");return[c,Q].join(":")};
_.J.getThemedIcon=function(S,c){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(S)?c?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(S)?c?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":S};
_.J.isThumbnail=function(S){return!!S.thumbnail};
_.J.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],K2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],K2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],K2.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],K2.prototype,"data",void 0);
_.d([_.Z({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],K2.prototype,"rendererStyle",void 0);_.d([_.Z({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.P("design:type",String)],K2.prototype,"iconName",void 0);_.d([_.Z({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],K2.prototype,"thumbnail",void 0);_.d([_.Z({computed:"computeButtons(data)"}),_.P("design:type",Array)],K2.prototype,"buttons",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],K2.prototype,"isDarkTheme",void 0);_.d([_.Z({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],K2.prototype,"hasBodyText",void 0);_.d([_.e({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],K2);
_.k(K2,"ytd-background-promo-renderer",function(){if(IUd!==void 0)return IUd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return IUd=S},{mode:1});var NBh;var $3=function(){var S=_.W.apply(this,arguments)||this;S.collections=_.u("web_modern_collections_v2");return S};
_.C($3,_.W);_.Rh.Object.defineProperties($3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U,a;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(S=this.data)==null?void 0:(c=S.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(Q=this.data)==null?void 0:(f=Q.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(U=this.data)==null?void 0:(a=U.thumbnail)==null?void 0:a.darkColorPalette,experimentEnabled:this.collections}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$3.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$3.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$3.prototype,"collections",void 0);_.d([_.M("data","collections"),_.P("design:type",Object),_.P("design:paramtypes",[])],$3.prototype,"collectionStack",null);_.d([_.e({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],$3);
_.k($3,"ytd-compact-station-renderer",function(){if(NBh!==void 0)return NBh;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return NBh=S},{mode:1});var KNi;var uX=function(){var S=_.W.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.C(uX,_.W);uX.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]]"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],uX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uX.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uX.prototype,"isRichGrid",void 0);_.d([_.e({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],uX);
_.k(uX,"ytd-grid-channel-renderer",function(){if(KNi!==void 0)return KNi;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return KNi=S},{mode:1});var $MJ;var j7=function(){return _.W.apply(this,arguments)||this};
_.C(j7,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],j7.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],j7.prototype,"data",void 0);_.d([_.e({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],j7);
_.k(j7,"ytd-grid-movie-playlist-renderer",function(){if($MJ!==void 0)return $MJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return $MJ=S},{mode:1});var uCe;var lX=function(){var S=_.W.apply(this,arguments)||this;S.downloadProgress=0;S.transferState="TRANSFER_STATE_UNKNOWN";S.modernButtons=_.u("web_modern_buttons");S.useModernCollectionsV2=_.u("web_modern_collections_v2");return S};
_.C(lX,_.W);lX.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
lX.prototype.configureRendererStamper=function(){return{"data.menu":Be}};
lX.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
lX.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.u("woffle_playlist_renderer_killswitch")){var S,c=zeM(this.entityInfo,this.transferState,this.downloadProgress,(S=this.data)==null?void 0:S.playlistId,this.isOnline);S=c.viewPlaylistText;var Q=c.badges;c=c.thumbnailOverlays;this.isDownloads=!!S||!!Q;this.set("data.viewPlaylistText",S);Q&&Q.length>0&&this.set("data.badges",Q);c&&c.length>0&&this.set("data.thumbnailOverlays",
c)}};
_.Rh.Object.defineProperties(lX.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 S;return!((S=this.data)==null?0:S.menu)}}});
lX.prototype.transferStateChanged=lX.prototype.transferStateChanged;lX.prototype.dataChanged=lX.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],lX.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],lX.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lX.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z({selector:_.HkH,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],lX.prototype,"downloadProgress",void 0);_.d([_.Z({selector:_.Z8,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],lX.prototype,"transferState",void 0);_.d([_.Z({selector:CAz,selectorArgs:["data.playlistId"]}),_.P("design:type",Object)],lX.prototype,"entityInfo",void 0);_.d([_.Z({selector:Kxx}),_.P("design:type",Boolean)],lX.prototype,"isOnline",void 0);
_.d([_.Z(),_.P("design:type",Object)],lX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],lX.prototype,"downloadRenderData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],lX.prototype,"modernButtons",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],lX.prototype,"isDownloads",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lX.prototype,"useModernCollectionsV2",void 0);
_.d([_.M("transferState"),_.Z({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],lX.prototype,"downloadState",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],lX.prototype,"menuHidden",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lX.prototype,"dataChanged",null);
_.d([_.$n("transferState","downloadProgress","isOnline"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lX.prototype,"transferStateChanged",null);_.d([_.e({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],lX);
_.k(lX,"ytd-grid-playlist-renderer",function(){if(uCe!==void 0)return uCe;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return uCe=S},{mode:1});var jXp;var Y3=function(){var S=_.W.apply(this,arguments)||this;S.collections=_.u("web_modern_collections_v2");return S};
_.C(Y3,_.W);Y3.prototype.configureRendererStamper=function(){return{"data.menu":Be,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Rh.Object.defineProperties(Y3.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U,a;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(S=this.data)==null?void 0:(c=S.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(Q=this.data)==null?void 0:(f=Q.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(U=this.data)==null?void 0:(a=U.thumbnail)==null?void 0:a.darkColorPalette,experimentEnabled:this.collections}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Y3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],Y3.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],Y3.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Y3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Y3.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Y3.prototype,"collections",void 0);_.d([_.M("data","collections"),_.P("design:type",Object),_.P("design:paramtypes",[])],Y3.prototype,"collectionStack",null);_.d([_.e({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],Y3);
_.k(Y3,"ytd-grid-radio-renderer",function(){if(jXp!==void 0)return jXp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return jXp=S},{mode:1});var lUd;var C2=function(){var S=_.W.apply(this,arguments)||this;S.useModernCollectionsV2=_.u("web_modern_collections_v2");return S};
_.C(C2,_.W);C2.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
C2.prototype.computeNavigationEndpoint=function(S){return dSz(S==null?void 0:S.navigationEndpoint)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],C2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],C2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],C2.prototype,"ytdLockupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],C2.prototype,"data",void 0);_.d([_.Z({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],C2.prototype,"computedNavigationEndpoint",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],C2.prototype,"useModernCollectionsV2",void 0);_.d([_.e({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],C2);
_.k(C2,"ytd-grid-show-renderer",function(){if(lUd!==void 0)return lUd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return lUd=S},{mode:1});var Y5_;_.HM=function(S){this.playerClient=S};
_.CUl=function(S,c,Q){Q=Q===void 0?{}:Q;return S.playerClient.setOption("ad",c,Q)};
_.HM.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.HM.prototype.executeCommand=function(S,c){this.getOptions().includes("executeCommand")?_.CUl(this,"executeCommand",{command:S,layoutId:c}):_.QV("Calling executeCommand when adModule is not loaded")};var DN=function(){return _.W.apply(this,arguments)||this};
_.C(DN,_.W);DN.prototype.getLayoutId=function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
DN.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var S=_.S9(),c=this.getLayoutId(),Q=this.data.clickthroughEndpoint;S&&c&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?S.getPlayerPromise().then(function(f){(new _.HM(f)).executeCommand(Q,c)}):_.Az(this.hostElement,"yt-navigate",{endpoint:Q})}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],DN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],DN.prototype,"data",void 0);_.d([_.e({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],DN);
_.k(DN,"ytd-shopping-companion-item-renderer",function(){if(Y5_!==void 0)return Y5_;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Y5_=S},{mode:1});var Hqh;var p2=function(){var S=_.W.apply(this,arguments)||this;S.isExpandableContent=!1;return S};
_.C(p2,_.W);_.Rh.Object.defineProperties(p2.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?void 0:S.price)||((c=this.data)==null?void 0:(Q=c.dealsData)==null?void 0:Q.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var S,c;if((S=this.data)!=null&&S.dealsData&&((c=this.data)==null||!c.priceReplacementText)){S=this.data.dealsData;var Q,f,U;return((Q=S.salesData)==null?void 0:Q.originalPrice)||((f=S.priceDropData)==null?void 0:f.referencePrice)||((U=S.promotionData)==null?void 0:U.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var S,c;return(S=this.data)==null?void 0:(c=S.dealsData)==null?void 0:c.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],p2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],p2.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],p2.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],p2.prototype,"isExpandableContent",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"showCta",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"ctaText",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"hasPriceTopPosition",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"hasPriceBottomPosition",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"useNewStyle",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"showPriceReplacementText",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"priceValue",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"showDeal",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"showAffiliateDisclaimer",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"useSaleStyle",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"useFromBrandCtaStyle",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"useFromVendorCtaStyle",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],p2.prototype,"useShoppingCollectionCtaStyle",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],p2);
_.k(p2,"ytd-vertical-product-card-renderer",function(){if(Hqh!==void 0)return Hqh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Hqh=S},{mode:1});var DMd;var hL=function(){return _.W.apply(this,arguments)||this};
_.C(hL,_.W);hL.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],hL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],hL.prototype,"ytdLockupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hL.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],hL);
_.k(hL,"ytd-grid-movie-renderer",function(){if(DMd!==void 0)return DMd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return DMd=S},{mode:1});var pOH;var q5=function(){var S=_.W.apply(this,arguments)||this;S.rounded=!0;S.itemStyle="small-item";return S};
_.C(q5,_.W);q5.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var S,c,Q,f,U=(c=_.Y((S=this.data)==null?void 0:S.buttonCommand,_.lA))==null?void 0:(Q=c.item)==null?void 0:(f=Q.notificationTextRenderer)==null?void 0:f.successResponseText;U&&_.Oer(this.hostElement,U)}};
_.Rh.Object.defineProperties(q5.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:S.isProductPlaceholder)!==void 0&&((c=this.data)==null?void 0:c.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],q5.prototype,"rounded",void 0);_.d([_.Z(),_.P("design:type",Object)],q5.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],q5.prototype,"itemStyle",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],q5.prototype,"hasPrice",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],q5.prototype,"hasPriceReplacementText",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],q5.prototype,"hasAdditionalFeesText",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],q5.prototype,"hasAffiliateDisclaimer",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],q5.prototype,"isProductPlaceholder",null);
_.d([_.Z(),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],q5.prototype,"hideOpenInNewIcon",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],q5.prototype,"ariaLabel",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],q5);
_.k(q5,"ytd-merch-shelf-item-renderer",function(){if(pOH!==void 0)return pOH;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return pOH=S},{mode:1});var had=_.y_(function(S){var c=_.EH("button-card-view-model");_.LS(c,function(){return S.data().rendererContext});
return _.B("button-card-view-model",{el:c,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return S.data().title},
role:"button"},_.B(_.p4,{model:{}}),_.B("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.B("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.B(_.K,{cond:function(){return S.data().image},
then:function(Q){return _.B(_.RW,{data:Q,alt:function(){var f;return(f=S.data().title)!=null?f:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.B("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return S.data().title})))},"Ya");_.u("web_button_view_model_wcw_registration_killswitch")||_.f4(had,"button-card-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){S=_.V_(S,{className:void 0});var c=S.data;S=S.className;var Q=_.uQ(function(){return c().onTapCommand},void 0,"NprDr");
return _.B("ytd-shopping-item-card",{class:_.n4("ytdShoppingItemCardHost",S)},_.B(_.xJ,{command:Q,className:"ytdShoppingItemCardHostLink"},_.B("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.B(_.h8,{data:function(){return c().thumbnailViewModel}},{thumbnailViewModel:function(f){return _.B(_.RP,{data:f.data,
aspectRatio:3})}})),_.B("div",null,_.B("p",{class:"ytdShoppingItemCardHostItemTitle"},_.B(_.mw,{text:function(){return c().itemTitle}})),_.B("p",{class:"ytdShoppingItemCardHostPrice"},_.B(_.mw,{text:function(){return c().priceOrStatus}})))))},"Za"),"ytd-shopping-item-card",{props:{data:_.y$,
className:_.y$}});var q5T={isAdsVideo:!0},TBu={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},wO_={showPlayerControls:!1,videoPreviewDurationMs:15E3},sXd={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.u("web_shorts_imp_fullwidth_killswitch")};var UI=null,zFZ={};var BnY="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(" "),T9={},Ibz=(T9.FEwhat_to_watch="home",T9.FEhashtag="hashtag",T9.FEtrending="trending",T9.FEhistory="history",T9.SPunlimited="premium",T9.FEmemberships_and_purchases="paid_memberships",T9.SPredeem_code="redeem",T9.SPverify_location="locate",T9.SPminor_moment="minor_moment",
T9.FEmini_app_container="mini_app",T9.FEnews_destination="news",T9.SPopen_in_app="open_in_app",T9.FEexplore="explore",T9.FEsubscriptions="subscriptions",T9.FEsfv_audio_pivot="sfv_audio_pivot",T9.FEplaylist_aggregation="playlist_aggregation",T9);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");_.B2("init");var Mks=function(){},WNz=_.y_(function(S){var c=S.data;
var Q=S.inlineMetadata;var f=S.aspectRatio;var U=S.scrimStyle;var a=S.className;var X=S.useDefaultStyle;var z=new Mks,x=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",I=_.uQ(function(){return(X==null?0:X())?x==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"iLX4Re"),n=_.uQ(function(){return _.Zf(Q)||I()||!1},void 0,"GaU7Ef"),b=function(){return(U==null?void 0:U())!==void 0?U==null?void 0:U():1},N=_.uQ(function(){return c().belowThumbnailMetadata||
!n()},void 0,"vsyhaf");
S=_.EH("ytm-shorts-lockup-view-model",function(t){z&&(z.hostElement=t,w())});
_.cn(S,{visibilityCallback:function(t){var V=c().onFirstVisible;t&&V&&_.kz(V)},
showOption:{calledOnce:!0,state:"visible"}});a=_.n4("shortsLockupViewModelHost",a);var l=_.EH("div"),H={};H=_.n4(function(){return I(),"shortsLockupViewModelHostThumbnailContainer"},(H.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.Zf(f)===1},H.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.Zf(f)===2},H.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!I()},H.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.u("web_shorts_2_by_3_lockups_study")&&!_.u("desktop_search_enable_two_by_three_shorts_aspect_ratio")},H));
var q,w=function(){if(z){var t;(t=q)==null||Jw(t);var V;z.hostElement&&((V=z.data)==null?0:V.inlinePlayerData)&&(q=t8({mediaRenderer:z,lockupElement:z.hostElement,thumbnailElement:l.value,videoPreviewOpts:sXd}))}};
_.To(function(){z&&(z.data=c(),w())},"zGfw4b");
var g=_.uQ(function(){return c().thumbnail},void 0,"H4vZOb"),r=_.uQ(function(){return c().badge},void 0,"I1QWQc"),E=_.uQ(function(){return c().onTap},void 0,"eB6nuc"),v={};
return _.B("ytm-shorts-lockup-view-model",{el:S,class:a},_.B(_.ak,null,_.B(_.xJ,{command:E,className:_.n4("shortsLockupViewModelHostEndpoint",(v.shortsLockupViewModelHostEndpointNoOutsideMetadata=function(){return!N()},v),"reel-item-endpoint",""),
ariaHidden:function(){return!n()},
tabIndex:function(){return n()?0:-1}},_.B("div",{el:l,
class:H},_.B(_.K,{cond:g,then:function(){return _.B(_.RW,{data:function(){var t;return(t=g==null?void 0:g())!=null?t:{}},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.B(_.K,{cond:n,
then:function(){return _.B(iqi,{data:c,scrimStyle:b,useDefaultStyle:X})}}),_.B(_.h8,{data:r},{badgeViewModel:function(t){return _.B(_.S7,{data:t.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.B(_.K,{cond:function(){return n()&&c().menuOnTap},
then:function(){return _.B(Zqe,{data:c,inlineMetadata:!0})}}),_.B(_.K,{cond:N,
then:function(){return _.B(G6l,{data:c,useDefaultStyle:X})}})))},"$a"),iqi=_.y_(function(S){var c=S.data;
var Q=S.scrimStyle;var f=S.useDefaultStyle;var U=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",a=f&&_.u("web_hide_primary_text_for_pivot_panel"),X=_.uQ(function(){return(f==null?0:f())?U==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"N1Ofye");
S={};S=_.n4("shortsLockupViewModelHostInlineMetadata",(S.shortsLockupViewModelHostMetadataRounded=function(){return!X()},S.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(Q==null?void 0:Q())===3&&!_.u("enable_shorts_lockup_new_scrim")},S.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(Q==null?void 0:Q())===3&&_.u("enable_shorts_lockup_new_scrim")},S.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(Q==null?void 0:Q())===2||(Q==null?void 0:
Q())===4},S.shortsLockupViewModelHostShowOverPlayer=function(){return!0},S),"image-overlay-text");
var z={};return _.B("div",{class:S},_.B("h3",{class:_.n4("shortsLockupViewModelHostMetadataTitle",(z.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(Q==null?void 0:Q())===4},z)),
"aria-label":function(){return c().accessibilityText}},_.B(_.K,{cond:function(){var x;
return!((x=c().overlayMetadata)==null||!x.primaryText)&&!a},
then:function(){return _.B(_.mw,{text:function(){var x;return(x=c().overlayMetadata)==null?void 0:x.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.B(_.K,{cond:function(){var x;
return(x=c().overlayMetadata)==null?void 0:x.secondaryText},
then:function(){return _.B(g7u,{data:c,scrimStyle:Q,className:void 0})}}))},"ab"),G6l=_.y_(function(S){var c=S.data;
var Q=S.useDefaultStyle;var f=_.u("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",U=_.uQ(function(){return(Q==null?0:Q())?f==="SHORTS_LOCKUP_STYLE_SLIM":c().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"ElFnSc");
S=_.n4(function(){return U()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var a,X=_.$d(function(){var b;(b=a)==null||b.click();return!1}),z=_.uQ(function(){return c().belowThumbnailMetadata||c().overlayMetadata},void 0,"leqnzc"),x=function(){var b;
return(b=z())==null?void 0:b.avatar},I={},n={};
return _.B("div",{class:_.n4(S,(I.shortsLockupViewModelHostOutsideMetadataHasAvatar=function(){return!!x()},I)),
"on:click":X},_.B(_.h8,{data:x},{avatarViewModel:function(b){return _.B("div",{class:"shortsLockupViewModelHostOutsideMetadataAvatar"},_.B(_.p3,{data:b.data}))}}),_.B("div",null,_.B("h3",{class:_.n4("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(n.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var b,N;
return!((b=z())==null?0:(N=b.primaryText)==null?0:N.content)},n)),
"aria-label":function(){return c().accessibilityText}},_.B(_.xJ,{ref:function(b){return void(a=b)},
command:function(){return c().onTap},
className:_.n4("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var b,N;return(b=z())==null?void 0:(N=b.primaryText)==null?void 0:N.content}},_.B(_.K,{cond:function(){var b;
return(b=z())==null?void 0:b.primaryText},
then:function(b){return _.B(_.mw,{text:b,noEndpoints:!0,noStyleRuns:!0})}}))),_.B(_.K,{cond:function(){var b;
return(b=z())==null?void 0:b.secondaryText},
then:function(b){return _.B("div",{class:_.n4("shortsLockupViewModelHostOutsideMetadataSubhead","shortsLockupViewModelHostMetadataSubhead"),"aria-hidden":"true"},_.B(_.mw,{text:b,noStyleRuns:!0}))}})),_.B(_.K,{cond:function(){return c().menuOnTap},
then:function(){return _.B(Zqe,{data:c,inlineMetadata:!1})}}))},"bb"),g7u=_.y_(function(S){var c=S.data;
var Q=S.scrimStyle;S=S.className;var f={};return _.B("div",{class:_.n4((f.shortsLockupViewModelHostMetadataSubhead=function(){return(Q==null?void 0:Q())!==4},f.shortsLockupViewModelHostMetadataSubheadNew=_.u("enable_shorts_lockup_new_scrim"),f.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(Q==null?void 0:Q())===4},f),S),
"aria-hidden":"true"},_.B(_.mw,{text:function(){var U;return(U=c().overlayMetadata)==null?void 0:U.secondaryText},
noStyleRuns:!0}))},"cb"),Zqe=_.y_(function(S){var c=S.data;
var Q=S.inlineMetadata;S={};S=_.n4((S.shortsLockupViewModelHostInlineMetadataMenu=function(){return Q()},S.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!Q()},S.shortsLockupViewModelHostShowOverPlayer=function(){return!0},S),"image-overlay-text");
return _.B("div",{class:S},_.B(cZ,{data:function(){return{style:Q()?"overlay":"mono",accessibilityLabel:c().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(f){f.preventDefault();f.stopPropagation();var U=_.gH({elementsCommand:c().menuOnTap,forceNewState:!0});if(U==null?0:U.onclick)U.onclick(f)}}},
iconName:"MORE_VERT"}))},"db");var eaz=_.y_(function(S){var c=S.data;var Q=S.inlineMetadata;var f=S.aspectRatio;var U=S.scrimStyle;var a=S.className;var X=S.useDefaultStyle;S=_.uQ(function(){var z=c().entityId;return z?z.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"W3Tlke");
return _.B("ytm-shorts-lockup-view-model-v2",{class:_.n4("shortsLockupViewModelHost",a)},_.B(_.o$z,{contentId:S,aspectRatio:function(){return(f==null?void 0:f())===1?1:(f==null?void 0:f())===2?2:4}},function(){return _.B(WNz,{data:c,
inlineMetadata:Q,aspectRatio:f,scrimStyle:U,className:a,useDefaultStyle:X})}))},"eb");_.f4(eaz,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Qn,inlineMetadata:_.Qn,aspectRatio:_.Qn,scrimStyle:_.Qn,className:_.Qn,useDefaultStyle:_.Qn}});var k6d=16/9*210,wi=function(){var S=_.W.apply(this,arguments)||this;S.isExpandableContent=!1;S.hideShelfHeader=!1;S.engagementPanel=!1;S.buttonClasses=["arrow"];S.isSearch=!1;S.disableScrollEventListener=!1;S.containsLockup=!1;S.overrideArrowPositionForProductCard=!1;S.overrideArrowPositionForShoppingItemCard=!1;S.overrideArrowPositionForReelItems=!1;S.overrideArrowPositionForGridMovie=!1;S.overrideArrowPositionToCenter=!1;S.isSearchPostShelf=!1;S.overrideArrowPositionForMixedShelf=!1;S.overrideArrowPositionForMixedShelfShortsOnly=
!1;S.hasBigThumbsReelItems=!1;S.shouldUseMixedListHeight=!1;S.shouldUseShortsListHeight=!1;S.gridVideoWidth=0;S.isSearchVodShelf=!1;S.disableWheelScroll=!1;S.sizing="COMPACT";S.shortsLockupAspectRatio=0;return S};
_.C(wi,_.W);_.J=wi.prototype;
_.J.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]]"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.u("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.J.computeInitialCountNumber=function(S){if(!S)return 6;var c=S.items.some(function(a){return!!a.topicRecommendationsChipRenderer}),Q=S.items.some(function(a){return!!a.displayAdRenderer}),f=this.computeShouldListItemsHaveEqualHeight(S),U=S.items.some(function(a){return!!a.gridPlaylistRenderer});
S=S.items.some(function(a){return!!a.shoppingItemCardViewModel});
return c?9:Q?8:U||f?10:S?7:6};
_.J.computeContainsPost=function(S){return!!S&&!!S.items&&S.items.some(function(c){return!!c.postRenderer})};
_.J.computeContainsLockup=function(){if(_.u("web_horizontal_list_lockup_arrow_killswitch"))return!1;var S,c;return(S=this.data)==null?void 0:(c=S.items)==null?void 0:c.some(function(Q){return!!Q.lockupViewModel})};
_.J.maybeUpdateLockupAspectRatio=function(){var S,c;if(this.computeContainsLockup()&&((S=this.data)==null?0:(c=S.items)==null?0:c.length)){var Q;S=n7p((Q=this.data.items[0].lockupViewModel)==null?void 0:Q.contentType,this.data.force16By9ThumbnailAspectRatio);Q=idz(S);Q=this.computeLockupWidth()/Q;_.Or(this.hostElement,{"--yt-horizontal-list-content-height":Q+"px"})}};
_.J.computeOverrideArrowPositionForProductCard=function(S){if(this.isExpandableContent)return!1;var c;return!!(S==null?0:(c=S.items)==null?0:c.some(function(Q){return!!Q.verticalProductCardRenderer}))};
_.J.computeOverrideArrowPositionForShoppingItemCard=function(S){var c;return!!(S==null?0:(c=S.items)==null?0:c.some(function(Q){return!!Q.shoppingItemCardViewModel}))};
_.J.computeOverrideArrowPositionForReelItemRenderer=function(S){return this.containsReelItemRenderer(S)};
_.J.computeHasBigThumbsReelItems=function(S,c){return S&&this.containsReelItemRenderer(c)};
_.J.computeShouldListItemsHaveEqualHeight=function(S){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(S==null?void 0:S.itemSizeConstraint)};
_.J.computeShouldListItemsHaveShortsHeight=function(S){return this.computeShouldListItemsHaveEqualHeight(S)&&!this.containsGridVideoRenderer(S)};
_.J.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.J.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.J.containsReelItemRenderer=function(S){var c;return!!(S==null?0:(c=S.items)==null?0:c.some(function(Q){return!(!Q.reelItemRenderer&&!Q.shortsLockupViewModel)}))};
_.J.containsGridVideoRenderer=function(S){var c;return!!(S==null?0:(c=S.items)==null?0:c.some(function(Q){return!!Q.gridVideoRenderer||!!Q.lockupViewModel}))};
_.J.computeContainsGridMovieRenderer=function(S){var c;return!!(S==null?0:(c=S.items)==null?0:c.some(function(Q){return!!Q.gridMovieRenderer}))};
_.J.computeOverrideArrowPositionToCenter=function(S){return this.computeIsSearchPostShelf(S)};
_.J.computeIsSearchPostShelf=function(S){var c;return!!(S==null?0:(c=S.items)==null?0:c.some(function(Q){var f,U;return((U=(f=Q.postRenderer)==null?void 0:f.surface)!=null?U:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.J.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(S){var c;return!!(S==null?0:(c=S.items)==null?0:c.some(function(Q){var f,U,a;return((a=(f=Q.backgroundPromoRenderer)==null?void 0:(U=f.style)==null?void 0:U.value)!=null?a:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.J.computeIsSearchVodShelf=function(S,c){return S&&this.containsGridVideoRenderer(c)};
_.J.computeDisableWheelScroll=function(S,c){return this.computeIsSearchVodShelf(S,c)};
_.J.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.J.computeShortsLockupAspectRatio=function(){return 1};
_.J.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.Or(this.hostElement,{"--ytd-reel-item-thumbnail-height":k6d+"px"})};
wi.prototype.dataChanged=wi.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wi.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.QW.YtdHorizontalListBehavior),_.P("design:type",Object)],wi.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],wi.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],wi.prototype,"isExpandableContent",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"hideShelfHeader",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"engagementPanel",void 0);_.d([_.Z(),_.P("design:type",Array)],wi.prototype,"buttonClasses",void 0);_.d([_.Z(),_.P("design:type",Object)],wi.prototype,"isSearch",void 0);
_.d([_.Z(),_.P("design:type",Object)],wi.prototype,"disableScrollEventListener",void 0);_.d([_.Z({computed:"computeInitialCountNumber(data)"}),_.P("design:type",Number)],wi.prototype,"initialCount",void 0);_.d([_.Z({computed:"computeContainsPost(data)"}),_.P("design:type",Boolean)],wi.prototype,"supportComponentResize",void 0);_.d([_.Z({computed:"computeContainsPost(data)"}),_.P("design:type",Boolean)],wi.prototype,"containsPost",void 0);
_.d([_.Z({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"containsLockup",void 0);_.d([_.Z({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],wi.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.d([_.Z({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"overrideArrowPositionForProductCard",void 0);_.d([_.Z({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.d([_.Z({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"overrideArrowPositionForReelItems",void 0);_.d([_.Z({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"overrideArrowPositionForGridMovie",void 0);
_.d([_.Z({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"overrideArrowPositionToCenter",void 0);_.d([_.Z({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"isSearchPostShelf",void 0);_.d([_.Z({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.d([_.Z({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.d([_.Z({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"hasBigThumbsReelItems",void 0);
_.d([_.Z({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"shouldUseMixedListHeight",void 0);_.d([_.Z({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"shouldUseShortsListHeight",void 0);_.d([_.Z({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"gridVideoWidth",void 0);
_.d([_.Z({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"isSearchVodShelf",void 0);_.d([_.Z({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.P("design:type",Object)],wi.prototype,"disableWheelScroll",void 0);_.d([_.Z({computed:"computeSizing(isSearch)"}),_.P("design:type",Object)],wi.prototype,"sizing",void 0);
_.d([_.Z({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.P("design:type",Object)],wi.prototype,"shortsLockupAspectRatio",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wi.prototype,"dataChanged",null);
_.k(wi,"yt-horizontal-list-renderer",function(){if(L$l===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);L$l=S}S=L$l;return S},{mode:1});var rr_;var dMi=[10,12,14,16,18,20,24,28,32,36],v7z=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],s4=function(){var S=_.W.apply(this,arguments)||this;S.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";S.hideOverflow=!1;S.useRoboto=!1;S.fontClass="";S.overflown=!1;S.actionMap={"yt-window-resized":"resize"};return S};
_.C(s4,_.W);_.J=s4.prototype;
_.J.attached=function(){var S=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();_.tO(this,function(){S.resize()});
if(!_.Fa){var c,Q,f;(c=document)==null||(Q=c.fonts)==null||(f=Q.ready)==null||f.then(function(){S.resize()})}};
_.J.dataChanged=function(){this.resize()};
_.J.guideIsExpandedChanged=function(){this.resize()};
_.J.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 S=this.getMaxNumLines(),c=this.getMinFont(),Q=this.getMaxFont(),f=this.useRoboto?dMi:v7z;for(f=f.filter(function(a){return a<=Q&&a>=c});f.length>1;){var U=Math.floor(f.length/2);
this.updateFontSize(f[U]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=S)f=f.slice(U,f.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>S)f=f.slice(0,U);else break}this.updateFontSize(f[f.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(S)}};
_.J.handleOverflow=function(S){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>S&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",S.toString()))};
_.J.updateFontSize=function(S){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+S;this.textNode.classList.add(this.fontClass)};
_.J.getMaxFont=function(){var S=this.useRoboto?dMi:v7z;S=S[S.length-1];return this.maxFontSize&&this.maxFontSize<=S?this.maxFontSize:S};
_.J.getMinFont=function(){var S=(this.useRoboto?dMi:v7z)[0];return this.minFontSize&&this.minFontSize>=S?this.minFontSize:S};
_.J.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.J.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.J.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.Em(this.text).split("\n").length-1:Infinity};
_.J.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("Hh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
s4.prototype.guideIsExpandedChanged=s4.prototype.guideIsExpandedChanged;s4.prototype.dataChanged=s4.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],s4.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],s4.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],s4.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],s4.prototype,"text",void 0);
_.d([_.Z(),_.P("design:type",String)],s4.prototype,"fontFamily",void 0);_.d([_.Z(),_.P("design:type",Number)],s4.prototype,"maxWidth",void 0);_.d([_.Z(),_.P("design:type",Number)],s4.prototype,"maxHeight",void 0);_.d([_.Z(),_.P("design:type",Number)],s4.prototype,"maxFontSize",void 0);_.d([_.Z(),_.P("design:type",Number)],s4.prototype,"minFontSize",void 0);_.d([_.Z(),_.P("design:type",Number)],s4.prototype,"maxLines",void 0);_.d([_.Z(),_.P("design:type",Object)],s4.prototype,"hideOverflow",void 0);
_.d([_.Z({selector:_.FxZ}),_.P("design:type",Boolean)],s4.prototype,"guideIsExpanded",void 0);_.d([_.nU("#container"),_.P("design:type",HTMLElement)],s4.prototype,"containerNode",void 0);_.d([_.nU("#text"),_.P("design:type",HTMLElement)],s4.prototype,"textNode",void 0);_.d([_.$n("text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s4.prototype,"dataChanged",null);
_.d([_.$n("guideIsExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],s4.prototype,"guideIsExpandedChanged",null);_.d([_.e({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],s4);
_.k(s4,"yt-dynamic-sizing-formatted-string",function(){if(rr_!==void 0)return rr_;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return rr_=S},{mode:1});var PU$;_.LNp=function(S){_.Sx.call(this,S)};
_.C(_.LNp,_.Sx);var E7p=function(S){_.Sx.call(this,S)};
_.C(E7p,_.LNp);var M5=function(){return _.W.apply(this,arguments)||this};
_.C(M5,_.W);M5.prototype.onTapSuspendedChannel=function(){var S;if((S=this.data)!=null&&S.serviceEndpoint){var c,Q;(S=(Q=_.Y((c=this.data)==null?void 0:c.serviceEndpoint,_.rQ))==null?void 0:Q.url)?_.dh(S,void 0,void 0,window.top):(c=new E7p("Did not handle suspended account tap. No appealUrl."),_.sH(c))}else c=new E7p("Did not handle suspended account tap. No serviceEndpoint."),_.sH(c)};
M5.prototype.onTap=function(){var S=this,c=_.Kv(),Q,f=(Q=_.NK(c,{veType:7116}))!=null?Q:void 0;_.rj(c,{visualElement:f});_.kk();this.saveRoleText();var U;if((U=this.data)==null?0:U.youtubeSuspended)this.onTapSuspendedChannel();else{var a=!1,X,z;(c=(z=_.Y((X=this.data)==null?void 0:X.serviceEndpoint,_.e6H))==null?void 0:z.supportedTokens)&&c.forEach(function(x){if(x.accountSigninToken)if(a=!0,S.onAccountItemTap)S.onAccountItemTap(x.accountSigninToken.signinUrl);else _.dh(x.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!a){if(X=this.get("serviceEndpoint",this.data))a=!0,this.ytComponentBehavior.resolveCommand(X);a||_.MP(new E7p("Did not handle account switch tap. No token."))}}};
M5.prototype.saveRoleText=function(){if(this.data){var S=this.data,c=S.channelDelegationRole;if(c){var Q,f=(Q=_.Y(S==null?void 0:S.serviceEndpoint,_.e6H))==null?void 0:Q.supportedTokens;if(!f){var U,a,X,z;f=(U=_.Y(S==null?void 0:S.serviceEndpoint,_.pk))==null?void 0:(a=U.popup)==null?void 0:(X=a.confirmDialogRenderer)==null?void 0:(z=X.confirmButton)==null?void 0:z.buttonRenderer;var x;f=(x=_.Y(f==null?void 0:f.command,_.II))==null?void 0:x.commands;if(!f)return;var I;f=(I=_.Y(f[1],_.e6H))==null?
void 0:I.supportedTokens}if(f){x=void 0;I=_.A(f);for(f=I.next();!f.done;f=I.next())if(f=f.value,f.datasyncIdToken){x=f.datasyncIdToken.datasyncIdToken;break}if(x){var n;a:{if(_.QvZ()&&(I=_.NNT(x+"::pom"))){I=new pM(I);break a}I=void 0}(n=I)==null||n.set("role_text",c);if((nOR?nOR:window.location).href.indexOf("studio")!==-1&&(n=f4Y())){I=n.src?(new URL(n.src)).origin:"*";var b;(b=n.contentWindow)==null||b.postMessage({action:"save_pom_role",datasyncId:x,roleText:c},I)}}}}}};
_.Rh.Object.defineProperties(M5.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.accountPhoto)==null?void 0:c.thumbnails;return Q&&Q.length>0&&(Q[0].height===36||Q[0].height===48)?Q[0].height:40}}});
M5.prototype.onTap=M5.prototype.onTap;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],M5.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],M5.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!1}),_.P("design:type",Function)],M5.prototype,"onAccountItemTap",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],M5.prototype,"enableRingForActiveAccount",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],M5.prototype,"thumbnailSize",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],M5.prototype,"onTap",null);_.d([_.e({is:"ytd-account-item-renderer",disableElementRegistration:!0})],M5);
_.k(M5,"ytd-account-item-renderer",function(){if(PU$!==void 0)return PU$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return PU$=S},{mode:1});var tkT;var iX=function(){return _.W.apply(this,arguments)||this};
_.C(iX,_.W);iX.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.fl().resolve(_.U8).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iX.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],iX.prototype,"data",void 0);_.d([_.e({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],iX);
_.k(iX,"ytd-identity-chip-renderer",function(){if(tkT!==void 0)return tkT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tkT=S},{mode:1});var Vkd;var Rae;var yrh;var o7h;var ZN=function(){var S=_.W.apply(this,arguments)||this;S.richItemMinWidth=_.a6("wn_grid_min_item_width",310);S.isShorts=!1;S.isWatchNext=!1;S.isExploreHub=!1;return S};
_.C(ZN,_.W);_.Rh.Object.defineProperties(ZN.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var S=[],c=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.Or(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var Q;if(((Q=this.data)==null?0:Q.rows)&&c)for(c*=this.data.rows,Q=0;Q<c;Q++)S.push({});return S}}});
_.d([_.p(_.st),_.P("design:type",Object)],ZN.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ZN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ZN.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.wP,value:3}),_.P("design:type",Number)],ZN.prototype,"itemsPerRow",void 0);_.d([_.Z({selector:_.xBo,value:6}),_.P("design:type",Number)],ZN.prototype,"slimItemsPerRow",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Number)],ZN.prototype,"richItemMinWidth",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],ZN.prototype,"miniMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ZN.prototype,"isShorts",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ZN.prototype,"isWatchNext",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ZN.prototype,"isExploreHub",void 0);
_.d([_.M("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.P("design:type",Array),_.P("design:paramtypes",[])],ZN.prototype,"cardItems",null);_.d([_.e({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],ZN);
_.mM$=_.aW()(ZN,"ytd-ghost-grid-renderer",function(){if(o7h===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);o7h=S}S=o7h;return S},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.f4(_.y_(function(S){var c=_.V_(S,{numberOfComments:3}).numberOfComments,Q=_.V_(S,{isInitialLoad:!1}).isInitialLoad,f=_.V_(S,{engagementPanel:!1}).engagementPanel,U=function(){return Math.min(Number(c==null?void 0:c())||20,20)};
return _.B("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.B(_.K,{cond:function(){return!(f==null?0:f())&&(Q==null?void 0:Q())},
then:function(){return _.B("div",{class:"ytGhostCommentsComments"},_.B("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.B("div",{class:_.n4("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.B("div",{class:_.n4("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.B("div",{class:"ytGhostCommentsGhostCard"},_.B("div",{class:"ytGhostCommentsAvatar"},_.B("div",{class:"ytGhostCommentsCircle"})),_.B("div",{class:"ytGhostCommentsComments"},_.B("div",{class:"ytGhostCommentsMeta"},
_.B("div",{class:_.n4("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.B("div",{class:_.n4("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.B("div",{class:"ytGhostCommentsComments"},_.B(_.lW,{each:function(){return Array((U==null?void 0:U())||3)}},function(){return _.B("div",{class:"ytGhostCommentsGhostCard"},_.B("div",{class:"ytGhostCommentsAvatar"},_.B("div",{class:"ytGhostCommentsCircle"})),_.B("div",{class:"ytGhostCommentsHost"},_.B("div",{class:"ytGhostCommentsMeta"},
_.B("div",{class:_.n4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.B("div",{class:_.n4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:_.n4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:"ytGhostCommentsGhostLikeDislike"},_.B("div",{class:_.n4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.B("div",{class:_.n4("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"fb"),"yt-ghost-comments",{props:{numberOfComments:_.y$,
isInitialLoad:_.y$,engagementPanel:_.y$}});_.i8("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var G9=function(){var S=_.W.apply(this,arguments)||this;S.isOverridable=!1;S.spinnerActive=!1;S.showButton=!1;S.isCommentsSection=!1;S.engagementPanel=!0;S.isShortsGrid=!1;S.isShortsPage=!1;S.isWatchPage=!1;S.ghostCardExperimentEnabled=_.u("show_ghost_comments_shorts_watch")||_.u("show_ghost_comments_desktop_watch");S.originalShowButton=!1;S.endOfList=!1;return S};
_.C(G9,_.W);_.J=G9.prototype;_.J.resetIntersectionObserver=function(){var S;(S=this.observer)==null||S.disconnect();this.observer=void 0};
_.J.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var S,c;((S=this.data)==null?void 0:S.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((c=this.data)==null?0:c.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.J.initializeIntersectionObserver=function(){var S=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(c){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q.value.isIntersecting&&(S.triggerContinuation(),S.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.J.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]]"}}}}}};
_.J.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var S;((S=this.data)==null?0:S.continuationEndpoint)&&(S=_.Y(this.data.continuationEndpoint,_.gj))&&this.ytdReduxBehavior.dispatch(_.aB({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:S}}))};
_.J.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.J.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.J.onServiceRequestCompleted=function(S,c){if(!_.u("kevlar_hide_spinner_on_empty_continuation_killswitch")){var Q;(Q=c.actions)!=null&&Q.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.J.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.J.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.J.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.J.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var S=3;if(this.engagementPanel){var c,Q,f;S=Math.floor(((((c=this.hostElement)==null?void 0:(Q=c.parentElement)==null?void 0:(f=Q.parentElement)==null?void 0:f.scrollHeight)||108)-108)/108);S=this.isInitialLoad?Math.max(S,3):3}c=[].concat(_.Hs(this.hostElement.querySelectorAll("yt-ghost-comments")));c=_.A(c);for(Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.numberOfComments=S,Q.isInitialLoad=this.isInitialLoad,Q.engagementPanel=
this.engagementPanel}};
_.J.detached=function(){this.resetIntersectionObserver()};
_.Rh.Object.defineProperties(G9.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return this.isCommentsSection&&!this.showButton&&(_.u("show_ghost_comments_shorts_watch")&&this.engagementPanel||_.u("show_ghost_comments_desktop_watch"))?{ghostCommentsSectionRenderer:!0}:!1}}});
G9.prototype.numberOfGhostCommentsChanged=G9.prototype.numberOfGhostCommentsChanged;G9.prototype.continuationTriggerOffsetChanged=G9.prototype.continuationTriggerOffsetChanged;G9.prototype.showButtonChanged=G9.prototype.showButtonChanged;G9.prototype.onYtServiceRequestCompletedForButtonRenderer=G9.prototype.onYtServiceRequestCompletedForButtonRenderer;G9.prototype.onServiceRequestCompleted=G9.prototype.onServiceRequestCompleted;G9.prototype.onYtServiceRequestSentForButtonRenderer=G9.prototype.onYtServiceRequestSentForButtonRenderer;
G9.prototype.observeData=G9.prototype.observeData;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],G9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],G9.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Ex.YtVisibilityBehavior),_.P("design:type",Object)],G9.prototype,"ytVisibilityBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],G9.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],G9.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],G9.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],G9.prototype,"isOverridable",void 0);_.d([_.Z(),_.P("design:type",Object)],G9.prototype,"spinnerActive",void 0);_.d([_.Z(),_.P("design:type",Object)],G9.prototype,"showButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],G9.prototype,"isCommentsSection",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],G9.prototype,"engagementPanel",void 0);_.d([_.Z(),_.P("design:type",Object)],G9.prototype,"isShortsGrid",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.IwM}),_.P("design:type",Object)],G9.prototype,"isShortsPage",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.MO}),_.P("design:type",Object)],G9.prototype,"isWatchPage",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],G9.prototype,"ghostCardExperimentEnabled",void 0);
_.d([_.Z(),_.P("design:type",Number)],G9.prototype,"continuationTriggerOffset",void 0);_.d([_.Z(),_.P("design:type",Object)],G9.prototype,"endOfList",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],G9.prototype,"isInitialLoad",void 0);_.d([_.nU("ytd-button-renderer"),_.P("design:type",_.yv)],G9.prototype,"buttonRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],G9.prototype,"buttonOverrides",void 0);
_.d([_.Z(),_.M("engagementPanel","isCommentsSection","showButton","isShortsPage","isWatchPage"),_.P("design:type",Object),_.P("design:paramtypes",[])],G9.prototype,"isShortsCommentsSection",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G9.prototype,"observeData",null);
_.d([_.FV("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G9.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],G9.prototype,"onServiceRequestCompleted",null);
_.d([_.FV("yt-service-request-completed-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G9.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.d([_.$n("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G9.prototype,"showButtonChanged",null);
_.d([_.$n("continuationTriggerOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G9.prototype,"continuationTriggerOffsetChanged",null);_.d([_.B0("isInitialLoad","engagementPanel"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],G9.prototype,"numberOfGhostCommentsChanged",null);_.d([_.e({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],G9);
_.k(G9,"ytd-continuation-item-renderer",function(){if(yrh!==void 0)return yrh;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return yrh=S},{mode:1});var S1s;var WM=function(){var S=_.W.apply(this,arguments)||this;S.downloadProgress=0;S.transferState="TRANSFER_STATE_UNKNOWN";S.downloadState="DOWNLOAD_STATE_UNKNOWN";S.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";S.offlineVideoPolicyExpirationTimestamp=0;S.downloadedVideoPlaybackPosition=0;return S};
_.C(WM,_.W);WM.prototype.dataChanged=function(){var S;this.videoData=_.Y((S=this.data)==null?void 0:S.renderer,I2_);this.transferStateChanged()};
WM.prototype.downloadProgressChanged=function(){if(this.entityInfo){var S=Object.assign({},this.videoData),c=xiR(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),Q=c.publishedTimeText,f=c.badges;S.shortViewCountText=c.shortViewCountText;S.publishedTimeText=Q;S.badges=f;this.set("videoData",S)}};
WM.prototype.transferStateChanged=function(){if(this.entityInfo){var S=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",c=_.jD(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!uZ(this.entityInfo.policyEntity),Q=Object.assign({},this.videoData),f=xiR(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),U=f.publishedTimeText,a=f.badges;Q.shortViewCountText=
f.shortViewCountText;Q.publishedTimeText=U;Q.badges=a;Q.isDisabled=c;Q.isWatched=this.downloadedVideoPlaybackPosition>0;Q.navigationEndpoint=c?void 0:kgz(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var X;S&&((X=this.videoData)==null?0:X.videoId)&&!_.u("dl_resume_click_killswitch")&&(Q.isDisabled=!1,Q.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});Q.thumbnailOverlays=Otr(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",Q)}};
WM.prototype.transferStateChanged=WM.prototype.transferStateChanged;WM.prototype.downloadProgressChanged=WM.prototype.downloadProgressChanged;WM.prototype.dataChanged=WM.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],WM.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],WM.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],WM.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],WM.prototype,"videoData",void 0);_.d([_.Z({selector:Gh,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],WM.prototype,"downloadProgress",void 0);_.d([_.Z(),_.P("design:type",Number)],WM.prototype,"relativeDateReference",void 0);_.d([_.Z({selector:_.iZ,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],WM.prototype,"transferState",void 0);
_.d([_.Z({selector:ikc,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],WM.prototype,"downloadState",void 0);_.d([_.Z({selector:uPp,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],WM.prototype,"offlinePolicyAction",void 0);_.d([_.Z({selector:jJc,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],WM.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.d([_.Z({selector:Wq,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],WM.prototype,"downloadedVideoPlaybackPosition",void 0);_.d([_.Z({selector:Yax,selectorArgs:["videoData.videoId"]}),_.P("design:type",Object)],WM.prototype,"entityInfo",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],WM.prototype,"isDownloading",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WM.prototype,"dataChanged",null);
_.d([_.$n("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WM.prototype,"downloadProgressChanged",null);_.d([_.$n("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WM.prototype,"transferStateChanged",null);
_.d([_.e({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],WM);
_.k(WM,"ytd-downloaded-video-grid-video-renderer",function(){if(S1s!==void 0)return S1s;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return S1s=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var cgh;var gi=function(){};
gi.prototype.resolve=function(S,c){var Q=this;return _.O(function(f){return _.F(f,Q.resolveCommand(S,c),0)})};var Qse,e7;Qse=S3Z(function(S){return S.targetId},{shouldPersist:!1});
e7=Qse.updateData;_.fbd=Qse.useUpdatableData;var Uah,Jgd;Uah=S3Z(function(S){return S.targetId});
Jgd=Uah.updateData;_.abe=Uah.useUpdatableData;var Agp=NnZ.bind(null,e7),Xfe=NnZ.bind(null,Jgd);(function(S,c,Q){var f=_.Y(Q==null?void 0:Q.updatedRenderer,_.vod);return f?S({targetId:c},function(){return f}):!1}).bind(null,e7);var k3=function(){};
_.C(k3,gi);k3.prototype.resolveCommand=function(S){var c;return _.O(function(Q){c=_.Y(S,_.CCR);if(!c)return Q.return();Agp(c.targetId,c);_.IN(Q)})};var ri=function(){var S=_.N_.apply(this,arguments)||this;S.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return S};
_.C(ri,_.N_);_.J=ri.prototype;_.J.configureContinuationPathMap=function(){return{}};
_.J.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.J.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.J.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.J.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.J.handleAppendContinuationItemsAction=function(S){var c=_.Y(S,_.lxd);if(this.data&&this.data.targetId&&c&&this.continuationPathMap&&c.targetId===this.data.targetId){var Q=Zvo(S),f=Q&&this.continuationPathMap[Q];if(f&&Q)if(S=this.get(f,this.data)){a:{for(Q=0;Q<S.length;Q++){var U=S[Q],a=void 0,X=!!_.Y((a=_.Y(U,a$H))==null?void 0:a.content,_.zkz);if(_.Y(U,_.aK)||X)break a}Q=S.length}f="data."+f;c.continuationItems?Q===S.length-1?(this.pop(f),this.push.apply(this,[f].concat(_.Hs(c.continuationItems)))):
Q===S.length?this.push.apply(this,[f].concat(_.Hs(c.continuationItems))):this.splice.apply(this,[f,Q,1].concat(_.Hs(c.continuationItems))):this.splice(f,Q,1);(_.u("web_enable_voting_animation")||_.u("enable_music_web_cairo_voting_animation"))&&_.Az(this.hostElement,"yt-append-continuation-items-action-finished");_.Az(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.i5(new _.Yr("append continuation items does not exist",Q));else _.i5(new _.Yr("append continuation path does not exist",
Q))}};
_.J.handleReloadContinuationItemsCommand=function(S){var c=_.Y(S,_.CCR);if(this.data&&c){if(_.u("web_explore_hub")||_.u("web_client_explore_hub")||_.u("web_explore_hub_on_hover")||_.u("web_client_explore_hub_on_hover"))try{_.fl().resolve(k3).resolveCommand(S)}catch(a){}if(this.data.targetId&&this.continuationPathMap&&c.targetId===this.data.targetId&&(!_.u("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||c.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var Q,f=
(Q=c.slot)==null?void 0:Q.replace("RELOAD_CONTINUATION_SLOT_","");Q=(S=Zvo(S)+"-"+(f==null?void 0:f.toLowerCase()))&&this.continuationPathMap[S];if(!Q||!S||!f)_.i5(new _.Yr("reload continuation path does not exist",S));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(c)){if(c.replaceWithFirstItem){var U;this.set("data."+Q,((U=c.continuationItems)==null?0:U.length)?c.continuationItems[0]:{})}else this.set("data."+Q,c.continuationItems?c.continuationItems:
[]);this.continuationIsReloading=!1;_.Az(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.J.handleShowReloadUiCommand=function(S){S=_.Y(S,G1e);var c;((c=this.data)==null?0:c.targetId)&&(S==null?0:S.targetId)&&S.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
ri.prototype.observeData=ri.prototype.observeData;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ri.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ri.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ri.prototype,"data",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],ri.prototype,"continuationIsReloading",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ri.prototype,"observeData",null);_.d([_.KU()],ri);_.di=[_.vb.YtComponentBehavior,_.AN.YtActionHandlerBehavior,ri.prototype];_.vM={};_.vM.YtNextContinuationBehavior=[_.Qv.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",_.xn(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.xn(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(S,c){S.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,c,{}):(S={locationRetrieved:function(Q){this.makeNextContinuationRequest_(Q,c,{})}.bind(this)},_.Az(this.hostElement,"yt-retrieve-location",S))},
makeNextContinuationRequest_:function(S,c,Q){_.Z5("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();S=c(S);var f;this.canUseContextualNetworkManager_()&&(f=this.getNetworkManager());f||(f=_.fl().resolve(_.s_));c=_.dj.instance;if(_.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&c){f=_.RB([S.startsWith("/")?S.substr(1):S]);var U,a;Q=_.ZC(c,{},f,Q==null?void 0:(U=Q.context)==null?void 0:(a=U.clickTracking)==null?void 0:a.clickTrackingParams).then(function(X){return{response:X}})}else Q=
this.nextContinuation.usePost?f.postData(S,Q):f.fetchData(S);
Q.then(this.updateNextContinuationData_.bind(this,S));this.pendingContinuationRequest_=Q;this.startListeningForNavigate_()},
updateNextContinuationData_:function(S,c){var Q=this;_.Z5("ncl");this.pendingContinuationRequest_=void 0;if(c){var f={};this.nextContinuation&&(f=this.nextContinuation);if(c.response&&c.response.continuationContents&&c.response.continuationContents[f.continuationType]){S=c.response.continuationContents[f.continuationType];var U=f.header||"data.header",a=S[f.responseHeaderKey||"header"];a&&this.set(U,a);U=f.contentsArray||"data.contents";a=this.getContents_(S,f.responseContentsKey||"contents")||[];
this.pathExists_(U)?(a.unshift(U),this.push.apply(this,a)):this.set(U,a);a&&(KaY(_.Kv(),c.response,this.hostElement,function(X){_.XF(Q.hostElement,"yt-store-grafted-ve-action",[X])}),_.Az(this.hostElement,"yt-next-continuation-data-updated",{continuationData:c,
page:this,contentsArray:U}));this.set(f.continuationsArray||"data.continuations",S[f.responseContinuationsKey||"continuations"]||[])}else c.reload?_.i5(new _.Yr("Reloading from continuation is unsupported")):c.responseContext&&c.responseContext.errors||(delete c.xsrf_token,delete c.timing,delete c.endpoint,delete c.csn,c.responseContext&&delete c.responseContext.serviceTrackingParams,U={request:_.tS(S,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(c).sort()},c.response&&(U.responseContentKeys=
Object.keys(c.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(U.continuationType=this.nextContinuation.continuationType.substr(0,256)),c=new _.Yr("Malformed continuation",U),S.indexOf("/comment_service_ajax")==0?_.i5(c):_.sH(c)),this.set(f.continuationsArray||"data.continuations",[])}else _.MP(new _.Yr("Missing continuation response",S))},
getContents_:function(S,c){c=c.split(".");return _.Cn.getValueByKeys(S,c)},
pathExists_:function(S){var c=this;S=S.toString().split(".");for(var Q=0;Q<S.length;Q++)if(c=c[S[Q]],c===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var OeH;var zF$;var PM=function(){var S=_.W.apply(this,arguments)||this;S.triggered_=!1;return S};
_.C(PM,_.W);_.J=PM.prototype;_.J.attached=function(){this.maybeTriggerAutoload()};
_.J.detached=function(){this.hasBeenTriggered_=!1};
_.J.onPrescanVisible=function(){this.onShow()};
_.J.onShow=function(){this.showButton||this.trigger()};
_.J.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.Az(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.J.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.J.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.J.computeLabel_=function(S,c){return S===void 0?null:S.label||!c?S.label:this.showMoreText_};
_.J.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.J.getContinuationUrl=function(S){var c={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(c.itct=this.data.clickTrackingParams);return _.V0(S,c)};
_.J.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
PM.prototype.showButtonChanged_=PM.prototype.showButtonChanged_;PM.prototype.observeData_=PM.prototype.observeData_;_.d([_.p(_.Ex.YtVisibilityBehavior),_.P("design:type",Object)],PM.prototype,"ytVisibilityBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],PM.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],PM.prototype,"showButton",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],PM.prototype,"showIcon",void 0);_.d([_.Z({computed:"computeLabel_(data, showButton)"}),_.P("design:type",Object)],PM.prototype,"label",void 0);_.d([_.Z({value:_.LK(_.K8("SHOW_MORE",void 0,"Show More"))}),_.P("design:type",Object)],PM.prototype,"showMoreText_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],PM.prototype,"spinnerActive_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],PM.prototype,"hasBeenTriggered_",void 0);
_.d([_.Z({value:void 0}),_.P("design:type",String)],PM.prototype,"observeVisibleOption",void 0);_.d([_.Z({value:void 0}),_.P("design:type",String)],PM.prototype,"observeHiddenOption",void 0);_.d([_.Z({value:"observe_once"}),_.P("design:type",Object)],PM.prototype,"observePrescanOption",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PM.prototype,"observeData_",null);
_.d([_.B0("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PM.prototype,"showButtonChanged_",null);_.d([_.wM({is:"yt-next-continuation",disableElementRegistration:!0})],PM);
_.k(PM,"yt-next-continuation",function(){if(zF$===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;OeH===void 0&&(OeH=document.createElement("template"));var f=OeH;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);zF$=S}S=zF$;return S},{mode:2});var xa$;var Fas;var L2=function(){return _.W.apply(this,arguments)||this};
_.C(L2,_.W);L2.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],L2.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],L2.prototype,"data",void 0);_.d([_.wM({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],L2);
_.k(L2,"yt-music-pass-small-feature-info-renderer",function(){if(Fas===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;xa$===void 0&&(xa$=document.createElement("template"));var f=xa$;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Fas=S}S=Fas;return S},{mode:2});_.i8("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var E4=function(){var S=_.W.apply(this,arguments)||this;S.isCollapsible=!1;S.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return S};
_.C(E4,_.W);_.J=E4.prototype;_.J.computeIsCollapsible=function(S){return!!(((S==null?0:S.showMoreText)||(S==null?0:S.visibleRowCount))&&(S==null?0:S.isCollapsible))};
_.J.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"}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.J.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.J.onIronResize=function(){var S=this;_.e$(this,"updateGridInitItems",function(){S.maybeUpdateInitialItemsDisplayed()})};
_.J.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var S=this.getVisibleWidth();S!==0&&(S=Math.floor(S/214)*(this.data.visibleRowCount||2),S!==this.initialCount&&(this.initialCount=S,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.J.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.J.computeExpandVisible=function(S,c,Q,f){return S&&c&&Q&&!!f&&!!f.showMoreText};
_.J.computeShowMoreButton=function(S){return{text:S,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.J.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.J.initCollapsed=function(){var S=this;this.ytLazyListBehavior.canShowMore=!1;var c;(this.collapsed=!((c=this.data)==null||!c.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.tO(this,function(){_.Oz(S.hostElement,"yt-refit-popups-action")})};
_.J.fillRestIfNotCollapsible=function(){var S=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!S||this.ytLazyListBehavior.fillRemainingListItems()};
_.J.computeViewAllHidden=function(S,c){return S||!c.viewAllEndpoint};
E4.prototype.fillRestIfNotCollapsible=E4.prototype.fillRestIfNotCollapsible;E4.prototype.initCollapsed=E4.prototype.initCollapsed;E4.prototype.onIronResize=E4.prototype.onIronResize;E4.prototype.persistentGuideChanged=E4.prototype.persistentGuideChanged;_.d([_.p(_.w9),_.P("design:type",Object)],E4.prototype,"ironResizableBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],E4.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],E4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],E4.prototype,"ytLazyListBehavior",void 0);_.d([_.p(_.vM.YtNextContinuationBehavior),_.P("design:type",Object)],E4.prototype,"ytNextContinuationBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],E4.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.p(_.di),_.P("design:type",Object)],E4.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],E4.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],E4.prototype,"collapsed",void 0);_.d([_.Z(),_.P("design:type",Number)],E4.prototype,"initialCount",void 0);_.d([_.Z({computed:"computeShowMoreButton(data.showMoreText)"}),_.P("design:type",Object)],E4.prototype,"showMoreButton",void 0);
_.d([_.Z({computed:"computeIsCollapsible(data)"}),_.P("design:type",Object)],E4.prototype,"isCollapsible",void 0);_.d([_.nU("#items"),_.P("design:type",HTMLElement)],E4.prototype,"items",void 0);_.d([_.$n("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E4.prototype,"persistentGuideChanged",null);_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E4.prototype,"onIronResize",null);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E4.prototype,"initCollapsed",null);_.d([_.$n("canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],E4.prototype,"fillRestIfNotCollapsible",null);_.d([_.e({is:"ytd-grid-renderer",disableElementRegistration:!0})],E4);
_.k(E4,"ytd-grid-renderer",function(){if(cgh!==void 0)return cgh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return cgh=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var tL=function(){return _.W.apply(this,arguments)||this};
_.C(tL,_.W);
tL.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"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],tL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tL.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tL.prototype,"data",void 0);_.d([_.e({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],tL);
_.k(tL,"ytd-carousel-ad-renderer",function(){if(Rae!==void 0)return Rae;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Rae=S},{mode:1});var Bnl;var V3=function(){return _.W.apply(this,arguments)||this};
_.C(V3,_.W);_.J=V3.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,V3.JSC$13307_CLICK_LOCATION_ID_MAP))};
_.J.onSitelinkTap=function(S){S.stopPropagation();var c,Q,f=S==null?void 0:(c=S.model)==null?void 0:(Q=c.item)==null?void 0:Q.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,S,!1)};
_.J.onTap=function(S){var c=this.data&&this.data.content&&this.data.content.navigationEndpoint;c&&this.ytSparklesClickLocationBehavior.handleClick(c,S,!1)};
_.J.sendImpression=function(){if(this.data&&this.data.content)for(var S=_.A(this.data.content.impressionEndpoints||[]),c=S.next();!c.done;c=S.next()){c=_.A(c.value.loggingUrls||[]);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.baseUrl&&Pt(Q.baseUrl,Q.attributionSrcMode)}};
V3.prototype.onTap=V3.prototype.onTap;V3.prototype.dataChanged=V3.prototype.dataChanged;V3.JSC$13307_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"]]);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],V3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],V3.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],V3.prototype,"data",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V3.prototype,"dataChanged",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],V3.prototype,"onTap",null);_.d([_.e({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],V3);
_.k(V3,"ytd-promoted-sparkles-text-search-renderer",function(){if(Bnl!==void 0)return Bnl;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Bnl=S},{mode:1});var Ibi;var R2=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-mute-ad-action":"handleMuteAd"};return S};
_.C(R2,_.W);_.J=R2.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.u("fix_alignment_search_desktop_text_image_ads_small_screens")?"menu":"old-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverride]]"}}}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge-search",
mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},"data.adBadge":{id:"ad-badge-new",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.J.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.J.computeHasAdBadge=function(S){return!(S==null||!S.adBadge)};
_.J.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",R2.JSC$13316_DEFAULT_AD_BADGE_RENDERER),_.a1(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,R2.JSC$13316_CLICK_LOCATION_ID_MAP))};
_.J.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var S;(((S=this.data)==null?void 0:S.impressionCommands)||[]).forEach(function(c){c=_.A(c.loggingUrls||[]);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.baseUrl&&Pt(Q.baseUrl,Q.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.J.onTap=function(S){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint,f;(c=(f=this.data)==null?void 0:f.thumbnailNavigationEndpoint)&&_.yn(_.t4(S),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(c,S,!1):Q&&this.ytSparklesClickLocationBehavior.handleClick(Q,S,!1)};
_.J.handleMuteAd=function(){this.collapsed=!0};
_.J.attached=function(){var S=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Rh.Object.defineProperties(R2.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var S;return!(((S=this.data)==null?void 0:S.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var S;return!(((S=this.data)==null?void 0:S.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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}}});
R2.prototype.dataChanged=R2.prototype.dataChanged;
R2.JSC$13316_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"]]);
R2.JSC$13316_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.K8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],R2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],R2.prototype,"ytRendererBehavior",void 0);_.d([_.p(wL),_.P("design:type",Object)],R2.prototype,"ytdActiveViewBehavior",void 0);
_.d([_.p([_.AN.YtActionHandlerBehavior]),_.P("design:type",Object)],R2.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],R2.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],R2.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],R2.prototype,"collapsed",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],R2.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],R2.prototype,"biggerThumbsStyle",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.P("design:type",Boolean)],R2.prototype,"fixAlignmentSmallScreens",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs_square")}}),
_.P("design:type",Boolean)],R2.prototype,"useBiggerThumbsSquare",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.mediaHoverOverlay"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R2.prototype,"hideHoverOverlay",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R2.prototype,"webSearchLayout",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R2.prototype,"webSearchLayoutLandscape",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R2.prototype,"webSearchLayoutSquare",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R2.prototype,"sparklesCtaNoBackground",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.actionButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R2.prototype,"hideActionButton",null);_.d([_.Z({computed:"computeButtonOverride(uiUpdate)"}),_.P("design:type",Object)],R2.prototype,"buttonOverride",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.P("design:type",Boolean)],R2.prototype,"hasNewAdBadge",void 0);_.d([_.M("data.promotedSparklesWebStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],R2.prototype,"useRoundedBadge",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R2.prototype,"dataChanged",null);_.d([_.e({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],R2);
_.k(R2,"ytd-promoted-sparkles-web-renderer",function(){if(Ibi!==void 0)return Ibi;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Ibi=S},{mode:1});var n2d;var y3=function(){return _.W.apply(this,arguments)||this};
_.C(y3,_.W);_.J=y3.prototype;_.J.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]]"}}}}}};
_.J.computeShowCta=function(S){return!(S==null||!S.ctaRenderer)};
_.J.onCtaClick=function(){var S,c,Q,f=(S=this.data)==null?void 0:(c=S.ctaRenderer)==null?void 0:(Q=c.buttonRenderer)==null?void 0:Q.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.J.onWatchButtonClick=function(){var S,c,Q,f=(S=this.data)==null?void 0:(c=S.watchButtonRenderer)==null?void 0:(Q=c.buttonRenderer)==null?void 0:Q.command;f&&this.ytComponentBehavior.resolveCommand(f)};
_.J.onTap=function(){};
_.J.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",y3.JSC$13319_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",y3.JSC$13319_DEFAULT_CLICK_LOCATION_BEHAVIOR,y3.JSC$13319_CLICK_LOCATION_ID_MAP),this.thumbnail)){var S=this.thumbnail.getElementsByTagName("a");S.length>0&&(S=S.namedItem("thumbnail"))&&S.removeAttribute("href")}};
_.J.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var S=_.A(this.data.impressionUrls),c=S.next();!c.done;c=S.next())c=c.value,$6o(c,jMo(c));this.data.impressionsFired=!0}};
_.J.maybeComputeHref=function(){return null};
_.J.computeIsShortDR=function(S){return!(S==null||!S.watchButtonRenderer)&&!(S==null||!S.ctaRenderer)&&!!this.enableShortDR};
_.J.computeIsNewUiOrShortDr=function(S){return!!this.enableUiUpdate||this.computeIsShortDR(S)};
_.J.computeIsNewUiAndNotShortDr=function(S){return!!this.enableUiUpdate&&!this.computeIsShortDR(S)};
_.J.computeHideAvatar=function(S){return!((S==null?0:S.channelThumbnail)&&this.computeIsNewUiOrShortDr(S))};
_.J.onClick=function(S){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint;if(this.enableShortDR&&Q&&(_.Y(Q,_.tG)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(Q,S,!!_.Y(Q,_.tG)),S.stopPropagation();else if(Q&&_.Y(Q,_.tG))this.ytSparklesClickLocationBehavior.handleClick(Q,S,!0),S.stopPropagation();else if(Q){var f,U;((f=this.data)==null?0:f.navigationEndpoint)&&((U=this.data)==null?0:U.adPlaybackContextParams)&&Ofz(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(Q)}};
_.J.computeButtonOverride=function(S){if(this.computeIsNewUiOrShortDr(S))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.J.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.J.onThumbnailContainerClick=function(S){this.onClick(S)};
_.J.computeThumbnailWidth=function(S,c){return S?c==="MASSIVE"?600:c==="BIG"?500:c==="MEDIUM"?450:420:360};
_.J.attached=function(){var S=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
y3.prototype.dataChanged=y3.prototype.dataChanged;y3.prototype.onTap=y3.prototype.onTap;y3.JSC$13319_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.K8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};y3.JSC$13319_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
y3.JSC$13319_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"}];_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],y3.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],y3.prototype,"ytRendererBehavior",void 0);_.d([_.p(wL),_.P("design:type",Object)],y3.prototype,"ytdActiveViewBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],y3.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],y3.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],y3.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],y3.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_video_display_compact_button_group_for_desktop_search")}}),
_.P("design:type",Boolean)],y3.prototype,"enableShortDR",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_vac_ui_update_for_desktop_search")}}),
_.P("design:type",Boolean)],y3.prototype,"enableUiUpdate",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],y3.prototype,"biggerThumbsStyle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.P("design:type",Boolean)],y3.prototype,"showCta",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.P("design:type",Boolean)],y3.prototype,"isShortDr",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.P("design:type",Boolean)],y3.prototype,"isShortDrOrNewUi",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.P("design:type",Boolean)],y3.prototype,"isNewUiAndNotShortDr",void 0);_.d([_.Z({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],y3.prototype,"buttonOverride",void 0);_.d([_.Z({computed:"computeSecondaryButtonOverride(data)"}),_.P("design:type",Object)],y3.prototype,"secondaryButtonOverride",void 0);_.d([_.nU("ytd-thumbnail"),_.P("design:type",HTMLElement)],y3.prototype,"thumbnail",void 0);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y3.prototype,"onTap",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y3.prototype,"dataChanged",null);_.d([_.e({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],y3);
_.k(y3,"ytd-promoted-video-renderer",function(){if(n2d!==void 0)return n2d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return n2d=S},{mode:1});var bed;var o2=function(){var S=_.W.apply(this,arguments)||this;S.useRoundedBadge=!0;S.sitelinkIds=[];return S};
_.C(o2,_.W);_.J=o2.prototype;
_.J.configureRendererStamper=function(){return{"data.menu":{id:_.u("enable_text_ad_web_thumbnail_scaling_fix")?"new-menu":"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.mediaHoverOverlay":{id:"media-hover-overlay",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{verticallyAligned:!0}}}},"data.mediaBadge":{id:"media-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.mediaBadge]]",useRoundedBadge:"[[useRoundedBadge]]"}}}},
"data.adBadge":{id:"ad-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adBadge]]"}}}}}};
_.J.dataChanged=function(){var S;(S=this.data)!=null&&S.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,o2.JSC$13326_CLICK_LOCATION_ID_MAP)};
_.J.onTap=function(S){var c,Q=(c=this.data)==null?void 0:c.navigationCommand;Q&&!_.yn(_.t4(S),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(Q,S,!1)};
_.J.onSitelinkTap=function(S){var c,Q,f=S==null?void 0:(c=S.model)==null?void 0:(Q=c.item)==null?void 0:Q.onTap;f&&this.ytSparklesClickLocationBehavior.handleClick(f,S,!1)};
_.J.configureSitelinkClickTargets=function(){var S=this,c,Q,f=(c=this.data)==null?void 0:(Q=c.clickLocationTargets)==null?void 0:Q.find(function(U){return U.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
f&&_.Ur(this.hostElement).querySelectorAll(".sitelink").forEach(function(U){_.a1(U,"yt-simple-endpoint",!0);S.sitelinkIds.push(U.id);var a,X;(a=S.ytSparklesClickLocationBehavior)==null||(X=a.clickTargetMap)==null||X.set(U.id,f)})};
_.J.sendImpression=function(){var S,c,Q=((S=this.data)==null?void 0:(c=S.impressionCommand)==null?void 0:c.loggingUrls)||[];S=_.A(Q);for(c=S.next();!c.done;c=S.next())c=c.value,c.baseUrl&&Pt(c.baseUrl,c.attributionSrcMode)};
_.J.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.Rh.Object.defineProperties(o2.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
o2.prototype.onTap=o2.prototype.onTap;o2.prototype.dataChanged=o2.prototype.dataChanged;o2.JSC$13326_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"]]);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],o2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],o2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],o2.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],o2.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],o2.prototype,"showFavicon",null);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],o2.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],o2.prototype,"biggerThumbsStyle",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.P("design:type",Boolean)],o2.prototype,"enableThumbnailScalingFix",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o2.prototype,"dataChanged",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],o2.prototype,"onTap",null);_.d([_.e({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],o2);
_.k(o2,"ytd-text-image-no-button-layout-renderer",function(){if(bed!==void 0)return bed;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return bed=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var Nn$;var mz=function(){var S=_.W.apply(this,arguments)||this;S.isInlinePlaybackState=!1;S.uiUpdate=_.u("web_modern_buttons");S.hideCta=_.u("hide_cta_for_home_web_video_ads");S.noBottomMargin=!1;S.animateInTimeStamp=_.a6("hide_cta_for_home_web_video_ads_animate_in_time");S.animateInCta=!1;S.isHovered=!1;S.player=null;S.JSC$13333_playerEvents=new Map;S.JSC$13333_preventProgressSaveTimer=null;S.delayedCtaJobId=null;return S};
_.C(mz,_.W);_.J=mz.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){this.JSC$13333_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13333_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.u("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.J.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13333_playerEvents)};
_.J.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",mz.JSC$13332_DEFAULT_CLICK_LOCATION_BEHAVIOR,mz.JSC$13332_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.J.hoverChanged=function(){var S=this;this.delayedCtaJobId&&(_.Mq.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.u("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.u9(_.Mq,function(){S.buttonContainer.classList.add("show-delayed-buttons")},_.a6("delayed_cta_on_web_delay_milliseconds")))};
_.J.setPlayer=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return(c=_.Oz(S.hostElement,"yt-get-inline-preview-player-action"))&&c[0]?_.F(Q,c[0].getPlayerPromise(),3):Q.jumpTo(0);S.player=Q.yieldResult;S.ytPlayerListenerBehavior.listenToPlayerEvents(S.player,S.JSC$13333_playerEvents);_.IN(Q)})};
_.J.onPlaybackStart=function(){var S=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13333_preventProgressSaveTimer=_.Xi(_.Mq,function(){S.JSC$13333_preventProgressSaveTimer=null},1E4))};
_.J.onVideoProgress=function(S){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&S>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.J.resetPreventProgressSaveTimer=function(){_.Mq.cancelJob(this.JSC$13333_preventProgressSaveTimer);this.JSC$13333_preventProgressSaveTimer=null};
_.J.getSimpleString=function(S){return _.Em(S)};
_.J.onClick=function(S){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint,f;c=(f=this.data)==null?void 0:f.channelEndpoint;var U,a;(f=(a=_.Y((U=this.data)==null?void 0:U.adCtaButton,_.GF))==null?void 0:a.command)&&_.yn(_.t4(S),this.hostElement,["call-to-action"])?_.u("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(f,S,!1):c&&_.yn(_.t4(S),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(c,S,!1):!_.yn(_.t4(S),this.hostElement,["secondary-button"])&&Q&&(_.u("enable_short_dr_for_desktop_launchable")?(U=!!_.Y(Q,_.tG),this.isInlinePlaybackState&&U&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(Q,S,U)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(Q,S,!0)))}};
_.J.updateWatchEndpointStartTime=function(){var S,c;this.player&&((S=this.data)==null?0:S.inlinePlaybackEndpoint)&&((c=this.data)==null?0:c.navigationEndpoint)&&!this.JSC$13333_preventProgressSaveTimer&&(S=Math.floor(this.player.getCurrentTime()),_.Y(this.data.navigationEndpoint,_.tG).startTimeSeconds=S,_.Y(this.data.inlinePlaybackEndpoint,_.tG).startTimeSeconds=S)};
_.J.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.J.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.Rh.Object.defineProperties(mz.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.u("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.watchButton)&&!((c=this.data)==null||!c.adCtaButton)}}});
mz.prototype.hoverChanged=mz.prototype.hoverChanged;mz.prototype.dataChanged=mz.prototype.dataChanged;
mz.JSC$13332_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"]]);
mz.JSC$13332_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"}];
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mz.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],mz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],mz.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],mz.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],mz.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mz.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mz.prototype,"isInlinePlaybackState",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],mz.prototype,"miniMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mz.prototype,"uiUpdate",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mz.prototype,"hideCta",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mz.prototype,"noBottomMargin",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mz.prototype,"animateInCta",void 0);_.d([_.Z({computed:"computeButtonOverride(uiUpdate)"}),_.P("design:type",Object)],mz.prototype,"buttonOverride",void 0);
_.d([_.Z({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.P("design:type",Object)],mz.prototype,"secondaryButtonOverride",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mz.prototype,"isHovered",void 0);_.d([_.nU("#button-container"),_.P("design:type",HTMLElement)],mz.prototype,"buttonContainer",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],mz.prototype,"typographyBump",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("typographyBump"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],mz.prototype,"typographyBumpV2",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mz.prototype,"dataChanged",null);_.d([_.B0("isHovered"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mz.prototype,"hoverChanged",null);
_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],mz.prototype,"isButtonGroup",null);_.d([_.e({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],mz);
_.k(mz,"ytd-ad-inline-playback-meta-block",function(){if(Nn$!==void 0)return Nn$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Nn$=S},{mode:_.A2("kevlar_poly_si_batch_j065")?1:2});var Kal;var S4=function(){var S=_.W.apply(this,arguments)||this;S.noBottomMargin=!1;S.isInlinePreviewTriggered=!1;S.JSC$13338_activeViewMeasurementDataResolver=_.L4();return S};
_.C(S4,_.W);_.J=S4.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var S=this;this.updateInlinePreviewHoverListeners();this.JSC$13338_activeViewMeasurementDataResolver.promise.then(function(c){S.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)});
_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners();_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13338_inlinePreviewHoverListener=t8({mediaRenderer:this,lockupElement:this.JSC$13338_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:q5T})};
_.J.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13338_inlinePreviewHoverListener)==null||Jw(S)};
_.J.onDataChanged=function(){var S;((S=this.data)==null?0:S.activeView)&&this.JSC$13338_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",S4.JSC$13337_DEFAULT_CLICK_LOCATION_BEHAVIOR,S4.JSC$13337_CLICK_LOCATION_ID_MAP);this.thumbnail&&(S=this.thumbnail.getElementsByTagName("a"),S.length>0&&(S=S.namedItem("thumbnail"))&&S.removeAttribute("href"));var c,Q;if(((c=this.data)==
null?0:c.hasAutoplay)||((Q=this.data)==null?0:Q.forceImpAutoplay)){var f;(f=this.JSC$13338_inlinePreviewHoverListener)==null||Wfp(f)}};
_.J.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.J.onThumbnailContainerClick=function(S){if(this.data&&this.data.navigationEndpoint){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(Q,S,!!_.Y(Q,_.tG));S.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var S=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,Q,f=(Q=_.Y((c=this.data)==null?void 0:c.onImpression,_.II))==null?void 0:Q.commands;f&&(f.forEach(function(U){U.clickTrackingParams&&delete U.clickTrackingParams;S.ytComponentBehavior.resolveCommand(U)}),this.data.impressionsFired=!0)}};
_.Rh.Object.defineProperties(S4.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13338_inlinePreviewHoverListener)==null?0:su(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
S4.prototype.onTypographyBumpChanged=S4.prototype.onTypographyBumpChanged;S4.prototype.onDataChanged=S4.prototype.onDataChanged;S4.JSC$13337_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);S4.JSC$13337_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"}];
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],S4.prototype,"ytComponentBehavior",void 0);_.d([_.p(wL),_.P("design:type",Object)],S4.prototype,"ytdActiveViewBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],S4.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],S4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],S4.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.rL),_.P("design:type",Object)],S4.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],S4.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],S4.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],S4.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],S4.prototype,"noBottomMargin",void 0);
_.d([_.Z(),_.P("design:type",Object)],S4.prototype,"isInlinePreviewTriggered",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],S4.prototype,"miniMode",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],S4.prototype,"typographyBump",void 0);_.d([_.nU("ytd-thumbnail"),_.P("design:type",HTMLElement)],S4.prototype,"thumbnail",void 0);_.d([_.nU("#dismissible"),_.P("design:type",HTMLElement)],S4.prototype,"JSC$13338_dismissibleMedia",void 0);
_.d([_.nU("ytd-ad-inline-playback-meta-block"),_.P("design:type",HTMLElement)],S4.prototype,"adInlinePlaybackMetaBlock",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S4.prototype,"onDataChanged",null);_.d([_.$n("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S4.prototype,"onTypographyBumpChanged",null);
_.d([_.M("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],S4.prototype,"isHovered",null);_.d([_.e({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],S4);
_.k(S4,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(Kal!==void 0)return Kal;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Kal=S},{mode:1});var $ad;var cX=function(){var S=_.W.apply(this,arguments)||this;S.isInlinePreviewTriggered=!1;S.JSC$13341_activeViewMeasurementDataResolver=_.L4();return S};
_.C(cX,_.W);_.J=cX.prototype;_.J.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.attached=function(){var S=this;this.updateInlinePreviewHoverListeners();this.JSC$13341_activeViewMeasurementDataResolver.promise.then(function(c){S.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)})};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13341_inlinePreviewHoverListener=t8({mediaRenderer:this,lockupElement:this.JSC$13341_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:q5T})};
_.J.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$13341_inlinePreviewHoverListener)==null||Jw(S)};
_.J.onDataChanged=function(){var S;((S=this.data)==null?0:S.activeView)&&this.JSC$13341_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",cX.JSC$13340_DEFAULT_CLICK_LOCATION_BEHAVIOR,cX.JSC$13340_CLICK_LOCATION_ID_MAP);this.thumbnail&&(S=this.thumbnail.getElementsByTagName("a"),S.length>0&&(S=S.namedItem("thumbnail"))&&S.removeAttribute("href"))};
_.J.onThumbnailContainerClick=function(S){if(this.data&&this.data.navigationEndpoint){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(Q,S,!0);S.stopPropagation()}};
_.J.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.J.impressionLog=function(){var S=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var c,Q,f=(Q=_.Y((c=this.data)==null?void 0:c.onImpression,_.II))==null?void 0:Q.commands;f&&(f.forEach(function(U){U.clickTrackingParams&&delete U.clickTrackingParams;_.fl().resolve(_.U8).resolveCommand(U,{form:{element:S.hostElement}})}),this.data.impressionsFired=!0)}};
_.Rh.Object.defineProperties(cX.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$13341_inlinePreviewHoverListener)==null?0:su(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
cX.prototype.onDataChanged=cX.prototype.onDataChanged;cX.JSC$13340_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);cX.JSC$13340_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"}];_.d([_.p(wL),_.P("design:type",Object)],cX.prototype,"ytdActiveViewBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],cX.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],cX.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],cX.prototype,"ytdReduxBehavior",void 0);
_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],cX.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],cX.prototype,"isInlinePreviewTriggered",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],cX.prototype,"miniMode",void 0);_.d([_.nU("ytd-thumbnail"),_.P("design:type",HTMLElement)],cX.prototype,"thumbnail",void 0);
_.d([_.nU("#dismissible"),_.P("design:type",HTMLElement)],cX.prototype,"JSC$13341_dismissibleMedia",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cX.prototype,"onDataChanged",null);_.d([_.M("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cX.prototype,"isHovered",null);_.d([_.e({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],cX);
_.k(cX,"ytd-video-display-full-buttoned-renderer",function(){if($ad!==void 0)return $ad;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return $ad=S},{mode:1});var IC=function(S,c,Q,f){f=f===void 0?!1:f;_.Sx.call(this,S);this.adsClientErrorMessage=Q;this.aggressivelySample=f;this.args=[];c&&this.args.push(c)};
_.C(IC,_.Sx);var Ff=function(S,c,Q,f){f=f===void 0?!1:f;_.Sx.call(this,S);this.adsClientErrorMessage=Q;this.aggressivelySample=f;this.args=[];c&&this.args.push(c)};
_.C(Ff,_.Sx);var u$d=function(S){_.C9.call(this);var c=this;this.initializationFunction=S;this.instance=null;this.addOnDisposeCallback(function(){_.yN(c.instance);c.instance=null})};
_.C(u$d,_.C9);u$d.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.QV("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var Dap=function(){var S=new Map;[].forEach(function(c){S.set(c.JSC$26972_getType(),c)})};new Promise(function(){});var jsc=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"]]),$ap=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"}]]),js_=function(S){this.experimentApiProvider=S;S=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=S<.1};var Qe=function(S,c,Q,f){_.C9.call(this);this.adsControlFlowEventListeners=c;this.adEventLogger=Q;this.experimentApiProvider=f;this.adsControlFlowManagerHelper=S(this,this,this,this,this);_.F5(this,this.adsControlFlowManagerHelper);S=_.A(c);for(c=S.next();!c.done;c=S.next())_.F5(this,c.value)};
_.C(Qe,_.C9);var lbe=function(S,c,Q,f){fX(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",c,Q,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f);S=_.A(S.adsControlFlowEventListeners);for(f=S.next();!f.done;f=S.next())lbe(f.value,c,Q)};
_.J=Qe.prototype;_.J.onOpportunityProcessedExternallyManaged=function(S,c,Q,f){fX(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",S,Q,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,f)};
_.J.onSlotReceivedExternallyManaged=function(S,c){US(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",S,c)};
_.J.onSlotEntered=function(S){if(JT(this.adsControlFlowManagerHelper,S)!=null){US(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",S);this.adsControlFlowManagerHelper.onSlotEntered(S);for(var c=_.A(this.adsControlFlowEventListeners),Q=c.next();!Q.done;Q=c.next())Q.value.onSlotEntered(S);if(JT(this.adsControlFlowManagerHelper,S)!=null&&JT(this.adsControlFlowManagerHelper,S).isOccupyingSlotType()&&aS(this.adsControlFlowManagerHelper,S)&&!Y1z(this.adsControlFlowManagerHelper,S)){var f;AT(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",S,(f=aS(this.adsControlFlowManagerHelper,S))!=null?f:void 0);S=JT(this.adsControlFlowManagerHelper,S);S.slotLifecycleStage!=="entered"&&Xv(S.slot,S.slotLifecycleStage,"enterLayoutForSlot");S.slotLifecycleStage="rendering";S.registeredLayoutRenderingAdapter.startRendering(S.layout)}}};
_.J.onSlotExited=function(S){if(JT(this.adsControlFlowManagerHelper,S)!=null){US(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",S);this.adsControlFlowManagerHelper.onSlotExited(S);for(var c=_.A(this.adsControlFlowEventListeners),Q=c.next();!Q.done;Q=c.next())Q.value.onSlotExited(S);JT(this.adsControlFlowManagerHelper,S)!=null&&JT(this.adsControlFlowManagerHelper,S).markedForUnscheduleAfterOutboundAdapterRequests&&CLH(this,S)}};
_.J.onLayoutReceivedExternallyManaged=function(S,c,Q){S.managerLayer!=="core"&&AT(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",S,c,Q)};
var Hez=function(S,c,Q){if(JT(S.adsControlFlowManagerHelper,c)!=null){AT(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,Q);S=_.A(S.adsControlFlowEventListeners);for(var f=S.next();!f.done;f=S.next())Hez(f.value,c,Q)}};
Qe.prototype.onLayoutExited=function(S,c,Q){if(JT(this.adsControlFlowManagerHelper,S)!=null){AT(this.adEventLogger,u$p(Q),S,c);this.adsControlFlowManagerHelper.onLayoutExited(S,c);for(var f=_.A(this.adsControlFlowEventListeners),U=f.next();!U.done;U=f.next())U.value.onLayoutExited(S,c,Q);(Q=aS(this.adsControlFlowManagerHelper,S))&&c.layoutId===Q.layoutId&&Dad(this,S)}};
Qe.prototype.disposeInternal=function(){var S=pfp(this.adsControlFlowManagerHelper);S=_.A(S);for(var c=S.next();!c.done;c=S.next())CLH(this,c.value);_.C9.prototype.disposeInternal.call(this)};
var CLH=function(S,c){if(JT(S.adsControlFlowManagerHelper,c)!=null)if(JT(S.adsControlFlowManagerHelper,c).JSC$27003_isSlotExitRequested()||JT(S.adsControlFlowManagerHelper,c).JSC$27003_isLayoutExitRequested())JT(S.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(JT(S.adsControlFlowManagerHelper,c).isOccupyingSlotType())JT(S.adsControlFlowManagerHelper,c).markedForUnscheduleAfterOutboundAdapterRequests=!0,Dad(S,c);else if(JT(S.adsControlFlowManagerHelper,c).JSC$27003_isSlotFillRequested())JT(S.adsControlFlowManagerHelper,
c).markedForUnscheduleAfterOutboundAdapterRequests=!0,JT(S.adsControlFlowManagerHelper,c)!=null&&(US(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",c),c=JT(S.adsControlFlowManagerHelper,c),c.fulfillmentLifecycleStage="fill_cancel_requested",c.registeredFulfillmentAdapter.cancelSlotFilling());else{var Q=aS(S.adsControlFlowManagerHelper,c),f;S.experimentApiProvider.get();(f=_.u("h5_enable_layout_unscheduling_events"))&&(Q?hFd(S,c,Q):_.QV(Error("Jh"),c,Q,void 0,!1));US(S.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",c);var U=JT(S.adsControlFlowManagerHelper,c),a=c.slotEntryTrigger,X=U.registeredSlotEntryTriggerAdapters.get(a.triggerId);X&&(X.unregisterTrigger(a),U.registeredSlotEntryTriggerAdapters.delete(a.triggerId));a=_.A(c.slotFulfillmentTriggers);for(X=a.next();!X.done;X=a.next()){X=X.value;var z=U.registeredFulfillmentTriggerAdapters.get(X.triggerId);z&&(z.unregisterTrigger(X),U.registeredFulfillmentTriggerAdapters.delete(X.triggerId))}a=_.A(c.slotExpirationTriggers);
for(X=a.next();!X.done;X=a.next())if(X=X.value,z=U.registeredExpirationTriggerAdapters.get(X.triggerId))z.unregisterTrigger(X),U.registeredExpirationTriggerAdapters.delete(X.triggerId);U.hasLayout()&&(a=U.layout,OS(U,a.layoutExitNormalTriggers),OS(U,a.layoutExitSkipTriggers),OS(U,a.layoutExitMuteTriggers),OS(U,a.layoutExitUserInputSubmittedTriggers),OS(U,a.layoutExitUserCancelledTriggers));U.registeredFulfillmentAdapter=void 0;U.registeredSlotAdapter!=null&&(U.registeredSlotAdapter.release(),U.registeredSlotAdapter=
void 0);U.registeredLayoutRenderingAdapter!=null&&(U.registeredLayoutRenderingAdapter.release(),U.registeredLayoutRenderingAdapter=void 0);U=S.adsControlFlowManagerHelper;JT(U,c)&&(U=q1z(U,c.slotType+"_"+c.slotPhysicalPosition))&&U.delete(c.slotId);US(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);S=_.A(S.adsControlFlowEventListeners);for(U=S.next();!U.done;U=S.next())U=U.value,U.onSlotUnscheduled(c),Q&&!f&&hFd(U,c,Q)}},hFd=function(S,c,Q){AT(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
c,Q);
AT(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",c,Q);S=_.A(S.adsControlFlowEventListeners);for(var f=S.next();!f.done;f=S.next())f=f.value,Q&&hFd(f,c,Q)},Dad=function(S,c){if(JT(S.adsControlFlowManagerHelper,c)!=null&&JT(S.adsControlFlowManagerHelper,c).isOccupyingSlotType()){var Q=aS(S.adsControlFlowManagerHelper,c);
if(Q&&Y1z(S.adsControlFlowManagerHelper,c)){if(JT(S.adsControlFlowManagerHelper,c)!=null){var f=S.adEventLogger,U;var a=((U=$ap.get("abandoned"))==null?void 0:U.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";AT(f,a,c,Q);S=JT(S.adsControlFlowManagerHelper,c);S.slotLifecycleStage!=="rendering"&&Xv(S.slot,S.slotLifecycleStage,"exitLayout");S.slotLifecycleStage="rendering_stop_requested";S.registeredLayoutRenderingAdapter.stopRendering(Q,"abandoned")}}else{US(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
c);try{f=JT(S.adsControlFlowManagerHelper,c);if(!f)throw new Ff("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");f.slotLifecycleStage!=="enter_requested"&&f.slotLifecycleStage!=="entered"&&f.slotLifecycleStage!=="rendering"&&Xv(f.slot,f.slotLifecycleStage,"exitSlot");f.slotLifecycleStage="exit_requested";if(f.registeredSlotAdapter===void 0)throw f.slotLifecycleStage="scheduled",new Ff("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
f.registeredSlotAdapter.exit()}catch(X){X instanceof Ff&&X.adsClientErrorMessage?(TnH(S.adEventLogger,X.adsClientErrorMessage,c),_.QV(X,c,void 0,void 0,X.aggressivelySample)):(TnH(S.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",c),_.QV(X,c))}}}};var zm=function(S,c,Q,f,U,a){_.C9.call(this);this.registry=S;this.experimentApiProvider=a;this.slotMap=new Map};
_.C(zm,_.C9);var q1z=function(S,c){return(S=S.slotMap.get(c))?S:new Map},JT=function(S,c){return q1z(S,c.slotType+"_"+c.slotPhysicalPosition).get(c.slotId)},pfp=function(S){var c=[];
S.slotMap.forEach(function(Q){Q=_.A(Q.values());for(var f=Q.next();!f.done;f=Q.next())c.push(f.value.slot)});
return c};
zm.prototype.onSlotEntered=function(S){S=JT(this,S);S.slotLifecycleStage!=="enter_requested"&&Xv(S.slot,S.slotLifecycleStage,"onSlotEntered");S.slotLifecycleStage="entered"};
var Y1z=function(S,c){S=JT(S,c);return S.hasLayout()&&S.isRendering()},aS=function(S,c){(S=JT(S,c))?S.hasLayout()&&!S.layout&&_.QV("Unexpected empty layout",c):_.QV("Unexpected undefined slotState",c);
return(S==null?void 0:S.layout)||null};
zm.prototype.onSlotExited=function(S){S=JT(this,S);S.slotLifecycleStage!=="exit_requested"&&Xv(S.slot,S.slotLifecycleStage,"onSlotExited");S.slotLifecycleStage="scheduled"};
zm.prototype.onLayoutExited=function(S,c){S=JT(this,S);S.isPrimaryLayout(c)&&(S.slotLifecycleStage!=="rendering_stop_requested"&&Xv(S.slot,S.slotLifecycleStage,"onLayoutExited"),S.slotLifecycleStage="entered")};
var OS=function(S,c){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=S.registeredLayoutExitTriggerAdapters.get(Q.triggerId);f&&(f.unregisterTrigger(Q),S.registeredLayoutExitTriggerAdapters.delete(Q.triggerId))}},Xv=function(S,c,Q){_.QV("Slot stage was "+c+" when calling method "+Q,S)};var ssp=function(S){_.C9.call(this);this.deps=S;this.JSC$13390_adsControlFlowManager=wfl(this)};
_.C(ssp,_.C9);var wfl=function(S){var c=new Qe(function(Q,f,U,a){return new zm(S.deps.registry,Q,f,U,a,S.deps.experimentApiProvider)},new Set(Hex(S.deps.registry).concat(S.deps.listeners)),S.deps.adEventLogger,S.deps.experimentApiProvider);
_.F5(S,c);return c};var MUH=function(S,c){_.C9.call(this);this.experimentApiProvider=S;this.eventLoggingSettingsProvider=c;this.eventCount=0};
_.C(MUH,_.C9);MUH.prototype.logEvent=function(S){fX(this,S)};
var US=function(S,c,Q,f){fX(S,c,void 0,void 0,void 0,Q,void 0,void 0,void 0,Q.adSlotLoggingData,void 0,void 0,f)},AT=function(S,c,Q,f,U){fX(S,c,void 0,void 0,void 0,Q,f?f:void 0,void 0,void 0,Q.adSlotLoggingData,f?f.adLayoutLoggingData:void 0,void 0,U)},TnH=function(S,c,Q){fX(S,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,Q,void 0,void 0,void 0,Q.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:c})},fX=function(S,c,Q,f,U,a,X,z,x,I,n,b,N){N=N===void 0?0:N;
ieH(S.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+c,"slot:",a,"layout:",X,"ping:",z,"Opportunity:",{opportunityType:Q,associatedSlotId:f,slotsFromOpportunity:U,triggerBundle:x,adSlotLoggingData:I,adLayoutLoggingData:n});try{var l=function(){S.experimentApiProvider.get();if(c!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){c||_.QV("Empty PACF event type",a,X);var H=S.eventLoggingSettingsProvider.get();var q;(q=H.alwaysIncludeDebugData)||(H.experimentApiProvider.get(),q=
!1);H=q;q={eventType:c,eventOrder:++S.eventCount};var w={};a&&(w.slotData=Y1x(H,a));if(X){var g={type:X.layoutType,controlFlowManagerLayer:jsc.get(X.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H&&(g.debugData={layoutId:X.layoutId});w.layoutData=g}z&&(w.pingData={pingDispatchStatus:z.dispatchStatus,serializedAdPingMetadata:z.ping.serializedAdPingMetadata,pingIndex:z.index});x&&(w.triggerData=lbp(x.trigger,x.category));Q&&(w.opportunityData=CLr(H,Q,f,U));q.adClientData=w;I&&(q.serializedSlotAdServingData=
I.serializedSlotAdServingDataEntry);n&&(q.serializedAdServingData=n.serializedAdServingDataEntry);b&&(q.errorInfo=b);_.Te("adsClientStateChange",{adsClientEvent:q})}};
N&&N>0?_.HG(_.TV(),function(){return l()},N):l()}catch(H){ieH(S.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.HG(_.TV(),function(){_.QV(H instanceof Error?H:String(H),a,X,{pacf_message:"exception during pacf logging"})})}};var Zed=function(S,c){MUH.call(this,S,c)};
_.C(Zed,MUH);var G2T=function(){},ieH=function(S,c){return _.u(c)};var g2d=function(){var S=new Wad;this.JSC$13409_adsControlFlowManager=(new ssp(S)).JSC$13390_adsControlFlowManager},Wad=function(){_.C9.call(this);
var S=this;this.experimentApiProvider=new u$d(function(){return new G2T});
var c=new u$d(function(){return new js_(S.experimentApiProvider)});
this.adEventLogger=new Zed(this.experimentApiProvider,c);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.C(Wad,_.C9);var eFz=function(){},k2d,xg=function(){k2d||(k2d=new eFz);
return k2d},Fv=function(S){if(!S.JSC$13420_externallyManagedSlotAdapterCallback){var c=(new g2d).JSC$13409_adsControlFlowManager;
S.JSC$13420_externallyManagedSlotAdapterCallback=c}return S.JSC$13420_externallyManagedSlotAdapterCallback},rgz=function(S,c,Q){var f=c.opportunityType,U=Error("Kh");
if(f!==void 0){var a=Fv(S);lbe(a,f,void 0,Q)}else _.QV(U,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});a=[];if(c.adSlotAndLayoutMetadata!==void 0){c=_.A(c.adSlotAndLayoutMetadata);for(var X=c.next();!X.done;X=c.next()){var z=X.value;if(X=z.adSlotMetadata)if(a.push(X),S.onSlotReceivedExternallyManaged(X,Q),z.adLayoutMetadata){z=_.A(z.adLayoutMetadata);for(var x=z.next();!x.done;x=z.next())S.onLayoutReceivedExternallyManaged(X,x.value,Q)}else Q>0&&_.QV("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else Q>0&&_.QV("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else Q>0&&_.QV("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+f,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(f!==void 0)S.onOpportunityProcessedExternallyManaged(f,a,void 0,Q);else _.QV(U,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
eFz.prototype.onSlotReceivedExternallyManaged=function(S,c){S=BZ(S);if(S instanceof Ff)_.QV(S,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else Fv(this).onSlotReceivedExternallyManaged(S,c)};
eFz.prototype.onLayoutReceivedExternallyManaged=function(S,c,Q){S=BZ(S);c=pfH(c);if(S instanceof Ff)_.QV(S,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(c instanceof IC)_.QV(c,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else Fv(this).onLayoutReceivedExternallyManaged(S,c,Q)};
eFz.prototype.onOpportunityProcessedExternallyManaged=function(S,c,Q,f){var U=[];c=_.A(c);for(var a=c.next();!a.done;a=c.next())a=BZ(a.value),a instanceof Ff?_.QV(a,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):U.push(a);Fv(this).onOpportunityProcessedExternallyManaged(S,U,Q,f)};
var dai=function(S,c){c=BZ(c);if(c instanceof Ff)_.QV(c,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var Q=Fv(S);US(Q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",c);Q=_.A(Q.adsControlFlowEventListeners);for(var f=Q.next();!f.done;f=Q.next())f=JT(f.value,c),f.slotLifecycleStage!=="not_scheduled"&&Xv(f.slot,f.slotLifecycleStage,"onSlotScheduled"),f.slotLifecycleStage="scheduled";S=Fv(S);US(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",c);S=_.A(S.adsControlFlowEventListeners);
for(Q=S.next();!Q.done;Q=S.next())Q.value.onSlotEntered(c)}},v2p=function(S,c){c=BZ(c);
if(c instanceof Ff)_.QV(c,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var Q=Fv(S);US(Q.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",c);Q=_.A(Q.adsControlFlowEventListeners);for(var f=Q.next();!f.done;f=Q.next())f.value.onSlotExited(c);S=Fv(S);US(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",c);S=_.A(S.adsControlFlowEventListeners);for(Q=S.next();!Q.done;Q=S.next())Q.value.onSlotUnscheduled(c)}},PLd=function(S,c,Q){c=BZ(c);
Q=pfH(Q);if(c instanceof Ff)_.QV(c,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(Q instanceof IC)_.QV(Q,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var f=Fv(S);AT(f.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",c,Q);f=_.A(f.adsControlFlowEventListeners);for(var U=f.next();!U.done;U=f.next())U.value.onLayoutScheduled(c,Q);S=Fv(S);AT(S.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",c,Q);S=_.A(S.adsControlFlowEventListeners);
for(f=S.next();!f.done;f=S.next())Hez(f.value,c,Q)}},BX=function(S,c,Q){c=BZ(c);
Q=pfH(Q);if(c instanceof Ff)_.QV(c,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(Q instanceof IC)_.QV(Q,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var f=Fv(S);AT(f.adEventLogger,u$p("normal"),c,Q);f=_.A(f.adsControlFlowEventListeners);for(var U=f.next();!U.done;U=f.next())U.value.onLayoutExited(c,Q,"normal");S=Fv(S);S=_.A(S.adsControlFlowEventListeners);for(f=S.next();!f.done;f=S.next())hFd(f.value,c,Q)}};_.IS=_.y_(function(S){var c=_.V_(S,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});S=Object.assign({},c);var Q=c.data;c=c.customCommandResolver;var f=(delete S.data,delete S.customCommandResolver,S),U=_.EH("ad-image-view-model");_.V8(U,function(){return Q().interaction},c,function(){var z;
return(z=f.listenToTapEvent)==null?void 0:z.call(f)});
_.cn(U,{visibilityCallback:function(z){var x,I=(x=Q().interaction)==null?void 0:x.onFirstVisible;z&&(I&&_.kz(I),f.setOnErrorHandler()&&hFY(U))},
showOption:_.yA});S=_.A(_.ny(!1,void 0,"eiYvIe"));var a=S.next().value,X=S.next().value;return _.B("ad-image-view-model",{class:function(){var z,x=[((z=Q().interaction)==null?0:z.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],I;((I=f.isGridViewEnabled)==null?0:I.call(f))&&x.push("ytwAdImageViewModelHostInGridView");return x.join(" ")},
el:U,"on:touchend":_.$d(function(){var z;((z=f.setTouchEndHandler)==null?0:z.call(f))&&!a()&&(U.value.click(),X(!0),setTimeout(function(){X(!1)},100));
return!1})},_.B("div",{class:"ytwAdImageViewModelHostImageContainer"},_.B(_.RW,{data:function(){var z;
return{sources:Q().imageSources,contentMode:(z=Q().imageProperties)==null?void 0:z.contentMode}},
alt:function(){var z,x;return((z=Q().interaction)==null?void 0:(x=z.accessibility)==null?void 0:x.label)||""},
targetHeight:f.targetHeight,targetWidth:f.targetWidth,preserveHeight:f.preserveHeight,preserveWidth:f.preserveWidth,useWidth:f.useWidth,style:function(){var z,x;return"vertical-align: bottom;"+(((z=Q().background)==null?0:z.color)?"background-color:"+_.WV((x=Q().background)==null?void 0:x.color)+";":"")},
className:function(){return f.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var z,x;return(x=(z=f.setDraggable)==null?void 0:z.call(f))!=null?x:void 0}})))},"gb");var Lau=_.y_(function(S){var c=S.data,Q=S.listenToTapEvent,f=_.EH("ad-button-hover-overlay-view-model");_.u("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.V8(f,function(){return c().interaction},void 0,function(){return Q==null?void 0:Q()});
_.cn(f,{visibilityCallback:function(a){var X,z=(X=c().interaction)==null?void 0:X.onFirstVisible;a&&z&&_.kz(z)},
showOption:_.yA});var U=function(){};
return _.B("ad-button-hover-overlay-view-model",{"on:click":_.$d(function(){if(_.u("enable_web_home_top_landscape_image_layout_legacy_click_command")){var a,X=(a=c().interaction)==null?void 0:a.onTap;X&&_.Az(f.value,"yt-navigate",{endpoint:_.Gv(X)})}}),
class:function(){var a;return((a=c().interaction)==null?0:a.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:f},function(){return _.u("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.B(_.h8,{data:function(){return c().button}},{adButtonViewModel:function(a){return _.B(_.mh,{data:a.data,
customCommandResolver:U})}}):_.B(_.h8,{data:function(){return c().button}},{adButtonViewModel:_.mh})}())},"hb");var nD;_.f4(_.y_(function(S){var c=S.data;var Q=_.EH("compact-landscape-no-button-layout-view-model");_.u("stop_av_measurement_on_detach")&&_.wX(function(){N$(Q)});
_.V8(Q,function(){return c().interaction},void 0,function(){return!0});
_.cn(Q,{visibilityCallback:function(a){if(a){var X;(a=(X=c().interaction)==null?void 0:X.onFirstVisible)&&_.kz(a);var z;if(X=(z=c().adLayoutData)==null?void 0:z.activeViewData)bV(Q,X),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&N$(Q)})}else _.u("stop_av_measurement_on_detach")&&N$(Q)},
showOption:_.yA,hideOption:oP});S=_.A(_.ny(!1,void 0,"yzu6qe"));var f=S.next().value,U=S.next().value;return _.B("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:Q,"on:mouseenter":_.$d(function(){U(!0)}),
"on:mouseleave":_.$d(function(){U(!1)})},_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",
style:_.Yd({"max-width":function(){return _.u("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.B("div",{class:function(){var a;
a:{var X;switch((a=_.Y(c().thumbnailImage,GVH))==null?void 0:(X=a.imageProperties)==null?void 0:X.renderingAspect){case "RENDERING_ASPECT_SQUARE":a="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":a="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}a=void 0}return a}},_.B(_.h8,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(a){return _.B(_.IS,
{data:a.data,
listenToTapEvent:!0,setTouchEndHandler:_.u("enable_top_landscape_image_experiment_dom_id_web")})}})),_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.B(_.K,{cond:function(){var a,X,z;
return(a=_.Y(c().thumbnailImage,GVH))==null?void 0:(X=a.imageProperties)==null?void 0:(z=X.overlayIcon)==null?void 0:z.iconImage},
then:function(a){return _.B(_.RW,{data:a,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.B("div",{class:function(){return f()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.B(_.h8,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(a){return _.B(Lau,
{data:a.data,
listenToTapEvent:!0})}}))),_.B("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.B(_.h8,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(a){return _.B(fUJ,{data:a.data,
listenToTapEvent:!0,setTouchEndHandler:_.u("enable_top_landscape_image_experiment_dom_id_web")})}})))},"ib"),"compact-landscape-no-button-layout-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=_.EH("square-image-layout-view-model");_.u("stop_av_measurement_on_detach")&&_.wX(function(){N$(Q)});
var f=_.Gs(_.e9);_.V8(Q,function(){return c().interaction});
_.cn(Q,{visibilityCallback:function(X){if(X){var z;(X=(z=c().interaction)==null?void 0:z.onFirstVisible)&&_.kz(X);var x;if(z=(x=c().adLayoutData)==null?void 0:x.activeViewData)bV(Q,z),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&N$(Q)})}else _.u("stop_av_measurement_on_detach")&&N$(Q)},
showOption:_.yA,hideOption:oP});S={};var U={},a={};return _.B("square-image-layout-view-model",{class:_.n4("ytwSquareImageLayoutViewModelHost",(S.ytwSquareImageLayoutViewModelHostColumn=f,S)),el:Q},_.B("div",{class:_.n4("ytwSquareImageLayoutViewModelHostImage",(U.ytwSquareImageLayoutViewModelHostColumnImage=f,U))},function(){return _.B(_.h8,{data:function(){return c().adImage}},{adImageViewModel:function(X){return _.B(_.IS,{data:X.data,
isGridViewEnabled:f,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.B("div",{class:_.n4("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(a.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=f,a))},_.B(_.h8,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:fUJ}),function(){return _.B(_.h8,{data:function(){return c().adButton}},{adButtonViewModel:function(X){var z={};
return _.B(_.mh,{data:X.data,className:_.n4((z.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,z.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=f,z))})}})}()))},"jb"),"square-image-layout-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=S.noBottomMargin;var f=S.typographyBump;var U=_.EH("top-landscape-image-layout-view-model");_.u("stop_av_measurement_on_detach")&&_.wX(function(){N$(U)});
_.u("enable_web_home_top_landscape_image_layout_level_click")&&_.V8(U,function(){return c().interaction},void 0,function(){return!0});
S=function(){return c().interaction};
S!==void 0&&S!==null||_.dC(Error("Lh"));_.cn(U,{visibilityCallback:function(I){if(I){var n;(I=(n=c().interaction)==null?void 0:n.onFirstVisible)&&_.kz(I);var b;if(n=(b=c().adLayoutData)==null?void 0:b.activeViewData)bV(U,n),_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&N$(U)})}else _.u("stop_av_measurement_on_detach")&&N$(U)},
showOption:_.yA,hideOption:oP});var a=function(){var I,n,b;return(I=_.Y(c().thumbnailImage,GVH))==null?void 0:(n=I.background)==null?void 0:(b=n.backgroundImageSource)==null?void 0:b.imageSources};
S=_.A(_.ny(!1,void 0,"GIwTMc"));var X=S.next().value,z=S.next().value,x=function(){return X()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.B("top-landscape-image-layout-view-model",{class:function(){var I;return((I=c().interaction)==null?0:I.onTap)&&_.u("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:U,"on:mouseenter":_.$d(function(){z(!0)}),
"on:mouseleave":_.$d(function(){z(!1)})},_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.B(_.K,{cond:function(){return a()&&a().length>0},
then:function(){return _.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.Yd({top:"0","background-image":function(){return"url("+String(a()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.B(_.K,{cond:function(){return!!c().adButtonHoverOverlay},
then:function(){return _.B("div",{class:x},_.B(_.h8,{data:function(){return c().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:Lau}))}}),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.B(_.h8,{data:function(){return c().thumbnailImage}},{adImageViewModel:function(I){return _.B(_.IS,{data:I.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.u("enable_web_home_top_landscape_image_layout_level_click")})}})),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.B(_.RW,{data:{sources:[{clientResource:{imageName:_.u("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.B("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.B(_.h8,{data:function(){return c().feedAdMetadata}},{feedAdMetadataViewModel:function(I){return _.B(fUJ,{data:I.data,
noBottomMargin:function(){return Q==null?void 0:Q()},
listenToTapEvent:function(){return _.u("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return f==null?void 0:f()}})}})))},"kb"),"top-landscape-image-layout-view-model",{props:{data:_.y$,
noBottomMargin:_.y$,typographyBump:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=S.typographyBump;var f=_.EH("video-display-button-group-layout-view-model");_.cn(f,{visibilityCallback:function(U){if(U){var a;(U=(a=c().interaction)==null?void 0:a.onFirstVisible)&&_.kz(U);var X;a=(X=c().adLayoutData)==null?void 0:X.activeViewData;!_.u("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&a&&bV(f,a)}},
showOption:_.yA,hideOption:oP});return _.B("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:f},_.B("div",null,_.B(_.h8,{data:function(){return c().videoLockup}},{lockupViewModel:function(U){return _.B(_.U4,{data:U.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:Q})}})))},"lb"),"video-display-button-group-layout-view-model",{props:{data:_.y$,
noBottomMargin:_.y$,typographyBump:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=S.className;var f=S.typographyBump;var U=_.EH("video-display-compact-button-group-layout-view-model");_.cn(U,{visibilityCallback:function(a){if(a){var X;(a=(X=c().interaction)==null?void 0:X.onFirstVisible)&&_.kz(a);var z;(X=(z=c().adLayoutData)==null?void 0:z.activeViewData)&&bV(U,X)}},
showOption:_.yA});return _.B("video-display-compact-button-group-layout-view-model",{el:U,class:_.n4("videoDisplayCompactButtonGroupLayoutViewModelHost",Q)},_.B(_.h8,{data:function(){return c().videoLockup}},{lockupViewModel:function(a){return _.B(_.U4,{data:a.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_VERTICAL_LIST"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailFixedWidth:"50%",typographyBump:f})}}))},"mb"),"video-display-compact-button-group-layout-view-model",{props:{data:_.y$,
className:_.y$,typographyBump:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=S.typographyBump;var f=_.EH("video-display-full-layout-view-model");_.cn(f,{visibilityCallback:function(U){if(U){var a;(U=(a=c().interaction)==null?void 0:a.onFirstVisible)&&_.kz(U);var X;a=(X=c().adLayoutData)==null?void 0:X.activeViewData;!_.u("ablate_desktop_short_dr_video_ads_components_ui_active_view")&&a&&bV(f,a)}},
showOption:_.yA,hideOption:oP});return _.B("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:f},_.B("div",null,_.B(_.h8,{data:function(){return c().videoLockup}},{lockupViewModel:function(U){return _.B(_.U4,{data:U.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:Q})}})))},"nb"),"video-display-full-layout-view-model",{props:{data:_.y$,
noBottomMargin:_.y$,typographyBump:_.y$}});_.E2z=_.y_(function(S){var c=S.data;S=_.EH("ad-card-badge-view-model");return _.B("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:S},_.B(_.K,{cond:function(){return c().imageBadge},
then:function(Q){return _.B(_.RW,{data:Q,alt:""})}}))},"ob");var tUh=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;S=_.EH("carousel-ad-card-image-view-model");_.V8(S,function(){return c().interaction},Q);
_.cn(S,{visibilityCallback:function(f){var U,a=(U=c().interaction)==null?void 0:U.onFirstVisible;f&&a&&_.kz(a)},
showOption:_.yA});return _.B("carousel-ad-card-image-view-model",{class:function(){var f;return((f=c().interaction)==null?0:f.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:S,"aria-label":function(){var f,U;return(f=c().interaction)==null?void 0:(U=f.accessibility)==null?void 0:U.label}},_.B(_.h8,{data:function(){return c().adImage}},{adImageViewModel:function(f){return _.B(_.IS,{data:f.data,
customCommandResolver:Q})}}),_.B("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.B(_.h8,{data:function(){return c().badge}},{adCardBadgeViewModel:_.E2z})),_.B(_.p4,{model:{color:4}}))},"pb");var VUe=_.y_(function(S){var c=_.A(_.ny(0,void 0,"o9Bzd")),Q=c.next().value;c.next();var f=c.next().value,U=_.A(_.ny(!1,void 0,"KLdzYe"));c=U.next().value;var a=U.next().value,X;_.wX(function(){clearTimeout(X)});
U=_.$d(function(){var I;((I=S.animate)==null?0:I.call(S))?(a(!0),X=setTimeout(function(){a(!1);z()},200)):z();
return!1});
var z=function(){f(function(I){return(I+S.numShownItems())%S.data().length})},x={};
return _.B("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.B("div",{class:_.n4("ytwHorizontalCarouselCarouselWrapper")},_.B("div",{class:_.n4("ytwHorizontalCarouselCarouselInnerWrapper",(x.ytwHorizontalCarouselAnimating=c,x))},_.B(_.lW,{each:S.data,keyBy:"INDEX"},function(I,n){return _.B("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.Yd({"flex-basis":function(){return"calc((100% - (8px * "+(S.numShownItems()-1)+")) / "+S.numShownItems()+")"},
order:function(){var b=n-Q();b<0&&(b+=S.data().length);return b}})},S.children(I,n))}))),_.B("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":U},S.nextButton()))},"qb");var RFs=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;var f=S.expansive;S=_.EH("carousel-ad-card-collection-view-model");_.cn(S,{visibilityCallback:function(U){var a,X=(a=c().interaction)==null?void 0:a.onFirstVisible;U&&X&&_.kz(X)},
showOption:_.yA});return _.B("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:S},_.B(VUe,{data:function(){var U;return((U=c())==null?void 0:U.carouselAdCards)||[]},
nextButton:function(){return _.B(_.h8,{data:function(){return c().nextButton}},{buttonViewModel:function(U){var a=U.data;
return _.B(_.Ze,{data:function(){return(f==null?0:f())?Object.assign({},a(),{style:"mono"}):a()},
className:_.u("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(U){return _.B(_.h8,{data:U},{carouselAdCardImageViewModel:function(a){return _.B(tUh,{data:a.data,customCommandResolver:Q})}})}))},"rb");var ygd=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;var f=S.className;var U=S.buttonClassName;var a=S.animationEntityKey;var X=S.expansive;return _.B("carousel-button-view-model",{class:_.n4("ytwCarouselButtonViewModelHost",f)},_.B(_.h8,{data:function(){return c().carousel}},{carouselAdCardCollectionViewModel:function(z){return _.B(RFs,{data:z.data,
customCommandResolver:Q,expansive:X})}}),_.B(_.h8,{data:function(){return c().button}},{adButtonViewModel:function(z){var x=z.data;
return _.B(_.mh,{data:function(){return(X==null?0:X())?Object.assign({},x(),{style:"AD_BUTTON_STYLE_TONAL"}):x()},
className:U,customCommandResolver:Q,animationEntityKey:a})}}))},"sb");_.o2d=_.y_(function(S){var c=S.data;S=S.className;var Q=_.EH("pivot-button-view-model");_.wC(function(){var f;((f=c())==null?0:f.backgroundColor)&&Q.value.setAttribute("data-background-color",String(c().backgroundColor))});
return _.B("pivot-button-view-model",{el:Q,class:_.n4("ytwPivotButtonViewModelHost",S)},_.B(_.xJ,{command:function(){var f=c();f=f.onClickCommand?_.Gv(f.onClickCommand):f.contentDescription?_.oB(f.contentDescription):void 0;return f},
ariaLabel:function(){return c().contentDescription}},_.B(_.K,{cond:function(){return c().thumbnail},
then:function(f){return _.B(_.RW,{data:f,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.B(_.K,{cond:function(){return c().icon},
then:function(f){return _.B(_.C4,{icon:function(){return f().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"tb");_.maz=_.y_(function(S){var c=S.data;var Q=S.buttonShapeOverrideables;return _.B("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.B(_.h8,{data:function(){return c().buttonViewModels}},{buttonViewModel:function(f){return _.B(_.Ze,{data:f.data,
buttonOverrides:Q})},
likeButtonViewModel:function(f){return _.B(_.TT,{data:f.data,buttonShapeOverrideables:Q})},
dislikeButtonViewModel:function(f){return _.B(_.q0,{data:f.data,buttonShapeOverrideables:Q})},
toggleButtonViewModel:function(f){return _.B(_.qs,{data:f.data,buttonShapeOverrides:Q})}}))},"ub");var Ski=_.y_(function(S){var c=S.avatar;var Q=S.headline;var f=S.badge;var U=S.description;var a=S.expansive;S={};return _.B("yt-ad-metadata-shape",{class:_.n4("ytAdMetadataShapeHost",(S.ytAdMetadataShapeHostLarge=a,S))},_.B("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.B(_.K,{cond:c,then:function(X){return _.B(_.mNd,{data:function(){return(a==null?0:a())?Object.assign({},X(),{size:"AD_AVATAR_SIZE_MPLUS"}):X()}})}}),_.B("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.B(_.mw,{text:Q,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.B(_.K,{cond:f,then:function(X){return _.B(_.Q3,{data:function(){return(a==null?0:a())?Object.assign({},X(),{style:"AD_BADGE_STYLE_STARK"}):X()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.B("h2",{class:"ytAdMetadataShapeHostDescription"},_.B(_.mw,{text:U,
linkInheritColor:!0})))},"vb");var cfp=_.y_(function(S){var c=S.data;var Q=S.onShow;var f=S.expansive;S=_.EH("reels-ad-card-buttoned-view-model");_.V8(S,function(){return c().interaction});
_.wC(function(){var a,X=(a=c().animatedRenderingConfig)==null?void 0:a.delayedSecondsToVisible;if(X){var z=setTimeout(Q,X*1E3);_.wX(function(){clearTimeout(z)})}});
var U={};return _.B("reels-ad-card-buttoned-view-model",{class:_.n4(function(){var a;return((a=c().interaction)==null?0:a.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(U.ytwReelsAdCardButtonedViewModelHostExpansive=f,U)),
el:S},_.B(Ski,{avatar:function(){return _.Y(c().avatar,ijp)},
headline:function(){return c().headline},
badge:function(){return _.Y(c().adBadge,Zjh)},
description:function(){return c().description},
expansive:f}),_.B(_.h8,{data:function(){return c().ctaButton}},{adButtonViewModel:function(a){var X=a.data;
return _.B(_.mh,{data:function(){return(f==null?0:f())?Object.assign({},X(),{style:"AD_BUTTON_STYLE_FILLED"}):X()}})}}))},"wb");var QfT=_.y_(function(S){var c=S.data;S=S.expansive;var Q=_.EH("reels-ad-metadata-view-model");_.u("web_ad_metadata_clickable")&&_.V8(Q,function(){return c().interaction});
var f={};f=_.No("ytwReelsAdMetadataViewModelHost",(f.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.u("web_ad_metadata_clickable"),f));return _.B("reels-ad-metadata-view-model",{class:f,el:Q},_.B(Ski,{avatar:function(){return _.Y(c().avatar,ijp)},
headline:function(){return c().headline},
badge:function(){return _.Y(c().adBadge,Zjh)},
description:function(){return c().description},
expansive:S}))},"xb");var f9$={iconPosition:"icon-with-label",size:"L"},U8_=_.y_(function(S){var c=S.data;var Q=S.overlayDensity;S=_.EH("reels-player-overlay-layout-view-model");var f=_.tq(Q,0),U=function(){var b;return(b=c().reelsAdCardButtonedEntityKey)!=null?b:""},a=function(){return U()+"/ad_button"},X=_.b9(pFZ,U),z=function(){var b,N;
return(N=(b=X())==null?void 0:b.value)!=null?N:!1},x=_.Gs(ZeT),I=function(){return Object.assign({},f9$,(x()||f()===2)&&{style:"overlay-dark"})};
Q={};var n={};return _.B("reels-player-overlay-layout-view-model",{class:_.n4("ytwReelsPlayerOverlayLayoutViewModelHost",(Q.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!c().extension},Q.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},Q)),
"overlay-density":function(){return String(f())},
el:S},_.B("div",{class:_.n4("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(n.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},n))},_.B("div",{"aria-hidden":function(){return z()},
class:_.n4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return z()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.Yd({"transition-duration":function(){return g2Y(c())}})},_.B(_.h8,{data:function(){return c().adMetadata}},{reelsAdMetadataViewModel:function(b){return _.B(QfT,{data:b.data,
expansive:function(){return f()===1}})}}),_.B(_.K,{cond:function(){return c().extension},
then:function(b){return _.B("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.B(_.h8,{data:b},{adButtonViewModel:function(N){return _.B(_.mh,{data:N.data,animationEntityKey:a,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(N){return _.B(ygd,{data:N.data,animationEntityKey:a,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return f()===1}})}}))}})),_.B("div",{"aria-hidden":function(){return!z()},
class:_.n4("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return z()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.Yd({"transition-duration":function(){return g2Y(c())}})},_.B(_.h8,{data:function(){return c().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(b){return _.B(cfp,{data:b.data,
onShow:function(){_.Er(_.Ns("booleanEntity",U(),{key:U(),value:!0}))},
expansive:function(){return f()===1}})}}))),_.B("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.B(_.h8,{data:function(){return c().actions}},{reelActionBarViewModel:function(b){return _.B(_.maz,{data:b.data,
buttonShapeOverrideables:I})}}),_.B(_.h8,{data:function(){return c().menu}},{buttonViewModel:function(b){return _.B(_.Ze,{data:b.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},I(),{type:"tonal"})}})}}),_.B(_.h8,{data:function(){return c().pivotButton}},{pivotButtonViewModel:function(b){return _.B(_.o2d,{data:b.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"yb");_.f4(U8_,"reels-player-overlay-layout-view-model",{props:{data:_.y$,overlayDensity:_.y$}});var nX=function(){var S=_.W.apply(this,arguments)||this;S.noBottomMargin=!1;S.overlayDensity=0;return S};
_.C(nX,_.W);_.J=nX.prototype;
_.J.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:_.u("enable_short_dr_for_desktop_launchable")?{component:"ytd-video-display-full-buttoned-and-button-group-renderer",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}}:"ytd-video-display-full-buttoned-renderer",videoDisplayButtonGroupRenderer:{component:"ytd-video-display-full-buttoned-and-button-group-renderer",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},textImageNoButtonLayoutRenderer:"ytd-text-image-no-button-layout-renderer",reelsPlayerOverlayLayoutViewModel:{component:"reels-player-overlay-layout-view-model",properties:{overlayDensity:"[[overlayDensity]]"}}}}}};
_.J.ready=function(){var S=this;c0z(function(){S.isAttached&&AW(S.JSC$13464_storedAdSlotMetadata,S.JSC$13464_storedAdLayoutMetadata,S.adSlotMetadata,S.adLayoutMetadata)&&BX(xg(),S.JSC$13464_storedAdSlotMetadata,S.JSC$13464_storedAdLayoutMetadata)})};
_.J.attached=function(){AW(this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&PLd(xg(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata)};
_.J.detached=function(){AW(this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&BX(xg(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata)};
_.J.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13464_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13464_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13464_storedAdLayoutMetadata!==void 0&&this.JSC$13464_storedAdSlotMetadata!==void 0&&BX(xg(),this.JSC$13464_storedAdSlotMetadata,this.JSC$13464_storedAdLayoutMetadata),PLd(xg(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13464_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13464_storedAdSlotMetadata=this.adSlotMetadata)};
_.Rh.Object.defineProperties(nX.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.adLayoutMetadata}}});
nX.prototype.onAdMetadataChanged=nX.prototype.onAdMetadataChanged;nX.prototype.onTypographyBumpChanged=nX.prototype.onTypographyBumpChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nX.prototype,"rendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],nX.prototype,"ytComponentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],nX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],nX.prototype,"noBottomMargin",void 0);_.d([_.Z(),_.P("design:type",Object)],nX.prototype,"overlayDensity",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],nX.prototype,"typographyBump",void 0);_.d([_.M("data.adLayoutMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],nX.prototype,"adLayoutMetadata",null);_.d([_.Z(),_.P("design:type",Object)],nX.prototype,"adSlotMetadata",void 0);
_.d([_.nU("ytd-video-display-full-buttoned-and-button-group-renderer"),_.P("design:type",HTMLElement)],nX.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.d([_.B0("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nX.prototype,"onTypographyBumpChanged",null);_.d([_.B0("adLayoutMetadata","adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nX.prototype,"onAdMetadataChanged",null);
_.d([_.e({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],nX);
_.k(nX,"ytd-in-feed-ad-layout-renderer",function(){if(Vkd!==void 0)return Vkd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Vkd=S},
{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var JfJ;var a9d;var bb=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return S};
_.C(bb,_.W);_.J=bb.prototype;_.J.computeHasLiveDescription=function(S){return!(S==null||!S.liveDescription)};
_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.J.onYtToggleButton=function(S){var c,Q=(c=this.data)==null?void 0:c.videoReminderEntityKey;Q&&this.ytdReduxBehavior.dispatch(_.Ns("upcomingEventReminderStateEntity",Q,{key:Q,state:S.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.J.attached=function(){this.updateChannelBanner()};
_.J.dataChanged=function(){this.updateChannelBanner()};
_.J.videoReminderStateChanged=function(){var S;this.videoReminderState&&_.Y((S=this.data)==null?void 0:S.cta,_.WA)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.J.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var S=_.U2(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);S&&(S.startsWith("//")&&(S="https:"+S),this.hostElement.classList.add("channel-banner"),_.Or(this.hostElement,{"--ytvmh-channel-banner":"url("+S+")"}))}else _.u("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.J.onPlayerReady=function(){this.onIronResize()};
_.J.maybeFlushDebouncer=function(){_.u("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(S){var c;S=(c=S.getElementsByTagName("yt-attributed-string"))==null?void 0:c[0];H2p(S==null?void 0:S.polymerController)})};
_.J.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var S=_.Ur(this.hostElement).querySelector("#live-description"),c;S&&((c=this.data)==null?0:c.shortLiveDescription)&&S.clientWidth<S.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
bb.prototype.onIronResize=bb.prototype.onIronResize;bb.prototype.videoReminderStateChanged=bb.prototype.videoReminderStateChanged;bb.prototype.dataChanged=bb.prototype.dataChanged;bb.prototype.onYtToggleButton=bb.prototype.onYtToggleButton;_.d([_.p(_.w9),_.P("design:type",Object)],bb.prototype,"ironResizableBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],bb.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bb.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],bb.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bb.prototype,"data",void 0);_.d([_.Z({selectorArgs:["data.videoReminderEntityKey"],selector:Hop}),_.P("design:type",Object)],bb.prototype,"videoReminderState",void 0);
_.d([_.Z({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.P("design:type",Boolean)],bb.prototype,"rounded",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.P("design:type",Boolean)],bb.prototype,"hasLiveDescription",void 0);_.d([_.Z({reflectToAttribute:!0,value:_.u("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.P("design:type",Boolean)],bb.prototype,"resizableAdBannerSafariFix",void 0);
_.d([_.Z({reflectToAttribute:!0,value:_.u("align_three_dot_menu_with_title_description")}),_.P("design:type",Boolean)],bb.prototype,"menuFix",void 0);_.d([_.bw("yt-formatted-string"),_.P("design:type",Array)],bb.prototype,"formattedStrings",void 0);_.d([_.nU("#cta-button"),_.P("design:type",HTMLElement)],bb.prototype,"ctaButton",void 0);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],bb.prototype,"onYtToggleButton",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bb.prototype,"dataChanged",null);_.d([_.B0("videoReminderState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bb.prototype,"videoReminderStateChanged",null);_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bb.prototype,"onIronResize",null);
_.d([_.e({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],bb);
_.k(bb,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(a9d!==void 0)return a9d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return a9d=S},{mode:1});var Afe;var NF=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};S.isLocked=!1;return S};
_.C(NF,_.W);_.J=NF.prototype;_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded&&_.Oz(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(S){S!==this&&(this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(S){this.isLocked=!0;S!==this&&(this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
NF.prototype.onTap=NF.prototype.onTap;NF.prototype.onMouseOver=NF.prototype.onMouseOver;NF.prototype.onExpandedChanged=NF.prototype.onExpandedChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],NF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],NF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],NF.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],NF.prototype,"expanded",void 0);_.d([_.$n("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NF.prototype,"onExpandedChanged",null);_.d([_.FV("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NF.prototype,"onMouseOver",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NF.prototype,"onTap",null);
_.d([_.e({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],NF);
_.k(NF,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Afe!==void 0)return Afe;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Afe=S},{mode:1});var XRe;var KX=function(){var S=_.W.apply(this,arguments)||this;S.buttonOverrides={style:"overlay"};S.useYtdPlayer=_.u("use_ytd_player_for_desktop_masthead");S.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};S.playbackFinished=!1;S.JSC$13476_playerManager=null;S.JSC$13476_mastheadCounter=new GCl;return S};
_.C(KX,_.W);_.J=KX.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$13476_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13476_playerManager=new hK)};
_.J.ready=function(){var S=this;this.JSC$13476_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var c=_.Ur(this.hostElement).querySelector("#player");this.useYtdPlayer?c.style.display="none":(this.ytdPlayer.style.display="none",Nie(this.JSC$13476_playerManager,c,function(){S.onPlaybackEnded()}),_.Ur(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var Q;
((Q=S.data)==null?0:Q.navigationEndpoint)&&_.Az(S.hostElement,"yt-navigate",{endpoint:S.data.navigationEndpoint})}))};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13476_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.J.attached=function(){var S=this;_.gM(function(){S.maybePlayVideo()})};
_.J.maybePlayVideo=function(){var S=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$13476_playerManager.playVideo(),this.getPlayerPromise().then(function(){S.JSC$13476_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.J.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13476_playerManager.stopVideo()};
_.J.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var S,c={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((S=this.data.playbackStartMs)!=null?S:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(c);this.setupYtdPlayer()}else $5d(this.JSC$13476_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(Kzp(this.JSC$13476_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.J.getPlayerPromise=function(){return this.JSC$13476_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(S){this.useYtdPlayer?this.toggleMute(S.detail.toggled):S.detail.toggled?this.JSC$13476_playerManager.mute():this.JSC$13476_playerManager.unMute()};
_.J.onYtNavigate=function(S){var c=K8T(S.detail.endpoint),Q=$3M(this.data.clickthroughReportingData);c&&Q&&(S.detail.endpoint.watchEndpoint?S.detail.tempData=Q:_.SL(c,Q,30))};
_.J.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.J.onExpandedChanged=function(){this.expanded?(_.Oz(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.J.onMouseOver=function(){this.maybeExpand()};
_.J.onTap=function(){this.maybeExpand()};
_.J.onExpandableTileExpanding=function(S){S!==this&&(this.stopVideo(),this.expanded=!1)};
_.J.onExpandableTileLockAndCollapse=function(S){S!==this&&(this.isLocked=!0,this.expanded=!1)};
_.J.onExpandableTileUnlock=function(){this.isLocked=!1};
_.J.lockAndCollapseExpandableTiles=function(){_.XF(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.J.unlockExpandableTiles=function(){_.XF(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.J.setupYtdPlayer=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.ytdPlayer.getPlayerPromise(),2);c=Q.yieldResult;c.addEventListener("onStateChange",function(f){S.onPlayerStateChange(f)});
c.addEventListener("onCueRangeExit",function(f){S.onCueRangeExit(f)});
_.IN(Q)})};
_.J.onPlayerStateChange=function(S){if(S===1&&(S=this.ytdPlayer.getPlayer())){var c=S.getCurrentTime(),Q,f,U=c+((f=(Q=this.data)==null?void 0:Q.playbackDurationMs)!=null?f:0)/1E3;S.addCueRange("playback",c,U);this.JSC$13476_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.J.onCueRangeExit=function(S){S==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.ytdPlayer.getPlayerPromise(),2);Q=f.yieldResult;S?Q.mute():Q.unMute();_.IN(f)})};
KX.prototype.onTap=KX.prototype.onTap;KX.prototype.onMouseOver=KX.prototype.onMouseOver;KX.prototype.onExpandedChanged=KX.prototype.onExpandedChanged;KX.prototype.onYtNavigate=KX.prototype.onYtNavigate;KX.prototype.onYtToggleButton=KX.prototype.onYtToggleButton;KX.prototype.dataChanged=KX.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],KX.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],KX.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],KX.prototype,"expanded",void 0);_.d([_.Z(),_.P("design:type",Object)],KX.prototype,"buttonOverrides",void 0);
_.d([_.Z(),_.P("design:type",Object)],KX.prototype,"useYtdPlayer",void 0);_.d([_.nU("#ytd-player"),_.P("design:type",Object)],KX.prototype,"ytdPlayer",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KX.prototype,"dataChanged",null);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KX.prototype,"onYtToggleButton",null);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],KX.prototype,"onYtNavigate",null);_.d([_.$n("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KX.prototype,"onExpandedChanged",null);_.d([_.FV("mouseover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KX.prototype,"onMouseOver",null);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KX.prototype,"onTap",null);_.d([_.e({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],KX);
_.k(KX,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(XRe!==void 0)return XRe;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return XRe=S},{mode:1});var OYd;var $g=function(){return _.W.apply(this,arguments)||this};
_.C($g,_.W);$g.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$g.prototype.onShow=function(){var S=_.Ur(this.hostElement).querySelector("#live-description"),c;S&&((c=this.data)==null?0:c.shortLiveDescription)&&S.clientWidth<S.scrollWidth&&this.hostElement.classList.add("short-live-description")};
$g.prototype.onYtToggleButton=function(S){var c,Q=(c=this.data)==null?void 0:c.videoReminderEntityKey;Q&&this.ytdReduxBehavior.dispatch(_.Ns("upcomingEventReminderStateEntity",Q,{key:Q,state:S.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
$g.prototype.videoReminderStateChanged=function(){var S;this.videoReminderState&&_.Y((S=this.data)==null?void 0:S.cta,_.WA)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
$g.prototype.videoReminderStateChanged=$g.prototype.videoReminderStateChanged;$g.prototype.onYtToggleButton=$g.prototype.onYtToggleButton;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$g.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$g.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],$g.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$g.prototype,"data",void 0);
_.d([_.Z({selectorArgs:["data.videoReminderEntityKey"],selector:Hop}),_.P("design:type",Object)],$g.prototype,"videoReminderState",void 0);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],$g.prototype,"onYtToggleButton",null);_.d([_.B0("videoReminderState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$g.prototype,"videoReminderStateChanged",null);
_.d([_.e({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],$g);
_.k($g,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(OYd!==void 0)return OYd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return OYd=S},{mode:_.A2("kevlar_poly_si_batch_j065")?1:2});var z3i;var ub=function(){var S=_.W.apply(this,arguments)||this;S.useYtdPlayer=_.u("use_ytd_player_for_desktop_masthead");S.buttonOverrides={style:"overlay"};S.JSC$13484_playerManager=null;S.JSC$13484_mastheadCounter=new GCl;S.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return S};
_.C(ub,_.W);_.J=ub.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13484_playerManager=new hK)};
_.J.ready=function(){var S=this;this.JSC$13484_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var c;(c=this.embeddedPlayer)==null||c.remove()}else{var Q;(Q=this.ytdPlayer)==null||Q.remove();Nie(this.JSC$13484_playerManager,this.embeddedPlayer,function(){S.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){S.data&&S.data.navigationEndpoint&&_.Az(S.hostElement,"yt-navigate",{endpoint:S.data.navigationEndpoint})})}};
_.J.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13484_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.J.dataChanged=function(){var S=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var c=!this.data.disableAutoPlayback,Q,f={autoplay:c,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((Q=this.data.playbackStartMs)!=null?Q:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(c?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(f);this.setupYtdPlayer()}else $5d(this.JSC$13484_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(Kzp(this.JSC$13484_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13484_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.XF(S.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");S.JSC$13484_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.J.getPlayerPromise=function(){return this.JSC$13484_playerManager.getPlayerPromise()};
_.J.onYtToggleButton=function(S){this.useYtdPlayer?this.toggleMute(S.detail.toggled):S.detail.toggled?this.JSC$13484_playerManager.mute():this.JSC$13484_playerManager.unMute()};
_.J.onYtNavigate=function(S){var c=K8T(S.detail.endpoint),Q=$3M(this.data.clickthroughReportingData);c&&Q&&(S.detail.endpoint.watchEndpoint?S.detail.tempData=Q:_.SL(c,Q,30))};
_.J.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13484_playerManager.stopVideo()};
_.J.setupYtdPlayer=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.ytdPlayer.getPlayerPromise(),2);c=Q.yieldResult;c.addEventListener("onStateChange",function(f){S.onPlayerStateChange(f)});
c.addEventListener("onCueRangeExit",function(f){S.onCueRangeExit(f)});
_.IN(Q)})};
_.J.onPlayerStateChange=function(S){if(S===1&&(S=this.ytdPlayer.getPlayer())){var c=S.getCurrentTime(),Q,f,U=c+((f=(Q=this.data)==null?void 0:Q.playbackDurationMs)!=null?f:0)/1E3;S.addCueRange("playback",c,U);_.XF(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13484_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.J.onCueRangeExit=function(S){S==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.J.toggleMute=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.ytdPlayer.getPlayerPromise(),2);Q=f.yieldResult;S?Q.mute():Q.unMute();_.IN(f)})};
_.Rh.Object.defineProperties(ub.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var S,c;if(!((S=this.data)==null?0:(c=S.accessibilityData)==null?0:c.label))return"Ad primary link";var Q,f;return _.K8("AD_TITLE",{title:(Q=this.data)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label})}}});
ub.prototype.onYtMastheadHidden=ub.prototype.onYtMastheadHidden;ub.prototype.onYtNavigate=ub.prototype.onYtNavigate;ub.prototype.onYtToggleButton=ub.prototype.onYtToggleButton;ub.prototype.dataChanged=ub.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ub.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ub.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ub.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ub.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],ub.prototype,"useYtdPlayer",void 0);_.d([_.nU("ytd-toggle-button-renderer"),_.P("design:type",Object)],ub.prototype,"muteButton",void 0);_.d([_.Z(),_.P("design:type",Object)],ub.prototype,"buttonOverrides",void 0);
_.d([_.M("data.accessibilityData.label"),_.P("design:type",String),_.P("design:paramtypes",[])],ub.prototype,"titleAriaLabel",null);_.d([_.nU("#replay-button"),_.P("design:type",Object)],ub.prototype,"replayButton",void 0);_.d([_.nU("#player-container"),_.P("design:type",Object)],ub.prototype,"playerContainer",void 0);_.d([_.nU("#player"),_.P("design:type",Object)],ub.prototype,"embeddedPlayer",void 0);_.d([_.nU("#ytd-player"),_.P("design:type",Object)],ub.prototype,"ytdPlayer",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ub.prototype,"dataChanged",null);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ub.prototype,"onYtToggleButton",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ub.prototype,"onYtNavigate",null);
_.d([_.FV("yt-masthead-hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ub.prototype,"onYtMastheadHidden",null);_.d([_.e({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],ub);
_.k(ub,"ytd-video-masthead-ad-primary-video-renderer",function(){if(z3i!==void 0)return z3i;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return z3i=S},{mode:2});var x8d;var j4=function(){var S=_.W.apply(this,arguments)||this;S.collapsed=!1;S.impressionResolver=_.L4();S.JSC$13488_activeViewMeasurementDataResolver=_.L4();S.actionMap={"yt-mute-ad-action":"handleMuteAd"};return S};
_.C(j4,_.W);_.J=j4.prototype;_.J.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"}}}};
_.J.ready=function(){var S=this;_.Ur(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){S.expandAd()});
this.hostElement.addEventListener("yt-action",function(c){if(c.detail.actionName==="yt-service-request"){var Q=c.detail.args[1];Q.videoMastheadAdMuteCommand&&(S.collapseAd(Q.videoMastheadAdMuteCommand.encryptedMastheadId),c.stopPropagation())}})};
_.J.attached=function(){var S=this;_.gM(function(){S.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(c){if(!S.collapsed){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,Pt(Q.baseUrl,Q.attributionSrcMode);S.data.impressionCommand=void 0}});
this.JSC$13488_activeViewMeasurementDataResolver.promise.then(function(c){S.ytdActiveViewBehavior.enableActiveViewMeasurement(c,15)});
_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.dataChanged=function(){var S;((S=this.data.impressionCommand)==null?0:S.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var c;((c=this.data)==null?0:c.activeView)&&this.JSC$13488_activeViewMeasurementDataResolver.resolve(this.data.activeView);(S=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(S.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.J.computeWidescreen=function(S){var c;return!!(S&&((c=_.Y(S,q9T))==null?0:c.isWidescreen))};
_.J.computeExpandable=function(S){return!!(S&&S.length>0)};
_.J.onIronResize=function(){if(this.expandable){var S=_.Ur(this.hostElement).querySelector("#expandable-tile-container :first-child");S&&!S.expanded&&(S.expanded=!0)}};
_.J.handleMuteAd=function(){this.collapseAd(null)};
_.J.restoreCollapsedState=function(S){this.collapsed=_.jL().get("HIDDEN_MASTHEAD_ID")===S};
_.J.collapseAd=function(S){if(S){var c=_.jL();c.set("HIDDEN_MASTHEAD_ID",S);c.save()}(S=_.Ur(this.hostElement).querySelector("#video"))&&_.Az(S,"yt-masthead-hidden");this.collapsed=!0};
_.J.expandAd=function(){var S=_.jL();S.set("HIDDEN_MASTHEAD_ID",!1);S.save();location.reload()};
_.J.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
j4.prototype.onIronResize=j4.prototype.onIronResize;j4.prototype.dataChanged=j4.prototype.dataChanged;_.d([_.p(_.w9),_.P("design:type",Object)],j4.prototype,"ironResizableBehavior",void 0);_.d([_.p(wL),_.P("design:type",Object)],j4.prototype,"ytdActiveViewBehavior",void 0);_.d([_.p(_.GK),_.P("design:type",Object)],j4.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],j4.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],j4.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.P("design:type",Boolean)],j4.prototype,"widescreen",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.P("design:type",Boolean)],j4.prototype,"expandable",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],j4.prototype,"collapsed",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j4.prototype,"dataChanged",null);
_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j4.prototype,"onIronResize",null);_.d([_.e({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],j4);
_.k(j4,"ytd-video-masthead-ad-v3-renderer",function(){if(x8d!==void 0)return x8d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return x8d=S},{mode:2});var lb=function(){return _.W.apply(this,arguments)||this};
_.C(lb,_.W);_.J=lb.prototype;_.J.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.J.ready=function(){var S=this;c0z(function(){S.isAttached&&AW(S.JSC$13493_storedAdSlotMetadata,S.JSC$13493_storedAdLayoutMetadata,S.adSlotMetadata,S.adLayoutMetadata)&&BX(xg(),S.JSC$13493_storedAdSlotMetadata,S.JSC$13493_storedAdLayoutMetadata)})};
_.J.attached=function(){AW(this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&PLd(xg(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata)};
_.J.detached=function(){AW(this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&BX(xg(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata)};
_.J.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13493_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13493_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13493_storedAdLayoutMetadata!==void 0&&this.JSC$13493_storedAdSlotMetadata!==void 0&&BX(xg(),this.JSC$13493_storedAdSlotMetadata,this.JSC$13493_storedAdLayoutMetadata),PLd(xg(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13493_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13493_storedAdSlotMetadata=this.adSlotMetadata)};
_.Rh.Object.defineProperties(lb.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.adLayoutMetadata}}});
lb.prototype.onAdMetadataChanged=lb.prototype.onAdMetadataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],lb.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lb.prototype,"data",void 0);_.d([_.M("data.adLayoutMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],lb.prototype,"adLayoutMetadata",null);
_.d([_.Z(),_.P("design:type",Object)],lb.prototype,"adSlotMetadata",void 0);_.d([_.B0("adLayoutMetadata","adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lb.prototype,"onAdMetadataChanged",null);_.d([_.e({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],lb);
_.k(lb,"ytd-page-top-ad-layout-renderer",function(){if(JfJ!==void 0)return JfJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return JfJ=
S},{mode:_.A2("kevlar_poly_si_batch_j070")?1:2});var FTi;var Yg=function(){var S=_.W.apply(this,arguments)||this;S.noBottomMargin=!1;S.overlayDensity=0;S.typographyBump=!1;return S};
_.C(Yg,_.W);_.J=Yg.prototype;
_.J.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]]"}}}}}};
_.J.ready=function(){var S=this;c0z(function(){S.isAttached&&S.adSlotMetadata&&v2p(xg(),S.adSlotMetadata)})};
_.J.attached=function(){if(this.adSlotMetadata){var S;if(this.adSlotMetadata===((S=this.data)==null?void 0:S.adSlotMetadata))dai(xg(),this.adSlotMetadata);else{var c;_.i5(Error("Mh`"+this.adSlotMetadata+"`"+((c=this.data)==null?void 0:c.adSlotMetadata)))}}};
_.J.detached=function(){this.adSlotMetadata&&v2p(xg(),this.adSlotMetadata)};
_.J.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.J.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&v2p(xg(),this.adSlotMetadata),dai(xg(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.Rh.Object.defineProperties(Yg.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=_.Y((S=this.data)==null?void 0:(c=S.fulfillmentContent)==null?void 0:c.fulfilledLayout,_.w$J),f;return(S=(f=_.Y(Q==null?void 0:Q.renderingContent,Tau))==null?void 0:f.layout)?S.toLowerCase().replace(/_/g,"-"):""}}});
Yg.prototype.onAdSlotMetadataChanged=Yg.prototype.onAdSlotMetadataChanged;Yg.prototype.onTypographyBumpChanged=Yg.prototype.onTypographyBumpChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Yg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Yg.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Yg.prototype,"rendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Yg.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Yg.prototype,"noBottomMargin",void 0);_.d([_.Z(),_.P("design:type",Object)],Yg.prototype,"overlayDensity",void 0);_.d([_.Z(),_.P("design:type",Object)],Yg.prototype,"typographyBump",void 0);_.d([_.nU("ytd-in-feed-ad-layout-renderer"),_.P("design:type",HTMLElement)],Yg.prototype,"inFeedAdLayoutRenderer",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Yg.prototype,"layout",null);_.d([_.B0("typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yg.prototype,"onTypographyBumpChanged",null);_.d([_.B0("data.adSlotMetadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yg.prototype,"onAdSlotMetadataChanged",null);
_.d([_.e({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],Yg);
_.k(Yg,"ytd-ad-slot-renderer",function(){if(FTi!==void 0)return FTi;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return FTi=S},{mode:_.A2("kevlar_poly_si_batch_j077")?
1:2});var BId;var CX=function(){return _.W.apply(this,arguments)||this};
_.C(CX,_.W);_.J=CX.prototype;_.J.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"}}}};
_.J.maybeComputeHref=function(S){return _.u("enable_handle_watch_endpoint_click_for_vdc")?null:this.ytComponentBehavior.computeOptionalHref_(S)};
_.J.onTap=function(){_.u("enable_handle_watch_endpoint_click_for_vdc")||this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&Ofz(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.J.onThumbnailContainerClick=function(S){this.onClick(S)};
_.J.onClick=function(S){if(_.u("enable_handle_watch_endpoint_click_for_vdc")){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint;Q&&_.Y(Q,_.tG)&&(this.ytSparklesClickLocationBehavior.handleClick(Q,S,!1),S.stopPropagation())}};
_.J.dataChanged=function(){if(this.data){if(this.data.impressionUrls)for(var S=_.A(this.data.impressionUrls),c=S.next();!c.done;c=S.next())c=c.value,$6o(c,jMo(c));this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17);_.u("enable_handle_watch_endpoint_click_for_vdc")&&(this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",CX.JSC$13501_DEFAULT_CLICK_LOCATION_BEHAVIOR,CX.JSC$13501_CLICK_LOCATION_ID_MAP),this.thumbnail&&(S=this.thumbnail.getElementsByTagName("a"),
S.length>0&&(S=S.namedItem("thumbnail"))&&S.removeAttribute("href")))}};
_.J.attached=function(){var S=this;_.u("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&S.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.J.detached=function(){_.u("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.Rh.Object.defineProperties(CX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
CX.prototype.dataChanged=CX.prototype.dataChanged;CX.prototype.onTap=CX.prototype.onTap;CX.JSC$13501_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
CX.JSC$13501_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"}];_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],CX.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.d([_.p(wL),_.P("design:type",Object)],CX.prototype,"ytdActiveViewBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],CX.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],CX.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],CX.prototype,"ytSparklesClickLocationBehavior",void 0);
_.d([_.Z({selector:_.e9}),_.P("design:type",Object)],CX.prototype,"isGridViewEnabled",void 0);_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CX.prototype,"watchFeedBigThumbs",null);_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],CX.prototype,"thumbnailWidth",null);_.d([_.Z(),_.P("design:type",Object)],CX.prototype,"data",void 0);
_.d([_.nU("ytd-thumbnail"),_.P("design:type",HTMLElement)],CX.prototype,"thumbnail",void 0);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CX.prototype,"onTap",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CX.prototype,"dataChanged",null);_.d([_.e({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],CX);
_.k(CX,"ytd-compact-promoted-video-renderer",function(){if(BId!==void 0)return BId;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return BId=S},{mode:1});var I9l;_.i8("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var HX=function(){return _.W.apply(this,arguments)||this};
_.C(HX,_.W);HX.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],HX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],HX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],HX.prototype,"data",void 0);_.d([_.e({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],HX);
_.k(HX,"ytd-search-pyv-renderer",function(){if(I9l!==void 0)return I9l;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return I9l=S},{mode:1});var nPz;_.i8("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var DY=function(){var S=_.W.apply(this,arguments)||this;S.roundedContainer=!0;S.JSC$13509_handleOpenPostCommentDialogActionAfterStamp=!1;S.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return S};
_.C(DY,_.W);_.J=DY.prototype;
_.J.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}}};
_.J.onStampFinished=function(){this.JSC$13509_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var S=_.Ur(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");S?S.openDialog():this.JSC$13509_handleOpenPostCommentDialogActionAfterStamp=!0};
_.J.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.J.computeHideBorder=function(){return this.isInEngagementPanel};
_.J.computeIsCompact=function(){return this.isInEngagementPanel};
_.J.computeUsesCompactLockup=function(S){return S==="BACKSTAGE_SURFACE_TYPE_HOME"||S==="BACKSTAGE_SURFACE_TYPE_SEARCH"||S==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||S==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||S==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||S==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.J.computeUsesFullLockup=function(){var S,c=(S=this.data)==null?void 0:S.post,Q;S=(Q=_.Y(c,rwp))==null?void 0:Q.surface;var f;Q=(f=_.Y(c,vsd))==null?void 0:f.originalPost;var U;if(f=S||((U=_.Y(Q,rwp))==null?void 0:U.surface))return!this.computeUsesCompactLockup(f)&&this.useUpdatedRepostUi;var a;return((a=_.Y(c,vsd))==null?void 0:a.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.Rh.Object.defineProperties(DY.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var S,c;return((c=_.Y((S=this.data)==null?void 0:S.post,rwp))==null?void 0:c.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.useUpdatedRepostUi}}});
DY.prototype.onYtCommentModerationPanelEmpty=DY.prototype.onYtCommentModerationPanelEmpty;DY.prototype.onStampFinished=DY.prototype.onStampFinished;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],DY.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],DY.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],DY.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],DY.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],DY.prototype,"roundedContainer",void 0);_.d([_.Z({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.P("design:type",Boolean)],DY.prototype,"hideBorder",void 0);_.d([_.Z({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.P("design:type",Boolean)],DY.prototype,"isCompact",void 0);
_.d([_.Z({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.P("design:type",Boolean)],DY.prototype,"usesFullLockup",void 0);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DY.prototype,"onStampFinished",null);
_.d([_.FV("ytd-comment-moderation-panel-empty"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],DY.prototype,"onYtCommentModerationPanelEmpty",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DY.prototype,"isInEngagementPanel",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DY.prototype,"useUpdatedRepostUi",null);
_.d([_.e({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],DY);
_.k(DY,"ytd-backstage-post-thread-renderer",function(){if(nPz!==void 0)return nPz;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return nPz=S},{mode:1});var bYd;var pX=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(pX,_.W);pX.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
pX.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var S=this.data.thumbnail.thumbnails;this.isDarkTheme&&(S=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(S=_.U2(S,24,void 0,"height"))?S:void 0}};
pX.prototype.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
pX.prototype.computeHasText=function(){var S;return!((S=this.data)==null||!S.text)};
_.Rh.Object.defineProperties(pX.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.jS(this.bannerImageUrl))+'");'}}});
pX.prototype.computeHasText=pX.prototype.computeHasText;pX.prototype.computeBannerImageUrl=pX.prototype.computeBannerImageUrl;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],pX.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],pX.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pX.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],pX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],pX.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",String)],pX.prototype,"bannerImageUrl",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.P("design:type",Boolean)],pX.prototype,"hasText",void 0);_.d([_.B0("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pX.prototype,"computeBannerImageUrl",null);
_.d([_.B0("data.text"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pX.prototype,"computeHasText",null);_.d([_.M("bannerImageUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],pX.prototype,"bannerStyle",null);_.d([_.e({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],pX);
_.k(pX,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(bYd!==void 0)return bYd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return bYd=S},{mode:1});var NId;var hT=function(){return _.W.apply(this,arguments)||this};
_.C(hT,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hT.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hT.prototype,"data",void 0);_.d([_.e({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],hT);
_.k(hT,"ytd-backstage-zero-state-renderer",function(){if(NId!==void 0)return NId;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return NId=S},{mode:1});var KTH;var qF=function(){return _.W.apply(this,arguments)||this};
_.C(qF,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qF.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],qF.prototype,"icon",void 0);_.d([_.e({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],qF);
_.k(qF,"ytd-post-filter-zero-state-renderer",function(){if(KTH!==void 0)return KTH;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return KTH=S},{mode:1});var $8u;var use={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Tm=function(){return _.W.apply(this,arguments)||this};
_.C(Tm,_.W);Tm.prototype.configureRendererStamper=function(){return use};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Tm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Tm.prototype,"rendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Tm.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],Tm.prototype,"icon",void 0);_.d([_.e({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Tm);
_.k(Tm,"ytd-post-scheduling-zero-state-renderer",function(){if($8u!==void 0)return $8u;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return $8u=S},{mode:1});var jfd;var wo=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return S};
_.C(wo,_.W);wo.prototype.onTabsActivate=function(S){this.data&&this.data.tabs&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[S.detail.selected].navigationEndpoint})};
wo.prototype.shouldShowTotalCount=function(S){return S&&S.totalCount!==void 0};
wo.prototype.handleUpdatePostsTotalCountAction=function(S){var c=this.get(["data.tabs",1,"totalCount"]),Q=this.get("updatePostsTotalCountAction.updateType",S);S=this.get("updatePostsTotalCountAction.number",S);c!==void 0&&Q!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&S&&(Q==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(c)+S):Q==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(c)-S))};
_.Rh.Object.defineProperties(wo.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var S=0,c=this.data.tabs.length;S<c;S++)if(this.data.tabs[S].selected)return S;return 0}}});
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],wo.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wo.prototype,"rendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],wo.prototype,"data",void 0);_.d([_.M("data.tabs"),_.P("design:type",Number),_.P("design:paramtypes",[])],wo.prototype,"selected",null);_.d([_.e({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],wo);
_.k(wo,"ytd-post-stream-filter-renderer",function(){if(jfd!==void 0)return jfd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return jfd=S},{mode:1});var l9H;var sS=function(){return _.W.apply(this,arguments)||this};
_.C(sS,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sS.prototype,"kevlarBehaviors",void 0);_.d([_.Z(),_.P("design:type",Object)],sS.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],sS);
_.k(sS,"ytd-channel-age-gate-renderer",function(){if(l9H!==void 0)return l9H;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return l9H=S},{mode:1});var Yke;_.i8("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var MF=function(){var S=_.W.apply(this,arguments)||this;S.data=null;return S};
_.C(MF,_.W);MF.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Rh.Object.defineProperties(MF.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?0:(c=S.title)==null?0:(Q=c.runs)==null?0:Q.length)?147:160}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],MF.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],MF.prototype,"imageSizePx",null);_.d([_.e({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],MF);
_.k(MF,"ytd-channel-owner-empty-state-renderer",function(){if(Yke!==void 0)return Yke;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Yke=S},{mode:1});var C0u;var HYu;var ib=function(){var S=_.W.apply(this,arguments)||this;S.boundSubmitSearch=function(){S.submitSearch()};
S.boundClearSearch=function(){S.clearSearch()};
return S};
_.C(ib,_.W);_.J=ib.prototype;_.J.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]]"}}}}}};
_.J.toggleClearButton=function(){this.hideClearButton=pQY||!this.input.value};
_.J.submitOnEnterKeyUp=function(S){S.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.J.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.J.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.J.submit=function(){_.Az(this.hostElement,"search-query-changed",this.input.value)};
ib.prototype.toggleClearButton=ib.prototype.toggleClearButton;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ib.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ib.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ib.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ib.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],ib.prototype,"hideClearButton",void 0);_.d([_.Z(),_.P("design:type",Object)],ib.prototype,"boundSubmitSearch",void 0);_.d([_.Z(),_.P("design:type",Object)],ib.prototype,"boundClearSearch",void 0);_.d([_.nU("#input"),_.P("design:type",Object)],ib.prototype,"input",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ib.prototype,"toggleClearButton",null);
_.d([_.e({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],ib);
_.k(ib,"ytd-channel-switcher-search-box-renderer",function(){if(HYu!==void 0)return HYu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return HYu=S},{mode:1});var D8l;var ZY=function(){var S=_.W.apply(this,arguments)||this;S.boundSubmit=function(){S.submit()};
return S};
_.C(ZY,_.W);_.J=ZY.prototype;_.J.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"}}}}};
_.J.ready=function(){var S=this;this.form.addEventListener("submit",function(c){return S.onSubmit(c)})};
_.J.onSubmit=function(S){S.preventDefault();return!1};
_.J.toggleClearButton=function(){this.hideClearButton=pQY||!this.input.value};
_.J.submitOnEnterKeyUp=function(S){S.keyCode===13&&this.submit()};
_.J.submit=function(){var S=this.data.endpoint,c=(0,_.Cn.unsafeClone)(S);_.Y(c,_.KJ)?_.Y(c,_.KJ).query=this.input.value:_.Y(c,_.$k)&&(_.Y(c,_.$k).query=this.input.value);var Q=_.Y(c.commandMetadata,_.Qw);(Q==null?0:Q.url)?(Q.url=_.WG(Q.url,"query",this.input.value),_.Az(this.hostElement,"yt-navigate",{endpoint:c})):_.Y(c,Cez)?(_.Y(c,Cez).channelSwitcherQuery=this.input.value,_.fl().resolve(_.U8).resolveCommand(c,{form:{element:this.hostElement}})):(S=Error("Nh`"+JSON.stringify(S)),_.sH(S))};
_.J.getUrl=function(S){return this.get("commandMetadata.webCommandMetadata.url",S)};
ZY.prototype.toggleClearButton=ZY.prototype.toggleClearButton;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ZY.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ZY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ZY.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],ZY.prototype,"hideClearButton",void 0);
_.d([_.Z(),_.P("design:type",Object)],ZY.prototype,"boundSubmit",void 0);_.d([_.nU("#form"),_.P("design:type",HTMLFormElement)],ZY.prototype,"form",void 0);_.d([_.nU("#input"),_.P("design:type",Object)],ZY.prototype,"input",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZY.prototype,"toggleClearButton",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],ZY);
_.k(ZY,"ytd-search-box-renderer",function(){if(D8l!==void 0)return D8l;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return D8l=S},{mode:2});var Gm=function(){var S=_.W.apply(this,arguments)||this;S.showSearchBox=!0;return S};
_.C(Gm,_.W);Gm.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Gm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Gm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Gm.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Gm.prototype,"showSearchBox",void 0);_.d([_.e({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Gm);
_.k(Gm,"ytd-channel-switcher-header-renderer",function(){if(C0u!==void 0)return C0u;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return C0u=S},{mode:1});var pRi;var h3d;var WX=function(){var S=_.W.apply(this,arguments)||this;S.isDisplayed=!0;return S};
_.C(WX,_.W);_.J=WX.prototype;_.J.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.isDisplayed=!0};
_.J.computeType=function(S){return S||"UNKNOWN"};
_.J.onYtServiceRequestCompleted=function(S){S.stopPropagation();this.isDisplayed=!1};
_.J.onClose=function(){this.isDisplayed=!1};
WX.prototype.onYtServiceRequestCompleted=WX.prototype.onYtServiceRequestCompleted;WX.prototype.dataChanged=WX.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],WX.prototype,"data",void 0);
_.d([_.Z({computed:"computeType(data.type)",reflectToAttribute:!0}),_.P("design:type",String)],WX.prototype,"type",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],WX.prototype,"isDisplayed",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WX.prototype,"dataChanged",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],WX.prototype,"onYtServiceRequestCompleted",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],WX);
_.k(WX,"ytd-alert-with-button-renderer",function(){if(h3d!==void 0)return h3d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return h3d=S},{mode:1});var go=function(){var S=_.W.apply(this,arguments)||this;S.noResult=!1;S.enableAlertBanner=!1;S.dismissedAlertBanner=!1;S.hideCreateChannelButton=!1;S.boundDismissAlertBanner=function(){S.dismissAlertBanner()};
S.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return S};
_.C(go,_.W);_.J=go.prototype;_.J.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.J.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.J.updateChannelSwitcherAction=function(S){var c;S=(c=_.Y(S,JMl))==null?void 0:c.page;_.Y(S,U1H)!==void 0&&(this.data=_.Y(S,U1H))};
_.J.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]]"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.searchQueryChanged=function(S,c){if(this.data&&this.data.contents&&this.data.contents.length){S=[];var Q=[];this.hideCreateChannelButton=this.noResult=!1;for(var f=document.querySelectorAll("ytd-account-item-renderer"),U=_.A(f),a=U.next();!a.done;a=U.next())a=a.value,Q.push(a),a.style.display="block";this.resetRightBorder(Q);if(c){this.hideCreateChannelButton=!0;for(Q=1;Q<this.data.contents.length;Q++)if(a=this.data.contents[Q],_.Y(a,jKT)){var X=void 0,z=void 0;U=(X=_.Y(a,jKT))==null?void 0:(z=
X.accountName)==null?void 0:z.simpleText;z=X=void 0;a=(X=_.Y(a,jKT))==null?void 0:(z=X.channelHandle)==null?void 0:z.simpleText;(X=f[Q-1])&&U&&_.xY(U,c)?S.push(X):_.u("enable_handle_search_on_channel_switcher")&&X&&a&&_.xY(a.toString(),c.toString())?S.push(X):X.style.display="none"}S.length===0&&(this.noResult=!0);this.resetRightBorder(S)}}};
_.J.resetRightBorder=function(S){for(var c=0;c<S.length;c++)S[c].style.borderRight=!this.hideCreateChannelButton&&(c+2)%3===0||this.hideCreateChannelButton&&(c+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.J.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.J.setShowSearchBox=function(S){if(S&&S.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var c=0;c<S.contents.length;c++)_.Y(S.contents[c],_.aK)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.J.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.Rh.Object.defineProperties(go.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null?0:S.contents)}}});
go.prototype.onContinuationItemsUpdated=go.prototype.onContinuationItemsUpdated;go.prototype.searchQueryChanged=go.prototype.searchQueryChanged;go.prototype.onDataChanged=go.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],go.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],go.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],go.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],go.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],go.prototype,"data",void 0);_.d([_.nU("ytd-channel-switcher-header-renderer"),_.P("design:type",Object)],go.prototype,"channelSwitcherHeaderRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],go.prototype,"noResult",void 0);
_.d([_.Z(),_.P("design:type",Object)],go.prototype,"enableAlertBanner",void 0);_.d([_.Z(),_.P("design:type",Object)],go.prototype,"dismissedAlertBanner",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],go.prototype,"hideCreateChannelButton",void 0);_.d([_.M("data.contents"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],go.prototype,"isLoading",null);_.d([_.Z(),_.P("design:type",Object)],go.prototype,"boundDismissAlertBanner",void 0);
_.d([_.Z({computed:"computeButtonOverride()"}),_.P("design:type",Object)],go.prototype,"buttonOverride",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],go.prototype,"onDataChanged",null);_.d([_.FV("search-query-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],go.prototype,"searchQueryChanged",null);
_.d([_.FV("yt-next-continuation-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],go.prototype,"onContinuationItemsUpdated",null);_.d([_.e({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],go);
_.k(go,"ytd-channel-switcher-page-renderer",function(){if(pRi!==void 0)return pRi;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return pRi=S},{mode:1});var qkd;var TIh;var e4=function(){var S=_.W.apply(this,arguments)||this;S.images=[];S.selectedImageIndex=0;return S};
_.C(e4,_.W);_.J=e4.prototype;
_.J.ready=function(){_.HI(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.HI(this.JSC$13554_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.HI(this.JSC$13554_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.HI(this.JSC$13554_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.J.onThumbnailClick=function(S){if(S=S.event_.detail)this.selectedImageIndex=this.images.indexOf(S)};
_.J.updateImageThumbnails=function(S){S=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:S.event_.detail});this.images.splice(this.selectedImageIndex,1,S);this.images=[].concat(_.Hs(this.images))};
_.J.cancelImageRepositions=function(){this.selectedImageIndex=0;_.Az(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.J.saveImageRepositions=function(){this.selectedImageIndex=0;_.Az(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.Rh.Object.defineProperties(e4.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var S=this;return(this.images||[]).map(function(c,Q){return{image:c,selected:Q===S.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],e4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("ytd-backstage-image-preview-renderer"),_.P("design:type",Object)],e4.prototype,"JSC$13554_imagePreviewContainer",void 0);_.d([_.nU(".thumbnail-images-container"),_.P("design:type",HTMLElement)],e4.prototype,"thumbnailImagesContainer",void 0);_.d([_.Z(),_.P("design:type",Array)],e4.prototype,"images",void 0);
_.d([_.Z(),_.P("design:type",Object)],e4.prototype,"repositionInstructions",void 0);_.d([_.Z(),_.P("design:type",Object)],e4.prototype,"selectedImageIndex",void 0);_.d([_.M("images","selectedImageIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],e4.prototype,"thumbnailRendererDatas",null);_.d([_.M("images","selectedImageIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],e4.prototype,"selectedImageData",null);
_.d([_.e({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],e4);
_.k(e4,"ytd-backstage-multi-image-reposition-renderer",function(){if(TIh!==void 0)return TIh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return TIh=S},{mode:1});var kg=function(S,c){_.Y5.call(this);this.uploadUrl=S;this.channelId=c;this.imagesUploadData=[]};
_.C(kg,_.Y5);kg.prototype.getAllUploadStatuses=function(){var S=this,c,Q,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,wRs(S),2);c=U.yieldResult;Q=c.get("succeed");f=c.get("failed");return U.return(Q.concat(f))})};
var MAs=function(S){var c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,wRs(S),2);c=f.yieldResult;Q=c.get("failed");Q.length>0&&sfl(S,Q);return f.return(S.getAllUploadStatuses())})},wRs=function(S){var c,Q,f,U,a,X,z;
return _.O(function(x){if(x.nextAddress==1)return c=new Map,_.F(x,Promise.allSettled(S.imagesUploadData.map(function(I){return I.uploadPromise})),2);
Q=x.yieldResult;f=[];U=_.A(Q);for(a=U.next();!a.done;a=U.next())X=a.value,X.status==="fulfilled"&&f.push(X.value);z=S.imagesUploadData.map(function(I){return I.image}).filter(function(I){return f.every(function(n){return n.id!==I.id})});
c.set("succeed",f);c.set("failed",z);return x.return(c)})},sfl=function(S,c){c=_.A(c);
for(var Q=c.next();!Q.done;Q=c.next()){var f=S;Q=Q.value;iY_(f,Q.id)>=0&&f.cancel(Q.id);var U=new ZYp(Q),a=_.Oj$(f.uploadUrl,{"X-YouTube-ChannelId":f.channelId},Q.imageBlob);U.transfer=a;U.uploadPromise=Gxi(a,Q);f.imagesUploadData.push(U);a.run()}};
kg.prototype.cancel=function(S){var c=iY_(this,S);c!==-1&&((c=this.imagesUploadData[c].transfer)&&c.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(Q){return Q.image.id!==S}))};
var iY_=function(S,c){return S.imagesUploadData.findIndex(function(Q){return Q.image.id===c})},Gxi=function(S,c){return new Promise(function(Q,f){S.listen("l",function(){var U=S.getResponseText();
U?(U=JSON.parse(U).encryptedBlobId,c.encryptedBlobId=U,Q(c)):f("upload failed")});
S.listen("n",function(){f("upload failed")})})},ZYp=function(S){this.image=S};var eFx=function(S,c,Q,f,U){this.id=S;this.imageBlob=c;this.localImageSrc=Q;this.naturalWidth=f;this.naturalHeight=U;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 WTh=[".jpeg",".jpg",".png"],ro=function(){var S=_.W.apply(this,arguments)||this;S.showImagesPreview=!1;S.pollOptions=[];S.errorMessage="";S.optionPlaceholderText="";S.optionDefaultText="";S.JSC$13565_imageId=0;S.maxFileSizeMb=0;S.maxAspectRatio=0;S.invalidFileSizeError="";S.invalidAspectRatioError="";S.invalidFileTypeError="";S.imageSelector=new BA(null,"single_file",WTh);return S};
_.C(ro,_.W);_.J=ro.prototype;_.J.ready=function(){_.HI(this.imageSelector,"j",this.onImageSelect,!1,this);_.HI(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.HI(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.J.dataChanged=function(){var S,c,Q=_.Y((S=this.data)==null?void 0:(c=S.cellTemplate)==null?void 0:c.onEmptyCellTap,fPs);if(Q&&Q.uploadUrl&&Q.channelId){var f;this.maxFileSizeMb=((f=Q.imageValidationInfo)==null?void 0:f.maxFileSizeMb)||0;var U;this.maxAspectRatio=((U=Q.imageValidationInfo)==null?void 0:U.allowedMaxAspectRatio)||0;var a;this.invalidFileSizeError=this.getSimpleString((a=this.data)==null?void 0:a.invalidFileSizeError);var X;this.invalidAspectRatioError=this.getSimpleString((X=this.data)==
null?void 0:X.invalidAspectRatioError);var z;this.invalidFileTypeError=this.getSimpleString((z=this.data)==null?void 0:z.invalidFileTypeError);this.uploadManager=new kg(Q.uploadUrl,Q.channelId)}};
_.J.onEditorInfoChange=function(){this.optionPlaceholderText=_.Em(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.Em(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.J.observeAddImageError=function(){this.errorMessage!==""&&_.Az(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.J.onPollOptionsChange=function(){for(var S=!1,c=[],Q=0;Q<this.pollOptions.length;Q++){var f=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(Q+1);this.pollOptions[Q].placeholderText!==f?(S=!0,c.push(Object.assign({},this.pollOptions[Q],{placeholderText:f}))):c.push(this.pollOptions[Q])}S&&(this.pollOptions=c);this.isValid()?_.Az(this.hostElement,"yt-commentbox-post-enable"):_.Az(this.hostElement,"yt-commentbox-post-disable")};
_.J.createPollOptions=function(S){var c=[],Q;S=(Q=S==null?void 0:S.minPollOptions)!=null?Q:0;for(Q=0;Q<S;Q++)c.push(this.createPollOption());return c};
_.J.onImageSelect=function(S){var c=this,Q,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1){if(c.selectedImageIndex===void 0)return x.jumpTo(0);Q=S.files[0];c.errorMessage="";f=c.validateImage(Q);if(f!=="")return c.errorMessage=f,x.return();U=new Ea(c.maxAspectRatio,!1,!0);return _.F(x,U.transform(Q),3)}if(x.nextAddress!=4)return a=x.yieldResult,a.transformedData?a.invalidAspectRatio?(c.errorMessage=c.invalidAspectRatioError,x.return()):_.F(x,k2T(c.JSC$13565_imageId,S.files[0],a.transformedData),
4):(c.errorMessage=c.invalidFileTypeError,x.return());X=x.yieldResult;c.JSC$13565_imageId++;sfl(c.uploadManager,[X]);z=Object.assign({},c.pollOptions[c.selectedImageIndex],{image:X});c.pollOptions.splice(c.selectedImageIndex,1,z);c.refreshPollOptions();_.Az(c.hostElement,"yt-backstage-poll-image-select");_.IN(x)})};
_.J.validateImage=function(S){return S.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.J.refreshPollOptions=function(){this.pollOptions=[].concat(_.Hs(this.pollOptions))};
_.J.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Hs(this.pollOptions),[this.createPollOption()]))};
_.J.onRemovePollOption=function(S){var c=this.pollOptions[S.model.index];c&&c.image&&this.uploadManager.cancel(c.image.id);this.pollOptions.splice(S.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.Az(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.J.onTextInput=function(){this.refreshPollOptions()};
_.J.onImageButtonClick=function(S){this.selectedImageIndex=S.model.index;this.imageSelector.click()};
_.J.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.J.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.J.saveImageRepositions=function(S){S=S.event_.detail;for(var c=0,Q=[],f=_.A(this.pollOptions),U=f.next();!U.done;U=f.next())U=U.value,U.image!==void 0?(U=Object.assign({},U,{image:S[c]}),Q.push(U),c++):Q.push(U);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Hs(Q))};
_.J.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 S=0,c=_.A(this.pollOptions),Q=c.next();!Q.done;Q=c.next())if(Q=Q.value,Q.optionText.trim()!==""||Q.image!==void 0){if(!Q.image||this.hasCustomOptionText&&Q.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;S++}return S>=Number(this.editorInfo.minPollOptions)};
_.J.getAllUploadStatuses=function(){var S=this,c,Q,f,U;return _.O(function(a){if(a.nextAddress==1)return _.F(a,S.uploadManager.getAllUploadStatuses(),2);c=a.yieldResult;Q=_.A(c);for(f=Q.next();!f.done;f=Q.next())if(U=f.value,U.encryptedBlobId===void 0)return a.return(MAs(S.uploadManager));return a.return(c)})};
_.J.getPostCreateOptions=function(){for(var S=[],c=_.A(this.pollOptions),Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.image!==void 0&&S.push({text:this.hasCustomOptionText?Q.optionText:Q.placeholderText,image:Q.image});return S};
_.J.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.J.createButtonRenderer=function(S,c){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:S,accessibilityData:{accessibilityData:{label:this.getSimpleString(S)}},isDisabled:c}};
_.J.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.J.computeThumbnailRendererData=function(S){return S?{image:S,selected:!1}:void 0};
_.J.getSimpleString=function(S){return _.Em(S)};
_.J.updateOptionTextFromBinding=function(S){if(S.target){var c=Array.from(_.Ur(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(S.target);if(c>=0){var Q;this.pollOptions[c].optionText=(Q=S.detail.value)!=null?Q:""}}};
_.Rh.Object.defineProperties(ro.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var S,c;return this.pollOptions.length<((c=(S=this.editorInfo)==null?void 0:S.maxPollOptions)!=null?c:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(S){return S.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(S){return S.image}).map(function(S){return S.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(S){return S.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var S,c=(S=this.data)==null?void 0:S.addOptionButtonText;return c?this.createButtonRenderer(c,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var S,c=(S=this.data)==null?void 0:S.repositionImagesButtonLabel;return c?this.createButtonRenderer(c,!this.hasImages):void 0}}});
ro.prototype.onPollOptionsChange=ro.prototype.onPollOptionsChange;ro.prototype.observeAddImageError=ro.prototype.observeAddImageError;ro.prototype.onEditorInfoChange=ro.prototype.onEditorInfoChange;ro.prototype.dataChanged=ro.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ro.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("ytd-backstage-multi-image-reposition-renderer"),_.P("design:type",Object)],ro.prototype,"imageRepositionContainer",void 0);
_.d([_.Z(),_.P("design:type",Object)],ro.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],ro.prototype,"editorInfo",void 0);_.d([_.Z(),_.P("design:type",kg)],ro.prototype,"uploadManager",void 0);_.d([_.Z(),_.P("design:type",Object)],ro.prototype,"showImagesPreview",void 0);_.d([_.Z(),_.P("design:type",Array)],ro.prototype,"pollOptions",void 0);_.d([_.Z(),_.P("design:type",Object)],ro.prototype,"errorMessage",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"dataChanged",null);_.d([_.$n("editorInfo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"onEditorInfoChange",null);_.d([_.B0("errorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"observeAddImageError",null);
_.d([_.$n("pollOptions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ro.prototype,"onPollOptionsChange",null);_.d([_.M("pollOptions","editorInfo"),_.P("design:type",Object),_.P("design:paramtypes",[])],ro.prototype,"isAllowedToAddOption",null);_.d([_.M("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],ro.prototype,"hasImages",null);
_.d([_.M("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],ro.prototype,"imagesToReposition",null);_.d([_.M("pollOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],ro.prototype,"hasCustomOptionText",null);_.d([_.M("data","isAllowedToAddOption"),_.P("design:type",Object),_.P("design:paramtypes",[])],ro.prototype,"addOptionButton",null);_.d([_.M("data","hasImages"),_.P("design:type",Object),_.P("design:paramtypes",[])],ro.prototype,"repositionImagesButton",null);
_.d([_.e({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],ro);
_.k(ro,"ytd-backstage-image-poll-editor-renderer",function(){if(qkd!==void 0)return qkd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return qkd=S},{mode:2});var gPu={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 e3d;var vX=function(){var S=_.W.apply(this,arguments)||this;S.a11yConfig=gPu;S.imageDisplayOffsetTop=0;S.imageDisplayOffsetLeft=0;S.pickerDisplayOffsetTop=0;S.pickerDisplayOffsetLeft=0;S.showPreviewContainer=!0;S.startPicker=!1;S.repositionOptional=!1;S.editOnlyMode=!1;S.savedImageDisplayOffsetTop=0;S.savedImageDisplayOffsetLeft=0;return S};
_.C(vX,_.W);_.J=vX.prototype;_.J.created=function(){_.k1.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(S){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){S.detail.keyboardEvent.preventDefault();var c=0,Q=0,f="";switch(S.detail.keyboardEvent.key){case "ArrowUp":rgx(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":rgx(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":rgx(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:Q=this.imageWidth*.05*-1;break;case "ArrowRight":rgx(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:Q=this.imageWidth*.05}f&&_.K8(f)&&_.Az(this.hostElement,"iron-announce",{text:_.K8(f)});if(Q||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),S=_.K8(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+Q)),S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),S=_.K8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})),S&&_.Az(this.hostElement,"iron-announce",{text:S})}};
_.J.getPreviewPosition=function(S,c,Q,f){return Math.round(100*(S+c*.5-Q)/f)};
_.J.calculateDisplayPosition=function(){var S=this.imageData.naturalWidth,c=this.imageData.naturalHeight;this.displayScale=Math.max(200/S,200/c);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var Q=S*this.displayScale*this.imageData.previewCoordinates.left,f=c*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=c>S?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-Q;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=S>c?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-f;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=S*this.displayScale;this.imageHeight=c*this.displayScale};
_.J.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.J.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.J.getSignedPosition=function(S,c,Q){return c==="X"&&_.WY("HTML_DIR")==="rtl"?Q==="-"?S+"px":S*-1+"px":Q==="-"?S*-1+"px":S+"px"};
_.J.pickerMove=function(S){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-S.clientX,Q=this.pickerOffsetY-S.clientY;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
Q)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.J.pickerMoveStart=function(S){this.startPicker=!0;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var S=this.generateCropPreview();S&&_.Az(this.hostElement,"ytd-backstage-image-preview-coordinates-update",S)};
_.J.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.Az(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.J.deleteImage=function(){_.Az(this.hostElement,"ytd-backstage-image-preview-delete")};
_.J.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.J.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var S=this.generateCropPreview();S&&_.Az(this.hostElement,"ytd-backstage-image-preview-coordinates-save",S)};
_.J.getPreviewOffset=function(S,c,Q){return c&&S?(Q==="X"&&_.WY("HTML_DIR")==="rtl"?300/c*S:300/c*S*-1)+"px":"0px"};
_.J.getSimpleText=function(S){return S?_.Em(S):""};
_.J.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}};
_.Rh.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 S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.K8(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.K8(this.a11yConfig.verticalRepositionInstruction)}S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.K8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.K8(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 S,c,Q=(S=this.instruction)==null?void 0:(c=S.previewInstruction)==null?void 0:c.editButtonLabel;return Q?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U=this.editOnlyMode?(S=this.instruction)==null?void 0:(c=S.editInstruction)==null?void 0:c.saveImagesButtonLabel:(Q=this.instruction)==null?void 0:(f=Q.editInstruction)==null?void 0:f.saveButtonLabel;return U?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:U,accessibilityData:{accessibilityData:{label:this.getSimpleText(U)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.instruction)==null?void 0:(c=S.previewInstruction)==null?void 0:c.deleteButtonLabel;return Q?{size:"SIZE_SMALL",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.instruction)==null?void 0:(c=S.editInstruction)==null?void 0:c.cancelButtonLabel;S=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return Q?{style:S,size:"SIZE_SMALL",text:Q,accessibilityData:{accessibilityData:{label:this.getSimpleText(Q)}}}: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"}}});
vX.prototype.onEditOnlyModeUpdate=vX.prototype.onEditOnlyModeUpdate;vX.prototype.onImageChange=vX.prototype.onImageChange;_.d([_.Z(),_.P("design:type",eFx)],vX.prototype,"imageData",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"instruction",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"a11yConfig",void 0);_.d([_.Z(),_.P("design:type",Number)],vX.prototype,"imageWidth",void 0);_.d([_.Z(),_.P("design:type",Number)],vX.prototype,"imageHeight",void 0);
_.d([_.Z(),_.P("design:type",Number)],vX.prototype,"displayScale",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"imageDisplayOffsetTop",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"imageDisplayOffsetLeft",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"pickerDisplayOffsetTop",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"pickerDisplayOffsetLeft",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"showPreviewContainer",void 0);
_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"startPicker",void 0);_.d([_.Z(),_.P("design:type",Number)],vX.prototype,"pickerOffsetX",void 0);_.d([_.Z(),_.P("design:type",Number)],vX.prototype,"pickerOffsetY",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"repositionOptional",void 0);_.d([_.Z(),_.P("design:type",Object)],vX.prototype,"editOnlyMode",void 0);_.d([_.nU("#picker-container"),_.P("design:type",HTMLElement)],vX.prototype,"JSC$13578_pickerContainer",void 0);
_.d([_.nU("#picker"),_.P("design:type",HTMLElement)],vX.prototype,"picker",void 0);_.d([_.nU("#preview-clipper"),_.P("design:type",HTMLElement)],vX.prototype,"previewClipper",void 0);_.d([_.nU("#image-in-picker-background"),_.P("design:type",HTMLImageElement)],vX.prototype,"JSC$13578_imageInBackground",void 0);_.d([_.nU("#image-in-picker"),_.P("design:type",HTMLImageElement)],vX.prototype,"JSC$13578_imageInPicker",void 0);
_.d([_.nU("#image-in-preview-clipper"),_.P("design:type",HTMLImageElement)],vX.prototype,"JSC$13578_imageInPreviewClipper",void 0);_.d([_.M("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],vX.prototype,"altLabelForImage",null);_.d([_.M("imageHeight","imageWidth"),_.P("design:type",Number),_.P("design:paramtypes",[])],vX.prototype,"pickerSize",null);
_.d([_.M("imageHeight","imageWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],vX.prototype,"imageOrientationStyle",null);_.d([_.M("instruction"),_.P("design:type",Object),_.P("design:paramtypes",[])],vX.prototype,"editButton",null);_.d([_.M("instruction","editOnlyMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],vX.prototype,"saveButton",null);_.d([_.M("instruction"),_.P("design:type",Object),_.P("design:paramtypes",[])],vX.prototype,"deleteButton",null);
_.d([_.M("instruction","editOnlyMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],vX.prototype,"cancelButton",null);_.d([_.M("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.P("design:type",Number),_.P("design:paramtypes",[])],vX.prototype,"cropOffsetTop",null);_.d([_.M("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.P("design:type",Number),_.P("design:paramtypes",[])],vX.prototype,"cropOffsetLeft",null);
_.d([_.M("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],vX.prototype,"pickerBackgroundStyle",null);_.d([_.M("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],vX.prototype,"pickerDisplayStyle",null);_.d([_.M("cropOffsetLeft","cropOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],vX.prototype,"imageInPickerStyle",null);
_.d([_.M("cropOffsetLeft","cropOffsetTop","pickerSize"),_.P("design:type",String),_.P("design:paramtypes",[])],vX.prototype,"previewClipperStyle",null);_.d([_.$n("imageData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vX.prototype,"onImageChange",null);_.d([_.$n("editOnlyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vX.prototype,"onEditOnlyModeUpdate",null);
_.d([_.M("showPreviewContainer"),_.P("design:type",String),_.P("design:paramtypes",[])],vX.prototype,"pickerModeStyle",null);_.d([_.e({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],vX);
_.k(vX,"ytd-backstage-image-preview-renderer",function(){if(e3d!==void 0)return e3d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return e3d=S},{mode:1});var kxh;var rfu={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 d8$;var vPd;var PX=function(){var S=_.W.apply(this,arguments)||this;S.a11yConfig=rfu;S.imageDisplayOffsetTop=0;S.imageDisplayOffsetLeft=0;S.pickerDisplayOffsetTop=0;S.pickerDisplayOffsetLeft=0;S.cropCoordinatesSaved=!1;S.previewSize=0;S.startPicker=!1;S.repositionOptional=!1;return S};
_.C(PX,_.W);_.J=PX.prototype;_.J.created=function(){_.k1.requestAvailability()};
_.J.ready=function(){};
_.J.onArrowKeysDown=function(S){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){S.detail.keyboardEvent.preventDefault();var c=0,Q=0,f="";switch(S.detail.keyboardEvent.key){case "ArrowUp":daz(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?f=this.a11yConfig.reachBottomOfImage:c=this.imageHeight*.05*-1;break;case "ArrowDown":daz(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?f=this.a11yConfig.reachTopOfImage:
c=this.imageHeight*.05;break;case "ArrowLeft":daz(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?f=this.a11yConfig.reachRightOfImage:Q=this.imageWidth*.05*-1;break;case "ArrowRight":daz(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?f=this.a11yConfig.reachLeftOfImage:Q=this.imageWidth*.05}f&&_.K8(f)&&_.Az(this.hostElement,"iron-announce",{text:_.K8(f)});if(Q||c)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+c)),S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),S=_.K8(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+Q)),S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),S=_.K8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})),S&&_.Az(this.hostElement,"iron-announce",{text:S})}};
_.J.getPreviewPosition=function(S,c,Q,f){return Math.round(100*(S+c*.5-Q)/f)};
_.J.displayImage=function(){var S=this.JSC$13589_pickerContainer.getBoundingClientRect().width,c=this.JSC$13589_pickerContainer.getBoundingClientRect().height,Q=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),f=this.JSC$13589_imageInBackground.naturalWidth,U=this.JSC$13589_imageInBackground.naturalHeight;this.displayScale=Math.max(Q/f,Q/U);this.imageWidth=f*this.displayScale;this.imageHeight=U*this.displayScale;this.pickerDisplayOffsetLeft=(S-Q)/2;this.pickerDisplayOffsetTop=
(c-Q)/2;this.imageDisplayOffsetLeft=U>f?this.pickerDisplayOffsetLeft:(S-this.imageWidth)/2;this.imageDisplayOffsetTop=f>U?this.pickerDisplayOffsetTop:(c-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.J.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13589_imageInBackground.src=this.imageData.toString(),this.JSC$13589_imageInPicker.src=this.imageData.toString(),this.JSC$13589_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.J.getSignedPosition=function(S,c,Q){return c==="X"&&_.WY("HTML_DIR")==="rtl"?Q==="-"?S+"px":S*-1+"px":Q==="-"?S*-1+"px":S+"px"};
_.J.pickerMove=function(S){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var c=this.pickerOffsetX-S.clientX,Q=this.pickerOffsetY-S.clientY;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
Q)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-c))}};
_.J.pickerMoveStart=function(S){this.startPicker=!0;this.pickerOffsetX=S.clientX;this.pickerOffsetY=S.clientY};
_.J.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.J.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.Az(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.J.getPreviewOffset=function(S,c,Q,f){return c&&S&&Q?(f==="X"&&_.WY("HTML_DIR")==="rtl"?Q/c*S:Q/c*S*-1)+"px":"0px"};
_.J.getSimpleText=function(S){return S?_.Em(S):""};
_.J.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var S=this.cropOffsetTop/this.imageHeight,c=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,Q=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,f=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.Ur(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.Az(this.hostElement,"yt-img-crop-coordinates-update",{top:S,right:c,bottom:Q,left:f})}};
_.Rh.Object.defineProperties(PX.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var S=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.K8(this.a11yConfig.imageVerticalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.K8(this.a11yConfig.verticalRepositionInstruction)}S=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.K8(this.a11yConfig.imageHorizontalPosition,{x_percent:""+S,y_percent:""+(100-S)})+"\n"+_.K8(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 S,c=(S=this.learnMore.runs[0])==null?void 0:S.navigationEndpoint,Q;return((Q=_.Y(c,_.rQ))==null?void 0:Q.url)||void 0}}}});
PX.prototype.onImageDataChange=PX.prototype.onImageDataChange;_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"imageData",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"instruction",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"a11yConfig",void 0);_.d([_.Z(),_.P("design:type",Number)],PX.prototype,"imageWidth",void 0);_.d([_.Z(),_.P("design:type",Number)],PX.prototype,"imageHeight",void 0);_.d([_.Z(),_.P("design:type",Number)],PX.prototype,"displayScale",void 0);
_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"imageDisplayOffsetTop",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"imageDisplayOffsetLeft",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"pickerDisplayOffsetTop",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"pickerDisplayOffsetLeft",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"cropCoordinatesSaved",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"previewSize",void 0);
_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"startPicker",void 0);_.d([_.Z(),_.P("design:type",Number)],PX.prototype,"pickerOffsetX",void 0);_.d([_.Z(),_.P("design:type",Number)],PX.prototype,"pickerOffsetY",void 0);_.d([_.Z(),_.P("design:type",Object)],PX.prototype,"repositionOptional",void 0);_.d([_.nU("#picker-container"),_.P("design:type",HTMLElement)],PX.prototype,"JSC$13589_pickerContainer",void 0);_.d([_.nU("#picker"),_.P("design:type",HTMLElement)],PX.prototype,"picker",void 0);
_.d([_.nU("#image-in-picker-background"),_.P("design:type",HTMLImageElement)],PX.prototype,"JSC$13589_imageInBackground",void 0);_.d([_.nU("#image-in-picker"),_.P("design:type",HTMLImageElement)],PX.prototype,"JSC$13589_imageInPicker",void 0);_.d([_.nU("#image-in-preview-clipper"),_.P("design:type",HTMLImageElement)],PX.prototype,"JSC$13589_imageInPreviewClipper",void 0);_.d([_.nU("#full-image-as-preview"),_.P("design:type",HTMLImageElement)],PX.prototype,"imageAsPreview",void 0);
_.d([_.M("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],PX.prototype,"altLabelForImage",null);_.d([_.M("imageHeight","imageWidth"),_.P("design:type",Number),_.P("design:paramtypes",[])],PX.prototype,"pickerSize",null);_.d([_.M("imageHeight","imageWidth"),_.P("design:type",Object),_.P("design:paramtypes",[])],PX.prototype,"imageOrientationStyle",null);
_.d([_.M("instruction.previewInstruction.editButtonLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],PX.prototype,"editButton",null);_.d([_.M("instruction.editInstruction.saveButtonLabel"),_.P("design:type",Object),_.P("design:paramtypes",[])],PX.prototype,"saveButton",null);_.d([_.M("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.P("design:type",Number),_.P("design:paramtypes",[])],PX.prototype,"cropOffsetTop",null);
_.d([_.M("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.P("design:type",Number),_.P("design:paramtypes",[])],PX.prototype,"cropOffsetLeft",null);_.d([_.M("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],PX.prototype,"pickerBackgroundStyle",null);_.d([_.M("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],PX.prototype,"pickerDisplayStyle",null);
_.d([_.M("cropOffsetLeft","cropOffsetTop"),_.P("design:type",String),_.P("design:paramtypes",[])],PX.prototype,"imageInPickerStyle",null);_.d([_.M("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.P("design:type",String),_.P("design:paramtypes",[])],PX.prototype,"previewClipperStyle",null);_.d([_.B0("imageData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],PX.prototype,"onImageDataChange",null);
_.d([_.M("cropCoordinatesSaved"),_.P("design:type",String),_.P("design:paramtypes",[])],PX.prototype,"pickerModeStyle",null);_.d([_.M("instruction.editInstruction.learnMore"),_.P("design:type",Object),_.P("design:paramtypes",[])],PX.prototype,"learnMore",null);_.d([_.M("learnMore"),_.P("design:type",Object),_.P("design:paramtypes",[])],PX.prototype,"learnMoreUrl",null);_.d([_.wM({is:"yt-img-crop-picker",disableElementRegistration:!0})],PX);
_.k(PX,"yt-img-crop-picker",function(){if(vPd===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;d8$===void 0&&(d8$=document.createElement("template"));var f=d8$;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);vPd=S}S=vPd;return S},{mode:2});var LX=function(){var S=_.W.apply(this,arguments)||this;S.errorMessage="";S.hasPreview=!1;S.isBackstagePost=!1;S.dismissButtonOverrides={size:"XS"};return S};
_.C(LX,_.W);_.J=LX.prototype;_.J.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"}}}};
_.J.detached=function(){this.removeOverlay()};
_.J.setPreview=function(S){_.Ur(this.hostElement).querySelector("#preview-picker").imageData=S;this.hasPreview=!0;_.Az(this.hostElement,"yt-backstage-image-select-preview")};
_.J.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var S=_.Ur(this.hostElement).querySelector("#dropzone");S.classList.remove("dragover");S.classList.remove("error");_.Az(this.hostElement,"yt-backstage-image-select-cancel")};
_.J.setupOverlay=function(){var S=this.imageUploadEndpoint;this.removeOverlay();if(S&&S.imageValidationInfo){var c=_.Ur(this.hostElement).querySelector("#dropzone"),Q=_.Ur(this.hostElement).querySelector("#select");this.overlay=new Vo(S.uploadUrl,S.channelId,S.imageValidationInfo.maxFileSizeMb,S.imageValidationInfo.allowedMaxAspectRatio,c,Q,!0);_.HI(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.HI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.HI(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.HI(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.HI(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.J.removeOverlay=function(){this.overlay&&(_.lS(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.lS(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.lS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.lS(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.lS(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.J.onDragOver=function(S){var c=_.Ur(this.hostElement).querySelector("#dropzone");_.a1(c,"dragover",S.value)};
_.J.onPreview=function(S){this.setPreview(S.value)};
_.J.onImageError=function(S){if(S.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var c;S=(c=this.data)==null?void 0:c.fileSizeError}else if(S.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var Q;S=(Q=this.data)==null?void 0:Q.invalidError}else if(S.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var f;S=(f=this.data)==null?void 0:f.invalidAspectRatioError}else return;this.errorMessage=_.Em(S);_.Ur(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.J.onImageAlert=function(S){this.onImageError(S)};
_.J.uploadPromise=function(){var S=this,c=this.overlay&&this.overlay.uploadPromise();if(c)return c.catch(function(){throw Error(S.data?_.Em(S.data.uploadFailureError):"");})};
_.Rh.Object.defineProperties(LX.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var S,c;if((S=this.data)==null?0:(c=S.icon)==null?0:c.iconType)return _.xz(this.data.icon.iconType)}}});
LX.prototype.setupOverlay=LX.prototype.setupOverlay;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],LX.prototype,"rendererStamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LX.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],LX.prototype,"imageUploadEndpoint",void 0);_.d([_.Z(),_.P("design:type",Object)],LX.prototype,"errorMessage",void 0);
_.d([_.Z(),_.P("design:type",Vo)],LX.prototype,"overlay",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],LX.prototype,"hasPreview",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],LX.prototype,"isBackstagePost",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],LX.prototype,"selectionCancel",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],LX.prototype,"previewCancel",null);
_.d([_.M("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],LX.prototype,"icon",null);_.d([_.Z(),_.P("design:type",Object)],LX.prototype,"dismissButtonOverrides",void 0);_.d([_.B0("imageUploadEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LX.prototype,"setupOverlay",null);_.d([_.e({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],LX);
_.k(LX,"ytd-backstage-image-select-renderer",function(){if(kxh!==void 0)return kxh;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return kxh=S},{mode:1});var P0i;var LTJ;var ES=function(){var S=_.W.apply(this,arguments)||this;S.selected=!1;return S};
_.C(ES,_.W);_.J=ES.prototype;_.J.computeSelected=function(S){return S==null?void 0:S.selected};
_.J.computeTransform=function(S,c,Q){var f,U,a=(U=(f=this.imageContainer)==null?void 0:f.getBoundingClientRect())!=null?U:{width:0,height:0};f=Math.max(a.width/c,a.height/Q);Q=Q*f*S.top;return"translateX("+this.getSignedPosition(c*f*S.left,"X","-")+") translateY("+this.getSignedPosition(Q,"Y","-")+")"};
_.J.getSignedPosition=function(S,c,Q){return c==="X"&&_.WY("HTML_DIR")==="rtl"?Q==="-"?S+"px":S*-1+"px":Q==="-"?S*-1+"px":S+"px"};
_.J.onClick=function(){var S;_.Az(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(S=this.data)==null?void 0:S.image)};
_.J.onKeyPress=function(S){if(S.keyCode===13)this.onClick()};
_.Rh.Object.defineProperties(ES.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:(c=S.image)==null?void 0:c.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)!=null&&S.image){var c;S=(c=this.data)==null?void 0:c.image;return S.previewCoordinates.top!==0||S.previewCoordinates.left!==0?(c=this.computeTransform(S.previewCoordinates,S.naturalWidth,S.naturalHeight),S.naturalHeight>=S.naturalWidth?"width:inherit;transform:"+c+";":"height:inherit;transform:"+c+";"):S.naturalHeight>=S.naturalWidth?"width:inherit;":"height:inherit;"}}}});
ES.prototype.onKeyPress=ES.prototype.onKeyPress;_.d([_.nU(".image-container"),_.P("design:type",HTMLElement)],ES.prototype,"imageContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],ES.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.P("design:type",Object)],ES.prototype,"selected",void 0);_.d([_.M("data.image"),_.P("design:type",Object),_.P("design:paramtypes",[])],ES.prototype,"thumbnailUrl",null);
_.d([_.M("data.image","data.image.previewCoordinates"),_.P("design:type",Object),_.P("design:paramtypes",[])],ES.prototype,"thumbnailStyle",null);_.d([_.FV("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],ES.prototype,"onKeyPress",null);_.d([_.e({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],ES);
_.k(ES,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(LTJ!==void 0)return LTJ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return LTJ=S},{mode:2});var tT=function(S,c,Q){Q=Q===void 0?!1:Q;_.Y5.call(this);var f=this;this.dropZoneOverlay=new FP(S);this.selectOverlay=Q?new BA(c,"multiple_file",["image/*"]):new BA(c,"single_file",["image/*"]);this.handler=new _.fP(this);_.F5(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(c,"click",function(){f.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.C(tT,_.Y5);tT.prototype.onChange=function(S){var c;(c=S.files)!=null&&c.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:S.files}))};var Ve=function(){var S=_.W.apply(this,arguments)||this;S.addImageErrorMessage="";S.errorMessage="";S.images=[];S.selectedImageIndex=0;S.modern=_.u("web_modern_buttons");S.maxNumImagesPerPost=_.a6("max_num_images_per_post_web_ui");S.JSC$13604_imageId=0;return S};
_.C(Ve,_.W);_.J=Ve.prototype;_.J.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.Az(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.J.observeDragToReorder=function(){var S=this;if(this.showImagesPreview){var c,Q=A7u(_.cb.getInstance(),(c=this.data)==null?void 0:c.dragToReorderTooltip);_.Mq.addLowPriorityJob(function(){_.FF(S.hostElement,Q,S.thumbnailDragDropArea)})}};
_.J.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}}};
_.J.computeThumbnail=function(S){return(S==null?void 0:S.localImageSrc)||void 0};
_.J.onRendererstamperFinished=function(){_.Vqs(this.ytReorderableBehavior,_.Ur(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.Ur(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.J.handleDrop=function(S){var c=S.currDragItem;if(c!=null&&c.data){S=this.images[this.selectedImageIndex];var Q=c.data.image,f=this.images.indexOf(Q)||0;c=_.kY(c.parentNode.children,c);this.images.splice(f,1);this.images.splice(c,0,Q);this.images=[].concat(_.Hs(this.images));this.selectedImageIndex=this.images.indexOf(S)}};
_.J.setUpImagePicker=function(){var S=this.imageUploadEndpoint;S&&S.imageValidationInfo&&(this.uploadManager=new kg(S.uploadUrl,S.channelId),this.initialPicker||(this.initialPicker=new tT(this.dropzone,this.selectLink,!0),_.HI(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new tT(this.addImageButtonContainer,this.addImageSelectButton),_.HI(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.HI(this.JSC$13604_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.HI(this.JSC$13604_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.HI(_.Ur(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.J.detached=function(){this.initialPicker&&(_.lS(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.lS(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.J.onInitialSelectImages=function(S){var c=this;return _.O(function(Q){return _.F(Q,c.onSelectImages(S,!1),0)})};
_.J.onAddImage=function(S){var c=this;return _.O(function(Q){return _.F(Q,c.onSelectImages(S,!0),0)})};
_.J.onSelectImages=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V;return _.O(function(AZ){switch(AZ.nextAddress){case 1:c?Q.addImageErrorMessage="":(Q.images=[],Q.errorMessage="");f=S.detail;U=Q.validateImages([].concat(_.Hs(f)));if(U!=="")return c?Q.addImageErrorMessage=U:Q.errorMessage=U,AZ.return();a=[].concat(_.Hs(f)).map(function(IH){return(new Ea(Q.maxAspectRatio,!1,!0)).transform(IH)});
return _.F(AZ,Promise.allSettled(a),2);case 2:X=AZ.yieldResult,z=_.A(X.entries()),x=z.next();case 3:if(x.done){AZ.jumpTo(5);break}I=x.value;n=_.A(I);b=n.next().value;N=n.next().value;l=b;H=N;if(H.status!=="fulfilled"){g=w=q=void 0;c?Q.addImageErrorMessage=_.Em((q=Q.data)==null?void 0:q.invalidError):Q.errorMessage=Q.errorMessage===""?_.Em((w=Q.data)==null?void 0:w.invalidError):_.Em((g=Q.data)==null?void 0:g.multiFileError);AZ.jumpTo(4);break}r=H.value;r.cropped&&_.Az(Q.hostElement,"yt-backstage-multi-image-cropped");
if(r.invalidAspectRatio){t=v=E=void 0;c?Q.addImageErrorMessage=_.Em((E=Q.data)==null?void 0:E.invalidAspectRatioError):Q.errorMessage=Q.errorMessage===""?_.Em((v=Q.data)==null?void 0:v.invalidAspectRatioError):_.Em((t=Q.data)==null?void 0:t.multiFileError);AZ.jumpTo(4);break}return _.F(AZ,k2T(Q.JSC$13604_imageId,S.detail[l],r.transformedData),8);case 8:V=AZ.yieldResult,Q.images.push(V),Q.JSC$13604_imageId++;case 4:x=z.next();AZ.jumpTo(3);break;case 5:if(Q.errorMessage!==""||Q.addImageErrorMessage!==
"")return AZ.return();c?sfl(Q.uploadManager,[Q.images[Q.images.length-1]]):sfl(Q.uploadManager,Q.images);Q.images=[].concat(_.Hs(Q.images));Q.selectedImageIndex=c?Math.max(Q.images.length-1,0):0;_.Az(Q.hostElement,"yt-backstage-multi-image-select");_.IN(AZ)}})};
_.J.onThumbnailClick=function(S){if(S=S.event_.detail)this.selectedImageIndex=this.images.indexOf(S)};
_.J.validateImages=function(S){if(S.length>this.maxNumImagesPerPost){var c;return _.Em((c=this.data)==null?void 0:c.multiImageExceedMaxImageCountError)}var Q=1048576*this.maxFileSizeMb;S=S.filter(function(a){return a.size>Q}).length;
if(S===0)return"";var f,U;S=S>1?(f=this.data)==null?void 0:f.multiFileError:(U=this.data)==null?void 0:U.fileSizeError;return _.Em(S)};
_.J.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Hs(this.images));this.selectedImageIndex=0};
_.J.repositionImage=function(S){this.images[this.selectedImageIndex].previewCoordinates=S.event_.detail;this.images=[].concat(_.Hs(this.images))};
_.J.getAllUploadStatuses=function(){var S=this,c,Q,f,U;return _.O(function(a){if(a.nextAddress==1)return _.F(a,S.uploadManager.getAllUploadStatuses(),2);c=a.yieldResult;Q=_.A(c);for(f=Q.next();!f.done;f=Q.next())if(U=f.value,U.encryptedBlobId===void 0)return a.return(MAs(S.uploadManager));return a.return(c)})};
_.J.hasImages=function(){return this.images.length>0};
_.J.cancel=function(){for(var S=this.uploadManager,c=_.A(S.imagesUploadData),Q=c.next();!Q.done;Q=c.next())S.cancel(Q.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.Az(this.hostElement,"yt-backstage-multi-image-cancel")};
_.Rh.Object.defineProperties(Ve.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.imageUploadEndpoint)==null?void 0:(c=S.imageValidationInfo)==null?void 0:c.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.imageUploadEndpoint)==null?void 0:(c=S.imageValidationInfo)==null?void 0:c.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var S,c;if((S=this.data)==null?0:(c=S.icon)==null?0:c.iconType)return _.xz(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.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 S=this;return(this.images||[]).map(function(c,Q){return{renderer:{image:c,selected:Q===S.selectedImageIndex}}})}}});
Ve.prototype.setUpImagePicker=Ve.prototype.setUpImagePicker;Ve.prototype.onRendererstamperFinished=Ve.prototype.onRendererstamperFinished;Ve.prototype.observeDragToReorder=Ve.prototype.observeDragToReorder;Ve.prototype.observeAddImageError=Ve.prototype.observeAddImageError;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ve.prototype,"rendererStamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ve.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.RNJ),_.P("design:type",Object)],Ve.prototype,"ytReorderableBehavior",void 0);_.d([_.nU("#dropzone"),_.P("design:type",HTMLElement)],Ve.prototype,"dropzone",void 0);_.d([_.nU("#select-link"),_.P("design:type",HTMLElement)],Ve.prototype,"selectLink",void 0);_.d([_.nU("#thumbnail-drag-drop-area"),_.P("design:type",HTMLElement)],Ve.prototype,"thumbnailDragDropArea",void 0);_.d([_.nU("#add-image-button-container"),_.P("design:type",HTMLElement)],Ve.prototype,"addImageButtonContainer",void 0);
_.d([_.nU("#add-image-button"),_.P("design:type",HTMLElement)],Ve.prototype,"addImageSelectButton",void 0);_.d([_.nU("#image-preview-container"),_.P("design:type",Object)],Ve.prototype,"JSC$13604_imagePreviewContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],Ve.prototype,"addImageErrorMessage",void 0);_.d([_.Z(),_.P("design:type",Object)],Ve.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Ve.prototype,"errorMessage",void 0);
_.d([_.Z(),_.P("design:type",Object)],Ve.prototype,"imageUploadEndpoint",void 0);_.d([_.Z(),_.P("design:type",Array)],Ve.prototype,"images",void 0);_.d([_.Z(),_.P("design:type",tT)],Ve.prototype,"initialPicker",void 0);_.d([_.Z(),_.P("design:type",tT)],Ve.prototype,"addImagePicker",void 0);_.d([_.Z(),_.P("design:type",kg)],Ve.prototype,"uploadManager",void 0);_.d([_.Z(),_.P("design:type",Object)],Ve.prototype,"selectedImageIndex",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Ve.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Ve.prototype,"maxNumImagesPerPost",void 0);_.d([_.M("imageUploadEndpoint"),_.P("design:type",Number),_.P("design:paramtypes",[])],Ve.prototype,"maxAspectRatio",null);_.d([_.M("imageUploadEndpoint"),_.P("design:type",Number),_.P("design:paramtypes",[])],Ve.prototype,"maxFileSizeMb",null);
_.d([_.M("data.icon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ve.prototype,"dropIcon",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ve.prototype,"selectionCancel",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ve.prototype,"previewCancel",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ve.prototype,"dataForAddImageButton",null);
_.d([_.M("errorMessage"),_.P("design:type",String),_.P("design:paramtypes",[])],Ve.prototype,"dropzoneClass",null);_.d([_.M("images"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ve.prototype,"showImagesPreview",null);_.d([_.M("images"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ve.prototype,"containMaxImages",null);_.d([_.B0("addImageErrorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ve.prototype,"observeAddImageError",null);
_.d([_.B0("showImagesPreview"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ve.prototype,"observeDragToReorder",null);_.d([_.M("images","selectedImageIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ve.prototype,"selectedImageData",null);_.d([_.M("images","selectedImageIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],Ve.prototype,"thumbnailRenderers",null);
_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ve.prototype,"onRendererstamperFinished",null);_.d([_.B0("imageUploadEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ve.prototype,"setUpImagePicker",null);_.d([_.e({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Ve);
_.k(Ve,"ytd-backstage-multi-image-select-renderer",function(){if(P0i!==void 0)return P0i;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return P0i=S},{mode:1});var EPp;var tAp;var VAe;var RS=function(){var S=_.W.apply(this,arguments)||this;S.boundCaptureFocus=function(c){S.onCaptureFocus(c)};
return S};
_.C(RS,_.W);_.J=RS.prototype;_.J.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.J.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.J.onCaptureFocus=function(S){_.t4(S).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.J.getIconType=function(S){return S?"yt-icons:"+S.toLowerCase():null};
_.J.onSelect=function(){var S;if((S=this.data)==null?0:S.onSelectCommand)if(_.u("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var c;((c=_.Y(this.data.onSelectCommand.commandMetadata,_.Qw))==null?0:c.url)?_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.fl().resolve(_.U8).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.Rh.Object.defineProperties(RS.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.Em(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}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],RS.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],RS.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],RS.prototype,"data",void 0);_.d([_.nU("#item"),_.P("design:type",HTMLElement)],RS.prototype,"item",void 0);_.d([_.M("data.label"),_.P("design:type",String),_.P("design:paramtypes",[])],RS.prototype,"label",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],RS.prototype,"value",null);_.d([_.e({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],RS);
_.k(RS,"ytd-privacy-dropdown-item-renderer",function(){if(VAe!==void 0)return VAe;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return VAe=S},{mode:1});var ye=function(){var S=_.W.apply(this,arguments)||this;S.value="";S.label="";S.disabled=!1;return S};
_.C(ye,_.W);_.J=ye.prototype;_.J.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"}}}};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.J.dataChanged=function(){this.reset()};
_.J.valueChanged=function(){var S;if(this.value&&(S=this.data)!=null&&S.entries){S=_.A(this.data.entries);for(var c=S.next();!c.done;c=S.next())if((c=this.getRendererForEntry(c.value))&&this.getItemRendererValue(c)===this.value){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}}};
_.J.setInitialLabel=function(){if(this.data&&this.data.entries)for(var S=_.A(this.data.entries),c=S.next();!c.done;c=S.next())if(c=this.getRendererForEntry(c.value)){if(c.isSelected){this.label=this.ytComponentBehavior.getSimpleString(c.label);break}this.data.label&&(this.label=this.data.label)}};
_.J.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var S=_.A(this.data.entries),c=S.next();!c.done;c=S.next()){c=this.getRendererForEntry(c.value);var Q=void 0;if((Q=c)==null?0:Q.isSelected)return this.getItemRendererValue(c)||-1}return-1};
_.J.getItemRendererValue=function(S){return"stringValue"in S||"int32Value"in S?S.stringValue||S.int32Value||null:null};
_.J.getRendererForEntry=function(S){return S.dropdownItemRenderer||S.privacyDropdownItemRenderer||S.navigationDropdownItemRenderer||null};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("value-changed",this.value))};
_.J.updateValueFromBinding=function(S){this.value=S.detail.value};
ye.prototype.valueChangedForBinding=ye.prototype.valueChangedForBinding;ye.prototype.valueChanged=ye.prototype.valueChanged;ye.prototype.dataChanged=ye.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ye.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ye.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ye.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],ye.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],ye.prototype,"value",void 0);_.d([_.Z(),_.P("design:type",Object)],ye.prototype,"label",void 0);_.d([_.nU("#entries"),_.P("design:type",Object)],ye.prototype,"entries",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ye.prototype,"disabled",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ye.prototype,"dataChanged",null);
_.d([_.$n("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ye.prototype,"valueChanged",null);_.d([_.B0("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ye.prototype,"valueChangedForBinding",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],ye);
_.k(ye,"ytd-flat-dropdown-renderer",function(){if(tAp!==void 0)return tAp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tAp=S},{mode:1});var R3J;var oS=function(){var S=_.W.apply(this,arguments)||this;S.quizOptions=[];S.explanationPlaceholderText="";S.optionPlaceholderText="";S.correctAnswerIndex=-1;S.isMarkAnswerTooltipShown=!1;S.timer=0;return S};
_.C(oS,_.W);_.J=oS.prototype;_.J.dataChanged=function(){this.optionPlaceholderText=_.Em(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.Em(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.J.onMarkCorrectAnswer=function(S){var c,Q=((c=this.quizOptions[this.correctAnswerIndex])==null?void 0:c.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[S.model.index]=Object.assign({},this.quizOptions[S.model.index],{explanationText:Q,isCorrect:!0});this.correctAnswerIndex=S.model.index;this.quizOptions=[].concat(_.Hs(this.quizOptions))};
_.J.updatePlaceholderTexts=function(){for(var S=!1,c=[],Q=0;Q<this.quizOptions.length;Q++){var f=this.optionPlaceholderText+" "+(Q+1),U=void 0;((U=this.quizOptions[Q])==null?void 0:U.placeholderText)!==f?(S=!0,c.push(Object.assign({},this.quizOptions[Q],{placeholderText:f}))):c.push(this.quizOptions[Q])}S&&(this.quizOptions=c);this.isValid()?_.Az(this.hostElement,"yt-commentbox-post-enable"):_.Az(this.hostElement,"yt-commentbox-post-disable")};
_.J.getSimpleString=function(S){return _.Em(S)};
_.J.createQuizOptions=function(S){var c=[],Q;S=(Q=S==null?void 0:S.minQuizOptions)!=null?Q:0;for(Q=0;Q<S;Q++)c.push(this.createQuizOption());return c};
_.J.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Hs(this.quizOptions),[this.createQuizOption()]))};
_.J.onInput=function(){this.quizOptions=[].concat(_.Hs(this.quizOptions))};
_.J.onExplanationInput=function(){_.Az(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.J.onRemoveQuizOption=function(S){this.quizOptions.splice(S.model.index,1);S.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:S.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Hs(this.quizOptions));this.quizOptions.length===0&&_.Az(this.hostElement,"yt-quiz-attachment-dismiss")};
_.J.updateHintRenderer=function(){var S=this;clearTimeout(this.timer);this.timer=setTimeout(function(){S.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.J.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var S=0,c=0,Q=_.A(this.quizOptions),f=Q.next();!f.done;f=Q.next()){f=f.value;var U=void 0;if(((U=f.optionText)==null?void 0:U.trim())!==""||f.isCorrect){f.isCorrect&&c++;U=void 0;if(this.hasCustomOptionText&&((U=f.optionText)==null?void 0:U.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;S++}}return S>=
Number(this.editorInfo.minQuizOptions)&&c===1};
_.J.getPostCreateOptions=function(){for(var S=[],c=_.A(this.quizOptions),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0;((f=Q.optionText)==null?void 0:f.trim())!==""&&S.push({pollOption:{text:Q.optionText,explanation:Q.explanationText},isCorrect:Q.isCorrect})}return S};
_.J.getExplanationText=function(){var S;return((S=this.quizOptions[this.correctAnswerIndex])==null?void 0:S.explanationText)||""};
_.J.maybeDisplayMarkAnswerEduToolTip=function(){var S,c,Q,f,U,a,X;this.shouldShowMarkAnswerTooltip()&&((S=this.editorInfo)==null?0:(c=S.markAnswerButton)==null?0:(Q=c.buttonRenderer)==null?0:(f=Q.hint)==null?0:(U=f.hintRenderer)==null?0:(a=U.content)==null?0:(X=a.bubbleHintRenderer)==null?0:X.text)&&(_.cb.getInstance(),S=Q$(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,(S==null?void 0:S.length)>0&&this.optionSelectors&&_.IW(S[0],this.optionSelectors[0]))};
_.J.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var S=0,c=_.A(this.quizOptions),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0;((f=Q.optionText)==null?void 0:f.trim())!==""&&S++;if(Q.isCorrect)return!1}return S<2?!1:!0};
_.J.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.J.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.J.updateOptionTextFromBinding=function(S){if(S.target){var c=Array.from(_.Ur(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(S.target);if(c>=0){var Q;this.quizOptions[c].optionText=(Q=S.detail.value)!=null?Q:""}}};
_.Rh.Object.defineProperties(oS.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.editorInfo)==null?void 0:(c=S.addOptionButton)==null?void 0:c.buttonRenderer;Q&&(Q.style="STYLE_SUGGESTIVE",Q.size="SIZE_SMALL",Q.isDisabled=!this.isAllowedToAddOption);return(Q==null?0:Q.text)?Q:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var S,c;return this.quizOptions.length<((c=(S=this.editorInfo)==null?void 0:S.maxQuizOptions)!=null?c:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(S){var c;return(c=S.optionText)==null?void 0:c.trim()})}}});
oS.prototype.updatePlaceholderTexts=oS.prototype.updatePlaceholderTexts;oS.prototype.dataChanged=oS.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],oS.prototype,"editorInfo",void 0);_.d([_.Z(),_.P("design:type",Array)],oS.prototype,"quizOptions",void 0);_.d([_.Z(),_.P("design:type",Object)],oS.prototype,"explanationPlaceholderText",void 0);_.d([_.bw(".option-selector-button"),_.P("design:type",Array)],oS.prototype,"optionSelectors",void 0);
_.d([_.$n("editorInfo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oS.prototype,"dataChanged",null);_.d([_.M("editorInfo","isAllowedToAddOption","quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],oS.prototype,"addAnswerButton",null);_.d([_.M("editorInfo","quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],oS.prototype,"isAllowedToAddOption",null);
_.d([_.$n("quizOptions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oS.prototype,"updatePlaceholderTexts",null);_.d([_.M("quizOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],oS.prototype,"hasCustomOptionText",null);_.d([_.e({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],oS);
_.k(oS,"ytd-backstage-quiz-editor-renderer",function(){if(R3J!==void 0)return R3J;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return R3J=S},{mode:2});var yfi;var oPd=(hW.FIRSTDAYOFWEEK+1)%7;var m8i;var SKp=[],cYH=0,QDe=0;cYH=0;QDe=24;if(.25*(QDe-cYH)<0)m8i=[];else{for(var fo$=cYH;fo$<QDe;fo$+=.25)SKp.push(fo$);m8i=SKp}var UWh=m8i.map(function(S){S=S*60*60;return{secondsSinceMidnight:S,text:(new vq(7)).format(new Date(0,0,0,0,0,S))}});var JYJ;var mk=function(){var S=_.W.apply(this,arguments)||this;S.skipNextOpenDialog=!1;S.errorMessage="";return S};
_.C(mk,_.W);_.J=mk.prototype;_.J.attached=function(){var S=this,c=new MutationObserver(function(){S.JSC$13647_calendarMain.scrollHeight>0&&(c.disconnect(),S.calendarConfig&&S.calendarConfig.selectedDate&&S.scrollToDate())});
c.observe(this.JSC$13647_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){c.disconnect()},1E3)};
_.J.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.J.onDateTextChange=function(){if(this.calendarConfig){var S=this.validateDateText();S.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(S.details)):this.textbox.setAttribute("invalid","")}};
_.J.handleDayClick=function(S){S.model.day.date&&(this.commitDate(S.model.day.date),this.dialog.close())};
_.J.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var S=o2Y(this.calendarConfig.selectedDate,this.renderData);S!==void 0&&this.JSC$13647_calendarMain.scrollToIndex(S)}};
_.J.scrollToNextMonth=function(){this.JSC$13647_calendarMain.scrollToIndex(this.JSC$13647_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$13647_calendarMain.firstVisibleIndex===0&&this.JSC$13647_calendarMain.scrollTo(0,0);this.JSC$13647_calendarMain.scrollToIndex(this.JSC$13647_calendarMain.firstVisibleIndex-1)};
_.J.onFormSubmit=function(S){S.preventDefault();this.calendarConfig&&(S=this.validateDateText(),S.isValid&&(this.commitDate(S.details),this.dialog.close()))};
_.J.onEscOrClickingOutside=function(S){S=S.detail.path&&!!S.detail.path.length&&S.detail.path[0];if(S.classList.contains("ytd-calendar-date-picker")){S===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var c=0;c<this.dropdownButton.children.length;c++)this.dropdownButton.children[c]===S&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}S=this.textbox.value!==this.dateText;c=this.validateDateText();S&&c.isValid&&this.commitDate(c.details);this.dialog.close();this.textbox.value=
this.dateText};
_.J.commitDate=function(S){this.calendarConfig&&(this.set("calendarConfig.selectedDate",S),_.Az(this.hostElement,"ytd-calendar-date-selected",S))};
_.J.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var S=this.textbox.value;var c=new Date;S=(new NIY(2)).parse(S,c,{validate:!0})===S.length?RFR(c):void 0;if(!S)return this.errorMessage=_.K8("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};c=this.calendarConfig.start;var Q=this.calendarConfig.end;if(PLp(S,c))return this.errorMessage=_.K8("ENTER_DATE_OR_LATER",{allowed_date:VUp(c)}),{isValid:!1,details:void 0};if(PLp(Q,S))return this.errorMessage=
_.K8("ENTER_DATE_OR_EARLIER",{allowed_date:VUp(Q)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:S}};
_.Rh.Object.defineProperties(mk.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?VUp(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var S=this.calendarConfig,c=[],Q=0;Q<7;Q++)c.push(hW.NARROWWEEKDAYS[(Q+oPd)%7]);Q=[];for(var f=new Date(S.start.year,S.start.month);f.getFullYear()<S.end.year||f.getFullYear()===S.end.year&&f.getMonth()<=S.end.month;){var U=Q,a=U.push,X=f.getFullYear(),z=f.getMonth(),x=S,I=void 0,n=[],b=Object.freeze({extraCssClass:"invisible",debugClass:""}),N=new Date(X,z),l=RFR(N);N=N.getDay();for(var H=RFR(new Date);l.month===
z;){N!==oPd&&I||(I=Array.from({length:7}).fill(b),n.push(I));var q={date:{year:X,month:z,day:l.day},extraCssClass:"",debugClass:""};x.selectedDate&&q.date&&v2H(q.date,x.selectedDate)&&(q.extraCssClass+=" selected");if(PLp(l,x.start)||PLp(x.end,l))q.extraCssClass+=" disabled";v2H(l,H)&&(q.extraCssClass+=" today");q.extraCssClass=q.extraCssClass.trim();I[(N-oPd+7)%7]=q;l=E2x(l);N=(N+1)%7}a.call(U,{weeks:n,monthLabel:hW.SHORTMONTHS[z]+" "+X,year:X,month:z,monthLabelExtraCssClass:n[0][2]===b?"shift-down-label":
""});f.setMonth(f.getMonth()+1)}return{months:Q,daysOfWeekLabel:c}}}}});
mk.prototype.onEscOrClickingOutside=mk.prototype.onEscOrClickingOutside;mk.prototype.scrollToDate=mk.prototype.scrollToDate;_.d([_.Z(),_.P("design:type",Object)],mk.prototype,"calendarConfig",void 0);_.d([_.Z(),_.P("design:type",Object)],mk.prototype,"skipNextOpenDialog",void 0);_.d([_.Z(),_.P("design:type",Object)],mk.prototype,"errorMessage",void 0);_.d([_.nU("#textbox"),_.P("design:type",HTMLInputElement)],mk.prototype,"textbox",void 0);
_.d([_.nU("#calendar-dialog"),_.P("design:type",Object)],mk.prototype,"dialog",void 0);_.d([_.nU("#calendar-main"),_.P("design:type",Object)],mk.prototype,"JSC$13647_calendarMain",void 0);_.d([_.nU("#date-picker"),_.P("design:type",HTMLElement)],mk.prototype,"dropdownButton",void 0);_.d([_.M("calendarConfig.selectedDate"),_.P("design:type",String),_.P("design:paramtypes",[])],mk.prototype,"dateText",null);
_.d([_.M("calendarConfig","calendarConfig.selectedDate"),_.P("design:type",Object),_.P("design:paramtypes",[])],mk.prototype,"renderData",null);_.d([_.B0("renderData","calendarConfig.selectedDate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mk.prototype,"scrollToDate",null);_.d([_.FV("iron-overlay-canceled"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],mk.prototype,"onEscOrClickingOutside",null);
_.d([_.wM({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],mk);
_.k(mk,"ytd-calendar-date-picker",function(){if(JYJ!==void 0)return JYJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return JYJ=S},{mode:2});var aoz=_.K8("UTC_OFFSET_FORMAT",{utc_offset:(new vq("Z")).format(new Date)}),AYu=(new Date).getTimezoneOffset()*-60,X6s=new Date,OQp,zPz=dP(X6s.getTimezoneOffset());OQp=nyd(NPl(zPz,X6s));var xWH=_.K8("LOCAL_TIME_GMT_LABEL",{gmt_text:OQp.replace("+0","+").replace("-0","-").replace(":00","")}),Su=function(){var S=_.W.apply(this,arguments)||this;S.selectedTimeIndex=0;S.selectedTimezoneIndex=0;S.timeOfDayOptions=UWh;return S};
_.C(Su,_.W);_.J=Su.prototype;_.J.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var S=tUo();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=S,this.selectedTimeIndex=0;else{var c=ygT(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},S,{selectedDate:c.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(Q){return Q.secondsSinceMidnight===c.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.J.onDatePicked=function(S){this.selectedDate=S.detail};
_.J.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.Az(this.hostElement,"ytd-date-time-selection-cancelled")};
_.J.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var S=this.selectedDate;S=new Date(S.year,S.month,S.day);_.Az(this.hostElement,"ytd-date-time-selection-update",Math.floor(S.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+S.getTimezoneOffset()*60))}};
_.J.getTimezoneFormat=function(S){return S.localizedDisplayText?S.localizedDisplayText:_.K8("TIMEZONE_FORMAT",{utc_offset_text:""+S.localizedUtcOffset,city_name:""+S.localizedName})};
_.J.updateSelectedTimeIndexFromBinding=function(S){this.selectedTimeIndex=S.detail.value};
_.J.updateSelectedTimezoneIndexFromBinding=function(S){this.selectedTimezoneIndex=S.detail.value};
_.Rh.Object.defineProperties(Su.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var S=this.data.timezoneOptions;var c={name:"Etc/Unknown",localizedName:_.K8("LOCAL_TIME_LABEL"),localizedUtcOffset:aoz,utcOffsetSec:""+AYu,localizedDisplayText:xWH};S?S.length&&S[0].name!==c.name&&(S[0].localizedDisplayText||(c.localizedDisplayText=""),S.unshift(c)):S=[c];return S}}},
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]}}});
Su.prototype.onDateTimeTimezoneChange=Su.prototype.onDateTimeTimezoneChange;Su.prototype.onDatePicked=Su.prototype.onDatePicked;Su.prototype.updateDefaultSelectedValue=Su.prototype.updateDefaultSelectedValue;_.d([_.Z(),_.P("design:type",Object)],Su.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Su.prototype,"calendarConfig",void 0);_.d([_.Z(),_.P("design:type",Object)],Su.prototype,"selectedDate",void 0);_.d([_.Z(),_.P("design:type",Object)],Su.prototype,"selectedTimeIndex",void 0);
_.d([_.Z(),_.P("design:type",Object)],Su.prototype,"selectedTimezoneIndex",void 0);_.d([_.nU("#time-listbox"),_.P("design:type",Object)],Su.prototype,"timeListBox",void 0);_.d([_.nU("#timezone-listbox"),_.P("design:type",Object)],Su.prototype,"timezoneListBox",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Su.prototype,"rendererStamperBehavior",void 0);_.d([_.M("data.timezoneOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],Su.prototype,"timeZones",null);
_.d([_.$n("data","timeZones"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Su.prototype,"updateDefaultSelectedValue",null);_.d([_.M("selectedTimezoneIndex","timeZones"),_.P("design:type",Object),_.P("design:paramtypes",[])],Su.prototype,"selectedTimezone",null);_.d([_.M("selectedTimeIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],Su.prototype,"selectedTime",null);
_.d([_.FV("ytd-calendar-date-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Su.prototype,"onDatePicked",null);_.d([_.B0("selectedTimezone","selectedTime","selectedDate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Su.prototype,"onDateTimeTimezoneChange",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Su);
_.k(Su,"ytd-date-time-picker-renderer",function(){if(yfi!==void 0)return yfi;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return yfi=S},{mode:1});var FHd;var cy=function(){var S=_.W.apply(this,arguments)||this;S.boundOnTapDismissButton=function(){S.dismissTapHandler()};
S.dismissButtonOverrides={size:"XS"};return S};
_.C(cy,_.W);cy.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}}}}}};
cy.prototype.dismissTapHandler=function(){_.Az(this.hostElement,"yt-backstage-attachment-dismissed")};
cy.prototype.computeAttachmentType=function(S){return S?S.backstageImageRenderer?"image":S.videoRenderer?"video":"none":"none"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cy.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cy.prototype,"attachmentPreview",void 0);_.d([_.Z(),_.P("design:type",Object)],cy.prototype,"dismissButton",void 0);_.d([_.Z(),_.P("design:type",Object)],cy.prototype,"boundOnTapDismissButton",void 0);
_.d([_.Z(),_.P("design:type",Object)],cy.prototype,"dismissButtonOverrides",void 0);_.d([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.P("design:type",String)],cy.prototype,"attachmentType",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],cy);
_.k(cy,"ytd-backstage-dismissable-attachment",function(){if(FHd!==void 0)return FHd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return FHd=S},{mode:1});var Bqd;var QH=function(){var S=_.W.apply(this,arguments)||this;S.selectedVideoId=void 0;S.picker=void 0;S.dismissButtonOverrides={size:"XS"};S.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return S};
_.C(QH,_.W);_.J=QH.prototype;_.J.onServiceRequestCompleted=function(S){S.stopPropagation()};
_.J.handleAddVideoPreviewAction=function(S){S=this.get("addVideoPreviewAction",S);this.onGetVideoPreviewSuccess(S)};
_.J.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}}}}}};
_.J.onLaunchVideoPicker=function(S){var c=this,Q=_.Em(this.get("addVideoLinkAction.title",S)),f=this.get("addVideoLinkAction.onePickHostId",S);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",S);f&&(this.picker||(Q=_.Fme(_.jQz(f).setTitle(Q).addView(Xrp()).addView(Ats()),function(U){c.onPickVideo(U)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",S)||Q.addView("youtube"),this.picker=Q.build()),this.picker.setVisible(!0))};
_.J.onPickVideo=function(S){if(S)if(S.action==="cancel")_.Az(this.hostElement,"yt-video-link-button-cancel");else if(S.action==="picked"){S=S.docs;if(!S||S.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(S=(S==null?0:S.length)?S[0]:void 0)?S.id:void 0;this.setVideoPreview()}};
_.J.setVideoPreview=function(){var S=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){S.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.J.onGetVideoPreviewSuccess=function(S){if(S&&S.videoPreview&&S.cancelButton)this.videoPreview=S.videoPreview,this.cancelButton=S.cancelButton,_.Az(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.J.onGetVideoPreviewError=function(){this.cancel()};
_.J.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.Az(this.hostElement,"yt-video-link-cancel")};
_.J.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
QH.prototype.onServiceRequestCompleted=QH.prototype.onServiceRequestCompleted;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],QH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],QH.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],QH.prototype,"videoPreview",void 0);_.d([_.Z(),_.P("design:type",Object)],QH.prototype,"cancelButton",void 0);_.d([_.Z(),_.P("design:type",Object)],QH.prototype,"getVideoPreviewCommand",void 0);_.d([_.Z(),_.P("design:type",Object)],QH.prototype,"dismissButtonOverrides",void 0);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],QH.prototype,"onServiceRequestCompleted",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],QH);
_.k(QH,"ytd-backstage-video-link-attachment",function(){if(Bqd!==void 0)return Bqd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Bqd=S},{mode:1});var IoJ;var nBp;var bQH;var fa=function(){return _.W.apply(this,arguments)||this};
_.C(fa,_.W);fa.prototype.dataChanged=function(){this.active=!1};
fa.prototype.onTap=function(){_.Az(this.hostElement,"yt-select-emoji-suggestion",this.data)};
fa.prototype.identity=function(S){return S};
_.Rh.Object.defineProperties(fa.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;if((S=this.data)==null?0:(c=S.image)==null?0:(Q=c.thumbnails)==null?0:(f=Q[0])==null?0:f.url)return S=this.data.image.thumbnails[0].url,S.startsWith("data:image/svg+xml")?B7(S):_.jS(S)}}});
fa.prototype.dataChanged=fa.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],fa.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],fa.prototype,"active",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fa.prototype,"dataChanged",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],fa.prototype,"imageSrc",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],fa);
_.k(fa,"ytd-emoji-suggestion",function(){if(bQH!==void 0)return bQH;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return bQH=S},{mode:1});var Nqp=/.*([:@#].*?)$/,U0=function(){var S=_.W.apply(this,arguments)||this;S.suggestions=[];S.suggestionIndex=-1;S.JSC$13675_lastSuggestionRange=null;return S};
_.C(U0,_.W);_.J=U0.prototype;_.J.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.J.getSuggestions=function(S){var c=[],Q=yQT(this.emojiManager,S.substr(0,3));if(Q)for(var f in Q)if(f.toLocaleLowerCase().indexOf(S)===0){var U=Q[f];if(U&&U.emojiId){U=WJ(this.emojiManager,U.emojiId);var a=void 0,X=void 0,z=void 0,x=void 0,I=((a=U)==null?0:a.isCustomEmoji)?(X=U)==null?void 0:(z=X.shortcuts)==null?void 0:z[0]:(x=U)==null?void 0:x.emojiId;a=void 0;c.push({suggestion:{image:(a=U)==null?void 0:a.image,alt:I,text:f}});if(c.length>=64)break}}return c?c.sort(function(n,b){return b.suggestion.text<
n.suggestion.text?-1:b.suggestion.text===n.suggestion.text?0:1}):null};
_.J.insertSuggestion=function(S){_.Az(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13675_lastSuggestionRange,text:S.alt});this.dropdown.opened=!1};
_.J.updateSuggestionsAtCaret=function(S){this.updateSuggestions(S,this.retrieveTextBeforeRange(S))};
_.J.offsetStartOfRangeBy=function(S,c){S.startOffset>=c&&S.setStart(S.startContainer,S.startOffset-c)};
_.J.updateSuggestions=function(S,c){var Q=this;this.JSC$13675_lastSuggestionRange&&(this.JSC$13675_lastSuggestionRange.detach(),this.JSC$13675_lastSuggestionRange=null);if((c=Nqp.exec(c))&&c.length&&(c=c[c.length-1].toLocaleLowerCase(),c.length>2||c===":_")&&(this.offsetStartOfRangeBy(S,c.length),this.JSC$13675_lastSuggestionRange=S,(S=this.getSuggestions(c))&&S.length)){this.suggestions=S;_.tO(this,function(){Q.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(S.length-1);return}this.dropdown.opened=!1};
_.J.onKeyDown=function(S){if(this.dropdown.opened)switch(S.key){case "Escape":this.dropdown.opened=!1;S.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);S.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);S.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),S.preventDefault()}};
_.J.onKeyUp=function(S,c){switch(S.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(c);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(c)}};
_.J.onKeyPress=function(S){S.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),S.preventDefault())};
_.J.changeSuggestionIndex=function(S){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(S+this.suggestions.length)%this.suggestions.length,S=this.dropdownContent.children[this.suggestionIndex],S.active=!0,this.dropdownContent.scrollTop=S.offsetTop)};
_.J.retrieveTextBeforeRange=function(S){var c=S.startContainer;return c&&c.nodeType===Node.TEXT_NODE?c.textContent.substr(0,S.startOffset):""};
U0.prototype.onKeyPress=U0.prototype.onKeyPress;U0.prototype.onKeyUp=U0.prototype.onKeyUp;U0.prototype.onKeyDown=U0.prototype.onKeyDown;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],U0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Array)],U0.prototype,"suggestions",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],U0.prototype,"emojiManager",void 0);_.d([_.Z(),_.P("design:type",Number)],U0.prototype,"verticalSuggestionsOffset",void 0);
_.d([_.nU("#dropdown"),_.P("design:type",Object)],U0.prototype,"dropdown",void 0);_.d([_.nU("#dropdown-content"),_.P("design:type",HTMLDivElement)],U0.prototype,"dropdownContent",void 0);_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],U0.prototype,"onKeyDown",null);_.d([_.FV("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent,Range]),_.P("design:returntype")],U0.prototype,"onKeyUp",null);
_.d([_.FV("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],U0.prototype,"onKeyPress",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-emoji-input"})],U0);
_.k(U0,"ytd-emoji-input",function(){if(nBp!==void 0)return nBp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return nBp=S},{mode:2});var KHe;var J6=function(){var S=_.W.apply(this,arguments)||this;S.hasMaxOptions=!1;return S};
_.C(J6,_.W);_.J=J6.prototype;_.J.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.J.setPrefilledChoices=function(S){var c=this;this.set("pollOptions",[]);var Q;for(Q=0;Q<Math.min(S.length,this.data.maxPollOptions);Q++)this.push("pollOptions",S[Q].substring(0,this.data.maxPollOptionChars));for(;Q<this.data.minPollOptions;Q++)this.push("pollOptions","");this.hasMaxOptions=Q>=this.data.maxPollOptions;_.tO(this,function(){for(var f=c.pollOptions,U=_.Ur(c.hostElement).querySelectorAll(".poll-option-input"),a=0;a<U.length;a++)U[a].value=f[a]})};
_.J.focusChanged=function(){_.Or(this.hostElement)};
_.J.onInput=function(){var S=this;_.e$(this,"onInput",function(){S.isValid()?_.Az(S.hostElement,"yt-commentbox-post-enable"):_.Az(S.hostElement,"yt-commentbox-post-disable")},300)};
_.J.setPollOptions=function(){var S=[],c,Q=((c=this.data)==null?0:c.minPollOptions)?this.data.minPollOptions:0;for(c=0;c<Q;c++)S.push("");return S};
_.J.addPollOption=function(){var S=this;_.Az(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.Mq.addLowPriorityJob(function(){var c;(c=_.Ur(S.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||c.focus()})};
_.J.onRemovePollOption=function(S){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.Az(this.hostElement,"yt-poll-attachment-dismiss")):(S=this.repeat.indexForElement(S.target.parentNode),S!==null&&(this.splice("pollOptions",S,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.Az(this.hostElement,"yt-commentbox-post-enable"))))};
_.J.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.J.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var S=0,c=this.pollOptions.length;S<c;S++)if(this.pollOptions[S].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.J.getPollOptions=function(){return this.pollOptions};
_.J.setPollOptionsFromInputs=function(){for(var S=_.Ur(this.hostElement).querySelectorAll(".poll-option-input"),c=0;c<S.length;c++)this.pollOptions[c]=S[c].value.trim()};
_.J.clearPollOptions=function(){var S=_.Ur(this.hostElement).querySelectorAll(".poll-option-input");S=_.A(S);for(var c=S.next();!c.done;c=S.next())c.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.J.getSimpleString=function(S){return _.Em(S)};
_.J.updateValueFromBinding=function(S){if(S.target&&this.pollOptions){var c=Array.from(_.Ur(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(S.target);if(c>=0){var Q;this.pollOptions[c]=(Q=S.detail.value)!=null?Q:"";this.notifyPath("pollOptions."+c)}}};
J6.prototype.dataChanged=J6.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],J6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],J6.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Array)],J6.prototype,"pollOptions",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],J6.prototype,"hasMaxOptions",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],J6.prototype,"enableCreationBox",void 0);
_.d([_.nU("#repeat"),_.P("design:type",pU)],J6.prototype,"repeat",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],J6.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-poll-attachment"})],J6);
_.k(J6,"ytd-poll-attachment",function(){if(KHe!==void 0)return KHe;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return KHe=S},{mode:2});var $WT;var uM_;var jDl;var lod;var am=function(){return _.W.apply(this,arguments)||this};
_.C(am,_.W);_.Rh.Object.defineProperties(am.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],am.prototype,"rendererBehaviors",void 0);_.d([_.Z(),_.P("design:type",Object)],am.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],am.prototype,"focused",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("focused"),_.P("design:type",Object),_.P("design:paramtypes",[])],am.prototype,"ariaSelected",null);_.d([_.wM({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],am);
_.k(am,"yt-user-mention-suggestion-renderer",function(){if(lod===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;jDl===void 0&&(jDl=document.createElement("template"));var f=jDl;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);lod=S}S=lod;return S},{mode:2});var YKd;var ChT;var A6=function(){var S=_.W.apply(this,arguments)||this;S.focusedSuggestionIndex=-1;return S};
_.C(A6,_.W);_.J=A6.prototype;_.J.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.J.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.J.setFocusedSuggestionIndex=function(S){!this.data||!this.data.suggestions||S<0||S>=this.data.suggestions.length||(this.focusedSuggestionIndex=S,S=this.getSuggestionId(S),this._setFocusedSuggestionId(S))};
_.J.advanceSuggestion=function(S){this.focusedSuggestionIndex===-1||S!==-1&&S!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+S),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.J.ensureSuggestionVisible=function(S){S=this.getSuggestionId(S);S=_.Ur(this.hostElement).querySelector("[id="+S+"]");S!=null&&(S.offsetTop<this.hostElement.scrollTop?S.scrollIntoView(!0):S.offsetTop+S.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&S.scrollIntoView(!1))};
_.J.getSuggestionId=function(S){return"user-mention-suggestion-"+S};
_.J.onSuggestionTap=function(S){var c=_.Y(S.model.item,o1d);this.ytRendererBehavior.logExplicitClick(c);_.Az(this.hostElement,"yt-user-mention-suggestion-selected",{data:c,index:S.model.index})};
_.J.onSuggestionMouseMove=function(S){S.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(S.model.index)};
_.J.isSuggestionFocused=function(S,c){return S===c};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("focused-suggestion-id-changed",this.focusedSuggestionId))};
A6.prototype.focusedSuggestionIdChangedForBinding=A6.prototype.focusedSuggestionIdChangedForBinding;A6.prototype.onDomChange=A6.prototype.onDomChange;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],A6.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],A6.prototype,"focusedSuggestionIndex",void 0);_.d([_.Z({readOnly:!0}),_.P("design:type",String)],A6.prototype,"focusedSuggestionId",void 0);
_.d([_.FV("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],A6.prototype,"onDomChange",null);_.d([_.B0("focusedSuggestionId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A6.prototype,"focusedSuggestionIdChangedForBinding",null);_.d([_.wM({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],A6);
_.k(A6,"yt-user-mention-suggestions-dropdown",function(){if(ChT===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;YKd===void 0&&(YKd=document.createElement("template"));var f=YKd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);ChT=S}S=ChT;return S},{mode:2});var XH=function(){var S=_.W.apply(this,arguments)||this;S.suggestionsResponse=null;S.activeMention=null;S.selectionChangeListener=S.onSelectionChange.bind(S);S.handlesEnabled=_.u("enable_handles_in_mention_suggest_posts");S.handlesInMentionSuggestionsEnabled=_.u("handles_in_mention_suggest_posts");S.zeroPrefixMentionSuggestionEnabled=_.u("enable_zero_prefix_mention_suggestion_web");S.pendingQuery=null;S.flowNonce=null;return S};
_.C(XH,_.W);_.J=XH.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.J.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.J.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.J.hasSuggestions=function(S){return!!(S&&S.suggestions&&S.suggestions.length>0)};
_.J.onInput=function(){var S=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var c=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),Q=this.activeMention.JSC$9293_getText().slice(-1)===" ",f=this.activeMention.JSC$9293_getText().slice(-2,-1)===" ",U="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9293_getText().slice(-2,-1))>=
0;U=this.zeroPrefixMentionSuggestionEnabled&&U;if(this.activeMention.isCollapsed()||(c||f||U)&&Q)this.cancelActiveMention();else{var a=this.activeMention.JSC$9293_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.e$(this,"requestSuggestions",function(){S.requestSuggestions(a)},100)}}}};
_.J.onServiceRequestSent=function(S){S.stopPropagation()};
_.J.onServiceRequestCompleted=function(S){S.stopPropagation();S=S.detail.data;S.query&&(!this.pendingQuery||this.pendingQuery!==S.query)||!this.zeroPrefixMentionSuggestionEnabled&&S.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=S,this.hasSuggestions(S)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.J.onServiceRequestError=function(S){S.stopPropagation()};
_.J.onUserMentionSuggestionSelected=function(S){this.selectSuggestion(S.detail.data,S.detail.index)};
_.J.onSelectionChange=function(){if(this.activeMention){var S=_.Yu(),c=this.activeMention.JSC$9293_containsRange(S);S=S&&this.containsHelper(this.dropdown,S.getContainer());c||S||this.cancelActiveMention()}};
_.J.containsHelper=function(S,c){var Q;if(((Q=window.ShadyDOM)==null?void 0:Q.noPatch)===!0)return S.contains(c);for(;c;){if(c===S)return!0;c=c instanceof ShadowRoot?c.host:c.parentNode}return!1};
_.J.maybeStartSuggest=function(){var S=_.Yu();if(S&&S.isCollapsed()){var c=S.JSC$9293_getStartNode(),Q=S.JSC$9293_getStartOffset();if(c instanceof Text&&!(Q<1)){var f=c.textContent;!(f=f&&f.charAt(Q-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(f)<0||(this.activeMention=_.WE(c,Q-1,S.JSC$9293_getEndNode(),S.JSC$9293_getEndOffset()),this.flowNonce=hG(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.J.updateActiveMention=function(){if(this.activeMention){var S=_.Yu();S&&S.isCollapsed()&&(this.activeMention=_.WE(this.activeMention.JSC$9293_getStartNode(),this.activeMention.JSC$9293_getStartOffset(),S.JSC$9293_getEndNode(),S.JSC$9293_getEndOffset()))}};
_.J.requestSuggestions=function(S){if(this.activeMention){var c={suggestions_query:S};this.pendingQuery=S;_.xt(this.hostElement,[this.suggestionsEndpoint,c])}};
_.J.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()};
_.J.focusPreviousSuggestion=function(S){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),S.preventDefault())};
_.J.focusNextSuggestion=function(S){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),S.preventDefault())};
_.J.selectFocusedSuggestion=function(S){if(this.hasSuggestions(this.suggestionsResponse)){var c=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.Y(c,o1d)&&(this.selectSuggestion(_.Y(c,o1d),this.dropdown.focusedSuggestionIndex),S.preventDefault())}};
_.J.selectSuggestion=function(S,c){if(S){var Q=this.activeMention;if(Q){var f=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&S.handle?_.ir(f,"\u00a0\u2068@"+S.handle+"\u2069\u00a0"):this.handlesEnabled?_.ir(f,"\u00a0"+S.displayName+"\u00a0"):_.ir(f,"\u00a0@"+S.displayName+"\u00a0");DQ(f,"/channel/"+S.channelId);f.classList.add("yt-formatted-string","yt-simple-endpoint");f.setAttribute("spellcheck","false");Q.isCollapsed()||Q.JSC$9293_removeContents();Q.insertNode(f,!0);S=document.createTextNode(" ");
f.parentNode.insertBefore(S,f.nextSibling);window.getSelection().collapse(S,1);c={suggestionSelected:{suggestionIndex:c}};if(this.zeroPrefixMentionSuggestionEnabled){var U;c.suggestionSelected.isZeroPrefix=((U=this.suggestionsResponse)==null?void 0:U.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",c);this.cancelActiveMention();_.Az(this.hostElement,"yt-mention-inserted")}}};
_.J.getPositionTarget=function(S){return S&&S.getBrowserRangeObject()};
_.J.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.J.onFocusedSuggestionIdChanged=function(S){var c=_.HEY(this.hostElement)[0];c&&(S.detail.value?c.setAttribute("aria-activedescendant",S.detail.value):c.removeAttribute("aria-activedescendant"))};
_.J.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.J.logGELEvent=function(S,c){S={eventType:S,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};c&&(S=Object.assign(S,c));_.Te("userMentionAutoCompleteBoxEvent",S)};
XH.prototype.onDomChange=XH.prototype.onDomChange;XH.prototype.onUserMentionSuggestionSelected=XH.prototype.onUserMentionSuggestionSelected;XH.prototype.onServiceRequestError=XH.prototype.onServiceRequestError;XH.prototype.onServiceRequestCompleted=XH.prototype.onServiceRequestCompleted;XH.prototype.onServiceRequestSent=XH.prototype.onServiceRequestSent;XH.prototype.onInput=XH.prototype.onInput;_.d([_.p(_.lc),_.P("design:type",Object)],XH.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],XH.prototype,"suggestionsEndpoint",void 0);_.d([_.Z(),_.P("design:type",Object)],XH.prototype,"suggestionsResponse",void 0);_.d([_.Z(),_.P("design:type",Object)],XH.prototype,"activeMention",void 0);_.d([_.nU("#dropdown"),_.P("design:type",Object)],XH.prototype,"dropdown",void 0);_.d([_.nU("#iron-dropdown"),_.P("design:type",Object)],XH.prototype,"ironDropdown",void 0);
_.d([_.FV("input"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],XH.prototype,"onInput",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],XH.prototype,"onServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],XH.prototype,"onServiceRequestCompleted",null);
_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],XH.prototype,"onServiceRequestError",null);_.d([_.FV("yt-user-mention-suggestion-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],XH.prototype,"onUserMentionSuggestionSelected",null);
_.d([_.FV("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],XH.prototype,"onDomChange",null);_.d([_.wM({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],XH);
_.k(XH,"yt-user-mention-autosuggest-input",function(){if(uM_===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;$WT===void 0&&($WT=document.createElement("template"));var f=$WT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);uM_=S}S=uM_;return S},{mode:2});var O0=null;
_.DI({is:"ytd-commentbox",_template:function(){if(IoJ!==void 0)return IoJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return IoJ=S},
behaviors:[_.frH.YtHostElementBehavior,_.lc,_.AN.YtActionHandlerBehavior,_.vb.YtComponentBehavior,_.aQ.YtRendererstamperBehavior,_.bdd.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(S,c){return _.FT(S.entities,"aadcGuidelinesStateEntityPayload",c)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(S,c){return _.FT(S.entities,"commentboxStateEntity",c)},
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 _.g4}},
isEmojiButtonDisplayed:{type:Boolean,computed:"computeIsEmojiButtonDisplayed_(data)",value:!1},isEmojiPickerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},hasExternalLinksAccess_:{type:Boolean,computed:"computeHasExternalLinksAccess_(data)",value:!0},isExternalLinksBannerDisplayed:{type:Boolean,value:!1,reflectToAttribute:!0},emojiInput:Object,verticalSuggestionsOffset:{type:Number,value:30},isPostCreationDialogV2:{type:Boolean,reflectToAttribute:!0,value:!1},accessRestriction:{type:String},
charCount_:{type:Number,value:0},charLimit_:{type:Number,computed:"computeCharLimit_(data)"},aboveCharLimit_:{type:Boolean,reflectToAttribute:!0,value:!1},inputEventSupported_:{type:Boolean,value:!1},textRequiresScrolling:{type:Boolean,reflectToAttribute:!0,value:!1},localStorage:Object,modern:{type:Boolean,reflectToAttribute:!0,value:_.u("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.u("kevlar_watch_grid")}},observers:["observePrefilledImage_(data.purpose, data.prefilledImageData, data.backstageAttachment)",
"observePrefilledVideo_(data.purpose, data.backstageAttachment)","observePrefilledPoll_(data.prefilledAttachment)"],listeners:{"yt-service-request-completed":"onYtServiceRequestCompleted_","yt-service-request-error":"onYtServiceRequestError_","yt-service-request-sent":"onYtServiceRequestSent_","yt-backstage-image-select-cancel":"onAttachmentDismiss_","yt-backstage-multi-image-cancel":"onAttachmentDismiss_","yt-backstage-image-select-alert":"onImageAlert_","yt-backstage-image-select-preview":"onImageSelected_",
"yt-backstage-multi-image-select":"onImagesSelected_","yt-backstage-poll-image-select":"onImagesSelected_","yt-img-crop-coordinates-update":"onImagePreviewCoordinatesUpdated_","yt-img-crop-reposition":"onImagePreviewReposition_","yt-poll-attachment-dismiss":"onAttachmentDismiss_","yt-image-poll-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-dismiss":"onAttachmentDismiss_","yt-quiz-attachment-explanation-update":"onQuizExplanationUpdated_","yt-navigate":"onYtNavigate_","yt-video-link-selected":"onVideoLinkSelected_",
"yt-backstage-add-image-error":"onAddImageError_","yt-video-link-cancel":"onAttachmentDismiss_","yt-video-link-button-cancel":"onVideoLinkButtonCancel_","yt-commentbox-post-enable":"onSubmitButtonEnable_","yt-commentbox-post-disable":"onSubmitButtonDisable_","yt-backstage-attachment-dismissed":"onPrefilledContentDismissed_","yt-emoji-select":"onEmojiSelect_","yt-insert-suggestion":"onSuggestionInsert_","yt-select-emoji-suggestion":"onEmojiSuggestionClick_","ytd-date-time-selection-update":"onDateTimeSelectionUpdate_",
"ytd-date-time-selection-cancelled":"onDateTimeSelectionCancelled_","yt-mention-inserted":"onInsertMention_"},actionMap:{"yt-signal-action-ack-post-aadc-notice":"onAadcNoticeConfirm_","yt-hide-identity-chip-action":"onHideIdentityChip"},stampDom:{editAttachment_:{id:"attachment-preview",mapping:{backstageImageRenderer:"ytd-backstage-image-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isBackstageVideo:"[[isBackstagePost]]"}},playlistRenderer:{component:"ytd-playlist-renderer",
properties:{isBackstagePlaylist:"[[isBackstagePost]]"}},postMultiImageRenderer:"ytd-post-multi-image-renderer"}},"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:"ytd-flat-dropdown-renderer"}},"data.backstageAttachment":{id:"poll-preview",mapping:{pollRenderer:"ytd-backstage-poll-renderer",quizRenderer:"ytd-backstage-quiz-renderer"}},"imageUploadEndpoint_.imageEditor":{id:"image-select",mapping:{backstageImageSelectRenderer:{component:"ytd-backstage-image-select-renderer",
properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]",isBackstagePost:"[[isBackstagePost]]"}},backstageMultiImageSelectRenderer:{component:"ytd-backstage-multi-image-select-renderer",properties:{imageUploadEndpoint:"[[imageUploadEndpoint_]]"}}}},"data.emojiButton":{id:"emoji-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.emojiPicker":{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}},dropdownSchedulePanel_:{id:"scheduling-panel",
mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},inlineSchedulePanel_:{id:"inline-scheduling-panel",mapping:{dateTimePickerRenderer:"ytd-date-time-picker-renderer"}},"zeroStepChannelCreationRenderer.identityChipRenderer":{id:"identity-chip",mapping:{identityChipRenderer:"ytd-identity-chip-renderer"}}},ready:function(){document.addEventListener("tap",_.xn(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(S){this.fire(S?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(S){this.set("submitButtonDisabled",void 0);this.clear();S&&this.computeIsEmojiButtonDisplayed_(S)&&(S=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&S.updateEmojiCategories()},
observePrefilledImage_:function(S,c,Q){this.isValidPrefilledImage_(S,c,Q)&&(this.prefilledAttachment_="image",this.prefilledImageData_=c,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(S,c){this.isValidPrefilledVideo_(S,c)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(S){S&&S.pollData&&S.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(S.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.Fg();this.focus()},
detached:function(){document.removeEventListener("tap",_.xn(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(S){S=S.detail;S=S.isCustomEmoji?S.shortcuts[0]:S.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,S);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var S=_.Yu();if(S){S=S.getBrowserRangeObject();for(var c=S.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return S;c=c.parentNode}}S=this.getEditableTextArea_();S=_.GS(S,S.childNodes.length);S.select();return S.getBrowserRangeObject()},
insertTextWithEmojis_:function(S,c,Q){(c=this.emojiManager.createDocumentFragment(c,!0,!1,Q===void 0?!0:Q))&&c.childNodes.length!==0&&(S.collapsed||S.deleteContents(),Q=c.lastChild,S.insertNode(c),_.GZu(Q).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var S=_.Yu();if(S){var c=S.JSC$9293_getStartNode(),Q=S.JSC$9293_getEndNode();if(max(c)&&max(Q)){var f=S.JSC$9293_getStartOffset(),U;if(_.bR&&c.nodeType===Node.ELEMENT_NODE&&(U=_.txd(c)))_.GS(U,0).select();else{U=uV(c)?c:_.Mk(c,uV);var a=uV(Q)?Q:_.Mk(Q,uV);if(U||a)if(S.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){S=!0;f===c.length&&(S=!1);if(O0==="end"||O0==="right")S=!1;c=c.parentNode;S=[].concat(_.Hs(c.parentNode.childNodes)).indexOf(c)+(S?0:1);_.GS(c.parentNode,S).select()}}else U?
U.previousSibling&&U.previousSibling.length>0?_.WE(Q,S.JSC$9293_getEndOffset(),U.previousSibling,U.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),U.parentNode.insertBefore(c,U),_.WE(Q,S.JSC$9293_getEndOffset(),c,0).select()):a&&(a.nextSibling&&a.nextSibling.length>0?_.WE(c,S.JSC$9293_getStartOffset(),a.nextSibling,1).select():(Q=document.createTextNode("\u200b"),a.parentNode.insertBefore(Q,a.nextSibling),_.WE(c,S.JSC$9293_getStartOffset(),Q,Q.length).select()));O0=null}}else O0=
null}else O0=null},
leftKeyPressed_:function(){O0="left"},
rightKeyPressed_:function(){O0="right"},
endKeyPressed_:function(){O0="end"},
maybeDeleteChip_:function(){var S=Jfz(!0);if(S){var c=_.Yu(),Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();_.w6(Q,c,S,S.childNodes.length).select()}},
maybeBackspaceChip_:function(){var S=Jfz(!1);if(S){var c=_.Yu(),Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();_.w6(Q,c,S,0).select()}},
maybeBackspaceChipWordMode_:function(S){var c=_.Yu();if(c.isCollapsed()){var Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();var f=a9p(Q,c,!0);f&&(_.w6(Q,c,f,0).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(S){var c=_.Yu();if(c.isCollapsed()){var Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();var f=a9p(Q,c,!1);f&&(_.w6(Q,c,f,f.childNodes.length).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
onTap_:function(S){if(!S.defaultPrevented&&(S.currentTarget.tagName==="YTD-COMMENTBOX"&&uV(S.target)&&S.preventDefault(),this.isEmojiPickerDisplayed)){var c=this.$$("#emojis"),Q=this.$$("#emoji-button"),f=this.getEditableTextArea_();if((S=S.path?S.path:S.composedPath&&S.composedPath())&&!S.includes(c)&&!S.includes(f)&&!S.includes(Q))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(S,c,Q){return S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c!==void 0&&c.encryptedBlobId!==null&&c.sourceExternalVideoId!==null&&Q!==void 0&&Q.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(S,c){return S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!c&&!!c.videoRenderer&&!!c.videoRenderer.videoId},
isValidPrefilledAttachment_:function(S,c,Q){return this.isValidPrefilledImage_(S,c,Q)||this.isValidPrefilledVideo_(S,Q)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.u("enable_multi_image_post_creation")){var S=this.$$("ytd-backstage-multi-image-select-renderer");S&&S.hasImages()&&S.cancel()}else(S=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&S.cancel();(S=this.$["poll-attachment"])&&this.hasPoll_&&S.clearPollOptions();(S=this.$["image-poll-attachment"])&&this.hasImagePoll_&&S.resetPollOptions();(S=this.$["quiz-attachment"])&&this.hasQuiz_&&S.resetQuizOptions();
(S=this.$["video-link-attachment"])&&this.hasVideo_&&S.cancel();(S=this.$["access-restrictions-selector"].firstElementChild)&&S.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 _.Ur(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Ur(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(S,c){S=cfH(S,this.emojiManager,c).cloneNode(!0);for(c=S.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var Q=_.hM();_.Qpz(Q,c);c=Q.nextSibling;break;case "DIV":(Q=c.lastChild)&&c.nextSibling&&_.sR(_.hM(),Q);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.wO(_.hM(),c);Q&&Q.nodeName==="BR"&&_.K9(Q);Q=c;c.hasChildNodes()?(c=c.firstChild,
_.fTi(Q)):(c=c.nextSibling,_.K9(Q));break;default:c=c.nextSibling}return Afp(S)},
onAddImageError_:function(S){S.stopPropagation();this.errorMessage_=_.LK(S.detail)},
setTextAreaValue_:function(S){S||(S="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof S==="string"&&(S={runs:[{text:S}]});c.text=S},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();O0=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var S=this.getEditableTextArea_();S&&(_.GS(S,S.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.WY("HTML_DIR")==="rtl"){var S=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";S.setAttribute("dir",c)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var S;return FLx((S=this.$["quiz-attachment"])==null?void 0:S.getExplanationText())||FLx(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var S=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(S=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(S,!0);this.updateCharCount_();this.setSubmitButton_();S=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=S.scrollHeight>S.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var S=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:S})},
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(S){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(S)},
onPasteEmoji_:function(S){S.preventDefault();S.stopImmediatePropagation();S=S.clipboardData.getData("text/plain");this.insertText_(S,!1,!1)},
insertText_:function(S,c,Q){c=c===void 0?!1:c;Q=Q===void 0?!0:Q;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&S){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(c&&this.emojiInput.offsetStartOfRangeBy(f,S.length),this.insertTextWithEmojis_(f,S,Q),Skz(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,S),this.updateSuggestionOffset_(f)))}},
setSubmitButton_:function(){if(this.data){var S=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",c=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(S||c){var Q=this.getTextAreaValue().trim();c=Q===this.previousText_;Q=!Q||this.aboveCharLimit_;S&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(Q=this.aboveCharLimit_);this.submitButtonDisabled=
c||Q||!this.getTextLength();S&&_.u("enable_post_scheduling")&&(this.submitButtonDisabled=c&&!this.scheduledPublishTimeSec_||Q)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.Em,computeCreationBoxClass_:function(S){return S?"focused":"not-focused"},
computeFooterMessageClass_:function(S,c){return c?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(S,c){return c?c:S},
computeFooterMessageHidden_:function(S,c){return!c&&!S},
computePlaceholderText_:function(S,c,Q){return(Q==="video"||Q==="image")&&(S==null?0:S.prefilledPlaceholderText)?S==null?void 0:S.prefilledPlaceholderText:c==="poll"||c==="image-poll"?S==null?void 0:S.pollPostPlaceholderText:c==="quiz"?S==null?void 0:S.quizPostPlaceholderText:c==="image"?S==null?void 0:S.imagePostPlaceholderText:S==null?void 0:S.placeholderText},
computeHideAttachmentButtons_:function(S,c,Q,f){return S===void 0?!1:f&&this.getSimpleString(f)===this.getSimpleString(S.rateLimitErrorMessage)?!0:c!=="none"||Q!=="none"||!S.videoLinkButton&&!S.pollButton&&!S.imagePollButton&&!S.quizButton&&!S.imageButton},
computeHideDismissableAttachment_:function(S){return S!=="image"&&S!=="video"},
computeHasVideo_:function(S){return S==="video"},
computeHasImage_:function(S){return S==="image"},
computeHasPoll_:function(S){return S==="poll"},
computeHasImagePoll_:function(S){return S==="image-poll"},
computeHasQuiz_:function(S){return S==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(S){return S&&S.backstageAttachment?S.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!S.backstageAttachment.quizRenderer&&!S.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(S){if(this.isValidPrefilledAttachment_(S.purpose,S.prefilledImageData,S.backstageAttachment))return S.backstageAttachment},
computeEditAttachment_:function(S){if(this.computePrefilledContent_(S)===void 0)return S.backstageAttachment},
computeAuthorThumbnailDimension_:function(S,c){return S&&!c?24:40},
computeImageUploadEndpoint_:function(S){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",S)},
computeRateLimitErrorCommands_:function(S){var c,Q;return S==null?void 0:(c=S.advancedTierFeatures)==null?void 0:(Q=c.rateLimit)==null?void 0:Q.rateLimitCommands},
computeIsBackstageComment_:function(S){return!(!S||S!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(S){return this.get("submitButton.buttonRenderer.serviceEndpoint",S)||this.get("replyButton.buttonRenderer.serviceEndpoint",S)||this.get("postButton.buttonRenderer.serviceEndpoint",S)},
computeSubmitButtonOverride:function(){if(_.u("web_modern_buttons")){var S,c;return{segmentedPosition:this.dropdownSchedulePanel_||!((S=this.data)==null?0:(c=S.postOptionsMenu)==null?0:c.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.u("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(S,c){S=this.get("submitButton.buttonRenderer",S)||this.get("replyButton.buttonRenderer",S)||this.get("postButton.buttonRenderer",S);c&&(S=c);S&&(S=Object.assign({},S),S.serviceEndpoint=void 0,S.isDisabled=this.submitButtonDisabled);return S},
computeHasExternalLinksAccess_:function(S){if(_.u("enable_rfa_external_links")){var c,Q,f;return(f=S==null?void 0:(c=S.advancedTierFeatures)==null?void 0:(Q=c.externalLinks)==null?void 0:Q.allowExternalLinks)!=null?f:!0}return!0},
computeIsEmojiButtonDisplayed_:function(S){return S.emojiButton&&S.emojiPicker&&S.emojiPicker.emojiPickerRenderer&&S.emojiPicker.emojiPickerRenderer.categories?S.emojiPicker.emojiPickerRenderer.categories.find(function(c){return c.emojiPickerCategoryRenderer?c.emojiPickerCategoryRenderer.emojiIds&&c.emojiPickerCategoryRenderer.emojiIds.length>0:c.emojiPickerUpsellCategoryRenderer?c.emojiPickerUpsellCategoryRenderer.emojis&&c.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(S){return S.charLimit?S.charLimit:null},
computeDropdownSchedulingPanel_:function(S,c){if(S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&c)return c},
computeInlineSchedulingPanel_:function(S,c){if(S==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c)return c},
computeHideAuthorThumbnail_:function(S,c){return S||this.computeUseIdentityChip_(c)},
computeHideIdentityChipRenderer_:function(S,c){return S||!this.computeUseIdentityChip_(c)},
computeUseIdentityChip_:function(S){return!!S&&!!S.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(S){var c,Q,f,U;(S==null?0:(c=S.detail)==null?0:(Q=c.endpoint)==null?0:Q.ypcGetOffersEndpoint)||(S==null?0:(f=S.detail)==null?0:(U=f.endpoint)==null?0:U.ypcOffersEndpoint)?(S.stopPropagation(),_.xt(this,[S.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",S)&&(S.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(S){this.addedAttachment="video";this.selectedVideoId_=S.detail.videoId},
commentboxStateEntityChanged_:function(S){var c=this;(S==null?void 0:S.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(S==null?void 0:S.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){c.focus()})},
onYtServiceRequestSent_:function(S,c){if(c.actions)for(S=_.A(c.actions),c=S.next();!c.done;c=S.next())c.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(S){this.isLoading=!1;var c=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",S),Q,f,U,a=S==null?void 0:(Q=S.detail)==null?void 0:(f=Q.data)==null?void 0:(U=f.actionResult)==null?void 0:U.commentboxStateEntityKey;if(c)this.errorMessage_=c;else if(a){var X;this.dismissData_=S==null?void 0:(X=S.detail)==null?void 0:X.data;this.commentboxStateKey_=a}else{this.clear();var z;this.fire("yt-commentbox-dismiss",S==null?void 0:(z=S.detail)==
null?void 0:z.data)}},
onYtServiceRequestError_:function(S){S.stopPropagation();this.isLoading=!1;var c,Q;if(((c=this.data)==null?void 0:c.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((Q=this.data)==null?void 0:Q.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(c=this.get("detail.error.args",S)||[],c.length>1&&c[1].message){this.handlePostsServiceRequestError_(c[1].message);return}(S=this.get("detail.error.message",S))?this.errorMessage_=this.data.errorMessage||_.LK(S):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(S){if(_.u("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var c=_.A(this.rateLimitErrorCommands),Q=c.next();!Q.done;Q=c.next())if(Q=Q.value,Q.errorLabel===S){_.IW(Q.command,this.hostElement);return}this.errorMessage_=_.LK(S)},
submitIfNotBackstagePost_:function(S){if(!this.isBackstagePost)this.onSubmit_(S)},
onSubmit_:function(S){var c=this,Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w;return _.O(function(g){switch(g.nextAddress){case 1:S.stopPropagation();if(!c.serviceEndpoint||!c.isValidInput_())return g.return();if(c.shouldShowPostAadcNotice_())return c.showPostAadcNotice_(),g.return();if(c.shouldShowCommentAadcNotice_())return c.showCommentAadcNotice_(),g.return();if(!(c.$$("ytd-backstage-multi-image-select-renderer")&&c.hasImage_&&_.u("enable_multi_image_post_creation"))){g.jumpTo(2);break}Q=c.$$("ytd-backstage-multi-image-select-renderer");
return _.F(g,Q.getAllUploadStatuses(),3);case 3:f=g.yieldResult;if(!f)return g.return();U=_.A(f);for(a=U.next();!a.done;a=U.next())if(X=a.value,X.encryptedBlobId===void 0)return c.isLoading=!1,x=z=void 0,c.errorMessage_=(x=(z=c.imageUploadEndpoint_)==null?void 0:z.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?x:null,g.return();return g.return(c.submitForm_(void 0,void 0,void 0,void 0,Q.images,c.taggedVideoId_));case 2:if(!c.hasImagePoll_||!c.$["image-poll-attachment"]){g.jumpTo(4);
break}return _.F(g,c.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:I=g.yieldResult;if(!I)return g.return();n=_.A(I);for(b=n.next();!b.done;b=n.next())if(N=b.value,!N.encryptedBlobId)return c.isLoading=!1,l=void 0,c.errorMessage_=(l=c.data.errorMessage)!=null?l:null,g.return();case 4:q=(H=c.$$("ytd-backstage-image-select-renderer"))&&H.uploadPromise(),w=c.getSharedPostId_(),q?q.then(function(){c.submitForm_.apply(c,_.Hs(_.YD.apply(0,arguments)))}).catch(function(r){c.isLoading=!1;
c.errorMessage_=_.LK(r.message)}):c.selectedVideoId_?c.submitForm_(void 0,c.selectedVideoId_):c.prefilledAttachment_==="image"?c.submitForm_(c.prefilledImageData_.encryptedBlobId,void 0,void 0,c.prefilledImageData_.sourceExternalVideoId,void 0,c.taggedVideoId_):c.prefilledAttachment_==="video"?c.submitForm_(void 0,c.data.backstageAttachment.videoRenderer.videoId):w?c.submitForm_(void 0,void 0,w):c.taggedVideoId_!==void 0?c.submitForm_(void 0,void 0,void 0,void 0,void 0,c.taggedVideoId_):c.submitForm_(),
_.IN(g)}})},
openSchedulingPanel:function(S){S&&S.scheduleButton&&S.scheduleButton.buttonRenderer&&(this.scheduleButton_=S.scheduleButton.buttonRenderer);S&&S.dateTimePicker&&this.set("data.schedulingDateTimePicker",S.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(S){S.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(S){S.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(S){S.stopPropagation();S.detail.alertMessage&&(this.alertMessage_=S.detail.alertMessage)},
onImageSelected_:function(S){S.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(S){S.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(S){S.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(S.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(S){S.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(S){var c=this.$["video-link-attachment"];c&&c.onLaunchVideoPicker(S)},
onAttachmentDismiss_:function(S){S.stopPropagation();this.addedAttachment="none";this.alertMessage_=this.errorMessage_=null;this.imagePreviewCoordinates_=this.selectedVideoId_=void 0;this.setSubmitButton_();this.getEditableTextArea_().focus()},
isValidInput_:function(){if(this.prefilledAttachment_==="image"&&!this.prefilledImageData_||this.prefilledAttachment_==="video"&&!this.data.backstageAttachment.videoRenderer.videoId||this.addedAttachment==="image"&&_.u("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.u("enable_multi_image_post_creation")||this.$$("ytd-backstage-image-select-renderer")&&
this.$$("ytd-backstage-image-select-renderer").hasPreview&&this.imagePreviewCoordinates_)||this.addedAttachment==="poll"&&this.$["poll-attachment"]&&!this.$["poll-attachment"].isValid())return!1;var S;if(this.addedAttachment==="image-poll"&&((S=this.$["image-poll-attachment"])==null||!S.isValid()))return!1;var c;if(this.addedAttachment==="quiz"&&((c=this.$["quiz-attachment"])==null||!c.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;S=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(S=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")S=!0;return S||!!this.getTextAreaValue().trim()},
submitForm_:function(S,c,Q,f,U,a){var X=this.getTextAreaValue().trim(),z={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&X===this.previousText_&&(X=void 0);X!==void 0&&(z.comment_text=X);this.isLoading=!0;a!=void 0&&(z.tagged_video_id=a);S?(z.image_blob_id=S,this.imagePreviewCoordinates_&&(z.image_preview_coordinates=this.imagePreviewCoordinates_)):c?z.attached_video_id=c:Q?z.shared_post_id=Q:U&&U.length>0&&(z.images_data=U.map(function(x){return{encryptedBlobId:x.encryptedBlobId,
previewCoordinates:x.previewCoordinates}}));
f&&(z.source_video_id=f);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(z.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(z.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(z.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.u("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(z.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.u("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(z.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.xt(this,[this.serviceEndpoint,z])},
onIsInputFocusChanged_:function(S,c){S?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(S){var c=this.getEditableTextArea_();[].concat(_.Hs(S.dataTransfer.items)).forEach(function(Q){Q.kind==="string"&&Q.type.match("^text/plain")&&Q.getAsString(function(f){c.appendChild(document.createTextNode(f))})});
S.preventDefault()},
preventDefault_:function(S){S.preventDefault()},
onSuggestionInsert_:function(S){this.insertTextWithEmojis_(S.detail.range,S.detail.text)},
onEmojiSuggestionClick_:function(S){this.emojiInput.insertSuggestion(S.detail)},
computeSubmitButtonClass_:function(S,c){return!c||S?"":"with-options"},
updateSuggestionOffset_:function(S){if(this.emojiInput&&_.Ur(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,Q=S.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-Q)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;S=S.getBoundingClientRect().left-c;_.Ur(this.emojiInput).querySelector("#dropdown").style.marginLeft=S+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(S){if(_.u("enable_post_scheduling")&&this.data&&this.data.purpose){S=S.detail;if(Math.floor(Date.now()/1E3)>=S)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var c=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(c)||c!==S?this.scheduledPublishTimeSec_=S:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=S;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var S=["image-button","image-poll-button","poll-button"];_.u("enable_quiz_creation")&&S.push("quiz-button");_.u("auto_convert_posts_video_tag")||S.push("video-link-button");return S},
getButtonRenderer:function(S,c){if(S)switch(c){case "video-link-button":var Q;return((Q=S.videoLinkButton)==null?void 0:Q.buttonRenderer)||void 0;case "image-button":var f;return((f=S.imageButton)==null?void 0:f.buttonRenderer)||void 0;case "poll-button":var U;return((U=S.pollButton)==null?void 0:U.buttonRenderer)||void 0;case "image-poll-button":var a;return((a=S.imagePollButton)==null?void 0:a.buttonRenderer)||void 0;case "quiz-button":var X;return((X=S.quizButton)==null?void 0:X.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var S;return(S=this.data)==null||!S.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var S,c;return!((S=this.data)==null||!S.openAadcDialog)&&!((c=this.aadcGuidelinesState_)==null||!c.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.WY("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var S;((S=this.data)==null?0:S.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.ge("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(S){S.clickTrackingParams&&_.Kv().clickCommand(S);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.XF(this,"yt-close-popup-action")},
onHideIdentityChip:function(S){var c;this.set("data.placeholderText",(c=S.hideIdentityChipAction)==null?void 0:c.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var zX=function(){var S=_.W.apply(this,arguments)||this;S.isOpen=!1;S.modern=_.u("web_modern_buttons");S.roundedContainer=!0;S.dropdownButtonOverride=_.u("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;S.inPopupContainer=!1;S.isCommentboxLoading=!1;var c=["image-button","image-poll-button","poll-button"];_.u("enable_quiz_creation")&&c.push("quiz-button");_.u("auto_convert_posts_video_tag")||c.push("video-link-button");S.attachmentButtonIds=c;S.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 S};
_.C(zX,_.W);_.J=zX.prototype;_.J.computeButtonOverride=function(){var S;return((S=this.data)==null?0:S.postOptionsMenu)&&_.u("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.J.configureRendererStamper=function(){var S={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"EXPAND"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.u("auto_convert_posts_video_tag")||(S["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return S};
_.J.ready=function(){var S=this,c=_.Ur(this.hostElement).querySelector("#placeholder-area"),Q=function(f){S.onOpen(f)};
c.addEventListener("tap",Q);c.addEventListener("keypress",Q)};
_.J.showButtonEduTooltip=function(){var S,c,Q,f,U,a,X;if(_.u("enable_quiz_creation")&&((S=this.data)==null?0:(c=S.quizButton)==null?0:(Q=c.buttonRenderer)==null?0:(f=Q.hint)==null?0:(U=f.hintRenderer)==null?0:(a=U.content)==null?0:(X=a.bubbleHintRenderer)==null?0:X.text)&&(_.cb.getInstance(),S=Q$(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(S==null?void 0:
S.length)>0)){this.ytComponentBehavior.resolveCommand(S[0],{form:{element:this.quizButton}});return}var z;if((z=this.data)==null?0:z.imagePollButtonTooltip)if(_.cb.getInstance(),z=Q$(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(z==null?void 0:z.length)>0){this.ytComponentBehavior.resolveCommand(z[0],{form:{element:this.imagePollButton}});return}var x;_.u("enable_multi_image_post_creation")&&
((x=this.data)==null?0:x.multiImageButtonTooltip)&&(_.cb.getInstance(),x=Q$(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(x==null?void 0:x.length)>0&&this.ytComponentBehavior.resolveCommand(x[0],{form:{element:this.imageButton}}))};
_.J.onCreatePollAction=function(S){_.Y(S,zY$)&&(this.JSC$13730_commentbox.addedAttachment="poll",this.openDialog())};
_.J.onAddVideoLinkAction=function(S){if(_.Y(S,OWi))this.JSC$13730_commentbox.onAddVideoLink(S)};
_.J.onShowSchedulingPanelCommand=function(S){(S=_.Y(S,gse))&&this.openSchedulingPanel(S)};
_.J.onCreateImagePollCommand=function(S){_.Y(S,P4s)&&(this.JSC$13730_commentbox.openImagePollComponent(),this.openDialog())};
_.J.onCreateQuizCommand=function(S){_.Y(S,LuT)&&(this.JSC$13730_commentbox.openQuizComponent(),this.openDialog())};
_.J.openSchedulingPanel=function(S){_.u("enable_post_scheduling")&&(this.openDialog(),this.JSC$13730_commentbox.openSchedulingPanel(S))};
_.J.onCreateCommentAction=function(S){this.get("createCommentAction.contents",S)&&(this.JSC$13730_commentbox.clear(),this.closeDialog())};
_.J.onOpen=function(S){S instanceof KeyboardEvent&&S.type==="keypress"&&S.keyCode!==13&&S.keyCode!==32||(this.data.prepareAccountEndpoint?_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.closeDialog()};
_.J.onYtCommentboxLoadingStart=function(S){S.stopPropagation();this.isCommentboxLoading=!0};
_.J.onYtCommentboxLoadingEnd=function(S){S.stopPropagation();this.isCommentboxLoading=!1};
_.J.onYtVideoLinkButtonCancel=function(S){S.stopPropagation();this.onOpen(S)};
_.J.onYtVideoLinkSelected=function(S){S.stopPropagation();this.onOpen(S)};
_.J.onIronSelect=function(S){S.stopPropagation();S.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=S.detail.item.value&&(this.accessRestriction?(this.accessRestriction=S.detail.item.value,this.onOpen(S)):this.accessRestriction=S.detail.item.value)};
_.J.onYtNavigate=function(S){this.get("detail.endpoint.backstageImageUploadEndpoint",S)&&(this.JSC$13730_commentbox.addedAttachment="image",this.JSC$13730_commentbox.submitButtonDisabled=!0,this.onOpen(S))};
_.J.onRequestSent=function(S){if(_.u("web_button_rework"))for(var c=_.A(S.detail),Q=c.next();!Q.done;Q=c.next())_.Y(Q.value,fPs)&&(this.JSC$13730_commentbox.addedAttachment="image",this.JSC$13730_commentbox.submitButtonDisabled=!0,this.onOpen(S))};
_.J.openDialog=function(){this.JSC$13730_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13730_commentbox.focus()};
_.J.onPopupClosed=function(){_.cb.getInstance()};
_.J.computeCreationDisabled=function(S){return!!S};
_.J.computeIsCreationDialog=function(S){return!!S&&S==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.J.computeDisabledPostButton=function(S){if(!S)return null;S.isDisabled=!0;return S};
_.J.computeIsCreationDialogWithHeader=function(S){return!this.inPopupContainer&&!!S&&!!S.authorText&&S.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.J.computeIsHeaderHidden=function(S,c){return!S||c};
_.J.computeDropdownRendererClasses=function(S){return S?["text-secondary-style"]:[]};
_.J.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var S=_.Ur(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;S&&S.reset()};
zX.prototype.onPopupClosed=zX.prototype.onPopupClosed;zX.prototype.onRequestSent=zX.prototype.onRequestSent;zX.prototype.onYtNavigate=zX.prototype.onYtNavigate;zX.prototype.onIronSelect=zX.prototype.onIronSelect;zX.prototype.onYtVideoLinkSelected=zX.prototype.onYtVideoLinkSelected;zX.prototype.onYtVideoLinkButtonCancel=zX.prototype.onYtVideoLinkButtonCancel;zX.prototype.onYtCommentboxLoadingEnd=zX.prototype.onYtCommentboxLoadingEnd;zX.prototype.onYtCommentboxLoadingStart=zX.prototype.onYtCommentboxLoadingStart;
zX.prototype.onYtCommentboxDismiss=zX.prototype.onYtCommentboxDismiss;zX.prototype.showButtonEduTooltip=zX.prototype.showButtonEduTooltip;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],zX.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zX.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],zX.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],zX.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zX.prototype,"isOpen",void 0);_.d([_.Z({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],zX.prototype,"buttonOverride",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zX.prototype,"modern",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zX.prototype,"roundedContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],zX.prototype,"dropdownButtonOverride",void 0);_.d([_.Z({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.P("design:type",Boolean)],zX.prototype,"creationDisabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],zX.prototype,"enableCreationBox",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.P("design:type",Boolean)],zX.prototype,"isCreationDialog",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zX.prototype,"inPopupContainer",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.P("design:type",Boolean)],zX.prototype,"isCreationDialogWithHeader",void 0);_.d([_.Z(),_.P("design:type",Object)],zX.prototype,"accessRestriction",void 0);
_.d([_.Z({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.P("design:type",Array)],zX.prototype,"dropdownRendererClasses",void 0);_.d([_.Z(),_.P("design:type",Object)],zX.prototype,"isCommentboxLoading",void 0);_.d([_.Z(),_.P("design:type",Array)],zX.prototype,"attachmentButtonIds",void 0);_.d([_.nU("#image-button"),_.P("design:type",HTMLElement)],zX.prototype,"imageButton",void 0);
_.d([_.nU("#image-poll-button"),_.P("design:type",HTMLElement)],zX.prototype,"imagePollButton",void 0);_.d([_.nU("#quiz-button"),_.P("design:type",HTMLElement)],zX.prototype,"quizButton",void 0);_.d([_.nU("#commentbox"),_.P("design:type",Object)],zX.prototype,"JSC$13730_commentbox",void 0);_.d([_.B0("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zX.prototype,"showButtonEduTooltip",null);
_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onYtCommentboxDismiss",null);_.d([_.FV("yt-commentbox-loading-start"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onYtCommentboxLoadingStart",null);
_.d([_.FV("yt-commentbox-loading-end"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onYtCommentboxLoadingEnd",null);_.d([_.FV("yt-video-link-button-cancel"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onYtVideoLinkButtonCancel",null);
_.d([_.FV("yt-video-link-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onYtVideoLinkSelected",null);_.d([_.FV("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onIronSelect",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onYtNavigate",null);
_.d([_.FV("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zX.prototype,"onRequestSent",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zX.prototype,"onPopupClosed",null);_.d([_.e({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],zX);
_.k(zX,"ytd-backstage-post-dialog-renderer",function(){if(EPp!==void 0)return EPp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return EPp=S},{mode:1});var HQd;var DWJ;var xb=function(){return _.W.apply(this,arguments)||this};
_.C(xb,_.W);_.J=xb.prototype;_.J.computeHeartButtonStyle=function(S){return(S==null?0:S.styleType)?S.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onYtButtonTap=function(){if(this.data.isEnabled){var S=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(S=this.getEndpoint(S))&&_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})}else(S=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(S)};
_.J.toggle=function(S){this.set("data.isHearted",S!==void 0?S:!this.data.isHearted)};
_.J.getEndpoint=function(S){var c,Q=(c=this.data)==null?void 0:c.heartEndpoint,f;c=(f=this.data)==null?void 0:f.unheartEndpoint;if(Q&&c)return S?c:Q};
_.J.computeButtonAccessibility=function(S,c){var Q,f,U=S==null?void 0:(Q=S.heartedAccessibility)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label,a,X;S=S==null?void 0:(a=S.unheartedAccessibility)==null?void 0:(X=a.accessibilityData)==null?void 0:X.label;return c?U:S};
_.Rh.Object.defineProperties(xb.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 S;return _.u("kevlar_system_icons")&&!((S=this.data)==null||!S.isHearted)}}});
xb.prototype.onYtButtonTap=xb.prototype.onYtButtonTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xb.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],xb.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],xb.prototype,"data",void 0);_.d([_.M("data.isHearted"),_.P("design:type",Object),_.P("design:paramtypes",[])],xb.prototype,"heartTooltip",null);
_.d([_.M("data.isHearted"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],xb.prototype,"iconFilled",null);_.d([_.Z({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.P("design:type",String)],xb.prototype,"buttonAccessibility",void 0);_.d([_.Z({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],xb.prototype,"heartButtonStyle",void 0);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xb.prototype,"onYtButtonTap",null);_.d([_.e({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],xb);
_.k(xb,"ytd-creator-heart-renderer",function(){if(DWJ!==void 0)return DWJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return DWJ=S},{mode:1});var FH=function(){var S=_.W.apply(this,arguments)||this;S.hasCreatorReply=!1;S.buttonOverrides={size:"S",iconPosition:"icon-only"};S.replyButtonOverrides={size:"S",type:"text"};S.forceIconButton=!_.u("web_modern_buttons");S.modern=_.u("web_modern_buttons");S.buttonTooltipPosition="bottom";S.systemIcons=_.u("kevlar_system_icons");S.replyDialog=null;return S};
_.C(FH,_.W);_.J=FH.prototype;
_.J.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]]"}}}}}};
_.J.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.J.dataChange=function(){this.replyDialog&&_.Ur(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var S,c,Q;this.isLiked=this.systemIcons&&!!((S=this.data)==null?0:(c=S.likeButton)==null?0:(Q=c.toggleButtonRenderer)==null?0:Q.isToggled)};
_.J.computeShowVoteCountBeginning=function(S,c){return S===void 0||c===void 0?!0:S.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.J.computeShowVoteCountEnd=function(S,c){return S===void 0||c===void 0?!0:S.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.J.computeShowCommentCount=function(S,c){return S===void 0||c===void 0?!0:S.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!c&&this.ytRendererBehavior.getSimpleString(c)!=="0"};
_.J.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.J.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.J.showReplyDialog=function(S){S&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.Ur(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=S,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.J.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.J.onRequestSent=function(S){if(_.u("web_button_rework")){S=_.A(S.detail);for(var c=S.next();!c.done;c=S.next())(c=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",c.value))&&this.showReplyDialog(c)}};
_.J.onYtNavigate=function(S){var c,Q;(S=(c=_.Y(S.detail.endpoint,_.J1_))==null?void 0:(Q=c.dialog)==null?void 0:Q.commentReplyDialogRenderer)&&this.showReplyDialog(S)};
_.J.onYtServiceRequestSent=function(S,c){S.stopPropagation();if(c.actions)for(S=0;S<c.actions.length;S++){var Q=_.Y(c.actions[S],Brh);Q&&this.handleUpdateCommentVoteAction(Q)}};
_.J.handleUpdateCommentVoteAction=function(S){this.voteCount=S.voteCount||_.LK("0");S.voteStatus==="LIKE"?this.JSC$13741_ytdDislikeToggleButtonRenderer.toggle(!1):S.voteStatus==="DISLIKE"?this.JSC$13741_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13741_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13741_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.J.computeReplyButtonHidden=function(S){return S};
_.J.computeReplyButtonBeginning=function(S){return(S==null?0:S.replyButton)&&S.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?S.replyButton:void 0};
_.J.computeReplyButtonEnd=function(S){return(S==null?0:S.replyButton)&&S.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?S.replyButton:void 0};
_.J.computeActionButtonStyle=function(S){return(S==null?0:S.style)?S.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.J.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.J.onYtToggleButton=function(S){var c,Q;this.isLiked=this.systemIcons&&!!((c=S.detail)==null?0:(Q=c.actions)==null?0:Q.like)};
FH.prototype.onYtToggleButton=FH.prototype.onYtToggleButton;FH.prototype.onButtonTooltipPositionChanged=FH.prototype.onButtonTooltipPositionChanged;FH.prototype.onYtServiceRequestSent=FH.prototype.onYtServiceRequestSent;FH.prototype.onYtNavigate=FH.prototype.onYtNavigate;FH.prototype.onRequestSent=FH.prototype.onRequestSent;FH.prototype.onYtCommentboxDismiss=FH.prototype.onYtCommentboxDismiss;FH.prototype.dataChange=FH.prototype.dataChange;
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],FH.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],FH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"voteCount",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"commentCount",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"replyThumbnail",void 0);
_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"hasCreatorReply",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],FH.prototype,"enableCreationBox",void 0);_.d([_.Z({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],FH.prototype,"actionButtonsStyle",void 0);_.d([_.Z({computed:"computeReplyButtonBeginning(data)"}),_.P("design:type",Object)],FH.prototype,"replyButtonBeginning",void 0);
_.d([_.Z({computed:"computeReplyButtonEnd(data)"}),_.P("design:type",Object)],FH.prototype,"replyButtonEnd",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"buttonOverrides",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"replyButtonOverrides",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"forceIconButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],FH.prototype,"useCommentIcon",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],FH.prototype,"modern",void 0);_.d([_.Z(),_.P("design:type",Object)],FH.prototype,"buttonTooltipPosition",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],FH.prototype,"systemIcons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],FH.prototype,"isLiked",void 0);_.d([_.nU("ytd-button-renderer"),_.P("design:type",Object)],FH.prototype,"ytdReplyButtonRenderer",void 0);
_.d([_.nU("#like-button"),_.P("design:type",Object)],FH.prototype,"JSC$13741_ytdLikeToggleButtonRenderer",void 0);_.d([_.nU("#dislike-button"),_.P("design:type",Object)],FH.prototype,"JSC$13741_ytdDislikeToggleButtonRenderer",void 0);_.d([_.nU("#reply-dialog"),_.P("design:type",HTMLElement)],FH.prototype,"replyDialogElement",void 0);_.d([_.nU("#reply-button"),_.P("design:type",HTMLElement)],FH.prototype,"replyButtonElement",void 0);
_.d([_.nU("#reply-button-end"),_.P("design:type",HTMLElement)],FH.prototype,"replyButtonEndElement",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FH.prototype,"dataChange",null);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],FH.prototype,"onYtCommentboxDismiss",null);
_.d([_.FV("yt-service-request-sent-button-renderer"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],FH.prototype,"onRequestSent",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],FH.prototype,"onYtNavigate",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],FH.prototype,"onYtServiceRequestSent",null);_.d([_.B0("buttonTooltipPosition"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FH.prototype,"onButtonTooltipPositionChanged",null);
_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],FH.prototype,"onYtToggleButton",null);_.d([_.e({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],FH);
_.k(FH,"ytd-comment-action-buttons-renderer",function(){if(HQd!==void 0)return HQd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return HQd=S},{mode:1});var p6s;var By=function(){return _.W.apply(this,arguments)||this};
_.C(By,_.W);By.prototype.focus=function(){_.Ur(this.hostElement).querySelector("#commentbox").focus()};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],By.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],By.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],By.prototype,"zeroStepChannelCreationRenderer",void 0);_.d([_.e({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],By);
_.k(By,"ytd-comment-dialog-renderer",function(){if(p6s!==void 0)return p6s;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return p6s=S},{mode:1});var hPd;var Im=function(){var S=_.W.apply(this,arguments)||this;S.buttonOverrides={size:"S",iconPosition:"icon-only"};S.replyButtonOverrides={size:"S",type:"text"};return S};
_.C(Im,_.W);_.J=Im.prototype;_.J.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.J.detached=function(){this.replyBox&&this.replyBox.remove()};
_.J.showReplyDialog=function(S){if(S){var c=this.replyBox;c||(c=document.createElement("ytd-comment-reply-dialog-renderer"),c.id="replybox",_.Ur(this.replyDialogDiv).appendChild(c));c.data=S;this.replyDialogDiv.hidden=!1;c.openDialog()}};
_.J.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.J.onYtServiceRequestSent=function(S,c){S.stopPropagation();if(c.actions)for(var Q=0;Q<c.actions.length;Q++){var f=_.Y(c.actions[Q],Brh);f?this.handleUpdateCommentVoteAction(f):S.target===this.heartButton&&this.toggleHeartState()}};
_.J.handleUpdateCommentVoteAction=function(S){var c;(c=this.toolbarState)!=null&&c.key&&this.ytdReduxBehavior.dispatch(_.TI("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:S.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":S.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.J.toggleHeartState=function(){var S;(S=this.toolbarState)!=null&&S.key&&this.ytdReduxBehavior.dispatch(_.TI("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.Rh.Object.defineProperties(Im.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return(((S=this.toolbarState)==null?void 0:S.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(c=this.toolbarData)==null?void 0:c.likeCountLiked:(Q=this.toolbarData)==null?void 0:Q.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.toolbarSurface)==null?void 0:S.commentDisabledActionCommand)!==void 0}},
isSubscribersOnlyComments:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.toolbarSurface)==null?void 0:S.subscribersOnlySnackbarCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.toolbarSurface)==null?void 0:S.prepareAccountCommand)!==void 0&&!_.u("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S,c=_.Y((S=this.toolbarSurface)==null?void 0:S.prepareAccountCommand,_.Zc),Q,f,U,a,X,z,x,I,n;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((Q=this.toolbarSharedData)==null||!Q.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:c!=null?c:_.Y((U=this.toolbarSurface)==null?void 0:U.likeCommand,_.Zc),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.Y((a=this.toolbarSurface)==null?void 0:a.unlikeCommand,_.Zc),defaultCommand:this.isVisiblyDisabled?_.Y((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.Zc):void 0,defaultTooltip:(z=this.toolbarData)==null?void 0:z.likeInactiveTooltip,toggledTooltip:(x=this.toolbarData)==null?void 0:x.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(I=this.toolbarData)==null?void 0:I.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(n=this.toolbarSharedData)==null?void 0:n.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S,c=_.Y((S=this.toolbarSurface)==null?void 0:S.prepareAccountCommand,_.Zc),Q,f,U,a,X,z,x,I,n,b;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((Q=this.toolbarSharedData)==null||!Q.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((f=this.toolbarState)==null?void 0:f.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.Y((U=this.toolbarSurface)==null?void 0:U.dislikeCommand,_.Zc),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:c!=null?c:_.Y((a=this.toolbarSurface)==null?void 0:a.undislikeCommand,_.Zc),defaultCommand:this.isVisiblyDisabled?_.Y((X=this.toolbarSurface)==null?void 0:X.commentDisabledActionCommand,_.Zc):void 0,defaultTooltip:(z=this.toolbarData)==null?void 0:z.dislikeInactiveTooltip,toggledTooltip:(x=this.toolbarData)==null?void 0:
x.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(I=this.toolbarSharedData)==null?void 0:I.dislikeReplyButtonA11y:(n=this.toolbarSharedData)==null?void 0:n.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(b=this.toolbarSharedData)==null?void 0:b.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;if(((S=this.toolbarState)==null?void 0:S.heartState)!==void 0&&((c=this.toolbarState)==null?void 0:c.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((Q=this.toolbarState)==null?void 0:Q.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var f,U,a,X,z,x,I,n,b,N,l,H,q,w;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(f=this.toolbarData)==null?void 0:f.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((U=this.toolbarState)==null?void 0:U.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((a=this.toolbarState)==null?void 0:a.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((X=this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.Y((x=this.toolbarSurface)==null?void 0:x.heartCommand,
_.Zc),unheartEndpoint:this.isVisiblyDisabled?void 0:_.Y((I=this.toolbarSurface)==null?void 0:I.unheartCommand,_.Zc),disabledEndpoint:this.isVisiblyDisabled?_.Y((n=this.toolbarSurface)==null?void 0:n.commentDisabledActionCommand,_.Zc):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(b=this.toolbarData)==null?void 0:b.heartActiveTooltip,unheartedTooltip:(N=this.toolbarData)==null?void 0:N.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((l=
this.toolbarState)==null?void 0:l.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(H=this.toolbarSharedData)==null?void 0:H.unheartButtonA11y:(q=this.toolbarSharedData)==null?void 0:q.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(w=this.toolbarSharedData)==null?void 0:w.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.toolbarSurface)==null||!S.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled||this.isSubscribersOnlyComments?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(S=this.commentStrings)==null?void 0:S.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled||this.isSubscribersOnlyComments?void 0:_.Y((c=this.toolbarSurface)==null?void 0:c.replyCommand,_.Zc),command:this.isVisiblyDisabled?_.Y((Q=this.toolbarSurface)==null?void 0:Q.commentDisabledActionCommand,
_.Zc):this.isSubscribersOnlyComments?_.Y((f=this.toolbarSurface)==null?void 0:f.subscribersOnlySnackbarCommand,_.Zc):void 0}}}});
Im.prototype.onYtServiceRequestSent=Im.prototype.onYtServiceRequestSent;Im.prototype.hideReplyDialogDiv=Im.prototype.hideReplyDialogDiv;_.d([_.Z(),_.P("design:type",Object)],Im.prototype,"commentStrings",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Im.prototype,"isReply",void 0);_.d([_.Z(),_.P("design:type",Object)],Im.prototype,"toolbarData",void 0);_.d([_.Z(),_.P("design:type",Object)],Im.prototype,"toolbarSharedData",void 0);
_.d([_.Z(),_.P("design:type",String)],Im.prototype,"toolbarStateKey",void 0);_.d([_.Z(),_.P("design:type",String)],Im.prototype,"toolbarSurfaceKey",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Im.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Im.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Im.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.nU("#reply-dialog"),_.P("design:type",HTMLElement)],Im.prototype,"replyDialogDiv",void 0);_.d([_.nU("#replybox"),_.P("design:type",Object)],Im.prototype,"replyBox",void 0);_.d([_.nU("ytd-creator-heart-renderer"),_.P("design:type",Object)],Im.prototype,"heartButton",void 0);_.d([_.Z({selector:function(S,c){return _.FT(S.entities,"engagementToolbarStateEntityPayload",c)},
selectorArgs:["toolbarStateKey"]}),_.P("design:type",Object)],Im.prototype,"toolbarState",void 0);_.d([_.Z({selector:Dez,selectorArgs:["toolbarSurfaceKey"]}),_.P("design:type",Object)],Im.prototype,"toolbarSurface",void 0);_.d([_.Z(),_.P("design:type",Object)],Im.prototype,"buttonOverrides",void 0);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Im.prototype,"hideReplyDialogDiv",null);
_.d([_.M("toolbarData","toolbarState"),_.P("design:type",String),_.P("design:paramtypes",[])],Im.prototype,"likeCount",null);_.d([_.M("likeCount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Im.prototype,"showLikeCount",null);_.d([_.M("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Im.prototype,"isVisiblyDisabled",null);_.d([_.M("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Im.prototype,"isSubscribersOnlyComments",null);
_.d([_.M("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Im.prototype,"hasPrepareAccountCommand",null);_.d([_.M("toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],Im.prototype,"likeToggleButtonRenderer",null);_.d([_.M("isReply","toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],Im.prototype,"dislikeToggleButtonRenderer",null);
_.d([_.M("toolbarData","toolbarState","toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],Im.prototype,"creatorHeartSupportedRenderer",null);_.d([_.M("toolbarSurface"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Im.prototype,"hasReplyCommand",null);_.d([_.M("toolbarSurface","commentStrings","isVisiblyDisabled"),_.P("design:type",Object),_.P("design:paramtypes",[])],Im.prototype,"replyButtonRenderer",null);
_.d([_.Z(),_.P("design:type",Object)],Im.prototype,"replyButtonOverrides",void 0);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],Im.prototype,"onYtServiceRequestSent",null);_.d([_.e({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],Im);
_.k(Im,"ytd-comment-engagement-bar",function(){if(hPd!==void 0)return hPd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return hPd=S},{mode:1});var qKd;var na=function(){return _.W.apply(this,arguments)||this};
_.C(na,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],na.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],na.prototype,"data",void 0);_.d([_.e({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],na);
_.k(na,"ytd-comment-inline-thumbnail-renderer",function(){if(qKd!==void 0)return qKd;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return qKd=S},{mode:1});var Tq_;var w6i=function(){return _.W.apply(this,arguments)||this};
_.C(w6i,_.W);_.d([_.Z(),_.P("design:type",Object)],w6i.prototype,"data",void 0);_.d([_.e({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],w6i);
_.k(w6i,"ytd-comment-pause-composer-renderer",function(){if(Tq_!==void 0)return Tq_;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Tq_=S},{mode:1});var sD$;var MfH;var b1=function(){var S=_.W.apply(this,arguments)||this;S.isOpen=!1;return S};
_.C(b1,_.W);_.J=b1.prototype;_.J.dataChanged=function(){this.isOpen=!1};
_.J.onTap=function(){this.data&&(this.data.navigationEndpoint?_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.J.focus=function(){this.JSC$13767_commentbox.focus()};
_.J.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.J.openDialog=function(){this.isOpen=!0;this.JSC$13767_commentbox.focus();this.JSC$13767_commentbox.maybeHeightChanged()};
b1.prototype.onYtCommentboxDismiss=b1.prototype.onYtCommentboxDismiss;b1.prototype.dataChanged=b1.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],b1.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],b1.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],b1.prototype,"isOpen",void 0);_.d([_.nU("#commentbox"),_.P("design:type",Object)],b1.prototype,"JSC$13767_commentbox",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b1.prototype,"dataChanged",null);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],b1.prototype,"onYtCommentboxDismiss",null);_.d([_.e({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],b1);
_.k(b1,"ytd-comment-reply-dialog-renderer",function(){if(MfH!==void 0)return MfH;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return MfH=S},{mode:1});var iQl;var Nd=function(){return _.W.apply(this,arguments)||this};
_.C(Nd,_.W);_.Rh.Object.defineProperties(Nd.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.icon)==null?void 0:c.iconType;return Q?"yt-icons:"+Q.toLowerCase():null}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Nd.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Nd.prototype,"data",void 0);_.d([_.Z(),_.M("data.icon"),_.P("design:type",Object),_.P("design:paramtypes",[])],Nd.prototype,"icon",null);_.d([_.e({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],Nd);
_.k(Nd,"ytd-pinned-comment-badge-renderer",function(){if(iQl!==void 0)return iQl;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return iQl=S},{mode:1});var ZQi;var Gb$={},WHe={input:!0,meta:!0,br:!0,link:!0,img:!0},Ka=null;Gb$.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(){Ka==null&&(Ka=document.createElement("tp-yt-paper-tooltip"),Ka.offset=8,Ka.fitToVisibleBounds=!0)},
onMouseOver_:function(S){if(S=_.Mk(S.target,function(U){return U==this||U.getAttribute&&U.getAttribute("shared-tooltip-text")}.bind(this),!0)){var c=S.getAttribute("shared-tooltip-text");
if(c){var Q=this,f=null;S!=this&&(S.tagName.toLowerCase()in WHe?Q=S.parentElement:Q=S,S.id&&(f=S.id));this.polymerController.createTooltipIfRequired_();if(Ka.parentElement!=Q||Ka.for!=f)(0,_.XV)(Ka).textContent=c,_.Ur(Q).appendChild(Ka),Ka.for=f,Ka.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Ka.position=this.polymerController.sharedTooltipPosition}}}};var $b=function(){return _.W.apply(this,arguments)||this};
_.C($b,_.W);$b.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]]"}}}}}};
$b.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
$b.prototype.colorChanged=function(){var S,c,Q,f=(S=this.data)==null?void 0:(c=S.color)==null?void 0:(Q=c.basicColorPaletteData)==null?void 0:Q.foregroundBodyColor;f&&(this.rgbBadgeColor=_.WV(f));_.Ur(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
$b.prototype.tooltipChanged=function(){var S;((S=this.data)==null?0:S.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
$b.prototype.tooltipChanged=$b.prototype.tooltipChanged;$b.prototype.colorChanged=$b.prototype.colorChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$b.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$b.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(Gb$.YtSharedTooltipBehavior),_.P("design:type",Object)],$b.prototype,"ytSharedTooltipBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$b.prototype,"data",void 0);
_.d([_.Z({value:"#4285F4"}),_.P("design:type",String)],$b.prototype,"rgbBadgeColor",void 0);_.d([_.B0("data.color"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$b.prototype,"colorChanged",null);_.d([_.B0("data.tooltip"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$b.prototype,"tooltipChanged",null);_.d([_.e({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],$b);
_.k($b,"ytd-sponsor-comment-badge-renderer",function(){if(ZQi!==void 0)return ZQi;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ZQi=S},{mode:1});var gBd;var ePH;var u1=function(){return _.W.apply(this,arguments)||this};
_.C(u1,_.W);u1.prototype.computeState=function(S){switch(S==null?void 0:S.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"}};
u1.prototype.updateStateIdentifier=function(S){if(this.viewModel.triStateKey){var c=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.TI("triStateButtonStateEntityPayload",c,{key:c,stateIdentifier:S}))}};
u1.prototype.onClick=function(){var S=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(){S.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){S.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.Rh.Object.defineProperties(u1.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 S;return((S=this.data)==null?void 0:S.buttonText)||""}}});
_.d([_.Z(),_.P("design:type",Object)],u1.prototype,"viewModel",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],u1.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],u1.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.d([_.Z({selector:pSp,selectorArgs:["viewModel.triStateKey"]}),_.P("design:type",Object)],u1.prototype,"triStateButtonStateEntity",void 0);
_.d([_.Z({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.P("design:type",String)],u1.prototype,"state",void 0);_.d([_.M("viewModel","state"),_.P("design:type",Object),_.P("design:paramtypes",[])],u1.prototype,"data",null);_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],u1.prototype,"buttonText",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],u1);
_.k(u1,"ytd-tri-state-button-view-model",function(){if(ePH!==void 0)return ePH;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ePH=S},{mode:1});var kbi;var rYd;var ju=function(){var S=_.W.apply(this,arguments)||this;S.defaultIconToFilled=!_.u("kevlar_fill_comment_chip_icon_killswitch");return S};
_.C(ju,_.W);ju.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
ju.prototype.dataChanged=function(){if(this.data){var S,c;((S=this.data.chipColorPalette)==null?0:S.backgroundColor)&&((c=this.data.chipColorPalette)==null?0:c.foregroundTitleColor)&&_.Or(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.gh(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.gh(this.data.chipColorPalette.foregroundTitleColor)});var Q;((Q=this.data)==null?0:Q.command)?(_.Or(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.Or(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}};
ju.prototype.onTap=function(){var S;if(this.data&&(S=this.data)!=null&&S.command){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.command)}};
ju.prototype.getIconSize=function(){return _.u("kevlar_fill_comment_chip_icon_killswitch")?24:12};
ju.prototype.onTap=ju.prototype.onTap;ju.prototype.dataChanged=ju.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ju.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ju.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.lc),_.P("design:type",Object)],ju.prototype,"ironA11yKeysBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ju.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],ju.prototype,"basePriceText",void 0);_.d([_.Z(),_.P("design:type",Object)],ju.prototype,"chipIcon",void 0);_.d([_.Z(),_.P("design:type",Object)],ju.prototype,"defaultIconToFilled",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ju.prototype,"dataChanged",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ju.prototype,"onTap",null);
_.d([_.wM({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],ju);
_.k(ju,"yt-pdg-comment-chip-renderer",function(){if(rYd===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;kbi===void 0&&(kbi=document.createElement("template"));var f=kbi;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);rYd=S}S=rYd;return S},{mode:2});var l1=function(){var S=_.W.apply(this,arguments)||this;S.useSmallAvatars=_.u("small_avatars_for_comments");S.webWatchCompactComments=_.u("web_watch_compact_comments");S.editDialog=null;return S};
_.C(l1,_.W);_.J=l1.prototype;_.J.onShow=function(){_.Z5("cmv",void 0,"wn_comments")};
_.J.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"}}}};
_.J.detached=function(){this.editDialog=null;this.expander.reset()};
_.J.updateBackgroundColor=function(){if(this.backgroundColor){var S={"--ytd-comment-paid-background-color":_.gh(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.Or(this.hostElement,S)}else _.Or(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.J.resetExpander=function(){var S;(S=this.expander)==null||S.reset()};
_.J.openEditDialog=function(S){S.dialog&&(this.editDialog=S.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.J.onYtNavigate=function(S){var c=S.detail.endpoint;if(c=_.Y(c,_.aP$)||_.Y(c,_.A1T))S.stopPropagation(),this.openEditDialog(c)};
_.J.onYtCommentboxDismiss=function(){this.editDialog=null;_.Or(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.J.onAuthorThumbnailClicked=function(){var S=this;_.u("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(c,Q){S.onAuthorThumbnailEndpointSuccess(Q)},
onServerError:function(c,Q){_.i5(new _.Yr("Failed to resolve the command",Q))}}})};
_.J.onAuthorThumbnailEndpointSuccess=function(S){if((S=S==null?void 0:S.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(S,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();S=S==null?void 0:S.clickTrackingParams;var c=_.T$();S&&c&&_.Kv().graftServerVe(S,c)}};
_.J.logScreenVe=function(){_.X2(_.Kv(),66557)};
_.J.onYtCommentboxResize=function(S){var c;(S==null?0:(c=S.detail)==null?0:c.height)&&_.Or(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":S.detail.height+"px"})};
_.Rh.Object.defineProperties(l1.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 S,c=(S=this.commentEntity)==null?void 0:S.author;return c&&(c.isCreator||c.isVerified||c.isArtist)?{renderer:{authorEndpoint:c.channelPageEndpoint?_.Y(c.channelPageEndpoint,_.Zc):_.Y(c.channelCommand,_.Zc),authorText:{runs:[{text:c.displayName}]},color:c.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:c.isArtist?{iconType:"AUDIO_BADGE"}:
c.isVerified?{iconType:c.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:c.isArtist||c.isVerified?c.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var S,c=(S=this.commentEntity)==null?void 0:S.author;return c!=null&&c.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:c.sponsorBadgeUrl}]},tooltip:c.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var S;return _.Y((S=this.commentSurfaceEntity)==null?void 0:S.pdgCommentChip,_.ZwJ)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var S;return this.voiceReplyContainerViewModel&&((S=this.voiceReplyContainerViewModel)==null?void 0:S.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var S;return _.Y((S=this.commentSurfaceEntity)==null?void 0:S.voiceReplyContainerViewModel,uaz)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var S;return this.voiceReplyContainerViewModel&&(S=this.voiceReplyContainerViewModel)!=null&&S.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=(S=this.commentSurfaceEntity)==null?void 0:S.commentBackgroundColor)!=null?c:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var S,c;return(((S=this.commentEntity)==null?void 0:(c=S.properties)==null?void 0:c.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var S,c;if(_.u("enable_profile_cards_on_comments")&&((S=this.commentEntity)==null?0:(c=S.author)==null?0:c.profileCardEndpoint)&&this.viewModel.allowProfileCard){var Q,f;return _.Y((Q=this.commentEntity)==null?void 0:(f=Q.author)==null?void 0:f.profileCardEndpoint,_.Zc)}var U,a;return _.Y((U=this.commentEntity)==null?void 0:(a=U.avatar)==null?void 0:a.endpoint,_.Zc)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var S,c;if(_.u("enable_profile_cards_on_comments")&&((S=this.commentEntity)==null?0:(c=S.author)==null?0:c.channelPageEndpoint)){var Q,f;return _.Y((Q=this.commentEntity)==null?void 0:(f=Q.author)==null?void 0:f.channelPageEndpoint,_.Zc)}var U,a;return _.Y((U=this.commentEntity)==null?void 0:(a=U.avatar)==null?void 0:a.endpoint,_.Zc)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U=(S=this.commentEntity)==null?void 0:(c=S.avatar)==null?void 0:(Q=c.image)==null?void 0:(f=Q.sources)==null?void 0:f[0];return U?{thumbnails:[{url:U.url,width:U.width,height:U.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.commentEntity)==null?0:(c=S.author)==null?0:c.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.commentEntity)==null?void 0:(c=S.author)==null?void 0:c.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.commentEntity)==null?void 0:(c=S.properties)==null?void 0:c.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var S;return _.Y((S=this.commentSurfaceEntity)==null?void 0:S.publishedTimeCommand,_.Zc)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var S,c;if(((S=this.commentEntity)==null?0:S.translatedContent)&&((c=this.translateButtonState)==null?void 0:c.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var Q;if((Q=this.voiceReplyContainerViewModel)==null?0:Q.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var f,U;return((f=this.commentEntity)==null?void 0:(U=f.properties)==null?void 0:U.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.commentSharedEntity)==null?void 0:(c=S.strings)==null?void 0:c.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.commentSharedEntity)==null?void 0:(c=S.strings)==null?void 0:c.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.commentEntity)==null||!S.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var S,c,Q=(c=_.Y((S=this.viewModel)==null?void 0:S.translateButton,$J$))!=null?c:{},f,U,a,X,z,x,I,n,b,N,l;return Object.assign({},Q,{untoggledStateData:Object.assign({},Q.untoggledStateData,{buttonText:(f=this.commentEntity)==null?void 0:(U=f.translateData)==null?void 0:U.text}),togglingStateData:Object.assign({},Q.togglingStateData,{buttonText:(a=this.commentSharedEntity)==null?
void 0:(X=a.strings)==null?void 0:X.translatingText}),toggledStateData:Object.assign({},Q.toggledStateData,{buttonText:(z=this.commentSharedEntity)==null?void 0:(x=z.strings)==null?void 0:x.seeOriginalText}),transitionCommand:((I=this.commentEntity)==null?0:I.translatedContent)?void 0:_.Y((n=this.commentEntity)==null?void 0:(b=n.translateData)==null?void 0:b.translateComment,_.Zc),triStateKey:(N=this.commentEntity)==null?void 0:(l=N.properties)==null?void 0:l.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((c=_.Y(_.Y((S=this.toolbarSurface)==null?void 0:S.menuCommand,_.Zc),X9z))==null?void 0:(Q=c.menu)==null?void 0:Q.menuRenderer)||null}}});
l1.prototype.onYtCommentboxResize=l1.prototype.onYtCommentboxResize;l1.prototype.onYtCommentboxDismiss=l1.prototype.onYtCommentboxDismiss;l1.prototype.onYtNavigate=l1.prototype.onYtNavigate;l1.prototype.resetExpander=l1.prototype.resetExpander;l1.prototype.updateBackgroundColor=l1.prototype.updateBackgroundColor;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],l1.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],l1.prototype,"ytdReduxBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],l1.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],l1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("#author-thumbnail > button"),_.P("design:type",HTMLElement)],l1.prototype,"authorThumbnailAnchor",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l1.prototype,"linked",null);
_.d([_.M("viewModel","linked"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"linkedCommentBadge",null);_.d([_.Z({reflectToAttribute:!0}),_.M("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l1.prototype,"pinned",null);_.d([_.M("viewModel","pinned"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"pinnedCommentBadge",null);
_.d([_.M("commentEntity","commentSharedEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"authorCommentBadge",null);_.d([_.Z({reflectToAttribute:!0}),_.M("authorCommentBadge"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"hasAuthorBadge",null);_.d([_.M("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"sponsorCommentBadge",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("sponsorCommentBadge"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"hasSponsorBadge",null);_.d([_.M("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"pdgCommentChipRenderer",null);_.d([_.Z({reflectToAttribute:!0}),_.M("voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"hasVoiceReply",null);
_.d([_.M("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"voiceReplyContainerViewModel",null);_.d([_.M("voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"voiceReplyUnavailableText",null);_.d([_.Z(),_.P("design:type",Object)],l1.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"viewModel",null);
_.d([_.Z({selector:function(S,c){return _.FT(S.entities,"commentSharedEntityPayload",c)},
selectorArgs:["viewModel.sharedKey"]}),_.P("design:type",Object)],l1.prototype,"commentSharedEntity",void 0);_.d([_.Z({selector:function(S,c){return _.FT(S.entities,"commentEntityPayload",c)},
selectorArgs:["viewModel.commentKey"]}),_.P("design:type",Object)],l1.prototype,"commentEntity",void 0);_.d([_.Z({selector:function(S,c){return _.FT(S.entities,"commentSurfaceEntityPayload",c)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.P("design:type",Object)],l1.prototype,"commentSurfaceEntity",void 0);_.d([_.Z({selector:Dez,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.P("design:type",Object)],l1.prototype,"toolbarSurface",void 0);_.d([_.Z({selector:pSp,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.P("design:type",Object)],l1.prototype,"translateButtonState",void 0);
_.d([_.M("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"backgroundColor",null);_.d([_.Z({reflectToAttribute:!0}),_.M("viewModel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l1.prototype,"optimalReadingWidthComments",null);_.d([_.nU("ytd-expander"),_.P("design:type",Object)],l1.prototype,"expander",void 0);
_.d([_.B0("backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l1.prototype,"updateBackgroundColor",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],l1.prototype,"useSmallAvatars",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],l1.prototype,"webWatchCompactComments",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"isReply",null);
_.d([_.M("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"authorThumbnailEndpoint",null);_.d([_.M("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"authorNameEndpoint",null);_.d([_.M("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"authorThumbnail",null);_.d([_.M("commentEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],l1.prototype,"authorTextClass",null);
_.d([_.M("commentEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],l1.prototype,"authorChannelName",null);_.d([_.M("commentEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"publishedTime",null);_.d([_.M("commentSurfaceEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"publishedTimeCommand",null);
_.d([_.M("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"contentText",null);_.d([_.B0("contentText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l1.prototype,"resetExpander",null);_.d([_.M("commentEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l1.prototype,"shouldShowReadMoreInitially",null);
_.d([_.M("commentSharedEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],l1.prototype,"expandText",null);_.d([_.M("commentSharedEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],l1.prototype,"collapseText",null);_.d([_.M("commentEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l1.prototype,"shouldShowTranslateButton",null);
_.d([_.M("commentEntity","commentSharedEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"translateButton",null);_.d([_.M("toolbarSurface"),_.P("design:type",Object),_.P("design:paramtypes",[])],l1.prototype,"overflowMenuRenderer",null);_.d([_.Z(),_.P("design:type",Object)],l1.prototype,"editDialog",void 0);_.d([_.nU("ytd-comment-dialog-renderer"),_.P("design:type",Object)],l1.prototype,"editCommentDialogContainer",void 0);
_.d([_.nU("ytd-comment-reply-dialog-renderer"),_.P("design:type",Object)],l1.prototype,"editReplyDialogContainer",void 0);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],l1.prototype,"onYtNavigate",null);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],l1.prototype,"onYtCommentboxDismiss",null);
_.d([_.FV("yt-commentbox-resize"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],l1.prototype,"onYtCommentboxResize",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-comment-view-model"})],l1);
_.k(l1,"ytd-comment-view-model",function(){if(gBd!==void 0)return gBd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return gBd=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var Yb=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_modern_buttons");S.isWatchGrid=_.u("kevlar_watch_grid");S.buttonOverrides={style:"call-to-action"};S.JSC$13813_spinnerEl=null;return S};
_.C(Yb,_.W);_.J=Yb.prototype;_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.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]]"}}}}}};
_.J.attached=function(){this.isShowRepliesVisible=!0};
_.J.dataChanged=function(){var S=this.expanderContents;S&&(S.hidden=!0);this.isLoading=!1};
_.J.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.J.isLoadingChanged=function(){this.isLoading&&!this.JSC$13813_spinnerEl&&(this.JSC$13813_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.Ur(this.expanderContents).appendChild(this.JSC$13813_spinnerEl));this.JSC$13813_spinnerEl&&(this.JSC$13813_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var S;(S=this.contents)==null||S.classList.remove("reloading")}};
_.J.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var S=_.Y(this.data.viewReplies,_.GF);S&&this.ytRendererBehavior.logExplicitClick(S)};
_.J.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var S=_.Y(this.data.hideReplies,_.GF);S&&this.ytRendererBehavior.logExplicitClick(S)};
_.J.isShowMoreChanged=function(){var S=_.Ur(this.hostElement).querySelector("#expander-contents");S&&(S.hidden=this.isShowRepliesVisible)};
_.J.computeAlign=function(){if(this.modern){var S;return!((S=this.data)==null?0:S.viewRepliesCreatorThumbnail)}};
_.Rh.Object.defineProperties(Yb.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var S,c=(S=this.data)==null?void 0:S.contents;return!!c&&c.length>0&&!!c[c.length-1].continuationItemRenderer}}});
Yb.prototype.isShowMoreChanged=Yb.prototype.isShowMoreChanged;Yb.prototype.isLoadingChanged=Yb.prototype.isLoadingChanged;Yb.prototype.triggerFirstContinuation=Yb.prototype.triggerFirstContinuation;Yb.prototype.dataChanged=Yb.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Yb.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Yb.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.di),_.P("design:type",Object)],Yb.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Yb.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yb.prototype,"modern",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Yb.prototype,"isLoading",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],Yb.prototype,"isShowRepliesVisible",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Yb.prototype,"useNewFormatting",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yb.prototype,"isWatchGrid",void 0);_.d([_.Z(),_.P("design:type",Object)],Yb.prototype,"buttonOverrides",void 0);_.d([_.nU("#expander-contents"),_.P("design:type",HTMLElement)],Yb.prototype,"expanderContents",void 0);_.d([_.nU("ytd-continuation-item-renderer"),_.P("design:type",Object)],Yb.prototype,"continuationItemRenderer",void 0);_.d([_.nU("#contents"),_.P("design:type",HTMLElement)],Yb.prototype,"contents",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yb.prototype,"dataChanged",null);_.d([_.M("data.contents"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yb.prototype,"hasContinuation",null);_.d([_.FV("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yb.prototype,"triggerFirstContinuation",null);
_.d([_.B0("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yb.prototype,"isLoadingChanged",null);_.d([_.B0("isShowRepliesVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yb.prototype,"isShowMoreChanged",null);_.d([_.e({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],Yb);
_.k(Yb,"ytd-comment-replies-renderer",function(){if(sD$!==void 0)return sD$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return sD$=S},{mode:1});var dWs;var Ca=function(){var S=_.W.apply(this,arguments)||this;S.isOpen=!1;S.commentDialog=null;S.useSmallAvatars=_.u("small_avatars_for_comments");S.useSmallAvatarsEngagementPanelOnly=_.u("small_avatars_for_comments_ep");S.placeholderFocusListener=null;S.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return S};
_.C(Ca,_.W);_.J=Ca.prototype;_.J.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]]"}}}}}};
_.J.ready=function(){var S=this,c=_.Ur(this.hostElement).querySelector("#placeholder-area"),Q=_.Ur(this.hostElement).querySelector("#simplebox-placeholder"),f=function(U){U.stopPropagation();U instanceof KeyboardEvent&&U.type==="keypress"&&U.keyCode!==13&&U.keyCode!==32||S.openDialog()};
this.placeholderFocusListener=f;Q.addEventListener("focus",this.placeholderFocusListener);c.addEventListener("tap",f);c.addEventListener("keypress",f)};
_.J.maybeRemoveFocusEventListener=function(){var S;(S=this.data)!=null&&S.prepareAccountEndpoint&&!_.u("web_comments_simplebox_modal_focus_on_tap_ks")&&(S=_.Ur(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(S.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.J.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.J.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.u("web_comment_simplebox_resolve_polymer_command_ks")?_.BI.instance.resolveCommand(this.data.prepareAccountEndpoint):_.IW(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.Ur(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.J.onYtCommentboxDismiss=function(S){S.stopPropagation();this.isOpen=!1};
_.J.onCreateCommentAction=function(S){this.get("createCommentAction.contents",S)&&(this.isOpen=!1)};
_.J.computeCommentDialog=function(S){return{placeholderText:S.placeholderText,authorThumbnail:S.authorThumbnail,submitButton:S.submitButton,imageButton:S.imageButton,cancelButton:S.cancelButton,emojiButton:S.emojiButton,emojis:S.emojis,emojiPicker:S.emojiPicker,aadcGuidelinesStateEntityKey:S.aadcGuidelinesStateEntityKey,openAadcDialog:S.openAadcDialog,unicodeEmojisUrl:S.unicodeEmojisUrl}};
_.J.onHideIdentityChip=function(S){_.Y(S,xJJ)&&this.set("data.placeholderText",_.Y(S,xJJ).placeholderText)};
Ca.prototype.onYtCommentboxDismiss=Ca.prototype.onYtCommentboxDismiss;Ca.prototype.dataChanged=Ca.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ca.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ca.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Ca.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Ca.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Ca.prototype,"isOpen",void 0);_.d([_.Z(),_.P("design:type",Object)],Ca.prototype,"commentDialog",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ca.prototype,"engagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Ca.prototype,"useSmallAvatars",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Ca.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ca.prototype,"enableCreationBox",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Ca.prototype,"showCreateDialog",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ca.prototype,"dataChanged",null);
_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ca.prototype,"onYtCommentboxDismiss",null);_.d([_.e({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],Ca);
_.k(Ca,"ytd-comment-simplebox-renderer",function(){if(dWs!==void 0)return dWs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return dWs=S},{mode:1});var vBl;_.i8("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Hy=function(){var S=_.W.apply(this,arguments)||this;S.addHoverEffect=_.u("swatcheroo_comments_hover_effect");return S};
_.C(Hy,_.W);Hy.prototype.onTap=function(S){if(this.addHoverEffect&&!this.engagementPanel&&!_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||_.IW({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Hy.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.Rh.Object.defineProperties(Hy.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)!=null&&S.commentViewModel)return _.Y(this.data.commentViewModel,KJu)}}});
Hy.prototype.onTap=Hy.prototype.onTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Hy.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Hy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Hy.prototype,"addHoverEffect",void 0);_.d([_.Z(),_.P("design:type",Object)],Hy.prototype,"data",void 0);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hy.prototype,"commentViewModel",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Hy.prototype,"engagementPanel",void 0);_.d([_.FV("tap"),_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Hy.prototype,"onTap",null);_.d([_.e({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Hy);
_.k(Hy,"ytd-comment-thread-renderer",function(){if(vBl!==void 0)return vBl;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return vBl=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var Phd;var Dn=function(){var S=_.W.apply(this,arguments)||this;S.modernTypography=_.u("web_modern_typography");S.compactHeader=_.u("web_watch_compact_comments_header");S.hidePanelButton=!1;S.isPostSchedulingEnabled=_.u("enable_post_scheduling");S.hasFinishedStamping=!1;S.JSC$13831_handleOpenPostCommentDialogActionAfterStamp=!1;S.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return S};
_.C(Dn,_.W);_.J=Dn.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.J.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13831_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.J.onYtServiceRequestSent=function(S,c){if(!_.u("kevlar_command_handler")&&c.actions)for(S=0;S<c.actions.length;S++){var Q=c.actions[S];_.Y(Q,gse)&&_.Ur(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.Y(Q,gse))}};
_.J.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var S;if(this.getPrefilledBackstagePostDialog((S=this.data)==null?void 0:S.actions)){_.Ur(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var c=_.Ur(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;c&&_.tO(this,function(){c.focus();c.openDialog&&c.openDialog()})}}else this.hasActionsChange=!0};
_.J.computeIsBackstage=function(S){return S};
_.J.onYtCommentboxDismiss=function(){_.Ur(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.J.removePrefilledDialog=function(S){if(S==null?0:S.actions){for(var c=S.actions.length-1;c>=0;c--){var Q=void 0;((Q=_.Y(S.actions[c],USh))==null?0:Q.dialog)&&delete S.actions[c]}this.set("data",void 0);this.set("data",S)}};
_.J.getPrefilledBackstagePostDialog=function(S){if(S)for(var c=0;c<S.length;c++){var Q=S[c],f=void 0;if((f=_.Y(Q,USh))==null?0:f.dialog)return _.Y(Q,USh).dialog}return null};
_.J.computeBackstagePostDialog=function(S){return S&&(this.getPrefilledBackstagePostDialog(S.actions)||S.createRenderer)};
_.J.dataChanged=function(){if(this.data){var S=this.data.customEmojis,c=this.data.unicodeEmojisUrl;_.g4.clear();c&&_.LP_(_.g4,c);S&&_.g4.load(S)}};
_.J.handleSignalActionOpenPostCommentDialogAction=function(){var S=_.Ur(this.hostElement).querySelector("ytd-comment-simplebox-renderer");S?S.openDialog():this.JSC$13831_handleOpenPostCommentDialogActionAfterStamp=!0};
_.Rh.Object.defineProperties(Dn.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.u("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U,a,X;return!this.hidePanelButton&&_.u("kevlar_watch_comments_panel_button")&&((X=_.Y((S=this.data)==null?void 0:(c=S.sortMenu)==null?void 0:(Q=c.sortFilterSubMenuRenderer)==null?void 0:(f=Q.subMenuItems)==null?void 0:(U=f[0])==null?void 0:(a=U.serviceEndpoint)==null?void 0:a.commandMetadata,_.Qw))==null?void 0:X.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.K8("MINIPLAYER_EXPAND_LABEL"),text:_.LK(_.K8("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Dn.prototype.dataChanged=Dn.prototype.dataChanged;Dn.prototype.onYtCommentboxDismiss=Dn.prototype.onYtCommentboxDismiss;Dn.prototype.observePrefilledBackstagePostDialog=Dn.prototype.observePrefilledBackstagePostDialog;Dn.prototype.onYtServiceRequestSent=Dn.prototype.onYtServiceRequestSent;Dn.prototype.onStampFinished=Dn.prototype.onStampFinished;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Dn.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Dn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Dn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Dn.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Dn.prototype,"modernTypography",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Dn.prototype,"compactHeader",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Dn.prototype,"engagementPanel",void 0);_.d([_.Z(),_.P("design:type",Object)],Dn.prototype,"hidePanelButton",void 0);_.d([_.Z({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Dn.prototype,"isBackstage",void 0);_.d([_.Z({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.P("design:type",Object)],Dn.prototype,"backstagePostDialog",void 0);
_.d([_.Z(),_.P("design:type",Object)],Dn.prototype,"isPostSchedulingEnabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data","showCommentsPanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dn.prototype,"useSpaceBetween",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data","hidePanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dn.prototype,"showCommentsPanelButton",null);
_.d([_.M("data","showCommentsPanelButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dn.prototype,"commentsPanelButtonData",null);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dn.prototype,"onStampFinished",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],Dn.prototype,"onYtServiceRequestSent",null);
_.d([_.B0("data.actions"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dn.prototype,"observePrefilledBackstagePostDialog",null);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Dn.prototype,"onYtCommentboxDismiss",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dn.prototype,"dataChanged",null);
_.d([_.e({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Dn);
_.k(Dn,"ytd-comments-header-renderer",function(){if(Phd!==void 0)return Phd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Phd=S},{mode:1});var LHd;var pa=function(){return _.W.apply(this,arguments)||this};
_.C(pa,_.W);_.d([_.Z(),_.P("design:type",Object)],pa.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pa.prototype,"ytRendererBehavior",void 0);_.d([_.e({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],pa);
_.k(pa,"ytd-destination-button-renderer",function(){if(LHd!==void 0)return LHd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return LHd=S},{mode:1});var EBp;var h6=function(){var S=_.W.apply(this,arguments)||this;S.isRichGrid=!1;S.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};S.modernTypography=_.u("web_modern_typography");return S};
_.C(h6,_.W);_.J=h6.prototype;_.J.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.J.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.J.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.J.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var S;if((S=this.data)==null||!S.isExpanded){S=this.hostElement.clientWidth;var c;if(S&&(c=this.data)!=null&&c.destinationButtons){c=Math.floor((S+4)/214);S=this.data.destinationButtons.length;var Q=Math.ceil(S/c);this.fullyVisibleRows=S%c===1&&Q===2?1:Math.min(Q,2);this.isShowMoreVisible=this.fullyVisibleRows<Q}}}};
_.J.updateRichGridDestinationButtonsVisibility=function(){var S,c;if(this.isRichGrid&&((S=this.data)==null||!S.isExpanded)&&(c=this.data)!=null&&c.destinationButtons){S=this.richGridItemsPerRow+1;c=this.data.destinationButtons.length;var Q=Math.ceil(c/S);this.fullyVisibleRows=c%S===1&&Q===2?1:Math.min(Q,2);this.isShowMoreVisible=this.fullyVisibleRows<Q}};
_.J.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
h6.prototype.updateRichGridDestinationButtonsVisibility=h6.prototype.updateRichGridDestinationButtonsVisibility;_.d([_.Z(),_.P("design:type",Object)],h6.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Number)],h6.prototype,"fullyVisibleRows",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],h6.prototype,"isShowMoreVisible",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h6.prototype,"isRichGrid",void 0);
_.d([_.Z({selector:_.wP,value:0}),_.P("design:type",Number)],h6.prototype,"richGridItemsPerRow",void 0);_.d([_.Z(),_.P("design:type",Object)],h6.prototype,"gridStateActionMap",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],h6.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],h6.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],h6.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],h6.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h6.prototype,"modernTypography",void 0);_.d([_.B0("data","richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],h6.prototype,"updateRichGridDestinationButtonsVisibility",null);
_.d([_.e({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],h6);
_.k(h6,"ytd-destination-shelf-renderer",function(){if(EBp!==void 0)return EBp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return EBp=S},{mode:1});var tfH;var qd=function(){return _.W.apply(this,arguments)||this};
_.C(qd,_.W);qd.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qd.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],qd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qd.prototype,"data",void 0);_.d([_.e({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],qd);
_.k(qd,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(tfH!==void 0)return tfH;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return tfH=S},{mode:1});var Vf$;var TX=function(){var S=_.W.apply(this,arguments)||this;S.disableAnimation=!1;S.isSlimlineSurvey=!1;S.isSlimlineSurveyFollowUp=!1;S.isShortsStyle=!1;return S};
_.C(TX,_.W);TX.prototype.onTap=function(S){S.preventDefault();this.data&&_.Az(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.Rh.Object.defineProperties(TX.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 S,c,Q,f,U;return((S=this.data)==null?0:S.checked)?(c=this.data)==null?void 0:(Q=c.onStateIcon)==null?void 0:Q.iconType:(f=this.data)==null?void 0:(U=f.defaultStateIcon)==null?void 0:U.iconType}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],TX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],TX.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],TX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],TX.prototype,"disableAnimation",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],TX.prototype,"isSlimlineSurvey",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],TX.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],TX.prototype,"isShortsStyle",void 0);_.d([_.M("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],TX.prototype,"isAnimatedIcon",null);
_.d([_.M("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Number),_.P("design:paramtypes",[])],TX.prototype,"iconSize",null);_.d([_.M("isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],TX.prototype,"isDarkTheme",null);_.d([_.M("data.checked"),_.P("design:type",Object),_.P("design:paramtypes",[])],TX.prototype,"icon",null);_.d([_.e({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],TX);
_.k(TX,"ytd-rating-survey-option-renderer",function(){if(Vf$!==void 0)return Vf$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Vf$=S},{mode:2});var RP$;var w$=function(){var S=_.W.apply(this,arguments)||this;S.firstResponseText=null;S.lastResponseText=null;S.selectedNonStarOption=null;S.hideOptions=!1;S.hideUndoButton=!0;S.disableAnimation=!1;S.showResponseRangeText=!1;S.selectedRatingIndex=-1;S.isSlimlineSurvey=!1;S.isSlimlineSurveyFollowUp=!1;S.isShortsStyle=!1;S.slimlineSurveyRatingSelectedIndex=-1;return S};
_.C(w$,_.W);_.J=w$.prototype;_.J.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.J.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.J.onOptionChange=function(S,c){var Q=this;S=c.onStateIcon&&c.defaultStateIcon&&c.onStateIcon.iconType===c.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(X,z){X.responseText===c.responseText?Q.isSlimlineSurvey?(Q.selectedRatingIndex=z,Q.ytdReduxBehavior.dispatch(Pgu(z))):(Q.setSurveyOptionValue(z,!0,"checked"),Q.setSurveyOptionValue(z,!0,"selected")):(Q.setSurveyOptionValue(z,!1,"checked"),Q.setSurveyOptionValue(z,
!1,"selected"))});
else if(S)this.selectedNonStarOption=c,this.hideOptions=!0;else{var f=this.ytRendererBehavior.getSimpleString(c.responseText),U=!0;this.getOptionRenderers().forEach(function(X,z){Q.setSurveyOptionValue(z,U,"checked");Q.setSurveyOptionValue(z,!1,"selected");Q.ytRendererBehavior.getSimpleString(X.responseText)===f&&(U=!1,Q.setSurveyOptionValue(z,!0,"selected"))})}S=c.responseEndpoint;
var a;c.followUpCommand&&(a=_.Y(c.followUpCommand,sll));this.isSlimlineSurvey?(this.resetComponent(),_.XF(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.XF(this.hostElement,"ytd-inline-survey-rating-select-action",[S,a])};
_.J.showSelectedOption=function(){var S=this;_.Mq.addJob(function(){var c=S.getOptionRenderers()[S.slimlineSurveyRatingSelectedIndex];S.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),c)},8,100)};
_.J.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(S){var c;return(c=_.Y(S,ixd))!=null?c:{}}):[]};
_.J.onUndoClick=function(){this.resetComponent();_.XF(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.J.setSurveyOptionValue=function(S,c,Q){this.notifyPath("data.ratings."+S+".ratingSurveyOptionRenderer."+Q);this.set("data.ratings."+S+".ratingSurveyOptionRenderer."+Q,c)};
_.J.resetComponent=function(){var S=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var c=this.getOptionRenderers(),Q,f;this.firstResponseText=(f=(Q=c[0])==null?void 0:Q.responseText)!=null?f:null;var U,a;this.lastResponseText=(a=(U=c[c.length-1])==null?void 0:U.responseText)!=null?a:null;c.forEach(function(X,z){S.setSurveyOptionValue(z,!1,"checked");S.setSurveyOptionValue(z,!1,"selected")})};
_.Rh.Object.defineProperties(w$.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
w$.prototype.onOptionChange=w$.prototype.onOptionChange;w$.prototype.dataChanged=w$.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],w$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],w$.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],w$.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"firstResponseText",void 0);_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"lastResponseText",void 0);_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"selectedNonStarOption",void 0);_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"hideOptions",void 0);_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"hideUndoButton",void 0);_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"disableAnimation",void 0);
_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"showResponseRangeText",void 0);_.d([_.Z(),_.P("design:type",Object)],w$.prototype,"selectedRatingIndex",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],w$.prototype,"isSlimlineSurvey",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],w$.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],w$.prototype,"isShortsStyle",void 0);_.d([_.Z({selector:function(S){return S.ui.slimlineSurveyRatingSelectedIndex}}),
_.P("design:type",Object)],w$.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.d([_.M("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],w$.prototype,"isSingleSelect",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],w$.prototype,"dataChanged",null);
_.d([_.FV("ytd-rating-survey-option-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],w$.prototype,"onOptionChange",null);_.d([_.e({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],w$);
_.k(w$,"ytd-rating-survey-renderer",function(){if(RP$!==void 0)return RP$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return RP$=S},{mode:1});var yYT;var oBd;var mWd;var I9Y=(hW.FIRSTDAYOFWEEK+1)%7,SGT=function(S,c,Q,f){var U="";if(f.selection&&z3z(f.selection))HZ(S,f.selection)&&(U+=" selected");else if(f.selection&&x8Y(f.selection)){var a=f.selection.selectionState||"START_DATE";HZ(S,f.selection.start)&&(U+=" period-start ",a==="START_DATE"&&(U+="selected"));HZ(S,f.selection.end)&&(U+=" period-end ",a==="END_DATE"&&(U+="selected"));D6(S,f.selection.start)||D6(f.selection.end,S)||(U+=" highlighted")}if(D6(c,f.start)||D6(f.end,c))U+=" disabled";f.circleToday&&
HZ(c,Q)&&(U+=" today");return U};var s0=function(){return _.W.apply(this,arguments)||this};
_.C(s0,_.W);_.J=s0.prototype;_.J.attached=function(){var S=this;_.tO(this,function(){S.JSC$13865_calendarMain.scrollHeight>0&&(S.calendarConfig.selection?S.scrollToDate(FTz(S.calendarConfig.selection)):S.scrollToDate(S.calendarConfig.end))})};
_.J.updateSelection=function(S){S=nPx(Object.assign({},this.calendarConfig,{selection:S}),SGT);this.splice.apply(this,["renderData.months",0,S.length].concat(_.Hs(S)))};
_.J.scrollToDate=function(S){this.renderData&&(S=bYp(S,this.renderData),S!==void 0&&this.JSC$13865_calendarMain.scrollToIndex(S))};
_.J.scrollToNextMonth=function(){this.JSC$13865_calendarMain.scrollToIndex(this.JSC$13865_calendarMain.firstVisibleIndex+1)};
_.J.scrollToPrevMonth=function(){this.JSC$13865_calendarMain.firstVisibleIndex===0&&this.JSC$13865_calendarMain.scrollTo(0,0);this.JSC$13865_calendarMain.scrollToIndex(this.JSC$13865_calendarMain.firstVisibleIndex-1)};
_.J.handleDayClick=function(S){_.XF(this.hostElement,"ytd-calendar-date-clicked",[S.model.day.date])};
_.J.handleDayMouseDown=function(S){S.preventDefault();_.XF(this.hostElement,"ytd-calendar-date-mousedown",[S.model.day.date])};
_.J.handleDayMouseUp=function(S){_.XF(this.hostElement,"ytd-calendar-date-mouseup",[S.model.day.date])};
_.J.handleDayMouseEnter=function(S){S.preventDefault();_.XF(this.hostElement,"ytd-calendar-date-mouseenter",[S.model.day.date])};
_.J.handleDayMouseLeave=function(S){_.XF(this.hostElement,"ytd-calendar-date-mouseleave",[S.model.day.date])};
_.Rh.Object.defineProperties(s0.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var S=this.calendarConfig,c=SGT;c=c===void 0?SGT:c;for(var Q=[],f=0;f<7;f++)Q.push(hW.NARROWWEEKDAYS[(f+I9Y)%7]);return{months:nPx(S,c),daysOfWeekLabel:Q}}}});
_.d([_.Z(),_.P("design:type",Object)],s0.prototype,"calendarConfig",void 0);_.d([_.nU("#calendar-main"),_.P("design:type",Object)],s0.prototype,"JSC$13865_calendarMain",void 0);_.d([_.M("calendarConfig"),_.P("design:type",Object),_.P("design:paramtypes",[])],s0.prototype,"renderData",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],s0);
_.k(s0,"ytd-scrollable-calendar",function(){if(mWd!==void 0)return mWd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return mWd=S},{mode:2});var csd;var QcJ;var Md=function(){var S=_.W.apply(this,arguments)||this;S.hideCharCounter=!1;S.hideLabel=!1;S.noLabelFloat=!1;S.autoValidate=!0;S.invalid=!1;S.disabled=!1;S.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return S};
_.C(Md,_.W);_.J=Md.prototype;_.J.reset=function(S){this.value=S&&this.data?this.data.value=S:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.J.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.J.focusTextInput=function(){this.input.focus()};
_.J.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()};
_.J.valueChanged=function(){var S,c;if(((S=this.data)==null?0:S.value)||((c=this.data)==null?void 0:c.value)==="")this.value=this.data.value;else{var Q;((Q=this.data)==null?void 0:Q.value)!==void 0||this.value||(this.value="")}};
_.J.computeLabel=function(S,c){return c?"":_.Em(S)};
_.J.computeAriaLabel=function(S,c){return c?_.Em(S):""};
_.J.computeErrorMessage=function(S,c,Q,f){!S&&c?S=Q||this.strings.REQUIRED_LABEL:(S=_.Em(f),S=_.zz(S,"&")?"document"in _.QY?evz(S):kiT(S):S);return S};
_.J.computeType=function(S){return S==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.J.onTextValueChanged=function(S){this.value=S.detail.value;var c;(c=this.onValueChanged)==null||c.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.J.handleUpdateTextInputFormFieldRendererCommand=function(S){(S=_.Y(S,SRi))&&this.data&&this.data.id===S.id&&(S.invalid!==void 0&&(this.invalid=S.invalid),S.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",S.invalidValueErrorMessage))};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("value-changed",this.value))};
_.J.updateInvalidFromBinding=function(S){this.invalid=S.detail.value};
_.Rh.Object.defineProperties(Md.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var S;return!((S=this.data)==null||!S.isMultiline)}}});
Md.prototype.valueChangedForBinding=Md.prototype.valueChangedForBinding;Md.prototype.valueChanged=Md.prototype.valueChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Md.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Md.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Md.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Md.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],Md.prototype,"value",void 0);_.d([_.Z(),_.P("design:type",String)],Md.prototype,"pattern",void 0);_.d([_.Z(),_.P("design:type",String)],Md.prototype,"errorMessage",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Md.prototype,"componentStyle",void 0);_.d([_.Z(),_.P("design:type",Object)],Md.prototype,"hideCharCounter",void 0);
_.d([_.Z(),_.P("design:type",Object)],Md.prototype,"hideLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],Md.prototype,"noLabelFloat",void 0);_.d([_.Z(),_.P("design:type",Function)],Md.prototype,"onValueChanged",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Md.prototype,"isMultilineOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],Md.prototype,"autoValidate",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Md.prototype,"invalid",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Md.prototype,"disabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Md.prototype,"enableOverlayTheme",void 0);_.d([_.Z({value:{REQUIRED_LABEL:_.K8("REQUIRED_LABEL",void 0,"Required")}}),_.P("design:type",Object)],Md.prototype,"strings",void 0);_.d([_.nU("#input"),_.P("design:type",Object)],Md.prototype,"input",void 0);
_.d([_.M("data","isMultilineOverride"),_.P("design:type",Object),_.P("design:paramtypes",[])],Md.prototype,"isMultiline",null);_.d([_.$n("data.value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Md.prototype,"valueChanged",null);_.d([_.B0("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Md.prototype,"valueChangedForBinding",null);_.d([_.wM({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],Md);
_.k(Md,"yt-text-input-form-field-renderer",function(){if(QcJ===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;csd===void 0&&(csd=document.createElement("template"));var f=csd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);QcJ=S}S=QcJ;return S},{mode:2});var i1=function(){var S=_.W.apply(this,arguments)||this;S.data=void 0;S.selectionState="START_DATE";S.isStartDateInvalid=!1;S.isEndDateInvalid=!1;S.autoapply=!1;S.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 S};
_.C(i1,_.W);_.J=i1.prototype;_.J.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"}}}}};
_.J.focus=function(){this.startDateInput.focus()};
_.J.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:pD(this.data.selection.start),end:pD(this.data.selection.end)})};
_.J.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.OZ(this.selectionState)}};
_.J.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.J.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.J.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.J.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var S=this.calendar.calendarConfig,c=S.end;S=KTr({start:S.start,end:this.endDate||c},this.startDateInput.value||"");this.isStartDateInvalid=!S.isValid;S.isValid&&(S=S.value,this.selection=this.endDate?{start:S,end:this.endDate}:S,this.calendar.scrollToDate(S));this.updateInvalidState()}};
_.J.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var S=this.calendar.calendarConfig,c=S.start;S=KTr({start:this.startDate||c,end:S.end},this.endDateInput.value||"");this.isEndDateInvalid=!S.isValid;S.isValid&&(S=S.value,this.selection={start:this.startDate,end:S},this.calendar.scrollToDate(S));this.updateInvalidState()}};
_.J.handleCalendarDateClicked=function(S){var c=this.selection&&FTz(this.selection),Q=this.selection&&BIY(this.selection);c&&!D6(S,c)&&this.selectionState==="END_DATE"?(this.selection={start:c,end:S},this.selectionState="START_DATE"):(Q&&!D6(Q,S)?this.selection={start:S,end:Q}:this.selection=S,this.selectionState="END_DATE")};
_.J.handleCalendarDateMouseDown=function(S){this.selection&&!z3z(this.selection)&&(this.dragPivot=HZ(S,this.selection.start)?this.selection.end:HZ(S,this.selection.end)?this.selection.start:S)};
_.J.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.J.handleCalendarDateMouseEnter=function(S){this.dragPivot&&(this.selection={start:function(c,Q){return D6(c,Q)?c:Q}(this.dragPivot,S),
end:function(c,Q){return D6(c,Q)?Q:c}(this.dragPivot,S)},this.dragPivot||(this.selectionState="START_DATE"))};
_.J.handleCalendarDateMouseLeave=function(){};
_.J.handleCalendarSubmitDateRange=function(){this.selection&&!z3z(this.selection)&&_.XF(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.J.updateInvalidState=function(){var S=function(c,Q){Q?c.setAttribute("invalid",""):c.removeAttribute("invalid")};
S(this.startDateInput,this.isStartDateInvalid);S(this.endDateInput,this.isEndDateInvalid)};
_.J.updateDateStrings=function(){this.selection&&(z3z(this.selection)?OYY(this.selection):(OYY(this.selection.start),OYY(this.selection.end)))};
_.J.updateCalendarSelection=function(S){this.calendar.updateSelection(Object.assign({},S,{selectionState:this.selectionState}))};
_.J.updateIsStartDateInvalidFromBinding=function(S){this.isStartDateInvalid=S.detail.value};
_.J.updateIsEndDateInvalidFromBinding=function(S){this.isEndDateInvalid=S.detail.value};
_.J.updateStartDateStringFromBinding=function(){};
_.J.updateEndDateStringFromBinding=function(){};
_.Rh.Object.defineProperties(i1.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:pD(this.data.dateRangeStart),end:pD(this.data.dateRangeEnd),selection:{start:pD(this.data.selection.start),end:pD(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&FTz(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&BIY(this.selection)}}});
i1.prototype.resetTextboxes=i1.prototype.resetTextboxes;i1.prototype.observeSelection=i1.prototype.observeSelection;i1.prototype.dataChanged=i1.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],i1.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],i1.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("#calendar"),_.P("design:type",Object)],i1.prototype,"calendar",void 0);
_.d([_.nU("#start-date"),_.P("design:type",Object)],i1.prototype,"startDateInput",void 0);_.d([_.nU("#end-date"),_.P("design:type",Object)],i1.prototype,"endDateInput",void 0);_.d([_.Z(),_.P("design:type",Object)],i1.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],i1.prototype,"selection",void 0);_.d([_.Z(),_.P("design:type",String)],i1.prototype,"selectionState",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],i1.prototype,"calendarConfig",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],i1.prototype,"errorMessage",null);_.d([_.M("selection"),_.P("design:type",Object),_.P("design:paramtypes",[])],i1.prototype,"startDate",null);_.d([_.M("selection"),_.P("design:type",Object),_.P("design:paramtypes",[])],i1.prototype,"endDate",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i1.prototype,"dataChanged",null);
_.d([_.B0("selection","selectionState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i1.prototype,"observeSelection",null);_.d([_.B0("selectionState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],i1.prototype,"resetTextboxes",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],i1);
_.k(i1,"ytd-date-period-picker-renderer",function(){if(oBd!==void 0)return oBd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return oBd=S},{mode:1});var Zn=function(){var S=_.W.apply(this,arguments)||this;var c={};S.actionMap=(c["ytd-date-period-picker-apply"]="handleDateRangeUpdated",c);return S};
_.C(Zn,_.W);Zn.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
Zn.prototype.handleDateRangeUpdated=function(){};
_.d([_.Z(),_.P("design:type",Object)],Zn.prototype,"data",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Zn.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Zn.prototype,"rendererstamperBehavior",void 0);_.d([_.e({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],Zn);
_.k(Zn,"ytd-report-history-section-header-renderer",function(){if(yYT!==void 0)return yYT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return yYT=S},{mode:1});var fa$;var U2H;var Jsd;var GX=function(){return _.W.apply(this,arguments)||this};
_.C(GX,_.W);_.Rh.Object.defineProperties(GX.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?0:(c=S.icon)==null?0:c.iconType)?_.xz(this.data.icon.iconType):""}}});
_.d([_.Z(),_.P("design:type",Object)],GX.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],GX.prototype,"icon",null);_.d([_.e({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],GX);
_.k(GX,"ytd-report-history-table-text-cell-renderer",function(){if(Jsd!==void 0)return Jsd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Jsd=S},{mode:1});var Wy=function(){return _.W.apply(this,arguments)||this};
_.C(Wy,_.W);Wy.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Wy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Wy.prototype,"data",void 0);_.d([_.e({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],Wy);
_.k(Wy,"ytd-report-history-table-reason-cell-renderer",function(){if(U2H!==void 0)return U2H;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return U2H=S},{mode:1});var g$=function(){return _.W.apply(this,arguments)||this};
_.C(g$,_.W);g$.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"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],g$.prototype,"rendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],g$.prototype,"data",void 0);_.d([_.e({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],g$);
_.k(g$,"ytd-report-history-table-cell-renderer",function(){if(fa$!==void 0)return fa$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return fa$=S},{mode:1});var aau;var eu=function(){var S=_.W.apply(this,arguments)||this;S.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 S};
_.C(eu,_.W);eu.prototype.onDataChanged=function(){var S;if((S=this.data)==null?0:S.style)this.componentStyle=this.getStyleName(this.data.style)};
eu.prototype.getCellForColumn=function(S){return this.cells.find(function(c){var Q;return((Q=_.Y(c==null?void 0:c.cell,WCT)||_.Y(c==null?void 0:c.cell,GEl))==null?void 0:Q.columnId)===S.type})};
eu.prototype.getClassForColumn=function(S){switch(S){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
eu.prototype.getStyleName=function(S){switch(S){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.Rh.Object.defineProperties(eu.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.cells)||[]).map(function(c){return _.Y(c,Zxd)})}}});
eu.prototype.onDataChanged=eu.prototype.onDataChanged;_.d([_.Z(),_.P("design:type",Object)],eu.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Array)],eu.prototype,"columnRenderData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],eu.prototype,"componentStyle",void 0);_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],eu.prototype,"cells",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],eu.prototype,"onDataChanged",null);_.d([_.e({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],eu);
_.k(eu,"ytd-report-history-table-row-renderer",function(){if(aau!==void 0)return aau;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return aau=S},{mode:1});var Asz;var Xvs;var $8M={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},usp={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var kb=function(){return _.W.apply(this,arguments)||this};
_.C(kb,_.W);kb.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"}}}}}};
kb.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.Rh.Object.defineProperties(kb.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.columns)?HYM(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return Ykp(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var S=this.tableSpec,c=$8M;c=c===void 0?usp:c;c=C0M(S.columnDimensions,S.columnsToShow||[],c);S=0;c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,S+=Q.minWidth+Q.paddingLeft+Q.paddingRight;return S}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.d([_.p(_.di),_.P("design:type",Object)],kb.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],kb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],kb.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],kb.prototype,"tableSpec",null);_.d([_.M("tableSpec"),_.P("design:type",Array),_.P("design:paramtypes",[])],kb.prototype,"columnRenderData",null);
_.d([_.M("tableSpec"),_.P("design:type",Number),_.P("design:paramtypes",[])],kb.prototype,"totalMinWidth",null);_.d([_.M("totalMinWidth"),_.P("design:type",String),_.P("design:paramtypes",[])],kb.prototype,"tableWidthStyle",null);_.d([_.e({is:"ytd-table-renderer",disableElementRegistration:!0})],kb);
_.k(kb,"ytd-table-renderer",function(){if(Xvs!==void 0)return Xvs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Xvs=S},{mode:1});var r$=function(){return _.W.apply(this,arguments)||this};
_.C(r$,_.W);r$.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}}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],r$.prototype,"data",void 0);_.d([_.e({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],r$);
_.k(r$,"ytd-report-reason-history-modal-renderer",function(){if(Asz!==void 0)return Asz;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Asz=S},{mode:1});var Oud;var zgl;var x2d;var d$=function(){return _.W.apply(this,arguments)||this};
_.C(d$,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],d$.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],d$.prototype,"data",void 0);_.d([_.e({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],d$);
_.k(d$,"ytd-profile-column-stats-entry-renderer",function(){if(x2d!==void 0)return x2d;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return x2d=S},{mode:1});var FBz;var vy=function(){return _.W.apply(this,arguments)||this};
_.C(vy,_.W);vy.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vy.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vy.prototype,"data",void 0);_.d([_.e({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],vy);
_.k(vy,"ytd-profile-column-stats-renderer",function(){if(FBz!==void 0)return FBz;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return FBz=S},{mode:1});var BGs;var Py=function(){return _.W.apply(this,arguments)||this};
_.C(Py,_.W);_.Rh.Object.defineProperties(Py.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.useThumbnailSize)return 80;var c,Q;S=(c=this.data)==null?void 0:(Q=c.thumbnail)==null?void 0:Q.thumbnails;var f;return S&&((f=S[0])==null?void 0:f.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.useThumbnailSize)return 80;var c,Q;S=(c=this.data)==null?void 0:(Q=c.thumbnail)==null?void 0:Q.thumbnails;var f;return S&&((f=S[0])==null?void 0:f.height)||80}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Py.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Py.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Py.prototype,"componentStyle",void 0);_.d([_.M("data.useThumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],Py.prototype,"thumbnailWidth",null);
_.d([_.M("data.useThumbnailSize"),_.P("design:type",Object),_.P("design:paramtypes",[])],Py.prototype,"thumbnailHeight",null);_.d([_.e({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],Py);
_.k(Py,"ytd-profile-column-user-info-renderer",function(){if(BGs!==void 0)return BGs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return BGs=S},{mode:1});var La=function(){return _.W.apply(this,arguments)||this};
_.C(La,_.W);La.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]]"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],La.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],La.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],La.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],La.prototype,"componentStyle",void 0);_.d([_.e({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],La);
_.k(La,"ytd-profile-column-renderer",function(){if(zgl!==void 0)return zgl;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return zgl=S},{mode:1});var E0=function(){var S=_.W.apply(this,arguments)||this;S.componentStyle="NON_CENTERED_PROFILE";return S};
_.C(E0,_.W);E0.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
E0.prototype.getIcon=function(S){return S?"settings:"+S.toLowerCase():null};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],E0.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],E0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],E0.prototype,"data",void 0);_.d([_.e({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],E0);
_.k(E0,"ytd-page-introduction-renderer",function(){if(Oud!==void 0)return Oud;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Oud=S},{mode:1});var Ial;var t6=function(){return _.W.apply(this,arguments)||this};
_.C(t6,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],t6.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],t6.prototype,"data",void 0);_.d([_.e({is:"ytd-report-description-renderer",disableElementRegistration:!0})],t6);
_.k(t6,"ytd-report-description-renderer",function(){if(Ial!==void 0)return Ial;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Ial=S},{mode:1});var nfu;var bud;var VH=function(){return _.W.apply(this,arguments)||this};
_.C(VH,_.W);VH.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VH.prototype,"data",void 0);_.d([_.e({is:"ytd-video-report-renderer",disableElementRegistration:!0})],VH);
_.k(VH,"ytd-video-report-renderer",function(){if(bud!==void 0)return bud;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return bud=S},{mode:1});var NGd;_.i8("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.i8("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var Rm=function(){return _.W.apply(this,arguments)||this};
_.C(Rm,_.W);Rm.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]]"}}}}}};
Rm.prototype.computeMessageStyle=function(S){return S};
Rm.prototype.computeButtonOverride=function(S){var c;if((S==null?0:(c=S.style)==null?0:c.value)&&S.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Rm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Rm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Rm.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Rm.prototype,"shelf",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Rm.prototype,"panel",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.P("design:type",Boolean)],Rm.prototype,"componentStyle",void 0);_.d([_.Z({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],Rm.prototype,"buttonOverride",void 0);_.d([_.e({is:"ytd-message-renderer",disableElementRegistration:!0})],Rm);
_.k(Rm,"ytd-message-renderer",function(){if(NGd!==void 0)return NGd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return NGd=S},{mode:1});var yH=function(){return _.W.apply(this,arguments)||this};
_.C(yH,_.W);yH.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"}}}};
yH.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
yH.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.Rh.Object.defineProperties(yH.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var S,c;return!!(((S=this.data)==null?0:S.header)&&((c=this.data)==null?0:c.table))}}});
yH.prototype.onRequestError=yH.prototype.onRequestError;_.d([_.p(_.di),_.P("design:type",Object)],yH.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yH.prototype,"data",void 0);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],yH.prototype,"isUnifiedReportHistory",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yH.prototype,"onRequestError",null);_.d([_.e({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],yH);
_.k(yH,"ytd-report-history-section-renderer",function(){if(nfu!==void 0)return nfu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return nfu=S},{mode:1});var KBs;var om=function(){var S=_.W.apply(this,arguments)||this;S.answerExpanded=!1;return S};
_.C(om,_.W);om.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],om.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],om.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],om.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],om.prototype,"answerExpanded",void 0);_.d([_.e({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],om);
_.k(om,"ytd-handles-claiming-faq-renderer",function(){if(KBs!==void 0)return KBs;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return KBs=S},{mode:1});var $2$;var unz=function(){return _.W.apply(this,arguments)||this};
_.C(unz,_.W);_.d([_.Z(),_.P("design:type",Object)],unz.prototype,"data",void 0);_.d([_.e({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],unz);
_.k(unz,"ytd-handles-claiming-faq-section-renderer",function(){if($2$!==void 0)return $2$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return $2$=S},{mode:1});var jc$;var mF=function(){var S=_.W.apply(this,arguments)||this;S.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";S.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";S.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";S.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";S.leftSquiggly=S.leftSquigglyLight;S.rightSquiggly=S.rightSquigglyLight;
S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};S.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return S};
_.C(mF,_.W);_.J=mF.prototype;_.J.updateLeftSquigglyStyle=function(){_.Or(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.J.updateRightSquigglyStyle=function(){_.Or(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.J.ready=function(){var S=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(S)};
_.J.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.set("isDarkTheme",S),S?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
mF.prototype.updateRightSquigglyStyle=mF.prototype.updateRightSquigglyStyle;mF.prototype.updateLeftSquigglyStyle=mF.prototype.updateLeftSquigglyStyle;_.d([_.Z(),_.P("design:type",Object)],mF.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],mF.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",String)],mF.prototype,"leftSquiggly",void 0);_.d([_.Z(),_.P("design:type",String)],mF.prototype,"rightSquiggly",void 0);
_.d([_.B0("leftSquiggly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mF.prototype,"updateLeftSquigglyStyle",null);_.d([_.B0("rightSquiggly"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mF.prototype,"updateRightSquigglyStyle",null);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],mF.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mF.prototype,"actionButtonOverride",void 0);_.d([_.e({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],mF);
_.k(mF,"ytd-handles-claiming-header-renderer",function(){if(jc$!==void 0)return jc$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return jc$=S},{mode:1});var lae;var So=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};S.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";S.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";S.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";S.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
S.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";S.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";S.image0SquigglyBackground=S.image0LightSquigglyBackground;S.image1SquigglyBackground=S.image1LightSquigglyBackground;S.image3SquigglyBackground=S.image3LightSquigglyBackground;return S};
_.C(So,_.W);_.J=So.prototype;_.J.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.J.onDataChanged=function(){this.updateTitleAndImages()};
_.J.onThemeChanged=function(){this.updateTitleAndImages()};
_.J.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S)};
_.J.updateImage0SquigglyBackground=function(){_.Or(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.J.updateImage1SquigglyBackground=function(){_.Or(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.J.updateImage3SquigglyBackground=function(){_.Or(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.J.updateTitleAndImages=function(){var S,c;((S=this.data)==null?void 0:(c=S.titleImages)==null?void 0:c.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))};
So.prototype.updateImage3SquigglyBackground=So.prototype.updateImage3SquigglyBackground;So.prototype.updateImage1SquigglyBackground=So.prototype.updateImage1SquigglyBackground;So.prototype.updateImage0SquigglyBackground=So.prototype.updateImage0SquigglyBackground;So.prototype.onThemeChanged=So.prototype.onThemeChanged;So.prototype.onDataChanged=So.prototype.onDataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],So.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],So.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"title0",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"title1",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"title2",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"title3",void 0);
_.d([_.Z(),_.P("design:type",Object)],So.prototype,"title4",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"image0",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"image1",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"image2",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"image3",void 0);_.d([_.Z(),_.P("design:type",Object)],So.prototype,"image4",void 0);_.d([_.Z(),_.P("design:type",String)],So.prototype,"image0SquigglyBackground",void 0);
_.d([_.Z(),_.P("design:type",String)],So.prototype,"image1SquigglyBackground",void 0);_.d([_.Z(),_.P("design:type",String)],So.prototype,"image3SquigglyBackground",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"onDataChanged",null);_.d([_.B0("isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"onThemeChanged",null);
_.d([_.B0("image0SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"updateImage0SquigglyBackground",null);_.d([_.B0("image1SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"updateImage1SquigglyBackground",null);
_.d([_.B0("image3SquigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],So.prototype,"updateImage3SquigglyBackground",null);_.d([_.e({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],So);
_.k(So,"ytd-handles-claiming-title-images-section-renderer",function(){if(lae!==void 0)return lae;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return lae=S},{mode:1});var YGl;var cw=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(cw,_.W);cw.prototype.ready=function(){var S=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(S)};
cw.prototype.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S)};
cw.prototype.onCopyButtonClick=function(){var S=this,c,Q,f;return _.O(function(U){return(c=S.data)!=null&&c.primaryChannelUrl?_.F(U,navigator.clipboard.writeText(((Q=S.data)==null?0:Q.encodedChannelUrl)?S.data.encodedChannelUrl:"https://"+_.Em((f=S.data)==null?void 0:f.primaryChannelUrl)),0):U.jumpTo(0)})};
_.d([_.Z(),_.P("design:type",Object)],cw.prototype,"data",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],cw.prototype,"ytComponentBehavior",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],cw.prototype,"isDarkTheme",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],cw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.e({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],cw);
_.k(cw,"ytd-handles-claiming-update-social-renderer",function(){if(YGl!==void 0)return YGl;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return YGl=S},{mode:1});var CfT;var QL=function(){var S=_.W.apply(this,arguments)||this;S.JSC$13960_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";S.JSC$13960_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};S.squigglyBackground=S.JSC$13960_squigglyBackgroundLight;return S};
_.C(QL,_.W);QL.prototype.updateSquigglyBackgroundStyle=function(){_.Or(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
QL.prototype.ready=function(){var S=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",S);this.squigglyBackground=S?this.JSC$13960_squigglyBackgroundDark:this.JSC$13960_squigglyBackgroundLight};
QL.prototype.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.set("isDarkTheme",S),this.squigglyBackground=S?this.JSC$13960_squigglyBackgroundDark:this.JSC$13960_squigglyBackgroundLight)};
QL.prototype.updateSquigglyBackgroundStyle=QL.prototype.updateSquigglyBackgroundStyle;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],QL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],QL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],QL.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],QL.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],QL.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",String)],QL.prototype,"squigglyBackground",void 0);_.d([_.B0("squigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],QL.prototype,"updateSquigglyBackgroundStyle",null);_.d([_.e({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],QL);
_.k(QL,"ytd-handles-claiming-vanity-info-renderer",function(){if(CfT!==void 0)return CfT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return CfT=S},{mode:1});var HuJ;var fg=function(){var S=_.W.apply(this,arguments)||this;S.JSC$13963_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";S.JSC$13963_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";S.squigglyBackground=S.JSC$13963_squigglyBackgroundLight;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(fg,_.W);_.J=fg.prototype;_.J.ready=function(){var S=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(S)};
_.J.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.set("isDarkTheme",S),this.squigglyBackground=S?this.JSC$13963_squigglyBackgroundDark:this.JSC$13963_squigglyBackgroundLight)};
_.J.updateSquigglyBackgroundStyle=function(){_.Or(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.J.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.J.detached=function(){this.stop()};
_.J.stop=function(){this.playerElement.stop()};
_.J.setupVideoPlayer=function(){var S=this,c,Q;return _.O(function(f){c=S.data.videoId;Q="http://i1.ytimg.com/vi/"+c+"/maxresdefault.jpg";S.playerElement.loadVideoWithPlayerVars({video_id:c,iurlhq:Q});_.IN(f)})};
fg.prototype.onDataChanged=fg.prototype.onDataChanged;fg.prototype.updateSquigglyBackgroundStyle=fg.prototype.updateSquigglyBackgroundStyle;_.d([_.Z({value:!1}),_.P("design:type",Boolean)],fg.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",String)],fg.prototype,"squigglyBackground",void 0);_.d([_.nU("#player"),_.P("design:type",Object)],fg.prototype,"playerElement",void 0);_.d([_.Z(),_.P("design:type",Object)],fg.prototype,"data",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],fg.prototype,"ytActionHandlerBehavior",void 0);_.d([_.B0("squigglyBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fg.prototype,"updateSquigglyBackgroundStyle",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fg.prototype,"onDataChanged",null);
_.d([_.e({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],fg);
_.k(fg,"ytd-handles-claiming-video-item-renderer",function(){if(HuJ!==void 0)return HuJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return HuJ=S},{mode:1});var D2_;var J_=function(){var S=_.N_.apply(this,arguments)||this;S.dragging=!1;S.dragMouseStart=0;S.dragOffsetStart=0;S.containerWidthDiff=0;S.boundPrevClick=function(){S.set("offset",Uq(S,S.offset-(S.scrollDistance||320)))};
S.boundNextClick=function(){S.set("offset",Uq(S,S.offset+(S.scrollDistance||320)))};
S.boundScrollContainerMouseDown=function(c){S.dragMouseStart=c.clientX;S.dragOffsetStart=S.offset;S.dragging=!0};
S.boundScrollContainerDrag=function(c){S.dragging&&S.set("offset",Uq(S,S.dragOffsetStart-(c.clientX-S.dragMouseStart)))};
S.boundMouseUp=function(){S.onMouseUp()};
S.boundWheelScroll=function(c){var Q=0;Math.abs(c.deltaX)>=Math.abs(c.deltaY)?Q=c.deltaX:c.shiftKey&&(Q=c.deltaY);Q!==0&&(S.offset+=Q,c.stopPropagation(),c.preventDefault())};
S.boundChipCloudChipScrollIntoView=function(c){(c=c.detail)&&S.scrollChipIntoView(c)};
return S};
_.C(J_,_.N_);J_.prototype.attached=function(){var S=_.Ur(this.hostElement).querySelector("#scroll-container");S.addEventListener("wheel",this.boundWheelScroll);S.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);S.style.touchAction="pan-y";S.addEventListener("pointerdown",this.boundScrollContainerMouseDown);S.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
J_.prototype.detached=function(){var S=_.Ur(this.hostElement).querySelector("#scroll-container");S.removeEventListener("wheel",this.boundWheelScroll);S.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);S.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);S.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
J_.prototype.reset=function(){this.set("offset",0);_.tO(this,this.setContainerWidthDiff);a3(this)};
var Uq=function(S,c){return Math.min(Math.max(c,0),S.containerWidthDiff)};
J_.prototype.onMouseUp=function(){this.dragging=!1};
J_.prototype.transformContainer=function(){this.offset=Uq(this,this.offset);var S=_.WY("HTML_DIR")==="rtl"?"":"-";_.Ur(this.hostElement).querySelector("#chips").style.transform="translateX("+S+this.offset+"px)";a3(this)};
var a3=function(S){_.tO(S,S.setButtonsState)};
J_.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=Uq(this,this.offset));this.atStart=this.offset<=0};
J_.prototype.setContainerWidthDiff=function(){var S=_.Ur(this.hostElement).querySelector("#scroll-container"),c=_.Ur(this.hostElement).querySelector("#chips");S&&c&&(this.containerWidthDiff=c.clientWidth-S.clientWidth)};
J_.prototype.scrollChipIntoView=function(S){var c=_.Ur(this.hostElement).querySelector("#scroll-container");if(c){var Q=this.atStart?0:106,f=this.atEnd?0:106;S.offsetLeft<this.offset+Q?this.offset=Uq(this,S.offsetLeft-Q):S.offsetLeft+S.clientWidth>this.offset+c.clientWidth-f&&(this.offset=Uq(this,S.offsetLeft+S.clientWidth+f-c.clientWidth))}};
J_.prototype.transformContainer=J_.prototype.transformContainer;_.d([_.Z({value:0}),_.P("design:type",Number)],J_.prototype,"offset",void 0);_.d([_.Z({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],J_.prototype,"atStart",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],J_.prototype,"atEnd",void 0);_.d([_.Z(),_.P("design:type",Number)],J_.prototype,"scrollDistance",void 0);
_.d([_.B0("offset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],J_.prototype,"transformContainer",null);_.d([_.KU()],J_);var pvH;var hge;var wvh=_.y_(function(S){var c=S.data;S=_.A(_.ny(!1,void 0,"icHmSe"));var Q=S.next().value,f=S.next().value;S={};S=_.n4("ytChipShapeChip",function(){a:switch(c==null?void 0:c().state){case 0:var a="ytChipShapeActive";break a;case 1:a="ytChipShapeDisabled";break a;default:a="ytChipShapeInactive"}return a},function(){var a=c().type===1||c().type===2,X=c();
return a||X!=null&&X.startIcon?X==null||!X.startIcon||X!=null&&X.text?a?"ytChipShapeEndIconPadding":(X==null?0:X.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(S.ytChipShapeFocused=function(){var a;
return Q()&&((a=c())==null?void 0:a.state)!==1},S));
var U=function(a){if((c==null?void 0:c().state)!==1){var X,z;(z=(X=c()).onTap)==null||z.call(X,a)}};
return _.B("chip-shape",{class:"ytChipShapeHost","on:focusin":_.$d(function(){var a=_.fl().resolve(_.QS(_.zy));if(a){f(a.isKeyBoardInUse());var X,z;(z=(X=c()).onFocusIn)==null||z.call(X)}return!1}),
"on:focusout":_.$d(function(){f(!1);return!1})},_.B(qGz,{shouldWrapInButton:function(){return c().type!==2},
selected:function(){return c().state===0},
onClick:U,isDropdown:function(){return c().type===1},
accessibilityLabel:function(){return c().accessibilityLabel}},_.B("div",{class:S},_.B(_.K,{cond:function(){return c().startIcon},
then:function(){return _.B(_.C4,{icon:function(){var a;return(a=c())==null?void 0:a.startIcon},
className:function(){return c().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return c().text},_.B(TGh,{shape:c,
onClick:U}))))},"zb");
wvh.idomCompat=!0;var qGz=_.y_(function(S){var c=_.$d(function(Q){S.onClick(Q);return!1});
return _.B(_.K,{cond:S.shouldWrapInButton,then:function(){return _.B("button",{class:"ytChipShapeButtonReset","on:click":c,role:function(){return S.isDropdown()?"combobox":"tab"},
"aria-label":S.accessibilityLabel,"aria-selected":S.selected},S.children)},
else:function(){return S.children}})},"Ab"),TGh=_.y_(function(S){var c=S.shape;
var Q=S.onClick;var f=_.$d(function(U){Q(U);return!1});
return _.B(_.DJ,null,_.B(_.YC,{when:function(){return c().type===1}},function(){return _.B(_.C4,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.B(_.YC,{when:function(){return c().type===2}},function(){return _.B("button",{class:"ytChipShapeButtonReset",
"on:click":f},_.B(_.C4,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.B(_.YC,{when:function(){return c().type===0}},function(){return _.B(_.ak,null)}))},"Bb");_.f4(wvh,"chip-shape",{props:{data:_.y$}});var A_=function(){var S=_.W.apply(this,arguments)||this;S.disableDeselectEvent=!1;S.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return S};
_.C(A_,_.W);_.J=A_.prototype;_.J.onSelectChipCommand=function(S){if(!this.selected&&this.data&&(S=_.Y(S,PRJ),S.targetId&&S.targetId===this.data.targetId))this.onTap()};
_.J.onFilterChipTransformCommand=function(S){if(!this.selected&&this.data){var c;(S=(c=_.Y(S,tPz))==null?void 0:c.chipUniqueId)&&S===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.J.dataChanged=function(){var S=this;_.tO(this,function(){S.data&&S.data.isSelected&&!S.selected&&(S.scrollChipIntoView(),S.onTap())})};
_.J.computeChipStyle=function(S){return S!=null?S:"STYLE_DEFAULT"};
_.J.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.XF(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.XF(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.J.onFocus=function(){var S=_.fl().resolve(_.QS(_.zy));S&&S.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.J.scrollChipIntoView=function(){_.Az(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.Rh.Object.defineProperties(A_.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return wRR({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
A_.prototype.onFocus=A_.prototype.onFocus;A_.prototype.onTap=A_.prototype.onTap;A_.prototype.dataChanged=A_.prototype.dataChanged;_.d([_.p(_.Hx),_.P("design:type",Object)],A_.prototype,"ironButtonState",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],A_.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],A_.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],A_.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.lc),_.P("design:type",Object)],A_.prototype,"ironA11yKeysBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],A_.prototype,"disableDeselectEvent",void 0);_.d([_.Z(),_.P("design:type",Object)],A_.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.icon"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A_.prototype,"hasIcon",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.uniqueId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],A_.prototype,"isGnomeChip",null);_.d([_.Z({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.P("design:type",String)],A_.prototype,"chipStyle",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],A_.prototype,"selected",void 0);
_.d([_.M("data","selected"),_.P("design:type",Object),_.P("design:paramtypes",[])],A_.prototype,"chipShapeData",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"dataChanged",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"onTap",null);
_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],A_.prototype,"onFocus",null);_.d([_.wM({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],A_);
_.k(A_,"yt-chip-cloud-chip-renderer",function(){if(hge===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;pvH===void 0&&(pvH=document.createElement("template"));var f=pvH;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);hge=S}S=hge;return S},{mode:2});var Oq=function(){var S=_.W.apply(this,arguments)||this;S.isDarkTheme=!1;S.notSticky=!1;S.transparentBackground=!1;S.shouldHide=!1;S.disableSticky=!1;S.fluidWidth=!1;S.isClipList=!1;S.defaultChipIndex=0;S.isPlaylist=!1;S.playlistVotingAnimationEnabled=_.u("web_enable_voting_animation");S.toolbarHeight=0;S.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return S};
_.C(Oq,_.W);_.J=Oq.prototype;
_.J.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}}}}}};
_.J.attached=function(){var S=this;document.addEventListener("scroll",_.xn(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var c;this.toolbarHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(Q){S.handleIntersect(Q)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){S.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.J.detached=function(){var S;(S=this.intersectionObserver)==null||S.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect();document.removeEventListener("scroll",_.xn(this,this.updateChipBarWidthAndTop))};
_.J.dataChanged=function(){var S=this,c,Q,f;((f=_.Y((c=this.data)==null?void 0:(Q=c.contents)==null?void 0:Q[0],FUd))==null?void 0:f.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var U=this.findSelectedChipIndex();this.selectedIndex!==U&&(this.selectedIndex=-1);_.tO(this,function(){S.selectedIndex=U;S.updating=!1;S.ytScrollableChipCloudBehavior.reset()})};
_.J.findSelectedChipIndex=function(){var S;if((S=this.data)==null||!S.contents)return 0;S=this.data.contents;for(var c=0;c<S.length;c++){var Q=void 0;if((Q=_.Y(S[c],FUd))==null?0:Q.isSelected)return c}return 0};
_.J.computeStyle=function(S){return S};
_.J.handleChipCloudChipSelectAction=function(S){S=this.JSC$13982_chipsSelector.indexOf(S);S>-1&&this.JSC$13982_chipsSelector.selectIndex(S)};
_.J.handleChipCloudChipDeselectAction=function(){if(_.u("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],FUd))==null?void 0:Q.navigationEndpoint;f&&_.XF(this.hostElement,"yt-browse-section-list-reload-endpoint",[f]);this.JSC$13982_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.J.onGuideIsExpandedChanged=function(){var S=this.ytScrollableChipCloudBehavior;_.tO(S,S.setContainerWidthDiff);a3(this.ytScrollableChipCloudBehavior)};
_.J.onResize=function(){var S=this.ytScrollableChipCloudBehavior;_.tO(S,S.setContainerWidthDiff);a3(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.J.handleIntersect=function(S){this.notSticky=this.isChannelPageGrid||this.disableSticky||S[0].intersectionRatio===1};
_.J.updateDimensions=function(){var S=this.ytRendererBehavior.parentComponent;if(S){var c,Q=(c=S.headerElement)!=null?c:S;_.Or(this.hostElement,{"--ytd-rich-grid-chips-bar-width":Q.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.J.updateSelectedIndexFromBinding=function(S){this.selectedIndex=S.detail.value};
_.J.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var S;(S=this.sortFilterHeaderRendererElement)==null||S.setAttribute("is-playlist-page-with-filters","")}};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(trp(!this.notSticky))};
_.Rh.Object.defineProperties(Oq.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 S,c,Q=(S=this.data)==null?void 0:(c=S.contents)==null?void 0:c.find(function(f){return _.Y(f,N6d)});
return{sortFilterHeaderRenderer:_.Y(Q,N6d)}}}});
Oq.prototype.dispatchChipBarIsSticky=Oq.prototype.dispatchChipBarIsSticky;Oq.prototype.isPlaylistPageChanged=Oq.prototype.isPlaylistPageChanged;Oq.prototype.updateChipBarWidthAndTop=Oq.prototype.updateChipBarWidthAndTop;Oq.prototype.onResize=Oq.prototype.onResize;Oq.prototype.onGuideIsExpandedChanged=Oq.prototype.onGuideIsExpandedChanged;Oq.prototype.dataChanged=Oq.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Oq.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Oq.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Oq.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.w9),_.P("design:type",Object)],Oq.prototype,"ironResizableBehavior",void 0);_.d([_.p(),_.P("design:type",J_)],Oq.prototype,"ytScrollableChipCloudBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Oq.prototype,"ytdReduxBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Oq.prototype,"data",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Oq.prototype,"selectedIndex",void 0);_.d([_.Z({value:320}),_.P("design:type",Number)],Oq.prototype,"scrollDistance",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"notSticky",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"transparentBackground",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.P("design:type",String)],Oq.prototype,"componentStyle",void 0);_.d([_.Z({selector:_.FxZ}),_.P("design:type",Boolean)],Oq.prototype,"guideIsExpanded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"shouldHide",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"disableSticky",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"fluidWidth",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"isClipList",void 0);_.d([_.Z(),_.P("design:type",Object)],Oq.prototype,"defaultChipIndex",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oq.prototype,"isPlaylist",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oq.prototype,"playlistVotingAnimationEnabled",void 0);_.d([_.nU("#chips"),_.P("design:type",Object)],Oq.prototype,"JSC$13982_chipsSelector",void 0);_.d([_.nU("ytd-sort-filter-header-renderer"),_.P("design:type",HTMLElement)],Oq.prototype,"sortFilterHeaderRendererElement",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Oq.prototype,"updating",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oq.prototype,"dataChanged",null);_.d([_.B0("guideIsExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oq.prototype,"onGuideIsExpandedChanged",null);_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oq.prototype,"onResize",null);
_.d([_.$n("isChannelPageGrid","disableSticky","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oq.prototype,"updateChipBarWidthAndTop",null);_.d([_.M("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Oq.prototype,"isChannelPageGrid",null);_.d([_.M("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Oq.prototype,"isHashtagLandingPage",null);
_.d([_.B0("isPlaylistPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oq.prototype,"isPlaylistPageChanged",null);_.d([_.M("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Oq.prototype,"isPlaylistPage",null);_.d([_.M("componentStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Oq.prototype,"isDisableDeselectEvent",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Oq.prototype,"sortFilterHeaderRendererData",null);_.d([_.Z({reflectToAttribute:!0,selector:_.$BZ}),_.P("design:type",String)],Oq.prototype,"frostedGlassMode",void 0);_.d([_.B0("notSticky"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oq.prototype,"dispatchChipBarIsSticky",null);_.d([_.e({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],Oq);
_.k(Oq,"ytd-feed-filter-chip-bar-renderer",function(){if(D2_!==void 0)return D2_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return D2_=S},{mode:1});var scd;var Mcp=_.y_(function(S){var c=S.data;var Q=S.buttonIndex;var f=S.selectedIndex;var U=S.onSelect;var a=function(){return Q()===f()},X=function(){var z,x;
return(x=(z=c().text)==null?void 0:z.content)!=null?x:""};
S=_.JEz();return _.B("yt-toggleable-image-button-view-model",{class:function(){var z={};z=(z["toggleable-image-button-view-model-wiz"]=!0,z[""]=!0,z["toggleable-image-button-view-model-wiz__semi-transparent"]=f()!==-1&&!a(),z);return _.No(z)},
tabindex:0,"aria-label":X,"aria-pressed":a,role:"button","on:keydown":S,"on:click":_.$d(function(){U(c().onSubmitCommand);return!1})},_.B(_.K,{cond:function(){return c().logo},
then:function(z){return _.B(_.RW,{data:z,className:function(){var x={};x=(x["toggleable-image-button-view-model-wiz__image"]=!0,x["toggleable-image-button-view-model-wiz__circular-radius"]=!(!c().backgroundColor||!c().backgroundColorDarkMode),x["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(a()&&c().backgroundColor&&c().backgroundColorDarkMode),x);return _.No(x)},
alt:X,useWidth:!1,style:function(){if(a()&&c().backgroundColor&&c().backgroundColorDarkMode){var x=em(Number(c().backgroundColorDarkMode),"1");var I=em(Number(c().backgroundColor),"1");x="background: linear-gradient(180deg,"+x+","+I+") border-box;"}else x="";return x}})}}),_.B(_.p4,{model:{borderRadius:"16px"}}),_.B("p",{class:function(){var z={};
z=(z["toggleable-image-button-view-model-wiz__label"]=!0,z["toggleable-image-button-view-model-wiz__bold-text"]=a(),z);return _.No(z)}},_.B(_.mw,{text:function(){return c().text}})))},"Cb");
Mcp.idomCompat=!0;var Zui=_.y_(function(S){var c=S.data;S=_.A(_.ny({index:-1,command:{}},void 0,"Zcqtsb"));var Q=S.next().value,f=S.next().value;return _.B("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.B("div",{class:"nudge-form-view-model-wiz__form-options"},_.B(_.h8,{data:function(){return c().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(U,a){return _.B(Mcp,{data:U.data,buttonIndex:a,selectedIndex:function(){return Q().index},
onSelect:function(X){f({index:a(),command:X})}})}})),_.B(_.mw,{text:function(){return c().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.B("div",{class:"nudge-form-view-model-wiz__submit"},_.B(_.h8,{data:function(){return c().submitButton}},{buttonViewModel:function(U){return _.B(iuJ,{data:U.data,
isDisabled:function(){return Q().index===-1},
onClick:function(){_.kz(Q().command)}})}})))},"Db");
Zui.idomCompat=!0;var iuJ=_.y_(function(S){var c=_.uQ(function(){return Object.assign({},S.data(),{state:S.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.B(_.Ze,{data:c,onClick:S.onClick})},"Eb");_.f4(Zui,"yt-nudge-form-view-model",{props:{data:_.y$}});var zA=function(){var S=_.W.apply(this,arguments)||this;S.roundedContainer=!0;S.buttonUpdate=_.u("web_modern_buttons");S.isDarkMode=!1;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return S};
_.C(zA,_.W);_.J=zA.prototype;_.J.computeNudgeStyle=function(S){return S?"modernized-nudge":""};
_.J.handleDarkModeToggledAction=function(S){this.isDarkMode=S};
_.J.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.J.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"}}}};
_.J.computeIsHorizontalButtons=function(S){return S?!!S.applyModernizedStyle&&!!S.enableHorizontalButtons&&!!S.secondaryButton:!1};
_.Rh.Object.defineProperties(zA.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=(S=this.data)==null?void 0:S.backgroundStyle)!=null?c:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=(S=this.data)==null?void 0:S.contentsLocation)!=null?c:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null?0:S.lightIconImage)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],zA.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],zA.prototype,"actionHandlerBehavior",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("isHideEnclosingAction"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zA.prototype,"isHidden",null);_.d([_.Z(),_.P("design:type",Object)],zA.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zA.prototype,"roundedContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zA.prototype,"buttonUpdate",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.P("design:type",String)],zA.prototype,"nudgeStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.trimStyle"),_.P("design:type",String),_.P("design:paramtypes",[])],zA.prototype,"trimStyle",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.backgroundStyle"),_.P("design:type",String),_.P("design:paramtypes",[])],zA.prototype,"backgroundStyle",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.contentsLocation"),_.P("design:type",String),_.P("design:paramtypes",[])],zA.prototype,"contentsLocation",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.disableDropShadow"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zA.prototype,"noShadow",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.lightIconImage"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],zA.prototype,"noIcon",null);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.P("design:type",Boolean)],zA.prototype,"isHorizontalButtons",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],zA.prototype,"isDarkMode",void 0);_.d([_.e({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],zA);
_.k(zA,"ytd-feed-nudge-renderer",function(){if(scd!==void 0)return scd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return scd=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var GYT;var WBd;var xI=function(){var S=_.W.apply(this,arguments)||this;S.collapsed=!1;S.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return S};
_.C(xI,_.W);xI.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"}}}};
xI.prototype.handleRatingSelect=function(){var S;((S=this.data)==null?0:S.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
xI.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],xI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],xI.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],xI.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xI.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.ig),_.P("design:type",Object)],xI.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],xI.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xI.prototype,"collapsed",void 0);_.d([_.e({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],xI);
_.k(xI,"ytd-slimline-survey-renderer",function(){if(WBd!==void 0)return WBd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return WBd=S},{mode:1});var gf_;var FR=function(){return _.W.apply(this,arguments)||this};
_.C(FR,_.W);FR.prototype.maybeGetBackgroundColor=function(S){return this.isDarkMode?S.section2Color:S.section3Color};
FR.prototype.colorPaletteChanged=function(){var S=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;S&&(S==null?0:S.secondaryTitleColor)&&this.maybeGetBackgroundColor(S)?(this.hostElement.style.backgroundColor=_.WV(this.maybeGetBackgroundColor(S)),this.hostElement.style.color=_.WV(S.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
FR.prototype.colorPaletteChanged=FR.prototype.colorPaletteChanged;_.d([_.p(_.st),_.P("design:type",Object)],FR.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],FR.prototype,"data",void 0);_.d([_.Z({selector:function(S){return S.ui.darkModeIsEnabled}}),
_.P("design:type",Boolean)],FR.prototype,"isDarkMode",void 0);_.d([_.Z(),_.P("design:type",Object)],FR.prototype,"lightColorPalette",void 0);_.d([_.Z(),_.P("design:type",Object)],FR.prototype,"darkColorPalette",void 0);_.d([_.B0("darkColorPalette","lightColorPalette","data","isDarkMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FR.prototype,"colorPaletteChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],FR);
_.k(FR,"ytd-endorsement-header-renderer",function(){if(gf_!==void 0)return gf_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return gf_=S},{mode:1});_.f4(_.h7,"yt-decorated-avatar-view-model",{props:{data:_.y$,className:_.y$}});var Bw=function(){var S=_.W.apply(this,arguments)||this;S.fullHeight=_.u("web_rich_grid_media_full_height");S.showChannelAvatar=!0;S.hasPlaylistThumbnail=!1;S.avatarStackViewModelOverrides={layoutType:"AVATAR_STACK_LAYOUT_CLUSTER"};S.prepareThumbnailForPageTransition=function(){_.u("web_thumbnail_to_watch_transition")&&(S.thumbnail.style.viewTransitionName="thumbnail-to-watch",S.cleanupThumbnailAfterPageTransition(S.thumbnail))};
return S};
_.C(Bw,_.W);_.J=Bw.prototype;
_.J.configureRendererStamper=function(){return{lazyLoadMenu:Be,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"}}}};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.shouldLazyLoadMenu=function(){var S=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.u("kevlar_modern_downloads_page")||!S};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14008_inlinePreviewHoverListener=t8({mediaRenderer:this,lockupElement:this.JSC$14008_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.J.getVideoPreviewOpts=function(){var S={},c;if((c=this.data)==null?0:c.multipleInlinePlaybackEndpoint)S=wO_;this.isRadio&&(S=TBu);return _.u("web_thumbnail_to_watch_transition")?Object.assign({},S,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):S};
_.J.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$14008_inlinePreviewHoverListener)==null||Jw(S)};
_.J.getOwner=function(){var S,c,Q;return((S=this.data)==null?void 0:(c=S.channelThumbnailSupportedRenderers)==null?void 0:c.channelThumbnailWithLinkRenderer)||_.Y((Q=this.data)==null?void 0:Q.showProviderChannelThumbnail,JPs)};
_.J.updateLockupSize=function(){var S;((S=this.getOwner())==null?0:S.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.J.getFeedbackEndpoint=function(S){if(_.Y(S,_.ie))return S;var c,Q;S=(Q=(c=_.Y(S,_.II))==null?void 0:c.commands)!=null?Q:[];c=_.A(S);for(Q=c.next();!Q.done;Q=c.next())if(Q=this.getFeedbackEndpoint(Q.value))return Q;return null};
_.J.computeNavigationEndpoint=function(S){return dSz(S==null?void 0:S.navigationEndpoint)};
_.J.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var S=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(S)!==JSON.stringify(this.data)&&this.set("data",S)}};
_.J.onDataChanged=function(){var S=this,c=this.getOwner();if(c){this.set("data.owner",c);var Q,f,U,a,X,z=((Q=this.data)==null?void 0:(f=Q.shortBylineText)==null?void 0:(U=f.runs)==null?void 0:(a=U[0])==null?void 0:a.text)||((X=c.name)==null?void 0:X.simpleText);this.set("data.owner.title",z)}var x,I,n,b,N,l;c=((x=this.data)==null?void 0:(I=x.thumbnailRenderer)==null?void 0:I.playlistVideoThumbnailRenderer)||((n=this.data)==null?void 0:(b=n.thumbnailRenderer)==null?void 0:b.playlistCustomThumbnailRenderer)||
((N=this.data)==null?void 0:(l=N.thumbnailRenderer)==null?void 0:l.showCustomThumbnailRenderer);var H;((H=this.data)==null?0:H.thumbnail)||!c||this.set("data.thumbnail",c.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){S.updateLockupSize()});
var q;if(x=((q=this.data)==null?void 0:q.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(x);var w;((w=this.dismissActionToReplayEntity)==null?0:w.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.J.onHiddenChanged=function(){this.updateLockupSize()};
_.J.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.XF(this.hostElement,"yt-terminate-video-preview-action");else{var S;(S=this.videoTitleLink)==null||S.focus()}};
_.J.metadataColorChanged=function(){var S;if(this.metadataColor&&((S=this.videoTitle)==null?0:S.style))this.videoTitle.style.color=_.WV(this.metadataColor);else{var c,Q;!this.metadataColor&&((c=this.videoTitle)==null?0:(Q=c.style)==null?0:Q.color)&&(this.videoTitle.style.color="")}};
_.J.onDetailsClick=function(S){var c=this.computedNavigationEndpoint;c&&(_.RZ(_.t4(S),this.hostElement,["A","BUTTON","YT-AVATAR-STACK-VIEW-MODEL"])||_.Az(this.hostElement,"yt-navigate",{endpoint:c}))};
_.J.cleanupThumbnailAfterPageTransition=function(S){_.Plz(document,"yt-page-type-changed",function(){S.style.viewTransitionName=""})};
_.J.onRendererTap=function(){this.prepareThumbnailForPageTransition();var S,c,Q=((S=this.data)==null?void 0:S.serviceEndpoint)||this.getFeedbackEndpoint((c=this.data)==null?void 0:c.navigationEndpoint);Q&&_.Y(Q,_.ie)&&this.ytComponentBehavior.resolveCommand(Q)};
_.J.onMouseDown=function(S){var c=S.target,Q=this.computedNavigationEndpoint,f;S=c.href||((f=_.Y(Q==null?void 0:Q.commandMetadata,_.Qw))==null?void 0:f.url);f=c.data||Q;S&&f&&vXY(S,f)};
_.J.computeVideoTitleText=function(){var S;if((S=this.data)==null?0:S.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.J.computeHasPlaylistThumbnail=function(S){var c,Q,f,U,a;if((((c=S.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((Q=S.thumbnailRenderer)==null?0:Q.playlistCustomThumbnailRenderer)||((f=S.thumbnailRenderer)==null?0:f.showCustomThumbnailRenderer)||((U=S.thumbnailRenderer)==null?0:U.playlistVideoThumbnailRenderer)||((a=S.thumbnailRenderer)==null?0:a.playlistCustomThumbnailRenderer))&&S.thumbnailOverlays)for(c=0;c<S.thumbnailOverlays.length;c++)if(Q=void 0,(Q=S.thumbnailOverlays[c])==
null?0:Q.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Rh.Object.defineProperties(Bw.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.u("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var S;return(S=this.data)==null?void 0:S.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var S;return(S=this.data)==null?void 0:S.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$14008_inlinePreviewHoverListener)==null?0:su(S))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.IM(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:S.videoId)||((c=this.data)==null?void 0:c.playlistId)||""}}});
Bw.prototype.onMouseDown=Bw.prototype.onMouseDown;Bw.prototype.metadataColorChanged=Bw.prototype.metadataColorChanged;Bw.prototype.onIsDismissedChanged=Bw.prototype.onIsDismissedChanged;Bw.prototype.onHiddenChanged=Bw.prototype.onHiddenChanged;Bw.prototype.onDataChanged=Bw.prototype.onDataChanged;Bw.prototype.handleReloadDownloadsInfo=Bw.prototype.handleReloadDownloadsInfo;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Bw.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Bw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Bw.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],Bw.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],Bw.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Bw.prototype,"ytdReduxBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Bw.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],Bw.prototype,"entitySelectorType",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Bw.prototype,"noEndpoints",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Bw.prototype,"isRadio",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],Bw.prototype,"miniMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Bw.prototype,"fullHeight",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],Bw.prototype,"showDarkVideoMetadata",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Bw.prototype,"showLightVideoMetadata",void 0);_.d([_.Z(),_.P("design:type",Number)],Bw.prototype,"metadataColor",void 0);_.d([_.Z(),_.P("design:type",Object)],Bw.prototype,"showChannelAvatar",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Bw.prototype,"hidden",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],Bw.prototype,"showYtInteraction",void 0);
_.d([_.Z(),_.P("design:type",String)],Bw.prototype,"dismissedContentId",void 0);_.d([_.Z({selectorArgs:["dismissedContentId"],selector:TWY}),_.P("design:type",Object)],Bw.prototype,"dismissActionToReplayEntity",void 0);
_.d([_.Z({selectorArgs:["entitySelectorType","mediaId"],selector:function(S,c,Q){if(_.u("kevlar_modern_downloads_page")&&Q&&c&&c!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var f=Yax(S,Q);if(f){c=_.iZ(S,Q);var U=Gh(S,Q),a=ikc(S,Q);S=Wq(S,Q);var X=xiR(f,c,U,a);U=X.shortViewCountText;var z=X.publishedTimeText;X=X.badges;var x=S>0;a=Otr(f,c,a,S);f=_.jD(c)||c==="TRANSFER_STATE_FAILED"||c==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!uZ(f.policyEntity)?
void 0:kgz(Q,S,f.videoEntity.lengthSeconds);c==="TRANSFER_STATE_PAUSED_BY_USER"&&Q&&!_.u("dl_resume_click_killswitch")&&(f={offlineVideoEndpoint:{videoId:Q,action:"ACTION_RESUME"}});Q={shortViewCountText:U,publishedTimeText:z,badges:X,isWatched:x,navigationEndpoint:f,thumbnailOverlays:a}}else Q=void 0;return Q;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(c=CAz(S,Q))if(f=_.Z8(S,Q),a=_.HkH(S,Q),f!=="TRANSFER_STATE_UNKNOWN"){Q=zeM(c,f,a,Q,Kxx(S));break a}Q=void 0}return Q;default:_.i5(new _.Yr("Error: entitySelectorType defined but not matched in selector.",
S,c))}}}),
_.P("design:type",Object)],Bw.prototype,"entityDrivenState",void 0);_.d([_.Z({computed:"computeVideoTitleText(data)"}),_.P("design:type",Object)],Bw.prototype,"videoTitleText",void 0);_.d([_.Z({computed:"computeHasPlaylistThumbnail(data)"}),_.P("design:type",Object)],Bw.prototype,"hasPlaylistThumbnail",void 0);_.d([_.Z({computed:"computeNavigationEndpoint(data)"}),_.P("design:type",Object)],Bw.prototype,"computedNavigationEndpoint",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Bw.prototype,"typographyBump",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("typographyBump"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bw.prototype,"typographyBumpV2",null);_.d([_.nU("#video-title"),_.P("design:type",HTMLElement)],Bw.prototype,"videoTitle",void 0);_.d([_.nU("#video-title-link"),_.P("design:type",HTMLElement)],Bw.prototype,"videoTitleLink",void 0);
_.d([_.nU("#thumbnail"),_.P("design:type",HTMLElement)],Bw.prototype,"thumbnail",void 0);_.d([_.nU("#dismissible"),_.P("design:type",HTMLElement)],Bw.prototype,"JSC$14008_dismissibleMedia",void 0);_.d([_.M("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bw.prototype,"lazyLoadMenu",null);_.d([_.M("data.menu"),_.P("design:type",Object),_.P("design:paramtypes",[])],Bw.prototype,"immediateLoadMenu",null);
_.d([_.$n("entityDrivenState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bw.prototype,"handleReloadDownloadsInfo",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bw.prototype,"onDataChanged",null);_.d([_.$n("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bw.prototype,"onHiddenChanged",null);
_.d([_.B0("isDismissed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bw.prototype,"onIsDismissedChanged",null);_.d([_.B0("metadataColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Bw.prototype,"metadataColorChanged",null);_.d([_.FV("mousedown"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Bw.prototype,"onMouseDown",null);
_.d([_.M("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bw.prototype,"isHovered",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Bw.prototype,"useAvatar",null);_.d([_.M("data","entitySelectorType"),_.P("design:type",String),_.P("design:paramtypes",[])],Bw.prototype,"mediaId",null);_.d([_.e({is:"ytd-rich-grid-media",disableElementRegistration:!0})],Bw);
var egT=_.aW()(Bw,"ytd-rich-grid-media",function(){if(GYT!==void 0)return GYT;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return GYT=S},{mode:_.A2("kevlar_poly_si_batch_j072")?1:2});var kYd;var I3=function(){var S=_.W.apply(this,arguments)||this;S.removeMaxWidth=!0;S.insetMetadata=!1;return S};
_.C(I3,_.W);_.J=I3.prototype;_.J.configureRendererStamper=function(){return{innerMenu:Be,outerMenu:Object.assign({},Be,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onDataChanged=function(){var S,c=((S=this.data)==null?void 0:S.trackingParams)||"";c&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(c));var Q;((Q=this.dismissActionToReplayEntity)==null?0:Q.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$14013_inlinePreviewHoverListener=t8({mediaRenderer:this,lockupElement:this.JSC$14013_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:sXd})};
_.J.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$14013_inlinePreviewHoverListener)==null||Jw(S)};
_.J.onRendererTap=function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.serviceEndpoints)==null?void 0:c[0];_.Y(Q,_.ie)&&this.componentBehavior.resolveCommand(Q)};
_.J.onDetailsClick=function(S){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint;Q&&(_.RZ(_.t4(S),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(Q))};
_.J.onShow=function(){var S=this.data;S.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(S.onFirstVisibleCommand),delete S.onFirstVisibleCommand)};
_.Rh.Object.defineProperties(I3.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var S;return this.insetMetadata?void 0:(S=this.data)==null?void 0:S.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var S;return this.insetMetadata?(S=this.data)==null?void 0:S.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var S=this.data;if(S!=null&&S.badge&&(S=_.Y(S.badge,Jkp))){var c,Q,f;return[{metadataBadgeRenderer:{label:((c=S.label)==null?void 0:(Q=c.runs)==null?void 0:Q[0].text)||((f=S.label)==null?void 0:f.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var S=this.data;return Object.assign({},S.headline,{accessibility:S.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return this.isSlimShort?(S=this.computedTitle)==null?void 0:(c=S.accessibility)==null?void 0:(Q=c.accessibilityData)==null?void 0:Q.label:void 0}},
shouldForce2By3:{configurable:!0,enumerable:!0,get:function(){return _.u("web_slim_media_force_2_by_3")}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$14013_inlinePreviewHoverListener)==null?0:su(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
I3.prototype.onDataChanged=I3.prototype.onDataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],I3.prototype,"componentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],I3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],I3.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],I3.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.ig),_.P("design:type",Object)],I3.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],I3.prototype,"ytdReduxBehavior",void 0);_.d([_.nU("ytd-thumbnail"),_.P("design:type",HTMLElement)],I3.prototype,"thumbnail",void 0);_.d([_.nU("#dismissible"),_.P("design:type",HTMLElement)],I3.prototype,"JSC$14013_dismissibleMedia",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],I3.prototype,"removeMaxWidth",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],I3.prototype,"insetMetadata",void 0);_.d([_.Z(),_.P("design:type",String)],I3.prototype,"dismissedContentId",void 0);_.d([_.Z({selectorArgs:["dismissedContentId"],selector:TWY}),_.P("design:type",Object)],I3.prototype,"dismissActionToReplayEntity",void 0);_.d([_.M("insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],I3.prototype,"thumbnailObjectFit",null);
_.d([_.M("data","insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],I3.prototype,"innerMenu",null);_.d([_.M("data","insetMetadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],I3.prototype,"outerMenu",null);_.d([_.Z(),_.P("design:type",Object)],I3.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],I3.prototype,"miniMode",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I3.prototype,"onDataChanged",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],I3.prototype,"shortsBadges",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I3.prototype,"isShort",null);
_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I3.prototype,"isSlimShort",null);_.d([_.M("data","isShort"),_.P("design:type",Object),_.P("design:paramtypes",[])],I3.prototype,"computedTitle",null);_.d([_.M("isSlimShort","computedTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],I3.prototype,"computedAccessibilityLabel",null);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I3.prototype,"shouldForce2By3",null);_.d([_.M("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I3.prototype,"isHovered",null);_.d([_.e({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],I3);
_.k(I3,"ytd-rich-grid-slim-media",function(){if(kYd!==void 0)return kYd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return kYd=S},{mode:_.A2("kevlar_poly_si_batch_j063")?1:2});var rsd;var d2h;var bk=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(bk,_.W);bk.prototype.computeIcon=function(S){return S&&S.iconType?"yt-sys-icons:"+S.iconType.toLowerCase():""};
bk.prototype.onMouseEnter=function(){this.isHovered=!0};
bk.prototype.onMouseLeave=function(){this.isHovered=!1};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bk.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bk.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],bk.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bk.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],bk.prototype,"isHovered",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bk.prototype,"darkerDarkTheme",void 0);_.d([_.e({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],bk);
_.k(bk,"ytd-expand-on-hover-card-renderer",function(){if(d2h!==void 0)return d2h;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return d2h=S},{mode:1});var vfi,Pfl=function(){if(vfi!==void 0)return vfi;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return vfi=S};_.i8("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var Nz=function(){var S=_.W.apply(this,arguments)||this;S.compactStyle=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(Nz,_.W);_.J=Nz.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.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"}}}};
_.J.computeHideDot=function(S){return!(S&&S.subscriberCountText&&S.videoCountText)||this.compactStyle};
_.J.hasDualButtons=function(S){return S&&S.purchaseButton&&S.subscribeButton};
_.J.backgroundColorChanged=function(){if(this.data!==void 0){var S=this.data.backgroundColor;this.isDarkTheme&&(S=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=S!=null?_.WV(S):"transparent"}};
_.J.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.onTap=function(S){var c,Q,f=((c=this.data)==null?void 0:c.navigationEndpoint)||((Q=this.data)==null?void 0:Q.serviceEndpoint);_.Y(f,_.aC)&&(f&&_.fl().resolve(_.U8).resolveCommand(f,{form:{element:this.hostElement}}),S.preventDefault())};
_.J.computeChannelEndpoint=function(S){return _.Y(S,_.aC)?null:S};
_.J.computeHrefEndpoint=function(S){return _.Y(S,_.aC)?null:this.componentBehavior.computeHref_(S)};
_.J.computeChannelRendererStyle=function(S){return S};
_.J.computeIconSize=function(S){return S?108:136};
_.Rh.Object.defineProperties(Nz,{template:{configurable:!0,enumerable:!0,get:function(){return Pfl()}}});
Nz.prototype.backgroundColorChanged=Nz.prototype.backgroundColorChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Nz.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Nz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],Nz.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Nz.prototype,"componentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Nz.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Nz.prototype,"isDarkTheme",void 0);_.d([_.Z({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.P("design:type",String)],Nz.prototype,"channelRendererStyle",void 0);_.d([_.Z({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Nz.prototype,"dualButtons",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],Nz.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],Nz.prototype,"biggerThumbStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Nz.prototype,"compactStyle",void 0);_.d([_.B0("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nz.prototype,"backgroundColorChanged",null);_.d([_.e({is:"ytd-channel-renderer",disableElementRegistration:!0})],Nz);_.k(Nz,"ytd-channel-renderer",function(){return Pfl()},{mode:1});var LBz;var Efd;_.i8("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var Kg=function(){var S=_.W.apply(this,arguments)||this;S.displayItemCount=2;S.collections=_.u("web_modern_collections_v2");S.hasPlaylistThumbnail=!1;S.stackThumbnailSize="large";return S};
_.C(Kg,_.W);_.J=Kg.prototype;_.J.attached=function(){this.updateInlinePreviewHoverListeners()};
_.J.detached=function(){this.clearInlinePreviewHoverListeners()};
_.J.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.J.computeFirstVideos=function(S,c){return S&&c?S.slice(0,c):[]};
_.J.computeThumbnailWidth=function(S,c){return S?c==="BIG"?500:c==="MASSIVE"?600:c==="MEDIUM"?450:420:360};
_.J.computeThumbnailHeight=function(S,c){return S?c==="BIG"?280:c==="MASSIVE"?337:234:202};
_.J.clearInlinePreviewHoverListeners=function(){var S;(S=this.JSC$14026_inlinePreviewHoverListener)==null||Jw(S)};
_.J.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$14026_inlinePreviewHoverListener=t8({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:wO_,thumbnailElement:this.thumbnail})};
_.J.computeHasPlaylistThumbnail=function(S){var c,Q;if((((c=S.thumbnailRenderer)==null?0:c.playlistVideoThumbnailRenderer)||((Q=S.thumbnailRenderer)==null?0:Q.playlistCustomThumbnailRenderer))&&S.thumbnailOverlays)for(c=0;c<S.thumbnailOverlays.length;c++)if(Q=void 0,(Q=S.thumbnailOverlays[c])==null?0:Q.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.Rh.Object.defineProperties(Kg.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.JSC$14026_inlinePreviewHoverListener)==null?0:su(S))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
Kg.prototype.dataChanged=Kg.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Kg.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],Kg.prototype,"ytdLockupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Kg.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Kg.prototype,"displayItemCount",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],Kg.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],Kg.prototype,"biggerThumbsStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Kg.prototype,"collections",void 0);_.d([_.Z({computed:"computeHasPlaylistThumbnail(data)"}),_.P("design:type",Object)],Kg.prototype,"hasPlaylistThumbnail",void 0);_.d([_.Z(),_.P("design:type",String)],Kg.prototype,"stackThumbnailSize",void 0);_.d([_.nU("ytd-thumbnail"),_.P("design:type",HTMLElement)],Kg.prototype,"thumbnail",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Kg.prototype,"dataChanged",null);_.d([_.M("lockupIsHovered"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Kg.prototype,"isHovered",null);_.d([_.e({is:"ytd-radio-renderer",disableElementRegistration:!0})],Kg);
_.k(Kg,"ytd-radio-renderer",function(){if(Efd!==void 0)return Efd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Efd=S},{mode:_.A2("kevlar_poly_si_batch_j058")?1:2});var tc$;_.i8("itemSectionRenderer","showRenderer","ytd-show-renderer");var $I=function(){return _.W.apply(this,arguments)||this};
_.C($I,_.W);$I.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
$I.prototype.computeThumbnailWidth=function(S){return S?360:246};
$I.prototype.computeUseProminentThumbs=function(S){return S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$I.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$I.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$I.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],$I.prototype,"isSearch",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.P("design:type",Boolean)],$I.prototype,"useProminentThumbs",void 0);_.d([_.e({is:"ytd-show-renderer",disableElementRegistration:!0})],$I);
_.k($I,"ytd-show-renderer",function(){if(tc$!==void 0)return tc$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tc$=S},{mode:1});_.i8("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var uk=function(){var S=_.W.apply(this,arguments)||this;S.isRichGrid=!1;return S};
_.C(uk,_.W);uk.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"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uk.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],uk.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uk.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uk.prototype,"isRichGrid",void 0);_.d([_.e({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],uk);
_.k(uk,"ytd-feed-entry-renderer",function(){if(LBz!==void 0)return LBz;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return LBz=S},{mode:1});var VcT;var jo=function(){return _.W.apply(this,arguments)||this};
_.C(jo,_.W);jo.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.d([_.p(_.st),_.P("design:type",Object)],jo.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jo.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],jo.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jo.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.wP,value:3}),_.P("design:type",Number)],jo.prototype,"itemsPerRow",void 0);
_.d([_.e({is:"ytd-link-card-renderer",disableElementRegistration:!0})],jo);
_.k(jo,"ytd-link-card-renderer",function(){if(VcT!==void 0)return VcT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return VcT=S},{mode:1});var Rgz;var lk=function(){return _.W.apply(this,arguments)||this};
_.C(lk,_.W);_.J=lk.prototype;_.J.configureRendererStamper=function(){return{"data.menu":Be,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.J.onRendererTap=function(S){if(!this.ytdDismissibleItemBehavior.isDismissed){var c,Q=(c=this.data)==null?void 0:c.navigationEndpoint;Q&&!_.RZ(_.t4(S),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(Q)?_.RZ(_.t4(S),this.hostElement,["A"])||_.Az(this.hostElement,"yt-navigate",{endpoint:Q}):this.ytComponentBehavior.resolveCommand(Q,{}))}};
_.J.maybeComputeHref=function(S){return this.ytComponentBehavior.computeHref_(S,!0)};
_.J.getNavigationCommand=function(S){return this.isNavigationCommand(S)?S:null};
_.J.isNavigationCommand=function(S){return S?_.Y(S,_.KJ)||_.Y(S,_.tG)||_.Y(S,_.rQ)?!0:!1:!1};
lk.prototype.onRendererTap=lk.prototype.onRendererTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lk.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lk.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],lk.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],lk.prototype,"ytComponentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],lk.prototype,"data",void 0);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],lk.prototype,"onRendererTap",null);_.d([_.e({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],lk);
_.k(lk,"ytd-lumiere-promo-item-image-renderer",function(){if(Rgz!==void 0)return Rgz;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Rgz=S},{mode:1});var ysu;var YI=function(){return _.W.apply(this,arguments)||this};
_.C(YI,_.W);YI.prototype.computeLandscapeThumbnail=function(){var S;return((S=this.data)==null?void 0:S.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],YI.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],YI.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],YI.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],YI.prototype,"miniMode",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.wP}),_.P("design:type",Number)],YI.prototype,"itemsPerRow",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.P("design:type",Boolean)],YI.prototype,"landscapeThumbnail",void 0);_.d([_.e({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],YI);
_.k(YI,"ytd-lumiere-shelf-details-renderer",function(){if(ysu!==void 0)return ysu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ysu=S},{mode:_.A2("kevlar_poly_si_batch_j076")?1:2});var ofe;var Cg=function(){return _.W.apply(this,arguments)||this};
_.C(Cg,_.W);Cg.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Cg.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Cg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Cg.prototype,"data",void 0);_.d([_.e({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],Cg);
_.k(Cg,"ytd-primetime-promo-details-renderer",function(){if(ofe!==void 0)return ofe;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ofe=S},{mode:1});var m2H;var Hw=function(){return _.W.apply(this,arguments)||this};
_.C(Hw,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Hw.prototype,"data",void 0);_.d([_.e({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],Hw);
_.k(Hw,"ytd-panel-show-style-metadata-renderer",function(){if(m2H!==void 0)return m2H;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return m2H=S},{mode:1});var SOl;var Ds=function(){return _.W.apply(this,arguments)||this};
_.C(Ds,_.W);_.J=Ds.prototype;_.J.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.J.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.J.computeThumbnail=function(S){if(S)return S.smallFormFactorBackgroundThumbnail||S.largeFormFactorBackgroundThumbnail};
_.J.maybeComputeHref=function(S){return this.ytComponentBehavior.computeHref_(S,!0)};
_.J.isNavigationCommand=function(S){return S?_.Y(S,_.KJ)||_.Y(S,_.tG)||_.Y(S,_.rQ)?!0:!1:!1};
_.J.getNavigationCommand=function(S){return this.isNavigationCommand(S)?S:null};
Ds.prototype.onPanelTap=Ds.prototype.onPanelTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ds.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Ds.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ds.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ds.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],Ds.prototype,"roundedContainer",void 0);_.d([_.Z({reflectToAttribute:!0,value:_.u("web_modern_buttons")}),_.P("design:type",Boolean)],Ds.prototype,"modernButtons",void 0);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ds.prototype,"onPanelTap",null);_.d([_.e({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],Ds);
_.k(Ds,"ytd-primetime-promo-panel-renderer",function(){if(SOl!==void 0)return SOl;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return SOl=S},{mode:1});_.f4(_.y_(function(S){S=_.V_(S,{data:{},useFullWidth:!1});var c=S.data,Q=S.useFullWidth,f=function(){return c().caption},U=function(){return c().image},a=function(){return _.Gv(c().onTap)};
S={};S=_.n4("ytTeaserCardViewModelHost",(S.ytTeaserCardViewModelUseFullWidth=function(){return Q()},S));
return _.B("teaser-card-view-model",{class:S},_.B(_.K,{cond:function(){return a()},
then:function(){return _.B(Nwd,{className:"ytTeaserCardViewModelLink",command:a,forceNewState:!0,useATagConfig:!0},_.B("div",{class:"ytTeaserCardViewModelImageContainer"},_.B(_.K,{cond:U,then:function(X){return _.B(_.RW,{data:X,className:"ytTeaserCardViewModelImage",alt:""})}})),_.B("p",{class:"ytTeaserCardViewModelCaption"},f))}}))},"Fb"),"teaser-card-view-model",{props:{data:_.y$,
useFullWidth:_.y$}});var cRJ=new _.Sg("RICH_GRID_VIDEO_RENDERER_TOKEN");_.f4(_.y_(function(S){var c=S.data;var Q=S.showYtInteractionInContent;var f=function(){return!!c().selectableFeedback};
S=_.A(_.ny(!1,void 0,"nblDw"));var U=S.next().value,a=S.next().value;_.wC(function(){var N=_.Y(c().primaryButton,_.CS);(N==null?0:N.isToggled)&&a(N.isToggled)});
S=_.$d(function(N){if(!f())return!1;if(U()){var l;var H=(l=c().selectableFeedback)==null?void 0:l.onDeselect}else{var q;H=(q=c().selectableFeedback)==null?void 0:q.onSelect}H&&_.kz(H,{form:{element:N.target}});a(!U());if(N=_.Y(c().primaryButton,_.CS))N.isToggled=U();return!1});
var X=function(){if(!f()){var N,l=(N=c().loggingDirectives)==null?void 0:N.trackingParams;l&&_.F2(_.fl().resolve(_.Dp),l)}},z=_.aSR(),x=function(){var N;
return f()?(N=c().selectableFeedback)==null?void 0:N.a11yLabel:void 0},I=function(){return f()?{toggled:U()}:{}},n=_.fl().resolve(_.QS(cRJ)),b={};
return _.B("yt-feedback-item-renderer",{class:_.n4("ytFeedbackItemRendererHost",(b.ytFeedbackItemRendererSelectableFeedback=f,b)),"on:click":S,"on:keydown":z,title:x,"aria-label":x,"aria-pressed":function(){return f()?U():void 0},
tabindex:function(){return f()?0:void 0},
role:function(){return f()?"button":void 0}},_.B("div",{class:"ytFeedbackItemRendererContentContainer"},_.B(_.h8,{data:function(){return c().content}},{videoRenderer:function(N){return _.B(n,{data:N.data,
showYtInteraction:Q})},
lockupViewModel:function(N){return _.B(_.U4,{data:N.data,containerType:2})}})),_.B("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.B(_.h8,{data:function(){return c().primaryButton}},{toggleButtonViewModel:function(N){return _.B(_.qs,{data:N.data,
buttonShapeOverrides:I,disableExplicitClickLogging:!0,onToggle:X})}})))},"Gb"),"yt-feedback-item-renderer",{props:{data:_.y$,
showYtInteractionInContent:_.y$}});var pg=function(){var S=_.W.apply(this,arguments)||this;S.isShortsGrid=!1;S.isCompactGrid=!1;S.isShortsPanelGrid=!1;S.renderedFromRichGrid=!1;S.isInFirstColumn=!1;S.noGutterMargins=!1;S.isInlineGroupItem=!1;S.insetMetadata=!1;S.noBottomMarginInAds=_.u("web_no_bottom_margin_for_home_ad_buttons");S.force16By9ThumbnailAspectRatio=!1;S.useCompactList=!1;S.containerType=2;S.thumbnailTargetWidth=9999;S.isResponsiveGrid=!1;S.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};S.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};S.hoverListener=S.hover.bind(S);S.leaveListener=S.leave.bind(S);S.highlighted=!1;S.JSC$14061_unsubscribeFromInlinePreviewIsActive=function(){};
return S};
_.C(pg,_.W);_.J=pg.prototype;_.J.computeContainerType=function(){return this.useCompactList?3:2};
_.J.computeThumbnailTargetWidth=function(){var S;return(S=this.itemWidth)!=null?S:9999};
_.J.updateIsInFirstColumn=function(){var S;this.isInFirstColumn=((S=this.data)==null?void 0:S.colIndex)===0};
_.J.observerContainerType=function(){if(this.lockup){var S=this.lockup;S.containerType=this.containerType;S.sizing=this.sizing;S.typographyBump=this.typographyBump;S.itemWidth=this.itemWidth}this.richGridMedia&&_.u("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.u("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.J.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]]"}}}}}};
_.J.leave=function(S){S=S.relatedTarget;var c=document.querySelector("ytd-video-preview");S&&c&&_.Jq(c).contains(S)||this.removeAndCleanupHighlight()};
_.J.hover=function(){var S;if(!this.highlighted&&(!_.u("web_enable_rich_item_on_focus_effect")||(S=this.data)!=null&&S.onFocusEffect)){var c,Q;((c=this.data)==null?void 0:(Q=c.onFocusEffect)==null?void 0:Q.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(S=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:S,boxShadow:"0 0 0 10px "+S}));var f,U;((f=this.data)==null?void 0:(U=f.onFocusEffect)==null?void 0:
U.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.J.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};
_.J.registerHoverHighlightListeners=function(){var S=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$14061_unsubscribeFromInlinePreviewIsActive=_.Kt(_.V5(),_.ncY,function(c){S.highlighted&&!c&&S.removeAndCleanupHighlight()})};
_.J.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$14061_unsubscribeFromInlinePreviewIsActive()};
_.J.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.J.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.J.getBackgroundColor=function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.onFocusEffect)==null?void 0:c.onFocusColor;if(Q){if(document.documentElement.hasAttribute("dark")&&(Q==null?0:Q.darkTheme))return _.WV(Q==null?void 0:Q.darkTheme);if(Q==null?0:Q.lightTheme)return _.WV(Q==null?void 0:Q.lightTheme)}};
_.J.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var S=_.wN(),c,Q,f;S&&((c=this.data)==null?0:c.trackingParams)&&((Q=this.data)==null?void 0:Q.colIndex)!=null&&((f=this.data)==null?void 0:f.rowIndex)!=null&&_.yw(S,_.Yz(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.J.isSlimMediaRenderer=function(S){return!!_.Y(S==null?void 0:S.content,_.Zfd)||!!_.Y(S==null?void 0:S.content,ifp)||!!_.Y(S==null?void 0:S.content,_.Zw)||!!_.Y(S==null?void 0:S.content,Q0e)};
_.J.isPostRenderer=function(){var S,c;return!!_.Y((S=this.data)==null?void 0:S.content,d7u)||!!_.Y((c=this.data)==null?void 0:c.content,vsd)};
_.J.computeIsGameCardShelf=function(){var S;return!!_.Y((S=this.data)==null?void 0:S.content,vqi)};
_.J.computeIsMiniGameCardShelf=function(){var S,c;return!!_.Y((S=this.data)==null?void 0:S.content,J3$)||!!_.Y((c=this.data)==null?void 0:c.content,agl)};
_.J.computeIsTeaserCard=function(){var S;return!!_.Y((S=this.data)==null?void 0:S.content,agl)};
_.J.computeIsSelectableFeedbackItem=function(){var S,c;return!((c=_.Y((S=this.data)==null?void 0:S.content,_.XHd))==null||!c.selectableFeedback)};
_.J.computeContainsLumierePosters=function(){var S,c;return((c=_.Y((S=this.data)==null?void 0:S.content,SYd))==null?void 0:c.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.computeIsExpandOnHoverCardShelf=function(){var S;return!!_.Y((S=this.data)==null?void 0:S.content,m7p)};
_.J.computeIsLinkCardShelf=function(){var S;return!!_.Y((S=this.data)==null?void 0:S.content,OtH)};
_.J.computeIsReelItemStyleAvatarCircle=function(S){var c;return((c=_.Y(S==null?void 0:S.content,_.Zw))==null?void 0:c.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.J.computeIsLinkCardFullWidth=function(S,c){var Q;return((Q=_.Y(S==null?void 0:S.content,OtH))==null?void 0:Q.useFullWidth)||c<=2};
_.Rh.Object.defineProperties(pg.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&!!this.isHomeGrid&&_.u("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.u("web_enable_rich_item_on_focus_effect")||_.u("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return 1}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
pg.prototype.richGridHoverHighlightChanged=pg.prototype.richGridHoverHighlightChanged;pg.prototype.observerContainerType=pg.prototype.observerContainerType;pg.prototype.updateIsInFirstColumn=pg.prototype.updateIsInFirstColumn;_.d([_.p(_.st),_.P("design:type",Object)],pg.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],pg.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],pg.prototype,"ytdLockupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pg.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.P("design:type",Boolean)],pg.prototype,"isPost",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.P("design:type",Boolean)],pg.prototype,"containsLumierePosters",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.P("design:type",Boolean)],pg.prototype,"isSlimMedia",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.P("design:type",Boolean)],pg.prototype,"isGameCardShelf",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.P("design:type",Boolean)],pg.prototype,"isMiniGameCardShelf",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.P("design:type",Boolean)],pg.prototype,"isTeaserCard",void 0);_.d([_.Z({computed:"computeIsSelectableFeedbackItem(data)"}),_.P("design:type",Boolean)],pg.prototype,"isSelectableFeedbackItem",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"isShortsGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],pg.prototype,"isSlimGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"isCompactGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"isShortsPanelGrid",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.P("design:type",Boolean)],pg.prototype,"isExpandOnHoverCardShelf",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.P("design:type",Boolean)],pg.prototype,"isLinkCardShelf",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.wP,value:3}),_.P("design:type",Number)],pg.prototype,"itemsPerRow",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"renderedFromRichGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"isInFirstColumn",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"noGutterMargins",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"isInlineGroupItem",void 0);_.d([_.Z(),_.P("design:type",Object)],pg.prototype,"insetMetadata",void 0);
_.d([_.Z(),_.P("design:type",Object)],pg.prototype,"noBottomMarginInAds",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],pg.prototype,"isShelfItem",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.P("design:type",Boolean)],pg.prototype,"isReelItemStyleAvatarCircle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.P("design:type",Boolean)],pg.prototype,"isLinkCardFullWidth",void 0);
_.d([_.Z(),_.P("design:type",Object)],pg.prototype,"force16By9ThumbnailAspectRatio",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"useCompactList",void 0);_.d([_.Z(),_.P("design:type",String)],pg.prototype,"sizing",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],pg.prototype,"typographyBump",void 0);_.d([_.Z(),_.P("design:type",Number)],pg.prototype,"itemWidth",void 0);_.d([_.Z(),_.P("design:type",Boolean)],pg.prototype,"isHomeShelf",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],pg.prototype,"isHomeGrid",void 0);_.d([_.nU("yt-lockup-view-model"),_.P("design:type",HTMLElement)],pg.prototype,"lockup",void 0);_.d([_.nU("ytd-rich-grid-media"),_.P("design:type",HTMLElement)],pg.prototype,"richGridMedia",void 0);_.d([_.nU("ytd-ad-slot-renderer"),_.P("design:type",HTMLElement)],pg.prototype,"adSlotRenderer",void 0);_.d([_.Z({computed:"computeContainerType(useCompactList)"}),_.P("design:type",Object)],pg.prototype,"containerType",void 0);
_.d([_.Z({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.P("design:type",Object)],pg.prototype,"thumbnailTargetWidth",void 0);_.d([_.M("showYtInteractionOnRichItem"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pg.prototype,"showYtInteractionOnRichGridMedia",null);_.d([_.M("isSelectableFeedbackItem","richGridHoverHighlight"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pg.prototype,"showYtInteractionOnRichItem",null);
_.d([_.M("typographyBump","isHomeGrid"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pg.prototype,"richTypographyBump",null);_.d([_.Z({reflectToAttribute:!0}),_.M("isShortsGrid","isCompactGrid"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],pg.prototype,"richGridHoverHighlight",null);_.d([_.M("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.P("design:type",Number),_.P("design:paramtypes",[])],pg.prototype,"shortsLockupViewModelAspectRatio",null);
_.d([_.M("isInlineGroupItem"),_.P("design:type",Number),_.P("design:paramtypes",[])],pg.prototype,"shortsLockupViewModelScrimStyle",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pg.prototype,"updateIsInFirstColumn",null);_.d([_.B0("containerType","sizing","typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pg.prototype,"observerContainerType",null);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pg.prototype,"isResponsiveGrid",void 0);_.d([_.Z(),_.P("design:type",Object)],pg.prototype,"lockupExperiments",void 0);_.d([_.B0("richGridHoverHighlight"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pg.prototype,"richGridHoverHighlightChanged",null);_.d([_.e({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],pg);
_.QVh=_.aW()(pg,"ytd-rich-item-renderer",function(){if(rsd===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);rsd=S}S=rsd;return S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var e3p={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var tAH=_.LK(_.K8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var fKH;var h_=function(){var S=_.W.apply(this,arguments)||this;S.useResponsiveGrid=!1;S.hidden=!1;S.standardShelfMargins=_.u("web_rich_grid_standard_shelf_margins");S.isShowMoreHidden=!1;S.isExpanded=!1;S.isInnerShelf=!1;S.allVideosCount=0;S.allPlaylistCount=0;S.haveSmartDownloadsCompleted=!1;S.isShowLessHidden=!0;S.restrictContentsOverflow=!1;S.firstShownIndex=0;S.horizontalOffset=0;S.atEnd=!0;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};S.nextClick=function(){var c;(c=S.data)!=null&&c.contents&&(S.firstShownIndex+=S.currentElementsPerRow,S.updateHorizontalOffset(),S.updateHorizontalItemVisibility())};
S.previousClick=function(){var c;(c=S.data)!=null&&c.contents&&(S.firstShownIndex-=S.currentElementsPerRow,S.updateHorizontalOffset(),S.updateHorizontalItemVisibility())};
return S};
_.C(h_,_.W);_.J=h_.prototype;
_.J.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:_.WY("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.J.attached=function(){this.requestElementsPerRow()};
_.J.refreshGridLayoutNew=function(){var S;if((S=this.data)!=null&&S.contents&&this.containerWidth){var c;((c=this.data.responsiveContainerConfiguration)==null?0:c.responsiveSize)?(S=_.yfz(this.data.responsiveContainerConfiguration,this.containerWidth),S=_.Ri(Object.assign({},S,{standardUnitMinWidth:this.standardUnitMinWidth}))):S=_.Ri({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=S.typographyBump;if(this.elementsPerRow!==
S.numItems||this.gutter!==S.gutter)this.elementsPerRow=S.numItems,this.gutter=S.gutter,this.itemWidth=S.itemWidth,_.Or(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":S.gutter+"px"})}};
_.J.computeSizing=function(){if(!this.isLumiere){var S=_.xMx(this.data);if(S)return S;if(_.u("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.J.computeUseResponsiveGrid=function(){return!this.isLumiere&&this.sizing};
_.J.computeButton=function(S){var c=_.Y(S,_.GF);S=Object.assign({},_.Y(S,_.GF));return c?(S.text||(S.text={simpleText:S.tooltip}),S.style="STYLE_MONO_OUTLINE",S.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",S):c};
_.J.onRowIndexChange=function(){var S=_.wN(),c,Q;((c=this.data)==null?0:c.trackingParams)&&((Q=this.data)==null?void 0:Q.rowIndex)!=null&&S&&_.yw(S,_.Yz(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.J.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var S,c=((S=this.getRichItemRenderers()[0])==null?void 0:S.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*c;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.J.requestElementsPerRow=function(){_.Az(this.hostElement,"yt-request-elements-per-row")};
_.J.onUpdateElementsPerRowAction=function(S,c,Q,f,U,a){if(this.containerWidth!==a&&(this.containerWidth=a,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&S&&c&&Q&&f&&U&&(this.elementsPerRow!==S||this.postsPerRow!==c||this.slimItemsPerRow!==Q||this.gameCardsPerRow!==f||this.miniGameCardsPerRow!==U)&&(this.elementsPerRow=S,this.postsPerRow=c,this.slimItemsPerRow=Q,this.gameCardsPerRow=f,this.miniGameCardsPerRow=U,this.updateItemVisibility())};
_.J.getRichItemRenderers=function(){return _.Ur(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.J.updateItemVisibility=function(){var S=this;if(this.data&&this.data.contents){var c=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(f,U){var a;((a=S.data)==null?0:a.isExpanded)?(f.hidden=U>c-1,f.ytRendererBehavior.markDirty()):f.hidden=U>S.currentElementsPerRow-1||U>c-1});
var Q=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||Q||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||Q||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.J.setHeightToSingleRow=function(){var S=this.getRichItemRenderers(),c=Number.parseInt(getComputedStyle(S[0]).marginBottom,10)||0;S=S.slice(0,this.currentElementsPerRow).reduce(function(Q,f){return Math.max(Q,f.getBoundingClientRect().height+c)},0);
this.contents.style.height=S+"px"};
_.J.focusNextExpandedItem=function(){var S;((S=this.data)==null?0:S.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.J.focusItem=function(S,c){var Q=this.getRichItemRenderers();if(Q[S]&&(S=Q[S].querySelector(".focus-on-expand"))){if(c){var f;(f=Q[this.currentElementsPerRow])==null||f.scrollIntoView({behavior:"smooth",block:"center"})}S.focus({preventScroll:!0})}};
_.J.onDataChange=function(){var S=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();var c;if((c=this.data)==null?0:c.isExpanded)this.firstShownIndex=0,this.updateHorizontalOffset(),this.updateHorizontalItemVisibility();_.tO(this,function(){S.updateItemVisibility()});
var Q;if((Q=this.data)==null?0:Q.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.Or(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),c=0;c<this.data.contents.length;c++)Q=_.Y(this.data.contents[c],_.qB)||{},Q.colIndex=c,Q.rowIndex=this.data.rowIndex};
_.J.handleRerenderDownloadsData=function(){_.u("kevlar_modern_downloads_page")&&this.entityDrivenRichShelfData&&(this.set("data.contents",this.entityDrivenRichShelfData.contents),this.entityDrivenRichShelfData.subtitle&&this.set("data.subtitle",this.entityDrivenRichShelfData.subtitle),this.updateItemVisibility())};
_.J.blockInlinePreview=function(S){var c=this,Q;return _.O(function(f){(Q=c.inlinePreviewIsEnabled)&&c.ytdReduxBehavior.dispatch(_.EOh(!1));return f.return(new Promise(function(U){S(function(){Q&&c.ytdReduxBehavior.dispatch(_.EOh(!0));U()})}))})};
_.J.expandShelf=function(){var S=this;if(this.data){var c,Q=(c=_.Y(this.data.showMoreButton,_.GF))==null?void 0:c.trackingParams;Q&&_.F2(_.Kv(),Q);this.data.isExpanded=!0;this.blockInlinePreview(function(f){S.setHeightToSingleRow();S.updateItemVisibility();S.contents.style.height=S.contents.scrollHeight+"px";_.Mq.addJob(function(){S.contents.style.height="auto";S.focusNextExpandedItem();f()},2,200)})}};
_.J.collapseShelf=function(){var S=this;return _.O(function(c){if(c.nextAddress==1){if(!S.data)return c.return();S.data.isExpanded=!1;return _.F(c,S.blockInlinePreview(function(Q){S.contents.style.height=S.contents.scrollHeight+"px";S.setHeightToSingleRow();_.Mq.addJob(function(){S.updateItemVisibility();S.contents.style.height="auto";Q()},2,200)}),2)}_.Az(S.hostElement,"yt-rich-shelf-renderer-collapse",S.data.trackingParams);
S.focusItem(0,!1);_.IN(c)})};
_.J.updateArrowButtonStatus=function(){var S=this.getRichItemRenderers().length;if(!_.u("web_rich_shelf_renderer_use_data_contents_killswitch")){var c,Q;S=((c=this.data)==null?void 0:(Q=c.contents)==null?void 0:Q.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=S};
_.J.onChildElementFocus=function(S){this.hasChevronButtons&&(S=S.target.closest("#contents > *"),this.contents.contains(S)&&(S.offsetLeft<this.horizontalOffset?this.previousClick():S.offsetLeft+S.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.J.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.WY("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.J.updateHorizontalOffset=function(){var S=this.getRichItemRenderers(),c=S.length;if(!_.u("web_rich_shelf_renderer_use_data_contents_killswitch")){var Q,f;c=((Q=this.data)==null?void 0:(f=Q.contents)==null?void 0:f.length)||0}var U;S=((U=S[0])==null?void 0:U.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>c?this.firstShownIndex=c-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*S};
_.J.isSlimMediaShelfRenderer=function(){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB))==null?void 0:Q.content;return!!(_.Y(f,_.Zfd)||_.Y(f,ifp)||_.Y(f,_.Zw)||_.Y(f,Q0e))};
_.J.isGameCardShelf=function(){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB))==null?void 0:Q.content;return!!_.Y(f,vqi)};
_.J.isGnomeShelf=function(){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB))==null?void 0:Q.content;return!!_.Y(f,_.XHd)};
_.J.isMiniGameCardShelf=function(){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB))==null?void 0:Q.content;return!!_.Y(f,J3$)||!!_.Y(f,agl)};
_.J.hasGameBoxArtAvatarStyle=function(){var S;return((S=this.data)==null?void 0:S.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.J.hasRoundedGameBoxArtAvatarStyle=function(){var S;return((S=this.data)==null?void 0:S.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.J.isShortsShelf=function(){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB))==null?void 0:Q.content;return!!_.Y(f,_.Zw)||!!_.Y(f,Q0e)};
_.J.isPostShelfRenderer=function(){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB))==null?void 0:Q.content;return!(!_.Y(f,d7u)&&!_.Y(f,vsd))};
_.J.isLumiereShelf=function(){var S,c,Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB);return!!_.Y(Q==null?void 0:Q.content,SYd)};
_.J.isLumiereShelfWithPosters=function(){var S,c,Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB),f;return((f=_.Y(Q==null?void 0:Q.content,SYd))==null?void 0:f.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.J.isExpandOnHoverCardShelf=function(){var S,c,Q,f=(Q=_.Y((S=this.data)==null?void 0:(c=S.contents)==null?void 0:c[0],_.qB))==null?void 0:Q.content;return!!_.Y(f,m7p)};
_.J.computeHasFeaturedBadge=function(){var S,c,Q=_.Y((S=this.data)==null?void 0:(c=S.badges)==null?void 0:c[0],_.Xld);return Q?Q.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHasPaygatedFeaturedBadge=function(){var S,c,Q=_.Y((S=this.data)==null?void 0:(c=S.badges)==null?void 0:c[0],_.Xld);return Q?(Q==null?void 0:Q.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.J.computeHeaderHidden=function(){var S,c,Q,f,U,a;return!((S=this.data)==null?0:S.icon)&&!((c=this.data)==null?0:c.title)&&!((Q=this.data)==null?0:Q.subtitle)&&!((f=this.data)==null?0:f.thumbnail)&&!((U=this.data)==null?0:U.badges)&&!((a=this.data)==null?0:a.menu)};
_.J.showCtaButton=function(){var S;return!((S=this.data)==null||!S.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.J.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.J.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.J.computeForce16By9ThumbnailAspectRatio=function(){var S,c;return((S=this.data)==null?void 0:(c=S.responsiveContainerConfiguration)==null?void 0:c.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.J.onSectionReactiveDismissal=function(S,c,Q){var f,U;var a=(f=this.data)==null?void 0:(U=f.targetingContext)==null?void 0:U.targetGroupId;this&&a&&c.targetGroupId&&a.includes(c.targetGroupId)?(f=this.rowIndex,S=f===void 0?!1:!(c.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&f<=S)):S=!1;S&&(this.hidden=Q)};
_.Rh.Object.defineProperties(h_.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var S=this.elementsPerRow;this.isPostShelfRenderer()?S=this.postsPerRow:this.isSlimMediaShelfRenderer()?S=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?S=this.slimItemsPerRow-1:this.isGameCardShelf()?S=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(S=this.miniGameCardsPerRow);return S}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.u("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.previousButton)&&!((c=this.data)==null||!c.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 S;return((S=_.fl().resolve(_.oZ).getCurrentPage())==null?void 0:S.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return!((S=this.data)==null?0:(c=S.thumbnail)==null?0:(Q=c.accessibility)==null?0:(f=Q.accessibilityData)==null?0:f.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
h_.prototype.onChildElementFocus=h_.prototype.onChildElementFocus;h_.prototype.handleRerenderDownloadsData=h_.prototype.handleRerenderDownloadsData;h_.prototype.onDataChange=h_.prototype.onDataChange;h_.prototype.onRowIndexChange=h_.prototype.onRowIndexChange;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],h_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],h_.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.ig),_.P("design:type",Object)],h_.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],h_.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],h_.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.P("design:type",Object)],h_.prototype,"useResponsiveGrid",void 0);_.d([_.Z(),_.P("design:type",Object)],h_.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Number)],h_.prototype,"standardUnitMinWidth",void 0);_.d([_.Z({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],h_.prototype,"elementsPerRow",void 0);_.d([_.Z({value:3}),_.P("design:type",Number)],h_.prototype,"postsPerRow",void 0);_.d([_.Z({value:6}),_.P("design:type",Number)],h_.prototype,"slimItemsPerRow",void 0);_.d([_.Z({value:6}),_.P("design:type",Number)],h_.prototype,"gameCardsPerRow",void 0);
_.d([_.Z({value:6}),_.P("design:type",Number)],h_.prototype,"miniGameCardsPerRow",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h_.prototype,"hidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h_.prototype,"standardShelfMargins",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h_.prototype,"isShowMoreHidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h_.prototype,"isExpanded",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h_.prototype,"isInnerShelf",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.P("design:type",Boolean)],h_.prototype,"isShorts",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.P("design:type",Boolean)],h_.prototype,"isLumiere",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.P("design:type",Boolean)],h_.prototype,"hasBoxArtThumbnailStyle",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.P("design:type",Boolean)],h_.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.P("design:type",Boolean)],h_.prototype,"hasFeaturedBadge",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.P("design:type",Boolean)],h_.prototype,"hasPaygatedFeaturedBadge",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.P("design:type",Boolean)],h_.prototype,"isHeaderHidden",void 0);_.d([_.Z({selector:_.lwc}),_.P("design:type",Object)],h_.prototype,"allVideosCount",void 0);_.d([_.Z({selector:R3z}),_.P("design:type",Object)],h_.prototype,"allPlaylistCount",void 0);_.d([_.Z({selector:sJo}),_.P("design:type",Object)],h_.prototype,"haveSmartDownloadsCompleted",void 0);
_.d([_.Z({selectorArgs:["entitySelectorType"],selector:function(S,c){if(_.u("kevlar_modern_downloads_page")&&c&&c!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var Q=S.entities;switch(c){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":c=_.pK(Q);S=Tw(c);var f=_.lZ(c);Q=_.qO(Q);Q=_.fK(rfM(f,Q,c.length));return{contents:S,subtitle:Q};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return Q=_.pK(Q),{contents:Tw(Q)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return Q=
_.hb(Q),{contents:Tw(Q)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return Q=_.SaR(Q),{contents:Tw(Q)};default:_.i5(new _.Yr("Error: entitySelectorType defined but not matched in selector.",S,c))}}}}),
_.P("design:type",Object)],h_.prototype,"entityDrivenRichShelfData",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.P("design:type",Boolean)],h_.prototype,"hasTopCtaButton",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.P("design:type",Boolean)],h_.prototype,"hasBottomCtaButton",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.P("design:type",Boolean)],h_.prototype,"force16By9ThumbnailAspectRatio",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h_.prototype,"isShowLessHidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],h_.prototype,"restrictContentsOverflow",void 0);_.d([_.Z({selector:_.bkZ}),_.P("design:type",Boolean)],h_.prototype,"inlinePreviewIsEnabled",void 0);
_.d([_.Z({computed:"computeSizing(data)"}),_.P("design:type",String)],h_.prototype,"sizing",void 0);_.d([_.Z(),_.P("design:type",Boolean)],h_.prototype,"typographyBump",void 0);_.d([_.Z(),_.P("design:type",Number)],h_.prototype,"itemWidth",void 0);_.d([_.Z(),_.P("design:type",Object)],h_.prototype,"firstShownIndex",void 0);_.d([_.Z(),_.P("design:type",Object)],h_.prototype,"horizontalOffset",void 0);_.d([_.Z(),_.P("design:type",Object)],h_.prototype,"atEnd",void 0);
_.d([_.nU("#contents"),_.P("design:type",HTMLElement)],h_.prototype,"contents",void 0);_.d([_.B0("data.rowIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],h_.prototype,"onRowIndexChange",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],h_.prototype,"onDataChange",null);
_.d([_.B0("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],h_.prototype,"handleRerenderDownloadsData",null);_.d([_.FV("focusin"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],h_.prototype,"onChildElementFocus",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data","isHomePage"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],h_.prototype,"isTruncated",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],h_.prototype,"hideBottomDivider",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],h_.prototype,"hasChevronButtons",null);_.d([_.M("firstShownIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],h_.prototype,"previousButtonOverride",null);
_.d([_.M("atEnd"),_.P("design:type",Object),_.P("design:paramtypes",[])],h_.prototype,"nextButtonOverride",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],h_.prototype,"isHomePage",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],h_.prototype,"thumbnailAriaHidden",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],h_.prototype,"initiallyIsExpanded",null);
_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],h_.prototype,"entitySelectorType",null);_.d([_.e({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],h_);
_.Up_=_.aW()(h_,"ytd-rich-shelf-renderer",function(){if(fKH===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);fKH=S}S=fKH;return S},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var JRT;_.f4(ZCd,"yt-slimline-survey-view-model",{props:{data:_.y$}});var qz=function(){var S=_.W.apply(this,arguments)||this;S.tileLottieAnimationRef={};S.backgroundLottieAnimationRef={};S.isOnHoverBehaviorForLottieEnabled=!0;S.useBiggerShowcaseImage=_.u("enable_desktop_search_bigger_thumbs");S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return S};
_.C(qz,_.W);_.J=qz.prototype;_.J.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.J.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"}}}};
_.J.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var S=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);S!==this.hasTile&&this.set("hasTile",S);S=this.hasLogo(this.data)||!!this.data.badgeText;S!==this.hasMetadata&&this.set("hasMetadata",S);S=this.data.overflowButton?!1:S;S!==this.showLogoImage&&this.set("showLogoImage",S);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.J.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.J.currentColorChanged=function(){this.updateButtonPalette()};
_.J.computeBackgroundStyle=function(S){if(S&&this.data){var c=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var Q=_.Ja((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);Q&&c.push('background-image: url("'+Q+'");')}var f;((f=S.basicColorData)==null?void 0:f.backgroundColor)!==void 0&&c.push("background-color: "+_.gh(S.basicColorData.backgroundColor)+";");return c.join("")}};
_.J.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S)};
_.J.getCurrentLogo=function(S,c){if(S)return c?S.darkLogoImage:S.lightLogoImage};
_.J.getCurrentStaticTileImage=function(S,c){if(this.hasStaticTile(S))return S.darkTileImage?c?S.darkTileImage:S.tileImage:S.tileImage};
_.J.computeTitleStyle=function(S){if(this.data&&this.data.title&&S&&S.basicColorData&&S.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.WV(S.basicColorData.foregroundTitleColor)+";"};
_.J.computeSubtitleStyle=function(S){if(this.data&&this.data.subtitle&&S&&S.basicColorData&&S.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.WV(S.basicColorData.foregroundBodyColor)+";"};
_.J.computeSupplementalStyle=function(S){if(this.data&&this.data.supplementalText&&S&&S.supplementalTextColor!==void 0)return S=_.WV(S.supplementalTextColor),"color:"+S+";--yt-endpoint-color:"+S+";--yt-endpoint-hover-color:"+S+";--yt-endpoint-visited-color:"+S+";--yt-formatted-string-bold-font-weight:700;"};
_.J.computeBadgeStyle=function(S){if(this.data&&this.data.badgeText&&S&&S.basicColorData&&S.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.WV(S.basicColorData.foregroundActivatedColor)+";"};
_.J.computeDismissIconStyle=function(S){var c,Q;if((S==null?0:(c=S.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(S==null?0:(Q=S.dismissButtonColorData)==null?0:Q.backgroundColor))return"--yt-button-color:"+_.gh(S.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.gh(S.dismissButtonColorData.backgroundColor)+";"};
_.J.computeOverflowIconStyle=function(S){var c,Q;if((S==null?0:(c=S.dismissButtonColorData)==null?0:c.foregroundTitleColor)&&(S==null?0:(Q=S.dismissButtonColorData)==null?0:Q.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.gh(S.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.gh(S.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.gh(S.dismissButtonColorData.foregroundTitleColor)+";"};
_.J.computeBannerStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.J.computeLocation=function(S){switch(S==null?void 0:S.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.J.shouldShowTileSection=function(S,c,Q){return!this.shouldExpandLogo(S,c,Q)&&c};
_.J.shouldShowExpandedLogoSection=function(S,c,Q){return this.shouldExpandLogo(S,c,Q)&&S!==void 0&&this.hasLogo(S)};
_.J.shouldExpandLogo=function(S,c,Q){return S&&c?!1:Q>=2};
_.J.hasStaticTile=function(S){return!(S==null||!S.tileImage)};
_.J.hasTileLottie=function(S){var c;return!!(S==null?0:(c=S.tileLottie)==null?0:c.url)};
_.J.hasLogo=function(S){return this.getCurrentLogo(S,this.isDarkTheme)!==void 0};
_.J.getLogoHeight=function(S){return this.logoWithPadding(S)?"26":"20"};
_.J.getExpandedLogoHeight=function(S){return this.logoWithPadding(S)?"31":"24"};
_.J.getLogoImageId=function(S){return this.logoWithPadding(S)?"logo-image-with-padding":"logo-image"};
_.J.hasBackgroundLottie=function(S){var c;return!!(S==null?0:(c=S.backgroundLottie)==null?0:c.url)};
_.J.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var S,c;(S=this.tileLottieAnimationRef)==null||(c=S.lottieEl)==null||c.play();var Q,f;(Q=this.backgroundLottieAnimationRef)==null||(f=Q.lottieEl)==null||f.play()}};
_.J.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var S,c;(S=this.tileLottieAnimationRef)==null||(c=S.lottieEl)==null||c.pause();var Q,f;(Q=this.backgroundLottieAnimationRef)==null||(f=Q.lottieEl)==null||f.pause()}};
_.J.pauseLottie=function(){var S,c;(S=this.tileLottieAnimationRef)==null||(c=S.lottieEl)==null||c.pause();var Q,f;(Q=this.backgroundLottieAnimationRef)==null||(f=Q.lottieEl)==null||f.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.J.performPrimaryButtonAction=function(){var S,c,Q;((S=this.data)==null?0:(c=S.primaryButton)==null?0:(Q=c.buttonRenderer)==null?0:Q.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.J.requestElementsPerRow=function(){_.Az(this.hostElement,"yt-request-elements-per-row")};
_.J.updateButtonPalette=function(){if(this.data&&this.currentColorData){var S;((S=this.data.dismissButton)==null?0:S.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 c;if((c=this.data.primaryButton)==null?0:c.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 Q;if((Q=this.data.secondaryButton)==
null?0:Q.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 f;((f=this.data.primaryButton)==null?0:f.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var U;((U=this.data.secondaryButton)==null?0:U.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.J.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var S=this.getTileLottieDataBasedOnTheme(),c,Q;if(S.url!==((c=this.tileLottiePlayerProps)==null?void 0:(Q=c.animationConfig)==null?void 0:Q.path)){var f,U;(f=this.tileLottieAnimationRef)==null||(U=f.lottieEl)==null||U.destroy();var a;this.isOnHoverBehaviorForLottieEnabled=!((a=S.settings)==null?0:a.autoplay);var X,z;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(z=(X=S.settings)==null?void 0:X.autoplay)!=null?z:!1,loop:this.getLottieLoopValue(S.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof S.url==="string"?this.tileLottiePlayerProps.animationConfig.path=S.url:this.tileLottiePlayerProps.animationConfig.animationData=S.url}}};
_.J.getOverflowButton=function(S){return _.Y(S.overflowButton,Aks)};
_.J.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var S=this.getBackgroundLottieDataBasedOnTheme(),c,Q;if(S.url!==((c=this.backgroundLottiePlayerProps)==null?void 0:(Q=c.animationConfig)==null?void 0:Q.path)){var f,U;(f=this.backgroundLottieAnimationRef)==null||(U=f.lottieEl)==null||U.destroy();var a;this.isOnHoverBehaviorForLottieEnabled=!((a=S.settings)==null?0:a.autoplay);var X,z;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(z=(X=S.settings)==null?void 0:X.autoplay)!=null?z:!1,loop:this.getLottieLoopValue(S.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof S.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=S.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
S.url}}};
_.J.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var S;((S=this.tileLottieAnimationRef)==null?void 0:S.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var c;((c=this.backgroundLottieAnimationRef)==null?void 0:c.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.J.getTileLottieDataBasedOnTheme=function(){var S;if(this.isDarkTheme&&((S=this.data)==null?0:S.darkThemeTileLottie))return this.data.darkThemeTileLottie;var c;return((c=this.data)==null?0:c.tileLottie)?this.data.tileLottie:{}};
_.J.getBackgroundLottieDataBasedOnTheme=function(){var S;if(this.isDarkTheme&&((S=this.data)==null?0:S.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var c;return((c=this.data)==null?0:c.backgroundLottie)?this.data.backgroundLottie:{}};
_.J.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S)};
_.J.getLottieLoopValue=function(S){return S?S.loop!==void 0?S.loop:S.loopCount?S.loopCount-1:!0:!0};
_.J.logoWithPadding=function(S){var c,Q,f;return(S=(c=this.getCurrentLogo(S,this.isDarkTheme))==null?void 0:(Q=c.thumbnails)==null?void 0:(f=Q[0])==null?void 0:f.height)&&S%31===0?!0:!1};
qz.prototype.currentColorChanged=qz.prototype.currentColorChanged;qz.prototype.themeChanged=qz.prototype.themeChanged;qz.prototype.dataChanged=qz.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qz.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],qz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],qz.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],qz.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],qz.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"primaryButton",void 0);_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"secondaryButton",void 0);
_.d([_.Z({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],qz.prototype,"elementsPerRow",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],qz.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],qz.prototype,"hasTile",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],qz.prototype,"hasMetadata",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],qz.prototype,"showLogoImage",void 0);_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"currentColorData",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.P("design:type",String)],qz.prototype,"bannerStyle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.P("design:type",String)],qz.prototype,"location",void 0);
_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"tileLottiePlayerProps",void 0);_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"tileLottieAnimationRef",void 0);_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"backgroundLottiePlayerProps",void 0);_.d([_.Z(),_.P("design:type",Object)],qz.prototype,"backgroundLottieAnimationRef",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],qz.prototype,"useBiggerShowcaseImage",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],qz.prototype,"isHideEnclosingAction",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qz.prototype,"dataChanged",null);_.d([_.$n("isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qz.prototype,"themeChanged",null);
_.d([_.$n("currentColorData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qz.prototype,"currentColorChanged",null);_.d([_.e({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],qz);
_.k(qz,"ytd-statement-banner-renderer",function(){if(JRT!==void 0)return JRT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return JRT=S},{mode:1});var aKz;var TA=function(){var S=_.W.apply(this,arguments)||this;S.isSearch=!1;S.hideShelfHeader=!1;S.engagementPanel=!1;S.disableMouseScroll=!0;S.useFloorScrolling=!0;S.modernTypography=_.u("web_modern_typography");return S};
_.C(TA,_.W);TA.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.K8("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.K8("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
TA.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
TA.prototype.onDataChanged=TA.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],TA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],TA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],TA.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],TA.prototype,"hideShelfHeader",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],TA.prototype,"engagementPanel",void 0);_.d([_.Z(),_.P("design:type",Object)],TA.prototype,"disableMouseScroll",void 0);_.d([_.Z(),_.P("design:type",Object)],TA.prototype,"useFloorScrolling",void 0);_.d([_.Z(),_.P("design:type",Object)],TA.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],TA.prototype,"modernTypography",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TA.prototype,"onDataChanged",null);_.d([_.e({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],TA);
_.k(TA,"ytd-reel-shelf-renderer",function(){if(aKz!==void 0)return aKz;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return aKz=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var ARs;var XBd=_.y_(function(S){var c=S.data;S=S.useSmallFont;var Q={},f={};return _.B("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.B(_.K,{cond:function(){return c().favicon},
then:function(U){return _.B(_.RW,{data:U,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.B("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.B(_.mw,{text:function(){return c().title},
className:_.n4("yt-channel-external-link-view-model-wiz__title",(Q["yt-channel-external-link-view-model-wiz__title--title-small-font"]=S,Q)),ellipsisTruncate:!0,userInput:!0}),_.B(_.mw,{text:function(){return c().link},
className:_.n4("yt-channel-external-link-view-model-wiz__link",(f["yt-channel-external-link-view-model-wiz__link--link-small-font"]=S,f)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"Hb");
XBd.idomCompat=!0;_.f4(XBd,"yt-channel-external-link-view-model",{props:{data:_.y$,useSmallFont:_.y$}});_.i8("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var wt=function(){var S=_.W.apply(this,arguments)||this;S.revealButtonClass="button";S.businessEmailDisplayState="HIDE_SECTION";return S};
_.C(wt,_.W);_.J=wt.prototype;_.J.refit=function(){var S=this;_.gM(function(){_.Oz(S.hostElement,"yt-refit-popups-action")});
_.tO(this,function(){_.Oz(S.hostElement,"yt-refit-popups-action")})};
_.J.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.kU("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.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"}}}};
_.J.computeEmailHref=function(S){return"mailto:"+S};
_.J.computeSafeUrl=function(S){if(S)return _.jS(S)};
_.J.linkEndpoint=function(S){return _.Y(S.onTap,_.Zc)};
_.J.linkEndpointToHref=function(S){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(S))};
_.J.onYtServiceRequestCompleted=function(S){var c;if((c=S.detail.data)==null?0:c.businessEmail)this.businessEmail=S.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var Q;if((Q=S.detail.data)==null?0:Q.errorMessage)this.businessEmailErrorMessage=S.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var S=this.JSC$14165_captchaTextarea.value;if(S){S={recaptcha_response_token:S,channel_id:this.metadata.channelId};var c=_.Y(this.metadata.onBusinessEmailRevealClickCommand,_.Zc);c&&this.ytComponentBehavior.resolveCommand(c,{form:S})}}};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Rh.Object.defineProperties(wt.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var S;return _.Y((S=this.data)==null?void 0:S.metadata,UJH)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.Y(this.metadata.businessEmailRevealButton,_.Ya)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var S=new URL(this.metadata.canonicalChannelUrl);return S.host+S.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 _.Y(this.metadata.learnMoreOnTap,_.Zc)}}});
wt.prototype.onYtServiceRequestCompleted=wt.prototype.onYtServiceRequestCompleted;wt.prototype.businessEmailMetadataChanged=wt.prototype.businessEmailMetadataChanged;wt.prototype.refit=wt.prototype.refit;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],wt.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("#g-recaptcha-response"),_.P("design:type",HTMLTextAreaElement)],wt.prototype,"JSC$14165_captchaTextarea",void 0);_.d([_.Z(),_.P("design:type",Object)],wt.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],wt.prototype,"revealButtonClass",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],wt.prototype,"metadata",null);
_.d([_.M("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],wt.prototype,"revealButton",null);_.d([_.M("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],wt.prototype,"channelDisplayUrl",null);_.d([_.$n("metadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wt.prototype,"refit",null);_.d([_.M("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],wt.prototype,"formattedDescription",null);
_.d([_.M("metadata","learnMoreCommand"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],wt.prototype,"shouldRendereVerifiedPhoneStatus",null);_.d([_.M("metadata"),_.P("design:type",Object),_.P("design:paramtypes",[])],wt.prototype,"learnMoreCommand",null);_.d([_.Z(),_.P("design:type",String)],wt.prototype,"businessEmailDisplayState",void 0);_.d([_.Z(),_.P("design:type",String)],wt.prototype,"businessEmail",void 0);
_.d([_.Z(),_.P("design:type",String)],wt.prototype,"businessEmailErrorMessage",void 0);_.d([_.$n("metadata"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wt.prototype,"businessEmailMetadataChanged",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],wt.prototype,"onYtServiceRequestCompleted",null);_.d([_.e({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],wt);
_.k(wt,"ytd-about-channel-renderer",function(){if(ARs!==void 0)return ARs;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ARs=S},{mode:1});var OBs;var sq=function(){return _.W.apply(this,arguments)||this};
_.C(sq,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sq.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sq.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],sq);
_.k(sq,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(OBs!==void 0)return OBs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return OBs=S},{mode:1});var zXh;var Mz=function(){return _.W.apply(this,arguments)||this};
_.C(Mz,_.W);Mz.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Mz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Mz.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Mz.prototype,"aligment",void 0);_.d([_.e({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],Mz);
_.k(Mz,"ytd-channel-list-sub-menu-renderer",function(){if(zXh!==void 0)return zXh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return zXh=
S},{mode:1});var xpd;var ik=function(){return _.W.apply(this,arguments)||this};
_.C(ik,_.W);ik.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}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ik.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ik.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ik.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],ik);
_.k(ik,"ytd-channel-sub-menu-renderer",function(){if(xpd!==void 0)return xpd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return xpd=S},{mode:1});var Ffp;var BYH;var Zs=function(){var S=_.W.apply(this,arguments)||this;S.isCompact=!1;return S};
_.C(Zs,_.W);_.Rh.Object.defineProperties(Zs.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var S,c;return((c=_.Y((S=this.data)==null?void 0:S.endpoint,_.rQ))==null?void 0:c.target)==="TARGET_NEW_WINDOW"}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Zs.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Zs.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Zs.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Zs.prototype,"isCompact",void 0);_.d([_.M("isCompact"),_.P("design:type",Number),_.P("design:paramtypes",[])],Zs.prototype,"thumbnailWidth",null);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Zs.prototype,"openNewWindow",null);_.d([_.e({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],Zs);
_.k(Zs,"ytd-media-lockup-renderer",function(){if(BYH!==void 0)return BYH;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return BYH=S},{mode:1});var IKl;var GA=function(){return _.W.apply(this,arguments)||this};
_.C(GA,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],GA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],GA.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],GA.prototype,"data",void 0);_.d([_.e({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],GA);
_.k(GA,"ytd-structured-description-channel-lockup-renderer",function(){if(IKl!==void 0)return IKl;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return IKl=S},{mode:1});var n4i;var Ww=function(){var S=_.W.apply(this,arguments)||this;S.isCompact=!1;S.collections=_.u("web_modern_collections_v2");S.collectionsStackColor=_.u("modernize_structured_description_playlist_lockups_v2");return S};
_.C(Ww,_.W);Ww.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlaySidePanelRenderer:{component:"ytd-thumbnail-overlay-side-panel-renderer",params:{isCompact:!0}},thumbnailOverlayBottomPanelRenderer:{component:"ytd-thumbnail-overlay-bottom-panel-renderer"}},initialRenderPriority:_.u("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.Rh.Object.defineProperties(Ww.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U,a;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(S=this.data)==null?void 0:(c=S.thumbnail)==null?void 0:c.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(Q=this.data)==null?void 0:(f=Q.thumbnail)==null?void 0:f.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(U=this.data)==null?void 0:(a=U.thumbnail)==
null?void 0:a.vibrantColorPalette:void 0}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ww.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Ww.prototype,"componentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ww.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ww.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ww.prototype,"showSidePanelThumbnailOverlay",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Ww.prototype,"isCompact",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Ww.prototype,"collections",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Ww.prototype,"collectionsStackColor",void 0);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Ww.prototype,"twoLineTitle",null);
_.d([_.M("data","collections","collectionsStackColor"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ww.prototype,"collectionStack",null);_.d([_.e({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],Ww);
_.k(Ww,"ytd-structured-description-playlist-lockup-renderer",function(){if(n4i!==void 0)return n4i;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return n4i=S},{mode:1});var bBu;var gt=function(){return _.W.apply(this,arguments)||this};
_.C(gt,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],gt.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gt.prototype,"data",void 0);_.d([_.e({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],gt);
_.k(gt,"ytd-structured-description-video-lockup-renderer",function(){if(bBu!==void 0)return bBu;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return bBu=S},{mode:2});var eo=function(){return _.W.apply(this,arguments)||this};
_.C(eo,_.W);
eo.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}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],eo.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],eo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],eo.prototype,"data",void 0);_.d([_.e({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],eo);
_.k(eo,"ytd-compact-infocard-renderer",function(){if(Ffp!==void 0)return Ffp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Ffp=S},{mode:1});var NYl;var kI=function(){var S=_.W.apply(this,arguments)||this;S.useModernCollectionsV2=_.u("web_modern_collections_v2");return S};
_.C(kI,_.W);kI.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.Rh.Object.defineProperties(kI.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],kI.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],kI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],kI.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],kI.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({selector:_.e9}),_.P("design:type",Object)],kI.prototype,"isGridViewEnabled",void 0);
_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kI.prototype,"watchFeedBigThumbs",null);_.d([_.M("isGridViewEnabled","data"),_.Z({reflectToAttribute:!0,value:"168"}),_.P("design:type",String),_.P("design:paramtypes",[])],kI.prototype,"thumbnailWidth",null);_.d([_.M("isGridViewEnabled","data"),_.Z({reflectToAttribute:!0,value:"94"}),_.P("design:type",String),_.P("design:paramtypes",[])],kI.prototype,"customThumbnailSize",null);
_.d([_.Z(),_.P("design:type",Object)],kI.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],kI.prototype,"useModernCollectionsV2",void 0);_.d([_.e({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],kI);
_.k(kI,"ytd-compact-playlist-renderer",function(){if(NYl!==void 0)return NYl;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return NYl=S},{mode:1});var Kfs;var rt=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.roundedContainer=!0;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return S};
_.C(rt,_.W);_.J=rt.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.J.computeViewStyle=function(S){return S.style?S.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.J.onUpdateElementsPerRowAction=function(S){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&S===1};
_.J.requestElementsPerRow=function(){_.Az(this.hostElement,"yt-request-elements-per-row")};
rt.prototype.dataChanged=rt.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],rt.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],rt.prototype,"actionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],rt.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],rt.prototype,"hideThumbnail",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.P("design:type",String)],rt.prototype,"viewStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rt.prototype,"darkerDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rt.prototype,"roundedContainer",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rt.prototype,"dataChanged",null);_.d([_.e({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],rt);
_.k(rt,"ytd-compact-promoted-item-renderer",function(){if(Kfs!==void 0)return Kfs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Kfs=S},{mode:1});var $pu;var dt=function(){var S=_.W.apply(this,arguments)||this;S.collections=_.u("web_modern_collections_v2");return S};
_.C(dt,_.W);dt.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
dt.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
dt.prototype.onYtNavigate=function(S,c){var Q=this;if(c.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",c)){var f=this.get("watchEndpoint.videoId",c.endpoint),U=_.Oz(this.hostElement,"yt-get-current-video-id-action")[0];_.u("kevlar_mix_handle_first_endpoint_different")&&f&&U&&f!==U||(S.stopPropagation(),_.cK().getPlayerPromise().then(function(a){if(a.getPlayerState()===0&&Q.data.secondaryNavigationEndpoint)var X=Q.data.secondaryNavigationEndpoint;else{X=
Object.assign({},c.endpoint);var z=_.Y(X.commandMetadata,_.Qw);z&&(a=Math.floor(a.getCurrentTime()),z.url=_.V0(z.url,{t:a}),!_.u("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(z=_.Y(X,_.tG)))&&(z.startTimeSeconds=a)}_.Az(Q.hostElement,"yt-navigate",{endpoint:X})}))}};
_.Rh.Object.defineProperties(dt.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U,a;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(S=this.data)==null?void 0:(c=S.thumbnail)==null?void 0:c.sampledThumbnailColor,vibrantColorPalette:(Q=this.data)==null?void 0:(f=Q.thumbnail)==null?void 0:f.vibrantColorPalette,darkColorPalette:(U=this.data)==null?void 0:(a=U.thumbnail)==null?void 0:a.darkColorPalette,experimentEnabled:this.collections}}}});
dt.prototype.onYtNavigate=dt.prototype.onYtNavigate;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Km.YtEndpointBehavior),_.P("design:type",Object)],dt.prototype,"ytEndpointBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],dt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],dt.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.rL),_.P("design:type",Object)],dt.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],dt.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({selector:_.e9}),_.P("design:type",Object)],dt.prototype,"isGridViewEnabled",void 0);_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],dt.prototype,"watchFeedBigThumbs",null);
_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],dt.prototype,"thumbnailWidth",null);_.d([_.Z(),_.P("design:type",Object)],dt.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],dt.prototype,"collections",void 0);_.d([_.M("data","collections"),_.P("design:type",Object),_.P("design:paramtypes",[])],dt.prototype,"collectionStack",null);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],dt.prototype,"onYtNavigate",null);_.d([_.e({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],dt);
_.k(dt,"ytd-compact-radio-renderer",function(){if($pu!==void 0)return $pu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return $pu=S},{mode:1});var u9z;var vw=function(){return _.W.apply(this,arguments)||this};
_.C(vw,_.W);vw.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
vw.prototype.computeRendererStyle=function(S){return S.style?S.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.d([_.Z(),_.P("design:type",Object)],vw.prototype,"data",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vw.prototype,"rendererBehavior",void 0);_.d([_.Z({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.P("design:type",String)],vw.prototype,"rendererStyle",void 0);_.d([_.e({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],vw);
_.k(vw,"ytd-compact-text-promo-renderer",function(){if(u9z!==void 0)return u9z;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return u9z=S},{mode:1});var jVT;var Pw=function(){var S=_.W.apply(this,arguments)||this;S.isShortsStyle=!1;return S};
_.C(Pw,_.W);_.J=Pw.prototype;_.J.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"}}}};
_.J.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.Az(this.hostElement,"yt-disable-lockup-interaction"):_.Az(this.hostElement,"yt-enable-lockup-interaction"))};
_.J.isMetaBlockEmpty=function(S){return!S||!S.longBylineText&&!S.shortBylineText&&!S.shortViewCountText&&!S.viewCountText};
_.J.computeHasOneLineTitle=function(S){return this.forceOneLineTitle||!(S==null||!S.buttons)};
_.J.computeDisableInteraction=function(){var S;return!((S=this.data)==null?0:S.navigationEndpoint)};
_.J.hasSingularTopStandaloneBadge=function(){var S;return!((S=this.data)==null||!S.topStandaloneBadge)};
_.Rh.Object.defineProperties(Pw.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
shouldShowTopBadges:{configurable:!0,enumerable:!0,get:function(){return this.hasSingularTopStandaloneBadge()}},
topBadges:{configurable:!0,enumerable:!0,get:function(){var S;return this.hasSingularTopStandaloneBadge()?[(S=this.data)==null?void 0:S.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var S;return this.shouldShowTopBadges?((S=this.data)==null?void 0:S.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Pw.prototype.disableInteractionChanged=Pw.prototype.disableInteractionChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Pw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Pw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],Pw.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],Pw.prototype,"ytdLockupBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],Pw.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.P("design:type",Boolean)],Pw.prototype,"metaBlockEmpty",void 0);_.d([_.Z({selector:_.e9}),_.P("design:type",Object)],Pw.prototype,"isGridViewEnabled",void 0);_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pw.prototype,"watchFeedBigThumbs",null);
_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],Pw.prototype,"thumbnailWidth",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Pw.prototype,"isShortsStyle",void 0);_.d([_.Z(),_.P("design:type",Object)],Pw.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.P("design:type",Boolean)],Pw.prototype,"hasOneLineTitle",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],Pw.prototype,"hideThumbnail",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Pw.prototype,"forceOneLineTitle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.P("design:type",Boolean)],Pw.prototype,"disableInteraction",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Pw.prototype,"musicMetadataVideoLockup",void 0);
_.d([_.B0("disableInteraction"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pw.prototype,"disableInteractionChanged",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pw.prototype,"shouldShowTopBadges",null);_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],Pw.prototype,"topBadges",null);
_.d([_.M("shouldShowTopBadges","data"),_.P("design:type",Array),_.P("design:paramtypes",[])],Pw.prototype,"inlineMetadataBadges",null);_.d([_.M("shouldShowTopBadges"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pw.prototype,"shouldShowBadgesBelowMetadata",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Pw.prototype,"compactTitleClass",null);_.d([_.e({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Pw);
_.k(Pw,"ytd-compact-video-renderer",function(){if(jVT!==void 0)return jVT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return jVT=S},{mode:_.A2("kevlar_poly_si_batch_j067")?1:2});var lKd;_.i8("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var Lg=function(){return _.W.apply(this,arguments)||this};
_.C(Lg,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Lg.prototype,"data",void 0);_.d([_.e({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],Lg);
_.k(Lg,"ytd-counterfactual-renderer",function(){if(lKd!==void 0)return lKd;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return lKd=S},{mode:1});var YOu;var Eq=function(){var S=_.W.apply(this,arguments)||this;S.hidden=!1;return S};
_.C(Eq,_.W);Eq.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.fl().resolve(_.U8).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
Eq.prototype.computeHidden=function(S){return!!S};
_.Rh.Object.defineProperties(Eq.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}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Eq.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Eq.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.P("design:type",Object)],Eq.prototype,"hidden",void 0);_.d([_.M("data.label"),_.P("design:type",String),_.P("design:paramtypes",[])],Eq.prototype,"label",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Eq.prototype,"value",null);
_.d([_.e({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],Eq);
_.k(Eq,"ytd-dropdown-item-renderer",function(){if(YOu!==void 0)return YOu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return YOu=S},{mode:1});var Cz_;var HBd;var t_=function(){return _.W.apply(this,arguments)||this};
_.C(t_,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],t_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],t_.prototype,"data",void 0);_.d([_.Z({computed:"getSimpleString(data.label)"}),_.P("design:type",String)],t_.prototype,"label",void 0);_.d([_.e({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],t_);
_.k(t_,"ytd-navigation-dropdown-item-renderer",function(){if(HBd!==void 0)return HBd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return HBd=S},{mode:1});var VL=function(){var S=_.W.apply(this,arguments)||this;S.disabled=!1;S.value="";S.noLabelFloat=!1;S.noUnderline=!1;S.usePrimaryColor=!1;S.hasBackground=!1;S.verticalAlign="top";S.autosize=!1;S.minAutosizeWidth=100;S.autosizeFont="14px Roboto";return S};
_.C(VL,_.W);_.J=VL.prototype;_.J.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"}}}};
_.J.open=function(){this.inputEl.open()};
_.J.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.J.dataChanged=function(){this.reset()};
_.J.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("value-changed",this.value))};
_.J.stopPropagation=function(S){S.stopPropagation()};
_.J.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var S=this.canvas.getContext("2d");S&&(S.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(S.measureText(this.inputEl.value).width)+24)+"px")}};
_.J.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var S=0,c=this.data.entries.length;S<c;S++){var Q=this.data.entries[S],f;for(f in Q)if(Q.hasOwnProperty(f)){var U=Q[f];if("isSelected"in U&&U.isSelected)return"stringValue"in U?U.stringValue||"":"int32Value"in U?U.int32Value||0:0}}return null};
_.J.updateValueFromBinding=function(S){this.value=S.detail.value};
_.Rh.Object.defineProperties(VL.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 S=0,c=this.data.entries.length;S<c;S++){var Q=this.data.entries[S],f;for(f in Q)if(Q.hasOwnProperty(f)){var U=Q[f];if("isSelected"in U&&U.isSelected&&"label"in U)return this.ytRendererBehavior.getSimpleString(U.label)}}return null}}});
VL.prototype.autoSizeLabel=VL.prototype.autoSizeLabel;VL.prototype.stopPropagation=VL.prototype.stopPropagation;VL.prototype.valueChangedForBinding=VL.prototype.valueChangedForBinding;VL.prototype.dataChanged=VL.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VL.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],VL.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],VL.prototype,"disabled",void 0);_.d([_.Z(),_.P("design:type",Object)],VL.prototype,"value",void 0);_.d([_.Z(),_.P("design:type",Object)],VL.prototype,"noLabelFloat",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],VL.prototype,"noUnderline",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],VL.prototype,"theme",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],VL.prototype,"usePrimaryColor",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],VL.prototype,"hasBackground",void 0);_.d([_.Z(),_.P("design:type",Object)],VL.prototype,"verticalAlign",void 0);_.d([_.Z(),_.P("design:type",Object)],VL.prototype,"autosize",void 0);_.d([_.Z(),_.P("design:type",Object)],VL.prototype,"minAutosizeWidth",void 0);_.d([_.Z(),_.P("design:type",Object)],VL.prototype,"autosizeFont",void 0);
_.d([_.nU("#entries"),_.P("design:type",Object)],VL.prototype,"entries",void 0);_.d([_.nU("#input"),_.P("design:type",Object)],VL.prototype,"inputEl",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VL.prototype,"dataChanged",null);_.d([_.$n("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VL.prototype,"valueChangedForBinding",null);
_.d([_.FV("iron-overlay-opened"),_.FV("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],VL.prototype,"stopPropagation",null);_.d([_.FV("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VL.prototype,"autoSizeLabel",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],VL.prototype,"label",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],VL);
_.k(VL,"ytd-dropdown-renderer",function(){if(Cz_!==void 0)return Cz_;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Cz_=S},{mode:1});var DpJ;var R3=function(){var S=_.W.apply(this,arguments)||this;S.isConstrainedList=!1;return S};
_.C(R3,_.W);R3.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"}}}};
R3.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
R3.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
R3.prototype.computeViewAllHidden=function(S,c){return S||!c.viewAllEndpoint};
R3.prototype.fillRestIfNoShowMore=R3.prototype.fillRestIfNoShowMore;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],R3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],R3.prototype,"ytLazyListBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],R3.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],R3.prototype,"isConstrainedList",void 0);_.d([_.$n("data","canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R3.prototype,"fillRestIfNoShowMore",null);_.d([_.e({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],R3);
_.k(R3,"ytd-expanded-shelf-contents-renderer",function(){if(DpJ!==void 0)return DpJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return DpJ=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var pBu;var yL=function(){return _.W.apply(this,arguments)||this};
_.C(yL,_.W);yL.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}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],yL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yL.prototype,"data",void 0);_.d([_.e({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],yL);
_.k(yL,"ytd-feed-channel-filter-header-renderer",function(){if(pBu!==void 0)return pBu;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return pBu=S},{mode:1});var hXd;var qOH;var TY$;var o3=function(){return _.W.apply(this,arguments)||this};
_.C(o3,_.W);_.J=o3.prototype;_.J.onClick=function(S){var c,Q=(c=this.data)==null?void 0:c.sectionEndpoint;!_.RZ(_.t4(S),this.hostElement,["A".toString()])&&Q&&_.Az(this.hostElement,"yt-navigate",{endpoint:Q})};
_.J.computeHasSectionEndpoint=function(S){return(S==null?void 0:S.sectionEndpoint)!==void 0};
_.J.computeShowHeaderAsLink=function(S){return(S==null?void 0:S.header)!==void 0&&(S==null?void 0:S.sectionEndpoint)!==void 0};
_.J.computeShowSubheaderAsLink=function(S){return(S==null?void 0:S.subheader)!==void 0&&(S==null?void 0:S.sectionEndpoint)!==void 0&&(S==null?void 0:S.header)===void 0};
_.J.getHeaderAsLinkClass=function(S){var c=[],Q;(S==null?0:(Q=S.headerIcon)==null?0:Q.iconType)&&c.push("header-link-active");return c.join(" ")};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],o3.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],o3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],o3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],o3.prototype,"data",void 0);
_.d([_.Z({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],o3.prototype,"hasSectionEndpoint",void 0);_.d([_.Z({computed:"computeShowHeaderAsLink(data)"}),_.P("design:type",Boolean)],o3.prototype,"showHeaderAsLink",void 0);_.d([_.Z({computed:"computeShowSubheaderAsLink(data)"}),_.P("design:type",Boolean)],o3.prototype,"showSubheaderAsLink",void 0);_.d([_.e({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],o3);
_.k(o3,"ytd-medical-panel-section-renderer",function(){if(TY$!==void 0)return TY$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return TY$=S},{mode:1});var mi=function(){var S=_.W.apply(this,arguments)||this;S.isExpanded=!1;S.roundedContainer=!0;S.skipRoundingTop=!1;S.toggleExpandableSection=function(){S.isExpanded=!S.isExpanded};
return S};
_.C(mi,_.W);
mi.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]]"}}}}}};
mi.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
mi.prototype.dataChanged=mi.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mi.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],mi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mi.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],mi.prototype,"isExpanded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mi.prototype,"roundedContainer",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],mi.prototype,"skipRoundingTop",void 0);_.d([_.Z(),_.P("design:type",Object)],mi.prototype,"toggleExpandableSection",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mi.prototype,"dataChanged",null);_.d([_.e({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],mi);
_.k(mi,"ytd-medical-panel-content-renderer",function(){if(qOH!==void 0)return qOH;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return qOH=S},{mode:1});_.i8("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var SK=function(){var S=_.W.apply(this,arguments)||this;S.roundedContainer=!0;S.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");S.hasTitle=!1;S.linkIcon="OPEN_IN_NEW";S.isDismissed=!1;return S};
_.C(SK,_.W);
SK.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"}}}};
SK.prototype.computeHasTitle=function(S){return!(S==null||!S.title)};
SK.prototype.onClick=function(S){var c,Q=(c=this.data)==null?void 0:c.headerEndpoint;!_.RZ(_.t4(S),this.hostElement,["BUTTON".toString()])&&Q&&this.ytComponentBehavior.resolveCommand(Q)};
_.Rh.Object.defineProperties(SK.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 S;return((S=this.data)==null?void 0:S.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:S.disableBottomDivider)||!((c=this.data)==null?0:c.title)}}});
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],SK.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],SK.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],SK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],SK.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],SK.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],SK.prototype,"roundedContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],SK.prototype,"amsterdamEnabled",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.P("design:type",Object)],SK.prototype,"hasTitle",void 0);
_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.background"),_.P("design:type",Object),_.P("design:paramtypes",[])],SK.prototype,"background",null);_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.titleStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],SK.prototype,"titleStyle",null);
_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.M("data.titleStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],SK.prototype,"showLinkIcon",null);_.d([_.Z(),_.P("design:type",String)],SK.prototype,"linkIcon",void 0);_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],SK.prototype,"hideDivider",null);
_.d([_.Z({selectorArgs:["data.dismissStateEntityKey"],selector:function(S,c){S=_.FT(S.entities,"dismissState",c);return(S==null?void 0:S.isDismissed)||(S==null?void 0:S.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(S==null?void 0:S.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.P("design:type",Object)],SK.prototype,"isDismissed",void 0);_.d([_.e({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],SK);
_.k(SK,"ytd-info-panel-container-renderer",function(){if(hXd!==void 0)return hXd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return hXd=S},{mode:1});var wBu;_.i8("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var cD=function(){var S=_.W.apply(this,arguments)||this;S.modernTypography=_.u("web_modern_typography");return S};
_.C(cD,_.W);cD.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
cD.prototype.computeStyle=function(S){return S?S:""};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cD.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.P("design:type",String)],cD.prototype,"titleStyle",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],cD.prototype,"modernTypography",void 0);_.d([_.e({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],cD);
_.k(cD,"ytd-item-section-header-renderer",function(){if(wBu!==void 0)return wBu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wBu=S},{mode:1});var sV_;var Mbz,iBe=function(){return Mbz!==void 0?Mbz:Mbz=document.createElement("template")};
document.head.appendChild(iBe().content);var ZBd;_.Qs=new _.Sg("VOTING_ANIMATION_CONTROLLER_TOKEN");var Wfe=_.y_(function(S){var c=S.data;var Q=_.EH("div"),f=_.EH("div");S=_.A(_.ny("VOTE_STATUS_NONE",void 0,"FVF7mc"));var U=S.next().value,a=S.next().value,X=_.b9(oPY,function(){var N;return(N=c())==null?void 0:N.entityKey}),z=_.u("web_enable_voting_animation")||_.u("enable_music_web_cairo_voting_animation");
_.wC(function(){var N;((N=c().initialState)==null?0:N.status)&&a(c().initialState.status)});
var x=function(){var N,l,H=(l=(N=c().initialState)==null?void 0:N.votes)!=null?l:0,q;N=(q=c().initialState)==null?void 0:q.status;return N==="VOTE_STATUS_UPVOTED"?H-1:N==="VOTE_STATUS_DOWNVOTED"?H+1:H},I=function(){return U()==="VOTE_STATUS_UPVOTED"?x()+1:U()==="VOTE_STATUS_DOWNVOTED"?x()-1:x()},n=function(N){var l=N?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
a(l);var H=I(),q=_.fl().resolve(_.QS(_.Qs)),w=X();w&&(N&&(w==null?0:w.upvoteDefaultButtonOnTap)?_.kz(w.upvoteDefaultButtonOnTap,{form:{element:Q.value},disableClickTracking:!0}):(w==null?0:w.upvoteToggledButtonOnTap)&&_.kz(w.upvoteToggledButtonOnTap,{form:{element:Q.value},disableClickTracking:!0}));var g;N=(g=w==null?void 0:w.enableOptimisticReordering)!=null?g:c().enableOptimisticReordering;z&&q&&c().itemId&&N&&GjT(q,c().itemId,H,l)},b=function(N){var l=N?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
a(l);var H=I(),q=_.fl().resolve(_.QS(_.Qs)),w=X();w&&(N&&(w==null?0:w.downvoteDefaultButtonOnTap)?_.kz(w.downvoteDefaultButtonOnTap,{form:{element:f.value},disableClickTracking:!0}):(w==null?0:w.downvoteToggledButtonOnTap)&&_.kz(w.downvoteToggledButtonOnTap,{form:{element:f.value},disableClickTracking:!0}));var g;N=(g=w==null?void 0:w.enableOptimisticReordering)!=null?g:c().enableOptimisticReordering;z&&q&&c().itemId&&N&&GjT(q,c().itemId,H,l)};
S={};S=_.n4("ytVotingViewModelVoteCount",(S.ytVotingViewModelVoteCountDisabled=function(){return c().isDisabled},S));
return _.B("voting-view-model",{class:"ytVotingViewModelHost"},_.B("div",{el:Q},_.B(_.h8,{data:function(){var N=_.Y(c().upvoteButton,_.CS);return{toggleButtonViewModel:Object.assign({},N,{isToggled:U()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(N){return _.B(_.qs,{data:N.data,
onToggle:n})}})),_.B("div",{class:S},function(){var N,l,H;
return U()==="VOTE_STATUS_UPVOTED"?(N=c().initialState)==null?void 0:N.compactVotesUpvoted:U()==="VOTE_STATUS_DOWNVOTED"?(l=c().initialState)==null?void 0:l.compactVotesDownvoted:(H=c().initialState)==null?void 0:H.compactVotes}),_.B("div",{el:f},_.B(_.h8,{data:function(){var N=_.Y(c().downvoteButton,_.CS);
return{toggleButtonViewModel:Object.assign({},N,{isToggled:U()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(N){return _.B(_.qs,{data:N.data,
onToggle:b})}})))},"Ib");_.f4(_.y_(function(S){var c=S.data;return _.B("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.B("div",{class:_.n4("ytEngagementBarViewModelEngagementBarWrapper",S.className)},_.B(_.h8,{data:function(){return c().actions}},{votingViewModel:Wfe})))},"Jb"),"engagement-bar-view-model",{props:{data:_.y$,
className:_.y$}});var f5=function(){var S=_.W.apply(this,arguments)||this;S.playlistVotingAnimationEnabled=_.u("web_enable_voting_animation");S.downloadProgress=0;S.transferState="TRANSFER_STATE_UNKNOWN";S.downloadState="DOWNLOAD_STATE_UNKNOWN";S.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";S.offlineVideoPolicyExpirationTimestamp=0;return S};
_.C(f5,_.W);_.J=f5.prototype;_.J.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"}}}};
_.J.canReorderChanged=function(){this.persistentDragHandle=_.u("kevlar_playlist_drag_handles")&&this.canReorder};
_.J.onDrag=function(){if(this.thumbnail){var S=_.Ur(this.thumbnail).querySelector("yt-image");S&&(S.shouldRenderLazy=!1)}};
_.J.onMenuOverlayChanged=function(S,c){this.menuOpened=c};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.J.onContentsTap=function(S){var c,Q=(c=this.data)==null?void 0:c.serviceEndpoints;if(Q&&Q.length===1&&_.Y(Q[0],n2T)&&!_.RZ(_.t4(S),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(Q[0]);else{var f;(c=(f=this.data)==null?void 0:f.navigationEndpoint)&&_.u("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?g4d(_.fl().resolve(_.ra),c):(_.bn().playlistSuggestionsShelfActivation=
!0,_.eX_(_.fl().resolve(_.ra),c)):c&&!_.RZ(_.t4(S),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.u("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.Az(this.hostElement,"yt-navigate",{endpoint:c}):this.ytComponentBehavior.resolveCommand(c))}};
_.J.computeStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(S){return S==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:200};
_.J.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=xiR(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))}};
_.J.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.J.dataChanged=function(){if(this.data){var S,c,Q,f=((S=this.downloadRenderData)==null?void 0:S.badges)&&((c=this.downloadRenderData)==null?void 0:c.badges)!==((Q=this.data)==null?void 0:Q.badges),U,a,X;S=((U=this.downloadRenderData)==null?void 0:U.thumbnailOverlays)&&((a=this.downloadRenderData)==null?void 0:a.thumbnailOverlays)!==((X=this.data)==null?void 0:X.thumbnailOverlays);(!this.downloadRenderData||f||S)&&this.downloadStateChanged()}};
_.J.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var S,c,Q=(S=this.data.menu)==null?void 0:(c=S.menuRenderer)==null?void 0:c.items;if(Q)for(S=_.A(Q),c=S.next();!c.done;c=S.next())if(c=c.value,Q=void 0,_.Y((Q=c.menuServiceItemRenderer)==null?void 0:Q.serviceEndpoint,_.MB)){var f=Q=void 0,U=void 0;c=(Q=c)==null?void 0:(f=Q.menuServiceItemRenderer)==null?void 0:(U=f.serviceEndpoint)==null?void 0:U.playlistEditEndpoint;U=f=void 0;if(Q=(f=c)==null?void 0:(U=f.actions)==null?void 0:
U[0])f=void 0,Q.setVideoId=(f=this.data)==null?void 0:f.setVideoId;U=f=Q=void 0;if(c=(Q=c)==null?void 0:(f=Q.clientActions)==null?void 0:(U=f[0])==null?void 0:U.playlistRemoveVideosAction)Q=void 0,c.setVideoIds=[(Q=this.data)==null?void 0:Q.setVideoId]}}};
_.Rh.Object.defineProperties(f5.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
f5.prototype.setVideoIdChanged=f5.prototype.setVideoIdChanged;f5.prototype.dataChanged=f5.prototype.dataChanged;f5.prototype.downloadStateChanged=f5.prototype.downloadStateChanged;f5.prototype.onMenuOverlayChanged=f5.prototype.onMenuOverlayChanged;f5.prototype.canReorderChanged=f5.prototype.canReorderChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],f5.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],f5.prototype,"ytdReduxBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],f5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],f5.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],f5.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],f5.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],f5.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],f5.prototype,"canReorder",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],f5.prototype,"menuOpened",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],f5.prototype,"handleIsHovered",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],f5.prototype,"persistentDragHandle",void 0);_.d([_.Z(),_.P("design:type",Object)],f5.prototype,"downloadRenderData",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],f5.prototype,"styleType",void 0);_.d([_.Z({computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],f5.prototype,"thumbnailWidth",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],f5.prototype,"isDownloads",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],f5.prototype,"playlistVotingAnimationEnabled",void 0);
_.d([_.Z({selector:Gh,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],f5.prototype,"downloadProgress",void 0);_.d([_.Z(),_.P("design:type",Number)],f5.prototype,"relativeDateReference",void 0);_.d([_.Z({selector:_.iZ,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],f5.prototype,"transferState",void 0);_.d([_.Z({selector:ikc,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],f5.prototype,"downloadState",void 0);
_.d([_.Z({selector:uPp,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],f5.prototype,"offlinePolicyAction",void 0);_.d([_.Z({selector:jJc,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],f5.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);_.d([_.Z({selector:Yax,selectorArgs:["data.videoId"]}),_.P("design:type",Object)],f5.prototype,"entityInfo",void 0);_.d([_.Z({selector:_.sm}),_.P("design:type",Boolean)],f5.prototype,"miniplayerIsActive",void 0);
_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],f5.prototype,"playlistVideoId",null);_.d([_.nU("#thumbnail"),_.P("design:type",Object)],f5.prototype,"thumbnail",void 0);_.d([_.$n("canReorder"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f5.prototype,"canReorderChanged",null);
_.d([_.FV("yt-menu-overlay-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Boolean]),_.P("design:returntype")],f5.prototype,"onMenuOverlayChanged",null);_.d([_.$n("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f5.prototype,"downloadStateChanged",null);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f5.prototype,"dataChanged",null);_.d([_.$n("data.setVideoId"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],f5.prototype,"setVideoIdChanged",null);_.d([_.e({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],f5);
_.k(f5,"ytd-playlist-video-renderer",function(){if(ZBd!==void 0)return ZBd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);S.content.insertBefore(iBe().content.cloneNode(!0),S.content.firstChild);return ZBd=S},{mode:1});var kjs;var UF=function(){return _.W.apply(this,arguments)||this};
_.C(UF,_.W);_.d([_.Z(),_.P("design:type",Object)],UF.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],UF.prototype,"rendererBehavior",void 0);_.d([_.e({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],UF);
_.k(UF,"ytd-premium-browse-footer-renderer",function(){if(kjs!==void 0)return kjs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return kjs=S},{mode:1});var rR$;var JQ=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return S};
_.C(JQ,_.W);_.J=JQ.prototype;_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.handleDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.computeHeaderLogoThumbnail=function(S,c){if(S)return c?S.darkLogo:S.lightLogo};
_.J.computeHeaderLogoHeight=function(S,c){var Q,f,U;return(S=(Q=this.computeHeaderLogoThumbnail(S,c))==null?void 0:(f=Q.thumbnails)==null?void 0:(U=f[0])==null?void 0:U.height)&&S%31===0?"31":"24"};
_.J.computeHeaderLogoMarginBottom=function(S,c){return this.computeHeaderLogoHeight(S,c)==="24"?"0":"-7"};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],JQ.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],JQ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],JQ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],JQ.prototype,"isDarkTheme",void 0);_.d([_.Z({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.P("design:type",Object)],JQ.prototype,"themeLogo",void 0);
_.d([_.Z({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.P("design:type",String)],JQ.prototype,"logoHeight",void 0);_.d([_.Z({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.P("design:type",String)],JQ.prototype,"logoMarginBottom",void 0);_.d([_.e({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],JQ);
_.k(JQ,"ytd-primetime-promo-header-renderer",function(){if(rR$!==void 0)return rR$;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return rR$=S},{mode:1});var dpd;var Pze=_.y_(function(S){var c=_.$d(function(U){var a;(a=S.onClick)==null||a.call(S,U)}),Q={},f={};
return _.B("yt-shelf-header-layout",{class:_.n4("shelf-header-layout-wiz",(Q["shelf-header-layout-wiz--disable-horizontal-padding"]=S.disableHorizontalPadding,Q["shelf-header-layout-wiz--disable-vertical-padding"]=S.disableVerticalPadding,Q["shelf-header-layout-wiz--responsive"]=S.useResponsiveLayout,Q["shelf-header-layout-wiz--narrow"]=function(){var U,a;return((U=S.useResponsiveLayout)==null?void 0:U.call(S))&&((a=S.forceSmallLayout)==null?void 0:a.call(S))},Q["shelf-header-layout-wiz--is-overlay"]=
S.isOverlay,Q["shelf-header-layout-wiz--tappable"]=!!S.onClick,Q)),
"on:click":c,tabindex:S.onClick?0:void 0},_.B(_.K,{cond:S.leadingIcon,then:function(U){return _.B("div",{class:"shelf-header-layout-wiz__leading-icon"},_.B(_.C4,{icon:U}))},
else:function(){return _.B(_.K,{cond:S.hasLeadingImage,then:function(){var U,a={};return _.B("div",{class:_.n4("shelf-header-layout-wiz__leading-image",(a["shelf-header-layout-wiz__leading-image--circular-image"]=S.circularImage,a))},(U=S.leadingImage)==null?void 0:U.call(S))}})}}),_.B("div",{class:"shelf-header-layout-wiz__label-container"},_.B(_.K,{cond:S.hasSuperlabel,
then:function(){var U;return _.B("div",{class:"shelf-header-layout-wiz__superlabel"},(U=S.superlabel)==null?void 0:U.call(S))}}),_.B("div",{class:"shelf-header-layout-wiz__title-row"},_.B(v4u,{text:S.title,
className:_.n4("shelf-header-layout-wiz__title",(f["shelf-header-layout-wiz__title--small-title"]=S.forceSmallLayout,f)),tagLevel:S.tagLevel}),_.B(_.K,{cond:S.hasDetail,then:function(){var U;return _.B("div",{class:"shelf-header-layout-wiz__detail"},(U=S.detail)==null?void 0:U.call(S))}})),_.B(_.K,{cond:S.hasSublabel,
then:function(){var U;return _.B("div",{class:"shelf-header-layout-wiz__sublabel"},(U=S.sublabel)==null?void 0:U.call(S))}})),_.B(_.K,{cond:S.hasTrailingActions,
then:function(){var U;return _.B("div",{class:"shelf-header-layout-wiz__trailing-actions"},(U=S.trailingActions)==null?void 0:U.call(S))}}))},"Kb");
Pze.idomCompat={callbacks:{title:!0,detail:!0,sublabel:!0,superlabel:!0,leadingImage:!0,trailingActions:!0,onClick:!0}};
var v4u=_.y_(function(S){var c=S.text;var Q=S.className;var f=S.tagLevel;return _.B(_.DJ,null,_.B(_.YC,{when:function(){return(f==null?void 0:f())===0}},function(){return _.B("h2",{class:Q},c())}),_.B(_.YC,{when:function(){return(f==null?void 0:f())===1}},function(){return _.B("h3",{class:Q},c())}),_.B(_.YC,{when:function(){return(f==null?void 0:f())===2}},function(){return _.B("h4",{class:Q},c())}),_.B(_.HY,null,function(){return _.B("h2",{class:Q},c())}))},"Lb");var tb_,Lfu,E4J;_.aO=_.y_(function(S){var c=S.data;return _.B("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:_.Yd({"background-color":function(){return m8z(c().backgroundColor)?_.gh(m8z(c().backgroundColor)):void 0}})},_.B(Pze,{hasDetail:!1,
title:function(){return _.B(_.mw,{text:function(){return c().headline}})},
hasTitle:!0,sublabel:function(){return _.B(Lfu,{data:c})},
hasSublabel:function(){return!!c().sublabel||!!c().bottomBadge},
superlabel:function(){return _.B(E4J,{data:c})},
hasSuperlabel:function(){return!!c().superlabel||!!c().topBadge},
leadingImage:function(){return _.B(tb_,{leadingAccessory:function(){return c().leadingAccessory}})},
hasLeadingImage:function(){return!!c().leadingAccessory},
trailingActions:function(){return _.B(_.h8,{data:function(){return c().trailingActions}},{flexibleActionsViewModel:hd})},
hasTrailingActions:function(){return!!c().trailingActions},
disableHorizontalPadding:S.disableHorizontalPadding,disableVerticalPadding:S.disableVerticalPadding,forceSmallLayout:S.forceSmallLayout,useResponsiveLayout:S.useResponsiveLayout,isOverlay:S.isOverlay,onClick:function(Q){if(_.PK(c().rendererContext)){var f=_.vK(c().rendererContext);f&&_.WI(f,{form:{element:Q.target,event:Q}})}}}))},"Mb");
tb_=_.y_(function(S){var c=S.leadingAccessory;return _.B(_.ak,null,_.B(_.K,{cond:function(){var Q;return(Q=c().image)!=null?Q:_.oi(c().themedImage)},
then:function(Q){return _.B(_.RW,{data:Q,alt:"",preserveWidth:!0,preserveHeight:!0})}}),_.B(_.K,{cond:function(){return _.Y(c().avatar,_.Ee)},
then:function(Q){return _.B(_.p3,{data:Q})}}))},"Nb");
Lfu=_.y_(function(S){var c=S.data;return _.B(_.ak,null,_.B(_.K,{cond:function(){return _.Y(c().bottomBadge,xBh)},
then:function(Q){var f={};return _.B(_.S7,{data:Q,class:_.n4((f.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!Q()&&!!c().sublabel},f))})}}),_.B(_.K,{cond:function(){return c().sublabel},
then:function(Q){return _.B(_.mw,{text:Q})}}))},"Ob");
E4J=_.y_(function(S){var c=S.data;return _.B(_.ak,null,_.B(_.K,{cond:function(){return _.Y(c().topBadge,xBh)},
then:function(Q){var f={};return _.B(_.S7,{data:Q,class:_.n4((f.ytSectionHeaderViewModelBadgeWithLabel=function(){return!!Q()&&!!c().superlabel},f))})}}),_.B(_.K,{cond:function(){return c().superlabel},
then:function(Q){return _.B(_.mw,{text:Q})}}))},"Pb");_.f4(_.aO,"yt-section-header-view-model",{props:{data:_.y$,className:_.y$,disableHorizontalPadding:_.y$,disableVerticalPadding:_.y$,forceSmallLayout:_.y$,useResponsiveLayout:_.y$,isOverlay:_.y$}});_.i8("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var AQ=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return S};
_.C(AQ,_.W);_.J=AQ.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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"}}}};
_.J.onDataChange=function(){var S=this;_.tO(this,function(){S.updateItemVisibility()})};
_.J.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S,this.updateItemVisibility())};
_.J.updateItemVisibility=function(){var S=this;this.data&&this.data.panels&&_.Ur(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(c,Q){c.hidden=Q>S.elementsPerRow-1})};
_.J.requestElementsPerRow=function(){_.Az(this.hostElement,"yt-request-elements-per-row")};
AQ.prototype.onDataChange=AQ.prototype.onDataChange;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],AQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],AQ.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],AQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],AQ.prototype,"actionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],AQ.prototype,"data",void 0);_.d([_.Z({value:3}),_.P("design:type",Number)],AQ.prototype,"elementsPerRow",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AQ.prototype,"onDataChange",null);_.d([_.e({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],AQ);
_.k(AQ,"ytd-primetime-promo-renderer",function(){if(dpd!==void 0)return dpd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return dpd=S},{mode:1});var Vbh;var XQ=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return S};
_.C(XQ,_.W);XQ.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
XQ.prototype.handleButtonRefreshAction=function(S){if(S=_.Y(S,D7H))this.set("data.button",S.membershipButton),this.notifyPath("data.button")};
_.Rh.Object.defineProperties(XQ.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:(c=S.avatars)==null?void 0:c.slice(0,8))||[]}}});
_.d([_.Z(),_.P("design:type",Object)],XQ.prototype,"data",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],XQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],XQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],XQ.prototype,"rendererBehavior",void 0);_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],XQ.prototype,"avatars",null);
_.d([_.e({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],XQ);
_.k(XQ,"ytd-recognition-shelf-renderer",function(){if(Vbh!==void 0)return Vbh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Vbh=S},{mode:1});var RXd;var yRT;var OF=function(){var S=_.W.apply(this,arguments)||this;S.modernButtons=_.u("web_modern_buttons");return S};
_.C(OF,_.W);_.J=OF.prototype;
_.J.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]]"}}}}}};
_.J.dataChanged=function(){this.collapsed=!0};
_.J.computeVisibleItems=function(S,c){return S!==void 0&&S.items?c?S.items.slice(0,this.data.collapsedItemCount):S.items:[]};
_.J.computeHideShowMore=function(S,c,Q){return S>=c||!Q};
_.J.computeHideShowAll=function(S,c,Q){return!(S&&c)||Q};
_.J.onMoreClick=function(){this.collapsed=!1};
_.Rh.Object.defineProperties(OF.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.u("use_modern_typography_on_search")}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Al("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.u("use_modern_typography_on_search")}}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
OF.prototype.dataChanged=OF.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],OF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],OF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],OF.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],OF.prototype,"isSearch",void 0);
_.d([_.Z({computed:"computeVisibleItems(data,collapsed)"}),_.P("design:type",Array)],OF.prototype,"visibleItems",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],OF.prototype,"collapsed",void 0);_.d([_.Z({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.P("design:type",Boolean)],OF.prototype,"hideShowMore",void 0);
_.d([_.Z({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.P("design:type",Boolean)],OF.prototype,"hideShowAll",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],OF.prototype,"modernButtons",void 0);_.d([_.M("isSearch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],OF.prototype,"typographyBump",null);
_.d([_.M("isSearch"),_.P("design:type",Object),_.P("design:paramtypes",[])],OF.prototype,"lockupExperiments",null);_.d([_.M("isSearch"),_.P("design:type",String),_.P("design:paramtypes",[])],OF.prototype,"thumbnailWidth",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OF.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],OF);
_.k(OF,"ytd-vertical-list-renderer",function(){if(yRT!==void 0)return yRT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return yRT=S},{mode:1});var o4e=_.oK(["#"]);_.i8("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var zU=function(){var S=_.W.apply(this,arguments)||this;S.isConstrainedList=!1;S.modernTypography=_.u("web_modern_typography");return S};
_.C(zU,_.W);_.J=zU.prototype;
_.J.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"}}}};
_.J.computeThumbnailStyle=function(S){return S||""};
_.J.computePlaceAnnotationUnderTitle=function(){var S;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((S=this.data)==null?void 0:S.thumbnailStyle)||"")};
_.J.computeHrefWithDefault=function(S){return this.ytComponentBehavior.computeHref_(S)||_.Cc(o4e)};
_.J.computeIsPromoShelf=function(S){var c;return(S=S==null?void 0:(c=S[0])==null?void 0:c.metadataBadgeRenderer)?S.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.J.computePlaceBadgeBesideTitle=function(S){var c;return(S==null?0:(c=S[0])==null?0:c.metadataBadgeRenderer)?!this.computeIsPromoShelf(S):!1};
_.J.computeMenuIcon=function(S){return this.computeIsPromoShelf(S)?"yt-icons:more_vert":"yt-icons:more"};
_.J.onDataChange=function(){var S,c;((S=this.data)==null?0:(c=S.content)==null?0:c.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.J.onLockupRequested=function(S){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&S.detail&&S.detail.videoIds){for(var c=this.data.content.gridRenderer.items,Q=new Set,f=_.A(S.detail.videoIds),U=f.next();!U.done;U=f.next())Q.add(U.value);S.detail.returnValue=c.filter(function(a){return a.gridVideoRenderer&&a.gridVideoRenderer.videoId&&Q.has(a.gridVideoRenderer.videoId)}).map(function(a){return a.gridVideoRenderer})}};
_.J.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
zU.prototype.onLockupRequested=zU.prototype.onLockupRequested;zU.prototype.onDataChange=zU.prototype.onDataChange;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],zU.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zU.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],zU.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.w9),_.P("design:type",Object)],zU.prototype,"ironResizableBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],zU.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],zU.prototype,"isSearch",void 0);_.d([_.Z(),_.P("design:type",Object)],zU.prototype,"isConstrainedList",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("kevlar_fluid_dismiss")}}),
_.P("design:type",Boolean)],zU.prototype,"enableFluidDismiss",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.P("design:type",String)],zU.prototype,"thumbnailStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zU.prototype,"modernTypography",void 0);_.d([_.Z({computed:"computeMenuIcon(data.badges)"}),_.P("design:type",String)],zU.prototype,"menuIcon",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zU.prototype,"onDataChange",null);_.d([_.FV("yt-lockup-requested"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],zU.prototype,"onLockupRequested",null);_.d([_.e({is:"ytd-shelf-renderer",disableElementRegistration:!0})],zU);
_.k(zU,"ytd-shelf-renderer",function(){if(RXd!==void 0)return RXd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return RXd=S},{mode:1});var mpd;var x_=function(){return _.W.apply(this,arguments)||this};
_.C(x_,_.W);x_.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.Rh.Object.defineProperties(x_.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],x_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],x_.prototype,"data",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],x_.prototype,"isPlaylist",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],x_.prototype,"isClipList",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],x_.prototype,"isPlaylistPageWithFilters",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],x_.prototype,"hasTitle",null);_.d([_.Z(),_.M("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.P("design:type",Object),_.P("design:paramtypes",[])],x_.prototype,"isRightAligned",null);
_.d([_.e({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],x_);
_.k(x_,"ytd-sort-filter-header-renderer",function(){if(mpd!==void 0)return mpd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return mpd=S},{mode:1});var Sih;var FQ=function(){var S=_.W.apply(this,arguments)||this;S.enableRightArrowHidden=_.u("channel_details_shelf_resize_observer");return S};
_.C(FQ,_.W);FQ.prototype.attached=function(){var S=this;this.enableRightArrowHidden&&(this.JSC$14296_throttledOnResize=new _.S0(function(){S.ytdHorizontalListBehavior.reset()},200,this),this.resizeObserver=new ResizeObserver(function(){var c;
(c=S.JSC$14296_throttledOnResize)==null||c.fire()}),this.resizeObserver.observe(this.hostElement))};
FQ.prototype.detached=function(){if(this.enableRightArrowHidden){var S;(S=this.resizeObserver)==null||S.disconnect();var c;(c=this.JSC$14296_throttledOnResize)==null||c.dispose()}};
FQ.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]]"}}}}}};
FQ.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.Rh.Object.defineProperties(FQ.prototype,{hideRightArrow:{configurable:!0,enumerable:!0,get:function(){return this.enableRightArrowHidden&&this.ytdHorizontalListBehavior.atEnd}},
creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.u("enable_creator_details_shelf_m2")){var S=[],c;((c=this.data)==null?0:c.creatorVideosButton)&&S.push(this.data.creatorVideosButton);var Q;((Q=this.data)==null?0:Q.creatorAboutButton)&&S.push(this.data.creatorAboutButton);c=_.A(this.data.creatorCustomUrlButtons||[]);for(Q=c.next();!Q.done;Q=c.next())S.push(Q.value);return S}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.u("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.QW.YtdHorizontalListBehavior),_.P("design:type",Object)],FQ.prototype,"ytdHorizontalListBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],FQ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],FQ.prototype,"engagementPanel",void 0);
_.d([_.Z(),_.P("design:type",Object)],FQ.prototype,"enableRightArrowHidden",void 0);_.d([_.M("enableRightArrowHidden","atEnd"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FQ.prototype,"hideRightArrow",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],FQ.prototype,"creatorCustomUrlButtons",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data","creatorCustomUrlButtons"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FQ.prototype,"showCreatorCustomUrlButtons",null);_.d([_.M("showCreatorCustomUrlButtons"),_.P("design:type",Number),_.P("design:paramtypes",[])],FQ.prototype,"channelAvatarSize",null);_.d([_.e({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],FQ);
_.k(FQ,"ytd-video-description-infocards-section-renderer",function(){if(Sih!==void 0)return Sih;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Sih=S},{mode:_.A2("kevlar_poly_si_batch_j067")?1:2});var cF_;var BD=function(){return _.W.apply(this,arguments)||this};
_.C(BD,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],BD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BD.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.infoIcon)"}),_.P("design:type",Object)],BD.prototype,"infoIcon",void 0);_.d([_.e({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],BD);
_.k(BD,"ytd-eom-settings-disclaimer-renderer",function(){if(cF_!==void 0)return cF_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return cF_=S},{mode:1});var Q9J;var IO=function(){return _.W.apply(this,arguments)||this};
_.C(IO,_.W);_.Rh.Object.defineProperties(IO.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.suppressPaddingDisclaimer)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],IO.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],IO.prototype,"componentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],IO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],IO.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],IO.prototype,"suppressPaddingDisclaimer",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],IO);
_.k(IO,"ytd-product-list-header-renderer",function(){if(Q9J!==void 0)return Q9J;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Q9J=S},{mode:1});var f7u;var n5=function(){return _.W.apply(this,arguments)||this};
_.C(n5,_.W);n5.prototype.computeThumbnailStyle=function(S){if(S&&(S=_.WV(S)))return"background-color:"+S+";"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],n5.prototype,"rendererBehaviors",void 0);_.d([_.Z(),_.P("design:type",Object)],n5.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],n5);
_.k(n5,"ytd-hashtag-tile-renderer",function(){if(f7u!==void 0)return f7u;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return f7u=S},{mode:1});var UAh;var bD=function(){return _.W.apply(this,arguments)||this};
_.C(bD,_.W);bD.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}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bD.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],bD);
_.k(bD,"ytd-sponsorships-alert-renderer",function(){if(UAh!==void 0)return UAh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return UAh=S},{mode:1});var JF_;var NX=function(){return _.W.apply(this,arguments)||this};
_.C(NX,_.W);NX.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.Rh.Object.defineProperties(NX.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.u("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.u("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.d([_.p(_.ig),_.P("design:type",Object)],NX.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],NX.prototype,"ytdLockupBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],NX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],NX.prototype,"ytRendererBehavior",void 0);_.d([_.Z({selector:_.e9}),_.P("design:type",Object)],NX.prototype,"isGridViewEnabled",void 0);
_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],NX.prototype,"watchFeedBigThumbs",null);_.d([_.M("isGridViewEnabled"),_.Z({reflectToAttribute:!0}),_.P("design:type",String),_.P("design:paramtypes",[])],NX.prototype,"thumbnailWidth",null);_.d([_.Z(),_.P("design:type",Object)],NX.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],NX);
_.k(NX,"ytd-compact-movie-renderer",function(){if(JF_!==void 0)return JF_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return JF_=S},{mode:1});var a7i;var AF_;var Xhe=_.WY("HTML_DIR")==="rtl",K5=function(){var S=_.W.apply(this,arguments)||this;S.engagementPanel=!1;S.maxLines=2;S.expandButtonOffset=0;S.showExpandButton=!1;S.isTruncated=!1;S.isExpanded=!1;S.currentSnippetType=2;S.alwaysShowExpandButton=!1;S.JSC$14313_lastWidth=NaN;S.observer=null;S.left=0;S.right=0;S.mid=0;S.longestSnippetLength=0;S.isFinalSnippet=!1;S.isFirstMutation=!1;S.isResetMutation=!1;S.OVERFLOW_THRESHOLD=5;return S};
_.C(K5,_.W);_.J=K5.prototype;_.J.onClick=function(S){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;if((c=window.getSelection())==null||!c.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.J.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.J.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.J.updateTextOnSnippetTypeChange=function(){_.u("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.J.setUpBinarySearch=function(S){S=S*this.maxLines/8;this.left=0;var c,Q;this.right=Math.min(S*2,(Q=(c=this.simpleText)==null?void 0:c.length)!=null?Q:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.J.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.J.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.i5(new _.Yr("AttributedSnippet is empty when the description is not empty",this.text))};
_.J.mutationCallback=function(){if(this.observer!=null){var S=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var c=Math.floor(S*this.maxLines/8);this.setSnippetText(this.text,c);c!==0||this.attributedTextIsEmpty()||_.i5(new _.Yr("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;S=S*this.maxLines/8;this.left=0;var Q;this.right=Math.min(S*2,(Q=(c=this.simpleText)==null?void 0:c.length)!=null?Q: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)}}};
_.J.mutationObserve=function(S){var c=this;this.observer||(this.observer=new MutationObserver(function(){c.mutationCallback()}));
this.observer.observe(S,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.J.attached=function(){var S=this;_.tO(this,function(){S.resize()})};
_.J.isExpandedChanged=function(){_.Az(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.J.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)};
_.J.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var S="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((Xhe?"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",S);this.snippetContainer.style.setProperty("mask-image",
S)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(Xhe?"right":"left",this.expandButtonOffset+"px")};
_.J.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.J.setSnippetText=function(S,c){S||(S={});if(_.EX(S)){var Q=PI(S,c);Q.attachmentRuns||Q.commandRuns||Q.decorationRuns||Q.styleRuns||Q.alignment||Q.lineBreakMode?this.attributedSnippetTextEl?(_.u("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=PI(S,c),this.attributedSnippetTextEl.headerRuns=kAp(c,this.headerRuns)):this.attributedSnippetText={data:PI(S,c),headerRuns:kAp(c,this.headerRuns)},this.currentSnippetType=0):_.i5(new _.Yr("Tried to set snippet text when HTML element was null",
S)):(this.plainSnippetText.textContent=dH(S.content||"",c),this.currentSnippetType=2)}else{a:{Q=SKH(S,c);if(Q.runs){Q=_.A(Q.runs);for(var f=Q.next();!f.done;f=Q.next())if(f=f.value,f.bold||f.deemphasize||f.italics||f.strikethrough||f.textColor||f.navigationEndpoint||_.Y(f,MK)){Q=!0;break a}}Q=!1}Q?this.formattedSnippetText?(this.formattedSnippetText.text=SKH(S,c),this.currentSnippetType=1):_.i5(new _.Yr("Tried to set snippet text when HTML element was null",S)):(this.plainSnippetText.textContent=
dH(_.Em(S),c),this.currentSnippetType=2)}};
_.J.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.J.attributedTextIsEmpty=function(){var S=this.text;if(!_.EX(S))return!0;var c;return((c=S.content)==null?void 0:c.length)===0?!0:!1};
_.J.resize=function(S){if(this.snippetText){if(S===void 0?0:S)this.JSC$14313_lastWidth=NaN;var c=this.hostElement.offsetWidth;if(c!==this.JSC$14313_lastWidth&&!this.isExpanded)if(this.JSC$14313_lastWidth=c,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;S=0;var Q,f;c=Math.min(c*this.maxLines/8*2,(f=(Q=this.simpleText)==null?void 0:Q.length)!=null?f:0)-1;for(Q=0;S<=c;)f=Math.floor(S+(c-S)/2),this.setSnippetText(this.text,f),this.isOverflowing()?c=f-1:(S=f+1,Q=f);this.setSnippetText(this.text,Q);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.J.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.J.onExpandClick=function(){var S=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.u("inline_expander_reset_focus_killswitch")||_.tO(this,function(){var c;((c=_.fl().resolve(_.QS(_.zy)))==null?0:c.isKeyBoardInUse())&&_.Vk(S.hostElement)});
_.Az(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.J.onCollapseClick=function(){this.collapse();_.Az(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.J.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.J.computeExpandButtonOffset=function(){var S=this.expandSizer;return S?Xhe?S.offsetParent?S.offsetParent.offsetWidth-S.offsetWidth-S.offsetLeft:0:S.offsetLeft:0};
_.Rh.Object.defineProperties(K5.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.EX(this.text)?this.text.content||"":_.Em(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 _.EX(this.text)?!0:this.text&&_.u("web_replace_formatted_with_attributed_string")&&OgY(this.text)?(this.text=_.sX(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}}});
K5.prototype.onTextChanged=K5.prototype.onTextChanged;K5.prototype.updateMaskAndExpandButtonOffset=K5.prototype.updateMaskAndExpandButtonOffset;K5.prototype.updateSnippetContainerMaxHeight=K5.prototype.updateSnippetContainerMaxHeight;K5.prototype.isExpandedChanged=K5.prototype.isExpandedChanged;K5.prototype.updateTextOnSnippetTypeChange=K5.prototype.updateTextOnSnippetTypeChange;K5.prototype.updateIsFormattedExpanded=K5.prototype.updateIsFormattedExpanded;K5.prototype.updateIsAttributedExpanded=K5.prototype.updateIsAttributedExpanded;
K5.prototype.onClick=K5.prototype.onClick;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],K5.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],K5.prototype,"text",void 0);_.d([_.Z(),_.P("design:type",Array)],K5.prototype,"headerRuns",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],K5.prototype,"engagementPanel",void 0);_.d([_.Z(),_.P("design:type",Object)],K5.prototype,"maxLines",void 0);
_.d([_.Z(),_.P("design:type",String)],K5.prototype,"expandLabel",void 0);_.d([_.Z(),_.P("design:type",String)],K5.prototype,"collapseLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],K5.prototype,"expandCommand",void 0);_.d([_.Z(),_.P("design:type",Object)],K5.prototype,"expandButtonOffset",void 0);_.d([_.M("text"),_.P("design:type",String),_.P("design:paramtypes",[])],K5.prototype,"simpleText",null);
_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],K5.prototype,"onClick",null);_.d([_.M("text","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],K5.prototype,"expandedText",null);_.d([_.M("headerRuns","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],K5.prototype,"expandedHeaderRuns",null);
_.d([_.M("text"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],K5.prototype,"hasAttributedStringText",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],K5.prototype,"showExpandButton",void 0);_.d([_.M("collapseLabel","isExpanded"),_.P("design:type",Object),_.P("design:paramtypes",[])],K5.prototype,"showCollapseButton",null);_.d([_.Z(),_.P("design:type",Object)],K5.prototype,"isTruncated",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],K5.prototype,"isExpanded",void 0);_.d([_.Z(),_.P("design:type",Boolean)],K5.prototype,"isAttributedExpanded",void 0);_.d([_.B0("isExpanded","hasAttributedStringText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"updateIsAttributedExpanded",null);_.d([_.Z(),_.P("design:type",Boolean)],K5.prototype,"isFormattedExpanded",void 0);
_.d([_.B0("isExpanded","hasAttributedStringText"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"updateIsFormattedExpanded",null);_.d([_.Z(),_.P("design:type",Number)],K5.prototype,"currentSnippetType",void 0);_.d([_.M("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],K5.prototype,"useAttributedSnippet",null);
_.d([_.M("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],K5.prototype,"useFormattedSnippet",null);_.d([_.M("currentSnippetType"),_.P("design:type",Object),_.P("design:paramtypes",[])],K5.prototype,"usePlainSnippet",null);_.d([_.Z(),_.P("design:type",Object)],K5.prototype,"alwaysShowExpandButton",void 0);_.d([_.B0("currentSnippetType"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"updateTextOnSnippetTypeChange",null);
_.d([_.Z(),_.P("design:type",Object)],K5.prototype,"attributedSnippetText",void 0);_.d([_.nU("#snippet"),_.P("design:type",HTMLElement)],K5.prototype,"snippetContainer",void 0);_.d([_.nU("#snippet-text"),_.P("design:type",HTMLElement)],K5.prototype,"snippetText",void 0);_.d([_.nU("#plain-snippet-text"),_.P("design:type",HTMLElement)],K5.prototype,"plainSnippetText",void 0);_.d([_.nU("#formatted-snippet-text"),_.P("design:type",Object)],K5.prototype,"formattedSnippetText",void 0);
_.d([_.nU("#attributed-snippet-text"),_.P("design:type",Object)],K5.prototype,"attributedSnippetTextEl",void 0);_.d([_.nU("#expand"),_.P("design:type",HTMLElement)],K5.prototype,"expandButton",void 0);_.d([_.nU("#expand-sizer"),_.P("design:type",HTMLElement)],K5.prototype,"expandSizer",void 0);_.d([_.$n("isExpanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"isExpandedChanged",null);
_.d([_.B0("isExpanded","maxLines"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"updateSnippetContainerMaxHeight",null);_.d([_.B0("isTruncated","showExpandButton","expandButtonOffset"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"updateMaskAndExpandButtonOffset",null);
_.d([_.$n("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K5.prototype,"onTextChanged",null);_.d([_.e({is:"ytd-text-inline-expander",disableElementRegistration:!0})],K5);
_.k(K5,"ytd-text-inline-expander",function(){if(AF_===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);AF_=S}S=AF_;return S},{mode:2});var $_=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return S};
_.C($_,_.W);$_.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
$_.prototype.handleUpdateDescriptionAction=function(S){if(S=_.Y(S,_.ik_))if(S.attributedDescription)this.set("data.attributedDescriptionBodyText",S.attributedDescription);else if(S.description){var c;((c=this.data)==null?0:c.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.sX(S.description)):this.set("data.descriptionBodyText",S.description)}};
_.Rh.Object.defineProperties($_.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.attributedDescriptionBodyText)||!((c=this.data)==null||!c.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.collapsedLineCount){var c;return(c=this.data)==null?void 0:c.collapsedLineCount}S=_.a6("web_watch_description_collapsed_default_lines",12);if(_.u("ww_desc_line_page_size_ks"))return S;c=Math.round(_.jm().height*_.a6("web_watch_description_screen_height_percentage",.5)/20);return Math.max(c,S)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return(Q=(S=this.data)==null?void 0:S.descriptionBodyText)!=null?Q:(c=this.data)==null?void 0:c.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.sourceAttributions}}});
$_.prototype.panelContentVisibleChanged=$_.prototype.panelContentVisibleChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],$_.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],$_.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$_.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],$_.prototype,"panelContentVisible",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$_.prototype,"engagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],$_.prototype,"shortsPanel",void 0);_.d([_.nU("#inline-expander"),_.P("design:type",Object)],$_.prototype,"inlineExpander",void 0);
_.d([_.B0("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$_.prototype,"panelContentVisibleChanged",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],$_.prototype,"hasDescriptionText",null);_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],$_.prototype,"collapsedLines",null);
_.d([_.M("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.P("design:type",Object),_.P("design:paramtypes",[])],$_.prototype,"descriptionText",null);_.d([_.M("data","data.headerRuns"),_.P("design:type",Object),_.P("design:paramtypes",[])],$_.prototype,"headerRuns",null);_.d([_.M("data","data.sourceAttributions"),_.P("design:type",Object),_.P("design:paramtypes",[])],$_.prototype,"sourceAttributions",null);
_.d([_.e({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],$_);
_.k($_,"ytd-expandable-video-description-body-renderer",function(){if(a7i!==void 0)return a7i;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return a7i=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var OAd;var zG_=_.y_(function(S){var c=S.data;return _.B("factoid-renderer",{class:"ytwFactoidRendererHost"},_.B("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return c().accessibilityText}},_.B("span",{class:"ytwFactoidRendererValue"},_.B(_.mw,{text:function(){return c().value}})),_.B("span",{class:"ytwFactoidRendererLabel"},_.B(_.mw,{text:function(){return c().label}}))))},"Qb");_.f4(zG_,"factoid-renderer",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;return _.B("upload-time-factoid-renderer",null,_.B(_.h8,{data:function(){return c().factoid}},{factoidRenderer:zG_}))},"Rb"),"upload-time-factoid-renderer",{props:{data:_.Qn}});_.f4(_.y_(function(S){var c=S.data;return _.B("view-count-factoid-renderer",null,_.B(_.h8,{data:function(){return c().factoid}},{factoidRenderer:zG_}))},"Sb"),"view-count-factoid-renderer",{props:{data:_.Qn}});var uD=function(){var S=_.W.apply(this,arguments)||this;S.shortsPanel=!1;S.engagementPanel=!1;S.watchWhileSdp=_.u("shorts_desktop_watch_while_sdp");return S};
_.C(uD,_.W);uD.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"}}}}};
_.Rh.Object.defineProperties(uD.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var S;return(S=this.data)==null?void 0:S.channel}}});
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],uD.prototype,"componentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],uD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uD.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uD.prototype,"shortsPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uD.prototype,"engagementPanel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uD.prototype,"watchWhileSdp",void 0);_.d([_.M("shortsPanel","engagementPanel","data.channel"),_.P("design:type",Object),_.P("design:paramtypes",[])],uD.prototype,"showChannelInfo",null);_.d([_.e({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],uD);
_.k(uD,"ytd-video-description-header-renderer",function(){if(OAd!==void 0)return OAd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return OAd=S},{mode:1});var xA$;var jK=function(){return _.W.apply(this,arguments)||this};
_.C(jK,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],jK.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],jK.prototype,"noPadding",void 0);_.d([_.Z(),_.P("design:type",Object)],jK.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],jK);
_.k(jK,"ytd-list-item-view-model",function(){if(xA$!==void 0)return xA$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return xA$=S},{mode:1});var FgJ;var BAz;var I7l;var n6h;var lD=function(){var S=_.W.apply(this,arguments)||this;S.adaptiveFullWidth=!1;S.modernButtons=_.u("web_modern_buttons");S.buttonOverrides={style:"call-to-action",type:"filled"};S.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return S};
_.C(lD,_.W);lD.prototype.handleSetTimestamp_=function(S){this.data&&this.data.shortUrl&&(_.Ur(this.hostElement).querySelector("#share-url").value=S.isSet?_.dO(this.data.shortUrl,"t",S.timestamp):this.data.shortUrl)};
lD.prototype.handleSignalActionCopyShareUrl_=function(S,c){(_.u("killswitch_copy_link_target_check")||_.Ur(this.hostElement).querySelector("#copy-button")===c)&&this.copyUrlToClipboard()};
lD.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.Ur(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
lD.prototype.computeStyle_=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],lD.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lD.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lD.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.P("design:type",String)],lD.prototype,"rendererStyle",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lD.prototype,"adaptiveFullWidth",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lD.prototype,"modernButtons",void 0);_.d([_.Z(),_.P("design:type",Object)],lD.prototype,"buttonOverrides",void 0);_.d([_.wM({is:"yt-copy-link-renderer",disableElementRegistration:!0})],lD);
_.k(lD,"yt-copy-link-renderer",function(){if(n6h===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;I7l===void 0&&(I7l=document.createElement("template"));var f=I7l;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);n6h=S}S=n6h;return S},{mode:2});_.i8("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var Y_=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return S};
_.C(Y_,_.W);_.J=Y_.prototype;_.J.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.J.attached=function(){this.keyboardFocused=!1};
_.J.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var S=_.fl().resolve(_.QS(_.zy));S&&(this.keyboardFocused=S.isKeyBoardInUse())}};
_.J.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.J.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}};
_.J.onChange_=function(){if(this.data){var S=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;S&&this.ytComponentBehavior.resolveCommand(S);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.J.handleUpdateToggleAction_=function(S){(S=_.Y(S,k1$))&&this.data&&S.targetId==this.data.targetId&&this.set("data.toggled",S.toggled)};
_.J.toBoolean_=function(S){return!!S};
_.J.reset=function(){};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("data-changed",this.data))};
_.J.updateDataToggledFromBinding=function(S){this.set("data.toggled",S.detail.value)};
Y_.prototype.dataChangedForBinding=Y_.prototype.dataChangedForBinding;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Y_.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Y_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Y_.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Y_.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Y_.prototype,"data",void 0);_.d([_.Z({computed:"computeDescription_(data.*)"}),_.P("design:type",Object)],Y_.prototype,"description_",void 0);_.d([_.Z({value:function(){return!!_.fl().resolve(_.QS(_.zy))&&_.u("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.P("design:type",Boolean)],Y_.prototype,"useKeyboardFocused",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Y_.prototype,"keyboardFocused",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Y_.prototype,"dataChangedForBinding",null);_.d([_.wM({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],Y_);
_.k(Y_,"yt-toggle-form-field-renderer",function(){if(BAz===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;FgJ===void 0&&(FgJ=document.createElement("template"));var f=FgJ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);BAz=S}S=BAz;return S},{mode:2});var bAp;var NAl;var C5=function(){var S=_.W.apply(this,arguments)||this;S.isDarkTheme=!1;S.isSearch=!1;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.noTopMargin=_.u("kevlar_watch_no_top_margin");S.maskFade=_.u("web_watch_chips_mask_fade");S.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 S};
_.C(C5,_.W);_.J=C5.prototype;_.J.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}}}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.J.dataChanged=function(){var S=this.getSelectedIndex();if(S>0)this.selected=S;else{this.selected=0;var c,Q;(c=this.ytScrollableChipCloudBehavior)==null||(Q=c.reset)==null||Q.call(c)}};
_.J.getSelectedIndex=function(){var S;if((S=this.data)==null||!S.chips)return-1;S=-1;for(var c,Q=0;Q<((c=this.data)==null?void 0:c.chips.length);Q++){var f=void 0,U=void 0;if((f=this.data)==null?0:(U=f.chips[Q].chipCloudChipRenderer)==null?0:U.isSelected){S=Q;break}}return S};
_.J.onResize=function(){var S=this.ytScrollableChipCloudBehavior;_.tO(S,S.setContainerWidthDiff);a3(this.ytScrollableChipCloudBehavior)};
_.J.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.handleRelatedChipCommand=function(S,c){S=this.JSC$14340_chipsSelector.indexOf(c);S!==-1&&this.JSC$14340_chipsSelector.selectIndex(S)};
_.J.handleChipCloudChipSelectAction=function(S){S=this.JSC$14340_chipsSelector.indexOf(S);S>-1&&this.JSC$14340_chipsSelector.selectIndex(S)};
_.J.handleChipCloudChipDeselectAction=function(){var S=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14340_chipsSelector&&((S==null?0:S.continuationCommand)?_.xt(this.hostElement,[S]):(S==null?0:S.searchEndpoint)?this.ytComponentBehavior.resolveCommand(S):S&&_.FF(this.hostElement,[S],this.hostElement),this.JSC$14340_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.J.updateSelectedFromBinding=function(S){this.selected=S.detail.value};
C5.prototype.onResize=C5.prototype.onResize;C5.prototype.dataChanged=C5.prototype.dataChanged;C5.prototype.isSearchChanged=C5.prototype.isSearchChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],C5.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],C5.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],C5.prototype,"actionHandlerBehavior",void 0);
_.d([_.p(_.w9),_.P("design:type",Object)],C5.prototype,"ironResizableBehavior",void 0);_.d([_.p(),_.P("design:type",J_)],C5.prototype,"ytScrollableChipCloudBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],C5.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],C5.prototype,"data",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],C5.prototype,"selected",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],C5.prototype,"isDarkTheme",void 0);_.d([_.Z({value:160}),_.P("design:type",Number)],C5.prototype,"scrollDistance",void 0);_.d([_.Z(),_.P("design:type",Object)],C5.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],C5.prototype,"darkerDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],C5.prototype,"noTopMargin",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],C5.prototype,"maskFade",void 0);_.d([_.nU("#chips"),_.P("design:type",Object)],C5.prototype,"JSC$14340_chipsSelector",void 0);_.d([_.B0("isSearch"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C5.prototype,"isSearchChanged",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C5.prototype,"dataChanged",null);
_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],C5.prototype,"onResize",null);_.d([_.wM({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],C5);
_.k(C5,"yt-chip-cloud-renderer",function(){if(NAl===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;bAp===void 0&&(bAp=document.createElement("template"));var f=bAp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);NAl=S}S=NAl;return S},{mode:2});var Kgu,$Ai=function(){return Kgu!==void 0?Kgu:Kgu=document.createElement("template")};
document.head.appendChild($Ai().content);var uOl;var j9p=document.head,l7d=j9p.appendChild,Yid;if(uOl===void 0){var CTd=document.createElement("template");_.D(CTd,"");CTd.content.insertBefore($Ai().content.cloneNode(!0),CTd.content.firstChild);uOl=CTd}Yid=uOl;l7d.call(j9p,Yid.content);var HAi=_.y_(function(S){var c=S.data;return _.B("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.B("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.B("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.B(_.K,{cond:function(){return _.oi(c().image)},
then:function(Q){return _.B("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.B(_.RW,{data:Q,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.B("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.B(_.mw,{text:function(){return c().title}})),_.B("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.B(_.mw,{text:function(){return c().subtitle}})))),_.B(_.K,{cond:function(){var Q;
return(Q=c())==null?void 0:Q.hasBottomDivider},
then:function(){return _.B("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Tb");var DAT=_.y_(function(S){var c=S.data;return _.B("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.B(_.h8,{data:function(){var Q;return(Q=c().offerPlanDetailsItem)!=null?Q:[]}},{offerPlanDetailsItemViewModel:function(Q){return _.B("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.B(HAi,{data:Q.data}))}})),_.B("div",null,_.B(_.K,{cond:function(){return c().hasBottomDivider},
then:function(){return _.B("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.B("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.B("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.B("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Ub");var phi=_.y_(function(S){var c=S.data;S=_.A(_.ny(!1,void 0,"SpEGQd"));var Q=S.next().value,f=S.next().value,U=_.$d(function(){f(!Q());return!1}),a=function(){var X;
return(X=c().offerPlanDetailsContainer)!=null?X:[]};
return _.B("lp-complex-offer-card-details-view-model",null,_.B("div",null,_.B(_.K,{cond:function(){return Q()},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.B("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":U,"aria-expanded":Q},_.B(_.mw,{text:function(){return c().expandedTitle}})),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.B(_.h8,{data:a},{offerPlanDetailsContainerViewModel:function(X){return _.B("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.B(DAT,{data:X.data}))}})),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.B(_.mw,{text:function(){return c().legalText}})))},
else:function(){return _.B("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":U,"aria-expanded":Q},_.B(_.mw,{text:function(){return c().collapsedTitle}}),_.B("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.B(_.C4,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Vb");var hGd=_.y_(function(S){var c=S.data;return _.B("lp-complex-offer-card-option-view-model",null,_.B("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.B(_.K,{cond:function(){return c().topDividerText},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerContainer"},_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDivider"}),_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerTextContainer"},_.B("div",{class:"ytLpComplexOfferCardOptionViewModelDividerText"},_.B(_.mw,{text:function(){return c().topDividerText}}))))}}),_.B(_.K,{cond:function(){return c().planPricingPrimary},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.B(_.mw,{text:function(){return c().planPricingPrimary}}))}}),_.B(_.K,{cond:function(){return c().planPricingSecondary},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.B(_.mw,{text:function(){return c().planPricingSecondary}}))}}),_.B(_.K,{cond:function(){return c().primaryButton},
then:function(){return _.B("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.B(_.h8,{data:function(){return c().primaryButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Wb");var qiu=_.y_(function(S){var c=S.data;var Q=function(){var a;return((a=c())==null?void 0:a.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
S={};var f={},U={};return _.B("ytm-lp-complex-offer-card-view-model",null,_.B("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.B("div",{class:_.n4((S.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=Q,S),"ytmLpComplexOfferCardViewModelCardContainer")},_.B(_.K,{cond:function(){var a;return(a=c())==null?void 0:a.bannerText},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.B("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.B(_.mw,{text:function(){return c().bannerText}})))}}),_.B(_.K,{cond:function(){return _.oi(c().logo)},
then:function(a){var X={};return _.B("div",{class:_.n4((X.ytmLpComplexOfferCardViewModelLogoAlignLeft=Q,X),"ytmLpComplexOfferCardViewModelLogo")},_.B(_.RW,{data:a,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.B("div",{class:_.n4((f.ytmLpComplexOfferCardViewModelTitleAlignLeft=Q,f),"ytmLpComplexOfferCardViewModelTitle")},_.B(_.mw,{text:function(){return c().title}})),_.B(_.K,{cond:function(){var a;
return(a=c())==null?void 0:a.subtitle},
then:function(){var a={};return _.B("div",{class:_.n4((a.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=Q,a),"ytmLpComplexOfferCardViewModelSubtitle")},_.B(_.mw,{text:function(){return c().subtitle}}))}}),_.B(_.K,{cond:function(){return c().planPricingPrimary},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.B(_.mw,{text:function(){return c().planPricingPrimary}}))}}),_.B(_.K,{cond:function(){return c().planPricingSecondary},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.B(_.mw,{text:function(){return c().planPricingSecondary}}))}}),_.B(_.K,{cond:function(){return c().purchaseButton},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.B(_.h8,{data:function(){return c().purchaseButton}},{buttonViewModel:function(a){return _.B(_.Ze,{data:a.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.B(_.K,{cond:function(){var a;
return(a=c())==null?void 0:a.offerOptions},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.B(_.h8,{data:function(){return c().offerOptions}},{lpComplexOfferCardOptionViewModel:hGd}))}}),_.B("div",{class:_.n4((U.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=Q,U),"ytmLpComplexOfferCardViewModelLegalText")},_.B(_.mw,{text:function(){return c().legalText}})),_.B(_.K,{cond:function(){var a;
return(a=c())==null?void 0:a.offerCardDetails},
then:function(){return _.B("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.B(_.h8,{data:function(){return c().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:phi}))}}))))},"Xb");var TAT=_.y_(function(S){var c=S.data;var Q=function(){var X;return((X=c())==null?void 0:X.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
S={};var f={},U={},a={};return _.B("ytm-lp-complex-offer-card-section-view-model",null,_.B("div",{class:_.n4("ytmLpComplexOfferCardSectionViewModelHost")},_.B("div",{class:_.n4((S.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=Q,S),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.B("div",{class:_.n4((f.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=Q,f),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.B("h2",{class:_.n4((U.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
Q,U),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.B(_.mw,{text:function(){return c().title}}))),_.B(_.K,{cond:function(){var X;
return(X=c())==null?void 0:X.subtitle},
then:function(){var X={},z={};return _.B("div",{class:_.n4((X.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=Q,X),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.B("div",{class:_.n4((z.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=Q,z),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.B(_.mw,{text:function(){return c().subtitle}})))}}),_.B("div",{class:_.n4((a.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=Q,a),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.B(_.h8,{data:function(){var X;
return(X=c().offerPlans)!=null?X:[]}},{lpComplexOfferCardViewModel:function(X){return _.B("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.B(qiu,{data:X.data}))}})))))},"Yb");var whz=_.y_(function(S){return _.B("lp-coupon-banner-view-model",{class:"ytLpCouponBannerViewModelHost"},_.B("div",{class:"ytLpCouponBannerViewModelIcon"},_.B(_.C4,{icon:function(){return"price_tag"}})),_.B("div",{class:"ytLpCouponBannerViewModelOuterContainer"},_.B("div",{class:"ytLpCouponBannerViewModelContent"},_.B("div",{class:"ytLpCouponBannerViewModelHeading"},_.B(_.mw,{text:function(){var c;
return(c=S.data())==null?void 0:c.title}})),_.B("div",{class:"ytLpCouponBannerViewModelBody"},_.B(_.mw,{text:function(){var c;
return(c=S.data())==null?void 0:c.subtitle}})))))},"Zb");
whz.idomCompat=!0;_.HD=cSl.getInstance();var s9p=_.y_(function(S){return _.B("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":S.shouldAriaHideContent},_.B("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:S.questionId},_.B(_.mw,{text:S.question})))},"$b"),MiH=_.y_(function(S){var c=S.data;
var Q=S.themeOverride;S=_.A(_.ny(!1,void 0,"ljTVPd"));var f=S.next().value,U=S.next().value;S=_.$d(function(){U(!f());return!1});
var a=function(){return f()?"EXPAND_LESS":"EXPAND_MORE"},X=("faq-container"+_.MI(_.HD)).toString(),z="faq-question-and-answers-section-question"+_.MI(_.HD),x={},I={};
return _.B("faq-entry-view-model-c3",null,_.B("div",{class:_.n4("yt-lp-faq-entry-view-model",(x["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return Q==null?void 0:Q().useDarkTheme},x))},_.B("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":S,role:"button","aria-expanded":f,"aria-labelledby":z.toString(),"tab-index":"0"},_.B(s9p,{question:function(){return c().question},
questionId:z,shouldAriaHideContent:!0}),_.B(_.K,{cond:function(){return f()!==void 0},
then:function(){return _.B("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.B(_.C4,{icon:a,ariaHidden:!0}),_.B("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.B("div",{class:_.n4("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(I["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!f()},I))},_.B("div",{id:X},_.B(_.lW,{each:function(){return c().answers||[]}},function(n){return _.B("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.B(_.mw,{text:n}))})))))},"ac");
MiH.idomCompat=!0;var iAd=_.y_(function(S){var c=S.data;var Q=S.themeOverride;S={};return _.B("lp-faq-section-view-model-c3",null,_.B("div",{class:_.n4("yt-lp-faq-section-view-model",(S["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},S["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(Q==null||!Q().useDarkTheme)},S))},_.B("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.B(_.K,{cond:function(){return c().header},
then:function(f){return _.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.B(_.mw,{text:f}))}}),_.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.B(_.h8,{data:function(){return c().faqs}},{faqEntryViewModel:function(f){return _.B(MiH,{data:f.data,
themeOverride:Q})}})),_.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.B(_.lW,{each:function(){return c().footers||[]}},function(f){return _.B(_.mw,{text:f})})),_.B(_.K,{cond:function(){return c().legal},
then:function(f){return _.B("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.B(_.mw,{text:f}))}}))))},"bc");
iAd.idomCompat=!0;var ZAh=_.y_(function(S){var c=S.data;var Q=S.themeOverride;_.wC(function(){var X=c().gtmId;X&&_.qu(X,_.WY("GL",""))});
var f={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var X,z,x;return(x=(X=c().logo)==null?void 0:(z=X.accessibilityData)==null?void 0:z.label)!=null?x:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},U=_.fl().resolve(_.QS(_.Lv)),a=function(){return U&&U()||(Q==null?void 0:Q().useDarkTheme)};
return _.B("lp-header-section-view-model",null,_.B("div",{class:function(){var X=c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",z=c().marginType==="LP_SECTION_MARGIN_TYPE_TOP",x=Q==null?void 0:Q().useDarkTheme,I=["lp-header-section-view-model"];X&&I.push("lp-header-section-view-model--ptc-layout-type");z&&I.push("lp-header-section-view-model__lp-header-section-margin");x&&I.push("lp-header-section-view-model--premium-force-dark-mode");return I.join(" ")}},_.B(_.K,{cond:function(){return c().logo},
then:function(){return _.B("div",null,_.B(_.K,{cond:a,then:function(){return _.B(_.K,{cond:function(){var X;return(X=c().logo)==null?void 0:X.imageDark},
then:function(X){return _.B(_.RW,Object.assign({},{data:X},f))}})},
else:function(){return _.B(_.K,{cond:function(){var X;return(X=c().logo)==null?void 0:X.imageLight},
then:function(X){return _.B(_.RW,Object.assign({},{data:X},f))}})}}))}}),_.B(_.K,{cond:function(){return c().title},
then:function(X){return _.B("div",{class:"lp-header-section-view-model__lp-header-title"},_.B(_.mw,{text:X}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.B(_.K,{cond:function(){return c().subtitles},
then:function(X){return _.B(_.lW,{each:X},function(z){return _.B("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.B(_.mw,{text:z}))})}})),_.B(_.K,{cond:function(){return c().additionalInfo},
then:function(X){return _.B("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.B(_.mw,{text:X}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.B(_.K,{cond:function(){return c().primaryButton},
then:function(X){return _.B("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.B(_.h8,{data:X},{buttonViewModel:_.Ze}))}}),_.B(_.K,{cond:function(){return c().secondaryButton},
then:function(X){return _.B("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.B(_.h8,{data:X},{buttonViewModel:_.Ze}))}})),_.B(_.K,{cond:function(){return c().otherOffersInfo},
then:function(X){return _.B("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.B(_.mw,{text:X}))}}),_.B("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.B(_.K,{cond:function(){return c().billingInfo},
then:function(X){return _.B(_.lW,{each:X},function(z){return _.B("div",null,_.B(_.mw,{text:z}))})}}))))},"cc");
ZAh.idomCompat=!0;var GQJ=_.y_(function(S){var c=S.data;var Q=_.tq(S.themeOverride,{useDarkTheme:!1});S={};S=_.n4("ytm-lp-headline-section-view-model",(S["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return Q().useDarkTheme},S));
return _.B("lp-headline-section-view-model",null,_.B("div",{class:S},_.B("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.B(_.mw,{text:function(){return c().title}})),_.B(_.K,{cond:function(){return c().subtitle},
then:function(f){return _.B("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.B(_.mw,{text:f}))}})))},"dc");var Wgl=_.y_(function(S){var c=S.data;var Q=S.themeOverride;var f=_.fl().resolve(_.QS(_.Lv)),U=function(){return f&&f()||(Q==null?void 0:Q().useDarkTheme)},a=function(){var I,n;
var b=U()?(I=c().textBackgroundImage)==null?void 0:I.imageDark:(n=c().textBackgroundImage)==null?void 0:n.imageLight;return O5z((b==null?void 0:b.sources)||[])},X=function(){var I,n;
return U()?(I=c().featureImage)==null?void 0:I.imageDark:(n=c().featureImage)==null?void 0:n.imageLight},z=function(){return c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},x=function(){var I,n;
return U()?(I=c().logo)==null?void 0:I.imageDark:(n=c().logo)==null?void 0:n.imageLight};
return _.B("ytm-lp-large-feature-section-view-model",null,_.B("div",{class:function(){var I=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",n=c().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",b=(c().index||0)%2===1,N=Q==null?void 0:Q().useDarkTheme,l=["yt-lp-large-feature-section-view-model"];I?l.push("yt-lp-large-feature-section-view-model--music-feature-type"):n?l.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):b||l.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
N&&l.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return l.join(" ")}},_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.B(_.K,{cond:X,
then:function(){return _.B(_.RW,{data:function(){return X()},
alt:function(){var I,n,b;return(b=(I=c().featureImage)==null?void 0:(n=I.accessibilityData)==null?void 0:n.label)!=null?b:""},
contentMode:z})}})),_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var I;return((I=a())==null?0:I.url)?"background-image: url("+_.jS(a().url)+");":""}},_.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.B(_.K,{cond:x,
then:function(){return _.B(_.RW,{data:function(){return x()},
alt:function(){var I,n,b;return(b=(I=c().logo)==null?void 0:(n=I.accessibilityData)==null?void 0:n.label)!=null?b:""},
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"})}}),_.B(_.K,{cond:function(){return c().eyebrowText},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.B(_.mw,{text:function(){return c().eyebrowText}}))}}),_.B(_.K,{cond:function(){return c().title},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.B(_.mw,{text:function(){return c().title}}))}}),_.B(_.K,{cond:function(){return c().subtitles},
then:function(){return _.B("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.B(_.lW,{each:function(){return c().subtitles||[]}},function(I){return _.B(_.mw,{text:I})}))}})))))},"ec");
Wgl.idomCompat=!0;var g6z=_.y_(function(S){return _.B("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.B("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.B(_.C4,{icon:function(){var c;return(c=S.data())==null?void 0:c.iconType},
className:function(){var c;switch((c=S.data())==null?void 0:c.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 c;return((c=S.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),_.B("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.B(_.mw,{text:function(){var c;
return(c=S.data())==null?void 0:c.text},
className:function(){var c;return((c=S.data())==null?void 0:c.style)==="LP_FEATURE_LIST_ITEM_STYLE_SMALL_ICON_GREY_TEXT"?"ytLpFeatureListItemViewModelFeatureListSecondaryText":""}}))))},"fc");var eGu=_.y_(function(S){S=_.V_(S,{config:void 0,themeOverride:void 0});var c=S.data,Q=S.config,f=S.themeOverride;S={};S=_.n4("ytm-lp-offer-card-option-view-model",(S["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var z;return(z=f())==null?void 0:z.useDarkTheme},S));
var U=_.$d(function(){var z,x;(z=Q())==null||(x=z.handleRadioButtonClick)==null||x.call(z,c());return!1}),a=function(){var z;
return(z=Q())==null?void 0:z.shouldDisplayRadioButton},X=function(){var z;
return(z=c().featureListItems)!=null?z:[]};
return _.B("ytm-lp-offer-card-option-view-model",null,_.B("div",{class:S,"on:click":_.$d(function(){if(a()){var z,x;(z=Q())==null||(x=z.handleRadioButtonClick)==null||x.call(z,c())}return!1})},_.B(_.K,{cond:a,
then:function(){return _.B("div",null,_.B("input",{type:"radio","on:click":U,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var z;return!((z=Q())==null||!z.isOptionSelected)}}))}}),_.B("div",null,_.B("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.B(_.mw,{text:function(){return c().eyebrowText}})),_.B("div",{class:"ytm-lp-offer-card-option-view-model__title"},_.B(_.mw,{text:function(){return c().title}})),_.B("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},
_.B(_.mw,{text:function(){return c().subtitle}})),_.B(_.K,{cond:function(){return X().length>0},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.B(_.h8,{data:X},{lpFeatureListItemViewModel:g6z}))}}),_.B("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.B(_.mw,{text:function(){return c().description}})))))},"gc");
eGu.idomCompat=!0;var kQd=_.y_(function(S){var c=S.data;var Q=S.themeOverride;S=_.A(_.l8(function(){var a,X=(a=c().offerOptions)==null?void 0:a[0];return _.Y(X,R1_)||{}}));
var f=S.next().value,U=S.next().value;S={};return _.B("ytm-lp-offer-card-view-model",null,_.B("div",{class:_.n4("ytm-lp-offer-card-view-model",(S["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(Q==null||!Q().useDarkTheme)},S))},_.B("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.B(_.K,{cond:function(){return c().titleIconType},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.B(_.C4,{icon:function(){var a;return((a=c().titleIconType)==null?void 0:a.toString())||""}}))}}),_.B("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.B(_.mw,{text:function(){return c().title}})),_.B(_.h8,{data:function(){return c().titleBadge}},{badgeViewModel:function(a){return _.B("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.B(_.S7,{data:a.data}))}})),_.B("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.B(_.h8,{data:function(){return c().offerOptions}},{lpOfferCardOptionViewModel:function(a){var X=a.data;
return _.B(_.ak,null,_.B("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.B(eGu,{data:X,config:function(){var z;return{shouldDisplayRadioButton:(c().offerOptions||[]).length>1,isOptionSelected:X().id===((z=f())==null?void 0:z.id),handleRadioButtonClick:function(x){return void U(x)}}},
themeOverride:Q}))}})),_.B("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.B(_.h8,{data:function(){var a;
return(a=f())==null?void 0:a.purchaseButtonOverride}},{buttonViewModel:_.Ze}))))},"hc");
kQd.idomCompat=!0;var rFi=_.y_(function(S){var c=S.data;var Q=S.themeOverride;S={};S=_.n4("ytm-lp-offer-card-section-view-model",(S["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var f;return Q==null?void 0:(f=Q())==null?void 0:f.useDarkTheme},S));
return _.B("ytm-lp-offer-card-section-view-model",null,_.B("div",{class:S},_.B(_.K,{cond:function(){return c().title!==void 0},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.B("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.B(_.mw,{text:function(){return c().title}})),_.B(_.K,{cond:function(){return c().subtitle},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.B(_.mw,{text:function(){return c().subtitle}}))}}))}}),_.B("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.B(_.h8,{data:function(){return c().offerCards}},{lpOfferCardViewModel:function(f){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.B(kQd,{data:f.data,
themeOverride:Q}))}})),_.B(_.K,{cond:function(){return c().footer},
then:function(){return _.B("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.B(_.mw,{text:function(){return c().footer}}))}})))},"ic");var dAh=_.y_(function(S){var c=S.data;return _.B("lp-offer-table-cell-content-view-model",null,_.B("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.B(_.DJ,null,_.B(_.YC,{when:function(){return c().title}},function(){return _.B(_.mw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return c().title}})}),_.B(_.YC,{when:function(){return c().subTitle}},function(){return _.B(_.mw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return c().subTitle}})}),_.B(_.YC,{when:function(){return c().featureDescription}},function(){return _.B(_.mw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return c().featureDescription}})}),_.B(_.YC,{when:function(){return c().description}},function(){return _.B(_.mw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return c().description}})}),_.B(_.YC,{when:function(){return c().iconType}},function(){return _.B("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.B(_.C4,{icon:function(){return c().iconType.toString()}}))}),_.B(_.YC,{when:function(){return c().purchaseButton}},function(){return _.B(_.h8,{data:function(){return c().purchaseButton}},{buttonViewModel:function(Q){return _.B("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.B(_.Ze,{data:Q.data}))}})}),_.B(_.YC,{when:function(){return c().note}},function(){return _.B(_.mw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return c().note}})}),_.B(_.YC,{when:function(){return c().featureDetail}},function(){return _.B(_.mw,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return c().featureDetail}})}),_.B(_.YC,{when:function(){return c().badge}},function(){return _.B(_.h8,{data:function(){return c().badge}},{badgeViewModel:_.S7})}))))},"jc");
dAh.idomCompat=!0;var v6e=_.y_(function(S){var c=S.data;return _.B("lp-offer-table-cell-view-model",null,_.B("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(c().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;"}}},_.B(_.h8,{data:function(){return c().contents}},{lpOfferTableCellContentViewModel:dAh})))},
"kc");
v6e.idomCompat=!0;var PTu=_.y_(function(S){var c=S.data;var Q=S.lpTableIsFirstRow;var f=S.lpTableIsLastRow;var U=function(){return(Q==null?0:Q())?"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"},a=function(){return(Q==null?0:Q())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(f==null?0:f())?"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 _.B("ytm-lp-offer-table-row-view-model",null,_.B("div",{class:"yt-lp-offer-table-row-view-model"},_.B(_.h8,{data:function(){return c().rowHeaderCell}},{lpOfferTableCellViewModel:function(X){return _.B("div",{class:U},_.B(v6e,{data:X.data}))}}),_.B(_.h8,{data:function(){return c().contentCells}},{lpOfferTableCellViewModel:function(X){return _.B("div",{class:a},_.B(v6e,{data:X.data}))}})))},"lc");
PTu.idomCompat=!0;var Lgd=_.y_(function(S){var c=S.data;var Q=S.themeOverride;var f=_.fl().resolve(_.QS(_.Lv)),U=function(){return _.Y(c().logo,xis)||{}};
S={};return _.B("ytm-lp-offer-table-section-view-model",null,_.B("div",{class:"yt-lp-offer-table-view-model"},_.B(_.K,{cond:function(){var a,X;return f&&f()||(Q==null?0:Q().useDarkTheme)?(a=U())==null?void 0:a.imageDark:(X=U())==null?void 0:X.imageLight},
then:function(a){return _.B(_.RW,{data:a,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var X,z,x;return(x=(X=U())==null?void 0:(z=X.accessibilityData)==null?void 0:z.label)!=null?x:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.B(_.mw,{text:function(){return c().title}})),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.B(_.mw,{text:function(){return c().subtitle}})),_.B(_.K,{cond:function(){return c().disclaimers},
then:function(a){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.B(_.lW,{each:a},function(X){return _.B("div",null,_.B(_.mw,{text:X}))}))}}),_.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.B(_.h8,{data:function(){return c().rows}},{lpOfferTableRowViewModel:function(a,X){return _.B(PTu,{data:a.data,
lpTableIsFirstRow:function(){return X()===0},
lpTableIsLastRow:function(){return X()===c().rows.length-1}})}})),_.B("div",{class:_.n4((S["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return c().hasFooterBackground},S))},_.B(_.K,{cond:function(){return c().footer},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.B(_.mw,{text:function(){return c().footer}}))}}),_.B(_.K,{cond:function(){return c().footerTitle},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.B(_.mw,{text:function(){return c().footerTitle}}))}}),_.B(_.K,{cond:function(){return c().footerDescription},
then:function(){return _.B("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.B(_.mw,{text:function(){return c().footerDescription}}))}}))))},"mc");
Lgd.idomCompat=!0;var E6$=_.y_(function(S){var c=S.data;var Q=S.themeOverride;var f=_.fl().resolve(_.QS(_.Lv)),U=function(){var z;return Q==null?void 0:(z=Q())==null?void 0:z.useDarkTheme},a=function(){var z,x;
return f&&f()||U()?(z=c().image)==null?void 0:z.imageDark:(x=c().image)==null?void 0:x.imageLight};
S={};S=_.n4("ytm-lp-small-feature-section-view-model",(S["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=U,S));var X=function(){var z,x,I;return(I=(z=c().image)==null?void 0:(x=z.accessibilityData)==null?void 0:x.label)!=null?I:""};
return _.B("ytm-lp-small-feature-section-view-model",{class:S},_.B(_.K,{cond:function(){return a()&&!VkT},
then:function(){return _.B("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.B(_.RW,{data:function(){return a()},
alt:X,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.B("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.B("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.B(_.K,{cond:function(){return c().title},
then:function(z){return _.B(_.mw,{text:z})}})),_.B("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.B(_.mw,{text:function(){return c().description}}))))},"nc");
E6$.idomCompat=!0;var tie=_.y_(function(S){var c=S.data;var Q=S.themeOverride;S={};return _.B("ytm-lp-small-feature-section-group-view-model",null,_.B("div",{class:_.n4("ytm-lp-small-feature-section-group-view-model",(S["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(Q==null||!Q().useDarkTheme)},S))},_.B("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.B(_.h8,{data:function(){return c().smallFeatures}},{lpSmallFeatureSectionViewModel:function(f){return _.B("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.B(E6$,{data:f.data,
themeOverride:Q}))}}))))},"oc");
tie.idomCompat=!0;_.f4(_.y_(function(S){var c=S.data;var Q=function(){return c().forcedTheme==="USER_INTERFACE_THEME_DARK"},f=function(){return c().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},U=function(){var X="",z,x;
var I=_.fl().resolve(_.QS(_.Lv));I=Q()||(I==null?0:I())?(z=c().themedImageViewModel)==null?void 0:z.imageDark:(x=c().themedImageViewModel)==null?void 0:x.imageLight;(z=O5z((I==null?void 0:I.sources)||[]))&&z.url&&(X=f()?"background-image: linear-gradient(to bottom, transparent, "+(c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.jS(z.url)+");":"background-image: url("+_.jS(z.url)+");");return X},a=function(){return{useDarkTheme:Q()}};
S={};return _.B("yt-section-group-view-model",null,_.B("div",{class:_.n4("yt-lp-section-group-view-model",(S["yt-lp-section-group-view-model--premium-force-dark-mode"]=Q,S["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return c().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},S))},_.B(_.K,{cond:function(){return U().length},
then:function(){var X={};return _.B("div",{class:_.n4("yt-lp-section-group-view-model__bg-image",(X["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=f,X)),style:U})}}),_.B("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.B(_.h8,{data:function(){return c().sections}},{lpFaqSectionViewModel:function(X){return _.B(iAd,{data:X.data,
themeOverride:a})},
lpHeaderSectionViewModel:function(X){return _.B(ZAh,{data:X.data,themeOverride:a})},
lpHeadlineSectionViewModel:function(X){return _.B(GQJ,{data:X.data,themeOverride:a})},
lpLargeFeatureSectionViewModel:function(X){return _.B(Wgl,{data:X.data,themeOverride:a})},
lpOfferCardSectionViewModel:function(X){return _.B(rFi,{data:X.data,themeOverride:a})},
lpComplexOfferCardSectionViewModel:function(X){return _.B(TAT,{data:X.data})},
lpOfferTableSectionViewModel:function(X){return _.B(Lgd,{data:X.data,themeOverride:a})},
lpSmallFeatureSectionGroupViewModel:function(X){return _.B(tie,{data:X.data,themeOverride:a})},
lpCouponBannerViewModel:function(X){return _.B(whz,{data:X.data})}}))))},"pc"),"yt-section-group-view-model",{props:{data:_.y$}});var foZ=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.ViJ=_.y_(function(S){function c(){if(foZ.has(S.data().displayType)){var I=!f(),n;if((n=S.disableDeselection)==null||!n.call(S)||I){S.data().selected=I;n=Object.assign({},X(),{selected:I});z(n);var b;(b=S.callback)==null||b.call(S,n,I)}}}
var Q=_.EH("chip-view-model"),f=function(){var I,n;return!!(((I=S.selected)==null?void 0:I.call(S))!==void 0?(n=S.selected)==null?0:n.call(S):X().selected)},U=_.A(_.l8(S.data)),a=U.next().value;
U=U.next().value;var X=a,z=U,x=_.b9(QDp,function(){return S.data().chipEntityKey||""});
return _.B("chip-view-model",{class:"ytChipViewModelHost",el:Q},_.B(wvh,{data:function(){var I,n=Object.assign({},X(),{selected:f()}),b=x(),N=(I=S.disableDeselection)==null?void 0:I.call(S);a:switch(n.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":I=1;break a;default:I=0}return{text:(b==null?void 0:b.text)||n.text,state:n.disabled?1:n.selected?0:2,type:I,onTap:UWo(n,Q,c,N),accessibilityLabel:n.accessibilityLabel||n.text}}}))},"qc");
_.ViJ.idomCompat={callbacks:{callback:!0}};_.RGz=_.y_(function(S){var c=_.b9(cYr,function(){var X;return(X=S.data())==null?void 0:X.chipBarStateEntityKey}),Q=function(){return S.data().disableDeselection},f=_.A(_.l8(function(){var X;
if(((X=c())==null?void 0:X.selectedIndex)!=void 0)return c().selectedIndex;var z,x;X=_.A(((z=S.data())==null?void 0:(x=z.chips)==null?void 0:x.entries())||[]);for(z=X.next();!z.done;z=X.next()){z=_.A(z.value);x=z.next().value;z=z.next().value;var I=void 0;if((I=_.Y(z,_.kc))==null?0:I.selected)return x}return-1})),U=f.next().value,a=f.next().value;
return _.B("chip-bar-view-model",{class:_.n4("ytChipBarViewModelHost",S.className),role:"tablist"},_.B(_.h8,{data:function(){return S.data().chips}},{chipViewModel:function(X,z){return _.B("div",{class:"ytChipBarViewModelChipWrapper"},_.B(_.ViJ,{data:X.data,
selected:function(){return z()===U()},
callback:function(x,I){x=!!I;I=z();a(x?I:-1);var n,b=(n=S.data())==null?void 0:n.chipBarStateEntityKey;b&&x&&_.Er(_.Ns("chipBarStateEntity",b,{key:b,selectedIndex:I}))},
disableDeselection:S.disableDeselection||Q}))}}))},"rc");_.f4(_.RGz,"chip-bar-view-model",{props:{data:_.Qn,className:_.Qn,disableDeselection:_.Qn}});_.yF_=_.y_(function(S){var c=S.data;S={};return _.B("divider-view-model",{class:_.n4("divider-view-model-wiz",(S["divider-view-model-wiz__inset-thin-padding"]=function(){return c().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},S))},_.B("div",{class:_.n4("divider-view-model-wiz__base-divider",function(){return JYz(c().dividerStyle)}),
style:_.Yd({"background-color":function(){return c().backgroundColor?_.WV(c().backgroundColor):void 0}})}))},"sc");
_.yF_.idomCompat=!0;_.f4(_.yF_,"divider-view-model",{props:{data:_.y$}});var sI=new Map,wD=new Map,X6R=0,M$;var nBH=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],KHp={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var o6d,mAe;o6d=function(S){return function(c){return function(){return String(c())+S}}};
_.Du=o6d("px");mAe=o6d("s");var cVd=_.y_(function(S){function c(t){return function(){var V=l().numItemsPerGridRow,AZ=t()*V;V=AZ+V;var IH,Nr;return(Nr=(IH=f().contents)==null?void 0:IH.slice(AZ,V))!=null?Nr:[]}}
var Q=_.V_(S,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),f=Q.data,U=Q.layoutContainerWidth,a=Q.shouldUseOwnContainerSize,X=Q.marginSettings;Q=_.A(_.ny(!0,void 0,"qgr2Je"));var z=Q.next().value,x=Q.next().value,I=function(){var t,V=(t=_.Y(f().showMoreButton,_.Ya))==null?void 0:t.trackingParams;V&&_.F2(_.Kv(),V);x(!1)},n=function(){var t,V=(t=_.Y(f().showLessButton,_.Ya))==null?void 0:t.trackingParams;
V&&_.F2(_.Kv(),V);x(!0)};
Q=_.EH("grid-shelf-view-model");var b=_.uMc(Q,{canHaveZeroSize:!1}),N=function(){var t;return(t=f().contentAspectRatio)!=null?t:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},l=_.uQ(function(){var t=_.Ri({containerWidth:a()&&b.width()>0?b.width()||U():U(),
sizing:"EXTRA_COMPACT",marginSettings:X(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:t.maxContainerWidth,numItemsPerGridRow:t.numItems,contentPadding:a()?t.margin:t.contentMargin,itemWidth:t.itemWidth,itemMargin:t.gutter/2}},void 0,"pqVdjc"),H=function(){if(f().enableVerticalExpansion){if(z())return q();
var t,V,AZ=(V=(t=f().contents)==null?void 0:t.length)!=null?V:0;return Math.ceil(AZ/l().numItemsPerGridRow)}return l().numItemsPerGridRow<=2?2:1},q=function(){var t;
return Math.ceil(((t=f().minCollapsedItemCount)!=null?t:1)/l().numItemsPerGridRow)},w=function(){return f().enableVerticalExpansion&&f().showLessButton&&!z()&&H()>q()},g=function(){var t,V;
return f().enableVerticalExpansion&&f().showMoreButton&&z()&&((V=(t=f().contents)==null?void 0:t.length)!=null?V:0)>l().numItemsPerGridRow*q()},r=function(){return!w()},E=function(){return!g()},v={};
return _.B("grid-shelf-view-model",{class:_.n4("ytGridShelfViewModelHost",S.className,(v.ytGridShelfViewModelHostHasBottomButton=function(){return w()||g()},v)),
el:Q,style:_.Yd({"margin-left":(0,_.Du)(function(){return l().contentPadding}),
"margin-right":(0,_.Du)(function(){return l().contentPadding})})},_.B(_.K,{cond:function(){return _.Y(f().header,Yaz)},
then:function(t){return _.B(_.aO,{data:t,disableHorizontalPadding:!0})}}),_.B("div",null,_.B(_.lW,{each:function(){return Array(H())}},function(t,V){return _.B(Ss_,{className:S.className,
items:c(V),responsiveGridShelfLayout:l,contentAspectRatio:N})})),_.B("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.B(_.h8,{data:function(){return f().showMoreButton}},{buttonViewModel:function(t){return _.B("div",{hidden:E},_.B(_.Ze,{data:t.data,
onClick:I}))}}),_.B(_.h8,{data:function(){return f().showLessButton}},{buttonViewModel:function(t){return _.B("div",{hidden:r},_.B(_.Ze,{data:t.data,
onClick:n}))}})))},"tc");
cVd.idomCompat=!0;var Ss_=_.y_(function(S){var c=S.items;var Q=S.responsiveGridShelfLayout;var f=S.contentAspectRatio;S=S.className;var U=_.EH("div");AYM(U,function(){a:{var X=U.value;for(var z=c(),x=[],I=0;I<z.length;I++){var n=_.Y(z[I],Q0e);if(!n||n==null||!n.inlinePlayerData){X=null;break a}var b=X.children.item(I);if(!b){X=null;break a}x.push({thumbnailElement:b,videoData:n})}X={gridVideoPreviewData:{gridItems:x}}}return X});
var a=(0,_.Du)(function(){return-Q().itemMargin});
return _.B("div",{el:U,class:_.n4("ytGridShelfViewModelGridShelfRow",S),style:_.Yd({"margin-left":a,"margin-right":a})},_.B(_.h8,{data:c,replacementWrapper:function(X){return _.B(QU_,{responsiveGridShelfLayout:Q},X)}},{shortsLockupViewModel:function(X){return _.B(QU_,{responsiveGridShelfLayout:Q},_.B(eaz,{data:X.data,
aspectRatio:function(){return f()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"uc"),QU_=_.y_(function(S){return _.B("div",{style:_.Yd({width:(0,_.Du)(function(){return S.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+S.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},S.children)},"vc");
cVd.idomCompat=!0;_.f4(cVd,"grid-shelf-view-model",{props:{data:_.y$,layoutContainerWidth:_.y$,shouldUseOwnContainerSize:_.y$,marginSettings:_.y$,className:_.y$}});_.fDd=_.y_(function(S){var c=_.A(_.ny(!1,void 0,"YYtxR")),Q=c.next().value,f=c.next().value;c={};return _.B("yt-alert-banner-view-model",{class:_.n4("ytAlertBannerViewModelHost",S.className,function(){var U;a:switch((U=S.data())==null?void 0:U.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":U="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":U="ytAlertBannerViewModelWarning";break a;default:U="ytAlertBannerViewModelInformational"}return U},(c.ytAlertBannerViewModelDismissed=
Q,c.ytAlertBannerViewModelFullbleed=S.fullbleed,c.ytAlertBannerViewModelNarrow=S.narrow,c.ytAlertBannerViewModelIsInRichGrid=S.isInRichGrid,c))},_.B(_.K,{cond:function(){var U;
return!((U=S.data())==null?0:U.hideIcon)},
then:function(){return _.B("div",{class:"ytAlertBannerViewModelIcon"},_.B(_.C4,{icon:function(){return"info_circle"}}))}}),_.B("div",{class:"ytAlertBannerViewModelOuterContainer"},_.B("div",{class:"ytAlertBannerViewModelContainer"},_.B("div",{class:"ytAlertBannerViewModelContent"},_.B("div",{class:"ytAlertBannerViewModelHeading"},_.B(_.mw,{text:function(){var U;
return(U=S.data())==null?void 0:U.heading}})),_.B("div",{class:"ytAlertBannerViewModelBody"},_.B(_.mw,{text:function(){var U;
return(U=S.data())==null?void 0:U.body}})))),_.B(_.h8,{data:function(){var U;
return(U=S.data())==null?void 0:U.actionButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.B(_.h8,{data:function(){var U;
return(U=S.data())==null?void 0:U.dismissButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var a;((a=S.data())==null?0:a.disableLocalDismissBehavior)||f(!0)}})}}))},"wc");_.f4(_.fDd,"yt-alert-banner-view-model",{props:{data:_.y$,fullbleed:_.y$,narrow:_.y$,isInRichGrid:_.y$,className:_.y$}});var jDY;jDY=_.l9({chipViewModel:_.ViJ,buttonViewModel:_.Ze});_.UyJ=_.K4(loY,{callbacks:{callback:!0}});_.Qu(loY);_.f4(_.UyJ,"chips-shelf-view-model",{props:{data:_.y$,callback:_.Qn,enableSingleChipSelection:_.y$,disableChipsScrollAnimation:_.y$}});var JVd=_.y_(function(S){S=_.V_(S,{disabled:!1});var c=S.active,Q=S.disabled;S={};S=_.n4("ytSwitchShapeTrack",(S.ytSwitchShapeTrackActive=function(){return c()},S.ytSwitchShapeTrackDisabled=function(){return Q()},S));
var f={};f=_.n4("ytSwitchShapeKnob",(f.ytSwitchShapeKnobActive=function(){return c()},f));
return _.B("switch-shape",{class:"ytSwitchShapeHost"},_.B("div",{class:S}),_.B("div",{class:f}))},"xc");var aDz=_.y_(function(S){var c=_.V_(S,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),Q=c.data;S=c.className;var f=c.handleOnTapEventInParent,U=c.parentActive;c=_.A(_.l8(function(){var b;return(b=U())!=null?b:Q().switchedOnByDefault||!1}));
var a=c.next().value,X=c.next().value,z=function(){return Q().isDisabled},x=_.EH("button");
c=_.$d(function(b){return b.key==="Enter"?(b.preventDefault(),x.value.click(),!1):!0});
var I=_.$d(function(b){if(Q().handleOnTapEventInParent||f())return!0;if(z())return!1;ChZ(Q(),a(),b);X(!a());return!1}),n={};
n=_.n4("ytSwitchButtonViewModelButton",(n.ytSwitchButtonViewModelTappable=function(){return!z()},n));
return _.B("switch-button-view-model",{class:_.n4("ytSwitchButtonViewModelHost",S)},_.B("button",{el:x,class:n,"on:click":I,"on:keydown":c,"aria-label":function(){return a()?Q().a11yLabelSwitchedOn:Q().a11yLabelSwitchedOff},
"aria-checked":a,"aria-disabled":z,role:"switch"},_.B(JVd,{active:a,disabled:z})))},"yc");var Xju=_.y_(function(S){var c=_.V_(S,{checked:!1});S=c.name;var Q=c.onChange,f=c.onClick,U=c.checked,a=c.labelRenderable,X=c.hasLeadingLabel,z=c.labelClass,x=c.isCompact,I=c.selectElementClass;c=c.disableHorizontalPadding;var n="checkbox"+_.MI(_.HD),b=_.$d(function(H){f==null||f(H);return!1}),N=_.$d(function(H){Q==null||Q(H);
return!1}),l={};
return _.B("checkbox-shape",null,_.B("label",{class:_.n4("checkbox-shape-wiz",z,(l["checkbox-shape-wiz--compact"]=x,l["checkbox-shape-wiz--disable-horizontal-padding"]=c,l))},_.B("input",{class:"checkbox-shape-wiz__input",id:n,checked:U,name:S,type:"checkbox","prop:checked":U,"on:change":N,"on:click":b}),_.B(_.K,{cond:function(){return!(X==null?0:X())},
then:function(){return _.B(AVJ,{isLeading:!0,selectElementClass:I})}}),_.B(_.K,{cond:function(){return!!a},
then:function(){return _.B("div",{class:"checkbox-shape-wiz__label"},a==null?void 0:a())}}),_.B(_.K,{cond:X,
then:function(){return _.B(AVJ,{isLeading:!1,selectElementClass:I})}})))},"zc");
Xju.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var AVJ=_.y_(function(S){var c=S.selectElementClass;S={};return _.B("div",{class:_.n4("checkbox-shape-wiz__checkbox",c,(S["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(c==null?0:c())},S)),
"aria-hidden":"true"},_.B(_.C4,{icon:_.u("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.B(_.C4,{icon:_.u("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"Ac");_.p5=_.y_(function(S){var c=S.name;var Q=S.onChange;var f=S.onClick;var U=S.checked;var a=S.labelRenderable;var X=S.useCheckIcon;var z=S.hasLeadingLabel;var x=S.labelClass;var I=S.isCompact;var n=S.selectElementClass;var b=S.ariaLabel;S=S.className;var N="radio"+_.MI(_.HD),l=_.EH("input"),H=_.$d(function(t){l.value.checked=!(U==null||!U());Q==null||Q(t);return!1}),q=_.$d(function(t){f==null||f(t);
return!1}),w=_.A(_.ny(!1,void 0,"v5AMrb")),g=w.next().value,r=w.next().value;
w=_.$d(function(){var t;((t=_.fl().resolve(_.QS(_.zy)))==null?0:t.isKeyBoardInUse())&&r(!0)});
var E=_.$d(function(){r(!1)}),v={};
return _.B("radio-shape",{class:_.n4("radio-shape-wiz",S)},_.B("input",{el:l,class:"radio-shape-wiz__input",id:N,"prop:checked":U,name:c,type:"radio","on:change":H,"on:click":q,"aria-label":b,"on:focusin":w,"on:focusout":E}),_.B("label",{class:_.n4("radio-shape-wiz__label-container",x,(v["radio-shape-wiz--compact"]=I,v["radio-shape-wiz__label-container--keyboard-focused"]=g,v)),for:N},_.B(_.K,{cond:function(){return!(z==null?0:z())},
then:function(){return _.B(OHd,{checked:U,useCheckIcon:X,isLeading:!0,selectElementClass:n})}}),_.B(_.K,{cond:function(){return!!a},
then:function(){return _.B("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(b==null?0:b())?"true":"false"}},a==null?void 0:a())}}),_.B(_.K,{cond:z,
then:function(){return _.B(OHd,{checked:U,useCheckIcon:X,isLeading:!1,selectElementClass:n})}})))},"Bc");
_.p5.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var OHd=_.y_(function(S){var c=S.useCheckIcon;var Q=S.selectElementClass;S=function(){return(c==null?0:c())?"CHECK":_.u("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var f={};return _.B("div",{class:_.n4("radio-shape-wiz__radio",Q,(f["radio-shape-wiz__radio--check-icon"]=c,f["radio-shape-wiz__radio--radio-default-style"]=function(){return!(Q==null?0:Q())},f)),
"aria-hidden":"true"},_.B(_.C4,{icon:S}),_.B(_.C4,{icon:S,active:function(){return!(c==null?0:c())}}))},"Cc");_.hQ=_.y_(function(S){function c(){var op;((op=_.fl().resolve(_.QS(_.zy)))==null?0:op.isKeyBoardInUse())&&yd(!0)}
function Q(){yd(!1)}
var f=S.data;var U=S.isMenuItem;var a=S.isCompact;var X=S.onTap;var z=S.trailingAccessory;var x=S.hideSelectionTextChevron;var I=S.disabled;var n=S.inPopup;var b=S.disableHorizontalPadding;var N=S.isOverlay;var l=S.isToggled;var H=_.u("apply_button_role_to_list_item"),q=_.Gs(function(op){a:{var DT=f();if((DT==null?0:DT.entitySelectorType)&&(DT==null?0:DT.entityKey))switch(DT.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":op=_.Qyx(op,DT.entityKey);
op=op==null?void 0:op.value;DT=!1;op==="CAPTIONS_UNAVAILABLE"&&(DT=!0,op="");op=Object.assign({},!!op&&{selectionText:{content:op}},{isSelected:!!op},!!op&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:DT});break a;default:op={}}else op={}}return op}),w=function(){return _.u("enable_web_shorts_captions_language_command")?Object.assign({},f(),q()):f()},g=function(){return!(w().isSelected===void 0||!w().selectionStyle||w().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
r=function(){return(_.PK(w().rendererContext)||X)&&!g()},E=function(){return _.PK(w().rendererContext)||g()};
S={};N=_.n4("yt-list-item-view-model-wiz",(S["yt-list-item-view-model-wiz--is-overlay"]=N,S["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!H&&ex()},S));
S={};var v=_.n4("yt-list-item-view-model-wiz__label",(S["yt-list-item-view-model-wiz__container"]=function(){return!g()},S["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!w().isDisabled||!(I==null||!I())},S["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!w().subtitle},S["yt-list-item-view-model-wiz__container--compact"]=a,S["yt-list-item-view-model-wiz__container--tappable"]=r,S["yt-list-item-view-model-wiz__container--in-popup"]=n,S["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return H&&ex()},S["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(b==null?void 0:b())&&!g()},S));
S={};var t=_.n4("yt-list-item-view-model-wiz__container",(S["yt-list-item-view-model-wiz__container--tappable"]=E,S["yt-list-item-view-model-wiz__container--compact"]=a,S["yt-list-item-view-model-wiz__container--in-popup"]=n,S["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=function(){return(b==null?void 0:b())&&g()},S)),V=function(){return w().leadingImage||w().leadingAccessory},AZ=_.n4("yt-list-item-view-model-wiz__image-container",function(){return V()?"yt-list-item-view-model-wiz__trailing":
"yt-list-item-view-model-wiz__leading"});
n=_.EH("yt-list-item-view-model");var IH=_.EH("div"),Nr=H?IH:n,Hc=_.y_(function(){return _.B(_.K,{cond:function(){return H},
then:function(){return _.B("div",{class:v,el:IH,role:function(){return E()||r()?"button":void 0},
tabindex:function(){return X||r()?0:void 0},
"on:keydown":wp,"on:click":qr},_.B(zZd,{data:w,hideSelectionTextChevron:x,trailingAccessory:z,isToggled:l}))},
else:function(){return _.B("div",{class:v,el:IH},_.B(zZd,{data:w,hideSelectionTextChevron:x,trailingAccessory:z,isToggled:l}))}})},"Dc");
Hc.idomCompat=!0;_.LS(n,function(){return w().rendererContext});
var qr=_.$d(function(op){return void(X==null?void 0:X(op))}),wp=_.JEz(),Pc=_.A(_.ny(!1,void 0,"kFezJc"));
S=Pc.next().value;Pc=Pc.next().value;var ex=S,yd=Pc;_.wC(function(){r()&&(Nr.value.addEventListener("focusin",c),Nr.value.addEventListener("focusout",Q));_.wX(function(){Nr.value&&r()&&(Nr.value.removeEventListener("focusin",c),Nr.value.removeEventListener("focusout",Q))})});
S=_.$d(function(){return!0});
return _.B("yt-list-item-view-model",{el:n,class:N,role:function(){return(U==null?0:U())?"menuitem":"listitem"},
tabindex:function(){var op=r();op=H?void 0:X||op?0:void 0;return op},
"on:keydown":H?S:wp,"on:click":H?S:qr},_.B(_.K,{cond:g,then:function(){return _.B(_.DJ,null,_.B(_.YC,{when:function(){return w().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.B(Xju,{labelRenderable:function(){return _.B(Hc,null)},
isCompact:a,checked:function(){return w().isSelected},
hasLeadingLabel:function(){return!!V()},
labelClass:t,selectElementClass:AZ,disableHorizontalPadding:b})}),_.B(_.YC,{when:function(){return w().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.B(_.p5,{labelRenderable:function(){return _.B(Hc,null)},
isCompact:a,checked:function(){return w().isSelected},
hasLeadingLabel:function(){return!!V()},
labelClass:t,selectElementClass:AZ})}),_.B(_.YC,{when:function(){return w().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.B(_.p5,{labelRenderable:function(){return _.B(Hc,null)},
isCompact:a,checked:function(){return w().isSelected},
hasLeadingLabel:function(){return!!V()},
labelClass:t,selectElementClass:AZ,useCheckIcon:!0})}),_.B(_.HY,null,function(){return _.B(Hc,null)}))},
else:function(){return _.B(Hc,null)}}))},"Ec");
_.hQ.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var zZd=_.y_(function(S){var c=S.data;var Q=S.hideSelectionTextChevron;var f=S.trailingAccessory;var U=S.isToggled;return _.B(_.ak,null,_.B(xyp,{data:c,isLeading:!0,hideSelectionTextChevron:function(){return!(Q==null||!Q())},
isToggled:U}),_.B(FKp,{data:c}),_.B(_.K,{cond:function(){return!!f},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__trailing"},f==null?void 0:f())},
else:function(){return _.B(xyp,{data:c,isLeading:!1,hideSelectionTextChevron:function(){return!(Q==null||!Q())},
isToggled:U})}}))},"Fc"),xyp=_.y_(function(S){var c=S.data;
var Q=S.isLeading;var f=S.hideSelectionTextChevron;var U=S.isToggled;var a=_.n4("yt-list-item-view-model-wiz__button-container");S={};var X=_.n4("yt-list-item-view-model-wiz__image-container",(S["yt-list-item-view-model-wiz__leading"]=Q,S["yt-list-item-view-model-wiz__trailing"]=function(){return!Q()},S)),z=function(){return Q()?c().leadingImage:c().trailingImage},x=_.n4("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
S={};var I=_.n4("yt-list-item-view-model-wiz__accessory",(S["yt-list-item-view-model-wiz__leading"]=Q,S["yt-list-item-view-model-wiz__trailing"]=function(){return!Q()},S)),n=function(){a:switch(c().listItemIconAfterSelectionText){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":var b="expand_more";
break a;default:b="chevron_right"}return b};
return _.B(_.K,{cond:function(){var b=c(),N=Q();return!!(N&&(b.leadingImage||b.leadingAccessory)||!N&&(b.trailingImage||b.trailingButton||b.trailingButtons||b.selectionText))},
then:function(){return _.B(_.ak,null,_.B(_.K,{cond:z,then:function(b){return _.B("div",{class:X,"aria-hidden":"true"},_.B(_.RW,{data:b,alt:"",preserveWidth:!0,preserveHeight:!0,className:x,isToggled:U}))}}),_.B(_.K,{cond:function(){return Q()&&c().leadingAccessory},
then:function(){return _.B("div",{class:X},_.B(_.h8,{data:function(){return c().leadingAccessory}},{avatarViewModel:function(b){return _.B(_.p3,{data:b.data,
avatarButtonCustomClassName:x})},
collectionThumbnailViewModel:wzd}))}}),_.B(_.K,{cond:function(){return!Q()&&c().trailingButton},
then:function(){return _.B("div",{class:a},_.B(_.h8,{data:function(){return c().trailingButton}},{buttonViewModel:function(b){return _.B(_.Ze,{data:b.data,
className:I})}}))}}),_.B(_.K,{cond:function(){var b;
return!Q()&&((b=c().trailingButtons)==null?void 0:b.buttons)},
then:function(){return _.B("div",{class:a},_.B(_.h8,{data:function(){var b;return(b=c().trailingButtons)==null?void 0:b.buttons}},{buttonViewModel:function(b){return _.B(_.Ze,{data:b.data,
className:I})},
accountLinkButtonViewModel:function(b){return _.B(kuM,{data:b.data,className:I})},
switchButtonViewModel:function(b){return _.B(aDz,{data:b.data,className:I})},
subscribeButtonViewModel:function(b){return _.B(_.Dj,{data:b.data,isOverlay:!1,animateWidth:!1,className:I})},
toggleButtonViewModel:function(b){return _.B(_.qs,{data:b.data,className:I})}}))}}),_.B(_.K,{cond:function(){return!Q()&&!!c().selectionText},
then:function(){return _.B(_.ak,null,_.B(_.mw,{text:function(){return c().selectionText},
className:_.n4("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.B(_.K,{cond:function(){return!f()},
then:function(){return _.B(_.C4,{icon:n,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"Gc"),FKp=_.y_(function(S){var c=S.data;
return _.B(_.K,{cond:function(){return c().title||c().subtitle},
then:function(){return _.B("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.B("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.B(_.K,{cond:function(){return c().title},
then:function(Q){return _.B(_.mw,{text:Q,className:"yt-list-item-view-model-wiz__title"})}})),_.B(_.K,{cond:function(){return c().subtitle},
then:function(Q){return _.B(_.mw,{text:Q,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"Hc");_.Bud=_.y_(function(S){var c=S.data;var Q=S.onTap;var f=S.onSwitch;var U=S.overrideDisabled;S=S.disableHorizontalPadding;var a=_.A(_.l8(function(){var b;return((b=DWz(n()))==null?void 0:b.switchedOnByDefault)||!1})),X=a.next().value,z=a.next().value;
a=_.A(_.ny(!1,void 0,"ZHBkbb"));var x=a.next().value,I=a.next().value,n=function(){var b;if(!(b=c().switchButton)){var N=c();b=U==null?void 0:U();N={switchOnCommand:N.switchOnCommand,switchOffCommand:N.switchOffCommand,switchedOnByDefault:N.switchedOnByDefault,isDisabled:N.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:N.a11yLabelSwitchedOn,a11yLabelSwitchedOff:N.a11yLabelSwitchedOff};b!==void 0&&(N.isDisabled=b);b={switchButtonViewModel:N}}return b};
return _.B("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.B(_.hQ,{data:function(){return{title:c().title,subtitle:c().attributedSubtitle,leadingImage:c().leadingImage,leadingAccessory:c().leadingAccessory,isDisabled:c().isDisabled}},
onTap:function(b){var N=DWz(n());!N||N.isDisabled||c().ignoreTapUntilCommandCompletes&&x()||(Q==null||Q(b),ChZ(N,X(),b,c().ignoreTapUntilCommandCompletes,I),z(!X()),f==null||f(X()))},
trailingAccessory:function(){return _.B(_.h8,{data:n},{switchButtonViewModel:function(b){return _.B(aDz,{data:b.data,parentActive:X,handleOnTapEventInParent:!!Q})}})},
disableHorizontalPadding:S}))},"Ic");var IDh=_.y_(function(S){var c=_.EH("toggleable-list-item-view-model"),Q=_.A(_.l8(function(){var a,X;return!!((a=S.data())==null?0:(X=a.initialState)==null?0:X.isToggled)})),f=Q.next().value,U=Q.next().value;
_.LS(c,function(){return S.data().rendererContext});
Q=_.$d(function(){U(!f())});
return _.B("toggleable-list-item-view-model",{el:c,class:_.n4("toggleableListItemViewModelHost",S.className),"on:click":Q},_.B(_.K,{cond:f,then:function(){return _.B(_.h8,{data:function(){return S.data().toggledListItem}},{listItemViewModel:function(a){return _.B(_.hQ,{data:a.data,
isToggled:f})}})},
else:function(){return _.B(_.h8,{data:function(){return S.data().defaultListItem}},{listItemViewModel:_.hQ})}}))},"Jc");var nii=_.K8("DOWNLOAD",{},"Download"),bH$=_.K8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),Nup=_.K8("RETRY",{},"Retry"),KKi=_.K8("PAUSE_DOWNLOADING",{},"Pause downloading"),$ye=_.K8("RESUME_DOWNLOAD",{},"Resume download"),p6R={text:nii,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},iV={text:bH$,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},Tqc={text:Nup,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
hPY={text:KKi,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},qKT={text:$ye,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var uep=_.y_(function(S){var c=function(){var z=S.data();z=_.vK(z.rendererContext);var x;return(x=_.Y(z,_.BK))==null?void 0:x.videoId},Q=_.Gs(function(z){var x=c(),I=Mfr(S.data());
return x?_.iZ(z,x):I?_.Z8(z,I):"TRANSFER_STATE_UNKNOWN"}),f=_.b9(_.MTM,c),U=_.Gs(function(z){return _.pAz(z,c(),Mfr(S.data()))}),a=function(){return sDZ(Q(),f(),_.vK(S.data().rendererContext),!!Mfr(S.data()))},X=function(){return U()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.B("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:X},_.B(_.K,{cond:function(){return!X()},
then:function(){return _.B(_.K,{cond:a,then:function(z){return _.B(_.lW,{each:z},function(x){return _.B(_.hQ,{data:x,isCompact:S.isCompact,isMenuItem:S.isMenuItem,inPopup:S.inPopup,disableHorizontalPadding:S.disableHorizontalPadding})})}})}}))},"Kc");
uep.idomCompat=!0;_.jUz=_.y_(function(S){var c=S.data;var Q=S.isCompact;var f=S.hideSelectionTextChevron;var U=S.inPopup;var a=S.isOverlay;var X=S.disableHorizontalPadding;var z=function(){return iQY(c())&&(U==null?void 0:U())};
S={};return _.B("yt-list-view-model",{class:_.n4("yt-list-view-model-wiz",(S["yt-list-view-model-wiz--kaios-spat-nav"]=VkT&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true",S)),role:function(){return z()?"menu":"list"},
style:_.Yd({"max-height":function(){var x,I=(x=c())==null?void 0:x.visibleElementCount;if(I)return GbZ(c())?(I+.5)*48+"px":(I+.5)*40+"px"}})},_.B(_.h8,{data:function(){return c().listItems}},{listItemViewModel:function(x){return _.B(_.hQ,{data:x.data,
isMenuItem:z,isCompact:Q,hideSelectionTextChevron:f,inPopup:U,isOverlay:a,disableHorizontalPadding:X})},
toggleableListItemViewModel:function(x){return _.B(IDh,{data:x.data})},
downloadListItemViewModel:function(x){return _.B(uep,{data:x.data,isMenuItem:z,isCompact:Q,inPopup:U,disableHorizontalPadding:X})},
switchListItemViewModel:function(x){return _.B(_.Bud,{data:x.data,disableHorizontalPadding:X})}}))},"Lc");
_.jUz.idomCompat=!0;var lDu=_.y_(function(S){var c=S.data;var Q=S.isOverlay;S={};return _.B("yt-course-perks-view-model",{class:_.n4("ytwCoursePerksViewModelHost",(S.ytwCoursePerksViewModelHostOverlay=Q,S))},_.B("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.B(_.mw,{text:function(){return c().title}})),_.B("div",null,_.B(_.K,{cond:function(){return c().perks},
then:function(f){return _.B(_.jUz,{data:function(){return{listItems:f()}},
isCompact:!0,isOverlay:Q})}})))},"Mc");_.f4(lDu,"yt-course-perks-view-model",{props:{data:_.Qn,isOverlay:_.Qn}});_.f4(_.y_(function(S){var c=S.data;return _.B("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.B("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.B(_.mw,{text:function(){return c().title}})),_.B("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.B(_.mw,{text:function(){return c().progressSummary}})),_.B("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.B("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.Yd({width:function(){return c().progressPercentage*100+"%"}})})))},"Nc"),"yt-course-progress-view-model",{props:{data:_.y$}});var Yss=_.y_(function(S){var c={};return _.B("yt-progress-view-model",{class:_.n4("ytwProgressViewModelHost",(c.ytwProgressViewModelHostOverlay=_.tq(S.isOverlay,!1),c))},_.B(_.K,{cond:function(){return S.data().progressSummary},
then:function(Q){return _.B("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.B(_.mw,{text:Q}))}}),_.B("div",{class:"ytwProgressViewModelHostProgressContainer"},_.B(_.K,{cond:function(){return S.data().leadingLabel},
then:function(Q){return _.B("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.B(_.mw,{text:Q}))}}),_.B("div",{class:"ytwProgressViewModelHostProgressBar"},_.B("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){return"width: "+(S.data().progressPercentage||0)*100+"%"}}))))},"Oc");var qX=_.y_(function(S){var c=S.starNumber;var Q=S.data;var f=function(){var U;return((U=Q())==null?void 0:U.rating)||0};
return _.B(_.K,{cond:function(){return c()},
then:function(U){return _.B(_.DJ,null,_.B(_.YC,{when:function(){return f()>=U()-.25}},function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.C4,{icon:"STAR_FILLED"}))}),_.B(_.YC,{when:function(){return f()>=U()-.75}},function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.C4,{icon:"STAR_HALF"}))}),_.B(_.HY,null,function(){return _.B("div",{class:"ytStarRatingViewModelHostStar"},_.B(_.C4,{icon:"STAR_BORDER"}))}))}})},"Pc"),CI_=_.y_(function(S){S=S.data;
return _.B("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.B(qX,{starNumber:1,data:S}),_.B(qX,{starNumber:2,data:S}),_.B(qX,{starNumber:3,data:S}),_.B(qX,{starNumber:4,data:S}),_.B(qX,{starNumber:5,data:S}))},"Qc");_.f4(_.y_(function(S){var c=_.V_(S,{}).data;return _.B("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.B("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.B(_.mw,{text:function(){var Q;return(Q=c())==null?void 0:Q.title}})),_.B("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.B(_.K,{cond:function(){return c().starProgressViewModels},
then:function(Q){return _.B("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.B(_.h8,{data:Q},{progressViewModel:Yss}))}}),_.B("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.B("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.B(_.mw,{text:function(){var Q;
return(Q=c())==null?void 0:Q.averageRatingLabel}})),_.B(_.K,{cond:function(){return c().zeroStateText},
then:function(Q){return _.B("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.B(_.mw,{text:Q}))}}),_.B(_.K,{cond:function(){return c().starRatingViewModel},
then:function(Q){return _.B("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.B(_.h8,{data:Q},{starRatingViewModel:CI_}))}}),_.B("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.B(_.mw,{text:function(){var Q;
return(Q=c())==null?void 0:Q.totalRatingsCountLabel}})))))},"Rc"),"yt-course-ratings-view-model",{props:{data:_.Qn}});var HHJ;HHJ={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.Dy$=_.y_(function(S){var c=_.EH("yt-learning-journey-loader-view-model"),Q=_.xa();_.qR(function(){requestAnimationFrame(function(){var U;(U=Q.lottieEl)==null||U.addEventListener("DOMLoaded",function(){var a;(a=S.onLottieLoaded)==null||a.call(S)})});
var f=S.data().browseEndpoint;f&&_.kz(f)});
return _.B("yt-learning-journey-loader-view-model",{class:_.n4("learningJourneyLoaderViewModelHost",S.className),"data-target-id":function(){var f;return((f=S.data)==null?void 0:f.call(S).targetId)||""},
el:c},_.B(_.b8,{className:_.n4("learningJourneyLoaderViewModelLoader",S.className),animationName:function(){return HHJ.animationConfig.name},
data:HHJ,animationRef:Q}))},"Sc");_.f4(_.Dy$,"yt-learning-journey-loader-view-model",{props:{data:_.y$,className:_.Qn,onLottieLoaded:_.Qn}});_.pj_=_.y_(function(S){var c=function(){return S.data()},Q=_.A(_.ny(-1,void 0,"vug48")),f=Q.next().value,U=Q.next().value,a=function(b){return f()===b},X=function(b){return c().correctAnswerIndex===b},z=function(){return f()!==-1},x=function(){return f()===c().correctAnswerIndex},I=_.$d(function(){U(-1);
return!1}),n=function(b){return x()&&X(b)};
return _.B("learning-journey-quiz-view-model",{class:_.n4("learningJourneyQuizViewModelHost",S.className),style:_.Yd({background:function(){return WZ(Z6(c())).backgroundColor}})},_.B(_.K,{cond:function(){return!!c().video},
then:function(){return _.B("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.Yd({background:function(){return WZ(Z6(c())).videoBackgroundColor}})},_.B(_.h8,{data:function(){return c().video}},{lockupViewModel:function(b){return _.B(_.U4,{data:b.data,
containerType:1,className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.B("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.B("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.B("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeader",
style:_.Yd({"align-items":function(){return c().overflowMenu?"start":"center"}})},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderTextContainer",
style:_.Yd({"min-height":function(){return c().overflowMenu?"48px":"26px"}})},_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.Yd({color:function(){return WZ(Z6(c())).primaryTextColor}}),
"client-ve-type":function(){var b=z(),N=x();return b?N?264685:264684:264683}},_.B(_.mw,{text:function(){var b=c(),N=z(),l=x();
return N?l?b.successTitle:b.failureTitle:b.questionHeaderText}}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.B(_.K,{cond:z,
then:function(){return _.B("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":I,role:"button","aria-label":"Reset","tab-index":"0","client-ve-type":264687},_.B("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.Yd({fill:function(){return WZ(Z6(c())).primaryTextColor}})},_.B("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"})))}}),
_.B(_.h8,{data:function(){return c().overflowMenu}},{buttonViewModel:function(b){return _.B(_.Ze,{data:b.data})}}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.Yd({color:function(){return WZ(Z6(c())).secondaryTextColor}}),
"client-ve-type":264688},_.B(_.mw,{text:function(){var b=c();return z()?b.explanationText:b.questionSubheaderText}}))),_.B("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.B(_.lW,{each:function(){return c().optionsData||[]}},function(b,N){var l={};
return _.B("div",{class:_.n4("learningJourneyQuizViewModelHostQuizOptions",(l.learningJourneyQuizViewModelHostQuizHover=function(){return!z()},l.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return n(N())},l.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return!x()&&a(N())},l.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return z()&&!a(N())},l)),
"on:click":_.$d(function(){if(z())return!1;U(N());return!1}),
style:_.Yd({background:function(){return z()&&a(N())?"":WZ(Z6(c())).optionColor}}),
role:"button","aria-disabled":z,"tab-index":"0","client-ve-type":264686},_.B(_.K,{cond:z,then:function(){var H={};return _.B("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var q=N();return X(q)?"0 0 24 24":"0 -960 960 960"},
class:_.n4("learningJourneyQuizViewModelHostQuizOptionIcon",(H.learningJourneyQuizViewModelHostQuizOptionIconPulse=function(){return n(N())},H)),
style:_.Yd({fill:function(){return WZ(Z6(c())).primaryTextColor}})},_.B("path",{d:function(){var q=N();
return X(q)?"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"}}))}}),_.B(_.mw,{text:b.optionText}))})))))},"Tc");
_.pj_.idomCompat=!0;_.f4(_.pj_,"learning-journey-quiz-view-model",{props:{data:_.y$,className:_.y$}});var hZd=_.y_(function(S){var c=_.EH("yt-macro-marker-list-item-view-model");_.LS(c,function(){return S.data().rendererContext});
var Q=_.V_(S,{palette:void 0,isLastItem:!1}),f=Q.palette,U=Q.isLastItem,a=function(){return S.data().isHighlighted},X=function(){var I;
return WHp((I=f())==null?void 0:I.iconDisabledColor)},z=function(){var I;
return WHp((I=f())==null?void 0:I.primaryTitleColor)},x=function(){var I;
return WHp((I=f())==null?void 0:I.secondaryTitleColor)};
Q={};return _.B("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:c},_.B(_.h8,{data:function(){return S.data().thumbnail}},{thumbnailViewModel:_.RP}),_.B("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.B("div",{class:_.n4("ytMacroMarkerListItemViewModelTimeDescription",(Q.ytMacroMarkerListItemViewModelHighlighted=a,Q)),
style:_.Yd({"background-color":function(){return a()?z():X()},
color:function(){return a()?"":x()}})},_.B(_.mw,{text:function(){return S.data().timestamp}})),_.B("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.Yd({"background-color":function(){return U()?"transparent":X()}})}),_.B("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(a()?z():x())}},_.B(_.mw,{text:function(){return S.data().title}}))))},"Uc");_.TU=_.y_(function(S){function c(zJ){g("transform:translateX("+(_.WY("HTML_DIR")==="rtl"?"":"-")+zJ+"px)")}
function Q(zJ){return Math.min(Math.max(zJ,0),w()-V())}
function f(){var zJ=v()+Hc();return U()?(Math.round(V()/zJ)||1)*zJ:0}
var U=function(){return S.data().items||[]},a=function(){return S.data().previousButton},X=function(){return S.data().nextButton},z=function(){var zJ,Qp;
return(Qp=(zJ=S.disableArrows)==null?void 0:zJ.call(S))!=null?Qp:!1},x=function(){var zJ;
return!((zJ=S.forceNarrowLayout)==null||!zJ.call(S))},I=_.EH("horizontal-shelf-view-model"),n=_.EH("div"),b=_.A(_.ny(0,void 0,"D4aXB")),N=b.next().value,l=b.next().value;
b=_.A(_.ny(0,void 0,"GQlHRc"));var H=b.next().value,q=b.next().value,w=H;H=_.A(_.ny("",void 0,"Bw1Yz"));b=H.next().value;var g=H.next().value;H=_.A(_.ny(0,void 0,"buTjVb"));var r=H.next().value,E=H.next().value,v=r;H=_.A(_.ny(0,void 0,"GIAWN"));r=H.next().value;var t=H.next().value,V=r;H=_.A(_.ny(!1,void 0,"cenvwc"));var AZ=H.next().value,IH=H.next().value;H=_.A(_.ny(0,void 0,"LSY2Ub"));r=H.next().value;var Nr=H.next().value,Hc=r;H=_.A(_.ny(0,void 0,"oS46jc"));var qr=H.next().value,wp=H.next().value,
Pc=function(){var zJ,Qp=(zJ=S.data())==null?void 0:zJ.responsiveContainerConfiguration,xl,xZ;return Qp?zaZ(Qp==null?void 0:Qp.responsiveSize):(xZ=(xl=S.sizing)==null?void 0:xl.call(S))!=null?xZ:"STANDARD"};
H=_.uQ(function(){return!z()&&N()>0},void 0,"KINjJe");
r=_.uQ(function(){return!z()&&N()<w()-V()},void 0,"Ea00Ib");
var ex=function(){l(Q(N()-f()));c(N())},yd=function(){l(Q(N()+f()));
c(N())},op=function(){I.value!==null&&B_()},DT;
_.wC(function(){B_();window.ResizeObserver?(DT=new ResizeObserver(_.jW(op,0)),DT.observe(I.value)):window.addEventListener("resize",op)});
_.wX(function(){if(window.ResizeObserver){var zJ;(zJ=DT)==null||zJ.disconnect()}else window.removeEventListener("resize",op)});
var B_=function(){var zJ=I.value.clientWidth,Qp=S.includeMargin!==void 0?S.includeMargin():!1,xl;var xZ=S.hasPeek!==void 0?S.hasPeek():!((xl=S.data())==null||!xl.hasPeek);zJ=_.Ri({containerWidth:zJ,hasPeek:xZ,sizing:Pc(),marginSettings:Qp?x()?4:1:0});Nr(zJ.gutter);wp(zJ.margin);E(zJ.itemWidth);IH(zJ.maxContainerWidth<528||x());t(zJ.maxContainerWidth);U()&&q((zJ.itemWidth+zJ.gutter)*U().length-zJ.gutter)};
return _.B("horizontal-shelf-view-model",{class:_.n4("ytwHorizontalShelfViewModelHost",S.className),el:I},_.B(_.K,{cond:function(){var zJ;return S.data().header&&!((zJ=S.horizontalShelfExperiments)==null?0:zJ.call(S).hideHeader)},
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.Yd({width:function(){return V()+"px"},
padding:function(){return"0 "+qr()+"px"}})},_.B(_.h8,{data:function(){return S.data().header}},{sectionHeaderViewModel:function(zJ){return _.B(_.aO,{data:zJ.data,
disableHorizontalPadding:!0,forceSmallLayout:AZ,useResponsiveLayout:!0})}}))}}),_.B("div",{class:"ytwHorizontalShelfViewModelOuterContainer",
style:_.Yd({"margin-top":function(){var zJ,Qp=S.data().header&&!((zJ=S.horizontalShelfExperiments)==null?0:zJ.call(S).hideHeader),xl;return(((xl=S.ensureMarginTop)==null?0:xl.call(S))&&!Qp?12:0)+"px"}})},_.B("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.Yd({width:function(){return V()+"px"},
padding:function(){return"0 "+qr()+"px"},
overflow:function(){return z()?"auto":"hidden"}})},_.B("div",{class:"ytwHorizontalShelfViewModelItems",
el:n,style:b},_.B(_.h8,{data:U},{macroMarkerListItemViewModel:function(zJ,Qp){return _.B("div",{style:_.Yd({width:function(){return v()+"px"},
"margin-right":function(){return(Qp()===U().length-1?0:Hc())+"px"}})},_.B(hZd,{data:zJ.data,
palette:_.tq(S.palette),isLastItem:function(){return Qp()===U().length-1}}))},
lockupViewModel:function(zJ,Qp){var xl=zJ.data;return _.B("div",{style:_.Yd({width:function(){return v()+"px"},
"margin-right":function(){return(Qp()===U().length-1?0:Hc())+"px"}})},_.B(_.U4,{data:xl,
containerType:4,sizing:Pc,protectBackground:S.protectBackground,thumbnailFixedWidth:function(){return gBp(xl())+"px"},
thumbnailTargetWidth:function(){return gBp(xl())}}))}}))),_.B(_.K,{cond:H,
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.B(_.h8,{data:a},{buttonViewModel:function(zJ){return _.B(_.Ze,{data:zJ.data,onClick:ex})}}))}}),_.B(_.K,{cond:r,
then:function(){return _.B("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.B(_.h8,{data:X},{buttonViewModel:function(zJ){return _.B(_.Ze,{data:zJ.data,onClick:yd})}}))}})))},"Vc");
_.TU.idomCompat=!0;var qsz=_.y_(function(S){var c=function(){return S.data().targetId||""},Q=function(){var H;
return((H=S.data())==null?void 0:H.expansionEntityKey)||""},f=_.b9(_.Qyx,Q),U=!0,a=function(){var H;
return((H=f())==null?void 0:H.value)===c()},X=function(H){_.Er(_.Ns("stringEntity",Q(),{key:Q(),
value:H?c():""}))};
_.qR(function(){U=!1;S.data().isExpanded&&X(!0)});
var z=function(){if(a()){var H=!0;S.onCollapse!==void 0&&(H=S.onCollapse());H&&X(!1)}else X(!0)},x=_.$d(z),I=function(){var H;
return(((H=S.accordionStyle)==null?void 0:H.call(S))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},n=_.EH("div"),b=function(){var H,q;
return(q=(H=_.Y(S.data().rendererContext,_.jT))==null?void 0:H.label)!=null?q:""},N={},l={};
return _.B("yt-accordion-item-view-model",{class:_.n4("ytAccordionItemViewModelHost",S.className,(N.ytAccordionItemViewModelExpanded=function(){return a()},N.ytAccordionItemViewModelHidden=function(){var H;
return(H=S.hideIfNotExpanded)==null?void 0:H.call(S)},N.ytAccordionItemViewModelMini=I,N)),
"data-target-id":c},_.B("div",{class:"ytAccordionItemViewModelContainer"},_.B("div",{class:"ytAccordionItemViewModelLeftSection","on:click":x,title:b},_.B(_.mw,{text:function(){return S.data().title},
className:"ytAccordionItemViewModelLabel",ariaLabel:b})),_.B("div",{class:"ytAccordionItemViewModelRightSection"},_.B(_.h8,{data:function(){return a()?S.data().expandButton:S.data().collapseButton}},{buttonViewModel:function(H){return _.B(_.Ze,{data:H.data,
className:"ytAccordionItemViewModelToggleButton",onClick:z})}}))),_.B("div",{class:"ytAccordionItemViewModelContainer"},_.B("div",{class:_.n4("ytAccordionItemViewModelContent",(l.ytAccordionItemViewModelExpandedSubtitle=function(){return a()},l)),
el:n,style:_.Yd({"max-height":function(){return U?"auto":a()?n.value.scrollHeight+"px":"0"}}),
"aria-hidden":function(){return!a()}},_.B(_.K,{cond:function(){return!I()},
then:function(){return _.B(_.mw,{text:function(){return S.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.B(_.h8,{data:function(){return S.data().content}},{horizontalShelfViewModel:function(H){return _.B(_.TU,{data:H.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Wc");_.TuT=_.y_(function(S){var c=_.A((0,_.fbd)(S.data)).next().value,Q=function(){return S.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},f=function(){return Q()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},U=_.A(_.ny(!0,void 0,"FVec2e")),a=U.next().value,X=U.next().value,z=function(){return f()&&a()},x=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){X(!a())}}},I=_.$d(function(){c().onTitleTap&&_.kz(c().onTitleTap||{})});
U={};return _.B("yt-accordion-view-model",{class:_.n4("ytAccordionViewModelHost",(U.ytAccordionViewModelMinimized=function(){return z()},U)),
"data-target-id":function(){return S.data().targetId||""}},_.B(_.K,{cond:function(){return f()||!!c().title},
then:function(){return _.B("div",{class:"ytAccordionViewModelHeader"},_.B("div",{class:"ytAccordionViewModelTitleSection"},_.B("div",{class:"ytAccordionViewModelTitleWrapper"},_.B(_.K,{cond:function(){return!!S.data().headerIcon},
then:function(){return _.B(_.C4,{className:"ytAccordionViewModelHeaderIcon",icon:function(){var n;return(n=S.data().headerIcon)==null?void 0:n.iconType}})}}),_.B("div",{class:"ytAccordionViewModelTitle",
"on:click":I},_.B(_.mw,{className:"ytAccordionViewModelTitleText",text:function(){return c().title}})))),_.B("div",{class:"ytAccordionViewModelButtonSection"},_.B(_.K,{cond:f,
then:function(){return _.B(cZ,{data:x,iconName:function(){return z()?"chevron_down":"chevron_collapse"}})}})))}}),_.B("div",{class:"ytAccordionViewModelContent"},_.B(_.h8,{data:function(){return c().contents}},{accordionItemViewModel:function(n){return _.B(qsz,{data:n.data,
className:"ytAccordionViewModelRow",accordionStyle:Q,hideIfNotExpanded:z,onCollapse:function(){return f()?(X(!0),!1):!0}})}})),_.B("div",null,_.B(_.K,{cond:function(){return!f()&&(!!c().disclaimerFooter||!!c().footer)},
then:function(){return _.B("div",{class:"ytAccordionViewModelFooter"},_.B(_.mw,{text:function(){return c().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"}),_.B(_.h8,{data:function(){return S.data().footer}},{flexibleActionsViewModel:function(n){return _.B(hd,{data:n.data,
layout:0})}}))}})))},"Xc");_.f4(_.TuT,"yt-accordion-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c,Q=(c=_.fl().resolve(_.QS(_.Lv)))==null?void 0:c(),f=_.A(_.ny(!1,void 0,"BxguL"));c=f.next().value;var U=f.next().value;f=_.A(_.ny(!0,void 0,"WTCeFf"));var a=f.next().value,X=f.next().value,z=_.EH("textarea"),x=function(H){U(!0);H={learningJourneyFormData:{query:H}};_.kz(S.data().searchEndpoint||{},{form:{formData:H}});return!1},I=_.$d(function(H){H.target.closest("button-view-model")&&U(!0)});
f=_.$d(function(){X(z.value.value.length===0)});
var n=_.$d(function(H){if(H.key==="Enter"&&!H.shiftKey&&!a()){var q=H.target;H.preventDefault();x(q.value)}}),b={},N={},l={};
return _.B("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.B("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.B(_.RW,{data:function(){return S.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.B("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.B("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.B("div",{class:_.n4("ytLearningJourneyZeroStateSearchBar",(b.ytLearningJourneyZeroStateSearchBarDark=Q,b))},_.B("textarea",{class:_.n4("ytLearningJourneyZeroStateTextInput",(N.ytLearningJourneyZeroStateTextInputDark=Q,N)),el:z,"on:keyup":f,"on:keydown":n,placeholder:"What do you want to learn?",
rows:1,"client-ve-type":264503})),_.B("div",{class:_.n4("ytLearningJourneyZeroStateSearchButtonContainer",(l.ytLearningJourneyZeroStateSearchButtonContainerDark=Q,l))},_.B(_.Ze,{data:function(){return _.Y(S.data().searchButton,_.Ya)},
className:"search-button",onClick:function(){return x(z.value.value)},
buttonOverrides:function(){return{disabled:a(),style:Q?"mono-inverse":"mono",size:"XL"}}}))),_.B(_.K,{cond:function(){return!!S.data().errorBanner},
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.B(_.h8,{data:function(){return S.data().errorBanner}},{alertBannerViewModel:function(H){return _.B(_.fDd,{data:H.data,
"client-ve-type":264617})}}))}})),_.B(_.K,{cond:c,
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.B(_.h8,{data:function(){return S.data().loader}},{learningJourneyLoaderViewModel:function(H){return _.B(_.Dy$,{data:H.data})}}))},
else:function(){return _.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContainer"},_.B(_.K,{cond:function(){return!!S.data().learningJourneyShelf},
then:function(){return _.B("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.B("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return S.data().learningJourneySectionTitle}),_.B(_.h8,{data:function(){return S.data().learningJourneyShelf}},{horizontalShelfViewModel:_.TU}))}}),_.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.B("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return S.data().suggestedJourneySectionTitle}),
_.B("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionContentContainer",
"on:click":I},_.B(_.h8,{data:function(){return S.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(H){return _.B(hd,{data:H.data,
layout:0,className:"ytLearningJourneyZeroStateSuggestedJourneySectionContent"})}}))))}}))},"Yc"),"yt-learning-journey-zero-state",{props:{data:_.y$}});var wjs=_.y_(function(S){var c=S.data;return _.B("ytvl-live-leaderboard-item-action-content-view-model",{class:_.n4("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.B(_.mw,{text:function(){var Q;return(Q=c())==null?void 0:Q.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.B(_.h8,{data:function(){return c().actionButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:Q.data})}}))},"Zc");var sUe=_.y_(function(S){var c=S.data;return _.B("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.n4("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.B(_.mw,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var Q;return(Q=c())==null?void 0:Q.displayName},
ellipsisTruncate:!0}),_.B(_.h8,{data:function(){return c().badge}},{buttonViewModel:function(Q){return _.B(_.Ze,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:Q.data})}}))},"$c");_.f4(_.y_(function(S){var c=S.data;return _.B("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.B("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.B(_.mw,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var Q;return(Q=c())==null?void 0:Q.rank}})),_.B("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.B(_.h8,{data:function(){return c().avatar}},{avatarViewModel:_.p3})),_.B("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.B(_.h8,{data:function(){return c().content}},{liveLeaderboardItemChannelContentViewModel:sUe,
liveLeaderboardItemActionContentViewModel:wjs})),_.B(_.mw,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var Q;return(Q=c())==null?void 0:Q.points}}))},"ad"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;return _.B("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.B(_.mw,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var Q,f;return(Q=c())==null?void 0:(f=Q.ranking)==null?void 0:f.rank}}),_.B("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.B(_.h8,{data:function(){return c().avatar}},{avatarViewModel:_.p3})),_.B(_.mw,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var Q,f;return(Q=c())==null?void 0:(f=Q.channelContent)==null?void 0:f.channelName}}),_.B(_.mw,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var Q;return(Q=c())==null?void 0:Q.points}}))},"bd"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.y$}});var Mad=_.y_(function(S){S=_.V_(S,{wrapper:!1}).wrapper;return _.B(_.K,{cond:S,then:function(){return _.B("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.B("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.B("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"cd");
Mad.idomCompat=!0;var iH$=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],ZHJ=_.y_(function(S){var c=S.data;var Q=_.EH("div"),f=_.uQ(function(){return c().command},void 0,"tJY20c");
_.To(function(){f()&&_.WI(f(),{form:{element:Q.value}})},"qs6Sof");
return _.B("div",{el:Q,class:"YtQrCodeRendererHostContainer"},_.B(_.K,{cond:function(){return c().qrCodeImage},
then:function(U){return _.B(_.RW,{data:U,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.B(_.K,{cond:function(){return c().spinner},
then:function(){return _.B(Mad,null)}})}}),_.B(_.K,{cond:function(){return c().label},
then:function(U){return _.B(_.mw,{text:U,className:"YtQrCodeRendererHostLabel"})}}),_.B(_.K,{cond:function(){return c().labels},
then:function(U){return _.B("div",{class:"YtQrCodeRendererHostLabels"},_.B(_.lW,{each:U},function(a){return _.B(_.mw,{text:a})}))}}))},"ed");_.f4(_.y_(function(S){var c=S.data;var Q=_.uQ(function(){return c().qrEntityKey},void 0,"joYCxd"),f=_.uQ(function(){return c().deleteEntityOnDismiss},void 0,"x3yAde"),U=_.uQ(function(){return c().command},void 0,"dJe1Re"),a=_.b9(hVH,Q);
S=_.uQ(function(){return c().qrCodeImage},void 0,"qM5dZe");
var X=_.uQ(function(){return c().style&&iH$.includes(c().style)},void 0,"CaNEkf"),z=_.EH("yt-qr-code-renderer");
_.cn(z,{visibilityCallback:function(x){x&&U()&&_.WI(U())},
showOption:{calledOnce:!0,state:"visible"}});_.wC(function(){_.wX(function(){f()&&Q()&&_.P0().dispatch(_.Ns("qrCodeEntity",Q()))})});
return _.B("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:z},_.B(_.K,{cond:X,then:function(){return _.B(_.K,{cond:a,then:function(x){return _.B(ZHJ,{data:x})}})}}),_.B(_.K,{cond:S,
then:function(x){return _.B(_.RW,{data:x,alt:""})}}))},"dd"),"yt-qr-code-renderer",{props:{data:_.y$}});_.Gd_=_.y_(function(S){var c=S.data;var Q=S.topbarOffset;var f,U=((f=_.fl().resolve(_.QS(_.Lv)))==null?void 0:f())||!1;return _.B("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var a=c();var X,z,x=U?(X=a.config)==null?void 0:X.darkThemeBackgroundColor:(z=a.config)==null?void 0:z.lightThemeBackgroundColor;a=x?_.WV(x):void 0;a="background-color: "+a+";";Q!==void 0&&(a+="top: -"+Q()+"px;");return a},
"aria-hidden":!0},_.B(_.K,{cond:function(){var a,X,z;return!!((a=c().backgroundImageConfig)==null?0:(X=a.image)==null?0:(z=X.sources)==null?0:z.length)},
then:function(){return _.B(_.RW,{data:function(){var a;return(a=c().backgroundImageConfig)==null?void 0:a.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.B("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+ePr(U,c().gradientColorConfig)+";"}}))},"fd");
_.Gd_.idomCompat=!0;var wv=_.y_(function(S){var c=S.className;var Q=S.data;var f=S.isOverlay;var U=S.maxLinesOverride;var a=S.useMediumText;S=_.EH("yt-description-preview-view-model");var X=function(){return Q().alwaysShowTruncationText},z=function(){return Q().truncationText},x=function(){return a!==void 0&&a()?"medium":"small"},I=function(){return f!==void 0&&f()?"overlay":"default"},n=function(){var q,w;
return(w=(q=_.Y(Q().rendererContext,_.jT))==null?void 0:q.label)!=null?w:""},b=_.A(_.ny(!1,void 0,"mkuWzb")),N=b.next().value,l=b.next().value;
_.LS(S,function(){return Q().rendererContext});
b=_.$d(function(){Q().expandOnTap&&l(!N());return!1});
var H={};return _.B("yt-description-preview-view-model",{el:S,class:_.n4("yt-description-preview-view-model-wiz",c,(H["yt-description-preview-view-model-wiz--clickable"]=function(){var q;return!((q=_.Y(Q().rendererContext,NwY))==null||!q.onTap)},H["yt-description-preview-view-model-wiz--is-overlay"]=f,H)),
"on:click":b},_.B(_.K,{cond:function(){return Q().description},
then:function(q){return _.B(_.K,{cond:N,then:function(){var w={};return _.B("div",{class:_.n4("yt-description-preview-view-model-wiz__description",(w["yt-description-preview-view-model-wiz__description--medium-text"]=a,w))},_.B(_.mw,{text:q}))},
else:function(){return _.B(Jrd,{text:q,alwaysShowTruncationText:X,truncationText:z,maxLines:function(){var w;return(w=U==null?void 0:U())!=null?w:Q().maxLines},
textStyle:I,accessibilityLabel:n,textSize:x})}})}}))},"gd");
wv.idomCompat=!0;var WKd=_.y_(function(S){var c=S.data;var Q=S.isOverlay;return _.B("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.B("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.B(_.h8,{data:function(){return c().header}},{sectionHeaderViewModel:function(f){return _.B(_.aO,{data:f.data,
isOverlay:Q})}})),_.B("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.B(_.h8,{data:function(){return c().channelInfoButtons}},{flexibleActionsViewModel:hd})),_.B("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.B(_.h8,{data:function(){return c().description}},{descriptionPreviewViewModel:function(f){return _.B(wv,{data:f.data,
isOverlay:Q})}})))},"hd");
WKd.idomCompat=!0;var gii=_.y_(function(S){var c=S.data;var Q={};return _.B("factoid-view-model",{class:_.n4("ytwFactoidViewModelHost",(Q.ytwFactoidViewModelHostOverlay=S.isOverlay,Q))},_.B(_.mw,{text:function(){return c().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.B(_.mw,{text:function(){return c().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"id");
gii.idomCompat=!0;var eZi=_.y_(function(S){var c=S.data;var Q=S.isOverlay;return _.B("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.B(_.h8,{data:function(){return c().factoids}},{factoidViewModel:function(f){return _.B(gii,{data:f.data,
isOverlay:Q})}}))},"jd");
eZi.idomCompat=!0;_.kdz=_.y_(function(S){var c=S.data;var Q=S.isOverlay;return _.B("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.B(_.h8,{data:function(){return c().items}},{channelInfoViewModel:function(f){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(WKd,{data:f.data,
isOverlay:Q}))},
coursePerksViewModel:function(f){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(lDu,{data:f.data,isOverlay:Q}))},
descriptionPreviewViewModel:function(f){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(wv,{data:f.data,isOverlay:Q}))},
factoidsRowViewModel:function(f){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(eZi,{data:f.data,isOverlay:Q}))},
progressViewModel:function(f){return _.B("div",{class:"ytwCourseMetadataViewModelHostItem"},_.B(Yss,{data:f.data,isOverlay:Q}))}}))},"kd");var rVd=_.y_(function(S){return _.B("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.B(_.h8,{data:function(){return S.data().content}},{courseMetadataViewModel:function(c){return _.B(_.kdz,{data:c.data,
isOverlay:S.isOverlay})},
progressViewModel:function(c){return _.B(Yss,{data:c.data})}}))},"ld");var dyH=_.y_(function(S){var c=S.data;S=S.className;var Q=_.EH("yt-dynamic-text-view-model"),f=function(){var a;return _.PK((a=c())==null?void 0:a.rendererContext)},U={};
U=(U["dynamic-text-view-model-wiz"]=!0,U["dynamic-text-view-model-wiz--tappable"]=function(){return f()},U);
_.LS(Q,function(){var a;return(a=c())==null?void 0:a.rendererContext});
return _.B("yt-dynamic-text-view-model",{el:Q,role:function(){return f()?"link":void 0},
tabindex:function(){return f()?0:void 0},
class:_.n4(S,U)},_.B("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var a,X,z;return(z=(X=_.Y((a=c())==null?void 0:a.rendererContext,_.jT))==null?void 0:X.label)!=null?z:""}},_.B(_.mw,{text:function(){return c().text},
userInput:!0})))},"md");
dyH.idomCompat=!0;_.vid=_.y_(function(S){var c=S.data;var Q=S.isPositionRelative;var f=_.tc("yt-image-banner-view-model"),U=_.rYp("(max-width: 527.9px)"),a=function(){var X,z;return(z=(X=c())==null?void 0:X.style)!=null?z:"IMAGE_BANNER_STYLE_FULL_BLEED"};
S={};S=(S["yt-image-banner-view-model-wiz"]=!0,S["yt-image-banner-view-model-wiz--inset"]=function(){return dWR(a())},S["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.Zf(!0)&&!(Q==null?0:Q())},S["yt-image-banner-view-model-wiz--small-inset"]=function(){return dWR(a())&&U()},S["yt-image-banner-view-model-wiz--tappable"]=function(){var X;
return _.Zf(f.value)&&_.PK((X=c())==null?void 0:X.rendererContext)},S);
_.LS(f,function(){var X;return(X=c())==null?void 0:X.rendererContext});
return _.B("yt-image-banner-view-model",{el:f,class:_.n4(S)},_.B(_.K,{cond:function(){var X;return(X=c())==null?void 0:X.image},
then:function(){return _.B(_.RW,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.B(_.h8,{data:function(){var X;
return(X=c())==null?void 0:X.overlays}},{thumbnailHoverOverlayViewModel:Dr}))},"nd");
_.vid.idomCompat=!0;var PIp;PIp=_.y_(function(S){var c=S.condition;var Q=S.content;return _.B(_.K,{cond:c,then:function(){return _.B("div",{class:"page-header-view-model-wiz__scroll-container"},Q())},
else:function(){return Q()}})},"od");
_.LKz=_.y_(function(S){var c=S.data;var Q=S.noPadding;var f=S.enableBanner;var U=S.cinematicContainerTopbarOffset;var a=S.allowCinematicContainerOverflow;var X=S.displayAsSidebar;var z=S.displayAsPanel;var x=vBY(),I=function(){return!!c().image||!!c().animatedImage},n=function(){return!!c().background},b=function(){return(X==null?0:X())||(z==null?0:z())?1:x()},N=function(){return b()===1},l=function(){return N()||b()===2},H=function(){return b()===4},q=function(){var qr=c();
var wp=!!c().heroImage;var Pc=b(),ex=PhY(c()),yd=X==null?void 0:X(),op=!qr.metadata,DT;if(DT=wp?_.Y(qr.heroImage,FxT):_.Y(qr.animatedImage||qr.image,FxT)){qr=DT.style;var B_=DT.layoutMode;if(B_!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING")if(DT=pOr(DMp(DT)),wp)wp=kbz(Pc,qr,B_,DT,yd);else b:if(op)wp=Pc===1?{size:48}:{size:72};else switch(Pc){case 1:wp={size:72};break b;case 2:wp={size:120};break b;default:wp=ex<4?{size:120}:{size:160}}else wp=void 0}else wp={size:0};return wp};
S={};S=_.n4((S["page-header-view-model-wiz"]=!0,S["page-header-view-model-wiz--no-padding"]=function(){return!(Q==null||!Q())},S["page-header-view-model-wiz--small-top-padding"]=function(){return N()&&!c().actions&&!(z==null?0:z())||b()===2&&!(I()||c().heroImage)},S["page-header-view-model-wiz--small-bottom-padding"]=function(){return l()&&!c().actions&&!(z==null?0:z())},S["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(a==null?0:a())},S["page-header-view-model-wiz--display-as-sidebar"]=
X,S));
var w={},g=_.n4((w["page-header-view-model-wiz__page-header-headline"]=!0,w["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){var qr;return(qr=q())==null?void 0:qr.allowFullWidth},w)),r=function(){var qr;
return l()&&!((qr=q())==null?0:qr.allowFullWidth)},E=function(){return N()&&(!!c().heroImage||I())&&PhY(c())>0},v=function(){return E()&&(z==null?void 0:z())};
w={};var t=_.n4((w["page-header-view-model-wiz__page-header-title"]=!0,w["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!E()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return E()&&!v()},w["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=v,w["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=n,w));
w={};var V=_.n4((w["page-header-view-model-wiz__page-header-headline-image"]=!0,w["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!c().heroImage&&l()},w));
w={};var AZ=_.n4((w["page-header-view-model-wiz__page-header-banner-container"]=f,w["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var qr;return(f==null?void 0:f())&&((qr=_.Y(c().banner,_.Iwu))==null?void 0:qr.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},w));
w={};var IH=_.n4((w["page-header-view-model-wiz__page-header-content-metadata"]=!0,w["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=n,w));w={};var Nr=_.n4((w["page-header-view-model-wiz__page-header-flexible-actions"]=!0,w["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!c().metadata||l()},w["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!l()},w));
w={};var Hc=_.n4((w["page-header-view-model-wiz__page-header-attribution"]=!0,w["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=n,w));return _.B("yt-page-header-view-model",{class:S},_.B(_.K,{cond:n,then:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-background"},_.B(_.h8,{data:function(){return c().background}},{cinematicContainerViewModel:function(qr){return _.B(_.Gd_,{data:qr.data,
topbarOffset:U})}}))}}),_.B(PIp,{condition:function(){return!(X==null||!X())},
content:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-content"},_.B(_.K,{cond:function(){return(f==null?void 0:f())&&c().banner},
then:function(){return _.B("div",{class:AZ},_.B(_.h8,{data:function(){return c().banner}},{imageBannerViewModel:_.vid}))}}),_.B("div",{class:g},_.B(_.K,{cond:I,
then:function(){return _.B(_.h8,{data:function(){var qr;if(!(qr=c().animatedImage)){qr=c();if(I()){var wp=qr=Object.assign({},qr),Pc=b(),ex=PhY(c()),yd=wp.image,op=_.Y(yd,Bxz),DT=op==null?void 0:op.avatar,B_=_.Y(DT,_.Ee);if(yd&&DT&&B_){switch(Pc){case 1:B_.avatarImageSize="AVATAR_SIZE_XL";break;case 2:B_.avatarImageSize="AVATAR_SIZE_XXL";break;default:ex<4?B_.avatarImageSize="AVATAR_SIZE_XXL":B_.avatarImageSize="AVATAR_SIZE_XXXL"}_.u("web_enable_sink_page_header_view_model")&&(_.wH(DT,_.Ee,Object.assign({},
B_)),op.avatar=Object.assign({},DT),_.wH(yd,Bxz,Object.assign({},op)),wp.image=Object.assign({},yd))}}qr=qr.image}return qr}},{contentPreviewImageViewModel:function(qr){return _.B(_.cM,{data:qr.data,
className:V,imageSizeConfig:q})},
decoratedAvatarViewModel:function(qr){return _.B(_.h7,{data:qr.data,className:V})}})}}),_.B(_.K,{cond:function(){return!!c().heroImage&&!r()},
then:function(){return _.B(_.h8,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(qr){return _.B(_.cM,{data:qr.data,
className:V,imageSizeConfig:q})}})}}),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.K,{cond:function(){return!!c().heroImage&&r()},
then:function(){return _.B("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.B(_.h8,{data:function(){return c().heroImage}},{contentPreviewImageViewModel:function(qr){return _.B(_.cM,{data:qr.data,
className:V,imageSizeConfig:q})}}))}}),_.B(_.h8,{data:function(){return c().title}},{dynamicTextViewModel:function(qr){return _.B(dyH,{data:qr.data,
className:t})}}),_.B(_.h8,{data:function(){return c().metadata}},{contentMetadataViewModel:function(qr){return _.B(_.t3p,{data:qr.data,
layout:function(){return N()?1:0},
className:IH,isOverlay:n,useMediumText:H})}}),_.B(_.K,{cond:function(){return c().description&&!N()},
then:function(){return _.B(_.h8,{data:function(){return c().description}},{descriptionPreviewViewModel:function(qr){return _.B(wv,{data:qr.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:n,maxLinesOverride:function(){return N()?void 0:1},
useMediumText:H})}})}}),_.B(_.K,{cond:function(){return c().attribution&&!l()},
then:function(){return _.B(_.h8,{data:function(){return c().attribution}},{attributionViewModel:function(qr){return _.B(kGh,{data:qr.data,
className:Hc,useMediumText:H})}})}}),_.B(_.K,{cond:function(){return c().actions&&!l()},
then:function(){return _.B(_.h8,{data:function(){return c().actions}},{flexibleActionsViewModel:function(qr){return _.B(hd,{data:qr.data,
layout:function(){return LHp(b())},
className:Nr})}})}}))),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.K,{cond:function(){return c().description&&N()},
then:function(){return _.B(_.h8,{data:function(){return c().description}},{descriptionPreviewViewModel:function(qr){return _.B(wv,{data:qr.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:n,maxLinesOverride:function(){return N()?void 0:1},
useMediumText:H})}})}}),_.B(_.K,{cond:function(){return c().attribution&&l()},
then:function(){return _.B(_.h8,{data:function(){return c().attribution}},{attributionViewModel:function(qr){return _.B(kGh,{data:qr.data,
className:Hc,useMediumText:H})}})}}),_.B(_.K,{cond:function(){return c().actions&&l()},
then:function(){return _.B(_.h8,{data:function(){return c().actions}},{flexibleActionsViewModel:function(qr){return _.B(hd,{data:qr.data,
layout:function(){return LHp(b())},
className:Nr})}})}})),_.B("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.B(_.h8,{data:function(){return c().bottomMetadataFlexibleContainer}},{flexibleContainer:function(qr){return _.B(rVd,{data:qr.data,
isOverlay:n})}})))}}))},"pd");
_.LKz.idomCompat=!0;_.f4(_.y_(function(S){var c=_.A(_.ny(!1,void 0,"vVRl3b")),Q=c.next().value,f=c.next().value;return _.B("yt-official-card-view-model",{class:_.n4("ytOfficialCardViewModelHost",S.className),style:_.Yd({"background-color":function(){var U,a=m8z((U=S.data())==null?void 0:U.backgroundColor);return a?_.gh(a):void 0}})},_.B(_.h8,{data:function(){return S.data().header}},{pageHeaderViewModel:function(U){return _.B(_.LKz,{data:U.data,
noPadding:!0})}}),_.B(_.h8,{data:function(){return S.data().contents}},{horizontalShelfViewModel:function(U){return _.B(_.TU,{data:U.data,
ensureMarginTop:!0,horizontalShelfExperiments:{hideHeader:!0}})}}),_.B(_.K,{cond:Q,
then:function(){return _.B("div",{class:"ytOfficialCardViewModelExpandedContent"},_.B(_.h8,{data:function(){return S.data().expandedContents}},{horizontalShelfViewModel:function(U){return _.B(_.TU,{data:U.data,
sizing:"MINI"})}}),_.B("div",{class:"ytOfficialCardViewModelCollapseButton"},_.B(_.h8,{data:function(){return S.data().collapseButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
onClick:function(){f(!Q())}})}})))},
else:function(){return _.B("div",{class:"ytOfficialCardViewModelExpandButton"},_.B(_.h8,{data:function(){return S.data().expandButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
onClick:function(){f(!Q())}})}}))}}))},"qd"),"yt-official-card-view-model",{props:{data:_.y$,
className:_.y$}});var EBH=_.l9({buttonViewModel:_.Ze});_.Qu(tfr);_.xd(tfr,"ytw-search-friction-view-model",{propNames:["data"]});_.sF=_.y_(function(S){var c=_.EH("markdown-div"),Q,f=(Q=_.fl().resolve(_.QS(_.Lv)))==null?void 0:Q();_.To(function(){var U=c.value;var a=new Gzh,X=new Map(a.JSC$7338_sanitizerTable.globalAttributePolicies);X.set("style",{policyAction:4});a.JSC$7338_sanitizerTable=new lr(a.JSC$7338_sanitizerTable.allowedElements,a.JSC$7338_sanitizerTable.elementPolicies,a.JSC$7338_sanitizerTable.allowedGlobalAttributes,X,a.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes);var z=["data-time"];if(z===void 0)X=
new Set(a.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes),X.add("data-"),a.JSC$7338_sanitizerTable=new lr(a.JSC$7338_sanitizerTable.allowedElements,a.JSC$7338_sanitizerTable.elementPolicies,a.JSC$7338_sanitizerTable.allowedGlobalAttributes,a.JSC$7338_sanitizerTable.globalAttributePolicies,X);else{X=new Set(a.JSC$7338_sanitizerTable.allowedGlobalAttributes);z=_.A(z);for(var x=z.next();!x.done;x=z.next()){x=x.value;if(x.indexOf("data-")!==0)throw Error("ra`"+x);X.add(x)}a.JSC$7338_sanitizerTable=
new lr(a.JSC$7338_sanitizerTable.allowedElements,a.JSC$7338_sanitizerTable.elementPolicies,X,a.JSC$7338_sanitizerTable.globalAttributePolicies,a.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes)}X=new Set(a.JSC$7338_sanitizerTable.allowedGlobalAttributes);X.add("class");a.JSC$7338_sanitizerTable=new lr(a.JSC$7338_sanitizerTable.allowedElements,a.JSC$7338_sanitizerTable.elementPolicies,X,a.JSC$7338_sanitizerTable.globalAttributePolicies,a.JSC$7338_sanitizerTable.globallyAllowedAttributePrefixes);
_.kD(U,_.wcp(a.build(),RPZ(S.text())));yYZ(c.value)},"FI2gYe");
Q={};return _.B("div",null,_.B("markdown-div",{class:_.n4("ytwMarkdownDivHost",(Q.ytwMarkdownDivDark=f,Q.ytwMarkdownDivHostSmall=function(){var U;return((U=S.isSmallText)==null?void 0:U.call(S))||!1},Q)),
el:c}))},"rd");
_.sF.idomCompat=!0;var Ei_=_.y_(function(S){var c=S.imageData;var Q=_.tq(S.isInList,!1),f=function(){return Q()?{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 _.B("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.B(_.K,{cond:function(){return c().image},
then:function(U){return _.B(_.RW,{data:U,alt:function(){return f().alt},
contentMode:function(){return f().contentMode},
targetWidth:function(){return f().targetWidth},
targetHeight:function(){return f().targetHeight},
className:function(){return f().className}})}}),_.B("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.B("div",{class:_.n4("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.B(_.mw,{text:function(){return c().title}})),_.B(_.lW,{each:function(){var U;
return(U=c().description)!=null?U:[]}},function(U){return _.B("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.B(MX,{content:U}))})))},"sd"),tap=_.y_(function(S){var c=S.list;
var Q=function(){var f;return(f=c().items)!=null?f:[]};
return _.B("div",{class:"ytwGenAiRichTextViewModelListContent"},_.B(_.K,{cond:function(){return c().title},
then:function(f){return _.B("div",{class:_.n4("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.B(_.mw,{text:f}))}}),_.B(_.K,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.B("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.B(_.lW,{each:Q},function(f){return _.B("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.B(MX,{content:f,isInList:!0}))}))}}),_.B(_.K,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.B("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.B(_.lW,{each:Q},function(f){return _.B("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.B(MX,{content:f,isInList:!0}))}))}}),_.B(_.K,{cond:function(){return c().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.B("div",{class:"ytwGenAiRichTextViewModelImageList"},_.B(_.lW,{each:Q},function(f){return _.B("div",{class:"ytwGenAiRichTextViewModelListItem"},_.B(MX,{content:f,isInList:!0}))}))}}))},"td"),Vau=_.y_(function(S){var c=S.table;
return _.B("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.B("thead",null,_.B("tr",null,_.B(_.lW,{each:function(){var Q,f;return(f=(Q=c().header)==null?void 0:Q.cells)!=null?f:[]}},function(Q){return _.B("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.B(_.lW,{each:function(){return Q.contents}},function(f){return _.B(MX,{content:f})}))}))),_.B("tbody",null,_.B(_.lW,{each:function(){var Q;
return(Q=c().rows)!=null?Q:[]}},function(Q){return _.B("tr",null,_.B(_.lW,{each:function(){return Q.cells}},function(f){return _.B("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.B(_.lW,{each:function(){return f.contents}},function(U){return _.B(MX,{content:U})}))}))})))},"ud"),MX=_.y_(function(S){var c=S.content;
var Q=_.tq(S.isInList,!1),f=function(){var U,a;return(a=(U=c().contentBlock)==null?void 0:U.contents)!=null?a:[]};
return _.B("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.B(_.K,{cond:function(){return c().text},
then:function(U){return _.B(_.mw,{className:"ytwGenAiRichTextViewModelText",text:U})}}),_.B(_.K,{cond:function(){return c().image},
then:function(U){return _.B(Ei_,{imageData:U,isInList:Q})}}),_.B(_.K,{cond:function(){return c().list},
then:function(U){return _.B(tap,{list:U})}}),_.B(_.K,{cond:function(){return c().contentBlock},
then:function(){return _.B("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.B(_.lW,{each:f},function(U){return _.B(MX,{content:U,isInList:!1})}))}}),_.B(_.K,{cond:function(){return c().table},
then:function(U){return _.B(Vau,{table:U})}}))},"vd"),RZh=_.y_(function(S){var c={};
c=_.No("ytwGenAiRichTextViewModelHost",(c.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.Al("search_overview_link_style")),c));return _.B("gen-ai-rich-text-view-model",{class:c},_.B(MX,{content:function(){return S.data().content}}))},"wd");_.Qu(oBp);_.Qu(gD);_.yVi=_.y_(function(S){var c=S.data;var Q=function(){var q;return((q=c().loadingUi)!=null?q:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},f=function(){return c().isLoading&&(Q()==="UNSPECIFIED"||Q()==="GHOST_CARD")},U=function(){return!c().isLoading},a=function(){return!!c().content&&!c().contents},X=function(){return!!c().contents},z=function(){return!!c().nextQueryButtons},x=function(){return c().isLoading&&Q()==="INVISIBLE"},I=function(){var q,w;
return(w=(q=c().headerIcon)==null?void 0:q.iconType)!=null?w:""},n=function(){var q;
return(q=c().content)!=null?q:""},b=function(){return!!c().sourcesSection},N,l=!((N=_.fl().resolve(_.QS(_.Lv)))==null||!N()),H=_.uQ(function(){var q=[],w=c().contents;
if(w)for(var g=0;g<w.length;g++){var r=_.Y(w&&w[g],j0u);r&&q.push(r)}return q},void 0,"ycU97e");
_.wC(function(){c().isLoading||_.i2("so_re",void 0,"search_overview_answer")});
return _.B("ytd-overview-answer-view-model",{class:function(){var q={};q=(q.ytdOverviewAnswerViewModelHost=!0,q.ytdOverviewAnswerViewModelDarkBackground=l&&!x(),q.ytdOverviewAnswerViewModelLightBackground=!l&&!x(),q);return _.No(q)}},_.B(_.K,{cond:function(){return!x()},
then:function(){return _.B(_.ak,null,_.B("h2",null,_.B("div",{class:"ytdOverviewAnswerViewModelHeader"},_.B(_.K,{cond:I,then:function(q){return _.B("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.B(_.C4,{icon:q}))}}),_.B("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.B("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return c().headerText}),_.B("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.B(_.mw,{text:function(){return c().headerSubtext}}))))),_.B(_.K,{cond:f,
then:function(){return oBp()}}),_.B(_.K,{cond:U,
then:function(){return _.B(_.ak,null,_.B(_.K,{cond:a,then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelText"},_.B(_.sF,{text:n,isSmallText:!0}))}}),_.B(_.K,{cond:X,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelRichText"},_.B(_.lW,{each:H},function(q){return _.B(RZh,{data:q})}))}}),_.B(_.K,{cond:z,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.B(_.h8,{data:function(){return c().nextQueryButtons}},{buttonViewModel:function(q){return _.B(_.Ze,{data:q.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.TU}))}}),_.B("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.B("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.B(_.K,{cond:function(){return!!_.Y(c().likeButtonViewModel,_.wJ)&&!!_.Y(c().dislikeButtonViewModel,_.se)},
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.B(_.TT,{data:function(){return _.Y(c().likeButtonViewModel,_.wJ)},
disableIconAnimation:!0}),_.B(_.q0,{data:function(){return _.Y(c().dislikeButtonViewModel,_.se)}}))}})),_.B(_.K,{cond:function(){var q;
return(q=c().sourcesSection)==null?void 0:q.headerText},
then:function(q){return _.B("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.B(_.mw,{text:q}))}})),_.B(_.K,{cond:b,
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelSources"},_.B(_.h8,{data:function(){var q;return(q=c().sourcesSection)==null?void 0:q.sourcesShelf}},{buttonViewModel:_.Ze,
horizontalShelfViewModel:function(q){return _.B(_.TU,{data:q.data,includeMargin:!0,hasPeek:!0})}}))}}),_.B(_.K,{cond:function(){return c().disclaimerText},
then:function(){return _.B("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.B(_.mw,{text:function(){return c().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"xd");var oiu=_.y_(function(S){var c=S.data;var Q=S.active;var f=_.EH("transcript-segment-view-model");_.To(function(){var U,a,X,z=((U=_.fl().resolve(_.QS(_.Lv)))==null?0:U())?(a=c())==null?void 0:a.darkThemeColorPalette:(X=c())==null?void 0:X.lightThemeColorPalette;z&&(z.additiveBackground&&f.value.style.setProperty("--timestamp-active-background-color",_.gh(z.additiveBackground)),z.textSecondary&&f.value.style.setProperty("--timestamp-active-color",_.WV(z.textSecondary)))},"KHcbwb");
S={};return _.B("transcript-segment-view-model",{class:_.n4("ytwTranscriptSegmentViewModelHost",(S.ytwTranscriptSegmentViewModelHostActive=Q,S.ytwTranscriptSegmentViewModelHostModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),S)),el:f},_.B(_.K,{cond:function(){var U;return(U=c())==null?void 0:U.timestamp},
then:function(U){var a={};return _.B("div",{class:_.n4("ytwTranscriptSegmentViewModelTimestamp",(a.ytwTranscriptSegmentViewModelTimestampActive=Q,a))},U)}}),_.B(_.mw,{text:function(){var U,a,X;
return(X=(U=c())==null?void 0:U.attributedText)!=null?X:{content:(a=c())==null?void 0:a.simpleText}},
linkInheritColor:!0,noPreWrap:!0}))},"yd");var mys=_.y_(function(S){var c=S.data;return _.B("div",{class:"yt-video-attributes-section-view-model__header"},_.B("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return c().headerTitle}),_.B(_.K,{cond:function(){return c().headerSubtitle},
then:function(){return _.B("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return c().headerSubtitle})}}))},"zd"),SUp=_.y_(function(S){function c(q){return Math.max(Math.min(q,0),I()-z())}
var Q=S.data;var f,U=_.EH("div",function(q){if(_.u("web_metadata_carousel_elref_bugfix")){var w=function(){n(q.clientWidth)};
w();window.ResizeObserver&&(f=new ResizeObserver(w),f.observe(q))}}),a=_.EH("div",function(q){x(q.scrollWidth)}),X=_.A(_.ny(0,void 0,"I9GbH"));
S=X.next().value;X=X.next().value;var z=S,x=X;X=_.A(_.ny(0,void 0,"eQAn5b"));S=X.next().value;X=X.next().value;var I=S,n=X;S=_.A(_.ny(0,void 0,"VU3lg"));var b=S.next().value,N=S.next().value;_.wC(function(){if(!_.u("web_metadata_carousel_elref_bugfix")){var q=function(){x(a.value.scrollWidth);n(U.value.clientWidth)};
q();if(window.ResizeObserver){var w=new ResizeObserver(q);w.observe(U.value);_.wX(function(){w.disconnect()})}}});
_.wX(function(){if(_.u("web_metadata_carousel_elref_bugfix")){var q;(q=f)==null||q.disconnect()}});
var l=function(){N(c(b()+I()))},H=function(){N(c(b()-I()))};
return _.B("yt-video-attributes-section-view-model",null,_.B("div",{class:"yt-video-attributes-section-view-model"},_.B(_.K,{cond:function(){return Q().headerTitle},
then:function(){return _.B(mys,{data:Q})}}),_.B("div",{class:_.n4("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:U},_.B("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.Yd({transform:function(){var q=b();_.WY("HTML_DIR")==="rtl"&&(q*=-1);return"translateX("+q+"px)"}}),
el:a},_.B(_.h8,{data:function(){return Q().videoAttributeViewModels}},{videoAttributeViewModel:aUs}))),_.B(_.h8,{data:function(){return Q().footerButton}},{buttonViewModel:function(q){return _.B(_.Ze,{data:q.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.B(_.K,{cond:function(){return b()<0&&Q().previousButton},
then:function(){return _.B("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.B(_.h8,{data:function(){return Q().previousButton}},{buttonViewModel:function(q){return _.B(_.Ze,{data:q.data,
onClick:l})}}))}}),_.B(_.K,{cond:function(){return b()>I()-z()&&Q().nextButton},
then:function(){return _.B("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.B(_.h8,{data:function(){return Q().nextButton}},{buttonViewModel:function(q){return _.B(_.Ze,{data:q.data,
onClick:H})}}))}})))},"Ad");
SUp.idomCompat=!0;var c9s=_.y_(function(S){var c=S.data;var Q=S.active;var f={},U={};return _.B("timeline-item-view-model",{class:_.n4("ytwTimelineItemViewModelHost",(f.ytwTimelineItemViewModelHostChapterChild=S.chapterChild,f.ytwTimelineItemViewModelModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),f))},_.B("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.B("div",{class:_.n4("ytwTimelineItemViewModelTimestamp",(U.ytwTimelineItemViewModelTimestampActive=
Q,U))},function(){return c().timestamp})),_.B("div",{class:"ytwTimelineItemViewModelContentItems"},_.B(_.h8,{data:function(){return c().contentItems}},{transcriptSegmentViewModel:function(a){return _.B(oiu,{data:a.data,
active:Q})},
videoAttributesSectionViewModel:SUp})))},"Bd");var Q_T=_.y_(function(S){var c=S.data;S={};return _.B("timeline-chapter-view-model",{class:_.n4("ytwTimelineChapterViewModelHost")},_.B("div",{class:_.n4("ytwTimelineChapterViewModelTitle",(S.ytwTimelineChapterViewModelModern=_.u("enable_timeline_view_modern_transcript")||_.u("enable_timeline_view_modern_transcript_fe"),S))},function(){return c().title}),_.B(_.h8,{data:function(){return c().contents}},{timelineItemViewModel:function(Q){return _.B(c9s,{data:Q.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(Q){return _.B(SUp,{data:Q.data})}}))},"Cd");var fld=_.y_(function(S){var c=S.data;var Q=_.EH("macro-markers-panel-item-view-model"),f=_.b9(_.Ywr,function(){var a;return(a=c().markersEngagementPanelSyncEntityKey)!=null?a:""}),U=function(){var a;
return((a=f())==null?void 0:a.activeItemIndex)===c().index};
S=_.$d(function(a){var X,z,x,I,n;return _.O(function(b){if(b.nextAddress==1)return a.stopPropagation(),_.dJ(_.rJ(a),Q.value,["A".toString(),"BUTTON".toString()])?b.return():(X=_.Gv(c().onTap))?_.F(b,_.Oe(),2):b.return();z=b.yieldResult;I=(x=_.Y(X,_.tG))==null?void 0:x.startTimeSeconds;I===void 0||(n=z)!=null&&n.seekTo(I,!0);_.IN(b)})});
return _.B("macro-markers-panel-item-view-model",{class:_.n4("ytwMacroMarkersPanelItemViewModelHost",{"is-active":U}),el:Q,"on:click":S,tabindex:0},_.B(_.h8,{data:function(){var a;return(a=c())==null?void 0:a.item}},{timelineChapterViewModel:function(a){return _.B(Q_T,{data:a.data,
active:U})},
timelineItemViewModel:function(a){return _.B(c9s,{data:a.data,active:U})},
videoAttributeViewModel:aUs}))},"Dd");
fld.idomCompat=!0;_.f4(fld,"macro-markers-panel-item-view-model",{props:{data:_.y$}});_.f4(SUp,"yt-video-attributes-section-view-model",{props:{data:_.y$}});var Uts=_.y_(function(S){var c=function(){var Q,f,U;return(U=(Q=S.data().leadingLogoAccessibility)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label)!=null?U:""};
return _.B("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.B(_.K,{cond:function(){return S.data().leadingLogo},
then:function(Q){return _.B(_.RW,{className:"ytwFantasySectionHeaderViewModelLogo",data:Q,alt:c})}}),_.B("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.B(_.mw,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return S.data().title}}),_.B(_.mw,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return S.data().subtitle}})),_.B(_.h8,{data:function(){return S.data().trailingButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"Ed");var J9J=_.y_(function(S){var c={};c=_.n4("ytwFantasyTeamViewModelHost",(c.ytwFantasyTeamViewModelCompact=function(){var U;return!((U=S.compact)==null||!U.call(S))},c.ytwFantasyTeamViewModelUser=function(){return S.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},c.ytwFantasyTeamViewModelOpponent=function(){return S.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},c));
var Q=function(){var U,a,X;return(X=(U=S.data().teamLogoAccessibility)==null?void 0:(a=U.accessibilityData)==null?void 0:a.label)!=null?X:""},f=_.b9(HNc,function(){return S.data().teamEntityKey});
return _.B("ytw-fantasy-team-view-model",{class:c},_.B(_.K,{cond:function(){return S.data().teamLogo},
then:function(U){return _.B(_.RW,{className:"ytwFantasyTeamViewModelLogo",data:U,alt:Q})}}),_.B("div",{class:"ytwFantasyTeamViewModelMetadata"},_.B("div",{class:"ytwFantasyTeamViewModelHeader"},_.B(_.mw,{className:"ytwFantasyTeamViewModelScore",
text:function(){var U;return(U=f())==null?void 0:U.score}}),_.B(_.C4,{icon:function(){var U;
return(U=f())==null?void 0:U.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.B(_.mw,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var U;return(U=f())==null?void 0:U.projectedScore}})),_.B(_.mw,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return S.data().primaryText}}),_.B(_.mw,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return S.data().secondaryText}}),_.B(_.mw,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return S.data().tertiaryText}})),_.B(_.mw,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var U;return(U=f())==null?void 0:U.score}}))},"Fd");_.f4(_.y_(function(S){return _.B("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.B("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.B(_.h8,{data:function(){return S.data().summaryHeader}},{fantasySectionHeaderViewModel:Uts})),_.B(_.h8,{data:function(){return S.data().userTeam}},{fantasyTeamViewModel:J9J}),_.B(_.h8,{data:function(){return S.data().opponentTeam}},{fantasyTeamViewModel:J9J}))},"Gd"),"fantasy-league-summary-view-model",{props:{data:_.y$}});var alu=_.y_(function(S){var c=_.V_(S,{shape:{},useCustomTabRenderable:!1}),Q=c.shape;c=c.useCustomTabRenderable;var f=S.customTabRenderable,U=function(){return Q().disabled},a=function(){return Q().selected},X=function(){return Q().title},z=function(){return Q().icon},x=_.EH("yt-tab-shape");
S=_.$d(function(b){var N;if(!U()&&((N=Q().aTagConfig)==null?0:N.onclick))Q().aTagConfig.onclick(b);return!1});
var I=_.$d(function(b){if(b.key==="Enter"||b.key==="ArrowUp"||b.key==="ArrowDown")b.preventDefault(),x.value.click();return!1}),n={};
return _.B("yt-tab-shape",{class:_.n4("yt-tab-shape-wiz",function(){return Q().className},(n["yt-tab-shape-wiz__tab--last-tab"]=function(){return Q().isLastTab},n["yt-tab-shape-wiz--host-disabled"]=U,n["yt-tab-shape-wiz--host-clickable"]=!f,n)),
role:f?void 0:"tab","aria-selected":a!=null?a:!1,"aria-disabled":U,tabindex:f?void 0:0,"on:click":S,"on:keydown":I,el:x,"tab-identifier":function(){return Q().identifier},
"tab-title":X},_.B(_.K,{cond:c,then:function(){return f()},
else:function(){var b={},N={};return _.B(_.ak,null,_.B("div",{class:_.n4("yt-tab-shape-wiz__tab",(b["yt-tab-shape-wiz__tab--tab-selected"]=a,b))},_.B(_.K,{cond:z,then:function(l){return _.B(_.C4,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return l().iconType}})}}),X),_.B("div",{class:_.n4("yt-tab-shape-wiz__tab-bar",(N["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=a,N))}))}}))},"Hd");
alu.idomCompat={callbacks:{customTabRenderable:!0}};_.XTl=_.y_(function(S){var c=S.shape;S=_.A(_.ny(48,void 0,"r9IBlb"));var Q=S.next().value,f=S.next().value;S=_.A(_.ny(0,void 0,"Bd7rmd"));var U=S.next().value,a=S.next().value,X=function(){return c().tabs},z=_.EH("yt-tab-group-shape"),x=function(){var I,n;
return(n=(I=X())==null?void 0:I.findIndex(function(b){return b.selected}))!=null?n:-1};
_.wC(function(){var I=z.value.querySelectorAll("yt-tab-shape"),n=x()>-1?I[x()]:void 0;_.Mq.addJob(function(){f((n==null?void 0:n.getBoundingClientRect().width)||0)},8,0)});
_.To(function(){var I=x(),n=_.Mq.addJob(function(){var b,N=((b=z.value)==null?void 0:b.querySelectorAll("yt-tab-shape"))||[],l;f(((l=I>-1?N[I]:void 0)==null?void 0:l.getBoundingClientRect().width)||0);for(l=b=0;l<I;l++)b+=N[l].offsetWidth+24;_.WY("HTML_DIR")==="rtl"&&(b=-b);a(b)},8,0);
_.wX(function(){_.Mq.cancelJob(n)})},"EHixkc");
S={};return _.B("yt-tab-group-shape",{class:_.n4("yt-tab-group-shape-wiz",(S["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return c().isOverflowHidden},S)),
el:z},_.B(_.K,{cond:X,then:function(I){return _.B(_.ak,null,_.B("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.B(_.lW,{each:I},function(n,b){return _.B(alu,{shape:function(){return Object.assign({},n,{isLastTab:b()===I().length-1})},
customTabRenderable:n.customTabRenderable,useCustomTabRenderable:!!n.customTabRenderable})})),_.B(A9e,{width:Q,
sliderOffset:U}))}}))},"Id");
_.XTl.idomCompat=!0;var A9e=_.y_(function(S){var c=_.tq(S.sliderOffset,0),Q=S.width;return _.B("div",{class:"yt-tab-group-shape-wiz__slider",style:_.Yd({width:function(){return Q()+"px"},
transform:function(){return"translateX("+c()+"px)"}})})},"Jd");var OFp=_.y_(function(S){var c=function(){var a,X,z;return(z=(a=S.data().playerLogoAccessibility)==null?void 0:(X=a.accessibilityData)==null?void 0:X.label)!=null?z:""},Q=_.b9(DLz,function(){return S.data().playerEntityKey}),f={};
f=_.n4("ytwFantasyPlayerViewModelHost",(f.ytwFantasyPlayerViewModelPlaying=function(){var a;return!((a=Q())==null||!a.isPlayerPlaying)},f.ytwFantasyPlayerViewModelOnField=function(){var a;
return((a=Q())==null?void 0:a.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},f.ytwFantasyPlayerViewModelRedZone=function(){var a;
return((a=Q())==null?void 0:a.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},f));
var U=function(){var a,X,z,x=((a=_.fl().resolve(_.QS(_.Lv)))==null?0:a())?(X=S.data().playerLogoBackgroundColor)==null?void 0:X.darkTheme:(z=S.data().playerLogoBackgroundColor)==null?void 0:z.lightTheme;return x===void 0?"":_.gh(x)};
return _.B("ytw-fantasy-player-view-model",{class:f},_.B(_.K,{cond:function(){return S.data().playerLogo},
then:function(a){return _.B("div",{class:"ytwFantasyPlayerViewModelLogo"},_.B("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.B(_.RW,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.Yd({"background-color":U}),data:a,alt:c})),_.B("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.B(_.C4,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.B("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.B("div",{class:"ytwFantasyPlayerViewModelHeader"},_.B(_.mw,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var a;return(a=S.data())==null?void 0:a.playerNameText}}),_.B(_.mw,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var a;return(a=S.data())==null?void 0:a.playerDescriptionText}})),_.B("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.B(_.mw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var a;return(a=Q())==null?void 0:a.gamePeriodText}}),_.B(_.mw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var a;return(a=S.data())==null?void 0:a.opponentTeamText}}),_.B(_.mw,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var a;return(a=Q())==null?void 0:a.gameStatusText}}),_.B(_.mw,{className:_.n4("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var a;return(a=Q())==null?void 0:a.playerStatusText}})),_.B("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.B(_.mw,{text:function(){var a;
return(a=Q())==null?void 0:a.playerStatsText}}))),_.B(_.mw,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var a;return(a=Q())==null?void 0:a.fantasyScore}}))},"Kd");var z$e=_.y_(function(S){return _.B("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.B(_.K,{cond:function(){return S.data().players},
then:function(c){return _.B(_.h8,{data:c},{fantasyPlayerViewModel:OFp})}}))},"Ld");var xts=_.y_(function(S){var c=_.A(_.l8(function(){var U;return(U=S.data().selectedTabIdentifierKey)!=null?U:""})),Q=c.next().value,f=c.next().value;
_.qR(function(){var U;(U=S.setSelectedTabSignal)==null||U.call(S,Q)});
return _.B("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.B("div",{class:"ytTabbedViewModelTabGroup"},_.B(_.XTl,{shape:function(){var U=S.data(),a=[],X={tabs:a};if(!U.tabs)return X;U=_.A(U.tabs);for(var z=U.next(),x={};!z.done;x={tabViewModel:void 0},z=U.next())if(x.tabViewModel=_.Y(z.value,wAH),x.tabViewModel){var I=z=void 0;a.push({aTagConfig:{onclick:function(n){return function(){var b;f((b=n.tabViewModel.tabIdentifier)!=null?b:"")}}(x)},
identifier:x.tabViewModel.tabIdentifier,selected:Q()===x.tabViewModel.tabIdentifier,title:(I=(z=x.tabViewModel.title)==null?void 0:z.content)!=null?I:""})}return X}})),_.B(_.h8,{data:function(){var U,a=_.A((U=S.data().tabs)!=null?U:[]);
for(U=a.next();!U.done;U=a.next())if((U=_.Y(U.value,wAH))&&U.tabIdentifier===Q())return U.content}},{fantasyRosterViewModel:z$e}))},"Md");_.f4(_.y_(function(S){var c=_.A(mWY()),Q=c.next().value,f=c.next().value;return _.B("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.B(_.mw,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return S.data().title}}),_.B(_.K,{cond:function(){return S.data().tabbedViewModel},
then:function(U){return _.B(_.h8,{data:U},{tabbedViewModel:function(a){return _.B(xts,{data:a.data,setSelectedTabSignal:f})}})}}),_.B(_.K,{cond:function(){var U,a=(U=_.Y(S.data().tabbedViewModel,sJh))==null?void 0:U.tabs;
U=_.Y(a==null?void 0:a[0],wAH);a=_.Y(a==null?void 0:a[1],wAH);var X=U==null?void 0:U.tabIdentifier;if(Q()===X){var z,x;if(!((z=_.Y(U==null?void 0:U.content,wls))==null?0:(x=z.players)==null?0:x.length))return S.data().noUserTeamPlayersText}else{var I,n;if(!((I=_.Y(a==null?void 0:a.content,wls))==null?0:(n=I.players)==null?0:n.length))return S.data().noOpponentTeamPlayersText}},
then:function(U){return _.B(_.mw,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:U})}}))},"Nd"),"ytw-fantasy-matchup-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){return _.B("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.B(_.mw,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return S.data().title}}),_.B(_.K,{cond:function(){return S.data().matchupTeamPairs},
then:function(c){return _.B(_.lW,{each:c,keyBy:"INDEX"},function(Q){return _.B("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.B(_.h8,{data:function(){return[Q().firstTeam,Q().secondTeam]}},{fantasyTeamViewModel:function(f){return _.B(J9J,{data:f.data,
compact:!0})}}))})}}))},"Od"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=function(){var U,a,X;return(X=(U=S.data().userLogoAccessibility)==null?void 0:(a=U.accessibilityData)==null?void 0:a.label)!=null?X:""},Q=function(){var U,a,X;
return(X=(U=S.data().opponentLogoAccessibility)==null?void 0:(a=U.accessibilityData)==null?void 0:a.label)!=null?X:""},f=_.b9(C3p,function(){return S.data().entityKey});
return _.B("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.B("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.B(_.K,{cond:function(){return S.data().userLogo},
then:function(U){return _.B(_.RW,{className:"ytwFantasyWinProbabilityViewModelLogo",data:U,alt:c})}}),_.B("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.B(_.mw,{text:function(){return S.data().title}})),_.B(_.K,{cond:function(){return S.data().opponentLogo},
then:function(U){return _.B(_.RW,{className:"ytwFantasyWinProbabilityViewModelLogo",data:U,alt:Q})}})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.B("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.B(_.mw,{text:function(){var U;
return(U=f())==null?void 0:U.userWinNumberLabel}})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.B("div",{class:_.n4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.Yd({flex:function(){var U,a;return(a=(U=f())==null?void 0:U.userWinNumber)!=null?a:50}})}),_.B("div",{class:_.n4("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.Yd({flex:function(){var U,a;return(a=(U=f())==null?void 0:U.opponentWinNumber)!=null?a:50}})})),_.B("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.B(_.mw,{text:function(){var U;
return(U=f())==null?void 0:U.opponentWinNumberLabel}}))))},"Pd"),"fantasy-win-probability-view-model",{props:{data:_.y$}});_.i8("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var iD=function(){var S=_.W.apply(this,arguments)||this;S.darkerPanels=_.u("web_watch_darker_panels");S.commentsHidePanelButton=!1;S.isWatchGrid=!1;S.continuationShowButton=!1;S.isSearch=!1;S.isConstrainedList=!1;S.isWatch=!1;S.eligibleToSwitchToGrid=!1;S.notSticky=!1;S.epRestyle=!1;S.isCarouselInFeed=!0;S.topSpacingZero=!1;S.continuationIsInitialLoad=!0;S.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");S.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");S.mastheadHeight=
0;S.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation","yt-item-section-replace-action":"handleYtItemSectionReplace"};S.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return S};
_.C(iD,_.W);_.J=iD.prototype;_.J.updateLockupContainerTypes=function(S){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||c.forEach(function(Q){Q.containerType=S})}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.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:_.u("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.u("kevlar_low_priority_continuation")}}};
_.J.created=function(){this.JSC$14547_cachedViewportHeight=_.WY("initialInnerHeight")||window.innerHeight};
_.J.updateHeaderState=function(){this.notSticky=this.hostElement.getBoundingClientRect().y>this.mastheadHeight};
_.J.handleIntersect=function(S){this.notSticky=S[0].intersectionRatio===1};
_.J.attached=function(){var S=this;document.addEventListener("scroll",_.xn(this,this.updateHeaderState));var c;this.mastheadHeight=((c=document.querySelector("ytd-masthead"))==null?void 0:c.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(Q){S.handleIntersect(Q)},{rootMargin:"-"+(this.mastheadHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){S.updateHeaderState()}),this.resizeObserver.observe(this.hostElement))};
_.J.detached=function(){document.removeEventListener("scroll",_.xn(this,this.updateHeaderState));var S;(S=this.intersectionObserver)==null||S.disconnect();var c;(c=this.resizeObserver)==null||c.disconnect()};
_.J.updated=function(S){S.has("data")&&this.updateHeaderState()};
_.J.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(trp(!this.notSticky))};
_.J.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var S=_.Ur(this.hostElement).querySelector("ytd-comments-header-renderer");S&&(S.hidePanelButton=this.commentsHidePanelButton)}};
_.J.onRetrieveLocation=function(S,c){this.containsComments()&&(this.firstCommentsLoaded=c.hasComments=!0)};
_.J.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.J.onLoadReloadContinuation=function(S,c){var Q=this;S.stopPropagation();this.isReloading=!0;_.Az(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(f){var U=_.fl().resolve(_.s_);f=c(f);U.postData(f).then(function(a){Q.onReloadContinuationData(a)})}})};
_.J.onReloadContinuationData=function(S){if(S=this.get("response.continuationContents.itemSectionContinuation",S)||this.get("response.contents.itemSectionRenderer",S)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",S)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",S))this.set("data.contents",S.contents||S.results),S.header&&this.set("data.header",S.header),this.set("data.continuations",
S.continuations||[]);this.isReloading=!1};
_.J.computeContentsClass=function(S){return S?"reloading":""};
_.J.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.J.computeSectionIdentifier=function(S){return S==null?void 0:S.sectionIdentifier};
_.J.computeFitContainer=function(S){return(S==null?void 0:S.sectionIdentifier)==="youchat-item-section"};
_.J.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.u("kevlar_disable_comments_auto_load")};
_.J.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.J.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeHasDestinationShelfRenderer=function(S){var c,Q;return!!(S==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:Q.destinationShelfRenderer)};
_.J.computeHasSectionGroupViewModel=function(S){var c,Q;return!!(S==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:Q.sectionGroupViewModel)};
_.J.computeHasQrCodeRenderer=function(S){var c,Q;return!!(S==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:Q.qrCodeRenderer)};
_.J.computeStaticCommentsHeader=function(S){return S&&this.containsComments()};
_.J.computeEpRestyle=function(S){return _.u("web_ep_restyling")&&S&&this.containsComments()};
_.J.computeIsContinuationCommentSection=function(S){return(S==null?void 0:S.targetId)==="shorts-engagement-panel-comments-section"||(S==null?void 0:S.targetId)==="comments-section"||(S==null?void 0:S.targetId)==="engagement-panel-comments-section"};
_.J.computeSuppressPaddingDisclaimer=function(){var S,c,Q,f;return!!((S=this.data)==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:(f=Q.productListHeaderRenderer)==null?0:f.suppressPaddingDisclaimer)};
_.J.computeHeaderStyle=function(S){switch(S==null?void 0:S.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.J.dataChanged=function(){this.firstCommentsLoaded=!1};
_.J.observeDataContentsLength=function(){var S,c;((S=this.data)==null?0:(c=S.contents)==null?0:c.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.J.onYtDismissibleItemDismissedChange=function(S){this._setItemDismissed(S.type==="yt-dismissible-item-dismissed")};
_.J.triggerContinuations=function(){for(var S=_.Ur(this.hostElement).querySelector("#continuations").children,c=0;c<S.length;c++)S[c].trigger()};
_.J.triggerInitialContinuations=function(){for(var S=_.Ur(this.hostElement).querySelector("#continuations").children,c=0;c<S.length;c++)S[c].triggerIfNotPreviouslyTriggered()};
_.J.handleYtItemSectionContinuation=function(S,c){var Q;c&&((Q=this.data)==null?void 0:Q.sectionIdentifier)!==c||(this.set("data.continuations",[S]),this.triggerContinuations())};
_.J.handleYtItemSectionReplace=function(S,c){var Q;c&&((Q=this.data)==null?void 0:Q.sectionIdentifier)!==c||(this.set("data.contents",S),this.set("data.continuations",[]))};
_.J.computeUseHeightHack=function(S){return S&&!_.u("kevlar_disable_height_hack")};
_.J.computeTopSpacingZero=function(S){return S};
_.J.continuationShowButtonChanged=function(){var S=_.Ur(this.hostElement).querySelector("ytd-continuation-item-renderer");S&&(S.showButton=this.continuationShowButton)};
_.J.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("data-changed",this.data))};
_.Rh.Object.defineProperties(iD.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.u("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
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 S,c,Q;return!!((S=this.data)==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:Q.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f,U,a,X;return!!((S=this.data)==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:(f=Q.shelfRenderer)==null?0:(U=f.content)==null?0:(a=U.gridRenderer)==null?0:(X=a.targetId)==null?0:X.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return!!((S=this.data)==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:Q.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return!!((S=this.data)==null?0:(c=S.contents)==null?0:(Q=c[0])==null?0:Q.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.Al("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.u("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.u("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14547_cachedViewportHeight-130)/150)},
set:function(){}}});
iD.prototype.dataChangedForBinding=iD.prototype.dataChangedForBinding;iD.prototype.continuationShowButtonChanged=iD.prototype.continuationShowButtonChanged;iD.prototype.onYtDismissibleItemDismissedChange=iD.prototype.onYtDismissibleItemDismissedChange;iD.prototype.observeDataContentsLength=iD.prototype.observeDataContentsLength;iD.prototype.dataChanged=iD.prototype.dataChanged;iD.prototype.onServiceRequestCompleted=iD.prototype.onServiceRequestCompleted;iD.prototype.onLoadReloadContinuation=iD.prototype.onLoadReloadContinuation;
iD.prototype.onRetrieveLocation=iD.prototype.onRetrieveLocation;iD.prototype.commentsHidePanelButtonChanged=iD.prototype.commentsHidePanelButtonChanged;iD.prototype.dispatchChipBarIsSticky=iD.prototype.dispatchChipBarIsSticky;iD.prototype.updateLockupContainerTypes=iD.prototype.updateLockupContainerTypes;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],iD.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],iD.prototype,"ytLazyListBehavior",void 0);_.d([_.p(_.vM.YtNextContinuationBehavior),_.P("design:type",Object)],iD.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.p(_.di),_.P("design:type",Object)],iD.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],iD.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],iD.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"darkerPanels",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],iD.prototype,"engagementPanel",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"commentsHidePanelButton",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"isWatchGrid",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"continuationShowButton",void 0);_.d([_.Z({computed:"computeIsContinuationCommentSection(data)"}),_.P("design:type",Boolean)],iD.prototype,"continuationIsCommentsSection",void 0);
_.d([_.Z({value:!0}),_.P("design:type",Boolean)],iD.prototype,"autoFill",void 0);_.d([_.Z(),_.P("design:type",Boolean)],iD.prototype,"continuationDisablePrescanVisibility",void 0);_.d([_.Z(),_.P("design:type",Boolean)],iD.prototype,"isReloading",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"isSearch",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"isConstrainedList",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"isWatch",void 0);
_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"eligibleToSwitchToGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"notSticky",void 0);_.d([_.Z({selector:_.e9}),_.P("design:type",Object)],iD.prototype,"isGridViewEnabled",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.P("design:type",Object)],iD.prototype,"epRestyle",void 0);
_.d([_.M("isWatch"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iD.prototype,"hideShortsShelfHeader",null);_.d([_.M("isSearch","isWatch"),_.P("design:type",String),_.P("design:paramtypes",[])],iD.prototype,"thumbnailWidth",null);_.d([_.M("isSearch","isWatch"),_.P("design:type",String),_.P("design:paramtypes",[])],iD.prototype,"sizing",null);
_.d([_.M("isWatch","isGridViewEnabled","data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],iD.prototype,"lockupContainerType",null);_.d([_.B0("lockupContainerType","data"),_.P("design:type",Function),_.P("design:paramtypes",[Number]),_.P("design:returntype")],iD.prototype,"updateLockupContainerTypes",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],iD.prototype,"pageSubtype",void 0);
_.d([_.Z({computed:"computeContainerWidth()"}),_.P("design:type",Number)],iD.prototype,"containerWidth",void 0);_.d([_.Z(),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iD.prototype,"isPlaylist",null);_.d([_.Z(),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iD.prototype,"isClipList",null);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"isCarouselInFeed",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iD.prototype,"isPlaylistVideoContainer",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iD.prototype,"isSearchFrictionPage",null);_.d([_.Z({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.P("design:type",Boolean)],iD.prototype,"useHeightHack",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.P("design:type",Object)],iD.prototype,"topSpacingZero",void 0);_.d([_.Z({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.P("design:type",Boolean)],iD.prototype,"showButton",void 0);_.d([_.Z(),_.P("design:type",Boolean)],iD.prototype,"firstCommentsLoaded",void 0);_.d([_.Z(),_.P("design:type",Object)],iD.prototype,"continuationIsInitialLoad",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],iD.prototype,"isSearchDova",void 0);_.d([_.Z({reflectToAttribute:!0,readOnly:!0}),_.P("design:type",Boolean)],iD.prototype,"itemDismissed",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.P("design:type",String)],iD.prototype,"sectionIdentifier",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.P("design:type",String)],iD.prototype,"fitContainer",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.P("design:type",Boolean)],iD.prototype,"hasDestinationShelfRenderer",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.P("design:type",Boolean)],iD.prototype,"staticCommentsHeader",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"enableSqueezebackPanels",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],iD.prototype,"enableAnchoredPanel",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.P("design:type",Boolean)],iD.prototype,"hasSectionGroupViewModel",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasQrCodeRenderer(data)"}),_.P("design:type",Boolean)],iD.prototype,"hasQrCodeRenderer",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.P("design:type",Boolean)],iD.prototype,"suppressDisclaimerSeparator",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.P("design:type",String)],iD.prototype,"headerStyle",void 0);_.d([_.M("isSearch"),_.P("design:type",Object),_.P("design:paramtypes",[])],iD.prototype,"lockupExperiments",null);
_.d([_.M("isSearch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],iD.prototype,"typographyBump",null);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],iD.prototype,"header",void 0);_.d([_.B0("notSticky"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"dispatchChipBarIsSticky",null);
_.d([_.B0("commentsHidePanelButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"commentsHidePanelButtonChanged",null);_.d([_.FV("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],iD.prototype,"onRetrieveLocation",null);
_.d([_.FV("yt-load-reload-continuation"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Function]),_.P("design:returntype")],iD.prototype,"onLoadReloadContinuation",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"onServiceRequestCompleted",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"dataChanged",null);
_.d([_.$n("data.contents.length"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"observeDataContentsLength",null);_.d([_.FV("yt-dismissible-item-dismissed"),_.FV("yt-dismissible-item-undismissed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],iD.prototype,"onYtDismissibleItemDismissedChange",null);
_.d([_.B0("continuationShowButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"continuationShowButtonChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iD.prototype,"dataChangedForBinding",null);_.d([_.e({is:"ytd-item-section-renderer",disableElementRegistration:!0})],iD);
_.k(iD,"ytd-item-section-renderer",function(){if(sV_!==void 0)return sV_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return sV_=S},{mode:1});var F4J;var U2r=_.LK(_.K8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var SGZ={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var Bmd={},faZ=(Bmd[0]={title:_.fK(_.K8("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fK(_.K8("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:cq("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},Bmd[1]={title:_.fK(_.K8("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:cq("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},Bmd);_.i8("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var Zu=function(){var S=_.W.apply(this,arguments)||this;S.allVideosCount=0;S.allPlaylistCount=0;S.shouldRenderDownloadsBanner=!1;S.hasOptedIntoSmartDownloads=!1;S.areAllSmartDownloadsDeleted=!1;S.smartDownloadsCompleted=!1;return S};
_.C(Zu,_.W);Zu.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
Zu.prototype.attached=function(){this.downloadsToRenderChanged()};
Zu.prototype.detached=function(){this.set("renderableData",{})};
Zu.prototype.downloadsToRenderChanged=function(){var S=_.V5().getState().entities,c=_.pK(S),Q=_.u("kevlar_playlist_dl_page_killswitch")?Okx(S):_.hb(S),f=_.UBz(S),U=_.lZ(c);S=_.qO(S);this.set("renderableData",aaM(Q,c,f,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,U,S))};
Zu.prototype.downloadsToRenderChanged=Zu.prototype.downloadsToRenderChanged;_.d([_.p(_.st),_.P("design:type",Object)],Zu.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Zu.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Zu.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Zu.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Zu.prototype,"renderableData",void 0);_.d([_.Z({selector:_.lwc}),_.P("design:type",Object)],Zu.prototype,"allVideosCount",void 0);_.d([_.Z({selector:R3z}),_.P("design:type",Object)],Zu.prototype,"allPlaylistCount",void 0);_.d([_.Z({selector:_.qax}),_.P("design:type",Object)],Zu.prototype,"shouldRenderDownloadsBanner",void 0);_.d([_.Z({selector:_.Txz}),_.P("design:type",Object)],Zu.prototype,"hasOptedIntoSmartDownloads",void 0);
_.d([_.Z({selector:_.wAr}),_.P("design:type",Object)],Zu.prototype,"areAllSmartDownloadsDeleted",void 0);_.d([_.Z({selector:sJo}),_.P("design:type",Object)],Zu.prototype,"smartDownloadsCompleted",void 0);_.d([_.$n("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zu.prototype,"downloadsToRenderChanged",null);
_.d([_.e({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],Zu);
_.k(Zu,"ytd-offline-item-section-renderer",function(){if(F4J!==void 0)return F4J;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return F4J=S},
{mode:1});var Ild;var nTd;var GU=function(){return _.W.apply(this,arguments)||this};
_.C(GU,_.W);
GU.prototype.onDataChanged=function(){if(this.JSC$14573_lastData){var S=this.getFilterClass(this.JSC$14573_lastData.status);S&&this.hostElement.classList.remove(S)}var c;(S=this.getFilterClass((c=this.data)==null?void 0:c.status))&&this.hostElement.classList.add(S);S==="selected"?_.Ur(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.Ur(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");S==="disabled"?_.Ur(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.Ur(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14573_lastData=this.data};
GU.prototype.getFilterClass=function(S){switch(S){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
GU.prototype.onDataChanged=GU.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],GU.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],GU.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],GU.prototype,"onDataChanged",null);_.d([_.e({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],GU);
_.k(GU,"ytd-search-filter-renderer",function(){if(nTd!==void 0)return nTd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return nTd=S},{mode:_.A2("kevlar_poly_si_batch_j075")?1:2});var WD=function(){return _.W.apply(this,arguments)||this};
_.C(WD,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],WD.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],WD.prototype,"data",void 0);_.d([_.e({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],WD);
_.k(WD,"ytd-search-filter-group-renderer",function(){if(Ild!==void 0)return Ild;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Ild=S},{mode:_.A2("kevlar_poly_si_batch_j075")?1:2});var bFd;var gv=function(){return _.W.apply(this,arguments)||this};
_.C(gv,_.W);gv.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.Fg());this.isCollapsed=!this.isCollapsed};
gv.prototype.navigateToAboutTheseResultsPage=function(){var S=Kc("https://www.youtube.com/howyoutubeworks/product-features/search/");S?_.sy(window,S,"_blank"):_.eG(Error("Sh"))};
gv.prototype.dataChanged=function(){this.isCollapsed=!0};
gv.prototype.computeShowBottomBorder=function(){var S,c,Q;return!!((S=this.data)==null?0:(c=S.button)==null?0:c.toggleButtonRenderer)||!((Q=this.data)==null||!Q.aboutTheseResultsButton)};
gv.prototype.dataChanged=gv.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gv.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gv.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.P("design:type",Boolean)],gv.prototype,"showBottomBorder",void 0);_.d([_.Z(),_.P("design:type",Boolean)],gv.prototype,"renderCollapsibleMenu",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],gv.prototype,"isCollapsed",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gv.prototype,"dataChanged",null);_.d([_.e({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],gv);
_.k(gv,"ytd-search-sub-menu-renderer",function(){if(bFd!==void 0)return bFd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return bFd=S},{mode:1});var Nmi;var K4$=new _.Sg("SECTION_LIST_RENDERER_TOKEN");var $ts;var eK=function(){return _.W.apply(this,arguments)||this};
_.C(eK,_.W);eK.prototype.computeStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],eK.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],eK.prototype,"headerStyle",void 0);_.d([_.e({is:"ytd-text-header-renderer",disableElementRegistration:!0})],eK);
_.k(eK,"ytd-text-header-renderer",function(){if($ts!==void 0)return $ts;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return $ts=S},{mode:1});var uGJ;var k_=function(){return _.W.apply(this,arguments)||this};
_.C(k_,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],k_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],k_.prototype,"data",void 0);_.d([_.e({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],k_);
_.k(k_,"ytd-minor-moment-header-renderer",function(){if(uGJ!==void 0)return uGJ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return uGJ=S},{mode:1});var j_z;var rv=function(){return _.W.apply(this,arguments)||this};
_.C(rv,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rv.prototype,"data",void 0);_.d([_.e({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],rv);
_.k(rv,"ytd-minor-moment-setting-alert-renderer",function(){if(j_z!==void 0)return j_z;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return j_z=S},{mode:1});var lld;var YUd;var dv=function(){var S=_.W.apply(this,arguments)||this;S.booleanSettingById=!1;S.smartDownloadsEnabledVE=_.qo(128287);S.smartDownloadsDisabledVE=_.qo(128286);S.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return S};
_.C(dv,_.W);_.J=dv.prototype;_.J.attachSmartDownloadsSettingVes=function(){var S;this.activeVeForLogging||((S=this.data)==null?void 0:S.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.Oc(_.Kv(),this.smartDownloadsEnabledVE),_.Oc(_.Kv(),this.smartDownloadsDisabledVE))};
_.J.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.Az(this.hostElement,"yt-settings-switch-ready")};
_.J.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.J.onSwitchChange=function(S){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(S=_.VI(S).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.u("kevlar_settings_switch_resolve_command_killswitch")?_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(S)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.J.handleUpdateSettingsSwitch=function(S){(S=_.Y(S,oH_))&&this.data&&this.data.id===S.id&&this.set("data.enabled",!!S.enabled)};
_.J.onToggleSettingsSwitch=function(S,c){this.data&&this.data.id===S&&this.set("data.enabled",c!=null?c:!this.data.enabled)};
_.J.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.oJ.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.J.maybeLogSmartDownloadsSettingVisibility=function(){var S=_.wN(),c;S&&((c=this.data)==null?void 0:c.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.L8(S,[this.smartDownloadsEnabledVE]),_.Ez(S,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.L8(S,[this.smartDownloadsDisabledVE]),_.Ez(S,[this.smartDownloadsEnabledVE])))};
_.J.maybeLogSmartDownloadsSettingClick=function(){var S;((S=this.data)==null?void 0:S.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.xA(_.Kv(),this.activeVeForLogging)};
_.J.updateDataEnabledFromBinding=function(S){this.set("data.enabled",S.detail.value)};
_.Rh.Object.defineProperties(dv.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var S=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!S&&(S=this.ytRendererBehavior.getSimpleString(this.data.title));return S}}});
dv.prototype.dataChanged=dv.prototype.dataChanged;_.d([_.p(_.st),_.P("design:type",Object)],dv.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],dv.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],dv.prototype,"ytComponentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],dv.prototype,"data",void 0);_.d([_.Z({selector:function(S,c){if(Object.keys(S==null?void 0:S.entities).length)switch(c){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return zOT(S.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.P("design:type",Object)],dv.prototype,"booleanSettingById",void 0);_.d([_.Z(),_.P("design:type",_.qE)],dv.prototype,"activeVeForLogging",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],dv.prototype,"toggleAriaLabel",null);_.d([_.$n("data"),_.$n("booleanSettingById"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dv.prototype,"dataChanged",null);
_.d([_.e({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],dv);
_.k(dv,"ytd-settings-switch-renderer",function(){if(YUd!==void 0)return YUd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return YUd=S},{mode:1});var vD=function(){return _.W.apply(this,arguments)||this};
_.C(vD,_.W);vD.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}}}}};
_.Rh.Object.defineProperties(vD.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var S=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(S+=" remove-left-margin");this.data.extraBottomSpace&&(S+=" extra-bottom-space");return S}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vD.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],vD.prototype,"contentsClassName",null);_.d([_.e({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],vD);
_.k(vD,"ytd-minor-moment-setting-section-renderer",function(){if(lld!==void 0)return lld;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return lld=S},{mode:1});var Cqh;var PD=function(){return _.W.apply(this,arguments)||this};
_.C(PD,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],PD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],PD.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],PD.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],PD);
_.k(PD,"ytd-empty-product-details-renderer",function(){if(Cqh!==void 0)return Cqh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Cqh=S},{mode:1});var HF_;var Dtp;var L5=function(){var S=_.W.apply(this,arguments)||this;S.expanded=!0;return S};
_.C(L5,_.W);L5.prototype.getBadgeRowClass=function(S,c,Q){for(var f=_.A(this.hostElement.querySelectorAll("yt-img-shadow")),U=f.next();!U.done;U=f.next())U.value.onShow();S=S.selected;return Q?S!==-1?S===c?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(S!==void 0?S:0)===c?"badge-line":"badge-hidden"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],L5.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],L5.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],L5.prototype,"expanded",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],L5);
_.k(L5,"ytd-sponsorships-loyalty-badges-renderer",function(){if(Dtp!==void 0)return Dtp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Dtp=S},{mode:1});var pTh;var EF=function(){var S=_.W.apply(this,arguments)||this;S.expanded=!0;return S};
_.C(EF,_.W);EF.prototype.getContainerClasses=function(S,c){S=S?"expanded":"collapsed";c&&(S+=" item");return S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],EF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],EF.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],EF.prototype,"expanded",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],EF);
_.k(EF,"ytd-sponsorships-perk-renderer",function(){if(pTh!==void 0)return pTh;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return pTh=S},{mode:1});var h$e;var tQ=function(){var S=_.W.apply(this,arguments)||this;S.expanded=!0;return S};
_.C(tQ,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tQ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tQ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],tQ.prototype,"expanded",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],tQ);
_.k(tQ,"ytd-sponsorships-perks-renderer",function(){if(h$e!==void 0)return h$e;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return h$e=S},{mode:1});var Vs=function(){var S=_.W.apply(this,arguments)||this;S.isCollapsed=!1;return S};
_.C(Vs,_.W);Vs.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
Vs.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
Vs.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var S;this.expandCollapseButton=_.Y((S=this.data)==null?void 0:S.expandButton,_.GF)}else{var c;this.expandCollapseButton=_.Y((c=this.data)==null?void 0:c.collapseButton,_.GF)}};
Vs.prototype.updateExpandCollapseButton=Vs.prototype.updateExpandCollapseButton;Vs.prototype.onDataChanged=Vs.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Vs.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Vs.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Vs.prototype,"isCollapsed",void 0);_.d([_.Z(),_.P("design:type",Object)],Vs.prototype,"expandCollapseButton",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vs.prototype,"onDataChanged",null);_.d([_.$n("data","isCollapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vs.prototype,"updateExpandCollapseButton",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],Vs);
_.k(Vs,"ytd-sponsorships-expandable-perks-renderer",function(){if(HF_!==void 0)return HF_;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return HF_=S},{mode:1});var qUu;var RO=function(){return _.W.apply(this,arguments)||this};
_.C(RO,_.W);RO.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],RO.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],RO.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],RO.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],RO);
_.k(RO,"ytd-sponsorships-actionable-message-renderer",function(){if(qUu!==void 0)return qUu;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return qUu=S},{mode:1});var Tmd;var ys=function(){return _.W.apply(this,arguments)||this};
_.C(ys,_.W);_.J=ys.prototype;_.J.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.J.getExpansionIcon=function(S){return S?"COLLAPSE":"EXPAND"};
_.J.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.computeMessageContainerStyle=function(S){var c=S.expandableItems?" style-clickable":"";return S.messageContainerStyle?S.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+c:"style-unspecified"+c};
_.J.isSinglePerk=function(S){return!!S.messageContainerStyle&&(S.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||S.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.J.onExpandedChanged=function(){var S=this;if(this.expanded)for(var c=_.A(this.hostElement.querySelectorAll("yt-img-shadow")),Q=c.next();!Q.done;Q=c.next())Q.value.onShow();_.tO(this,function(){_.Az(S.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
ys.prototype.onDataChanged=ys.prototype.onDataChanged;ys.prototype.onExpandedChanged=ys.prototype.onExpandedChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ys.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ys.prototype,"expanded",void 0);
_.d([_.B0("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ys.prototype,"onExpandedChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ys.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],ys);
_.k(ys,"ytd-sponsorships-expandable-message-renderer",function(){if(Tmd!==void 0)return Tmd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Tmd=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var wTu;var oO=function(){return _.W.apply(this,arguments)||this};
_.C(oO,_.W);oO.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"}}}}};
oO.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.Y(this.data.endButton,_.GF).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
oO.prototype.onDataChanged=oO.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],oO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],oO.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oO.prototype,"onDataChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],oO);
_.k(oO,"ytd-sponsorships-heading-renderer",function(){if(wTu!==void 0)return wTu;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wTu=S},{mode:1});var s_l;var mP=function(){return _.W.apply(this,arguments)||this};
_.C(mP,_.W);_.d([_.Z(),_.P("design:type",Object)],mP.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mP.prototype,"ytRendererBehavior",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],mP);
_.k(mP,"ytd-sponsorships-links-renderer",function(){if(s_l!==void 0)return s_l;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return s_l=S},{mode:1});var Mve;var Sh=function(){return _.W.apply(this,arguments)||this};
_.C(Sh,_.W);_.J=Sh.prototype;_.J.onDataChanged=function(){if(this.data&&this.data.expandableItems){var S;(S=_.Ur(this.hostElement).querySelector("tp-yt-paper-button"))==null||S.setAttribute("role","button")}else{var c;(c=_.Ur(this.hostElement).querySelector("tp-yt-paper-button"))==null||c.removeAttribute("role")}};
_.J.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.J.getExpansionIcon=function(S){return S?"COLLAPSE":"EXPAND"};
_.J.getTileClasses=function(S){return S?"tile expandable-tile":"tile"};
_.J.getButtonDisabled=function(S){return S?void 0:""};
Sh.prototype.onDataChanged=Sh.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Sh.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Sh.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Sh.prototype,"expanded",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sh.prototype,"onDataChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],Sh);
_.k(Sh,"ytd-sponsorships-list-tile-renderer",function(){if(Mve!==void 0)return Mve;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Mve=S},{mode:1});var iFz;var ZFi;var cF=function(){return _.W.apply(this,arguments)||this};
_.C(cF,_.W);cF.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cF.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],cF);
_.k(cF,"ytd-sponsorships-promotion-renderer",function(){if(ZFi!==void 0)return ZFi;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ZFi=S},{mode:1});var Gqs;var Qm=function(){return _.W.apply(this,arguments)||this};
_.C(Qm,_.W);Qm.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Qm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Qm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Qm.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],Qm);
_.k(Qm,"ytd-sponsorships-purchase-option-renderer",function(){if(Gqs!==void 0)return Gqs;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Gqs=S},{mode:1});var W4z;var gTp;var e$u=function(){return _.W.apply(this,arguments)||this};
_.C(e$u,_.W);_.d([_.Z(),_.P("design:type",Object)],e$u.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],e$u);
_.k(e$u,"ytd-ypc-offer-promo-renderer",function(){if(gTp!==void 0)return gTp;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return gTp=S},{mode:1});var fN=function(){return _.W.apply(this,arguments)||this};
_.C(fN,_.W);_.J=fN.prototype;
_.J.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"}}}}};
_.J.expansionCTA=function(S,c){return S&&(c?S.collapseCallToAction:S.expansionCallToAction)};
_.J.getExpansionIcon=function(S){return S?"COLLAPSE":"EXPAND"};
_.J.expansionCallToActionTap=function(){var S=this;this.expanded=!this.expanded;_.tO(this,function(){_.Az(S.hostElement,"yt-refit")})};
_.J.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var S,c=(S=this.data)==null?void 0:S.onVisible;c&&this.ytComponentBehavior.resolveCommand(c)};
_.J.computeDisplayTitle=function(S){return!(!S||this.titledisplaystatus!=="show")};
_.J.computeDisplaySeparator=function(){return!1};
_.J.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
fN.prototype.onDataChanged=fN.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],fN.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],fN.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],fN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],fN.prototype,"data",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],fN.prototype,"expanded",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],fN.prototype,"purchaseButtonClicked",void 0);_.d([_.Z({reflectToAttribute:!0,value:"show"}),_.P("design:type",String)],fN.prototype,"titledisplaystatus",void 0);_.d([_.Z({computed:"computeDisplayTitle(data.title)"}),_.P("design:type",Boolean)],fN.prototype,"displayTitle",void 0);
_.d([_.Z({computed:"computeDisplaySeparator(data)"}),_.P("design:type",Boolean)],fN.prototype,"displaySeparator",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fN.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],fN);
_.k(fN,"ytd-sponsorships-tier-renderer",function(){if(W4z!==void 0)return W4z;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return W4z=S},{mode:2});var Uw=function(){return _.W.apply(this,arguments)||this};
_.C(Uw,_.W);
Uw.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"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Uw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Uw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Uw.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],Uw);
_.k(Uw,"ytd-sponsorships-management-renderer",function(){if(iFz!==void 0)return iFz;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return iFz=S},{mode:1});var kqs;var Jn=function(){return _.W.apply(this,arguments)||this};
_.C(Jn,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Jn.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Jn.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],Jn);
_.k(Jn,"ytd-open-in-native-app-view-model",function(){if(kqs!==void 0)return kqs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return kqs=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var r9e;var dtT;var vT_=_.oK(["top-"]),Pqh=_.oK(["bottom-"]),L4_=_.oK(["left-"]),ETd=_.oK(["right-"]),tv$={},Vvi=function(S,c,Q){S.removeAttribute("top-"+Q);S.removeAttribute("bottom-"+Q);S.removeAttribute("left-"+Q);S.removeAttribute("right-"+Q);c&&(c.top&&_.r_([_.SC(vT_)],S,"top-"+Q,c.top),c.bottom&&_.r_([_.SC(Pqh)],S,"bottom-"+Q,c.bottom),c.left&&_.r_([_.SC(L4_)],S,"left-"+Q,c.left),c.right&&_.r_([_.SC(ETd)],S,"right-"+Q,c.right))};
tv$.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(S){var c,Q=_.Ur((c=this.hostElement)!=null?c:this),f;c=this.cardItemBoxBehaviorMarginTargetId&&Q?Q.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(f=this.hostElement)!=null?f:this;Vvi(c,S,"margin")},
cardItemContainerPaddingChanged_:function(S){var c,Q=_.Ur((c=this.hostElement)!=null?c:this),f;c=this.cardItemBoxBehaviorPaddingTargetId&&Q?Q.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(f=this.hostElement)!=null?f:this;Vvi(c,S,"padding")}}];var aL={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 R$p;var y9i;var An=function(){return _.W.apply(this,arguments)||this};
_.C(An,_.W);An.prototype.textColorChanged_=function(){this.hostElement.style.color=aL[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
An.prototype.textColorChanged_=An.prototype.textColorChanged_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],An.prototype,"ytRendererBehavior",void 0);_.d([_.p(tv$.YtCardItemBoxBehavior),_.P("design:type",Object)],An.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],An.prototype,"data",void 0);_.d([_.B0("data.textColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],An.prototype,"textColorChanged_",null);
_.d([_.wM({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],An);
_.k(An,"yt-card-item-text-renderer",function(){if(y9i===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;R$p===void 0&&(R$p=document.createElement("template"));var f=R$p;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);y9i=S}S=y9i;return S},{mode:2});var oTd;var mtu;var XD=function(){return _.W.apply(this,arguments)||this};
_.C(XD,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],XD.prototype,"data",void 0);_.d([_.wM({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],XD);
_.k(XD,"yt-card-item-badge-renderer",function(){if(mtu===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;oTd===void 0&&(oTd=document.createElement("template"));var f=oTd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);mtu=S}S=mtu;return S},{mode:2});var Sv_;var cuu;var Ow=function(){return _.W.apply(this,arguments)||this};
_.C(Ow,_.W);Ow.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ow.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ow.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ow.prototype,"data",void 0);_.d([_.wM({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],Ow);
_.k(Ow,"yt-card-item-text-collection-renderer",function(){if(cuu===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Sv_===void 0&&(Sv_=document.createElement("template"));var f=Sv_;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);cuu=S}S=cuu;return S},{mode:2});var Qbd;var fFH;var zM=function(){return _.W.apply(this,arguments)||this};
_.C(zM,_.W);zM.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]]"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zM.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zM.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],zM.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Number)],zM.prototype,"iconSize",void 0);_.d([_.wM({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],zM);
_.k(zM,"yt-card-item-text-with-button-renderer",function(){if(fFH===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;Qbd===void 0&&(Qbd=document.createElement("template"));var f=Qbd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);fFH=S}S=fFH;return S},{mode:2});var xK=function(){return _.W.apply(this,arguments)||this};
_.C(xK,_.W);xK.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xK.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],xK.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],xK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],xK.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],xK);
_.k(xK,"ytd-commerce-cart-summary-line-item-renderer",function(){if(dtT!==void 0)return dtT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return dtT=S},{mode:1});_.i8("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var FD=function(){var S=_.W.apply(this,arguments)||this;S.hidden=!1;return S};
_.C(FD,_.W);_.J=FD.prototype;_.J.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"}}}}};
_.J.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.J.updateSummary=function(){var S=this.commerceCartCheckoutButtonEntity,c;if(((c=this.data)==null?0:c.cartButton)&&S.checkoutSummaryText){var Q,f=e0((Q=this.data)==null?void 0:Q.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+f+".cardItemTextRenderer.text",ku(S.checkoutSummaryText));if(S.checkoutDetailText){var U;Q=e0((U=this.data)==null?void 0:U.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+Q+".cardItemTextRenderer.text",ku(S.checkoutDetailText))}if(S.checkoutAdditionalMetadataText){var a;
U=e0((a=this.data)==null?void 0:a.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+U+".cardItemTextRenderer.text",ku(S.checkoutAdditionalMetadataText))}}else S.estimatedTotalPrice&&(a=e0((f=this.data)==null?void 0:f.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+a+".cardItemTextRenderer.text",ku(S.estimatedTotalPrice)))};
_.J.updateIsHidden=function(){var S,c=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.isHidden;c!==void 0&&(this.hidden=c)};
_.J.updateCheckoutButton=function(){var S,c=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.isDisabled;c!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",c);var Q;S=(Q=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:Q.innertubeCommand;S!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",S);var f;Q=(f=this.commerceCartCheckoutButtonEntity)==null?void 0:f.checkoutButtonText;Q!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:Q})};
FD.prototype.entityChanged=FD.prototype.entityChanged;_.d([_.p(_.st),_.P("design:type",Object)],FD.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],FD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],FD.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],FD.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],FD.prototype,"fullWidth",void 0);_.d([_.Z(),_.P("design:type",Object)],FD.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],FD.prototype,"compact",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],FD.prototype,"hidden",void 0);
_.d([_.Z({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:hLc}),_.P("design:type",Object)],FD.prototype,"commerceCartCheckoutButtonEntity",void 0);_.d([_.B0("commerceCartCheckoutButtonEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FD.prototype,"entityChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],FD);
_.k(FD,"ytd-commerce-cart-checkout-button-renderer",function(){if(r9e!==void 0)return r9e;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return r9e=S},{mode:2});var UCi;_.Juu={};
_.Juu.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",_.xn(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.xn(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(S){!this.tappableItemBehaviorTapEnabled||S.keyCode!==13&&S.keyCode!==32||S.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var S=this.data.onTap;S.ypcGetCartEndpoint?(_.xt(this.hostElement,[S]),this.tappableItemBehaviorTapEnabled=!1):S.ypcOffersEndpoint?_.xt(this.hostElement,[S]):_.FF(this.hostElement,[S],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(S){this.tappableItemBehaviorTapEnabled=!!S},
tappableItemBehaviorOnTapEnabledChanged_:function(){var S=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(S.setAttribute("tabIndex",0),S.setAttribute("role","button")):(S.removeAttribute("tabIndex"),S.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(S){S.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var aFJ;var Aue;var BF=function(){return _.W.apply(this,arguments)||this};
_.C(BF,_.W);BF.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.ZL("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.ZL("sharingToggleButtonAndDefaultButton")}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],BF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BF.prototype,"data",void 0);_.d([_.wM({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],BF);
_.k(BF,"yt-card-item-actions-renderer",function(){if(Aue===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;aFJ===void 0&&(aFJ=document.createElement("template"));var f=aFJ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Aue=S}S=Aue;return S},{mode:2});var XUe;var O7T;var z4d;var xCu;var FXl;var B7J;var IL=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return S};
_.C(IL,_.W);IL.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
IL.prototype.handleDarkModeToggledAction_=function(S){this.isDarkTheme_=S};
IL.prototype.computeThemeImage_=function(S,c){if(!S||!S.imageLight)return!1;this.isCircular_=S.isCircular;S.imageWidth&&(this.hostElement.style.width=S.imageWidth+"px");S.imageHeight&&(this.hostElement.style.height=S.imageHeight+"px");S.borderWidth&&(this.image.style.borderWidth=S.borderWidth+"px",this.image.style.borderStyle="solid");S.borderColor&&(this.image.style.borderColor=_.gh(S.borderColor));return c&&S.imageDark?S.imageDark:S.imageLight};
IL.prototype.computeThemeIcon_=function(S){var c,Q;if(!(S==null?0:(c=S.themedIcon)==null?0:(Q=c.icon)==null?0:Q.iconType))return!1;this.icon.style.color=aL[S.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(S.imageWidth||18)+"px";this.icon.style.height=(S.imageHeight||18)+"px";return _.xz(S.themedIcon.icon.iconType)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],IL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],IL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(tv$.YtCardItemBoxBehavior),_.P("design:type",Object)],IL.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],IL.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],IL.prototype,"data",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],IL.prototype,"fit",void 0);_.d([_.Z(),_.P("design:type",Boolean)],IL.prototype,"isDarkTheme_",void 0);_.d([_.Z({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.P("design:type",Object)],IL.prototype,"themeImage_",void 0);_.d([_.Z({computed:"computeThemeIcon_(data)"}),_.P("design:type",Object)],IL.prototype,"themeIcon_",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Object)],IL.prototype,"isCircular_",void 0);
_.d([_.nU("#image"),_.P("design:type",Object)],IL.prototype,"image",void 0);_.d([_.nU("#icon"),_.P("design:type",Object)],IL.prototype,"icon",void 0);_.d([_.wM({is:"yt-themed-image-renderer",disableElementRegistration:!0})],IL);
_.k(IL,"yt-themed-image-renderer",function(){if(B7J===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;FXl===void 0&&(FXl=document.createElement("template"));var f=FXl;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);B7J=S}S=B7J;return S},{mode:2});var nN=function(){return _.W.apply(this,arguments)||this};
_.C(nN,_.W);nN.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"}}}}};
nN.prototype.computeImagePlacement_=function(S){return S||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nN.prototype,"data",void 0);_.d([_.Z({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.P("design:type",String)],nN.prototype,"imagePlacement",void 0);
_.d([_.wM({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],nN);
_.k(nN,"yt-card-item-text-with-image-renderer",function(){if(xCu===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;z4d===void 0&&(z4d=document.createElement("template"));var f=z4d;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);xCu=S}S=xCu;return S},{mode:2});var b3=function(){return _.W.apply(this,arguments)||this};
_.C(b3,_.W);b3.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"}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],b3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],b3.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],b3.prototype,"data",void 0);_.d([_.wM({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],b3);
_.k(b3,"yt-card-item-error-renderer",function(){if(O7T===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;XUe===void 0&&(XUe=document.createElement("template"));var f=XUe;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);O7T=S}S=O7T;return S},{mode:2});var IFd;var nee;_.i8("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var NL=function(){return _.W.apply(this,arguments)||this};
_.C(NL,_.W);_.J=NL.prototype;
_.J.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"}}}}};
_.J.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.J.backgroundColorChanged_=function(){var S,c=(S=this.data)==null?void 0:S.backgroundColor;S=aL[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Ur(this.hostElement).querySelector("#main-content").style.backgroundColor=S};
_.J.headerPromoBackgroundColorChanged_=function(){var S,c=(S=this.data)==null?void 0:S.headerPromoBackgroundColor;S=aL[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.Ur(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=S};
_.J.errorRendererVisibilityChanged_=function(){var S=this.isExpanded_,c;this.isErrorRendererVisible_=!((c=this.data)==null||!c.errorRenderer)&&!S};
_.J.onYtToggleButton_=function(S,c){this.isExpanded_=c.toggled};
NL.prototype.onYtToggleButton_=NL.prototype.onYtToggleButton_;NL.prototype.errorRendererVisibilityChanged_=NL.prototype.errorRendererVisibilityChanged_;NL.prototype.headerPromoBackgroundColorChanged_=NL.prototype.headerPromoBackgroundColorChanged_;NL.prototype.backgroundColorChanged_=NL.prototype.backgroundColorChanged_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],NL.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],NL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(tv$.YtCardItemBoxBehavior),_.P("design:type",Object)],NL.prototype,"ytCardItemBoxBehavior",void 0);_.d([_.p(_.Juu.YtTappableItemBehavior),_.P("design:type",Object)],NL.prototype,"ytTappableItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],NL.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],NL.prototype,"isExpanded_",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],NL.prototype,"isErrorRendererVisible_",void 0);_.d([_.B0("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NL.prototype,"backgroundColorChanged_",null);_.d([_.B0("data.headerPromoBackgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NL.prototype,"headerPromoBackgroundColorChanged_",null);
_.d([_.B0("data.errorRenderer","isExpanded_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NL.prototype,"errorRendererVisibilityChanged_",null);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],NL.prototype,"onYtToggleButton_",null);_.d([_.wM({is:"yt-card-item-renderer",disableElementRegistration:!0})],NL);
_.k(NL,"yt-card-item-renderer",function(){if(nee===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;IFd===void 0&&(IFd=document.createElement("template"));var f=IFd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);nee=S}S=nee;return S},{mode:2});_.i8("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var KN=function(){var S=_.W.apply(this,arguments)||this;S.hidden=!1;return S};
_.C(KN,_.W);_.J=KN.prototype;_.J.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.J.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var S,c=(S=this.commerceCartHeaderEntity)==null?void 0:S.isHidden;c!==void 0&&(this.hidden=c)}};
_.J.updateTitle=function(){var S=this.commerceCartHeaderEntity.isDisabled,c,Q,f=(Q=_.Y((c=this.data)==null?void 0:c.item,aCd))==null?void 0:Q.headingRenderer;f&&(c=e0(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".0.cardItemTextRenderer.textColor",S?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.J.updateSummaryText=function(){var S=this.commerceCartHeaderEntity;if(this.compact){var c,Q,f=(Q=_.Y((c=this.data)==null?void 0:c.item,aCd))==null?void 0:Q.headingRenderer;f&&(c=e0(f,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+c+".1.cardItemTextRenderer.text",S.shortHeaderSummaryText?ku(S.shortHeaderSummaryText):S.headerSummaryText?ku(S.headerSummaryText):""))}else{var U;if(c=(U=_.Y((f=this.data)==null?void 0:f.item,aCd))==null?void 0:U.additionalInfoRenderer)c=e0(c,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".text",S.headerSummaryText?ku(S.headerSummaryText):"")}};
_.J.updateCheckoutButton=function(){var S=this.commerceCartHeaderEntity,c,Q,f=(Q=_.Y((c=this.data)==null?void 0:c.item,aCd))==null?void 0:Q.additionalInfoRenderer;c=e0(f,"buttonRenderer");var U;Q=(U=this.commerceCartHeaderEntity)==null?void 0:U.isButtonDisabled;var a;U=(a=this.commerceCartHeaderEntity)==null?void 0:a.isButtonHidden;Q!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.isDisabled",Q);U!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
U);var X;S=(X=S.checkoutButtonCommand)==null?void 0:X.innertubeCommand;S!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+c+".buttonRenderer.command",S)};
KN.prototype.entityChanged=KN.prototype.entityChanged;_.d([_.p(_.st),_.P("design:type",Object)],KN.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KN.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],KN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],KN.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],KN.prototype,"compact",void 0);_.d([_.Z({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(S,c){return _.FT(S.entities,"commerceCartHeaderEntity",c)}}),
_.P("design:type",Object)],KN.prototype,"commerceCartHeaderEntity",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],KN.prototype,"hidden",void 0);_.d([_.B0("commerceCartHeaderEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KN.prototype,"entityChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],KN);
_.k(KN,"ytd-commerce-cart-header-renderer",function(){if(UCi!==void 0)return UCi;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return UCi=S},{mode:1});var b7H;var N7e=_.jW(function(S,c){var Q;return(Q=S.onChangeCallback)==null?void 0:Q.call(S,c)},1E3),KX_=_.y_(function(S){var c=S.data;
var Q=S.iconMinus;S=S.iconPlus;var f=function(){return!!c().disabled},U=_.A(_.ny(0,void 0,"r56zNb")),a=U.next().value,X=U.next().value;
U={};U=_.n4("yt-spec-quantity-incrementer-shape__icon",(U["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return f()||a()===(c().onRemoveCommand?0:1)},U));
var z={};z=_.n4("yt-spec-quantity-incrementer-shape__icon",(z["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return a()>=c().maxValue||f()},z));
var x={};x=_.n4("yt-spec-quantity-incrementer-shape__text",(x["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return a()>c().maxValue},x["yt-spec-quantity-incrementer-shape__text--text-disabled"]=f,x));
var I=_.$d(function(){if(a()===1){var b,N;(N=(b=c()).onRemoveCommand)==null||N.call(b)}b=a()>c().maxValue?c().maxValue:a()-1;X(b);N7e(c(),b);return!1}),n=_.$d(function(){if(a()===c().maxValue)return!1;
var b=a()+1;X(b);N7e(c(),b);return!1});
_.qR(function(){X(c().value)});
return _.B("quantity-incrementer-shape",null,_.B("div",{class:"yt-spec-quantity-incrementer-shape"},_.B("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return a()===(c().onRemoveCommand?0:1)||f()},
"aria-label":function(){return a()!==1?c().minusLabel:c().minimumReachedLabel},
"on:click":I},_.B(_.p4,{model:{circular:!0}}),_.B("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.B("div",{class:U},Q()))),_.B("div",{class:x},a),_.B("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return a()>=c().maxValue||f()},
"aria-label":function(){return a()!==c().maxValue?c().plusLabel:c().maximumReachedLabel},
"on:click":n},_.B(_.p4,{model:{circular:!0}}),_.B("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.B("div",{class:z},S())))))},"Qd");_.f4(_.y_(function(S){function c(){Q().onRemoveCommand&&_.kz(Q().onRemoveCommand)}
var Q=S.data;var f=_.b9(Zpz,function(){return Q().quantityIncrementerEntityKey});
return _.B("yt-quantity-incrementer-view-model",null,_.B(KX_,{data:function(){var U=Q(),a;var X=f()?!((a=f())==null||!a.disabled):!1;var z;a=f()?(z=f())==null?void 0:z.quantity:Q().quantity;return Oup(U,X,c,a)},
iconMinus:function(){return _.B(_.C4,{icon:"BAR_HORIZONTAL",className:_.No("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.B(_.C4,{icon:"ADD",className:_.No("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"Rd"),"yt-quantity-incrementer-view-model",{props:{data:_.y$}});var $K=function(){var S=_.W.apply(this,arguments)||this;S.compact=!1;S.hasQuantityIncrementer=!1;return S};
_.C($K,_.W);$K.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"}}}};
$K.prototype.computeHasQuantityIncrementer=function(){var S;return!!_.Y((S=this.data)==null?void 0:S.picker,zeu)};
$K.prototype.onLabelClick=function(){var S;(S=this.dropdownEl)==null||S.open()};
_.d([_.nU("ytd-dropdown-renderer"),_.P("design:type",Object)],$K.prototype,"dropdownEl",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$K.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$K.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$K.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],$K.prototype,"quantityColor",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],$K.prototype,"compact",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.P("design:type",Object)],$K.prototype,"hasQuantityIncrementer",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],$K);
_.k($K,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(b7H!==void 0)return b7H;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return b7H=S},{mode:1});var $C$;var uYu;var u3=function(){return _.W.apply(this,arguments)||this};
_.C(u3,_.W);u3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
u3.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
u3.prototype.updateTitle=function(){var S=this.disabledCartItemEntity;S.disableActionName&&this.set("data.title",ku(S.disableActionName))};
u3.prototype.updateButton=function(){var S,c=(S=this.disabledCartItemEntity.undoCommand)==null?void 0:S.innertubeCommand;c!==void 0&&(this.set("data.actionButton.buttonRenderer.command",c),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
u3.prototype.entityChanged=u3.prototype.entityChanged;_.d([_.p(_.st),_.P("design:type",Object)],u3.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],u3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],u3.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(S,c){return _.FT(S.entities,"disabledCartItemEntity",c)}}),
_.P("design:type",Object)],u3.prototype,"disabledCartItemEntity",void 0);_.d([_.Z(),_.P("design:type",Object)],u3.prototype,"data",void 0);_.d([_.B0("disabledCartItemEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],u3.prototype,"entityChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],u3);
_.k(u3,"ytd-disabled-cart-item-renderer",function(){if(uYu!==void 0)return uYu;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return uYu=S},{mode:1});_.i8("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var jh=function(){var S=_.W.apply(this,arguments)||this;S.compact=!1;S.hidden=!1;S.errorHidden=!1;S.noOnTap=!1;return S};
_.C(jh,_.W);_.J=jh.prototype;
_.J.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"}}}};
_.J.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.J.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var S=this.firstButtonElement;S.alignByText=!0;S.iconAlignByText=!0}};
_.J.computeNoOnTap=function(S){return!S};
_.J.updateQuantityColor=function(){if(this.pickerElement){var S,c=(S=this.commerceCartItemEntity)==null?void 0:S.quantityColor;this.pickerElement.quantityColor=c}};
_.J.updateTotalPriceColor=function(){var S,c=(S=this.commerceCartItemEntity)==null?void 0:S.totalPriceColor;if(c){var Q;S=_.Y((Q=this.data)==null?void 0:Q.quantityPicker,XLe);if(Q=_.Y(S==null?void 0:S.price,AAe))Q.textColor=c}};
_.J.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var S,c=(S=this.commerceCartItemEntity)==null?void 0:S.isHidden;c!==void 0&&(this.hidden=c)}};
_.J.updateHideErrorMessage=function(){var S,c=(S=this.commerceCartItemEntity)==null?void 0:S.hideErrorMessage;c!==void 0&&(this.errorHidden=c)};
_.J.updateQuantity=function(){var S=this,c,Q=(c=this.commerceCartItemEntity)==null?void 0:c.quantity,f;c=(f=this.commerceCartItemEntity)==null?void 0:f.totalPrice;if(Q){this.updateTotalPriceColor();this.updateQuantityColor();var U;f=_.Y((U=this.data)==null?void 0:U.quantityPicker,XLe);if(U=_.Y(f==null?void 0:f.price,AAe))U.text=c?{simpleText:c.content}:void 0;if(c=_.Y(f==null?void 0:f.picker,zeu))c.quantity=Q;var a;if(U=(a=_.Y(f==null?void 0:f.picker,B6h))==null?void 0:a.entries){a=!1;c=void 0;U=
_.A(U);for(f=U.next();!f.done;f=U.next())f=f.value,f.dropdownItemRenderer&&(c||(c=f.dropdownItemRenderer),f.dropdownItemRenderer.isSelected=!1,Q===f.dropdownItemRenderer.int32Value&&(a=!0,f.dropdownItemRenderer.isSelected=!0));!a&&c&&(c.isSelected=!0)}_.tO(this,function(){var X;S.set("data.quantityPicker",_.Cn.unsafeClone((X=S.data)==null?void 0:X.quantityPicker))})}};
jh.prototype.onYtRendererstamperFinished=jh.prototype.onYtRendererstamperFinished;jh.prototype.entityChanged=jh.prototype.entityChanged;_.d([_.Z(),_.P("design:type",Object)],jh.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jh.prototype,"compact",void 0);_.d([_.p(_.st),_.P("design:type",Object)],jh.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jh.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],jh.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],jh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(S,c){return _.FT(S.entities,"commerceCartItemEntity",c)}}),
_.P("design:type",Object)],jh.prototype,"commerceCartItemEntity",void 0);_.d([_.Z(),_.P("design:type",Object)],jh.prototype,"quantityPicker",void 0);_.d([_.Z(),_.P("design:type",Object)],jh.prototype,"compactQuantityPicker",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jh.prototype,"hidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jh.prototype,"errorHidden",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.P("design:type",Object)],jh.prototype,"noOnTap",void 0);_.d([_.nU("ytd-commerce-cart-item-quantity-picker-renderer"),_.P("design:type",Object)],jh.prototype,"pickerElement",void 0);_.d([_.nU("yt-button-renderer"),_.P("design:type",Element)],jh.prototype,"firstButtonElement",void 0);
_.d([_.B0("commerceCartItemEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jh.prototype,"entityChanged",null);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jh.prototype,"onYtRendererstamperFinished",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],jh);
_.k(jh,"ytd-commerce-cart-item-renderer",function(){if($C$!==void 0)return $C$;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return $C$=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var jbl;var lFd;var l3=function(){return _.W.apply(this,arguments)||this};
_.C(l3,_.W);l3.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}}}}}};
l3.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
l3.prototype.updateCheckoutLineItems=function(){var S,c=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.checkoutLineItems;c&&(S=c.map(function(Q){a:{var f=Q.price,U=Q.description;switch(Q.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":Q={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:ku(U),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:ku(f),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:Q={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:ku(U),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:ku(f),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 Q}),this.set("data.summaryLineItems",S))};
l3.prototype.updateIsHidden=function(){var S,c=(S=this.commerceCartCheckoutButtonEntity)==null?void 0:S.isHidden;c!==void 0&&(this.hostElement.hidden=c)};
l3.prototype.entityChanged=l3.prototype.entityChanged;_.d([_.p(_.st),_.P("design:type",Object)],l3.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],l3.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],l3.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],l3.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],l3.prototype,"data",void 0);_.d([_.Z({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:hLc}),_.P("design:type",Object)],l3.prototype,"commerceCartCheckoutButtonEntity",void 0);_.d([_.B0("commerceCartCheckoutButtonEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l3.prototype,"entityChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],l3);
_.k(l3,"ytd-commerce-cart-summary-renderer",function(){if(lFd!==void 0)return lFd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return lFd=S},{mode:1});var Yvi={};Yvi.InjectBehavior=[SuM.InjectBehavior];var CPd;var H7d;var YK=function(){return _.W.apply(this,arguments)||this};
_.C(YK,_.W);
YK.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:_.ZL("menuRenderer")}}};
YK.prototype.onMenuTap=function(S){S.stopPropagation()};
_.Rh.Object.defineProperties(YK.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 S,c;return!(((S=this.data)==null||!S.sectionHeading)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var S,c;return!(((S=this.data)==null||!S.image)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var S,c;return!(((S=this.data)==null||!S.menu)&&((c=this.data)==null?void 0:c.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],YK.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],YK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.Juu.YtTappableItemBehavior),_.P("design:type",Object)],YK.prototype,"ytTappableItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],YK.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.accessibilityData"),_.P("design:type",String),_.P("design:paramtypes",[])],YK.prototype,"ariaLabel",null);_.d([_.M("data.sectionHeading","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],YK.prototype,"sectionHeadingVisible",null);_.d([_.M("data.image","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],YK.prototype,"imageVisible",null);
_.d([_.M("data.menu","data.layout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],YK.prototype,"menuVisible",null);_.d([_.wM({is:"yt-activity-item-renderer",disableElementRegistration:!0})],YK);
_.k(YK,"yt-activity-item-renderer",function(){if(H7d===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;CPd===void 0&&(CPd=document.createElement("template"));var f=CPd;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);H7d=S}S=H7d;return S},{mode:2});var DCh;var pUd;var h4d;var qvp;var CN=function(){return _.W.apply(this,arguments)||this};
_.C(CN,_.W);
CN.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"}}}}};
CN.prototype.backgroundColorChanged_=function(){var S,c=(S=this.data)==null?void 0:S.backgroundColor;this.hostElement.style.backgroundColor=aL[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
CN.prototype.backgroundColorChanged_=CN.prototype.backgroundColorChanged_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CN.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CN.prototype,"data",void 0);
_.d([_.B0("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CN.prototype,"backgroundColorChanged_",null);_.d([_.wM({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],CN);
_.k(CN,"yt-offer-item-upsell-renderer",function(){if(qvp===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;h4d===void 0&&(h4d=document.createElement("template"));var f=h4d;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);qvp=S}S=qvp;return S},{mode:2});_.i8("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var HF=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};S.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return S};
_.C(HF,_.W);_.J=HF.prototype;
_.J.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:_.ZL("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.J.computeContainerStyle_=function(S){return S};
_.J.computeContainerIsHidden_=function(S){return S&&!!S.isHidden};
_.J.computeShowSpinner_=function(S,c){return S&&c==="in-progress"};
_.J.computeShowMoreContentsButton_=function(S,c,Q,f,U){return!(!(f&&f.length||U&&U.length&&Q)||!S||c)};
_.J.onToggleButton_=function(S){var c=this;S.stopPropagation();this.isExpanded_=S.detail&&S.detail.toggled;var Q,f;this.isExpanded_&&!this.data.continuationSection.length&&((Q=this.data)==null?0:(f=Q.continuation)==null?0:f.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.Az(this.hostElement,"yt-load-next-continuation",function(U){return c.getContinuationUrl_(c.data.continuation.onClickContinuationData,U)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.xt(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.J.onShowMoreContentsButtonClicked_=function(S){var c=this;S.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.Az(this.hostElement,"yt-load-next-continuation",function(Q){return c.getContinuationUrl_(c.data.continuations[0].nextContinuationData,Q)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.xt(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.J.getContinuationUrl_=function(S,c){var Q=S.continuation;S=S.clickTrackingParams;var f=_.wN();S&&f&&_.tz(f,_.Yz(S));return _.V0(c,{continuation:Q})};
_.J.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var S=_.Ur(this.hostElement).querySelector("#continuation-section");S&&(S=S.querySelectorAll("ytmusic-item-section-renderer"))&&S.forEach(function(c){return c.classList.add("memberships-and-purchases")})};
_.J.dataChanged_=function(){var S;this.isExpanded_=!((S=this.data)==null||!S.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.J.updateCardOnClickCommand_=function(S){S=_.Y(S,ocz);var c,Q;this.data&&((c=this.data)==null?0:c.targetId)&&S&&S.targetId===((Q=this.data)==null?void 0:Q.targetId)&&S.onClickCommand&&(this.data.onClickCommand=S.onClickCommand,this.isOnClickCommand_=!0)};
_.J.backgroundColorChanged_=function(){var S,c=(S=this.data)==null?void 0:S.backgroundColor;this.hostElement.style.backgroundColor=aL[c||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
HF.prototype.backgroundColorChanged_=HF.prototype.backgroundColorChanged_;HF.prototype.dataChanged_=HF.prototype.dataChanged_;HF.prototype.nextContinuationDataUpdated_=HF.prototype.nextContinuationDataUpdated_;HF.prototype.onToggleButton_=HF.prototype.onToggleButton_;_.d([_.p(_.di),_.P("design:type",Object)],HF.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],HF.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],HF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vM.YtNextContinuationBehavior),_.P("design:type",Object)],HF.prototype,"ytNextContinuationBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],HF.prototype,"ytRendererBehavior",void 0);_.d([_.p(Yvi.InjectBehavior),_.P("design:type",Object)],HF.prototype,"injectBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],HF.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],HF.prototype,"compact",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],HF.prototype,"isExpanded_",void 0);_.d([_.Z({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.P("design:type",String)],HF.prototype,"containerStyle_",void 0);_.d([_.Z({value:"not-started"}),_.P("design:type",String)],HF.prototype,"continuationStatus_",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.P("design:type",Boolean)],HF.prototype,"showSpinner_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],HF.prototype,"isOnClickCommand_",void 0);_.d([_.Z({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.P("design:type",Boolean)],HF.prototype,"showMoreContentsButton_",void 0);
_.d([_.Z({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(S,c){return!c||S.entities?null:_.FT(S.entities,"cardItemContainerEntity",c)}}),
_.P("design:type",Object)],HF.prototype,"cardItemContainerEntity_",void 0);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],HF.prototype,"onToggleButton_",null);_.d([_.FV("yt-next-continuation-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HF.prototype,"nextContinuationDataUpdated_",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HF.prototype,"dataChanged_",null);_.d([_.B0("data.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HF.prototype,"backgroundColorChanged_",null);_.d([_.wM({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],HF);
_.k(HF,"yt-card-item-container-renderer",function(){if(pUd===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;DCh===void 0&&(DCh=document.createElement("template"));var f=DCh;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);pUd=S}S=pUd;return S},{mode:2});var Dk=function(){return _.W.apply(this,arguments)||this};
_.C(Dk,_.W);Dk.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"}}}};
Dk.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Dk.prototype.computeLoadingHidden=function(){var S;return!((S=this.commerceCartPageStateEntity)==null?0:S.cartActionInProgress)};
Dk.prototype.updateNotification=function(){var S,c=(S=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:S.summaryText;c&&this.set("data.cartNotification",ku(c))};
Dk.prototype.notificationEntityChanged=Dk.prototype.notificationEntityChanged;_.d([_.p(_.st),_.P("design:type",Object)],Dk.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Dk.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Dk.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Dk.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Dk.prototype,"data",void 0);_.d([_.Z({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(S,c){return _.FT(S.entities,"commerceCartExpandableNotificationEntity",c)}}),
_.P("design:type",Object)],Dk.prototype,"commerceCartExpandableNotificationEntity",void 0);_.d([_.Z({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(S,c){return _.FT(S.entities,"commerceCartPageStateEntity",c)}}),
_.P("design:type",Object)],Dk.prototype,"commerceCartPageStateEntity",void 0);_.d([_.nU("#spinner"),_.P("design:type",HTMLElement)],Dk.prototype,"spinner",void 0);_.d([_.B0("commerceCartExpandableNotificationEntity","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Dk.prototype,"notificationEntityChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Dk);
_.k(Dk,"ytd-commerce-cart-renderer",function(){if(jbl!==void 0)return jbl;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return jbl=S},{mode:1});var T7J;var pN=function(){var S=_.W.apply(this,arguments)||this;S.bigImage=!1;return S};
_.C(pN,_.W);_.Rh.Object.defineProperties(pN.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.placeholderImageUrl}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pN.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pN.prototype,"bigImage",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],pN.prototype,"placeholderImageUrl",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],pN);
_.k(pN,"ytd-empty-product-shelf-renderer",function(){if(T7J!==void 0)return T7J;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return T7J=S},{mode:1});var wUs;var hn=function(){var S=_.W.apply(this,arguments)||this;S.itemStyle="link-item";S.watchMetadataRefresh=!1;S.skinnyMode=!1;S.metaPanel=!1;S.inStructuredDescription=!1;S.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};S.updateOnResizeDebouncer=null;return S};
_.C(hn,_.W);_.J=hn.prototype;_.J.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.J.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"}}}}};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.J.attachVEs=function(S){S.trackingParams&&_.Kv().graftServerVe(S.trackingParams)};
_.J.handleUpdateMerchShelfAction=function(S){var c=this,Q=_.Y(S.updateMerchandiseShelfAction.merchandiseShelf,_.MVh);Q&&(Q.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){c.attachVEs(Q);c.data=Q},Number(Q.renderDelayMs))):(this.attachVEs(Q),this.data=Q))};
_.J.updateOnResize=function(){if(this.JSC$14741_scrollContainer!==void 0&&this.JSC$14741_scrollContainer.clientWidth!==0&&this.items!==void 0){var S=this.JSC$14741_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-S));this.ytdHorizontalListBehavior.reposition_();var c;switch((c=this.data)==null?void 0:c.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var Q,
f;((Q=this.data)==null?void 0:(f=Q.items)==null?void 0:f.length)===1?this.itemStyle="cta-item":this.itemStyle=S>=740?"large-item":"small-item"}}};
_.J.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.Ak(this.updateOnResizeDebouncer,_.Vz.after(100),this.updateOnResize)};
hn.prototype.debouncedUpdateOnResize=hn.prototype.debouncedUpdateOnResize;hn.prototype.dataChanged=hn.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],hn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.QW.YtdHorizontalListBehavior),_.P("design:type",Object)],hn.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],hn.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],hn.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hn.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],hn.prototype,"itemStyle",void 0);_.d([_.Z({value:6}),_.P("design:type",Number)],hn.prototype,"initialCount",void 0);
_.d([_.Z({value:"data.items"}),_.P("design:type",String)],hn.prototype,"itemsPath",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],hn.prototype,"watchMetadataRefresh",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],hn.prototype,"skinnyMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],hn.prototype,"metaPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],hn.prototype,"inStructuredDescription",void 0);
_.d([_.nU("#items"),_.P("design:type",HTMLDivElement)],hn.prototype,"items",void 0);_.d([_.nU("#scroll-container"),_.P("design:type",HTMLDivElement)],hn.prototype,"JSC$14741_scrollContainer",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hn.prototype,"dataChanged",null);_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hn.prototype,"debouncedUpdateOnResize",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],hn);
_.k(hn,"ytd-merch-shelf-renderer",function(){if(wUs!==void 0)return wUs;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wUs=S},{mode:2});var sbd;var qL=function(){var S=_.W.apply(this,arguments)||this;S.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 S};
_.C(qL,_.W);_.J=qL.prototype;
_.J.addBackstagePostAction=function(S){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(S=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",S))&&(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:S}):this.set("data.contents",[{backstagePostThreadRenderer:S}]))};
_.J.addBackstageCommentAction=function(S){var c=this.get("addBackstageCommentAction.parentId",S);S=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",S);if(c&&S){c=this.postIdToIndices(c);for(var Q=0;Q<c.length;Q++){var f=c[Q];if(f<0)break;f="data.contents."+f+".backstagePostThreadRenderer.comments";this.get(f)&&(this.get(f+".backstageCommentsRenderer.contents")&&this.push(f+".backstageCommentsRenderer.contents",{commentThreadRenderer:S}),this.get(f+".backstageCommentsRenderer.teaserContents")?
this.push(f+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:S}):this.set(f+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:S}]))}}};
_.J.addBackstageReplyAction=function(S){var c=this.get("addBackstageReplyAction.parentId",S);S=this.get("addBackstageReplyAction.renderer.commentRenderer",S);c&&S&&this.setCreatorReply(c,S)};
_.J.banAuthorAction=function(S){var c=this.get("banAuthorAction.commentId",S);c&&(S=this.get("banAuthorAction.parentCommentId",S)||this.getParentPostId(c),this.removeFromStream(c,S))};
_.J.hideReportedCommentAction=function(S){var c=this.get("hideReportedCommentAction.commentId",S);c&&((S=this.get("hideReportedCommentAction.parentCommentId",S))||(S=this.getParentPostId(c)),this.removeFromStream(c,S))};
_.J.replaceBackstageCommentAction=function(S){var c=this.get("replaceBackstageCommentAction.commentId",S),Q=this.get("replaceBackstageCommentAction.parentId",S);S=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",S);if(c&&Q&&S){Q=this.postIdToIndices(Q);for(var f=0;f<Q.length;f++){var U=Q[f];if(U<0)break;var a=this.commentIdToIndex(c,U,!1);if(a>=0){var X=this.get("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+a+".commentThreadRenderer.replies.commentRepliesRenderer");
X&&(S.replies={commentRepliesRenderer:X});this.splice("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",a,1,{commentThreadRenderer:S})}a=this.commentIdToIndex(c,U,!0);if(a>=0){if(X=this.get("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(a+".commentThreadRenderer.replies.commentRepliesRenderer")))S.replies={commentRepliesRenderer:X};this.splice("data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
a,1,{commentThreadRenderer:S})}}}};
_.J.replaceBackstagePostAction=function(S){var c=this.get("replaceBackstagePostAction.itemId",S);if(c){c=this.postIdToIndices(c);for(var Q=0;Q<c.length;Q++){var f=c[Q];if(f<0)break;var U=this.getPostRendererType(f),a=this.get("replaceBackstagePostAction.renderer."+U,S);if(!a&&U!=="sharedPostRenderer")break;var X=!1;a||(X=!0,a=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",S));if(!a)break;var z={};X?(_.wH(z,rwp,a),this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
z)):(_.wH(z,new _.L(U),a),this.set("data.contents."+f+".backstagePostThreadRenderer.post",z))}}};
_.J.replaceBackstageReplyAction=function(S){var c=this.get("replaceBackstageReplyAction.replyId",S),Q=this.get("replaceBackstageReplyAction.parentId",S);S=this.get("replaceBackstageReplyAction.renderer.commentRenderer",S);c&&S&&Q&&this.setCreatorReply(Q,S)};
_.J.removeCommentAction=function(S){var c=this.get("removeCommentAction.commentId",S);if(c){var Q=this.get("removeCommentAction.parentCommentId",S);Q&&this.get("removeCommentAction.isCreatorReply",S)?this.setCreatorReply(Q,void 0):(Q||(Q=this.getParentPostId(c)),this.removeFromStream(c,Q))}};
_.J.setCreatorReply=function(S,c){var Q=this.getParentPostId(S);if(Q){Q=this.postIdToIndices(Q);for(var f=0;f<Q.length;f++){var U=Q[f];if(U<0)break;var a=this.commentIdToIndex(S,U,!1);if(a>=0){var X="data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+a;a=X+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";X+=".commentThreadRenderer.replies";c==void 0?(this.set(X,{}),this.set(a,!1)):(this.set(X,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),
this.set(X+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(a,!0))}a=this.commentIdToIndex(S,U,!0);a>=0&&(a="data.contents."+U+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+a,U=a+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",a+=".commentThreadRenderer.replies",c==void 0?(this.set(a,{}),this.set(U,!1)):(this.set(a,{commentRepliesRenderer:{teaserContents:[{commentRenderer:c}]}}),this.set(U,!0)))}}};
_.J.removeFromStream=function(S,c){if(c){c=this.postIdToIndices(c);for(var Q=0;Q<c.length;Q++){var f=c[Q];if(f<0)break;var U=this.commentIdToIndex(S,f,!1);U>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",U,1);U=this.commentIdToIndex(S,f,!0);U>=0&&this.splice("data.contents."+f+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",U,1);f="data.contents."+f+".backstagePostThreadRenderer.post.backstagePostRenderer";
U=f+".backstageAttachment.pollRenderer.votedCommentId";this.get(U)===S&&(this.set(U,null),this.set(f+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(c=this.postIdToIndices(S).reverse(),Q=0;Q<c.length;Q++){f=c[Q];if(f<0)break;U=this.getPostRendererType(f);var a=this.get("backstagePostThreadRenderer.post."+U,this.data.contents[f]);a.postId===S?this.splice("data.contents",f,1):U==="sharedPostRenderer"&&this.set("data.contents."+f+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);a.scheduledPublishTimeSec&&_.XF(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.J.postIdToIndices=function(S){for(var c=[],Q=0;Q<this.data.contents.length;Q++){var f=this.getPostRendererType(Q);this.get("backstagePostThreadRenderer.post."+f+".postId",this.data.contents[Q])===S&&c.push(Q);if(f==="sharedPostRenderer"){var U=this.get("backstagePostThreadRenderer.post."+f+".originalPost.backstagePostRenderer.postId",this.data.contents[Q]);f=this.get("backstagePostThreadRenderer.post."+f+".originalPost.postRenderer.postId",this.data.contents[Q]);U!==S&&f!==S||c.push(Q)}}return c};
_.J.commentIdToIndex=function(S,c,Q){if(c<0)return-1;var f,U,a,X,z=_.Y((f=this.data)==null?void 0:(U=f.contents)==null?void 0:(a=U[c])==null?void 0:(X=a.backstagePostThreadRenderer)==null?void 0:X.comments,ep_);return(c=Q?z==null?void 0:z.teaserContents:z==null?void 0:z.contents)&&c.length?c.findIndex(function(x){return _.Y(x,Ixl).comment.commentRenderer.commentId===S}):-1};
_.J.getParentPostId=function(S){S=S.split(".");if(S[1])return S[0]};
_.J.getPostRendererType=function(S){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[S])?"sharedPostRenderer":"backstagePostRenderer"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],qL.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qL.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-backstage-items"})],qL);
_.k(qL,"ytd-backstage-items",function(){if(sbd!==void 0)return sbd;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return sbd=
S},{mode:1});var MQd;_.DI({is:"ytd-comments",_template:function(){if(MQd!==void 0)return MQd;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return MQd=S},
behaviors:[_.frH.YtHostElementBehavior,_.vC.YtPlayerListenerBehavior,_.m.YtRendererBehavior,_.AN.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.RenderingPriority={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};this.initCommentsCsi_()},
contentsChanged_:function(S){S&&S.value&&S.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(S){S&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.MD("wn_comments");var S=_.wN();S&&_.sz({clientScreenNonce:S},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(S){S=zgY(S);var c,Q,f;if(S=(c=S)==null?void 0:(Q=c.createCommentAction)==null?void 0:(f=Q.contents)==null?void 0:f.commentThreadRenderer){var U,a,X,z,x,I;!this.isBackstage&&((U=this.data)==null?0:(a=U.header)==null?0:(X=a.commentsHeaderRenderer)==null?0:(z=X.createRenderer)==null?0:(x=z.commentSimpleboxRenderer)==null?0:(I=x.zeroStep)==null?0:I.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var n,b,N,l;this.isBackstage&&((n=this.data)==null?0:(b=n.header)==null?0:(N=b.commentsHeaderRenderer)==null?0:(l=N.zeroStateMessage)==null?0:l.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(S)}},
doReplyInsert_:function(S,c,Q,f){f?this.splice(S,f,0,c):this.push(S,c)},
getRepliesPath_:function(S){return"data.contents."+S+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(S,c){S=this.getRepliesPath_(S);return c?S+".commentRepliesRenderer.teaserContents":S+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(S){S=zgY(S);var c,Q,f=(c=S)==null?void 0:(Q=c.createCommentReplyAction)==null?void 0:Q.parentCommentId,U,a;if(c=(U=S)==null?void 0:(a=U.createCommentReplyAction)==null?void 0:a.contents)if(f=this.commentIdToIndex_(f),!(f<0))if(U=this.getRepliesPath_(f),this.get(U)){var X,z;S=(X=S)==null?void 0:(z=X.createCommentReplyAction)==null?void 0:z.replyToCommentId;X=this.getRepliesContentsPath_(f,!1);this.get(X)&&(z=this.get(X).length,U=X+"."+(z-1)+".continuationItemRenderer",
this.get(U+".button")?(U=this.replyIdToIndex_(S,f,!1),this.doReplyInsert_(X,c,U,z-1)):this.get(U)||(z=this.replyIdToIndex_(S,f,!1),this.doReplyInsert_(X,c,z,null)));X=this.getRepliesContentsPath_(f,!0);this.get(X)?(f=this.replyIdToIndex_(S,f,!0),(!S||f>=0)&&this.doReplyInsert_(X,c,f,null)):this.set(X,[c])}else this.set(U,{commentRepliesRenderer:{teaserContents:[c]}})},
hideReportedCommentAction_:function(S){var c,Q=S==null?void 0:(c=S.hideReportedCommentAction)==null?void 0:c.commentId;if(Q){var f;S=S==null?void 0:(f=S.hideReportedCommentAction)==null?void 0:f.parentCommentId;Q=Q.replace("#",".");S||(S=this.getParentCommentId_(Q));this.remove_(Q,S)}},
getParentCommentId_:function(S){S=S.split(".");if(S[1])return S[0]},
removeCommentAction_:function(S){var c,Q=S==null?void 0:(c=S.removeCommentAction)==null?void 0:c.commentId;if(Q){var f;S=S==null?void 0:(f=S.removeCommentAction)==null?void 0:f.parentCommentId;Q=Q.replace("#",".");S||(S=this.getParentCommentId_(Q));this.remove_(Q,S)}},
pinCommentAction_:function(S){S=zgY(S);var c,Q,f=(c=S)==null?void 0:(Q=c.pinCommentAction)==null?void 0:Q.commentId;f&&(S=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",S))&&(this.remove_(f),this.insert_(S,!0))},
unpinCommentAction_:function(S){S=zgY(S);var c,Q,f=(c=S)==null?void 0:(Q=c.unpinCommentAction)==null?void 0:Q.commentId;if(f){var U,a,X;if(S=(U=S.unpinCommentAction)==null?void 0:(a=U.actionResult)==null?void 0:(X=a.update)==null?void 0:X.commentThreadRenderer)this.remove_(f),this.insert_(S)}},
banAuthorAction_:function(S){var c,Q=S==null?void 0:(c=S.banAuthorAction)==null?void 0:c.commentId;if(Q){var f;S=S==null?void 0:(f=S.banAuthorAction)==null?void 0:f.parentCommentId;Q=Q.replace("#",".");S||(S=this.getParentCommentId_(Q));this.remove_(Q,S)}},
commentIdToIndex_:function(S){var c;return S&&(c=this.data)!=null&&c.contents?this.data.contents.findIndex(function(Q){var f,U;return S===((Q==null?void 0:(f=Q.commentThreadRenderer)==null?void 0:f.commentViewModel)&&((U=_.Y(Q.commentThreadRenderer.commentViewModel,KJu))==null?void 0:U.commentId))}):-1},
insert_:function(S,c){var Q,f;if((Q=this.data)==null?0:(f=Q.contents)==null?0:f.some(function(a){return!(a==null||!a.commentThreadRenderer)}))for(Q=0,f=this.data.contents.length;Q<f;Q++){var U=this.data.contents[Q].commentThreadRenderer;
if(this.RenderingPriority[S.renderingPriority]>=this.RenderingPriority[U.renderingPriority]){c&&this.RenderingPriority[S.renderingPriority]==this.RenderingPriority[U.renderingPriority]?this.splice("data.contents",Q,1,{commentThreadRenderer:S}):this.splice("data.contents",Q,0,{commentThreadRenderer:S});break}}else this.set("data.contents",[{commentThreadRenderer:S}])},
doReplyRemove_:function(S,c,Q){S=this.replyIdToIndex_(S,c,Q);S<0||(c=this.getRepliesContentsPath_(c,Q),this.splice(c,S,1))},
remove_:function(S,c){c=this.commentIdToIndex_(c);c<0?(c=this.commentIdToIndex_(S),c<0||this.splice("data.contents",c,1)):(this.doReplyRemove_(S,c,!1),this.doReplyRemove_(S,c,!0))},
replyIdToIndex_:function(S,c,Q){if(c<0)return-1;c=this.getRepliesContentsPath_(c,Q);c=this.get(c);if(!c||!c.length)return-1;Q=0;for(var f=c.length;Q<f;Q++){var U=void 0,a=void 0;if(((U=c[Q])==null?void 0:(a=U.commentViewModel)==null?void 0:a.commentId)===S)return Q}return-1},
computeIsBackstage_:function(S){return!!S},
tickForCommentsTimer_:function(S){_.Z5(S,void 0,"wn_comments")},
reloadComments_:function(S){S&&S.reloadCommentsCommand&&S.reloadCommentsCommand.command&&S.reloadCommentsCommand.command.continuationCommand&&_.xt(this,[S.reloadCommentsCommand.command])}});var TM=function(){return _.N_.apply(this,arguments)||this};
_.C(TM,_.N_);_.J=TM.prototype;_.J.bindIf=function(S,c,Q){return S?c:Q};
_.J.bindIfDefined=function(S,c){return S!==void 0?S:c};
_.J.booleanString=function(S){return(!!S).toString()};
_.J.equals=function(){for(var S=_.YD.apply(0,arguments),c=S[0],Q=1;Q<S.length;Q++)if(c!=S[Q])return!1;return!0};
_.J.isGreaterThan=function(S,c){return S>c};
_.J.isLessThan=function(S,c){return S<c};
_.J.logicalAND=function(){for(var S=_.YD.apply(0,arguments),c=!!S[0],Q=1;Q<S.length;Q++)c=c&&!!S[Q];return c};
_.J.logicalOR=function(){for(var S=_.YD.apply(0,arguments),c=!!S[0],Q=1;Q<S.length;Q++)c=c||!!S[Q];return c};
_.J.toBool=function(S){return!!S};
TM.prototype.toBool=TM.prototype.toBool;TM.prototype.logicalOR=TM.prototype.logicalOR;TM.prototype.logicalAND=TM.prototype.logicalAND;TM.prototype.isLessThan=TM.prototype.isLessThan;TM.prototype.isGreaterThan=TM.prototype.isGreaterThan;TM.prototype.equals=TM.prototype.equals;TM.prototype.booleanString=TM.prototype.booleanString;TM.prototype.bindIfDefined=TM.prototype.bindIfDefined;TM.prototype.bindIf=TM.prototype.bindIf;_.d([_.KU()],TM);_.i7p=[TM.prototype];var Z7z;var GtH;var wE=function(){return _.W.apply(this,arguments)||this};
_.C(wE,_.W);wE.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
wE.prototype.onBackIconTap_=function(){window.history.back()};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],wE.prototype,"data",void 0);_.d([_.wM({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],wE);
_.k(wE,"yt-header-with-back-renderer",function(){if(GtH===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Z7z===void 0&&(Z7z=document.createElement("template"));var f=Z7z;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);GtH=S}S=GtH;return S},{mode:2});var WXh;var geh;var sw=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(sw,_.W);_.J=sw.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S,this.setUrl())};
_.J.dataChanged=function(){var S=this;if(this.data){var c=this.setUrl();c&&_.cl({destination:window,iframe:this.iframe,origin:_.r$u(c.toString()),channelName:"yt-iframe",onMessage:function(Q){(Q=S.getCommunicationCommand(Q.data))&&S.ytComponentBehavior.resolveCommand(Q)},
onEstablished:function(){}})}};
_.J.setUrl=function(){if(this.data&&this.data.iframeUrl){var S=_.iH(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(S)return _.TR(this.iframe,S),S}};
_.J.getCommunicationCommand=function(S){var c;if((c=this.data)!=null&&c.onCommunicationCommandsMap){c=this.data.onCommunicationCommandsMap.find(function(U){return U.key===S});
if(c==null?0:c.value)return c==null?void 0:c.value;try{var Q=dBh(_.Od(S)),f=this.data.onCommunicationCommandsMap.find(function(U){return U.key===(Q==null?void 0:_.MJ(Q,1))});
if(f==null?0:f.value)return f==null?void 0:f.value}catch(U){}}};
sw.prototype.dataChanged=sw.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],sw.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],sw.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sw.prototype,"data",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],sw.prototype,"isDarkTheme",void 0);_.d([_.nU("#iframe"),_.P("design:type",HTMLIFrameElement)],sw.prototype,"iframe",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sw.prototype,"dataChanged",null);_.d([_.wM({is:"yt-iframe-renderer",disableElementRegistration:!0})],sw);
_.k(sw,"yt-iframe-renderer",function(){if(geh===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;WXh===void 0&&(WXh=document.createElement("template"));var f=WXh;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);geh=S}S=geh;return S},{mode:2});_.ML=function(S){_.C9.call(this);this.callback=S;this.bezier=new jMh(0,0,.4,0,.2,1,1,1);this.delay=new _.mG(this.next,window,this);this.JSC$14772_animating=!1;_.F5(this,this.delay)};
_.C(_.ML,_.C9);_.ML.prototype.isAnimating=function(){return this.JSC$14772_animating};
_.ML.prototype.start=function(S,c,Q){this.config={from:S,to:c,duration:Q,startTime:(0,_.Qk)()};this.JSC$14772_animating=!0;this.next()};
_.ML.prototype.stop=function(){this.delay.stop();this.JSC$14772_animating=!1;this.config=void 0};
_.ML.prototype.next=function(){if(this.config){var S=this.config,c=S.from,Q=S.to,f=S.duration;S=S.startTime;var U=(0,_.Qk)()-S;S=this.bezier;f=Y_d(S,U/f);if(f==0)S=S.y0;else if(f==1)S=S.y3;else{U=Yq(S.y0,S.y1,f);var a=Yq(S.y1,S.y2,f);S=Yq(S.y2,S.y3,f);U=Yq(U,a,f);a=Yq(a,S,f);S=Yq(U,a,f)}S=_.Zv(S,0,1);this.callback(c+(Q-c)*S);S<1?this.delay.start():this.JSC$14772_animating=!1}};_.i3=new _.Sg("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var e4d={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},ruH=function(S,c,Q,f){_.C9.call(this);this.JSC$14780_miniAppId=S;this.localReleaseId=c;this.derivedDeviceInterface=Q;this.isForeground=f;this.JSC$14780_playNonceResolver=new _.O_;this.playPingTimerId=NaN;this.playPingIntervalMs=_.a6("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.a6("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.u("enable_displaying_ppn");this.JSC$14780_miniAppClientDataProvider=_.fl().resolve(_.i3);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;ktz(this);var U=setTimeout(function(){_.i5(new _.Yr("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14780_playNonceResolver.promise.then(function(){clearTimeout(U)})};
_.C(ruH,_.C9);var veH=function(S,c){S.JSC$14780_playNonceResolver.resolve(c!=null?c:hG(8));S.enableDisplayingPpn&&dCp(S).then(function(Q){S.JSC$14780_miniAppClientDataProvider.clientData.set("post_play_nonce",Q)})},dCp=function(S){return _.O(function(c){return c.nextAddress==1?_.F(c,S.JSC$14780_playNonceResolver.promise,2):c.return(c.yieldResult)})},ktz=function(S){var c,Q;
_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$14780_playNonceResolver.promise,2);c=f.yieldResult;Q={miniAppInfo:{externalPostId:S.JSC$14780_miniAppId,localReleaseId:S.localReleaseId,postPlayNonce:c,derivedDeviceInterface:S.derivedDeviceInterface}};_.sz(Q);_.IN(f)})},LXd=function(S){S.state!==0?_.i5(new _.Yr("[MiniAppPlayLogger] recordPlayStart failed with state "+e4d[S.state])):(S.state=1,Zk(S,"ma_cl"),GM(S,"PLAY_EVENT_TYPE_PLAY_START"),PPT(S))},Ee$=function(S){S.isForeground=!1;
GM(S,"PLAY_EVENT_TYPE_PLAY_PAUSE")},tQ$=function(S){S.state!==1&&S.state!==2?_.i5(new _.Yr("[MiniAppPlayLogger] recordPlayEnd failed with state "+e4d[S.state])):(S.state=3,window.clearInterval(S.playPingTimerId),S.playPingTimerId=NaN,J1c(),GM(S,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},VQ_=function(S,c){S.state===2&&S.gameReady&&(S.firstClickRecorded?Date.now()-S.clickRecordedMs<S.playClickIntervalMs||(S.clickRecordedMs=Date.now(),GM(S,"PLAY_EVENT_TYPE_PLAY_CLICK")):c&&(Zk(S,"ma_fua"),GM(S,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),S.firstClickRecorded=!0,S.clickRecordedMs=Date.now()))};
ruH.prototype.logError=function(S){var c=this,Q;_.O(function(f){if(f.nextAddress==1)return S.metadata.externalPostId=c.JSC$14780_miniAppId,Q=S.metadata,_.F(f,Promise.race([c.JSC$14780_playNonceResolver.promise,new Promise(function(U){setTimeout(function(){U("")},3E4)})]),2);
Q.postPlayNonce=f.yieldResult;S.metadata.localReleaseId=c.localReleaseId;S.loggingError.level="WARNING";_.sH(S.loggingError,S.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:S.metadata});_.IN(f)})};
var R4H=function(S,c,Q,f){var U,a,X,z,x,I;_.O(function(n){if(n.nextAddress==1)return _.F(n,S.JSC$14780_playNonceResolver.promise,2);U=n.yieldResult;a={externalPostId:S.JSC$14780_miniAppId,localReleaseId:S.localReleaseId,postPlayNonce:U,sdkVersion:Q,api:c};f!==void 0&&(a.networkRequestsMeasurement={networkRequests:_.Qa(f,1),cachedRequests:_.Qa(f,2),transferredBytes:_.Qa(f,3)},(X=f)==null?0:_.lR(X,o7,6))&&(a.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((z=_.JB(f,
o7,6))==null?void 0:Zx(z,1))||"0",cacheHits:((x=_.JB(f,o7,6))==null?void 0:Zx(x,2))||"0",cachedBytes:((I=_.JB(f,o7,6))==null?void 0:Zx(I,3))||"0"});_.Te("miniAppSdkUsage",a);_.IN(n)})},oei=function(S,c,Q){var f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r;
_.O(function(E){if(E.nextAddress==1)return _.F(E,S.JSC$14780_playNonceResolver.promise,2);f=E.yieldResult;U={externalPostId:S.JSC$14780_miniAppId,localReleaseId:S.localReleaseId,postPlayNonce:f,sdkVersion:Q,measurementWindow:{startTimestampMs:String(wr(c,1)),endTimestampMs:String(wr(c,2))},frameRate:{averageFrameTimeDeltaMs:sY(c,3),averageFrameIdleTimeMs:sY(c,4)}};_.lR(c,mI,5)&&(U.networkRequests={networkRequests:(a=aJ(c))==null?void 0:_.Qa(a,1),cachedRequests:(X=aJ(c))==null?void 0:_.Qa(X,2),transferredBytes:(z=
aJ(c))==null?void 0:_.Qa(z,3),sameOriginStatusCodeToCounts:yu$((x=aJ(c))==null?void 0:cUz(x,4)),crossOriginStatusCodeToCounts:yu$((I=aJ(c))==null?void 0:cUz(I,5))},(n=aJ(c))==null?0:_.lR(n,o7,6))&&(U.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((b=aJ(c))==null?void 0:(N=_.JB(b,o7,6))==null?void 0:Zx(N,1))||"0",cacheHits:((l=aJ(c))==null?void 0:(H=_.JB(l,o7,6))==null?void 0:Zx(H,2))||"0",cachedBytes:((q=aJ(c))==null?void 0:(w=_.JB(q,o7,6))==null?void 0:Zx(w,3))||"0"});_.lR(c,
Gwz,7)&&(U.gameCapture={averageFrameTimeDeltaMs:(g=_.JB(c,Gwz,7))==null?void 0:sY(g,1),averageFrameIdleTimeMs:(r=_.JB(c,Gwz,7))==null?void 0:sY(r,2)});_.Te("miniAppPerformanceMetrics",U);_.IN(E)})},mCH=function(S,c,Q){var f,U;
return _.O(function(a){if(a.nextAddress==1)return _.F(a,S.JSC$14780_playNonceResolver.promise,2);f=a.yieldResult;U={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:S.JSC$14780_miniAppId,postPlayNonce:f,miniAppReleaseId:S.localReleaseId},derivedDeviceInterface:S.derivedDeviceInterface,adTriggerType:c};U.rejectedReason=Q||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.Te("miniAppAdEvent",U);_.IN(a)})};
ruH.prototype.disposeInternal=function(){_.C9.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var GM=function(S,c,Q,f){Q=Q===void 0?{}:Q;f=f===void 0?!1:f;var U,a,X,z;_.O(function(x){if(x.nextAddress==1)return U=S.isForeground,a=S.beforeReady,_.F(x,S.JSC$14780_playNonceResolver.promise,2);X=x.yieldResult;z={externalPostId:S.JSC$14780_miniAppId,localReleaseId:S.localReleaseId,derivedDeviceInterface:S.derivedDeviceInterface,postPlayNonce:X,type:c};Q.sequenceGroup=X;z.playState=a?"PLAY_STATE_NOT_READY":U?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.Te("miniAppPlayEvent",z,Q);
f&&_.wQ();_.IN(x)})},Zk=function(S,c){var Q;
_.O(function(f){if(f.nextAddress==1)return Q=(0,_.Qk)(),_.F(f,S.JSC$14780_playNonceResolver.promise,2);_.i2(c,Q);_.IN(f)})},PPT=function(S){isNaN(S.playPingTimerId)&&(S.playPingTimerId=_.xr(function(){S.state!==1&&S.state!==2?_.i5(new _.Yr("[MiniAppPlayLogger] reportPlayPing failed with state "+e4d[S.state])):GM(S,"PLAY_EVENT_TYPE_PLAY_PING")},S.playPingIntervalMs))},yu$=function(S){return Array.from(S.entries()).map(function(c){var Q=_.A(c);
c=Q.next().value;Q=Q.next().value;return{key:c,value:Q}})};var SNu=_.a6("show_mini_app_ad_frequency_cap_ms",0),cId=function(){this.showAdIntervalMs=SNu;this.isRateLimited=!0},Qde=function(S,c){setTimeout(function(){return S.isRateLimited=!1},S.showAdIntervalMs);
S.showMiniAppAdCommand=c.showMiniAppAdCommand;S.isEmbeddedInWebview=c.isEmbeddedInWebview;S.playLogger=c.playLogger},Ulp=function(S,c){var Q;
return _.O(function(f){if(f.nextAddress==1){if(!S.showMiniAppAdCommand||!S.isEmbeddedInWebview)return f.return(ft_(S,c,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(S.isRateLimited)return f.return(ft_(S,c,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));S.adResolver=new _.O_;Q=Qau(new wx,c);dD(S.showMiniAppAdCommand,fg_(Q));S.isRateLimited=!0;setTimeout(function(){return S.isRateLimited=!1},S.showAdIntervalMs);
return _.F(f,S.adResolver.promise,2)}return f.return(f.yieldResult)})};
cId.prototype.onAdFinished=function(S){S=I6_(S);var c;(c=this.adResolver)==null||c.resolve(S)};
var ft_=function(S,c,Q){var f;return _.O(function(U){if(U.nextAddress==1)U=_.F(U,(f=S.playLogger)==null?void 0:mCH(f,buY(c),Q),2);else{var a=U.return;var X=new BDd;X=_.aR(X,1,2);U=a.call(U,X)}return U})};var JIJ=new _.Sg("INNERTUBE_MANAGER_TOKEN");var ati=function(){this.callbacks={}};
ati.prototype.initialize=function(S){var c=this;this.callbacks=S;window.youtubewebview?window.youtubewebview.onmessage=function(Q){AIs(c,Q)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(Q){AIs(c,Q)})};
var AIs=function(S,c){if(c.data)try{var Q=dBh(c.data);if(_.eN(_.jp(Q,1))!=null){var f=RdJ(_.MJ(Q,2));switch(_.MJ(Q,1)){case "yt-mini-app-load-audio-state":var U,a;(a=(U=S.callbacks).onAudioStateLoaded)==null||a.call(U,_.T1(f,je(f,TF,1)));break;case "yt-mute-mini-app":var X,z;(z=(X=S.callbacks).onMuteMiniApp)==null||z.call(X);break;case "yt-unmute-mini-app":var x,I;(I=(x=S.callbacks).onUnmuteMiniApp)==null||I.call(x);break;case "yt-playable-exit":var n,b;(b=(n=S.callbacks).onExit)==null||b.call(n);
break;case "yt-post-play-nonce":var N,l;(l=(N=S.callbacks).onPostPlayNonceReceived)==null||l.call(N,G1(f,2,TF));break;case "yt-confirm-exit-mini-app":var H,q;(q=(H=S.callbacks).confirmExitMiniApp)==null||q.call(H);break;case "yt-confirm-exit-mini-app-edu":var w,g;(g=(w=S.callbacks).confirmExitMiniAppEdu)==null||g.call(w);break;case "yt-benchmarking-response":var r,E;(E=(r=S.callbacks).onNativeBenchmarkingMessageReceived)==null||E.call(r,G1(f,2,TF));break;case "yt-mini-app-load-3p-consent-state":var v,
t;(t=(v=S.callbacks).multiplayer3pAckStateLoaded)==null||t.call(v,_.T1(f,je(f,TF,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var V,AZ;(AZ=(V=S.callbacks).exitMiniAppSeenStateLoaded)==null||AZ.call(V,_.T1(f,je(f,TF,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var IH,Nr;(Nr=(IH=S.callbacks).onNavigateToNewMiniApp)==null||Nr.call(IH);break;case "yt-game-data-available":var Hc,qr;(qr=(Hc=S.callbacks).onGameDataAvailable)==null||qr.call(Hc,G1(f,2,TF));break;case "yt-pause-mini-app":var wp,
Pc;(Pc=(wp=S.callbacks).onPauseMiniApp)==null||Pc.call(wp);break;case "yt-resume-mini-app":var ex,yd;(yd=(ex=S.callbacks).onResumeMiniApp)==null||yd.call(ex);break;case "yt-playable-ad-finished":var op,DT;(DT=(op=S.callbacks).onAdFinished)==null||DT.call(op,G1(f,2,TF))}}else _.i5(Error("Th"))}catch(B_){_.sH(Error("Uh"))}else _.i5(Error("Vh"))};var KBR=function(S){this.rpcErrorCode=S};var WF=function(S,c,Q){this.intervalMs=S;this.apiFunc=c;this.type=Q;this.schedulerReady=!0};
WF.prototype.call=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1){if(c.type!==1&&S===c.cachedValue)return f.return();c.pendingApiRequestResolver||(c.pendingApiRequestResolver=new _.O_);Q=c.pendingApiRequestResolver.promise;c.cachedValue=S;return _.F(f,XQu(c),2)}return f.return(Q)})};
WF.prototype.flush=function(S){S=S===void 0?!1:S;var c=this;return _.O(function(Q){return c.cachedValue===void 0?Q.return():_.F(Q,c.apiFunc(c.cachedValue,S),0)})};
var XQu=function(S){var c,Q,f;return _.O(function(U){switch(U.nextAddress){case 1:if(!S.schedulerReady||!S.pendingApiRequestResolver)return U.return();S.schedulerReady=!1;c=S.pendingApiRequestResolver;S.pendingApiRequestResolver=void 0;_.X1(U,2);if(S.cachedValue===void 0){U.jumpTo(4);break}return _.F(U,S.apiFunc(S.cachedValue),5);case 5:Q=U.yieldResult,c.resolve(Q);case 4:_.Pi(U,3);break;case 2:f=_.Bs(U),c.reject(f);case 3:setTimeout(function(){return _.O(function(a){S.schedulerReady=!0;return _.F(a,
XQu(S),0)})},S.intervalMs),_.IN(U)}})};var jcZ=window.location.origin+"/miniapp_cloudsaves",$2Z=[400,401],O_d=_.a6("cloud_save_game_data_rate_limit_ms",3E3),FbJ=function(S){var c=this;this.JSC$14824_miniAppId=S;this.loadAttempts=0;this.cloudSaveIntervalMs=O_d;this.initialDownloadDataSucceeded=!1;this.JSC$14824_playNonceResolver=new _.O_;this.scottyUploadRateLimiter=new WF(this.cloudSaveIntervalMs,function(Q,f){return z9h(c,Q,f)},2);
this.downloadDataPromise=xls(this);this.downloadDataPromise.then(function(){c.initialDownloadDataSucceeded=!0}).catch(function(){})},By$=function(S,c){c.then(function(Q){return S.JSC$14824_playNonceResolver.resolve(Q)})},ItH=function(S){return _.O(function(c){return S.cachedData===void 0?c.return(S.downloadDataPromise):c.return(S.cachedData)})},nEd=function(S,c){return _.O(function(Q){S.cachedData=c;
if(!S.initialDownloadDataSucceeded)throw Error("Wh");return _.F(Q,S.scottyUploadRateLimiter.call(c),0)})},b_p=function(){return new Promise(function(S){setTimeout(S,1E3,"")})},NyT=function(S,c){var Q,f;
return _.O(function(U){if(U.nextAddress==1)return Q=S.JSC$14824_miniAppId,_.F(U,Promise.race([S.JSC$14824_playNonceResolver.promise,b_p()]),2);f={"X-YouTube-MiniAppId":Q,"X-YouTube-PostPlayNonce":U.yieldResult};"DELEGATED_SESSION_ID"in _.ZJ&&gQT(c,f);return U.return(f)})},z9h=function(S,c,Q){Q=Q===void 0?!1:Q;
return _.O(function(f){return NGT()?_.u("enable_cloud_save_error_popup_after_retry")?f.return(new Promise(function(U,a){var X,z,x,I,n;return _.O(function(b){switch(b.nextAddress){case 1:X=0,z=!0,I=x=null;case 2:if(!(z&&X++<2)){b.jumpTo(4);break}_.X1(b,5);return _.F(b,Kbd(S,c,Q),7);case 7:x=b.yieldResult;z=x.ok?!1:!$2Z.includes(x.status);_.Pi(b,2);break;case 5:I=n=_.Bs(b);z=unx(I);b.jumpTo(2);break;case 4:x?x.ok?(gE(S,O_d),U()):(gE(S,S.cloudSaveIntervalMs*2),a(Error("Xh`"+String(x.status),{cause:{rpcErrorCode:x.status}}))):
(gE(S,S.cloudSaveIntervalMs*2),a(I||Error("Yh"))),_.IN(b)}})})):f.return(new Promise(function(U,a){var X,z;
return _.O(function(x){if(x.nextAddress==1){if(S.JSC$14824_miniAppId==="")return a(Error("Zh")),x.return();_.X1(x,2);return _.F(x,Kbd(S,c,Q),4)}if(x.nextAddress!=2)return X=x.yieldResult,X.ok?(gE(S,O_d),U()):(gE(S,S.cloudSaveIntervalMs*2),a(Error("Xh`"+String(X.status),{cause:{rpcErrorCode:X.status}}))),_.Pi(x,0);z=_.Bs(x);gE(S,S.cloudSaveIntervalMs*2);a(z);_.IN(x)})})):f.return()})},Kbd=function(S,c,Q){Q=Q===void 0?!1:Q;
var f,U,a;return _.O(function(X){if(X.nextAddress==1)return f=_.mV((new TextEncoder).encode(c)),U=lap(),_.F(X,NyT(S,U),2);a=X.yieldResult;return X.return(fetch(U,{method:"POST",body:new Blob([f]),headers:a,keepalive:Q}))})},xls=function(S){var c,Q;
return _.O(function(f){if(f.nextAddress==1){if(!NGT())return f.return("");if(S.JSC$14824_miniAppId==="")throw Error("Zh");if(S.loadAttempts>2)return f.return(S.downloadDataPromise);_.X1(f,2);return _.F(f,$ld(S),4)}if(f.nextAddress!=2)return c=f.yieldResult,f.return(c);Q=_.Bs(f);if(unx(Q)&&++S.loadAttempts<2)return f.return(xls(S));throw Q;})},$ld=function(S){var c,Q,f,U,a;
return _.O(function(X){switch(X.nextAddress){case 1:return _.X1(X,2),c=lap(),_.F(X,NyT(S,c),4);case 4:return Q=X.yieldResult,_.F(X,fetch(c,{method:"GET",headers:Q}),5);case 5:return f=X.yieldResult,f.ok?_.F(X,f.text(),6):X.return(Promise.reject(Error("$h`"+String(f.status),{cause:new KBR(f.status)})));case 6:return U=X.yieldResult,X.return((new TextDecoder).decode(_.Od(U)));case 2:return a=_.Bs(X),X.return(Promise.reject(a))}})},gE=function(S,c){S.cloudSaveIntervalMs=c;
S.scottyUploadRateLimiter.intervalMs=S.cloudSaveIntervalMs};
FbJ.prototype.flush=function(){var S=this;return _.O(function(c){return S.initialDownloadDataSucceeded?_.F(c,S.scottyUploadRateLimiter.flush(!0),0):c.return()})};var uIh=Ua(fk(1),cA(1)),jdu=Ua(fk(1),cA(3)),eh=function(S){this.callbacks=S};
_.J=eh.prototype;_.J.onAudioToggled=function(S,c){(c===void 0||c)&&_.F6("yt-mini-app-is-audio-enabled",S,2592E3)};
_.J.onPause=function(){this.onAudioToggled(!1,!1)};
_.J.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.J.returnNativeBenchmarkingMessage=function(){};
_.J.sendGameData=function(){};
_.J.sendStartGameFrameCapture=function(){};
var YGY=function(S,c,Q){this.callbacks=S;var f=this;this.sdkVersion=new _.O_;this.channel=new LDc(_.cl({destination:window,iframe:c,origin:(new URL(Q.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var U=kK;var a=fk(5);var X=new YIT;X=_.gr(X,1,1E4);a=_.fc(a,4,wZp,X);U(f,a);f.onAudioToggled(f.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){f.sdkVersion.resolve("")},1E4)};
_.C(YGY,eh);_.J=YGY.prototype;_.J.onAudioToggled=function(S,c){eh.prototype.onAudioToggled.call(this,S,c===void 0?!0:c);c=kK;var Q=fk(2),f=new jCh;S=_.aj(f,1,S);S=_.fc(Q,3,wZp,S);c(this,S)};
_.J.onPause=function(){eh.prototype.onPause.call(this);kK(this,fk(3))};
_.J.onResume=function(){eh.prototype.onResume.call(this);kK(this,fk(4))};
_.J.returnNativeBenchmarkingMessage=function(S){var c=kK,Q=fk(6);var f=cA(_.lR(S,tM,1)?1:2);S=_.lR(S,tM,1)?S:null;f=_.fc(f,5,Qo,S);c(this,Ua(Q,f))};
_.J.sendGameData=function(S){var c=kK,Q=fk(7);S=_.fc(Q,5,wZp,S);c(this,S)};
_.J.sendStartGameFrameCapture=function(){kK(this,fk(9))};
var rE=function(S,c,Q){var f,U,a;return _.O(function(X){if(X.nextAddress==1)return f=S.callbacks,U=f.onSdkCalled,a=c,_.F(X,S.sdkVersion.promise,2);U.call(f,a,X.yieldResult,Q);_.IN(X)})};
YGY.prototype.onMessage=function(){var S=this;return VHM(Ap,function(c){var Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V,AZ,IH,Nr,Hc,qr,wp,Pc,ex,yd,op,DT,B_,zJ,Qp,xl,xZ,hj,OT,uu,sd,LT,Ci,t$,kp,Ed;return _.O(function(J$){switch(J$.nextAddress){case 1:if(!kwd(c.data))return _.i5(Error("ai")),J$.return();Q=_.iR(c.data,1);_.u("enable_iframe_message_get_type_via_fields")&&(f=c.data,Q=U=_.iR(f,1));switch(Q){case 8:if(c.data.hasMetadata()){var ez=S.sdkVersion,$0=ez.resolve;var $l=c.data.getMetadata();$l=_.MJ($l,
1);$0.call(ez,$l);clearTimeout(S.sdkVersionTimeoutId)}break;case 6:return J$.jumpTo(2);case 16:if(!_.YH(c.data,iDe,14,XP))return J$.return();a=_.Wg(c.data,iDe,14,XP);(z=(X=S.callbacks).onGameFrameReceived)==null||z.call(X,a);return J$.return();case 17:if(!_.YH(c.data,M0T,15,XP))return J$.return();(I=(x=S.callbacks).onGameAudioReceived)==null||I.call(x,_.Wg(c.data,M0T,15,XP));return J$.return();case 1:if(ez=_.Wg(c.data,D$d,2,XP))switch(_.iR(ez,1)){case 1:S.callbacks.onFirstFrameReady();if(_.u("enable_network_request_logging_on_game_events")&&
_.lR(ez,mI,4)){rE(S,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.JB(ez,mI,4));break}rE(S,"MINI_APP_SDK_API_FIRST_FRAME_READY");break;case 2:($l=($0=S.callbacks).onGameReady)==null||$l.call($0);if(_.u("enable_network_request_logging_on_game_events")&&_.lR(ez,mI,4)){rE(S,"MINI_APP_SDK_API_GAME_READY",_.JB(ez,mI,4));break}rE(S,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.YH(ez,ST,3,pZd))S.callbacks.onResourceLoaded(_.Wg(ez,ST,3,pZd))}return J$.return();case 3:return J$.jumpTo(3);case 4:return J$.jumpTo(4);
case 2:return J$.jumpTo(5);case 9:return J$.jumpTo(6);case 10:return S.callbacks.onClick(),J$.return();case 5:return J$.jumpTo(7);case 11:if(!_.YH(c.data,R7,9,XP))return J$.return();n=_.Wg(c.data,R7,9,XP);(N=(b=S.callbacks).onBenchmarkingMessageReceived)==null||N.call(b,n);ez=c.reply;$0=fk(1);$l=cA(1);var h$=new R7;var FE=new Uint8Array(nwp(n,je(n,bDp,6))|0);h$=b5(h$,5,bDp,_.GJ(FE,!1));$l=_.fc($l,5,Qo,h$);ez.call(c,Ua($0,$l));return J$.return();case 12:return J$.jumpTo(8);case 13:return J$.jumpTo(9);
case 15:if(!_.u("enable_open_yt_content"))return c.reply(jdu),J$.return();if(!_.YH(c.data,sCh,12,XP))return c.reply(Ua(fk(1),cA(2))),J$.return();ez=_.Wg(c.data,sCh,12,XP);l=_.MJ(ez,1);S.callbacks.onOpenYTContent(l);c.reply(uIh);return J$.return();case 14:return J$.jumpTo(10);default:return J$.return()}J$.jumpTo(0);break;case 2:if(!_.YH(c.data,Jp,5,XP))return J$.return();$0=c.data;ez=je($0,XP,5);$0=$0.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(ez=ph($0,$0[_.lu]|0,Jp,ez))||(ez=Jp[d1])||
(ez=new Jp,pi(ez.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),ez=Jp[d1]=ez);H=ez;ez=_.St(H,yP,1,_.c1());q=_.A(ez);w=q.next();case 12:if(w.done){J$.jumpTo(14);break}g=w.value;r=new _.Yr;r.level=_.iR(g,2)===1?"WARNING":"ERROR";E=Huz(g.getSource());return _.F(J$,S.sdkVersion.promise,15);case 15:v={source:E,sdkVersion:J$.yieldResult};_.lE(_.jp(g,6))!=null?(r.message=g.getMessage(),r.stack=_.MJ(g,5),v.sdkErrorType=D2c(_.iR(g,6)),_.lE(_.jp(g,7))!=null&&(v.sdkApi=pvr(_.iR(g,7)))):r.stack=void 0;
V=t=void 0;(V=(t=S.callbacks).onError)==null||V.call(t,{loggingError:r,metadata:v});w=q.next();J$.jumpTo(12);break;case 14:return J$.return();case 3:return _.X1(J$,16),ez=S.callbacks,$0=ez.onSave,$l=_.Wg(c.data,l6p,4,XP),$l=_.MJ($l,1),_.F(J$,$0.call(ez,$l),18);case 18:c.reply(uIh);_.Pi(J$,17);break;case 16:return AZ=_.Bs(J$),IH=vZ,Nr=AZ,Hc=S.callbacks,qr="MINI_APP_SDK_API_SAVE_DATA",_.F(J$,S.sdkVersion.promise,19);case 19:IH(Nr,Hc,qr,J$.yieldResult),c.reply(jdu);case 17:return _.F(J$,rE(S,"MINI_APP_SDK_API_SAVE_DATA"),
20);case 20:return J$.return();case 4:return _.X1(J$,21),_.F(J$,S.callbacks.onLoad(),23);case 23:wp=J$.yieldResult;ez=c.reply;$0=fk(1);$l=cA(1);h$=new l6p;h$=_.bN(h$,1,wp);$l=_.fc($l,3,Qo,h$);ez.call(c,Ua($0,$l));_.Pi(J$,22);break;case 21:return Pc=_.Bs(J$),ex=vZ,yd=Pc,op=S.callbacks,DT="MINI_APP_SDK_API_LOAD_DATA",_.F(J$,S.sdkVersion.promise,24);case 24:ex(yd,op,DT,J$.yieldResult),c.reply(jdu);case 22:return _.F(J$,rE(S,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return J$.return();case 5:_.X1(J$,
26);S.callbacks.onSendHighScore(Z3(_.Wg(c.data,gup,3,XP).getValue()));c.reply(Ua(fk(1),cA(1)));_.Pi(J$,27);break;case 26:return B_=_.Bs(J$),zJ=vZ,Qp=B_,xl=S.callbacks,xZ="MINI_APP_SDK_API_SEND_SCORE",_.F(J$,S.sdkVersion.promise,28);case 28:zJ(Qp,xl,xZ,J$.yieldResult),c.reply(jdu);case 27:return _.F(J$,rE(S,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return J$.return();case 6:if(!_.YH(c.data,en$,8,XP)){J$.jumpTo(30);break}ez=_.Wg(c.data,en$,8,XP);ez=_.iR(ez,1);return _.F(J$,rE(S,pvr(ez)),30);case 30:return J$.return();
case 7:return ez=c.reply,$0=fk(1),$l=cA(1),h$=S.callbacks.getLanguage(),$l=b5($l,4,Qo,g1(h$)),ez.call(c,Ua($0,$l)),_.F(J$,rE(S,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return J$.return();case 8:if(!_.YH(c.data,Wli,10,XP))return J$.return();hj=_.Wg(c.data,Wli,10,XP);OT=S.callbacks;uu=OT.onSdkPerformanceUpdate;return _.F(J$,S.sdkVersion.promise,33);case 33:return uu.call(OT,hj,J$.yieldResult),J$.return();case 9:ez=c.data;$0=je(ez,XP,11);if(_.eN(_.jp(ez,$0))==null)return c.reply(Ua(fk(1),cA(2))),
J$.return();sd=G1(c.data,11,XP);S.callbacks.onShareInviteCode(sd);c.reply(uIh);return _.F(J$,rE(S,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),34);case 34:return J$.return();case 10:if(_.YH(c.data,ufs,13,XP)){J$.jumpTo(35);break}return _.F(J$,S.callbacks.onShowMiniAppAd(2),36);case 36:return LT=J$.yieldResult,c.reply(Ua(fk(1),qId(LT))),_.F(J$,rE(S,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return J$.return();case 35:ez=_.Wg(c.data,ufs,13,XP);a:switch(_.iR(ez,1)){case 1:ez={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};
break a;case 2:ez={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:ez={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Ci=ez;t$=Ci.adType;kp=Ci.sdkApi;ez=S.callbacks;$0=ez.onShowMiniAppAd;$l=_.Wg(c.data,ufs,13,XP);$l=_.MJ($l,2);return _.F(J$,$0.call(ez,t$,$l||void 0),38);case 38:return Ed=J$.yieldResult,c.reply(Ua(fk(1),qId(Ed))),_.F(J$,rE(S,kp),39);case 39:return J$.return()}})})};
var kK=function(S,c){_.O(function(Q){S.channel.send(c);_.IN(Q)})},PZ=function(S,c,Q){this.callbacks=S;
var f=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;S=aRp(c,(new URL(Q.toString())).origin);this.gameSnacks=new XPZ(S);this.gameSnacks.page.onReady(function(){f.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){f.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var U,a;(a=(U=f.callbacks).onGameReady)==null||a.call(U)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(U,a){try{f.callbacks.onSendHighScore(a)}catch(X){vZ(X,f.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(U,a){var X;return _.O(function(z){if(z.nextAddress==1)return _.X1(z,2),_.F(z,f.callbacks.onSave(f.decoder.decode(a)),4);if(z.nextAddress!=2)return _.Pi(z,0);X=_.Bs(z);vZ(X,f.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return z.return()})});
this.gameSnacks.storage.onLoad(function(){var U,a;return _.O(function(X){if(X.nextAddress==1)return _.X1(X,2),_.F(X,f.callbacks.onLoad(),4);if(X.nextAddress!=2)return U=X.yieldResult,X.return(f.encoder.encode(U));a=_.Bs(X);vZ(a,f.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return X.return(f.encoder.encode(""))})});
this.gameSnacks.init()};
_.C(PZ,eh);PZ.prototype.onAudioToggled=function(S,c){eh.prototype.onAudioToggled.call(this,S,c===void 0?!0:c);var Q;(Q=this.gameSnacks)==null||Q.audio.update(S)};
PZ.prototype.onPause=function(){eh.prototype.onPause.call(this);var S;(S=this.gameSnacks)==null||S.game.pause()};
PZ.prototype.onResume=function(){eh.prototype.onResume.call(this);var S;(S=this.gameSnacks)==null||S.game.resume()};var ltJ=hgp,YN_=_.y_(function(S){var c=S.data;var Q=S.loadingProgress;S=_.A(_.ny("",void 0,"LYYTdd"));var f=S.next().value,U=S.next().value;S=_.A(_.ny(!1,void 0,"K0waae"));var a=S.next().value,X=S.next().value,z=[],x=function(){return"transform: scaleX("+(_.Zf(Q)||0)+")"},I=null,n=function(){var H;
return(H=c()&&I)!=null?H:I=c().showAnniversaryAnimation?6:ltJ()};
_.To(function(){var H;if(c().timeOutMessages&&((H=c().timeOutMessages)==null?0:H.length)){I=null;H=_.A(z);for(var q=H.next();!q.done;q=H.next())clearTimeout(q.value);z.length=0;qGx(c().timeOutMessages,z,U,X)}},"hrKvCe");
var b=function(){return!!c().persistentErrorMessageTitle},N=function(){return Q!==void 0},l=function(){return c().title};
return _.B("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var H,q=(H=c().backgroundImage)==null?void 0:H.sources,w;return(q==null?0:q.length)?"background-image: url("+((w=q[0])==null?void 0:w.url)+")":
""}}),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.B(_.K,{cond:function(){return!b()},
then:function(){var H={};return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.B(_.b8,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+n()},
data:function(){var q="loading_animation_"+n();return{animationConfig:{name:q,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+q+".json",loop:!0,autoplay:!0}}}})),_.B("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.B(_.K,{cond:l,
then:function(){return _.B("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},l)}}),_.B("p",{class:_.n4("mini-app-splash-screen-view-model-wiz__timeout-message",(H["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return a()},H)),
"aria-live":"polite"},f),_.B(_.K,{cond:N,then:function(){return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.B("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:x}))}})))}}),_.B(_.K,{cond:b,
then:function(){return _.B("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.B("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return c().persistentErrorMessageTitle}),_.B(_.K,{cond:function(){return!!c().persistentErrorMessageDescription},
then:function(){return _.B("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return c().persistentErrorMessageDescription})}}))}})))},"Sd");var Ctd=new _.Sg("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var H_z=ox;ox=function(S){function c(Q){if(Q){var f,U;(f=Q.__spec)==null||(U=f.didUnmount)==null||U.call(f);for(f=0;f<Q.childNodes.length;f++)c(Q.childNodes[f])}}
H_z==null||H_z(S);h2(function(){for(var Q=0;Q<S.length;Q++)c(S[Q])})};var Dlz=_.y_(function(S){var c=S.data;var Q=S.score;var f=S.formattedScore;var U=S.onScoreChanged;var a=S.isEmbeddedInWebview;var X=_.tc("yt-mini-app-score-button-view-model"),z=function(){var l;return _.Y(c==null?void 0:(l=c())==null?void 0:l.buttonViewModel,_.Ya)},x=function(){var l;
return(Q==null?void 0:Q())||Number(c==null?void 0:(l=c())==null?void 0:l.lastScore)||0},I=function(){var l;
return(f==null?void 0:f())||((l=z())==null?void 0:l.title)||""},n,b=1;
if(S=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))S=Number(S),b=isNaN(S)?1:S/100;_.To(function(){U==null||U(x());var l;var H=_.Gv((l=z())==null?void 0:l.onTap);if(H){l=_.Y(H,Apd);var q,w,g;l=_.Y(l==null?void 0:(q=l.panelLoadingStrategy)==null?void 0:(w=q.inlineContent)==null?void 0:(g=w.dialogViewModel)==null?void 0:g.customContent,UUJ)}else l=void 0;if(q=l)q.score=I()},"KZFi5e");
S=_.$d(function(){var l,H,q=c==null?void 0:(l=c())==null?void 0:(H=l.loggingDirectives)==null?void 0:H.trackingParams;q&&_.F2(_.fl().resolve(_.Dp),q);return!1});
_.wC(function(){if(X.value){var l=X.value.querySelector("button"),H=z();l&&H&&TGo(l,H);mY("yt-share-playable-with-high-score",function(){var q=x().toString(),w=c==null?void 0:c().onShareHighScoreCommand,g=c==null?void 0:c().highScoreShareClientParamIdentifier,r=a==null?void 0:a();w&&(r?(g=new Vsp,q=_.bN(g,2,q),dD(w,q.JSC$10315_serializeBinary())):g&&(_.fl().resolve(Ctd).clientParams.set(g,{miniAppClientParams:{highScore:q}}),BGR(w,!1)))})}});
var N=function(){var l=z();l&&(Q==null?0:Q())&&l.accessibilityText&&(l.accessibilityText=l.accessibilityText.replace(n,I()));n=I();return{numberValue:x(),numberText:I(),heightPx:36,fontSizeMultiplier:b,shouldAnimate:!(Q==null||!Q())&&!0}};
return _.B("yt-mini-app-score-button-view-model",{class:function(){var l={};return _.No("mini-app-score-button-view-model-wiz",(l["mini-app-score-button-view-model-wiz--is-visible"]=x()!==0,l))},
el:X,"on:click":S},m2(!1,function(){return _.B("span",{style:"display:none;"},x)}),_.B(_.h8,{data:function(){var l;
return c==null?void 0:(l=c())==null?void 0:l.buttonViewModel}},{buttonViewModel:function(l){return _.B(_.Ze,{data:l.data,
animatedTextProps:N})}}))},"Td");var wQd=_.y_(function(S){var c,Q=(c=_.Bb("yt-mini-app-is-theater-mode-enabled"))!=null?c:!1,f=_.u("enable_playable_container_save_button"),U=_.u("enable_play_next_destination_page_in_toolbar");c={};return _.B("ytm-mini-app-top-bar-view-model",null,_.B("div",{class:_.n4("yt-mini-app-top-bar-view-model",(c["yt-mini-app-top-bar-view-model--mobile"]=!1,c["yt-mini-app-top-bar-view-model--desktop"]=!0,c))},_.B("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.B(_.K,{cond:function(){var a;
return!!S.data().backButtonEdu&&!((a=S.isExitMiniAppSeen)==null?0:a.call(S))},
then:function(){return _.B(_.h8,{data:function(){return S.data().backButtonEdu}},{buttonViewModel:_.Ze})},
else:function(){return _.B(_.h8,{data:function(){return S.data().backButton}},{buttonViewModel:_.Ze})}}),_.B(_.K,{cond:function(){return S.data().viewAllButton&&!0},
then:function(){return _.B(_.h8,{data:function(){return S.data().viewAllButton}},{buttonViewModel:_.Ze})}}),_.B(_.K,{cond:function(){return S.data().title&&!0},
then:function(){return _.B("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return S.data().title})}})),_.B("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.B(_.K,{cond:function(){var a;
return(a=S.isDesktopPlayPage)==null?void 0:a.call(S)},
then:function(){return _.B(_.ak,null,_.B(pQd,{highScoreButton:function(){return S.data().highScoreButton},
score:S.score,formattedScore:S.formattedScore,onScoreChanged:S.onScoreChanged,isEmbeddedInWebview:S.isEmbeddedInWebview}),_.B(h9l,{enableSaveButton:function(){return _.Zf(f)},
saveButton:function(){return S.data().saveButton},
isSaved:S.isSaved,onSaveToggled:function(){return S.onSaveToggled}}),_.B(qN_,{menuButton:function(){return S.data().menuButton}}))},
else:function(){return _.B(_.K,{cond:function(){return!1},
then:function(){return _.B(_.h8,{data:function(){return S.data().playPageButton}},{buttonViewModel:function(a){return _.B(_.Ze,{data:a.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.B(pQd,{highScoreButton:function(){return S.data().highScoreButton},
score:S.score,formattedScore:S.formattedScore,onScoreChanged:S.onScoreChanged,isEmbeddedInWebview:S.isEmbeddedInWebview})}})}})),_.B("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.B(_.h8,{data:function(){return S.data().muteButton}},{toggleButtonViewModel:function(a){var X=a.data;
return _.B(_.qs,{data:function(){var z,x;return Object.assign({},X(),{isToggled:(x=(z=S.isAudioEnabled)==null?void 0:z.call(S))!=null?x:!0})},
onToggle:S.onAudioToggled,useOutlinedIcon:!0})}}),_.B(_.h8,{data:function(){return S.data().theatreModeButton}},{toggleButtonViewModel:function(a){var X=a.data;
return _.B("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.B(_.qs,{data:function(){return Object.assign({},X(),{isToggled:Q})},
useOutlinedIcon:!0}))}}),_.B(Tyd,{fullscreenButton:function(){return S.data().fullscreenButton}}),_.B(_.K,{cond:function(){return _.Zf(U)&&S.data().viewAllButton&&!1},
then:function(){return _.B(_.h8,{data:function(){return S.data().viewAllButton}},{buttonViewModel:_.Ze})}}),_.B(_.K,{cond:function(){var a;
return!((a=S.isDesktopPlayPage)==null?0:a.call(S))},
then:function(){return _.B(_.ak,null,_.B(h9l,{enableSaveButton:function(){return _.Zf(f)},
saveButton:function(){return S.data().saveButton},
isSaved:S.isSaved,onSaveToggled:function(){return S.onSaveToggled}}),_.B(qN_,{menuButton:function(){return S.data().menuButton}}))}}))))},"Ud");
wQd.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var qN_=_.y_(function(S){return _.B(_.h8,{data:S.menuButton},{buttonViewModel:_.Ze})},"Vd"),h9l=_.y_(function(S){var c=S.enableSaveButton;
var Q=S.saveButton;var f=S.isSaved;var U=S.onSaveToggled;return _.B(_.K,{cond:function(){return c()&&!(Q==null||!Q())},
then:function(){return _.B(_.h8,{data:function(){var a=_.Y(Q==null?void 0:Q(),_.CS),X;return{toggleButtonViewModel:Object.assign({},a,{isToggled:(X=f==null?void 0:f())!=null?X:!(a==null||!a.isToggled)})}}},{toggleButtonViewModel:function(a){return _.B(_.qs,{data:a.data,
onToggle:U})}})}})},"Wd"),pQd=_.y_(function(S){var c=S.highScoreButton;
var Q=S.score;var f=S.formattedScore;var U=S.onScoreChanged;var a=S.isEmbeddedInWebview;return _.B(_.h8,{data:c},{miniAppScoreButtonViewModel:function(X){return _.B(Dlz,{data:X.data,score:Q,formattedScore:f,onScoreChanged:U,isEmbeddedInWebview:a})}})},"Xd"),Tyd=_.y_(function(S){S=S.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.B(_.ak,null):_.B(_.h8,{data:S},{buttonViewModel:_.Ze})},"Yd");_.sd$=new _.Sg("DESKTOP_CURRENT_PAGE");var gEd=_.y_(function(S){var c=S.data;var Q=_.u("force_active_time_logging_webview"),f=!1,U=new ati,a=void 0,X=void 0,z=_.fl().resolve(JIJ),x=new cId,I=void 0,n=void 0,b=[],N=void 0,l=void 0,H=!1,q=!1,w=!1,g=!1,r=new _.O_,E=_.fl().resolve(Ctd),v=_.fl().resolve(_.i3),t=_.fl().resolve(_.QS(nE)),V,AZ=(V=_.fl().resolve(_.QS(_.sd$)))==null?void 0:V.getCurrentPage(),IH=!1,Nr=0,Hc=function(vc){vc.preventDefault();return vc.returnValue=""},qr;
S=_.A(_.ny(!((qr=_.Bb("yt-mini-app-is-audio-enabled"))!=null&&!qr),void 0,"uFSsEd"));var wp=S.next().value,Pc=S.next().value,ex;qr=_.A(_.ny(!((ex=_.Bb("exit-mini-app-seen-state"))==null||!ex),void 0,"CVZNXc"));var yd=qr.next().value,op=qr.next().value;ex=_.A(_.ny(!1,void 0,"N46A8c"));var DT=ex.next().value,B_=ex.next().value;ex=_.A(_.ny(void 0,void 0,"qhL0Nd"));var zJ=ex.next().value,Qp=ex.next().value;ex=_.A(_.ny(void 0,void 0,"oOXpte"));var xl=ex.next().value,xZ=ex.next().value;ex=_.A(_.ny(!0,void 0,
"u4kGne"));var hj=ex.next().value,OT=ex.next().value;ex=_.A(_.ny(!1,void 0,"HoQxGc"));var uu=ex.next().value,sd=ex.next().value;ex=_.A(_.ny(void 0,void 0,"lWcQie"));var LT=ex.next().value,Ci=ex.next().value;ex=_.A(_.ny(0,void 0,"yw8Rmf"));var t$=ex.next().value,kp=ex.next().value,Ed=_.EH("mini-app-container-view-model"),J$=function(){return c().isEmbeddedInWebview},ez=function(){return c().hasPlayNextShelf};
mY("yt-page-type-changed",function(vc){if(_.u("enable_is_mini_app_page_active_bugfix"))vc.detail.newPageSubtype==="mini_app"&&vc.detail.newPageType==="ytd-browse"||!hj()||h$();else if(vc=_.bep()==="mini_app",vc!==hj())if(OT(vc),vc){var UZ;vc=(UZ=c().playableId)==null?void 0:UZ.toString();vc!==void 0&&window.location.href.includes(vc)&&!q&&(g=!0,$0(),FA(ni.value))}else vc||h$()});
mY("yt-action",function(vc){vc.detail.actionName==="yt-engagement-panel-visible-changed"&&vc.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&vc.detail.args[2]==="PAmini_app_panel"&&h$();_.u("enable_is_mini_app_page_active_bugfix")?vc.detail.actionName==="yt-history-load"&&!hj()&&(AZ==null?0:AZ.active)?(OT(!0),$0(),FA(ni.value)):vc.detail.actionName==="yt-history-load"&&hj()&&!c().isEmbeddedInWebview&&ui():hj()&&vc.detail.actionName==="yt-history-load"&&(g?g=!1:c().isEmbeddedInWebview||ui())});
_.wX(function(){$l()});
_.To(function(){$0()},"IGuu2e");
var $0=function(){var vc=c().playableId,UZ=c().localReleaseId,W8=c().derivedDeviceInterface;if(q)_.i5(new _.Yr("[MiniAppContainerViewModel] onEnter was called more than once"));else{q=!0;a=new ruH(vc,UZ,W8,document.visibilityState==="visible");LXd(a);X=new FbJ(vc);M_d(z,vc);Qde(x,{showMiniAppAdCommand:c().showMiniAppAdCommand,isEmbeddedInWebview:c().isEmbeddedInWebview,playLogger:a});CxR()&&(l=document.body.style.backgroundColor,_.GE(document.body,"background-color","black"));At();Ki();r=new _.O_;
if(c().isEmbeddedInWebview){if(vc=(new URLSearchParams(window.location.search)).get("postPlayNonce"))veH(a,vc),IH=!0;U.initialize({onAudioStateLoaded:function(Rg){XE(Rg)},
onMuteMiniApp:function(){XE(!1)},
onUnmuteMiniApp:function(){XE(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(Rg){IH||(veH(a,Rg),IH=!0)},
confirmExitMiniApp:function(){var Rg,on,U7;return _.O(function(Ba){if(Ba.nextAddress==1)return c().confirmExitMiniAppCommand?_.F(Ba,Promise.race([r.promise,Promise.resolve(!1)]),2):Ba.return();(Rg=Ba.yieldResult)?!c().confirmExitMiniAppCommandEdu||(U7=(on=yd)==null?void 0:on())!=null&&U7?j6(c().confirmExitMiniAppCommand):(j6(c().confirmExitMiniAppCommandEdu),_.F6("exit-mini-app-seen-state","true",2592E6)):j6(c().closeMiniAppCommand);_.IN(Ba)})},
onNativeBenchmarkingMessageReceived:function(Rg){Rg=Kl$(_.xpT(Rg));if(_.YH(Rg,_.rD,3,nuT)){var on=_.Wg(Rg,_.rD,3,nuT),U7=IaY();var Ba=Z3(U7.getSeconds())-Z3(on.getSeconds());on=_.Qa(U7,2)-_.Qa(on,2);Ba<0&&on>0?(Ba+=1,on-=1E9):Ba>0&&on<0&&(--Ba,on+=1E9);Ba=(new tM).setSeconds(Ba);Ba=_.Ch(Ba,2,_.Y0(on),0);_.Qx(Rg,1,Ba)}var Dv;(Dv=n)==null||Dv.returnNativeBenchmarkingMessage(Rg)},
multiplayer3pAckStateLoaded:function(Rg){ui(Rg)},
exitMiniAppSeenStateLoaded:function(Rg){c().confirmExitMiniAppCommandEdu&&op(Rg)},
onNavigateToNewMiniApp:function(){j6(c().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(Rg){Rg=new URLSearchParams(Rg);var on=void 0;Rg.has("invite_code")&&(on=new HDh,Rg=Rg.get("invite_code"),on=_.bN(on,1,Rg));if(Rg=on){var U7;(U7=n)==null||U7.sendGameData(Rg)}},
onPauseMiniApp:function(){f=!0;FE()},
onResumeMiniApp:function(){f=!0;an()},
onAdFinished:function(Rg){x.onAdFinished(Rg)}});
c().showMultiplayer3pConsentDialogCommand||r.resolve(!0);j6(c().onContainerReadyCommand)}else veH(a),r.resolve(!0);By$(X,dCp(a));dCp(a).then(function(Rg){Rg={miniAppPlayData:{postPlayNonce:Rg}};var on,U7=(on=c().loggingDirectives)==null?void 0:on.trackingParams;U7&&_.Kv().stateChanged(U7,Rg)});
vc=c().showSignInDialogCommand;!NGT()&&vc&&(_.F6("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),j6(vc));c().confirmExitMiniAppCommand&&t&&(vc=x2T(c().confirmExitMiniAppCommand))&&(t.customConfirmationCommand=vc)}},$l=function(){l&&_.GE(document.body,"background-color",l);
H=!1;N&&N.release();X.flush().catch(function(vc){_.i5(vc)});
z.flush().catch(function(vc){_.i5(vc)});
tQ$(a);iY();n=void 0;i_J(E)},h$=function(){OT(!1);
$l();B_(!1);Ci(void 0);Qp(void 0);xZ(void 0);Nr=0;kp(0);q=!1},FE=function(){var vc;
(vc=n)==null||vc.onPause();N&&N.release();X.flush().catch(function(UZ){_.i5(UZ)});
z.flush().catch(function(UZ){_.i5(UZ)});
Ee$(a)},an=function(){var vc;
(vc=n)==null||vc.onResume();Ki();vc=a;vc.isForeground=!0;GM(vc,"PLAY_EVENT_TYPE_PLAY_RESUME")},XE=function(vc){var UZ;
(UZ=n)==null||UZ.onAudioToggled(vc);Pc(vc)},ui=function(vc){c().showMultiplayer3pConsentDialogCommand&&(c().isEmbeddedInWebview&&vc!==void 0&&r.resolve(vc),!vc&&_.bep()==="mini_app"&&j6(c().showMultiplayer3pConsentDialogCommand))},gN=function(){var vc,UZ,W8,Rg;
return _.O(function(on){if(on.nextAddress==1){!c().isLivestream||c().disableVideoCapture||(vc=n)!=null&&vc.sendStartGameFrameCapture();UZ=(new URL(window.location.href)).searchParams;if(UZ.has("invite_code")){var U7=new HDh,Ba=UZ.get("invite_code");W8=_.bN(U7,1,Ba);(Rg=n)==null||Rg.sendGameData(W8)}DT()||(B_(!0),U7=a,U7.state!==1?_.i5(new _.Yr("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+e4d[U7.state])):(_.XJ("mini_app_ids_without_game_ready").includes(U7.JSC$14780_miniAppId)&&(U7.gameReady=
!0),U7.state=2,U7.beforeReady=!1,Zk(U7,"ma_ffr"),GM(U7,"PLAY_EVENT_TYPE_PLAY_READY")));return _.F(on,r.promise,2)}j6(c().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();c().isEmbeddedInWebview||ui();_.IN(on)})},rd=function(){var vc=a;
vc.gameReady=!0;Zk(vc,"ma_gr")},pT=function(vc){var UZ;
return _.O(function(W8){if(W8.nextAddress==1)return _.X1(W8,2),_.F(W8,nEd(X,vc),4);if(W8.nextAddress!=2)return _.Pi(W8,0);UZ=_.Bs(W8);j6(c().showSavingErrorPopupCommand);throw UZ;})},og=function(){var vc,UZ;
return _.O(function(W8){if(W8.nextAddress==1)return _.X1(W8,2),_.F(W8,ItH(X),4);if(W8.nextAddress!=2)return vc=W8.yieldResult,W8.return(vc);UZ=_.Bs(W8);j6(c().showLoadingErrorDialogCommand);throw UZ;})},Aj=function(vc){a.logError(vc)},sh=function(vc,UZ,W8){R4H(a,vc,UZ,W8)},zC=function(vc,UZ){oei(a,vc,UZ)},Cb=function(){!Q&&c().isEmbeddedInWebview||_.Q1();
VQ_(a,!0);H||(window.addEventListener("beforeunload",Hc,{capture:!0}),H=!0)},y0=function(vc){var UZ,W8,Rg,on,U7,Ba,Dv;
return _.O(function(pj){if(pj.nextAddress==1)return z&&(!I||I<vc)&&vc>0?_.F(pj,Z_p(z,vc),3):pj.jumpTo(0);UZ=pj.yieldResult;W8=_.A(UZ);Rg=W8.next().value;on=W8.next().value;U7=Rg;Ba=on;((Dv=U7)==null?0:Dv.displayString)&&Ba&&(Qp(Ba),xZ(U7.displayString));_.IN(pj)})},yx=function(vc){var UZ=c().onBenchmarkingMessageReceivedCommand;
if(UZ){var W8=IaY();_.fc(vc,3,nuT,W8);dD(UZ,$$l(vc))}},eB=function(vc){var UZ=c().onGameFrameReceivedCommand;
if(UZ){var W8=new wx;var Rg=new oqT;var on=wr(vc,1);Rg=_.YL(Rg,1,on);vc=_.MJ(vc,2);vc=_.bN(Rg,2,vc);W8=_.Qx(W8,2,vc);dD(UZ,fg_(W8))}},lM=function(vc){var UZ=c().onGameAudioDataReceivedCommand;
if(UZ){var W8=new wx;var Rg=new Snd;vc=_.MJ(vc,1);Rg=_.bN(Rg,1,vc);W8=_.Qx(W8,4,Rg);dD(UZ,fg_(W8))}},ZZ=function(){var vc=new URLSearchParams(window.location.search);
if(c().isEmbeddedInWebview&&vc&&vc.get("override_hl")==="true"&&vc.get("hl"))return vc.get("hl");vc=document.documentElement.lang;return vc!==""?vc:_.gP},rp=function(vc){var UZ=c().onShareInviteCodeCommand;
if(UZ)if(c().isEmbeddedInWebview){var W8=new Vsp;vc=_.bN(W8,1,vc);dD(UZ,ye$(vc))}else W8=c().inviteCodeShareClientParamIdentifier,E.clientParams.set(W8,{miniAppClientParams:{inviteCode:vc}}),j6(UZ)},bu=function(vc){var UZ,W8,Rg;
return _.O(function(on){if(on.nextAddress==1)return UZ=c().onMiniAppOpenYtContentRequested,z&&_.u("enable_open_yt_content")&&UZ?_.F(on,Gnd(z,vc),3):on.jumpTo(0);W8=on.yieldResult;if(W8==="OK")if(c().isEmbeddedInWebview){var U7=new tWd;Rg=b5(U7,2,TF,g1(vc));dD(UZ,yMe(Rg))}else v.clientData.set("video_id",vc),j6(UZ);_.IN(on)})},AU=function(vc){Nr+=_.Qa(vc,3);
vc=Math.min(Math.log(1+Nr/15E6*9)/Math.log(10),.99);kp(vc);qV(vc)},qV=_.jW(function(vc){var UZ=c().updateLoadingProgressCommand;
if(UZ){var W8=new tWd;vc=b5(W8,3,TF,_.zO(vc));dD(UZ,yMe(vc))}},100),B8=function(vc){return Ulp(x,vc)},Ki=function(){var vc,UZ;
((vc=_.kQT())==null?void 0:(UZ=vc.wakeLock)==null?void 0:UZ.request)!=null&&_.kQT().wakeLock.request("screen").then(function(W8){N=W8}).catch(function(){})},ni=_.EH("iframe");
_.To(function(){c().isSupportedCountry&&(NGT()||_.u("enable_sign_in_promo")||!c().showSignInDialogCommand?FA(ni.value):j6(c().onMiniAppReadyCommand))},"B7Lcnd");
var uE=function(){return _.B("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return DT()?0:-1},
el:ni})},FA=function(vc,UZ){UZ=UZ===void 0?!1:UZ;
var W8=ap();W8&&(UZ||W8.toString()!==vc.getAttribute("src"))&&(n=CfZ(c().source,{isAudioEnabled:wp,onFirstFrameReady:gN,onGameReady:rd,onSave:pT,onLoad:og,onError:Aj,onSdkCalled:sh,onSdkPerformanceUpdate:zC,onClick:Cb,onSendHighScore:y0,onBenchmarkingMessageReceived:yx,getLanguage:ZZ,onShareInviteCode:rp,onResourceLoaded:AU,onOpenYTContent:bu,onShowMiniAppAd:B8,onGameFrameReceived:eB,onGameAudioReceived:lM},vc,W8),jw(vc,"load",function(){Zk(a,"ma_il");jw(vc,"load",function(){FA(vc,!0)})}),_.TR(vc,
W8))},ap=function(){var vc=c().url;
if(vc&&(vc=_.iH(vc),vc!==null)){if(c().source&&c().source==="MINI_APP_SOURCE_GAMESNACKS")vc=_.fn(vc,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.u("enable_origin_query_parameter_bugfix")){var UZ=_.q7(_.XSo(vc.toString()));UZ=new URLSearchParams(UZ||"");UZ.set("origin",window.location.origin);UZ=UZ.toString();vc=_.Oy(vc).toString();vc=_.XK(Wpu.exec(vc)[0]+(UZ.trim()?"#"+UZ:""))}return vc}},bo=function(){var vc={};
vc=_.n4("yt-mini-app-container-view-model__loading-screen",(vc["yt-mini-app-container-view-model__loading-screen--fade-out"]=DT,vc));var UZ=function(){return DT()?1:t$()};
return _.B("div",{class:vc},_.B(_.h8,{data:function(){return c().splashScreen}},{miniAppSplashScreenViewModel:function(W8){return _.B(YN_,{data:W8.data,
loadingProgress:UZ})}}))},At=function(){b=[];
b.push(_.HI(window,"visibilitychange",function(){w||f&&J$()||(document.visibilityState==="visible"?an():FE())}));
b.push(_.HI(window,"pagehide",function(){$l()}));
b.push(_.HI(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&Ed.value.dispatchEvent(new Event("tap"))},0)}));
b.push(_.HI(Ed.value,"pointerdown",function(){VQ_(a,!1)},!0));
b.push(_.HI(Ed.value,"pause",function(){w=!0;FE()}));
b.push(_.HI(Ed.value,"play",function(){w=!1;an()}));
b.push(_.HI(Ed.value,"exit",function(){$l()}));
var vc=navigator.keyboard,UZ=vc&&vc.lock;b.push(_.HI(window,eWd,function(){sd(rzd());rzd()?(c().hasPlayNextShelf&&Sy("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),r5("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),UZ&&vc.lock(["Escape"])):(c().hasPlayNextShelf&&r5("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Sy("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),UZ&&vc.unlock())}));
c().showMultiplayer3pConsentDialogCommand&&b.push(_.HI(window,"yt-playables-ack-3p-data-usage",function(){Wbs(z)}));
c().confirmExitMiniAppCommandEdu&&b.push(_.HI(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.F6("exit-mini-app-seen-state","true",2592E6)}));
c().onGameAudioDataReceivedCommand&&b.push(_.HI(window,"message",function(W8){W8=W8.event_;var Rg=ni.value.src;if(Rg&&W8.origin===(new URL(Rg)).origin&&W8.data&&W8.data.type==="GAME_AUDIO"&&W8.data.audio&&W8.data.audio.length>0){var on=new FileReader;on.onload=function(){var U7=new wx;var Ba=new Snd;Ba=_.bN(Ba,1,on.result);U7=_.Qx(U7,4,Ba);dD(c().onGameAudioDataReceivedCommand,fg_(U7))};
on.readAsDataURL(new Blob([W8.data.audio]))}}))},iY=function(){b.forEach(function(vc){l7(vc)});
window.removeEventListener("beforeunload",Hc,{capture:!0})},j6=function(vc){vc&&BGR(vc,c().isEmbeddedInWebview||!1)},r5=function(vc,UZ){vc=_.A(Ed.value.getElementsByClassName(vc));
for(var W8=vc.next();!W8.done;W8=vc.next())W8.value.classList.add(UZ)},Sy=function(vc,UZ){vc=_.A(Ed.value.getElementsByClassName(vc));
for(var W8=vc.next();!W8.done;W8=vc.next())W8.value.classList.remove(UZ)};
return function(){var vc={};vc=_.n4("yt-mini-app-container-view-model",(vc["yt-mini-app-container-view-model--desktop"]=!0,vc["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},vc["yt-mini-app-container-view-model--ios-web-view"]=CxR(),vc["yt-mini-app-container-view-model--no-top-bar"]=function(){return!c().topBar},vc["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return c().hasPlayNextShelf},vc["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return c().hasPlayNextShelf},vc["yt-mini-app-container-view-model--show-peek-below"]=function(){return!uu()&&c().hasPlayNextShelf},vc));
var UZ={};UZ=_.n4("yt-mini-app-container-view-model__content",(UZ["yt-mini-app-container-view-model__content--desktop-content"]=!0,UZ["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return c().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},UZ["yt-mini-app-container-view-model--desktop-play-page"]=function(){return c().hasPlayNextShelf},UZ));
return _.B("mini-app-container-view-model",{el:Ed},_.B("div",{class:vc},_.B(_.K,{cond:function(){return c().topBar&&!uu()},
then:function(){return _.B(_.h8,{data:function(){return c().topBar}},{miniAppTopBarViewModel:function(W8){return _.B(wQd,{data:W8.data,
isAudioEnabled:wp,onAudioToggled:function(Rg){XE(Rg)},
score:zJ,formattedScore:xl,onScoreChanged:function(Rg){I=Rg},
isEmbeddedInWebview:J$,isSaved:LT,onSaveToggled:function(Rg){Ci(Rg)},
isExitMiniAppSeen:yd,isDesktopPlayPage:ez})}})}}),_.B("div",{class:UZ},_.B(_.K,{cond:hj,
then:function(){return uE()}}),_.B(_.K,{cond:function(){return!c().isEmbeddedInWebview},
then:function(){return bo()}}))))}()},"Zd");
gEd.idomCompat=!0;_.f4(gEd,"mini-app-container-view-model",{props:{data:_.y$}});var e9i=_.y_(function(S){var c=S.data;return _.B("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.B("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.$d(function(){var Q=c().onTap;Q&&_.kz(Q)})},_.B(_.K,{cond:function(){return c().icon},
then:function(Q){return _.B(_.C4,{icon:function(){return Q().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.B("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return c().title})))},"$d");
e9i.idomCompat=!0;var knd=_.y_(function(S){var c=_.EH("div"),Q=_.A(_.ny(void 0,void 0,"kFCJ0c")),f=Q.next().value,U=Q.next().value;Q=_.A(_.ny(void 0,void 0,"PIPgWd"));var a=Q.next().value,X=Q.next().value;Q=_.A(_.ny(void 0,void 0,"rV66ob"));var z=Q.next().value,x=Q.next().value,I=function(){var g=f();return g!==void 0?Math.abs(g):void 0},n=function(){var g=I();
return g===void 0||g<=3},b=function(){var g=I();
var r=a(),E=z();g=g!==void 0&&r!==void 0&&E!==void 0?r-E-g:void 0;return g===void 0||g<=3},N=function(g){c.value&&c.value.scrollBy({top:0,
left:(_.WY("HTML_DIR")==="rtl"?-1:1)*g*c.value.clientWidth,behavior:"smooth"})},l=function(){var g;
U((g=c.value)==null?void 0:g.scrollLeft);var r;X((r=c.value)==null?void 0:r.scrollWidth);var E;x((E=c.value)==null?void 0:E.clientWidth)},H=function(){N(-.5)},q=function(){N(.5)};
Q=_.$d(function(){l()});
_.qR(function(){l();if(c.value){var g=new ResizeObserver(l);g.observe(c.value);_.wX(function(){g.disconnect()})}});
var w={};return _.B("yt-sponsorships-scrollable-shelf",{class:_.n4("ytdSponsorshipsScrollableShelfHost",S.className)},_.B("div",{class:_.n4("ytdSponsorshipsScrollableShelfContent",(w.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return S.data().previousButton&&S.data().nextButton&&!n()&&!b()},w.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return S.data().previousButton&&!n()&&b()},w.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return S.data().nextButton&&
n()&&!b()},w)),
el:c,"on:scroll":Q},S.children),_.B(_.K,{cond:function(){return!n()},
then:function(){return _.B(_.h8,{data:function(){return S.data().previousButton}},{buttonViewModel:function(g){return _.B(_.Ze,{data:g.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:H})}})}}),_.B(_.K,{cond:function(){return!b()},
then:function(){return _.B(_.h8,{data:function(){return S.data().nextButton}},{buttonViewModel:function(g){return _.B(_.Ze,{data:g.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:q})}})}}))},"ae");
knd.idomCompat=!0;var dl_=_.y_(function(S){var c=S.data;S={};return _.B("yt-sponsorships-hub",{class:_.n4("ytdSponsorshipsHubHost",(S.ytdSponsorshipsHubHostIndented=function(){return c().indented},S))},_.B("div",{class:"ytdSponsorshipsHubHeader"},_.B("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.B("div",{class:"ytdSponsorshipsHubAvatar"},_.B(_.h8,{data:function(){return c().avatar}},{avatarViewModel:_.p3})),_.B(_.K,{cond:function(){return c().badgeImage},
then:function(Q){return _.B("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.B("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.B("div",{class:"ytdSponsorshipsHubBadge"},_.B(_.RW,{data:Q,targetWidth:24,targetHeight:24,alt:""}))))}})),_.B("div",{class:"ytdSponsorshipsHubDetails"},_.B("div",{class:"ytdSponsorshipsHubTierName"},function(){return c().tierName}),_.B("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return c().membershipType}),_.B("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return c().membershipDurationOrExpiry})),_.B("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.B(_.h8,{data:function(){return c().manageButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.B(_.h8,{data:function(){return c().actionMenuButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.B("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return c().perksTitle}),_.B(knd,{data:function(){return{previousButton:c().previousPerkButton,
nextButton:c().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.B("div",{class:"ytdSponsorshipsHubPerkCards"},_.B(_.h8,{data:function(){return c().perkCards}},{sponsorshipsHubPerkCardViewModel:e9i}),_.B(_.K,{cond:function(){return c().viewAllPerksButton},
then:function(Q){return _.B(rIT,{data:Q})}}))))},"be");
dl_.idomCompat=!0;var rIT=_.y_(function(S){var c=S.data;return _.B("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.B(_.h8,{data:function(){return c().button}},{buttonViewModel:_.Ze}),_.B("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.B("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return c().title}),_.B("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return c().subtitle})))},"ce");
rIT.idomCompat=!0;_.f4(dl_,"yt-sponsorships-hub",{props:{data:_.y$}});_.vEh=_.y_(function(S){var c=S.data;return _.B("yt-dual-avatar-view-model",{class:_.n4("ytDualAvatarViewModelHost",S.className),style:_.Yd({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var Q;return((Q=c().badgeCutoutRadius)!=null?Q:14)+"px"}})},_.B("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.B(_.h8,{data:function(){return c().startAvatar}},{avatarViewModel:_.p3}),_.B(_.h8,{data:function(){return c().endAvatar}},{avatarViewModel:_.p3})),_.B(_.h8,{data:function(){return c().badge}},
{contentPreviewImageViewModel:function(Q){return _.B("div",{class:"ytDualAvatarViewModelBadge"},_.B(_.cM,{data:Q.data}))}}))},"de");
_.vEh.idomCompat=!0;var Lbd=_.y_(function(S){var c=S.data;var Q,f=!((Q=_.fl().resolve(_.QS(_.Lv)))==null||!Q());S=_.uQ(function(){var n,b,N=f?(n=c().header)==null?void 0:n.backgroundColorDarkMode:(b=c().header)==null?void 0:b.backgroundColorLightMode;if(N!==void 0)return _.gh(N)},void 0,"UX2G6c");
Q=_.uQ(function(){var n,b;return f?(n=c().header)==null?void 0:n.backgroundImagePart1Dark:(b=c().header)==null?void 0:b.backgroundImagePart1Light},void 0,"GPAi1d");
var U=_.uQ(function(){var n,b;return f?(n=c().header)==null?void 0:n.backgroundImagePart2Dark:(b=c().header)==null?void 0:b.backgroundImagePart2Light},void 0,"nboJld"),a=_.uQ(function(){return _.WY("HTML_DIR")==="rtl"},void 0,"LGJceb"),X=_.EH("yt-sponsorships-perks-list"),z=!1,x=function(){var n=X.value;
if(n&&!z){var b,N=(b=n.parentElement)==null?void 0:b.parentElement;if(N)for(n=n.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),b=0;b<n.length;++b){var l=n[b];if(l instanceof HTMLElement){N.scrollTo({top:l.offsetTop+l.clientHeight/2-N.clientHeight/2,behavior:"smooth"});z=!0;break}}}};
_.wC(function(){var n=X.value;if(n){var b=new ResizeObserver(x);b.observe(n);_.wX(function(){b.disconnect()})}});
var I={};return _.B("yt-sponsorships-perks-list",{el:X,class:_.n4("ytdSponsorshipsPerksListHost",(I.ytdSponsorshipsPerksListHorizontalPadding=function(){return c().horizontalPaddingEnabled},I))},_.B("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.B("div",{class:"ytdSponsorshipsPerksListHeader",
style:_.Yd({"background-color":S})},_.B("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.B(_.K,{cond:Q,then:function(n){var b={};return _.B("div",{class:_.n4((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,b.ytdSponsorshipsPerksListFlipped=a,b))},_.B(_.RW,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.B("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.B(_.K,{cond:U,
then:function(n){var b={};return _.B("div",{class:_.n4((b.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=f,b.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!f,b.ytdSponsorshipsPerksListFlipped=a,b))},_.B(_.RW,{data:n,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.B("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.B(_.h8,{data:function(){var n;
return(n=c().header)==null?void 0:n.dualAvatar}},{dualAvatarViewModel:_.vEh})))),_.B("div",{class:"ytdSponsorshipsPerksListBody"},_.B("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return c().title}),_.B(_.K,{cond:function(){return c().perks},
then:function(n){return _.B(_.lW,{each:n},function(b,N){var l={};return _.B("div",{class:_.n4("ytdSponsorshipsPerksListPerkContainer",(l.ytdSponsorshipsPerksListSelectedPerk=function(){var H=N(),q=c().selectedPerkIndex;return H===q},l))},_.B(_.K,{cond:function(){return N()>0},
then:function(){return _.B("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.B("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.B(_.K,{cond:function(){return b.icon},
then:function(H){return _.B(_.C4,{icon:function(){return H().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.B("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.B("div",{class:"ytdSponsorshipsPerksListPerkTitle"},b.title),_.B("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.B(_.mw,{text:b.description})),_.B(_.K,{cond:function(){return b.instructions},
then:function(){var H,q;return _.B("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.B("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(H=b.instructions)==null?void 0:H.title),_.B("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.B(_.mw,{text:(q=b.instructions)==null?void 0:q.text})))}}))),_.B(_.K,{cond:function(){return b.emoji},
then:function(H){return _.B("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.B(_.lW,{each:function(){return H()}},function(q){return _.B(_.RW,{data:q,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.B(Pte,{data:b}))})}})))},"ee");
Lbd.idomCompat=!0;var Pte=_.y_(function(S){var c=S.data;var Q=function(X,z){return X===z},f=function(){var X=c();
X=_.Y(X==null?void 0:X.badgesShelf,cpi);return X!==void 0&&X!==null?X:{previousButton:{},nextButton:{}}},U=_.tc("div"),a=function(){var X=U.value;
if(X){var z=X.parentElement;if(z){X=X.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var x=0;x<X.length;++x){var I=X[x];if(I instanceof HTMLElement){z.scrollTo({left:I.offsetLeft+I.clientWidth/2-z.clientWidth/2,behavior:"instant"});break}}}}};
_.wC(function(){var X=U.value;if(X){var z=new ResizeObserver(a);z.observe(X);_.wX(function(){z.disconnect()})}});
return _.B("div",null,_.B(_.K,{cond:function(){return c().badges},
then:function(X){return _.B(knd,{data:f},_.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:U},_.B(_.lW,{each:function(){return X()}},function(z,x){var I={},n={},b={};
return _.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.B(_.K,{cond:function(){return x()>0},
then:function(){return _.B("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.B("div",{class:_.n4("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(I.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return Q(x(),c().currentBadgeIndex)},I.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!Q(x(),c().currentBadgeIndex)},I))},_.B("div",{class:_.n4("ytdSponsorshipsPerksListLoyaltyBadge",(n.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return Q(x(),
c().currentBadgeIndex)},n.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!Q(x(),c().currentBadgeIndex)},n))},_.B(_.K,{cond:function(){return z.image},
then:function(N){var l={};return _.B("div",{class:_.n4((l.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return Q(x(),c().currentBadgeIndex)},l.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!Q(x(),c().currentBadgeIndex)},l))},_.B(_.RW,{data:N,
alt:""}))}})),_.B("div",{class:_.n4("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(b.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return Q(x(),c().currentBadgeIndex)},b))},z.title)))})))}}))},"fe");
Pte.idomCompat=!0;_.f4(Lbd,"yt-sponsorships-perks-list",{props:{data:_.y$}});_.f4(_.y_(function(S){return _.B("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.B(_.K,{cond:function(){return S.data().image},
then:function(c){return _.B(_.RW,{className:"ytwFantasyEmptyStateViewModelImage",data:c,ariaHidden:!0,alt:""})}}),_.B(_.mw,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return S.data().title}}),_.B(_.mw,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return S.data().subtitle}}),_.B(_.h8,{data:function(){return S.data().primaryButton}},{buttonViewModel:function(c){return _.B(_.Ze,{data:c.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"ge"),"ytw-fantasy-empty-state-view-model",{props:{data:_.y$}});var EE_;var wvo=_.l9({buttonRenderer:_.ve});_.Qu(scY);_.xd(scY,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var dE=function(){var S=_.W.apply(this,arguments)||this;S.hideJoinButtonBeforeSubscribed=_.u("hide_join_button_before_subscribed");S.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return S};
_.C(dE,_.W);_.J=dE.prototype;_.J.hasShowDialogCommand=function(S){return!!_.Y(S,Apd)};
_.J.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"}}}};
_.J.updateJoinButtonOverrides=function(){var S,c;(S=_.Ur(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(c=S.polymerController)==null||c.set("overrides",this.joinButtonOverrides);if(S=_.Ur(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))S.overrides=this.joinButtonOverrides};
_.J.handleButtonRefreshAction=function(S){if(S=_.Y(S,D7H))this.set("data.membershipButton",S.membershipButton),this.notifyPath("data.membershipButton")};
_.J.onYtServiceRequestError=function(S){_.fD(this.hostElement,S.detail.error.message)};
_.J.onTap=function(){var S;(S=this.data)!=null&&S.navigationEndpoint&&this.hasShowDialogCommand(this.data.navigationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)};
_.J.handleUnsubscribeAction=function(){var S,c,Q;((S=this.data)==null?void 0:(c=S.membershipButton)==null?void 0:(Q=c.buttonRenderer)==null?void 0:Q.style)==="STYLE_PRIMARY"&&_.Ur(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.Rh.Object.defineProperties(dE.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.subscriptionStateEntity)==null||!S.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var S,c=(S=this.data)==null?void 0:S.membershipButton,Q;S=(c==null?void 0:c.buttonRenderer)||_.Y(c==null?void 0:(Q=c.timedAnimationButtonRenderer)==null?void 0:Q.buttonRenderer,_.GF);return(S==null?void 0:S.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(S==null?void 0:S.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(S==null?void 0:S.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}},
channelNameTabIndex:{configurable:!0,enumerable:!0,get:function(){var S;if(this.hasShowDialogCommand((S=this.data)==null?void 0:S.navigationEndpoint))return 0}},
channelNameRole:{configurable:!0,enumerable:!0,get:function(){var S;if(this.hasShowDialogCommand((S=this.data)==null?void 0:S.navigationEndpoint))return"button"}}});
dE.prototype.onTap=dE.prototype.onTap;dE.prototype.onYtServiceRequestError=dE.prototype.onYtServiceRequestError;dE.prototype.updateJoinButtonOverrides=dE.prototype.updateJoinButtonOverrides;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],dE.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],dE.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],dE.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.M9),_.P("design:type",Object)],dE.prototype,"ironButtonState",void 0);_.d([_.Z(),_.P("design:type",Object)],dE.prototype,"data",void 0);
_.d([_.M("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.P("design:type",Object),_.P("design:paramtypes",[])],dE.prototype,"hideJoin",null);_.d([_.Z(),_.P("design:type",String)],dE.prototype,"subscribeKey",void 0);_.d([_.Z({selectorArgs:["subscribeKey"],selector:YgY}),_.P("design:type",Object)],dE.prototype,"subscriptionStateEntity",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dE.prototype,"hideJoinButtonBeforeSubscribed",void 0);
_.d([_.M("subscriptionStateEntity"),_.Z({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],dE.prototype,"subscribed",null);_.d([_.M("subscribed","data.membershipButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],dE.prototype,"joinButtonOverrides",null);_.d([_.M("data.navigationEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],dE.prototype,"channelNameTabIndex",null);
_.d([_.M("data.navigationEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],dE.prototype,"channelNameRole",null);_.d([_.B0("joinButtonOverrides"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dE.prototype,"updateJoinButtonOverrides",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],dE.prototype,"onYtServiceRequestError",null);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],dE.prototype,"onTap",null);_.d([_.e({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],dE);
var t_h=_.aW()(dE,"ytd-video-owner-renderer",function(){if(EE_===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);EE_=S}S=EE_;return S},{slotProps:["date"],
allowedProps:["data","subscribeKey"],mode:1});_.f4(_.y_(function(S){var c=S.data;var Q;S=_.A(_.ny(!((Q=_.Bb("yt-mini-app-is-theater-mode-enabled"))==null||!Q),void 0,"LUeOgf"));var f=S.next().value,U=S.next().value,a;Q=(a=_.fl().resolve(_.QS(K4$)))!=null?a:function(){return _.B("div",null)};
_.L1("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){U(!0);_.F6("yt-mini-app-is-theater-mode-enabled",!0,2592E3)});
_.L1("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){U(!1);_.F6("yt-mini-app-is-theater-mode-enabled",!1,2592E3)});
a={};S={};var X={};return _.B("mini-app-play-page-renderer",{class:_.n4("miniAppPlayPageRendererHost",(a.miniAppPlayPageRendererHostDetailsView=function(){return!f()},a))},_.B("div",{class:_.n4("miniAppPlayPageRendererGameContainer",(S.miniAppPlayPageRendererGameContainerDetailsView=function(){return!f()},S))},_.B(_.h8,{data:function(){return c().containerViewModel}},{miniAppContainerViewModel:gEd}),_.B(_.K,{cond:function(){return c().channel&&c().subscribeButton},
then:function(){return _.B("div",{class:"miniAppPlayPageRendererChannelContainer"},_.B(_.h8,{data:function(){return c().channel}},{videoOwnerRenderer:function(z){return _.B(t_h,{data:z.data})}}),_.B(_.h8,{data:function(){return c().subscribeButton}},{subscribeButtonViewModel:function(z){return _.B(_.Dj,{data:z.data,
isOverlay:!1,animateWidth:!0})}}))}}),_.B(_.K,{cond:function(){return!f()&&c().description},
then:function(){return _.B("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.B("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return c().description}))}})),_.B("div",{class:_.n4("miniAppPlayPageRendererPlayNextContainer",(X.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!f()},X))},_.B(_.h8,{data:function(){return c().sectionList}},{sectionListRenderer:Q})))},"he"),"mini-app-play-page-renderer",{props:{data:_.y$}});var vF=function(){var S=_.W.apply(this,arguments)||this;S.isSearch=!1;S.isConstrainedList=!1;S.hasChipsBar=!1;S.inReplyPanel=!1;S.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"}};S.monitorScroll=!0;S.SCROLL_ANIMATION_DURATION_MS=300;S.nextContinuation={continuationType:"sectionListContinuation"};return S};
_.C(vF,_.W);_.J=vF.prototype;
_.J.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(S){switch(S.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:_.u("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.u("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.J.created=function(){var S=this;this.JSC$14918_scrollAnimation=new _.ML(function(c){S.hostElement.scrollTop=c})};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.J.getItemsPath=function(){return"data.contents"};
_.J.replacePrimaryContent=function(S){this.set("data.contents",S)};
_.J.computeHasSortFilter=function(S){return!!S&&!!S.sortFilterSubMenuRenderer};
_.J.computeShouldScrollInPanel=function(S){var c;return!!(S==null?0:(c=S.scrollPaneStyle)==null?0:c.scrollable)};
_.J.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.a1(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.J.scrollToTop=function(){this.hostElement.scrollTop=0};
_.J.scrollToItemSection=function(S){if(S=this.getItemByIdentifier(S))S=this.getScrollPositionForItem(S),this.hostElement.scrollTop!==S&&this.JSC$14918_scrollAnimation.start(this.hostElement.scrollTop,S,this.SCROLL_ANIMATION_DURATION_MS)};
_.J.getItemByIdentifier=function(S){var c=this.contents.querySelectorAll("ytd-item-section-renderer");if(c&&c.length!==0){var Q=Array.from(c).findIndex(function(f){return f.sectionIdentifier===S});
return c[Q===-1?0:Q]}};
_.J.getScrollPositionForItem=function(S){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===S)return 0;S=_.wb(S).y+this.hostElement.scrollTop-_.wb(this.hostElement).y;return Math.min(S,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.Rh.Object.defineProperties(vF.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.targetId)==="browse-feedFEclips"}}});
vF.prototype.onScroll=vF.prototype.onScroll;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],vF.prototype,"ytLazyListBehavior",void 0);_.d([_.p(_.vM.YtNextContinuationBehavior),_.P("design:type",Object)],vF.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.p(_.i7p),_.P("design:type",Object)],vF.prototype,"ytBooleanLogicBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],vF.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vF.prototype,"data",void 0);_.d([_.Z({value:2}),_.P("design:type",Number)],vF.prototype,"initialCount",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],vF.prototype,"autoFill",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.P("design:type",Boolean)],vF.prototype,"hasSortFilter",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.P("design:type",Boolean)],vF.prototype,"hideBottomSeparator",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.P("design:type",Boolean)],vF.prototype,"shouldScrollInPanel",void 0);
_.d([_.Z(),_.P("design:type",Object)],vF.prototype,"isSearch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],vF.prototype,"isConstrainedList",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],vF.prototype,"responsiveSizing",void 0);_.d([_.Z(),_.P("design:type",Object)],vF.prototype,"hasChipsBar",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],vF.prototype,"pageSubtype",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],vF.prototype,"engagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],vF.prototype,"liveChatEngagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],vF.prototype,"inReplyPanel",void 0);_.d([_.nU("#action-button"),_.P("design:type",HTMLElement)],vF.prototype,"actionButton",void 0);_.d([_.Z(),_.P("design:type",Object)],vF.prototype,"scrollUpButtonData",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],vF.prototype,"engagementPanelDropdown",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],vF.prototype,"engagementPanelDialog",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],vF.prototype,"isClipList",null);_.d([_.nU("#contents"),_.P("design:type",HTMLElement)],vF.prototype,"monitorScrollElement",void 0);_.d([_.nU("#contents"),_.P("design:type",HTMLElement)],vF.prototype,"contents",void 0);
_.d([_.FV("scroll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vF.prototype,"onScroll",null);_.d([_.e({is:"ytd-section-list-renderer",disableElementRegistration:!0})],vF);
var V_l=_.aW()(vF,"ytd-section-list-renderer",function(){if(Nmi===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);Nmi=S}S=Nmi;return S},{mode:1});var R9i;var yId;var oE$;var mlH;var PF=function(){return _.W.apply(this,arguments)||this};
_.C(PF,_.W);PF.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
PF.prototype.onLikeButtonClick=function(S){S.stopPropagation();S.preventDefault()};
_.Rh.Object.defineProperties(PF.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)!=null&&S.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)})}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],PF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],PF.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],PF.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],PF.prototype,"ytRendererStamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],PF.prototype,"data",void 0);
_.d([_.Z({selectorArgs:["data.likeStatusEntityKey"],selector:W3}),_.P("design:type",Object)],PF.prototype,"likeStatusEntity",void 0);_.d([_.M("data","likeStatusEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],PF.prototype,"likeButtonRenderer",null);_.d([_.e({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],PF);
_.k(PF,"ytd-slim-metadata-toggle-button-renderer",function(){if(mlH!==void 0)return mlH;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return mlH=S},{mode:1});var LN=function(){var S=_.W.apply(this,arguments)||this;S.minimizePipBreakages=_.u("web_pip_minimize_breakages");S.showEqualizer=_.u("web_enable_playlist_video_lockup_equalizer");S.watchColorUpdate=_.u("kevlar_watch_color_update");S.actionMap={};return S};
_.C(LN,_.W);_.J=LN.prototype;_.J.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"}}}};
_.J.computeEditableClass=function(S){return S&&S.menu?"editable":""};
_.J.computeSelected=function(S){return!(S==null||!S.selected)};
_.J.computeUseColorPalette=function(S){return!!((S==null?0:S.lightColorPalette)&&(S==null?0:S.darkColorPalette))};
_.J.computeLargerPlaylistThumbs=function(S,c){return _.u("web_enable_playlist_bigger_thumbnails")&&!c};
_.J.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.J.onYtServiceRequestSent=function(S,c){c.endpoint&&this.isHideEnclosingAction(c.endpoint)&&!this.selected&&D0d(_.r2(),this.data.videoId)};
_.J.isHideEnclosingAction=function(S){var c=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",S);S=this.get("likeEndpoint.status",S)==="INDIFFERENT";return c||S};
_.J.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.J.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.Rh.Object.defineProperties(LN.prototype,{reorderIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"equal":"yt-icons:drag_handle"}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var S;return!!(this.withinMiniplayer&&((S=this.data)==null?0:S.actionButtons))}}});
LN.prototype.onYtServiceRequestSent=LN.prototype.onYtServiceRequestSent;LN.prototype.canReorderChanged=LN.prototype.canReorderChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],LN.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LN.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.rL),_.P("design:type",Object)],LN.prototype,"ytdLockupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LN.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],LN.prototype,"withinMiniplayer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],LN.prototype,"minimizePipBreakages",void 0);_.d([_.Z({computed:"computeSelected(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],LN.prototype,"selected",void 0);
_.d([_.Z({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],LN.prototype,"useColorPalette",void 0);_.d([_.Z({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.P("design:type",Boolean)],LN.prototype,"largerPlaylistThumbs",void 0);_.d([_.Z(),_.P("design:type",Object)],LN.prototype,"showEqualizer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],LN.prototype,"canReorder",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],LN.prototype,"touchPersistentDragHandle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],LN.prototype,"handleIsHovered",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],LN.prototype,"watchColorUpdate",void 0);_.d([_.Z(),_.P("design:type",String),_.P("design:paramtypes",[])],LN.prototype,"reorderIcon",null);
_.d([_.M("largerPlaylistThumbs"),_.P("design:type",Number),_.P("design:paramtypes",[])],LN.prototype,"thumbnailWidth",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],LN.prototype,"showActionButtons",null);_.d([_.$n("canReorder"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LN.prototype,"canReorderChanged",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],LN.prototype,"onYtServiceRequestSent",null);_.d([_.e({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],LN);
_.k(LN,"ytd-playlist-panel-video-renderer",function(){if(oE$!==void 0)return oE$;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return oE$=S},{mode:2});var Ew=function(){return _.W.apply(this,arguments)||this};
_.C(Ew,_.W);Ew.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ew.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ew.prototype,"data",void 0);_.d([_.e({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],Ew);
_.k(Ew,"ytd-playlist-panel-supported-items",function(){if(yId!==void 0)return yId;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return yId=
S},{mode:1});khe=!0;fLs("\\P{N}");var McH;var Sfd=_.K8("END_OF_PLAYLIST",void 0,"End of playlist"),ciz=_.K8("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),tn=function(){var S=_.W.apply(this,arguments)||this;S.minimizePipBreakages=_.u("web_pip_minimize_breakages");S.updatedCoursePanel=_.u("move_three_dot_menu_to_playlist_panel_header_for_courses");S.hideHeaderText=!1;S.useColorPalette=!1;S.collapsed=!1;S.collapsedPreServerOverride="not_tracked";S.isHovered=!1;S.modernPanels=_.u("kevlar_watch_modern_panels");
S.expandLabel=_.K8("MINIPLAYER_EXPAND_LABEL");S.collapseLabel=_.K8("MINIPLAYER_COLLAPSE_LABEL");S.isFloating=!1;S.metaPanel=!1;S.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};S.currentIndex=void 0;return S};
_.C(tn,_.W);_.J=tn.prototype;
_.J.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"}}}};
_.J.created=function(){this.scrollThrottle=new _.S0(this.onThrottledScroll,1E3,this)};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.computeOverflowMenuData=function(S){return S&&S.menu?S.menu:null};
_.J.computeCollapsible=function(S){return!S};
_.J.computeHasPlaylistButtons=function(S){return!(!S||!S.playlistButtons)};
_.J.computeHasSeparateSaveButton=function(S){return!(!S||!S.saveButton)};
_.J.computeHasToolbarButton=function(S,c){return!(!S||!(c||S.saveButton||S.menu))};
_.J.computePlaylistType=function(S){if(S&&S.playlistId)return S.playlistId.substring(0,4)};
_.J.computeCanReorder=function(S){return S?S.playlistId&&S.playlistId.startsWith("TLPQ")?!0:!!S.isEditable&&!S.isInfinite:!1};
_.J.attached=function(){var S=this;try{_.fl().resolve(_.G7).setPlaylistComponent(this.hostElement)}catch(c){if(_.u("kevlar_park_on_playlist_token_killswitch"))throw c;_.g2().parkOrScheduleJob(function(){_.fl().resolve(_.G7).setPlaylistComponent(S.hostElement)},2,"ci")}_.Jz(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.J.detached=function(){_.aI(this.hostElement)};
_.J.computeTrailingIcon=function(S,c,Q){return Q?c?"yt-icons:collapse":"yt-icons:close":c?"yt-icons:expand":_.u("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.J.computeIndexMessage=function(S,c){return GYZ(S+1)+" / "+GYZ(c)};
_.J.onRenderStamperFinished=function(){if(this.scrollForStampDom){var S=!0;this.isHovered&&(S=!1);if(this.collapsed||this.hidden)S=!1;S&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.J.collapseChanged=function(){var S=this;this.collapsed||(_.pS(this.ytTaskEmitterBehavior.getTaskManager(),function(){S.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.J.hiddenChanged=function(){var S=this;this.hidden||_.pS(this.ytTaskEmitterBehavior.getTaskManager(),function(){S.scrollToCurrentVideo()})};
_.J.setupReordering=function(){var S=_.Ur(this.hostElement).querySelector("#items");U5_?_.Vqs(this.ytReorderableBehavior,S,S,"playlist-drag-handle"):_.Vqs(this.ytReorderableBehavior,S,S)};
_.J.scrollToCurrentVideo=function(){var S=this;_.Mq.addJob(function(){var c=_.Ur(S.hostElement).querySelector("#items");if(c){c.style.setProperty("padding-bottom","");var Q=_.Ur(S.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(Q){c=Q.parentElement||_.D$(document);var f=c||_.D$(document);var U=_.wb(Q),a=_.wb(f),X=_.hsd(f);if(f==_.D$(document)){var z=U.x-f.scrollLeft;U=U.y-f.scrollTop}else z=U.x-a.x-X.left,U=U.y-a.y-X.top;Q=Cud(Q);a=f.clientHeight-
Q.height;X=f.scrollLeft;var x=f.scrollTop;X+=z-(f.clientWidth-Q.width)/2;f=new _.pn(X,x+(U-a/2));c.scrollLeft=f.x;c.scrollTop=f.y}}},8)};
_.J.dataChanged=function(){var S=this;_.tqi(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.tO(this,function(){_.HG(S.ytTaskEmitterBehavior.getTaskManager(),function(){S.ytRendererBehavior.markDirty();S.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.J.onTheaterModeChanged=function(){_.u("web_watch_imax_theater_mode")&&(this.isTheaterMode?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.onFullscreenChanged=function(){_.u("web_watch_close_eps_on_fullscreen")&&(this.isFullscreen?this.setCollapsed(!0):this.setCollapsed(!1))};
_.J.updateNowPlayingOverlay=function(){_.u("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.J.onPlaylistLockupNowPlaying=function(S,c){c&&(this.activeNowPlayingRenderer=c);this.updateNowPlayingOverlay()};
_.J.onScroll=function(){this.scrollThrottle.fire()};
_.J.onThrottledScroll=function(){var S=this;_.HG(this.ytTaskEmitterBehavior.getTaskManager(),function(){S.ytRendererBehavior.markDirty()})};
_.J.onToggleExpanded=function(S){!this.collapsible||S&&(_.VI(S).tagName==="A"||_.RZ(_.t4(S),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"]))||(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.J.setCollapsed=function(S){this.collapsible&&(this.collapsed=S,_.Oz(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.J.handleCollapsedFromData=function(S){if(S){var c=S.playlistPanelCollapseState;c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||c==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),c=c==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==c&&this.setCollapsed(c)):this.currentPlaylistId!==S.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(c=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==c&&this.setCollapsed(c),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=S.playlistId}};
_.J.handleDrop=function(S){var c=S.currDragItem;S=c.data.playlistSetVideoId;var Q=_.kY(c.parentNode.childNodes,c),f=void 0;Q>0&&(f=c.parentNode.childNodes[Q-1].data.playlistSetVideoId);c=_.r2();if(c.responsePlaylistData&&c.responsePlaylistData.contents){var U=yAZ(S,c.responsePlaylistData);c.responsePlaylistData=(0,_.Cn.unsafeClone)(c.responsePlaylistData);YTx(c.responsePlaylistData.contents,U,Q);c.queueProxy?Q5d(c.queueProxy,U,Q,S,f):c.playlistProxy&&Q5d(c.playlistProxy,U,Q,S,f);_.d2(c,_.vL(c,c.response?
c.response.autoplayRenderer:void 0))}};
_.J.handleDarkModeChange=function(S){S!==this.isDarkTheme&&(this.isDarkTheme=S)};
_.J.colorPaletteChanged=function(){var S,c=((S=this.data)==null?void 0:S.contents)||[],Q;S=_.A(c);for(c=S.next();!c.done;c=S.next()){c=c.value;var f=void 0;if((f=c.playlistPanelVideoRenderer)==null?0:f.selected){S=c.playlistPanelVideoRenderer;f=c=void 0;(Q=this.isDarkTheme?(c=S)==null?void 0:c.darkColorPalette:(f=S)==null?void 0:f.lightColorPalette)&&_.s2(this.hostElement,Q);break}}this.useColorPalette=!!Q};
_.Rh.Object.defineProperties(tn.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.playlistId)&&!((c=this.data)==null||!c.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var S=_.fl().resolve(_.QS(_.G7)),c;if(((c=this.data)==null?0:c.contents)&&(S==null?0:S.hasAutoplayData())){var Q;if(((Q=this.playlistLoopStateEntity)==null?void 0:Q.state)==="PLAYLIST_LOOP_STATE_ONE"){if(S=this.data.currentIndex,S!==void 0){var f,U;var a=(f=this.data.contents[S])==null?void 0:(U=f.playlistPanelVideoRenderer)==null?void 0:U.title}}else{var X,z=(X=_.Y(S.getAutoplayEndpoint(),_.tG))==null?void 0:X.videoId,x,I;a=(x=this.data.contents.find(function(n){var b;
return((b=n.playlistPanelVideoRenderer)==null?void 0:b.videoId)===z}))==null?void 0:(I=x.playlistPanelVideoRenderer)==null?void 0:I.title}return a}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)!=null&&S.nextVideoLabel?this.nextVideoTitle?_.Em(this.data.nextVideoLabel)+":":Sfd:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var S;if(((S=this.data)==null?0:S.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.LK(ciz);var c;return(c=this.data)==null?void 0:c.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f=(S=this.data)==null?void 0:(c=S.playlistButtons)==null?void 0:(Q=c.menuRenderer)==null?void 0:Q.topLevelButtons;if(f)for(S=_.A(f),c=S.next();!c.done;c=S.next())if(c=c.value,c.playlistLoopButtonRenderer)return c.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var S;return!!(this.collapsed&&((S=this.data)==null?0:S.nextVideoLabel))}}});
tn.prototype.colorPaletteChanged=tn.prototype.colorPaletteChanged;tn.prototype.onPlaylistLockupNowPlaying=tn.prototype.onPlaylistLockupNowPlaying;tn.prototype.updateNowPlayingOverlay=tn.prototype.updateNowPlayingOverlay;tn.prototype.onFullscreenChanged=tn.prototype.onFullscreenChanged;tn.prototype.onTheaterModeChanged=tn.prototype.onTheaterModeChanged;tn.prototype.dataChanged=tn.prototype.dataChanged;tn.prototype.hiddenChanged=tn.prototype.hiddenChanged;tn.prototype.collapseChanged=tn.prototype.collapseChanged;
tn.prototype.onRenderStamperFinished=tn.prototype.onRenderStamperFinished;tn.prototype.onMouseLeave=tn.prototype.onMouseLeave;tn.prototype.onMouseEnter=tn.prototype.onMouseEnter;_.d([_.p(_.w9),_.P("design:type",Object)],tn.prototype,"ironResizableBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],tn.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(L_H.YtPlaylistPanelBehavior),_.P("design:type",Object)],tn.prototype,"ytPlaylistPanelBehavior",void 0);_.d([_.p(_.Qv.YtTaskEmitterBehavior),_.P("design:type",Object)],tn.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.p(_.RNJ),_.P("design:type",Object)],tn.prototype,"ytReorderableBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],tn.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],tn.prototype,"ytdReduxBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],tn.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tn.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],tn.prototype,"autoplayData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],tn.prototype,"withinMiniplayer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"minimizePipBreakages",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"updatedCoursePanel",void 0);_.d([_.Z({computed:"setMenuData_(data)"}),_.P("design:type",Object)],tn.prototype,"menuRendererData",void 0);_.d([_.Z({computed:"computeOverflowMenuData(data)"}),_.P("design:type",Object)],tn.prototype,"overflowMenuDataTopRow",void 0);_.d([_.Z({computed:"computeOverflowMenuData(data)"}),_.P("design:type",Object)],tn.prototype,"overflowMenuData",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"hideHeaderText",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"useColorPalette",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.P("design:type",Boolean)],tn.prototype,"collapsible",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"collapsed",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],tn.prototype,"hidden",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.P("design:type",Boolean)],tn.prototype,"hasPlaylistButtons",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.P("design:type",Boolean)],tn.prototype,"hasSeparateSaveButton",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.P("design:type",Boolean)],tn.prototype,"hasToolbar",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.P("design:type",String)],tn.prototype,"playlistType",void 0);_.d([_.Z(),_.P("design:type",Object)],tn.prototype,"isHovered",void 0);_.d([_.Z({selectorArgs:["playlistLoopStateEntityKey"],selector:_.qgT}),_.P("design:type",Object)],tn.prototype,"playlistLoopStateEntity",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"modernPanels",void 0);_.d([_.Z({value:56}),_.P("design:type",Number)],tn.prototype,"scrollMargin",void 0);_.d([_.Z({computed:"computeCanReorder(data)"}),_.P("design:type",Boolean)],tn.prototype,"canReorder",void 0);_.d([_.Z(),_.P("design:type",Object)],tn.prototype,"expandLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],tn.prototype,"collapseLabel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"isFloating",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tn.prototype,"metaPanel",void 0);_.d([_.Z({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.P("design:type",String)],tn.prototype,"trailingIcon",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],tn.prototype,"isDarkTheme",void 0);
_.d([_.Z({selector:_.sm}),_.P("design:type",Boolean)],tn.prototype,"miniplayerIsActive",void 0);_.d([_.Z({selector:function(S){return S.watch.playerState}}),
_.P("design:type",Number)],tn.prototype,"playerState",void 0);_.d([_.Z({selector:_.gJ}),_.P("design:type",Boolean)],tn.prototype,"isFullscreen",void 0);_.d([_.Z({selector:_.WK}),_.P("design:type",Boolean)],tn.prototype,"isTheaterMode",void 0);_.d([_.Z(),_.P("design:type",Object)],tn.prototype,"activeNowPlayingRenderer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],tn.prototype,"moveThreeDotMenuToTopRow",null);
_.d([_.M("data","autoplayData","playlistLoopStateEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],tn.prototype,"nextVideoTitle",null);_.d([_.M("data","nextVideoTitle"),_.P("design:type",String),_.P("design:paramtypes",[])],tn.prototype,"nextVideoLabel",null);_.d([_.M("collapsed"),_.P("design:type",String),_.P("design:paramtypes",[])],tn.prototype,"buttonAriaLabel",null);
_.d([_.M("data","playlistId","longBylineText"),_.P("design:type",Object),_.P("design:paramtypes",[])],tn.prototype,"mixLongByLine",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],tn.prototype,"playlistLoopStateEntityKey",null);_.d([_.FV("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"onMouseEnter",null);
_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"onMouseLeave",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],tn.prototype,"showNextVideoHeader",null);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"onRenderStamperFinished",null);
_.d([_.B0("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"collapseChanged",null);_.d([_.B0("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"hiddenChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"dataChanged",null);
_.d([_.B0("isTheaterMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"onTheaterModeChanged",null);_.d([_.B0("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"onFullscreenChanged",null);_.d([_.B0("playerState","miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"updateNowPlayingOverlay",null);
_.d([_.FV("yt-playlist-lockup-now-playing-active"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],tn.prototype,"onPlaylistLockupNowPlaying",null);_.d([_.B0("data","isDarkTheme"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tn.prototype,"colorPaletteChanged",null);_.d([_.e({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],tn);
_.Q$l=_.aW()(tn,"ytd-playlist-panel-renderer",function(){if(R9i===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);R9i=S}S=R9i;return S},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var f_u;var Vm=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_button_rework");return S};
_.C(Vm,_.W);Vm.prototype.computeShouldButtonBeVertical=function(S,c){return S||c};
Vm.prototype.onYtServiceRequestSent=function(S,c){(S=_.Y(c.endpoint,_.LD))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.Ns("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:S.status})):this.handleLikeEndpoint(S))};
Vm.prototype.computelikeStatusEntityKey=function(S){return S==null?void 0:S.likeStatusEntityKey};
Vm.prototype.handleLikeEndpoint=function(S){S.status==="LIKE"?this.JSC$14943_ytdDislikeToggleButtonRenderer.toggle(!1):S.status==="DISLIKE"?this.JSC$14943_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14943_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14943_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.Rh.Object.defineProperties(Vm.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var S;return kYY(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(S=this.likeStatusEntity)==null?void 0:S.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var S;if(this.data&&((S=this.data)==null||!S.hideDislikeButton)){var c;return kYY(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(c=this.likeStatusEntity)==null?void 0:c.likeStatus)}}}});
Vm.prototype.onYtServiceRequestSent=Vm.prototype.onYtServiceRequestSent;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Vm.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Vm.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Vm.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Vm.prototype,"vertical",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Vm.prototype,"textTransform",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Vm.prototype,"useShortsIcon",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Vm.prototype,"underIconLabel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Vm.prototype,"modern",void 0);_.d([_.Z({value:"left"}),_.P("design:type",String)],Vm.prototype,"buttonTooltipPosition",void 0);
_.d([_.Z(),_.P("design:type",Object)],Vm.prototype,"overrides",void 0);_.d([_.nU("#like-button"),_.P("design:type",Object)],Vm.prototype,"JSC$14943_ytdLikeToggleButtonRenderer",void 0);_.d([_.nU("#dislike-button"),_.P("design:type",Object)],Vm.prototype,"JSC$14943_ytdDislikeToggleButtonRenderer",void 0);_.d([_.M("data","likeStatusEntity.likeStatus"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vm.prototype,"likeButton",null);
_.d([_.M("data","likeStatusEntity.likeStatus"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vm.prototype,"dislikeButton",null);_.d([_.Z({computed:"computelikeStatusEntityKey(data)"}),_.P("design:type",String)],Vm.prototype,"likeStatusEntityKey",void 0);_.d([_.Z({selectorArgs:["likeStatusEntityKey"],selector:W3}),_.P("design:type",Object)],Vm.prototype,"likeStatusEntity",void 0);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],Vm.prototype,"onYtServiceRequestSent",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],Vm);
var Uvl=_.aW()(Vm,"ytd-like-button-renderer",function(){if(f_u===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);f_u=S}S=f_u;return S},{mode:1});_.Ji_={};
_.Ji_.YtConditionalRendererBehavior=[_.m.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(S,c){var Q=this,f,U;return _.O(function(a){switch(a.nextAddress){case 1:if(!c)return Q.hidden=!0,Q.showSpinner=!1,a.return();if((f=S)==null?0:(U=f.visibilityCondition)==null?0:U.mode)switch(S.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return a.jumpTo(5);default:return a.jumpTo(6)}Q.showSpinner=
!1;Q.hidden=!0;return _.F(a,Q.shouldShow_(S),4);case 4:Q.hidden=!a.yieldResult;a.jumpTo(0);break;case 5:return _.F(a,Q.shouldShow_(S),8);case 8:Q.showSpinner=a.yieldResult;Q.hidden=!1;a.jumpTo(0);break;case 6:return Q.showSpinner=!1,_.F(a,Q.shouldShow_(S),9);case 9:Q.hidden=!a.yieldResult,_.IN(a)}})},
shouldShow_:function(S){return S&&S.supportedDatas&&S.supportedDatas.rendererVisibilityConditionData&&S.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(S.supportedDatas.rendererVisibilityConditionData.showIf):S&&S.visibilityCondition&&S.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(S.visibilityCondition.showIf):S&&S.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(S.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(S){switch(S){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(S){switch(S){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var S=_.XF(this.hostElement,"yt-get-mdx-status");return S.length==1&&S[0].connected},
isLocationPermissionGranted_:function(){var S;return _.O(function(c){return c.nextAddress==1?navigator.permissions?_.F(c,navigator.permissions.query({name:"geolocation"}),3):c.jumpTo(2):c.nextAddress!=2?(S=c.yieldResult,c.return(Promise.resolve(S.state==="granted"))):c.return(Promise.resolve(!1))})}}];var a_d=function(S,c){c=c===void 0?{}:c;return function(Q){var f=document.createElement(S),U;var a=(U=f.polymerController)!=null?U:f;vgT(f,a,Q,c);return f}}("yt-icon"),Aid=_.u("web_bypass_polymer_yt_icon")&&_.u("kevlar_use_wil_icons")?_.y_(function(S){var c=S.icon;
var Q=S.active;var f=S.className;var U=S.style;var a=S.dataSelected;var X=S.dataDisabled;var z=S.role;var x=S.themeOverride;var I=S.animateIcon;var n=S.ariaHidden;var b=S.ariaExpanded;var N=S.ariaLabel;var l=S.tabindex;var H=S.id;var q=S.iconFilter;var w=function(){var E=c==null?void 0:c(),v=null,t=void 0;E&&(E=fsd(E),E=$dY(E),E.length&&(v=E[1],t=E[0]));return{iconName:v,iconSetName:t}},g=function(){return Uzu(w().iconName,Q==null?void 0:Q(),void 0,void 0,w().iconSetName,_.fl().resolve(_.FB))},r=
function(){return{iconWidth:"100%",
iconHeight:"100%",iconFilter:q==null?void 0:q()}};
return _.B(_.K,{cond:I,then:function(){return _.B(a_d,{icon:c,active:Q,className:f,style:U,dataSelected:a,dataDisabled:X,role:z,themeOverride:x,ariaHidden:n,ariaExpanded:b,ariaLabel:N,tabindex:l,id:H,iconFilter:q})},
else:function(){return _.B(_.K,{cond:g,then:function(E){return _.B(rnT,{data:E,options:r})}})}})},"ie"):a_d;var XN$=function(S){var c=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];Ekz();_.m5("ytglobal.ytUtilActivityCallback_",function(){_.Oz(S,"yt-user-activity")});
new cG(function(){return c.JSC$14957_onMouseMove});
document.addEventListener("scroll",function(){return c.onScroll});
window.addEventListener("resize",function(){return c.onResize})},OVu=function(S,c,Q){c in S.eventJobIds||(Q=_.TV().addLowPriorityJob(function(){_.Q1();
delete S.eventJobIds[c]},Q),S.eventJobIds[c]=Q)};
XN$.prototype.onScroll=function(S){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):S.target===document&&OVu(this,"scroll",200)};
XN$.prototype.onResize=function(){OVu(this,"resize",200)};
XN$.prototype.JSC$14957_onMouseMove=function(){OVu(this,"mousemove",100)};
_.ov=function(S){S.scrollEventsToIgnore+=1;S.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){S.scrollEventsToIgnore--},500))};var zip=function(S){this.element=S;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
zip.prototype.showFeedbackDialog=function(S,c,Q,f){var U=xvz();if(!U)return!1;var a=ofp();a.productId=U;c&&(a.flow="submit",a.report={description:c});Q&&(xvz()==="59"?a.callback=_.kC(function(){_.Te("userFeedbackEvent",{});Q()}):a.callback=_.kC(Q));
a.bucket=f||_.WY("GOOGLE_FEEDBACK_BUCKET","Other");FRH(a);S=B0d(this,"GFEEDBACK",S);try{_.nsJ(a,S)}catch(X){return _.eG(X),!1}return!0};
zip.prototype.showHelpDialog=function(S,c,Q){var f=this,U=xvz();if(!U)return!1;var a={helpCenterPath:"/youtube",productData:B0d(this,"GUIDED_HELP",Q)};FRH(a);var X=ofp();X.context=S||a.productData.context||"default";X.defaultHelpArticleId=c;X.enableSendFeedback=!0;(_.rC("gapi.load")||function(z,x){return x()})("client",function(){try{var z=mZJ(U,a);
if(_.u("web_always_load_chat_support")&&!f.chatSupportLoaded)try{z.JSC$8012_loadChatSupport(X),f.chatSupportLoaded=!0}catch(x){}z.startHelp(X)}catch(x){_.eG(x)}})};
var xvz=function(){var S=_.WY("GOOGLE_FEEDBACK_PRODUCT_ID");S||_.eG(Error("ei"));return S},FRH=function(S){S&&(S.locale=_.u("kevlar_help_use_locale")?_.WY("INNERTUBE_CONTEXT_HL","en"):_.WY("HTML_LANG","en"))},B0d=function(S,c,Q){var f=S.productData;
delete f.origin;f.device=_.bM();var U;a:{if(U=document.createElement("canvas")){var a=U.getContext("experimental-webgl",{stencil:!0});if(a){var X=a.getExtension("WEBGL_debug_renderer_info");if(X){U=a.getParameter(X.UNMASKED_RENDERER_WEBGL);break a}}if(a=U.getContext("webgl")){U=a.getParameter(a.RENDERER);break a}}U=null}f.gpu=U;f.isSDC=!!_.WY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(U=_.WY("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Cn.extend(f,U);_.Rgx(c,f);_.ysM(f);(S=_.Oz(S.element,"yt-get-autonav-pause-debug-state"))&&
S.length&&(f.autonav_pause_state=S[0]);S=_.B5();f.browser_resolution=S.width+"\u00d7"+S.height+"@"+(window.devicePixelRatio||1)+"x";Q&&_.Cn.extend(f,Q);return f};
zip.prototype.resetProductData=function(){this.productData={}};var I_d=function(S){this.feedbackManager=new zip(S)};
I_d.prototype.showFeedbackDialog=function(S,c,Q,f){return this.feedbackManager.showFeedbackDialog(S,c,Q,f)};
I_d.prototype.showHelpDialog=function(S,c,Q){return this.feedbackManager.showHelpDialog(S,c,Q)};var nwd=function(){this.baseUrl="";this.aTag=document.createElement("a")},mXJ=function(S,c,Q){Q=Q===void 0?{}:Q;
Q.pbj||(Q.pbj=1);Q=_.wIZ(c,Q);S.baseUrl&&Q&&!_.Rk(Q)[1]&&!_.ok(Q)&&(c=S.baseUrl,aH(c,"/")&&(c=c.slice(0,-1)),_.UT(Q,"/")&&(Q=Q.slice(1)),Q=c+"/"+Q);DQ(S.aTag,Kc(Q||""));return S.aTag.href};
nwd.prototype.fetchData=function(S){return _.vfz(S)};
nwd.prototype.postData=function(S,c){var Q={method:"POST"};if(c){for(var f=_.A(Object.keys(c)),U=f.next();!U.done;U=f.next()){U=U.value;var a=c[U];_.c_(a)&&(c[U]=JSON.stringify(a))}Q.postParams=c}return _.vfz(S,Q)};
_.Swh=function(S,c,Q,f,U){S=mXJ(S,c,Q);if(!S)throw f=Error("fi"),Object.assign(f,{params:c}),f;return _.vfz(S,U,f)};
nwd.prototype.requestDataForServiceEndpoint=function(S,c){if(_.Y(S,_.K_Y))return this.fetchData("/getAccountSwitcherEndpoint");c=c||{};var Q=_.Y(S,HLd);Q?c.se=Q.base64EncodedServiceEndpoint:c.sej=JSON.stringify(S);(Q=_.wN())&&_.u("enable_service_ajax_csn")&&(c.csn=Q);c.theme=_.pJ();_.Y(S,bdY)&&_.WY("DELEGATION_CONTEXT")&&(c.delegation_context=JSON.stringify(_.WY("DELEGATION_CONTEXT")));Q=null;for(var f in S)if(aH(f,"Endpoint")||aH(f,"Command")){Q=f;break}if(!Q){var U=Error("gi");Object.assign(U,{params:S});
_.hoz(U,"WARNING");return new _.n1(function(X,z){z(U)})}f={name:Q};
var a;(Q=(a=_.Y(S,_.b2))==null?void 0:a.signal)&&(f.signal=Q);(a=_.Ep(window.location.href))&&a.internalcountrycode&&(f.internalcountrycode=a.internalcountrycode);a="/service_ajax";_.u("debug_forward_web_query_parameters")&&(a=_.dmo(a,window.location.search));a=_.V0(a,f);S.clickTrackingParams&&_.SL(a,{itct:S.clickTrackingParams});return this.postData(a,c)};_.bVH=new _.Sg("GFEEDBACK_TOKEN");var N0e;var KRp;var $vT;var u3u;var RL=function(){var S=_.W.apply(this,arguments)||this;S.compact=!1;return S};
_.C(RL,_.W);RL.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
RL.prototype.computeHasIcon_=function(S){return!!S};
RL.prototype.isSignInIcon_=function(S){return S=="yt-icons:prompted_sign_in"};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],RL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],RL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Ji_.YtConditionalRendererBehavior),_.P("design:type",Object)],RL.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],RL.prototype,"data",void 0);
_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],RL.prototype,"icon_",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.P("design:type",Boolean)],RL.prototype,"hasIcon_",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.P("design:type",Boolean)],RL.prototype,"signInIcon_",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],RL.prototype,"compact",void 0);
_.d([_.wM({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],RL);
_.k(RL,"yt-player-error-message-renderer",function(){if(u3u===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;$vT===void 0&&($vT=document.createElement("template"));var f=$vT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);u3u=S}S=u3u;return S},{mode:2});var j$u;var l__;var ym=function(){return _.W.apply(this,arguments)||this};
_.C(ym,_.W);ym.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
ym.prototype.computeIcon_=function(S){return S?"yt-icons:"+S.iconType.toLowerCase():"error_outline"};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ym.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ym.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ym.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],ym.prototype,"icon_",void 0);_.d([_.wM({is:"yt-player-kav-renderer",disableElementRegistration:!0})],ym);
_.k(ym,"yt-player-kav-renderer",function(){if(l__===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;j$u===void 0&&(j$u=document.createElement("template"));var f=j$u;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);l__=S}S=l__;return S},{mode:2});_.f4(_.y_(function(S){var c=_.EH("div"),Q=_.A(_.ny(0,void 0,"gCmSbf")),f=Q.next().value,U=Q.next().value;Q=_.A(_.ny(null,void 0,"Rj9zMe"));var a=Q.next().value,X=Q.next().value;_.wC(function(){cRz(c.value,U,X);c.value.scrollIntoView()});
Q=QVo.bind(null,S.data,f);mY("resize",function(){var z=a();if(f()===1&&z!==null){var x;(x=window.grecaptcha)==null||x.reset(z)}});
return _.B("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.B("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.B("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var z,x;return(z=S.data().accessibility)==null?void 0:(x=z.accessibilityData)==null?void 0:x.label}),_.B(_.mw,{text:Q,
className:_.n4("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.B("div",{el:c,class:"ytwPlayerCaptchaViewModelGridItem"})))},"je"),"yt-player-captcha-view-model",{props:{data:_.Qn}});var fKr=!1;_.Yf$=_.y_(function(S){var c=S.data;return _.B("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.B(_.K,{cond:function(){return c().icon},
then:function(Q){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.B(_.RW,{data:Q,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.B(_.K,{cond:function(){return c().title},
then:function(Q){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.B(_.mw,{text:Q}))}}),_.B(_.K,{cond:function(){return c().description},
then:function(Q){return _.B("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.B(_.mw,{text:Q}))}}),_.B(_.h8,{data:function(){return c().primaryButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.B(_.h8,{data:function(){return c().secondaryButton}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"ke");
_.Yf$.idomCompat=!0;var Cy_=_.y_(function(S){var c=S.data;_.RC();return _.B("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.B("div",{class:"player-interstitial-renderer-wiz__scrim"},_.B(_.h8,{data:function(){return c().content}},{interstitialViewModel:_.Yf$})))},"le");
Cy_.idomCompat=!0;_.f4(Cy_,"yt-player-interstitial-renderer",{props:{data:_.y$}});var oL=function(){var S=_.W.apply(this,arguments)||this;S.noBackground=!1;S.compact=!1;S.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return S};
_.C(oL,_.W);oL.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"}}}};
oL.prototype.onUpdatePlayerErrorMessageCommand_=function(S){if(_.Y(S,e1p)){var c;if(S=(c=_.Y(S,e1p))==null?void 0:c.newPlayerErrorMessageRenderer)this.data=S}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],oL.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],oL.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],oL.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],oL.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],oL.prototype,"status",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oL.prototype,"noBackground",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oL.prototype,"compact",void 0);_.d([_.wM({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],oL);
var HVu=_.aW()(oL,"yt-playability-error-supported-renderers",function(){if(KRp===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;N0e===void 0&&(N0e=document.createElement("template"));var f=N0e;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);KRp=S}S=KRp;return S},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var Upc=void 0,aKx=void 0;var OBR=new Woh;var Dv$=function(S){this.store=S;this.yg9=new _.kCu},CPT=function(S,c,Q){var f,U;
if(!(U=((f=c.playabilityStatus)==null?void 0:f.status)!=="OK")){S=S.store;var a;U=c.offlineState&&((a=c.videoDetails)==null?0:a.videoId)?_.u("enable_pl_r_c_cd")?pxr(S.getState().entities,c.videoDetails.videoId):!!cpz(S.getState().entities,c.videoDetails.videoId):!1}if(U)return!0;U=IKY(c);if(U===1){if(_.u("ab_v_vid_sig")){var X,z=(X=c.videoDetails)==null?void 0:X.videoId;if(!z||!Q||z!==Q){var x;c=new _.Yr("282054944_vid",{m1H:Q,ium:(x=c.videoDetails)==null?void 0:x.videoId});_.sH(c)}}return!0}stM=
0;var I,n;x=(z=c.auxiliaryUi)==null?void 0:(I=z.messageRenderers)==null?void 0:(n=I.bkaEnforcementMessageViewModel)==null?void 0:n.displayType;if(U!==3&&(x==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||x==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;x={reason:_.fK(_.K8("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.u("ks_something_wrong_learn_more")?ZYH("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.fK(_.K8("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:_.fK("282054944")};pNi(c,{playerErrorMessageRenderer:x});return!1},H7Y=function(S,c){if(RSH(c)){_.BV(1,!0);
var Q=(Q=RSH(c))&&_.JRZ()?Q:void 0;Q?(pNi(c,{enforcementMessageViewModel:Q}),S.yg9.increment("IN_PLAYER"),_.BV(5)):(S.yg9.increment("SKIP_DISPLAY"),_.BV(2))}},pNi=function(S,c){S.playabilityStatus=Object.assign({},S.playabilityStatus,{status:"ERROR",
errorScreen:c});S.videoDetails=void 0};
Dv$.prototype.handleResponse=function(S,c){if(S.playabilityStatus){var Q,f,U,a=(c==null?void 0:(Q=c.innerTubeRequest)==null?void 0:Q.videoId)||(c==null?void 0:(f=c.innerTubeRequest)==null?void 0:(U=f.playerRequest)==null?void 0:U.videoId);CPT(this,S,a)&&H7Y(this,S)}};
Dv$[mt]=[xs];var lFY=new _.Sg("ADBLOCK_DETECTION_SERVICE_TOKEN");var SP=function(S){this.jFm=S};
SP.prototype.bindInnertubeChallengeFetcher=function(S){this.jFm.bicf(S)};
SP.prototype.registerChallengeFetchedCallback=function(S){this.jFm.bcr(S)};
SP.prototype.getLatestChallengeResponse=function(){return this.jFm.blc()};var wNl;_.mQ=function(S,c,Q){var f=this;this.network=S;this.options=c;this.networkStatusManager=Q;this.lB=null;if(c.useBotguardEverywhere){var U=new _.O_;this.lB=U.promise;_.QY.ytAtRC&&_.u9(_.Mq,function(){var a,X;return _.O(function(z){if(z.nextAddress==1){if(!_.QY.ytAtRC)return z.return();a=hid(null);return _.F(z,f.hn(a),2)}X=z.yieldResult;_.QY.ytAtRC&&_.QY.ytAtRC(JSON.stringify(X));_.IN(z)})});
$pM().then(function(a){var X,z,x,I;return _.O(function(n){if(n.nextAddress==1)return a.bindInnertubeChallengeFetcher(function(b){return f.hn(hid(b))}),_.F(n,hxT(),2);
X=n.yieldResult;z=a.getLatestChallengeResponse();x=z.challenge;if(!x)throw Error("hi");I={challenge:x,dV:ml(x),jX:X,bgChallenge:new yV};U.resolve(I);a.registerChallengeFetchedCallback(function(b){b=b.challenge;if(!b)throw Error("ii");b={challenge:b,dV:ml(b),jX:X,bgChallenge:new yV};f.lB=Promise.resolve(b)});
_.IN(n)})})}else c.preload&&qfe(this,new Promise(function(a){_.HG(_.Mq,function(){a(T0z(f))},0)}))};
wNl=function(S){var c={preload:!0,useBotguardEverywhere:!0},Q=!1;if(typeof c==="boolean")var f={preload:c};else typeof c==="undefined"?f={preload:!0}:(f=c,Q=!!c.fFa);c=Q?void 0:new _.L6;_.mQ.instance=new _.mQ(S,f,c);return _.mQ.instance};
_.mQ.prototype.izs=function(){var S=this;return _.O(function(c){return c.nextAddress==1?_.F(c,Promise.race([S.lB,null]),2):c.return(!!c.yieldResult)})};
_.mQ.prototype.aSm=function(S,c,Q){var f=this,U,a,X;return _.O(function(z){f.lB===null&&qfe(f,T0z(f));U=!1;a={};X=function(){var x,I,n;return _.O(function(b){switch(b.nextAddress){case 1:return _.F(b,f.lB,2);case 2:x=b.yieldResult;a.challenge=x.challenge;if(!x.jX){"c1a"in x.dV&&(a.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");b.jumpTo(3);break}I=Object.assign({},{c:x.challenge,e:S},c);_.X1(b,4);U=!0;if(_.u("attbs")&&!f.options.useBotguardEverywhere){n=_.Wcd(x.jX,{rD:I});b.jumpTo(6);break}return _.F(b,
x.jX.snapshot({rD:I}),7);case 7:n=b.yieldResult;case 6:n?a.webResponse=n:a.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.Pi(b,3);break;case 4:_.Bs(b),a.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(S==="ENGAGEMENT_TYPE_PLAYBACK"){var N=x.dV,l={};if(N.c6a){var H=Number(_.WY("DCLKSTAT",0));l.reportingStatus=String(Number(N.c)^(isNaN(H)?0:H))}N.c6b&&(l.broadSpectrumDetectionResult=String(Number(N.c)^Number(_.WY("CATSTAT",0))));a.adblockReporting=l}return b.return(a)}})};
return z.return(Promise.race([X(),s$l(Q,function(){var x=Object.assign({},a);U&&(x.error="ATTESTATION_ERROR_VM_TIMEOUT");return x})]))})};
var hid=function(S){var c={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};S&&(c.interpreterHash=S);return c},T0z=function(S,c){c=c===void 0?0:c;
var Q,f,U,a,X,z,x,I,n,b,N,l;return _.O(function(H){switch(H.nextAddress){case 1:Q=hid(kRe().bUW);if(_.u("att_fet_ks"))return _.X1(H,7),_.F(H,S.hn(Q),9);_.X1(H,4);return _.F(H,M2e(S,Q),6);case 6:X=H.yieldResult;U=X.fjZ;a=X.x04;f=X;_.Pi(H,3);break;case 4:return _.Bs(H),_.i5(Error("ji`"+c)),iVl(S,864E5),H.return({challenge:"",dV:{},jX:void 0,bgChallenge:void 0});case 9:f=H.yieldResult;if(!f)throw Error("ki");if(!f.challenge)throw Error("li");U=f.challenge;a=ml(U);if("c1a"in a&&(!f.bgChallenge||!f.bgChallenge.program))throw Error("mi");
_.Pi(H,3);break;case 7:z=_.Bs(H);_.i5(z);c++;if(c>=5)return _.i5(Error("ji`"+c)),iVl(S,864E5),H.return({challenge:"",dV:{},jX:void 0,bgChallenge:void 0});x=1E3*Math.pow(2,c-1)+Math.random()*1E3;return H.return(new Promise(function(q){_.HG(_.Mq,function(){q(T0z(S,c))},x)}));
case 3:I=KfR(a);iVl(S,I*1E3);n=void 0;if(!("c1a"in a&&f.bgChallenge)){H.jumpTo(10);break}b=NYY(f.bgChallenge);_.X1(H,11);return _.F(H,dgd(kRe(),b),13);case 13:_.Pi(H,12);break;case 11:return N=_.Bs(H),_.i5(N),H.return({challenge:U,dV:a,jX:n,bgChallenge:b});case 12:return _.X1(H,14),n=new _.Zg({challenge:b,bW:{h9:"aGIf"}}),_.F(H,n.mJc,16);case 16:_.Pi(H,10);break;case 14:l=_.Bs(H),_.i5(l),n=void 0;case 10:return H.return({challenge:U,dV:a,jX:n,bgChallenge:b})}})};
_.mQ.prototype.hn=function(S){var c=this,Q;return _.O(function(f){Q=c.networkStatusManager;if(!Q||Q.isNetworkAvailable())return f.return(c.network.hn(S));_.GZ("att_pna",void 0,"attestation_challenge_fetch");return f.return(new Promise(function(U){Q.listenOnce("publicytnetworkstatus-online",function(){c.network.hn(S).then(U)})}))})};
var ZV$=function(S){if(!S)throw Error("ki");if(!S.challenge)throw Error("li");var c=S.challenge,Q=ml(c);if("c1a"in Q&&(!S.bgChallenge||!S.bgChallenge.program))throw Error("mi");return Object.assign({},S,{fjZ:c,x04:Q})},M2e=function(S,c){var Q,f,U,a,X;
return _.O(function(z){switch(z.nextAddress){case 1:Q=void 0,f=0,U={};case 2:if(!(f<5)){z.jumpTo(4);break}if(!(f>0)){z.jumpTo(5);break}U.fh8=1E3*Math.pow(2,f-1)+Math.random()*1E3;return _.F(z,new Promise(function(x){return function(I){_.HG(_.Mq,function(){I(void 0)},x.fh8)}}(U)),5);
case 5:return _.X1(z,7),_.F(z,S.hn(c),9);case 9:return a=z.yieldResult,z.return(ZV$(a));case 7:Q=X=_.Bs(z),X instanceof Error&&_.i5(X);case 8:f++;U={fh8:void 0};z.jumpTo(2);break;case 4:throw Q;}})},qfe=function(S,c){S.lB=c},GHi=function(S){var c,Q,f;
return _.O(function(U){if(U.nextAddress==1)return _.F(U,Promise.race([S.lB,null]),2);c=U.yieldResult;var a=T0z(S);S.lB=a;(Q=c)==null||(f=Q.jX)==null||f.dispose();_.IN(U)})},iVl=function(S,c){var Q=Date.now()+c,f=function(){var U;
return _.O(function(a){U=Q-Date.now();return U<1E3?_.F(a,GHi(S),0):(_.HG(_.Mq,f,Math.min(U,6E4)),a.jumpTo(0))})};
f()},s$l=function(S,c){return new Promise(function(Q){_.HG(_.Mq,function(){Q(c())},S)})};var WRu=function(){};
WRu.prototype.processContext=function(S){var c=_.mQ.instance;if(!c)return _.Lk();var Q=Czc(S);return Q?new PA(c.aSm(Q,lKp(S),500).then(function(f){var U;(S==null?0:(U=S.innerTubeRequest)==null?0:U.context)||(S.innerTubeRequest.context={});U=S.innerTubeRequest.context;U.request||(U.request={});U.request.attestationResponseData=f})):_.Lk()};var gwz=function(S){this.innertubeTransportService=S};
gwz.prototype.hn=function(S){_.GZ("att_fsr",void 0,"attestation_challenge_fetch");return _.ZC(this.innertubeTransportService,S,_.RB(_.eep)).then(function(c){_.GZ("att_frr",void 0,"attestation_challenge_fetch");return c})};_.eii=function(S){this.innertubeTransportService=S};var kHd=new _.Sg("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var riJ=function(){},vws=function(S,c,Q,f,U){var a=_.WY("YPC_MB_URL");
_.a7z(a).then(function(){dvH(a,S,c,Q,f,U)})},dvH=function(S,c,Q,f,U,a){try{var X=payments.business.integration,z=payments.business.integration.Style.create().withMaterialDesignStyle(),x=X.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.u("enable_window_constrained_buy_flow_dialog")&&(x=x.usingPopupStyle("windowConstrained"));a&&(x=x.usingCloseCallback(a));var I=Q?Q:_.WY("YPC_GB_LANGUAGE"),n=_.WY("SESSION_INDEX");X.bootstrap.fromPaymentsUrl(S);X.bootstrap.asMashupMode(x).usingGaiaIndex(n).usingLocale(I).usingStyle(z).usingDefaultActivityStatusChangeHandler().inStandaloneContext(X.standaloneContextAuthId.forGaia()).purchaseManager(c,function(b){f&&f(b)}).load(void 0,U)}catch(b){throw U&&U(b),_.sH(b),b;
}};var Pyp=new _.Sg("PURCHASE_MANAGER_TOKEN");var LRl=function(){var S=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return S.videos},
getContinuationsPresent:function(){return S.continuationsPresent},
setVideos:function(c){S.videos=c},
getRecommendedVideos:function(){return S.recommendedVideos},
setRecommendedVideos:function(c){S.recommendedVideos=c}}};
LRl.prototype.addVideos=function(S){S&&(this.videos=S.filter(function(c){return!!_.Dpz(c)}).map(function(c){var Q=_.Dpz(c);
a:{var f;if(c.playlistVideoRenderer&&((f=c.playlistVideoRenderer)==null?0:f.voteSortTiebreaker))var U=c.playlistVideoRenderer.voteSortTiebreaker;else{if(_.Y(c,QG)){var a;if(f=(U=_.Y(c,QG))==null?void 0:(a=U.playlistItemData)==null?void 0:a.voteSortTiebreaker){U=f;break a}}U=""}}return{itemId:Q,videoId:_.qOr(c),voteCount:_.TYZ(c),voteSortTiebreaker:U}}),this.continuationsPresent=!!_.Y(S[S.length-1],_.aK))};
var EwJ=function(S,c){return S.videos.findIndex(function(Q){return Q.itemId===c})},t2h=function(S,c){return S.recommendedVideos.findIndex(function(Q){return Q.itemId===c})},V2u=function(S){S={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:S}}}}};_.fl().resolve(_.U8).resolveCommand(S)};var Riz=function(){LRl.apply(this,arguments)};
_.C(Riz,LRl);
var GjT=function(S,c,Q,f){if(!S.parentElem)throw Error("ri");var U=EwJ(S,c);U===-1&&(U=t2h(S,c),U=U!==-1?U+S.videos.length:-1);if(U===-1)throw Error("si");var a=U>=S.videos.length?S.recommendedVideos[U-S.videos.length]:S.videos[U];a.voteCount=Q;a.voteSortTiebreaker=Date.now().toString();U>=S.videos.length?S.recommendedVideos.splice(U-S.videos.length,1):S.videos.splice(U,1);var X=S.videos;for(var z=0,x=X.length-1;z<=x;){var I=Math.floor((z+x)/2);if(X[I].voteCount<a.voteCount)x=I-1;else if(X[I].voteCount>a.voteCount)z=
I+1;else{a:{var n=a.voteSortTiebreaker;var b=X[I].voteSortTiebreaker;if(n.length!==b.length)n=n.length>b.length;else{for(var N=0;N<n.length;N++){var l=n.charCodeAt(N),H=b.charCodeAt(N);if(l>H){n=!0;break a}if(l<H)break}n=!1}}n?x=I-1:z=I+1}}X=z;if(X===-1)throw Error("ti");S.videos.splice(X,0,a);U!==X&&yii(S,U,X,c,Q,f)},yii=function(S,c,Q,f,U,a){var X,z=(X=S.parentElem)==null?void 0:X.children,x=Math.min(c,Q),I=Math.max(c,Q);
if(z)for(X=x;X<=I;X++)z[X].style.viewTransitionName="item-"+String(X);document.startViewTransition(function(){if(S.parentElem){var n=S.parentElem.children;if(!(!n||c<0||c>=n.length||Q<0||Q>=n.length)){var b=n[c];if(b){b.remove();S.showRefreshPill=Q>=S.videos.length-1&&S.continuationsPresent;if(!S.showRefreshPill){n=n[Q]||null;var N;(N=S.parentElem)==null||N.insertBefore(b,n)}_.Az(S.parentElem,"yt-update-video-data-voting-animation",{toIdx:Q,itemId:f,newVoteCount:U,voteStatus:a,hideItem:S.showRefreshPill})}}}}).finished.then(function(){if(z)for(var n=
x;n<=I;n++)z[n].style.viewTransitionName="";
if(S.showRefreshPill)V2u(_.K8("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var b;if(b=n=(b=S.parentElem)==null?void 0:b.children[Q])b=n.getBoundingClientRect(),n=b.bottom,b=!(b.top>=0&&n<=S.clientHeight);b&&(b=_.$t(c>Q?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(c-Q)),V2u(b))}})};var SAT=function(S,c){var Q=this;S?this.innertubeTransportServicePromise=Promise.resolve(S):c&&(this.innertubeTransportServicePromise=c(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new WF(3E3,function(f){return owd(Q,f)},0);
this.validateMiniAppVideoIdRateLimiter=new WF(3E3,function(f){return mvd(Q,f)},1)},M_d=function(S,c){S.JSC$15069_miniAppId=c;
S.reportMiniAppValueRateLimiter=new WF(3E3,function(Q){return owd(S,Q)},0);
S.validateMiniAppVideoIdRateLimiter=new WF(3E3,function(Q){return mvd(S,Q)},1)},Z_p=function(S,c){var Q;
return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.reportMiniAppValueRateLimiter.call(c),2);Q=f.yieldResult;return f.return([Q,c])})},owd=function(S,c){var Q,f,U,a,X,z,x;
return _.O(function(I){switch(I.nextAddress){case 1:return _.F(I,S.innertubeTransportServicePromise,2);case 2:return Q=I.yieldResult,f=_.RB(ERe),U=Date.now(),a={externalPostId:S.JSC$15069_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(U/1E3),nanos:Math.round(U%1E3*1E6)},intValue:""+c}},_.X1(I,3),_.F(I,_.ZC(Q,a,f),5);case 5:X=I.yieldResult;_.Pi(I,4);break;case 3:throw z=_.Bs(I),z;case 4:if(X){if("error"in X&&X.error)throw X.error;if(X.errorMetadata)throw Error("ui`"+
X.errorMetadata.status);if(x=X.userStatResult)return I.return(x);throw Error("vi");}throw Error("wi");}})},Wbs=function(S){var c,Q,f,U,a;
_.O(function(X){switch(X.nextAddress){case 1:return _.F(X,S.innertubeTransportServicePromise,2);case 2:return c=X.yieldResult,Q=_.RB(ERe),f={externalPostId:S.JSC$15069_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.X1(X,3),_.F(X,_.ZC(c,f,Q),5);case 5:U=X.yieldResult;_.Pi(X,4);break;case 3:throw a=_.Bs(X),a;case 4:if(U==null)throw Error("wi");if("error"in U&&U.error)throw U.error;if(U.errorMetadata)throw Error("ui`"+U.errorMetadata.status);_.IN(X)}})};
SAT.prototype.flush=function(){var S=this;return _.O(function(c){return c.nextAddress==1?_.F(c,S.reportMiniAppValueRateLimiter.flush(),2):_.F(c,S.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var Gnd=function(S,c){return _.O(function(Q){return Q.nextAddress==1?_.F(Q,S.validateMiniAppVideoIdRateLimiter.call(c),2):Q.return(Q.yieldResult)})},mvd=function(S,c){var Q,f,U,a,X,z;
return _.O(function(x){switch(x.nextAddress){case 1:return _.F(x,S.innertubeTransportServicePromise,2);case 2:return Q=x.yieldResult,f=_.RB(gRJ),U={videoId:c},_.X1(x,3),_.F(x,_.ZC(Q,U,f),5);case 5:a=x.yieldResult;_.Pi(x,4);break;case 3:throw X=_.Bs(x),X;case 4:if(a){if("error"in a&&a.error)throw a.error;if(a.errorMetadata)throw Error("ui`"+a.errorMetadata.status);if(z=a.playabilityStatus)return x.return(z.status);throw Error("xi");}throw Error("wi");}})};
SAT[mt]=[_.QS(_.M6),_.QS(Nlh)];var cXp=function(){this.clientData=new Map};
cXp.prototype.getData=function(S){return this.clientData.get(S)};var Qos=function(S){this.store=S};
Qos.prototype.handleResponse=function(S){(S=_.Y(S.frameworkUpdates,ta))&&_.NO(S,this.store)};
Qos[mt]=[_.kR];var fyz=new _.Sg("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var UwJ={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 JXe=new _.Sg("ICON_SET_TOKEN"),ay_=new _.Sg("ICON_URL_PROVIDER_TOKEN"),AXu=new _.Sg("PREFETCH_ICONS_TOKEN"),XoJ=new _.Sg("ICON_MAP_FN_TOKEN");var SF={},OGu=(SF.ACCESS_TIME="clock",SF.ACCOUNT_BOX="person_account",SF.ACCOUNT_BOX_CAIRO="person_account_cairo",SF.ACCOUNT_CIRCLE="person_circle",SF.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",SF.ACCOUNT_LINKED="account_link_success",SF.ACCOUNT_UNLINKED="account_link",SF.ADD_FRIEND="people",SF.ADD_MODERATOR="shield_add",SF.ADD_TO_LIBRARY=U9("add"),SF.ADD_TO_PLAYLIST="add",SF.ADD_TO_QUEUE_TAIL="list_queue",SF.ADD_TO_REMOTE_QUEUE="list_music",SF.ADD_TO_WATCH_LATER="clock",SF.ADD_VIDEO_LINK="film_strip_add",
SF.ALERT_WARN_RED="alert_triangle",SF.ARROW_BACK="arrow_left",SF.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",SF.ARROW_DROP_DOWN="chevron_down",SF.ARROW_DROP_UP="chevron_up",SF.ARROW_FORWARD="arrow_right",SF.AUDIOTRACK="audio",SF.AUTO_AWESOME="sparkle",SF.AVATAR_ANONYMOUS="person_circle",SF.AVATAR_LOGGED_OUT="person_circle",SF.BACK="arrow_left",SF.BAR_CHART="bar_graph",SF.BLOCK="slash_circle_left",SF.BLOCK_USER="slash_circle_left",SF.BOOKMARK_BORDER="bookmark",SF.BREAKING_NEWS_ALT_1="article_alert",
SF.BROADCAST_CAIRO="podcast_cairo",SF.BUG_REPORT="bug",SF.CAMERA_ALT="camera",SF.CAMPAIGN="megaphone",SF.CANCEL="x_circle",SF.CAPTIONS="closed_caption",SF.CAST_OUTLINE="chromecast",SF.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",SF.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",SF.CHAT="message_bubble_left",SF.CHAT_BUBBLE="message_bubble_empty",SF.CHAT_SPARK="spark_message_bubble_left",SF.CHECK_BOX_OUTLINE_BLANK="box_empty",SF.CHECK_CIRCLE_OUTLINE="check_circle",SF.CHECK_CIRCLE_THICK="check_circle",SF.CLARIFY=
"article_clarify",SF.CLOSED_CAPTION_SELECTED="closed_caption",SF.CLOSE="x_mark",SF.CLOUD_UPLOAD="cloud_arrow_up",SF.COLLAPSE="chevron_up",SF.COLLAPSE_CAIRO="chevron_up_cairo",SF.COLLECTION="layers",SF.COLOR_LENS="palette",SF.COMMENT="message_bubble_right",SF.CONSENT_SHIELD="person_shield",SF.CONTENT_CUT="scissors",SF.CONTENT_CUT_CAIRO="scissors_cairo",SF.COURSE=_.u("web_enable_course_icon_update")?"creator_academy":"lightbulb",SF.COURSE_CAIRO=_.u("web_enable_course_icon_update")?"creator_academy_cairo":
"lightbulb_cairo",SF.CREATION_LIVE="radar_live",SF.CREATION_POST="box_pencil",SF.CREATION_UPLOAD="my_videos",SF.CREATION_UPLOAD_RED="upload",SF.CREATOR_METADATA_MONETIZATION_OFF="dollar_sign_off",SF.CREATOR_STUDIO="youtube_studio",SF.DASHBOARD="grid_asymmetrical",SF.DELETE="trash_can",SF.DELETE_SWEEP="trash_can",SF.DESKTOP="laptop",SF.DISLIKE="thumb_down",SF.DISLIKE_SELECTED="thumb_down",SF.DISMISSAL="x_mark",SF.DISMISS_QUEUE="list_remove",SF.DONE_ALL="check_double",SF.DOWN_ARROW="arrow_down",SF.DO_NOT_DISTURB=
"slash_circle_left",SF.DRAFT="paper_corner_folded",SF.DRAG_HANDLE="bars_2",SF.EDIT="pencil",SF.EMOJI="face_very_happy",SF.EMOJI_FLAGS="flag",SF.EMOJI_OBJECTS="lightbulb",SF.EMOJI_PEOPLE="face_very_happy",SF.EMOJI_RECENT="clock",SF.EMPTY_HEART="heart",SF.EMPTY_LIKE="thumb_up",SF.ERROR_BLACK="alert_circle",SF.ERROR_OUTLINE="alert_circle",SF.EXIT_APP="arrow_in",SF.EXIT_TO_APP="arrow_in",SF.EXPAND="chevron_down",SF.EXPAND_ALL="chevron_expand",SF.EXPAND_CAIRO="chevron_down_cairo",SF.EXPAND_LESS="chevron_up",
SF.EXPAND_MORE="chevron_down",SF.EXPLORE="compass",SF.EXPLORE_DESTINATION="compass",SF.EXTERNAL_LINK="open_new",SF.FAB_UPLOAD="upload",SF.FACE_HAPPY_OUTLINE="face_happy",SF.FACT_CHECK="article_check",SF.FASHION_LOGO="fashion",SF.FASHION_LOGO_CAIRO="fashion_cairo",SF.FAVORITE="heart",SF.FEEDBACK="message_bubble_alert",SF.FEEDBACK_CAIRO="message_bubble_alert_cairo",SF.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",SF.FILL_ARROW_SOLID_UP_16="arrow_solid_up",SF.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",
SF.FILTER="menu_filter",SF.FIRST_PAGE="chevron_first",SF.FLAG="flag",SF.FULL_HEART="heart",SF.GAME_CONSOLE_DPAD="game_console_dpad",SF.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",SF.GAMING_LOGO="gaming",SF.GAMING_LOGO_CAIRO="gaming_cairo",SF.GO_TO_PAGE="arrow_right",SF.GROUPS="people_group",SF.HAPPY="face_happy",SF.HEALTH_AND_SAFETY="shield_plus",SF.HELP="question_circle",SF.HELP_CAIRO="question_circle_cairo",SF.HELP_OUTLINE="question_circle",SF.HIDE="slash_circle_left",SF.IMAGE="image",
SF.INFINITY_ICON="infinity",SF.INFO="info_circle",SF.INFO_OUTLINE="info_circle",SF.INSERT_CHART_OUTLINED="bar_graph_box_vertical",SF.INSERT_PHOTO="image",SF.KEEP="pin",SF.KEEP_OFF="pin_off",SF.KEYBOARD="keyboard",SF.KEYBOARD_ARROW_DOWN="chevron_down",SF.KEYBOARD_ARROW_UP="chevron_up",SF.KIDS_BLOCK="slash_circle_left",SF.LANGUAGE="globe",SF.LAST_PAGE="chevron_last",SF.LAUNCH="open_new",SF.LEARNING="lightbulb",SF.LEARNING_CAIRO="lightbulb_cairo",SF.LIBRARY_ADD=U9("library_add"),SF.LIBRARY_OUTLINE="library",
SF.LIBRARY_REMOVE=U9(),SF.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",SF.LIKES_PLAYLIST="thumb_up",SF.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",SF.LIKE="thumb_up",SF.LIKE_SELECTED="thumb_up",SF.LIVE="radar_live",SF.LIVE_CAIRO="radar_live_cairo",SF.LIVE_UNLISTED="link",SF.LOCATION_ON="location_point",SF.LOCATION_PIN="location_point",SF.LOOP="arrow_repeat",SF.LOOP_ACTIVE="arrow_repeat",SF.LOOP_ONE="arrow_repeat_1",SF.LOOP_ONE_ACTIVE="arrow_repeat_1",SF.MEH="face_meh",SF.MEMBERS_ONLY_MODE_OFF="message_bubble_left",
SF.MESSAGE="message_bubble_left",SF.MICROPHONE_ON="mic",SF.MIX="youtube_mix",SF.MONETIZATION_ON="dollar_sign_circle",SF.MONEY_FILL="dollar_sign_container",SF.MONEY_FILL_JPY="yen_sign_container",SF.MONEY_HEART="dollar_sign_heart",SF.MORE_HORIZ="overflow_horizontal",SF.MORE_VERT="overflow_vertical",SF.MUSIC="audio",SF.MUSIC_CAIRO="audio_cairo",SF.MUSIC_NOTE_SYMBOL="music",SF.MUSIC_SHUFFLE="arrow_shuffle",SF.MY_CHANNEL="person_circle",SF.MY_LOCATION="location_point",SF.NEWS_STORY="news",SF.NEXT="chevron_right",
SF.NOTIFICATIONS="bell",SF.NOTIFICATIONS_ACTIVE="bell_on",SF.NOTIFICATIONS_CAIRO="bell_cairo",SF.NOTIFICATIONS_DONE_CHECKMARK="check",SF.NOTIFICATIONS_INBOX="bell",SF.NOTIFICATIONS_NONE="bell",SF.NOTIFICATIONS_OFF="bell_off",SF.NOT_INTERESTED="slash_circle_left",SF.OFFICIAL_ARTIST_BADGE="audio",SF.OFFLINE_CLOUD="cloud_off",SF.OFFLINE_DOWNLOAD="download",SF.OFFLINE_DOWNLOAD_CAIRO="download_cairo",SF.OFFLINE_PAUSE="pause",SF.OPEN_IN_NEW="open_new",SF.OUTLINE_ADJUST="adjust",SF.OUTLINE_ARROW_SOLID_DOWN_16=
"arrow_solid_down",SF.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",SF.OUTLINE_BAG="bag",SF.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",SF.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",SF.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",SF.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",SF.PAID="dollar_sign",SF.PAUSE_OUTLINED="pause",SF.PAYMENT="credit_card",SF.PERSON_RADAR_FILLED="person_radar",SF.PHONE_DOWNLOAD="mobile_download",SF.PLAYABLES_LOGO="tic_tac_toe",SF.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",
SF.PLAYLISTS="list_play_arrow",SF.PLAYLISTS_CAIRO="list_play_arrow_cairo",SF.PLAYLIST_ADD=U9("list_add"),SF.PLAYLIST_ADD_CHECK=U9("list_check"),SF.PLAYLIST_PLAY="list_play_arrow",SF.PLAY_ALL="play_arrow",SF.PLAY_CIRCLE="play_arrow_circle",SF.PLAY_OUTLINED="play_arrow_circle",SF.PRIVACY_INFO="shield",SF.PRIVACY_PRIVATE="lock",SF.PRIVACY_PUBLIC="earth",SF.PRIVACY_UNLISTED="link",SF.PROMOTE="megaphone",SF.PURCHASES="price_tag",SF.PURCHASE_SUPER_CHAT="super_chat",SF.PURCHASE_SUPER_STICKER="super_sticker",
SF.QUESTION_ANSWER="message_bubble_question",SF.QUEUE_PLAY_LAST="list_queue_last",SF.QUEUE_PLAY_NEXT="list_play_arrow",SF.REMIX_FILLED="youtube_shorts_remix",SF.REMOVE="bar_circle",SF.REMOVE_CIRCLE="bar_circle",SF.REMOVE_CIRCLE_OUTLINE="bar_circle",SF.REMOVE_DONE="check_double_off",SF.REMOVE_FROM_HISTORY="bar_circle",SF.REMOVE_FROM_PLAYLIST="bar_circle",SF.REMOVE_MODERATOR="shield_off",SF.REPLAY="arrow_circle",SF.REPLAY_10="skip_back_10",SF.REPORT_PROBLEM="alert_triangle",SF.SAD="face_sad",SF.SAVE_PLAYLIST=
U9("library_add"),SF.SCHEDULE="clock",SF.SCHOOL="creator_academy",SF.SCREEN_FULLSCREEN="screen_full",SF.SEARCH_HISTORY="arrow_time",SF.SELL="price_tag",SF.SETTINGS="gear",SF.SETTINGS_CAIRO="gear_cairo",SF.SETTINGS_LIGHT="gear",SF.SETTINGS_MATERIAL="gear",SF.SHARE_ARROW="share",SF.SHIELD_WITH_AVATAR="person_shield",SF.SHOPPING_BAG="bag",SF.SHOPPING_BAG_CAIRO="bag_cairo",SF.SHOPPING_CART="cart",SF.SHORTS_COMMENT="youtube_shorts_message_bubble_right",SF.SHORTS_DISLIKE="youtube_shorts_thumb_down",SF.SHORTS_LIKE=
"youtube_shorts_thumb_up",SF.SHORTS_SHARE="youtube_shorts_share",SF.SHUFFLE="arrow_shuffle",SF.SLOW_MODE_OFF="message_bubble_left",SF.SOCIAL="people",SF.SORT="menu_sort",SF.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",SF.SPEED_1X="1x",SF.SPEED_1_POINT_2X="1_point_2x",SF.SPEED_1_POINT_5X="1_point_5x",SF.SPEED_1_POINT_8X="1_point_8x",SF.SPEED_2X="2x",SF.SPEED_POINT_2X="point_2x",SF.SPEED_POINT_8X="point_8x",SF.SPONSORSHIP_STAR=_.u("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",SF.STAFF_PICK=
"spotlight",SF.START_DVR="add",SF.STAR_BORDER="star",SF.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",SF.STICKER_EMOTICON="face_happy",SF.STOP_DVR="stop",SF.SUBSCRIBE="youtube_logo_icon",SF.SUBSCRIBE_PLUS="add_cairo",SF.SUBSCRIPTION_MANAGER="gear",SF.SUPERVISOR_ACCOUNT="people",SF.SUPER_CHAT_FOR_GOOD="hands_heart",SF.SWAP_HORIZ="arrow_swap_horizontal",SF.SWITCH_ACCOUNTS="person_account",SF.TAB_ACCOUNT="person",SF.TAB_ACTIVITY="bell",SF.TAB_BOOKMARK="bookmark",SF.TAB_EXPLORE="compass",SF.TAB_HOME=
"home",SF.TAB_HOME_CAIRO="home_cairo",SF.TAB_INBOX="mail",SF.TAB_LIKED="thumb_up",SF.TAB_MUSIC_PREMIUM="youtube_music",SF.TAB_SHORTS="youtube_shorts",SF.TAB_SHORTS_CAIRO="youtube_shorts_cairo",SF.TAB_SUBSCRIPTIONS="subscriptions",SF.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",SF.TAB_TRENDING="fire",SF.TIMER="stopwatch",SF.TRAILER="youtube_originals",SF.TRENDING="fire",SF.TRENDING_CAIRO="fire_cairo",SF.TRENDING_UP="rating_up",SF.TROPHY="trophy",SF.TROPHY_CELEBRATIONS="fireworks",SF.TUNE="adjust",
SF.UNBLOCK_USER="bar_circle",SF.UNLIMITED="youtube_logo_icon",SF.UNPLUGGED_LIVE_GUIDE="radar_live",SF.UNPLUGGED_SPORTS="eye_off",SF.UPLOADS="library",SF.UP_ARROW="arrow_up",SF.VERTICAL_ALIGN_BOTTOM="download",SF.VERY_HAPPY="face_very_happy",SF.VERY_SAD="face_very_sad",SF.VIDEOGAME_ASSET="gaming",SF.VIDEOS="play_arrow_circle",SF.VIDEO_CALL="video_camera_add",SF.VIDEO_LIBRARY_WHITE="library",SF.VIDEO_YOUTUBE="youtube_logo_icon",SF.VIEW_LIST="list_view",SF.VIEW_LIST_CAIRO="list_view_cairo",SF.VISIBILITY=
"eye",SF.VISIBILITY_OFF="eye_off",SF.VOLUME_MUTE="volume_off",SF.VOLUME_UP="volume_on",SF.WALLPAPER="image",SF.WARNING="alert_triangle",SF.WATCH_HISTORY="arrow_time",SF.WATCH_HISTORY_CAIRO="arrow_time_cairo",SF.WATCH_LATER="clock",SF.WATCH_LATER_CAIRO="clock_cairo",SF.WATCH_RELATED_MIX="youtube_mix",SF.WHAT_TO_WATCH="home",SF.YOUTUBE_MUSIC_MONOCHROME="youtube_music",SF.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",SF.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",SF.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",SF.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",SF.YT_OUTLINE_MUSIC_24="music",SF);var ck={},zEJ=(ck.ACCESS_TIME="clock",ck.ACCOUNT_BOX="person_square",ck.ACCOUNT_BOX_CAIRO="person_square",ck.ACCOUNT_CIRCLE="person_circle",ck.ACCOUNT_CIRCLE_CAIRO="person_circle",ck.ACCOUNT_LINKED="account_link",ck.ACCOUNT_UNLINKED="account_link",ck.ADD_CIRCLE="add_circle",ck.ADD_FRIEND="person_child",ck.ADD_TO_LIBRARY="bookmark",ck.ADD_TO_PLAYLIST="add",ck.ADD_TO_QUEUE_TAIL="queue",ck.ADD_TO_REMOTE_QUEUE="playlist_audio",ck.ADD_TO_WATCH_LATER="clock",ck.ADD_VIDEO_LINK="film_strip_add",ck.ADMIN_PANEL_SETTINGS=
"gear",ck.ALERT_WARN_RED="alert_triangle",ck.ALIGN_LEFT="text_align_left",ck.ARROWS_ALERT="arrow_split_alert",ck.ARROW_BACK="arrow_left",ck.ARROW_CIRCLE="arrow_counterclockwise",ck.ARROW_CIRCLE_PLAY="replay",ck.ARROW_CIRCLE_RIGHT="arrow_clockwise",ck.ARROW_DIAGONAL="arrow_up_left",ck.ARROW_DIAGONAL_UP_RIGHT="arrow_up_right",ck.ARROW_DROP_DOWN="triangle_down",ck.ARROW_DROP_UP="triangle_up",ck.ARROW_FORWARD="arrow_right",ck.ARROW_PAUSE="pause_history",ck.ARROW_UNDO="undo",ck.ARTICLE="text_page",ck.ARTICLE_ALERT=
"text_page_alert",ck.ARTICLE_CHECK="text_page_check",ck.ARTICLE_CLARIFY="text_page_info",ck.AUDIOTRACK="audio",ck.AUDIO_BADGE="audio_badge",ck.AUDIO_SURROUND="surround_sound",ck.AVATAR_ANONYMOUS="person_circle",ck.AVATAR_LOGGED_OUT="person_circle",ck.BACK="arrow_left",ck.BAR_CHART="chart_bar",ck.BAR_CIRCLE="minus_circle",ck.BAR_HORIZONTAL="minus",ck.BLOCK="circle_slash",ck.BLOCK_USER="circle_slash",ck.BOOKMARK_BORDER="bookmark",ck.BOX_OPEN_CHECK="quiz",ck.BOX_PENCIL="square_pencil",ck.BREAKING_NEWS_ALT_1=
"text_page_alert",ck.BROADCAST="podcast",ck.BROADCAST_CAIRO="podcast",ck.BUG_REPORT="bug",ck.CAMERA_ALT="camera",ck.CAMPAIGN="megaphone",ck.CANCEL="x_circle",ck.CAPTIONS="closed_captions",ck.CAST_ICON="chromecast",ck.CAST_OUTLINE="chromecast",ck.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",ck.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_waves",ck.CHAT="text_bubble",ck.CHAT_BUBBLE="bubble",ck.CHECK_BOX="check_square",ck.CHECK_BOX_OUTLINE_BLANK="square",ck.CHECK_CIRCLE_FILLED="check_circle",ck.CHECK_CIRCLE_OUTLINE=
"check_circle",ck.CHECK_CIRCLE_THICK="check_circle",ck.CHECK_DOUBLE="check_done",ck.CHECK_DOUBLE_OFF="check_done_slash",ck.CHEVRON_LEFT="chevron_left",ck.CHEVRON_RIGHT="chevron_right",ck.CHEVRON_RIGHT_CAIRO="chevron_right",ck.CIRCLES_OVERLAP="account_link",ck.CLAPPERBOARD_CAIRO="clapperboard",ck.CLARIFY="text_page_info",ck.CLOCK_ARROWS="clock_split",ck.CLOCK_ARROWS_ALERT="clock_split_alert",ck.CLOSED_CAPTION="closed_captions",ck.CLOSED_CAPTION_SELECTED="closed_captions",ck.CLOSE="x",ck.CLOUD_UPLOAD=
"cloud_arrow_up",ck.COLLAPSE="chevron_up",ck.COLLAPSE_CAIRO="chevron_up",ck.COLLECTION="square3d_stack",ck.COLOR_LENS="paint_palette",ck.COMMENT="text_bubble",ck.CONSENT_SHIELD="person_shield",ck.CONTENT_CUT="scissors",ck.CONTENT_CUT_CAIRO="scissors",ck.COURSE="graduation_cap",ck.COURSE_CAIRO="graduation_cap",ck.CREATION_LIVE="live",ck.CREATION_POST="square_pencil",ck.CREATION_UPLOAD="video",ck.CREATION_UPLOAD_RED="upload",ck.CREATOR_ACADEMY="graduation_cap",ck.CREATOR_STUDIO="youtube_studio",ck.DARK_THEME=
"theme",ck.DELETE="trash_can",ck.DELETE_SWEEP="trash_can",ck.DESKTOP="laptop",ck.DISLIKE="thumb_down",ck.DISLIKE_SELECTED="thumb_down",ck.DISMISSAL="x",ck.DISMISS_QUEUE="playlist_x",ck.DOGFOOD="pawprint",ck.DOLLAR_SIGN="dollar_sign_circle",ck.DOLLAR_SIGN_CIRCLE="dollar_sign_circle",ck.DOLLAR_SIGN_CONTAINER="dollar_sign_rectangle",ck.DOWN_ARROW="arrow_down",ck.DO_NOT_DISTURB="circle_slash",ck.DRAFT="document",ck.EARTH="globe",ck.EDIT="pencil",ck.EMOJI="face_very_happy",ck.EMOJI_FLAGS="flag",ck.EMOJI_OBJECTS=
"lightbulb",ck.EMOJI_PEOPLE="face_very_happy",ck.EMOJI_RECENT="clock",ck.EMPTY_HEART="heart",ck.EMPTY_LIKE="thumb_up",ck.ERROR_BLACK="alert_circle",ck.ERROR_OUTLINE="alert_circle",ck.ERROR_WHITE="alert_circle",ck.EXIT_APP="arrow_in",ck.EXIT_TO_APP="arrow_in",ck.EXPAND="chevron_down",ck.EXPAND_ALL="chevron_expand",ck.EXPAND_CAIRO="chevron_down",ck.EXPAND_LESS="chevron_up",ck.EXPAND_MORE="chevron_down",ck.EXPLORE="compass",ck.EXPLORE_DESTINATION="compass",ck.EXTERNAL_LINK="arrow_up_right",ck.EYE_OFF=
"eye_slash",ck.FAB_UPLOAD="upload",ck.FACE_HAPPY_OUTLINE="face_happy",ck.FACE_MEH="face_neutral",ck.FACT_CHECK="text_page_check",ck.FASHION_LOGO="fashion",ck.FASHION_LOGO_CAIRO="fashion",ck.FAVORITE="thumb_up",ck.FEEDBACK="alert_bubble",ck.FEEDBACK_CAIRO="alert_bubble",ck.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",ck.FILL_ARROW_SOLID_UP_16="arrow_solid_up",ck.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",ck.FLAG_CAIRO="flag",ck.FLASH_OFF="flash_slash",ck.FLASH_ON="flash",ck.FULL_HEART="heart",ck.GAMING_LOGO=
"gaming",ck.GAMING_LOGO_CAIRO="gaming",ck.GO_TO_PAGE="arrow_right",ck.GROUPS="person3",ck.HAND_SWIPE_LEFT="gesture_swipe_left",ck.HAND_SWIPE_RIGHT="gesture_swipe_right",ck.HAPPY="face_happy",ck.HEALTH_AND_SAFETY="shield_health",ck.HEART_BOX="heart_cube",ck.HELP="help_circle",ck.HELP_CAIRO="help_circle",ck.HELP_OUTLINE="help_circle",ck.HIDE="circle_slash",ck.INCOGNITO_CAIRO="incognito",ck.INFINITY_ICON="infinity",ck.INFO="info_circle",ck.INFO_OUTLINE="info_circle",ck.INSERT_CHART_OUTLINED="chart_bar_square",
ck.INSERT_PHOTO="image",ck.KEEP="pin",ck.KEEP_OFF="pin_slash",ck.KEYBOARD="keyboard",ck.KEYBOARD_ARROW_DOWN="chevron_down",ck.KEYBOARD_ARROW_UP="chevron_up",ck.KIDS_BLOCK="circle_slash",ck.LANGUAGE="globe",ck.LAUNCH="arrow_up_right",ck.LEARNING="lightbulb",ck.LEARNING_CAIRO="lightbulb",ck.LIBRARY_ADD="bookmark",ck.LIBRARY_IMAGE="image_stack",ck.LIBRARY_MUSIC="audio_square_stack",ck.LIBRARY_OUTLINE="play_square_stack",ck.LIBRARY_REMOVE="bookmark",ck.LIBRARY_SAVED="check_square_stack",ck.LIKES_PLAYLIST=
"thumb_up",ck.LIKES_PLAYLIST_CAIRO="thumb_up",ck.LIKE="thumb_up",ck.LIKE_SELECTED="thumb_up",ck.LIST_QUEUE="queue",ck.LIVE_CAIRO="live",ck.LIVE_UNLISTED="link",ck.LOCATION_ON="location_pin",ck.LOCATION_PIN="location_pin",ck.LOCATION_POINT="location_pin",ck.LOOP="repeat",ck.LOOP_ACTIVE="repeat",ck.LOOP_ONE="repeat1",ck.LOOP_ONE_ACTIVE="repeat1",ck.MEET="google_meet",ck.MEH="face_neutral",ck.MEMBERSHIPS="memberships",ck.MEMBERS_ONLY_MODE_OFF="text_bubble",ck.MENU_FILTER="filter",ck.MESSAGE="text_bubble",
ck.MESSAGE_BUBBLE_GEAR="bubble_gear",ck.MESSAGE_BUBBLE_LEFT="text_bubble",ck.MESSAGE_BUBBLE_LEFT_BOOST="bubble_sparkles",ck.MESSAGE_BUBBLE_OVERLAP="bubble_stack",ck.MESSAGE_BUBBLE_QUESTION="help_bubble",ck.MICROPHONE_ON="mic",ck.MONETIZATION_ON="dollar_sign_circle",ck.MONEY_FILL="dollar_sign_rectangle",ck.MONEY_FILL_JPY="yen_sign_rectangle",ck.MONEY_HAND="dollar_sign_circle_hand",ck.MONEY_HEART="dollar_sign_heart",ck.MOON_Z="sleep_timer",ck.MORE_HORIZ="overflow_horizontal",ck.MORE_VERT="overflow_vertical",
ck.MUSIC="audio",ck.MUSIC_CAIRO="audio",ck.MUSIC_EXPLICIT_BADGE="explicit",ck.MUSIC_NEW_RELEASE="audio_badge",ck.MUSIC_NOTE_SYMBOL="audio",ck.MUSIC_SCISSORS="audio_scissors",ck.MUSIC_SHUFFLE="shuffle",ck.MY_CHANNEL="person_circle",ck.MY_LOCATION="location_pin",ck.MY_VIDEOS="video",ck.MY_VIDEOS_CAIRO="video",ck.NEWS_CAIRO="news",ck.NEWS_STORY="news",ck.NEXT="chevron_right",ck.NOTE_ADD="bubble_pencil",ck.NOTIFICATIONS="bell",ck.NOTIFICATIONS_ACTIVE="bell_waves",ck.NOTIFICATIONS_CAIRO="bell",ck.NOTIFICATIONS_DONE_CHECKMARK=
"check",ck.NOTIFICATIONS_INBOX="bell",ck.NOTIFICATIONS_NONE="bell",ck.NOTIFICATIONS_OFF="bell_slash",ck.NOT_INTERESTED="circle_slash",ck.OFFICIAL_ARTIST_BADGE="audio",ck.OFFLINE_CLOUD="cloud_slash",ck.OFFLINE_DOWNLOAD="download",ck.OFFLINE_DOWNLOAD_CAIRO="download",ck.OFFLINE_PAUSE="pause",ck.OPEN_IN_NEW="arrow_up_right",ck.OUTLINE_ADJUST="adjust",ck.OUTLINE_ARROW_SOLID_DOWN="arrow_solid_down",ck.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",ck.OUTLINE_ARROW_SOLID_UP="arrow_solid_up",ck.OUTLINE_ARROW_SOLID_UP_16=
"arrow_solid_up",ck.OUTLINE_BAG="bag",ck.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_dashed",ck.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",ck.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",ck.OUTLINE_YOUTUBE_IMPROVE_TV="star_tv",ck.PAID="dollar_sign_circle",ck.PAUSE_OUTLINED="pause",ck.PAYMENT="credit_card",ck.PEOPLE="person_child",ck.PEOPLE_2="person2_rectangle",ck.PEOPLE_GROUP="person3",ck.PEOPLE_NOTE="bubble_asterisk",ck.PERSON_2="person2",ck.PERSON_ACCOUNT="person_square_stack",ck.PERSON_MINUS=
"person_x",ck.PERSON_MUSIC="person_audio",ck.PERSON_RADAR="person_waves",ck.PERSON_RADAR_FILLED="person_waves",ck.PERSON_SETTING="person_gear",ck.PHONE="phone",ck.PHONE_DOWNLOAD="mobile_arrow_down",ck.PICTURE_IN_PICTURE="picture_in_picture",ck.PLAYABLES_LOGO="playables",ck.PLAYABLES_LOGO_CAIRO="playables",ck.PLAYLISTS="playlist",ck.PLAYLISTS_CAIRO="playlist",ck.PLAYLIST_ADD_CHECK="bookmark",ck.PLAY_ALL="play",ck.PLAY_ARROW="play",ck.PLAY_ARROW_CIRCLE="play_circle",ck.PLAY_ARROW_HALF_CIRCLE="play_circle_half_dashed",
ck.PLAY_CIRCLE="play_circle",ck.PLAY_OUTLINED="play_circle",ck.PODCAST_ADD="podcast_add",ck.PODCAST_CHECK="podcast_check",ck.PRIVACY_INFO="shield_x",ck.PRIVACY_PRIVATE="lock",ck.PRIVACY_PUBLIC="globe",ck.PRIVACY_UNLISTED="link",ck.PROMOTE="megaphone",ck.PURCHASES="price_tag",ck.PURCHASE_SUPER_CHAT="super_chat",ck.PURCHASE_SUPER_STICKER="super_sticker",ck.QUESTION_ANSWER="help_bubble",ck.QUESTION_CIRCLE="help_circle",ck.QUEUE_PLAY_LAST="queue_last",ck.QUEUE_PLAY_NEXT="playlist",ck.QUOTATION_MARK="quote",
ck.RADAR_LIVE="live",ck.REMOVE="minus_circle",ck.REMOVE_CIRCLE="minus_circle",ck.REMOVE_CIRCLE_OUTLINE="minus_circle",ck.REMOVE_FROM_HISTORY="minus_circle",ck.REMOVE_FROM_PLAYLIST="minus_circle",ck.REPLAY="arrow_counterclockwise",ck.REPLAY_10="skip10_back",ck.REPLAY_ARROW="replay",ck.REPORT_PROBLEM="alert_triangle",ck.RSS_OFF="rss_slash",ck.SAD="face_sad",ck.SAVE_PLAYLIST="bookmark",ck.SCHEDULE="clock",ck.SCHOOL="graduation_cap",ck.SCREEN_DEFAULT="player_default",ck.SCREEN_FULLSCREEN="player_full_enter",
ck.SCREEN_LIGHT="ambient_mode",ck.SCREEN_ROTATION="rotate_portrait",ck.SCREEN_SWITCH="player_switch",ck.SEARCH_CAIRO="search",ck.SEARCH_HISTORY="history",ck.SELL="price_tag",ck.SETTINGS="gear",ck.SETTINGS_CAIRO="gear",ck.SETTINGS_LIGHT="gear",ck.SETTINGS_MATERIAL="gear",ck.SETTINGS_REMOTE="remote_waves",ck.SHARE="share",ck.SHARE_ARROW="share",ck.SHARE_CAIRO="share",ck.SHIELD="shield_x",ck.SHIELD_OFF="shield_slash",ck.SHIELD_WITH_AVATAR="person_shield",ck.SHOPPING_BAG="bag",ck.SHOPPING_BAG_CAIRO="bag",
ck.SHOPPING_CART="cart",ck.SHORTS_COMMENT="text_bubble",ck.SHORTS_DISLIKE="thumb_down",ck.SHORTS_LIKE="thumb_up",ck.SHORTS_SHARE="share",ck.SKIP_FORWARD_30="skip30_forward",ck.SLASH_CIRCLE_RIGHT="circle_slash",ck.SLOW_MODE_OFF="text_bubble",ck.SOCIAL="person_child",ck.SPARKLE="sparkles",ck.SPARK_IMAGE="image_spark",ck.SPARK_RADAR="spark_waves",ck.SPARK_VIDEO="video_spark",ck.SPEAKER_GROUP="speaker_stack",ck.SPEAKER_OFF="speaker_slash",ck.SPEED_1X="n1x",ck.SPEED_1_POINT_2X="n1point2x",ck.SPEED_1_POINT_5X=
"n1point5x",ck.SPEED_1_POINT_8X="n1point8x",ck.SPEED_2X="n2x",ck.SPONSORSHIP_STAR="memberships",ck.SPORTS="basketball",ck.SPOTLIGHT="spotlight",ck.STAFF_PICK="spotlight",ck.START_DVR="add",ck.STAR_BORDER="star",ck.STAR_HALF="star_half_filled",ck.STAR_SHOOTING="hype",ck.STICKER="sticker",ck.STICKER_EMOTICON="face_happy",ck.STOP_DVR="stop",ck.SUBSCRIBE="youtube",ck.SUBSCRIBE_PLUS="add",ck.SUBSCRIPTION_MANAGER="gear",ck.SUPERSTAR="super_star",ck.SUPERVISOR_ACCOUNT="person_child",ck.SWAP_HORIZ="arrow_swap_horizontal",
ck.SWITCH_ACCOUNTS="person_square_stack",ck.TAB_ACCOUNT="person",ck.TAB_ACTIVITY="bell",ck.TAB_BOOKMARK="bookmark",ck.TAB_EXPLORE="compass",ck.TAB_HOME="home",ck.TAB_HOME_CAIRO="home",ck.TAB_INBOX="mail",ck.TAB_LIKED="thumb_up",ck.TAB_MUSIC_PREMIUM="youtube_music",ck.TAB_SHORTS="shorts",ck.TAB_SHORTS_CAIRO="shorts",ck.TAB_SUBSCRIPTIONS="subscriptions",ck.TAB_SUBSCRIPTIONS_CAIRO="subscriptions",ck.TAB_TRENDING="trending",ck.TARGET="target",ck.TARGET_ADD="target_add",ck.TEMPLATE_ADD="template_add",
ck.TEXT="font",ck.TIMER="stopwatch",ck.TRENDING_CAIRO="trending",ck.TRENDING_UP="arrow_trend_up",ck.TROPHY_CAIRO="trophy",ck.TROPHY_CELEBRATIONS="fireworks",ck.TROPHY_STAR="star_trophy",ck.TUNE="adjust",ck.UNBLOCK_USER="minus_circle",ck.UNFAVORITE="thumb_down",ck.UNLIMITED="youtube",ck.UNPLUGGED_LIVE_GUIDE="live",ck.UNPLUGGED_SPORTS="eye_slash",ck.UPLOADS="play_square_stack",ck.UP_ARROW="arrow_up",ck.VERTICAL_ALIGN_BOTTOM="chevron_down_end",ck.VERTICAL_ALIGN_TOP="chevron_up_end",ck.VERY_HAPPY="face_very_happy",
ck.VERY_SAD="face_very_sad",ck.VIDEOS="play_circle",ck.VIDEO_CALL="video_camera_add",ck.VIDEO_LIBRARY_WHITE="play_square_stack",ck.VIDEO_QUALITY_4K="n4k",ck.VIDEO_QUALITY_8K="n8k",ck.VIDEO_YOUTUBE="youtube",ck.VIEW_LIST_CAIRO="view_list",ck.VIEW_MODULE="view_column3_row2",ck.VISIBILITY="eye",ck.VISIBILITY_OFF="eye_slash",ck.VOLUME_DOWN="volume_min",ck.VOLUME_MUTE="volume_mute",ck.VOLUME_OFF="volume_mute",ck.VOLUME_STABLE="stable_volume",ck.VOLUME_UP="volume_max",ck.WALLPAPER="image",ck.WARNING="alert_triangle",
ck.WATCH_HISTORY="history",ck.WATCH_HISTORY_CAIRO="history",ck.WATCH_LATER="clock",ck.WATCH_LATER_CAIRO="clock",ck.WATCH_RELATED_MIX="mix",ck.WHAT_TO_WATCH="home",ck.YOUTUBE_LINKED_TV="tv_mobile",ck.YOUTUBE_MUSIC_MONOCHROME="youtube_music",ck.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music",ck.YOUTUBE_SHORTS_ARROW_DOWN="arrow_down",ck.YOUTUBE_SHORTS_ARROW_UP="arrow_up",ck.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="shorts_empty",ck.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16="shorts_empty",ck.YOUTUBE_SHORTS_OUTLINE_24=
"shorts",ck);var xwl={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 FDJ={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,5,24],[1,5,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,
1,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,10,24],[1,10,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,2,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]],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,1,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 BZh={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"},Q6=function(S){this.iconUrlProvider=S};
Q6.prototype.resolveIcon=function(S,c){var Q=BZh[S.iconName.toUpperCase()];Q&&(S.iconName=Q);var f=S.iconName;f=f.replace(/-/g,"_");S=Object.assign({},S,{iconName:this.mapIconTypeToStandardName(f,!!Q)||f.toLowerCase()});if(_.u("enable_web_delhi_icons")||Q){var U;return sVc(FDJ,S,((U=this.iconUrlProvider)==null?void 0:U.getYtStandardUrl)||ZBY,c)}var a;return sVc(xwl,S,((a=this.iconUrlProvider)==null?void 0:a.getYtStandardUrl)||iBp,c)};
Q6.prototype.mapIconTypeToStandardName=function(S,c){return _.u("enable_web_delhi_icons")||c?zEJ[S.toUpperCase()]:OGu[S.toUpperCase()]};
Q6[mt]=[_.QS(ay_)];var Iyd=new Set("audio_badge offline_pause pause play_all play_arrow youtube_music".split(" ")),nGe=function(S){this.urlProvider=this.iconUrlProvider=S};
_.C(nGe,Q6);
nGe.prototype.resolveIcon=function(S,c){S.iconName==="youtube_logo"&&(S.iconName="yt-logo-updated");if(S.iconName==="youtube_premium_logo"||S.iconName==="youtube_red_logo")S.iconName="yt-logo-red-updated";var Q=Object.assign({},S);S.iconName==="menu"&&(_.u("enable_web_delhi_icons")||(Q.iconName="bars_3"),Q.iconStyle="youtube_outline");S.iconSetName==="socialNetworksRound"&&(S.iconName==="mail"&&(Q.iconName="email"),S.iconName==="embed"&&(Q.iconSize=60));S.iconName==="more"&&(Q.iconName="overflow_horizontal");
S.iconName==="fullscreen"&&(Q.iconName="screen_full");S.iconName==="premium_standalone"&&(Q.iconName="premium_standalone_cairo");_.u("enable_connect_icon_update_web")&&S.iconName==="account_linked"&&(Q.iconName="circles_overlap_check",Q.iconStyle="youtube_fill");_.u("enable_connect_icon_update_web")&&S.iconName==="account_unlinked"&&(Q.iconName="circles_overlap",Q.iconStyle="youtube_outline");Iyd.has(S.iconName)&&(Q.iconStyle="youtube_fill");_.u("enable_web_delhi_icons")&&S.iconName==="playlist_add"&&
(Q.iconName="bookmark");S=Object.assign({},Q,{iconName:(Q6.prototype.mapIconTypeToStandardName.call(this,Q.iconName)||Q.iconName).toLowerCase()});var f;return(S=sVc(UwJ,S,((f=this.urlProvider)==null?void 0:f.getUrl)||GjZ,c))?S:Q6.prototype.resolveIcon.call(this,Q,c)};
nGe[mt]=[_.QS(ay_)];_.bGp=1;var fZ=function(){};
_.C(fZ,gi);fZ.prototype.resolveCommand=function(S){var c,Q;return _.O(function(f){c=_.Y(S,p$z);if(!c)return f.return();Q=Number(c.enableDelayedPacfLoggingTvMs);if(isNaN(Q)){var U=xg();rgz(U,c,0)}else rgz(xg(),c,Q);_.IN(f)})};_.UQ=function(){};
_.C(_.UQ,gi);
_.UQ.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I;return _.O(function(n){f=_.Y(S,hpe);a=(U=c.form)==null?void 0:U.element;z=(X=a)==null?void 0:X.closest("ytd-enforcement-message-view-model");if(!f||!z)return n.return();Q.allowAdsAction||(x=f.fundingChoiceInstructionPageUrl,Q.allowAdsAction=new co_(window,_.iH(x)));var b=Q.allowAdsAction;b.wallElement=z;b.allowAdsPopup.style.setProperty("display","flex","important");var N=b.scrollManager;N.originalBodyOverflow=N.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow;N.JSC$8036_domHelper.JSC$7363_document_.body.style.overflow=
"hidden";b.wallElement.style.setProperty("display","none","important");Bbh(b.accessibilityManager,b.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((I=Q.allowAdsAction.allowAdsPopup)&&I instanceof HTMLElement)for(b=_.A(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),N=b.next();!N.done;N=b.next()){var l=_.A(N.value);N=l.next().value;l=l.next().value;I.style.setProperty(N,l)}_.IN(n)})};
_.UQ.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var Jx=function(){};
_.C(Jx,gi);Jx.prototype.resolveCommand=function(S){var c;return _.O(function(Q){c=_.Y(S,g1T);if(!c)return Q.return();DzZ(S);_.IN(Q)})};var ae=function(S){this.JSC$15109_commandHandler=S};
_.C(ae,gi);
ae.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1){Q=_.Y(S,z1i);if((f=Q)==null||!f.text||!navigator.clipboard)return n.return();_.X1(n,2);return _.F(n,navigator.clipboard.writeText(Q.text),4)}if(n.nextAddress!=2){if(!Q.successActions||Q.successActions.length===0)return n.return();U=_.A(Q.successActions);for(a=U.next();!a.done;a=U.next())X=a.value,c.JSC$15109_commandHandler.resolveCommand(X);return _.Pi(n,0)}_.Bs(n);if(!Q.failureActions||Q.failureActions.length===
0)return n.return();z=_.A(Q.failureActions);for(x=z.next();!x.done;x=z.next())I=x.value,c.JSC$15109_commandHandler.resolveCommand(I);_.IN(n)})};
ae[mt]=[_.U8];var Ax=function(S){this.JSC$15113_commandHandler=S};
_.C(Ax,gi);
Ax.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N;return _.O(function(l){switch(l.nextAddress){case 1:f=_.Y(S,LIp);if(!f)return l.return();_.X1(l,2);if(!f.imageBytes&&!f.imageUrl)throw Error("yi");if(!f.imageUrl){if(f.imageBytes){a=f.imageBytes;X=a.replace(/-/g,"+").replace(/_/g,"/");var H=eXc(X);U=_.lo(H)}l.jumpTo(4);break}return _.F(l,fetch(f.imageUrl),5);case 5:return z=l.yieldResult,_.F(l,z.blob(),6);case 6:x=l.yieldResult,U=_.lo(x);case 4:b=(I=c)==null?void 0:(n=I.form)==
null?void 0:n.element;N=document.createElement("a");DQ(N,U);b.appendChild(N);N.download="";N.click();b.removeChild(N);URL.revokeObjectURL(_.nc(U));f.successCommand&&Q.JSC$15113_commandHandler.resolveCommand(f.successCommand);_.Pi(l,0);break;case 2:_.Bs(l),f.errorCommand&&Q.JSC$15113_commandHandler.resolveCommand(f.errorCommand),_.IN(l)}})};
Ax[mt]=[_.U8];var X7=function(S){this.store=S};
_.C(X7,gi);X7.prototype.resolveCommand=function(S){var c=this,Q,f,U;return _.O(function(a){f=(Q=_.Y(S,_.CrJ))==null?void 0:Q.entityBatchUpdate;if(!f)return a.jumpTo(0);U=Object.assign({},f,{mutations:[].concat(_.Hs(f.mutations||[]))});return _.F(a,_.NO(U,c.store),0)})};var NZ$=function(S){this.JSC$15120_commandHandler=S;this.feedbackDialogMap=new Map};
NZ$.prototype.openDialog=function(S,c){(S=this.feedbackDialogMap.get(S))&&this.JSC$15120_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:S}},c)};
NZ$[mt]=[_.U8];var OQ=new _.Sg("FEEDBACK_CONTROLLER_TOKEN");var zP=new _.Sg("APP_STORE_TOKEN");var xX=function(S,c){this.store=S;this.controller=c};
_.C(xX,gi);xX.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E;return _.O(function(v){if(v.nextAddress==1){f=_.Y(S,_.ie);if(a=(U=f)==null?void 0:U.contentId)for(z=_.A(((X=f)==null?void 0:X.actions)||[]),x=z.next();!x.done;x=z.next())I=x.value,KDT(Q,I,a);N=(n=c)==null?void 0:(b=n.form)==null?void 0:b.element;return _.F(v,_.xt(N,[S]).catch(function(){}),2)}l=v.yieldResult;
((H=l)==null?0:(q=H.data)==null?0:(w=q.feedbackResponses)==null?0:w.length)&&(r=(g=l.data.feedbackResponses[0])==null?void 0:g.followUpDialog)&&a&&(E=Q.controller)!=null&&E.feedbackDialogMap.set(a,r);_.IN(v)})};
var KDT=function(S,c,Q){var f=_.Y(c,_.II);if(f){f=_.A(f.commands||[]);for(var U=f.next();!U.done;U=f.next())KDT(S,U.value,Q)}_.Y(c,_.Yc)&&S.store.dispatch(_.Ns("commandEntity",k6T(Q),{key:Q,command:c}));_.Y(c,Hj$)&&S.store.dispatch(_.Ns("commandEntity",k6T(Q),{key:Q,command:c}))};
xX[mt]=[zP,OQ];var F7=function(S){this.controller=S};
_.C(F7,gi);F7.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X;return _.O(function(z){f=_.Y(S,_.ee);a=(U=f)==null?void 0:U.targetId;if(((X=f)==null?void 0:X.signal)!=="TELL_US_WHY"||!a)return z.return();Q.controller.openDialog(a,c);_.IN(z)})};
F7[mt]=[OQ];var Bk=function(S){this.store=S};
_.C(Bk,gi);Bk.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I;return _.O(function(n){f=_.Y(S,OFH);a=(U=f)==null?void 0:U.contentId;x=(X=c)==null?void 0:(z=X.form)==null?void 0:z.element;I=_.xt(x,[S]);a&&Q.undo(a);return _.F(n,I,0)})};
Bk.prototype.undo=function(S){this.store.dispatch(_.Ns("commandEntity",k6T(S),{key:S,command:void 0}))};
Bk[mt]=[zP];var Ie=function(S){this.JSC$15135_commandHandler=S};
_.C(Ie,gi);Ie.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I;return _.O(function(n){Q=_.Y(S,kE$);f=Q.flowStateKey;U=Q.validationFailureCommand;a=Q.submitValidFormCommand;X=LU(_.fj,[f||""]);z=_.Y(X,d1l);((x=z)==null?0:x.isValid)&&a&&c.JSC$15135_commandHandler.resolveCommand(a);((I=z)==null?0:I.isValid)||!U||c.JSC$15135_commandHandler.resolveCommand(U);_.IN(n)})};
Ie[mt]=[_.U8];var nZ=function(S){this.innertubeTransportService=S};
_.C(nZ,gi);nZ.prototype.resolveCommand=function(S,c){var Q=this,f;return _.O(function(U){return _.F(U,_.P3(Q.innertubeTransportService,S,(f=c)==null?void 0:f.form).then(function(a){var X,z;c==null||(X=c.commandController)==null||(z=X.onSuccess)==null||z.call(X,S,a)},function(a){var X,z;
c==null||(X=c.commandController)==null||(z=X.onServerError)==null||z.call(X,S,a)}),0)})};
nZ[mt]=[_.M6];var b$=function(){};
_.C(b$,gi);b$.prototype.resolveCommand=function(S){var c,Q,f,U;return _.O(function(a){if(c=_.Y(S,_.ypJ)){if(Q=c.gtmId)f=_.WY("GL",""),_.qu(Q,f);(U=c.gtmData)&&_.T3(U)}_.IN(a)})};var NQ=function(S,c){this.innertubeTransportService=S;this.JSC$15146_actionRouter=c};
_.C(NQ,gi);NQ.prototype.resolveCommand=function(S){var c=this,Q,f;return _.O(function(U){Q=_.Y(S,VPz);if(!Q)return U.return();f=Q.command;if(!f)return U.return();c.JSC$15146_actionRouter.triggerAction("yt-insert-rich-section-action",Q);return _.F(U,_.P3(c.innertubeTransportService,f,{disableCache:!0}),0)})};
NQ[mt]=[_.M6,yo];rRZ.bind(null,e7);var $wd=rRZ.bind(null,Jgd);v4M.bind(null,e7);var u_i=v4M.bind(null,Jgd);LfM.bind(null,e7);var jo$=LfM.bind(null,Jgd);var KZ=function(){};
_.C(KZ,gi);
KZ.prototype.resolveCommand=function(S){var c,Q,f,U,a,X,z,x,I,n;return _.O(function(b){c=_.Y(S,CR$);if(!c)return b.return();f=((Q=c.operations)==null?void 0:Q.operations)||[];U=_.A(f);for(a=U.next();!a.done;a=U.next())if(X=a.value,X.insertItemSectionContent){var N=X.insertItemSectionContent,l=N.contents||[];N.insertByPositionInSection?$wd(N.insertByPositionInSection.sectionTargetId,l,N.insertByPositionInSection.position):N.insertByRelativePositionInSection&&N.insertByRelativePositionInSection.sectionTargetId&&N.insertByRelativePositionInSection.itemTargetId&&
u_i(N.insertByRelativePositionInSection.sectionTargetId,N.insertByRelativePositionInSection.itemTargetId,l,N.insertByRelativePositionInSection.relativePosition)}else X.replaceSection?(N=X.replaceSection,l={},N.replaceByTargetId?l=N.replaceByTargetId:N.replaceByGroupId&&(l={targetId:N.replaceByGroupId.groupId,newContent:N.replaceByGroupId.newContent,undoKey:""}),l.newContent&&Xfe(l.targetId,{continuationItems:[l.newContent]})):X.removeItem?(N=X.removeItem,N.removeByTargetId&&N.sectionTargetId&&jo$(N.sectionTargetId,
N.removeByTargetId.targetIds||[])):X.removeSection&&(X.removeSection.removeByTargetId?(z=void 0,lyl(((z=X.removeSection)==null?void 0:z.removeByTargetId.targetIds)||[])):X.removeSection.removeByGroupId&&(x=void 0,lyl(((x=X.removeSection)==null?void 0:x.removeByGroupId.groupIds)||[])));n=((I=c.operations)==null?void 0:I.scrollConfig)||{};YAT(n);_.IN(b)})};
var lyl=function(S){S=_.A(S);for(var c=S.next();!c.done;c=S.next())Xfe(c.value,{continuationItems:[]})},YAT=function(S){if(S.scrollToItem){var c=S.scrollToItem.item||{},Q=c.itemTargetId;
c=c.sectionTargetId;if(Q&&c){var f=document.querySelector("[data-target-id="+c+"]"),U=f==null?void 0:f.querySelector("[data-target-id="+Q+"]");f&&U&&setTimeout(function(){var a=U.offsetTop-f.offsetTop,X;if(((X=S.scrollToItem)==null?void 0:X.scrollPosition)==="SCROLL_POSITION_CENTER")a-=f.offsetHeight/2,a+=U.offsetHeight/2;else{var z;((z=S.scrollToItem)==null?void 0:z.scrollPosition)==="SCROLL_POSITION_END"&&(a-=f.offsetHeight,a+=U.offsetHeight)}f.scroll({top:a,behavior:"smooth"})},100)}}};var $X=new _.Sg("CLIENT_NAME_TOKEN");var CJ$=new _.Sg("DEFAULT_STORE_EXPIRATION_TOKEN");var Yvz=new _.Sg("CLIENT_LOCATION_SERVICE_TOKEN");var u$=function(S,c,Q){this.clientName=S||_.WY("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=c||_.TW.getInstance();this.JSC$15174_commandHandler=Q||_.BI.instance};
_.C(u$,gi);u$.prototype.resolveCommand=function(S){var c=this,Q,f;return _.O(function(U){f=(Q=_.Y(S,sa$))==null?void 0:Q.onComplete;c.clientLocationService.clearLocationPlayabilityToken(c.clientName);f&&c.JSC$15174_commandHandler.resolveCommand(f);_.IN(U)})};
u$[mt]=[$X,Yvz,_.U8];var jF=function(S){this.innertubeTransportService=S};
_.C(jF,gi);jF.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X;return _.O(function(z){a=(f=c)==null?void 0:(U=f.form)==null?void 0:U.element;return _.F(z,_.P3(Q.innertubeTransportService,S,(X=c)==null?void 0:X.form).then(function(x){iZM(a,new CustomEvent("yt-service-request-completed"),{data:x},_.WY("openPopupConfig"))}),0)})};
jF[mt]=[_.M6];var l$=function(){};
_.C(l$,gi);l$.prototype.resolveCommand=function(S){var c,Q;return _.O(function(f){c=_.Y(S,Eqh);Q=document.querySelector("mini-app-container-view-model");if(!c||!Q)return f.return();c.isPlaying?Q.dispatchEvent(new Event("play")):Q.dispatchEvent(new Event("pause"));_.IN(f)})};var YX=function(){};
_.C(YX,gi);YX.prototype.resolveCommand=function(S){var c,Q,f,U,a,X,z;return _.O(function(x){c=_.Y(S,PAs);if((Q=c)==null||!Q.paramKeys)return x.return();f=c.paramKeys;U=_.L9(window.location.href);a=_.A(f);for(X=a.next();!X.done;X=a.next())z=X.value,U.JSC$8068_queryData_.remove(z);window.history.replaceState(window.history.state,document.title,U.toString());_.IN(x)})};var HGi=function(){this.dropdownMap=new Map};_.Dwz=new _.Sg("DROPDOWN_CONTROLLER_TOKEN");var CZ=function(S){this.controller=S};
_.C(CZ,gi);CZ.prototype.resolveCommand=function(S){var c=this,Q,f,U,a;return _.O(function(X){Q=_.Y(S,CAJ);if(!Q)return X.return();f=Q;U=f.dropdownId;a=f.selectedOptionIndex;if(U===void 0||a===void 0)return X.return();var z=c.controller.dropdownMap.get(U);z&&z(a);_.IN(X)})};
CZ[mt]=[_.Dwz];var Hk=function(S){this.controller=S};
_.C(Hk,gi);Hk.prototype.resolveCommand=function(S){var c=this,Q;return _.O(function(f){return(Q=_.Y(S,kNd))?_.F(f,c.controller.closeDialog(),0):f.return()})};
Hk[mt]=[_.Hu];var DX=function(S){this.controller=S};
_.C(DX,gi);DX.prototype.resolveCommand=function(S){var c=this,Q,f;return _.O(function(U){Q=_.Y(S,lAi);if(!Q)return U.return();var a,X=Q.panelIdentifier||((a=Q.identifier)==null?void 0:a.tag);if(!X)throw Error("zi");return(f=X)?_.F(U,c.controller.hidePanel(f),0):U.jumpTo(0)})};
DX[mt]=[_.YF];var pZ=function(S,c){this.innertubeTransportService=S;this.controller=c};
_.C(pZ,gi);pZ.prototype.resolveCommand=function(S){var c=this,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return Q=_.Y(S,Ybl),(f=Q)!=null&&f.panelId?_.F(X,c.controller.getReloadContinuation(Q.panelId),2):X.return();if(X.nextAddress!=3)return(U=X.yieldResult)?_.F(X,_.P3(c.innertubeTransportService,S,{continuation:U}),3):X.return();a=X.yieldResult;return _.F(X,c.controller.updatePanel(Q.panelId,a.content,!1),0)})};
pZ[mt]=[_.M6,_.YF];var hx=function(S,c,Q){this.innertubeTransportService=S;this.JSC$15210_screenManager=c;this.JSC$15210_commandHandler=Q};
_.C(hx,gi);
hx.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1){Q=_.Y(S,_.B3u);if(!Q)return x.return();if(Q.commands)for(f=_.A(Q.commands),U=f.next();!U.done;U=f.next())a=U.value,c.JSC$15210_commandHandler.resolveCommand(a,{disableClickTracking:!0});X=_.Yz(S.clickTrackingParams);_.X2(c.JSC$15210_screenManager,21760,X,{layer:7,parentLayer:0});return _.F(x,_.P3(c.innertubeTransportService,S),2)}z=x.yieldResult;if(!z)return x.return();c.JSC$15210_screenManager.graftServerVe(z.trackingParams,X,
7);_.IN(x)})};
hx[mt]=[_.M6,_.Dp,_.U8];var qQ=new _.Sg("PANEL_LOADING_STRATEGY_TOKEN");var TP=function(S,c){this.controller=S;this.panelLoadingStrategy=c};
_.C(TP,gi);
TP.prototype.resolveCommand=function(S,c){var Q=this,f,U,a;return _.O(function(X){f=_.Y(S,Apd);if((U=f)==null||!U.panelLoadingStrategy)return X.return();a=function(z){var x,I,n,b,N,l,H,q,w;return _.O(function(g){I=_.Y((x=z.dialogViewModel)==null?void 0:x.header,Hkp);n={viewModel:z.dialogViewModel};b={};if(H=_.u("web_enable_dialog_header_label")?(N=I)==null?void 0:(l=N.headline)==null?void 0:l.content:void 0)b.ariaLabel=H;f.dismissOnBackgroundTap===!1&&(b.isModal=!0);return z.dialogViewModel?_.F(g,
Q.controller.openDialog(n,(q=c)==null?void 0:(w=q.form)==null?void 0:w.element,b),0):g.return()})};
return _.F(X,Q.panelLoadingStrategy.execute({command:S,data:f.panelLoadingStrategy,renderFn:a,createScreenConfig:{layer:4}}),0)})};
TP[mt]=[_.Hu,qQ];var wz=function(S,c,Q){this.innertubeTransportService=S;this.controller=c;this.JSC$15230_screenManager=Q};
_.C(wz,gi);
wz.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N,l,H;return _.O(function(q){switch(q.nextAddress){case 1:f=_.Y(S,_.M7);if(!f)return q.return();var w,g=f.panelIdentifier||((w=f.identifier)==null?void 0:w.tag);if(!g)throw Error("zi");U=g;return _.F(q,Q.controller.isVisible(U,!0),2);case 2:if((a=q.yieldResult)&&f.blockIfPanelOpen)return q.return();x=(z=(X=Q.controller).getPanelContent)==null?void 0:z.call(X,U);if(!(w=x))if(f){var r;w=((r=f.globalConfiguration)==null?void 0:r.initialState)||
f.engagementPanel;if(r=!w)r=!!(f==null?0:(g=f.engagementPanelPresentationConfigs)==null?0:g.engagementPanelPopupPresentationConfig);r&&(w=_.E4z(f.panelIdentifier,f.identifier))}else w=void 0;I=w;n=f.engagementPanelPresentationConfigs;b=f.engagementPanelExtras;return _.F(q,Q.controller.showPanel(U,I,n,b,(N=c)==null?void 0:(l=N.form)==null?void 0:l.element),3);case 3:if(!f.globalConfiguration){q.jumpTo(0);break}_.X2(Q.JSC$15230_screenManager,32633);return _.F(q,_.P3(Q.innertubeTransportService,S),5);
case 5:return H=q.yieldResult,Q.JSC$15230_screenManager.graftServerVe(H.trackingParams),_.F(q,Q.controller.updatePanel(U,H.content,!0,b,void 0,H.updatePanelContinuationData),0)}})};
wz[mt]=[_.M6,_.YF,_.Dp];var sQ=function(S,c){this.controller=S;this.panelLoadingStrategy=c};
_.C(sQ,gi);sQ.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x;return _.O(function(I){f=_.Y(S,_.KS);if((U=f)==null||!U.panelLoadingStrategy)return I.return();z=poH(Q.controller,(a=c)==null?void 0:(X=a.form)==null?void 0:X.element);x=function(n){return _.O(function(b){return n.sheetViewModel?_.F(b,Q.controller.openSheet({viewModel:n.sheetViewModel},z),0):b.return()})};
return _.F(I,Q.panelLoadingStrategy.execute({command:S,data:f.panelLoadingStrategy,renderFn:x,createScreenConfig:{layer:0}}),0)})};
sQ[mt]=[_.CE,qQ];var MQ=function(S,c){this.controller=S;this.JSC$15238_commandHandler=c};
_.C(MQ,gi);MQ.prototype.resolveCommand=function(S,c){var Q=this,f,U,a;return _.O(function(X){if(X.nextAddress==1){f=_.Y(S,pmh);var z=_.Y(f.showCommand,_.M7),x,I,n=(I=z==null?void 0:z.panelIdentifier)!=null?I:z==null?void 0:(x=z.identifier)==null?void 0:x.tag;if(!n)throw Error("Ai");U=n;return _.F(X,Q.controller.isVisible(U),2)}return(a=X.yieldResult)?_.F(X,Q.controller.hidePanel(U),0):_.F(X,Q.JSC$15238_commandHandler.resolveCommand(f.showCommand,c),0)})};
MQ[mt]=[_.YF,_.U8];var i$=function(S,c,Q){this.innertubeTransportService=S;this.controller=c;this.JSC$15241_screenManager=Q};
_.C(i$,gi);
i$.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V,AZ;return _.O(function(IH){switch(IH.nextAddress){case 1:return f=Q=_.Y(S,h1u),U=f.targetPanelIdentifier,a=f.contentSourcePanelIdentifier,X=f.globalConfiguration,((z=U)==null?0:z.tag)&&((x=a)==null?0:x.tag)?X?_.F(IH,c.controller.showPanel(U.tag,_.E4z(U.tag,U),void 0,void 0,void 0),5):_.F(IH,(N=(b=c.controller).getPanel)==null?void 0:N.call(b,a.tag),4):IH.return();case 4:l=IH.yieldResult;I=(H=l)==null?void 0:
(w=(q=H).getPanelContent)==null?void 0:w.call(q);IH.jumpTo(3);break;case 5:return _.F(IH,_.P3(c.innertubeTransportService,S),6);case 6:g=IH.yieldResult,((r=g)==null?0:r.trackingParams)&&c.JSC$15241_screenManager.graftServerVe(g.trackingParams),I=(E=g)==null?void 0:E.content,n=(v=g)==null?void 0:v.updatePanelContinuationData;case 3:if(V=(t=I)==null?void 0:t.engagementPanelSectionListRenderer)return _.F(IH,c.controller.showPanel(U.tag,void 0,void 0,void 0,void 0,{content:V.content,secondaryHeaderContent:(AZ=
V.header)!=null?AZ:{},targetId:V.targetId},n),0);IH.jumpTo(0)}})};
i$[mt]=[_.M6,_.YF,_.Dp];var ZX=function(S){this.JSC$15248_commandHandler=S};
_.C(ZX,gi);
ZX.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return(Q=_.Y(S,g5h))?_.F(x,_.Oe(),2):x.return();f=x.yieldResult;if(!f)return x.return();var I=f,n=(U=Q)==null?void 0:U.languageCode,b=(a=Q)==null?void 0:a.isAutoTranslated;I.getVideoData&&_.Vbo(I).length&&((n=yRZ(I,n,b))?I.setOption("captions","track",n):(I.setOption("captions","stickyLoading",{}),I.setOption("captions","track",{})));X=f.isSubtitlesOn()?_.K8("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):
_.K8("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");z=_.oB(X);c.JSC$15248_commandHandler.resolveCommand(z);_.IN(x)})};
ZX[mt]=[_.U8];var GP=function(S,c){this.shortsPlayerPromise=S;this.JSC$15252_commandHandler=c};
_.C(GP,gi);
GP.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1)return(Q=_.Y(S,c1p))?_.F(n,c.shortsPlayerPromise,2):n.return();f=n.yieldResult;var b=o4p(f);b!=null&&b.length||(f.loadModule("captions"),b=o4p(f));U=b;if((a=U)==null||!a.length)return X=_.K8("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),z=_.oB(X),c.JSC$15252_commandHandler.resolveCommand(z),n.return();f.toggleSubtitles();x=f.isSubtitlesOn()?_.K8("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.K8("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");I=_.oB(x);c.JSC$15252_commandHandler.resolveCommand(I);_.IN(n)})};
GP[mt]=[_.kKu,_.U8];var Wk=function(S){this.JSC$15255_playerPromise=S};
_.C(Wk,gi);Wk.prototype.resolveCommand=function(S){var c=this,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return(Q=_.Y(S,Hfu))?_.F(X,c.JSC$15255_playerPromise,2):X.return();f=X.yieldResult;U=f.getVideoData().video_id;Q.videoId===U&&(a=Number(Q.offsetFromVideoStartMilliseconds),a>=0&&f.seekTo(a/1E3));_.IN(X)})};
Wk[mt]=[_.J8];var hEe=_.xy("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),gz=function(S){this.store=S};
_.C(gz,gi);
var qAi=function(S){var c,Q,f,U;return _.O(function(a){if(a.nextAddress==1)return c=_.WY("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,Q=_.WY("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,f=c||Q,S.mainAppPlayer=new Ls(f),_.F(a,S.mainAppPlayer.api,2);U=a.yieldResult;U.addEventListener("onStateChange",S.JSC$15259_playerStateChangeListener.bind(S));document.addEventListener("yt-page-data-updated",S.pauseOnNavigation.bind(S));window.addEventListener("state-navigatestart",
S.pauseOnNavigation.bind(S));_.IN(a)})};
gz.prototype.JSC$15259_playerStateChangeListener=function(S){switch(S){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"}TZd(this)};
var TZd=function(S){S.store.dispatch(_.Ns("sfvAudioItemCurrentlyPlayingEntity",hEe,{key:hEe,externalVideoId:S.externalVideoId,sfvAudioItemPlaybackState:S.playbackState,nowPlayingEntityValue:S.nowPlayingEntityValue}))};
gz.prototype.pauseOnNavigation=function(){var S=this,c,Q,f,U;return _.O(function(a){if(a.nextAddress==1){if(!S.mainAppPlayer){var X=new _.Yr("Error: mainAppPlayer is unavailable",S.mainAppPlayer);_.sH(X);return a.return()}return _.F(a,S.mainAppPlayer.api,2)}c=a.yieldResult;f=(Q=c)==null?void 0:Q.getPlayerState();f!==1||(U=c)!=null&&U.pauseVideo();_.IN(a)})};
gz.prototype.playVideo=function(S,c,Q){var f=this,U,a;return _.O(function(X){if(X.nextAddress==1)return _.F(X,(U=f.mainAppPlayer)==null?void 0:U.api,2);a=X.yieldResult;if(!f.mainAppPlayer||!a){var z=new _.Yr("Error: mainAppPlayer is unavailable",f.mainAppPlayer);_.sH(z);return X.return()}return _.F(X,f.mainAppPlayer.loadVideoWithPlayerVars({videoId:f.externalVideoId,audio_only:"1",start:S/1E3,end:S/1E3+c,player_params:Q}),0)})};
gz.prototype.pauseVideo=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1){if(!S.mainAppPlayer){var U=new _.Yr("Error: mainAppPlayer is unavailable",S.mainAppPlayer);_.sH(U);return f.return()}return _.F(f,S.mainAppPlayer.api,2)}c=f.yieldResult;(Q=c)==null||Q.pauseVideo();_.IN(f)})};
gz.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v;return _.O(function(t){if(t.nextAddress==1)return Q=_.Y(S,y1h),U=(f=Q)==null?void 0:f.nowPlayingEntityValue,X=(a=Q)==null?void 0:a.externalVideoId,b=Number((n=(z=Q)==null?void 0:(x=z.defaultStartPoints)==null?void 0:(I=x[0])==null?void 0:I.offsetMs)!=null?n:"0"),g=Number((w=(N=Q)==null?void 0:(l=N.defaultStartPoints)==null?void 0:(H=l[0])==null?void 0:(q=H.duration)==null?void 0:q.seconds)!=null?w:"15"),v=(E=
(r=Q)==null?void 0:r.playerParams)!=null?E:"",U&&X?c.mainAppPlayer?t.jumpTo(2):_.F(t,qAi(c),2):t.return();if(t.nextAddress!=6){if(c.nowPlayingEntityValue&&U===c.nowPlayingEntityValue)return c.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.F(t,c.pauseVideo(),0):_.F(t,c.playVideo(b,g,v),0);c.externalVideoId=X;c.nowPlayingEntityValue=U;c.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.F(t,c.playVideo(b,g,v),6)}TZd(c);return t.jumpTo(0)})};
gz[mt]=[xs];var eF=function(S){this.JSC$15279_commandHandler=S};
_.C(eF,gi);eF.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return(f=_.Y(S,eCz))?_.F(x,_.Oe(),2):x.return();U=x.yieldResult;if(!U)return x.return();(a=f7M(U))?Q.JSC$15279_commandHandler.resolveCommand(a,c):(X=_.K8("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),z=_.oB(X),Q.JSC$15279_commandHandler.resolveCommand(z));_.IN(x)})};
eF[mt]=[_.U8];var kX=function(S){this.JSC$15282_playerPromise=S};
_.C(kX,gi);kX.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X;return _.O(function(z){if(z.nextAddress==1){Q=_.Y(S,DIT);if(!Q)return z.return();f=Q.overlayRenderer;return f?(U=_.Y(f,eOd))?_.F(z,c.JSC$15282_playerPromise,3):z.jumpTo(0):z.return()}a=z.yieldResult;a.renderChapterSeekingAnimation(1,_.Em(U.text),(X=U.icon)==null?void 0:X.iconType);_.IN(z)})};
kX[mt]=[_.J8];var rz=function(S){this.store=S};
_.C(rz,gi);
rz.prototype.resolveCommand=function(S){var c=this,Q,f,U;return _.O(function(a){if(a.nextAddress==1){Q=_.Y(S,dJz);if(!Q)return a.return();f="";(U=c.store.getState().collabInviteLink)&&Q.id===U.playlistId?f=U.inviteLinkURL:Q.shortUrl&&(f=Q.shortUrl);return f?_.F(a,navigator.clipboard.writeText(f),3):a.jumpTo(0)}var X={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.K8("COPY_LINK_SUCCESS_TOAST")}}}}};_.fl().resolve(_.U8).resolveCommand(X);_.IN(a)})};
rz[mt]=[zP];var dz=function(S,c){this.innertubeTransportService=S;this.JSC$15292_commandHandler=c};
_.C(dz,gi);dz.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N;return _.O(function(l){if(l.nextAddress==1)return(f=_.Y(S,_.eT))?_.F(l,_.P3(Q.innertubeTransportService,S,(U=c)==null?void 0:U.form),2):l.return();(a=l.yieldResult)&&a.errorMetadata&&(X=a,z=_.oB(X.error.message),Q.JSC$15292_commandHandler.resolveCommand(z));x=a;if((I=x)==null?0:I.actions)for(n=_.A(x.actions),b=n.next();!b.done;b=n.next())N=b.value,Q.JSC$15292_commandHandler.resolveCommand(N);_.IN(l)})};
dz[mt]=[_.M6,_.U8];var vk=function(){};
_.C(vk,gi);vk.prototype.resolveCommand=function(S){var c;return _.O(function(Q){c=_.Y(S,Mpp);if(!c)return Q.return();(new r7h(c)).show();_.IN(Q)})};_.Pk=new _.Sg("PLAYLIST_EDIT_CONTROLLER_TOKEN");var LZ=function(S,c,Q,f){this.store=S;this.innertubeTransportService=c;this.controller=Q;this.JSC$15300_commandHandler=f};
_.C(LZ,gi);
LZ.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V,AZ,IH,Nr,Hc,qr,wp;return _.O(function(Pc){if(Pc.nextAddress==1){f=_.Y(S,_.MB);if(!f)return Pc.return();if(f.clientActions){U=_.A(f.clientActions);for(a=U.next();!a.done;a=U.next())X=a.value,Q.JSC$15300_commandHandler.resolveCommand(X);var ex,yd=c==null?void 0:(ex=c.form)==null?void 0:ex.element;yd&&_.Az(yd,"yt-dismissible-item-action",f.clientActions)}return _.F(Pc,_.P3(Q.innertubeTransportService,S,(z=c)==
null?void 0:z.form),2)}if(x=Pc.yieldResult)x.errorMetadata?(I=x,n=_.oB(I.error.message),Q.JSC$15300_commandHandler.resolveCommand(n),"error"in x&&((b=c)==null?0:(N=b.commandController)==null?0:N.onServerError)&&((l=c)==null||(H=l.commandController)==null||H.onServerError(S,x))):(q=c)==null||(w=q.commandController)==null||(r=(g=w).onSuccess)==null||r.call(g,S,x);E=x;((v=E)==null?0:v.collaborationInviteLink)&&f.playlistId&&(_.u("web_enable_invite_collaborators_link")||_.u("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
Q.store.dispatch(_.aB({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:f.playlistId,inviteLinkUrl:E.collaborationInviteLink}}));((t=E)==null?0:t.redirectEndpoint)&&Q.JSC$15300_commandHandler.resolveCommand(E.redirectEndpoint);((V=E)==null?0:(AZ=V.newHeader)==null?0:AZ.playlistHeaderRenderer)?wod(Q.controller,E.newHeader.playlistHeaderRenderer):((IH=E)==null?0:(Nr=IH.newHeader)==null?0:Nr.musicEditablePlaylistDetailHeaderRenderer)&&wod(Q.controller,E.newHeader.musicEditablePlaylistDetailHeaderRenderer);
Q.controller.playlistVideoListElement&&((Hc=E)==null?0:(qr=Hc.playlistEditResults)==null?0:(wp=qr[0])==null?0:wp.playlistEditVideoAddedResultData)&&((yd=Q.controller.playlistVideoListElement)==null||yd.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:E.playlistEditResults[0].playlistEditVideoAddedResultData})));_.IN(Pc)})};
LZ[mt]=[zP,_.M6,_.Pk,_.U8];var EQ=function(S,c){this.controller=S;this.JSC$15310_commandHandler=c};
_.C(EQ,gi);EQ.prototype.resolveCommand=function(S,c){var Q=this,f,U,a;return _.O(function(X){f=_.Y(S,vHJ);Q.controller.showRefreshPill&&((U=f)==null?0:U.command)&&(Q.JSC$15310_commandHandler.resolveCommand((a=f)==null?void 0:a.command,c),Q.controller.showRefreshPill=!1);_.IN(X)})};
EQ[mt]=[_.Qs,_.U8];var tx=function(S,c){this.store=S;this.JSC$15314_commandHandler=c||_.BI.instance};
_.C(tx,gi);tx.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N;return _.O(function(l){f=_.Y(S,f$d);U=Q.store.getState().radioButtonGroup;if((a=f)==null?0:a.command)Q.JSC$15314_commandHandler.resolveCommand((X=f)==null?void 0:X.command,c);else if(U&&((z=f)==null?void 0:z.formId)===U.currentFormId)for(x=Object.values(U.commandsMap),I=_.A(x),n=I.next();!n.done;n=I.next())b=n.value,(N=_.Gv(b))&&Q.JSC$15314_commandHandler.resolveCommand(N,c);_.IN(l)})};
tx[mt]=[_.kR];var V6=new _.Sg("USER_PREFS");var Re=function(S){this.JSC$15319_prefCookie=S};
_.C(Re,gi);Re.prototype.resolveCommand=function(S){var c=this,Q;return _.O(function(f){(Q=_.Y(S,HWi))&&typeof Q.useListView==="boolean"&&(_.l2(0,155,Q.useListView),c.JSC$15319_prefCookie.save());_.IN(f)})};
Re[mt]=[V6];var y6=function(S){this.JSC$15323_prefCookie=S};
_.C(y6,gi);y6.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X;return _.O(function(z){Q=_.Y(S,ZWe);if((f=Q)==null||!f.gl)return z.return();U=Q.gl;a={persist_gl:"1",gl:U};c.JSC$15323_prefCookie.set("gl",U);c.JSC$15323_prefCookie.save();X=Vze(a);_.dh(X);_.IN(z)})};
y6[mt]=[V6];var oe=function(S){this.JSC$15327_prefCookie=S};
_.C(oe,gi);oe.prototype.resolveCommand=function(S){var c=this,Q,f;return _.O(function(U){Q=_.Y(S,LJs);if(!Q)return U.return();f=!1;Q.flagNum&&typeof Q.value==="boolean"?(_.l2(0,Q.flagNum,Q.value),f=!0):Q.key&&typeof Q.stringValue==="string"&&(c.JSC$15327_prefCookie.set(Q.key,Q.stringValue),f=!0);f&&c.JSC$15327_prefCookie.save();_.IN(U)})};
oe[mt]=[V6];var m7=new _.Sg("PREF_STORAGE_PROMISE_TOKEN");var Sq=function(S){this.JSC$15331_prefStoragePromise=S};
_.C(Sq,gi);Sq.prototype.resolveCommand=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1)return(Q=_.Y(S,tpJ))?_.F(U,c.JSC$15331_prefStoragePromise,2):U.return();f=U.yieldResult;return f===void 0||Q.key===void 0||Q.value===void 0?U.return():_.F(U,f.set(Q.key,Q.value),0)})};
Sq[mt]=[m7];var soJ=function(S){this.innertubeTransportService=S};
_.C(soJ,gi);soJ.prototype.resolveCommand=function(S,c){var Q=this,f,U;return _.O(function(a){(f=_.Y(S,_.ugs))&&f&&f.isFirstRequest&&(_.MD("search_overview_answer"),_.i2("so_rq",void 0,"search_overview_answer"));return _.F(a,_.P3(Q.innertubeTransportService,S,(U=c)==null?void 0:U.form),0)})};
soJ[mt]=[_.M6];var MH_=function(){};
_.C(MH_,gi);
MH_.prototype.resolveCommand=function(S){var c,Q,f,U,a,X,z,x,I;return _.O(function(n){c=_.Y(S,Cdd);if((Q=c)==null?0:Q.sectionIdentifier){if(c.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(U=(f=document.getElementsByTagName(c.sectionIdentifier))==null?void 0:f.item(0))U.scrollIntoView({behavior:"smooth"}),(a=gkR(U))&&a.focus({preventScroll:!0});return n.return()}X=document.querySelector("[section-identifier="+c.sectionIdentifier+"]");z=document.querySelector("[section-identifier="+c.referenceSectionIdentifier+
"]");if(!X)return n.return();x=c.verticalScrollOffsetDp?c.verticalScrollOffsetDp:0;z&&(x-=z.offsetTop);window.scrollTo({top:X.offsetTop+x,behavior:"smooth"});(I=gkR(X))&&I.focus({preventScroll:!0})}_.IN(n)})};var c4=function(){};
_.C(c4,gi);
c4.prototype.resolveCommand=function(S){var c,Q,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1){c=_.Y(S,E1d);if(!c||!c.imageBytes||!navigator.clipboard)return x.return();if(c.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.sH(Error("Ci")),x.return();_.X1(x,2);f=(Q=c)==null?void 0:Q.imageBytes;U=f.replace(/-/g,"+").replace(/_/g,"/");a=eXc(U);X={};z=[new ClipboardItem((X[a.type]=a,X))];return _.F(x,navigator.clipboard.write(z),4)}if(x.nextAddress!=2)return _.Pi(x,0);
_.Bs(x);_.IN(x)})};var Q9=function(S,c){this.innertubeTransportService=S;this.JSC$15346_commandHandler=c};
_.C(Q9,gi);Q9.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return(f=_.Y(S,tss))?_.F(x,_.P3(Q.innertubeTransportService,S,(U=c)==null?void 0:U.form),2):x.return();(a=x.yieldResult)&&a.errorMetadata&&f.onFailureCommand&&Q.JSC$15346_commandHandler.resolveCommand(f.onFailureCommand);X=a;((z=X)==null?0:z.shareCommand)&&Q.JSC$15346_commandHandler.resolveCommand(X.shareCommand,c);_.IN(x)})};
Q9[mt]=[_.M6,_.U8];var fd=function(){};
_.C(fd,gi);fd.prototype.resolveCommand=function(S){var c,Q;return _.O(function(f){c=_.Y(S,rPh);if(!c||!navigator.share)return f.return();Q={url:c.url};try{return f.return(navigator.share(Q))}catch(U){}_.IN(f)})};var Ul=function(){};
_.C(Ul,gi);Ul.prototype.resolveCommand=function(){return _.O(function(S){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.IN(S)})};var Jy=function(S){this.JSC$15356_navigationConfirmationService=S};
_.C(Jy,gi);Jy.prototype.resolveCommand=function(){var S=this;return _.O(function(c){S.JSC$15356_navigationConfirmationService.cancelPendingNavigation();_.IN(c)})};
Jy[mt]=[nE];var ay=function(S){this.JSC$15359_screenManager=S};
_.C(ay,gi);ay.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I;return _.O(function(n){U=(f=c.form)==null?void 0:f.event;X=(a=c.form)==null?void 0:a.element;if(!U)throw new _.Yr("Event not passed in when resolving command");z=_.A(U.composedPath());for(x=z.next();!x.done;x=z.next())if(I=x.value,I.tagName==="YT-COPY-LINK-RENDERER")return I.copyUrlToClipboard(),X&&_.rj(Q.JSC$15359_screenManager,X),n.return();_.IN(n)})};
ay[mt]=[_.Dp];var Ay=function(){this.JSC$15363_miniAppClientDataProvider=_.fl().resolve(_.i3)};
_.C(Ay,gi);Ay.prototype.resolveCommand=function(){var S=this,c,Q;return _.O(function(f){if(S.JSC$15363_miniAppClientDataProvider.clientData.has("video_id")){var U=S.JSC$15363_miniAppClientDataProvider,a=U.clientData.get("video_id");a&&U.clientData.delete("video_id");c="https://youtube.com/watch?v="+a;Q=Kc(c);if(Q===void 0)throw Error("Di`"+c);_.sy(window,Q)}_.IN(f)})};var Xk=function(){};
_.C(Xk,gi);Xk.prototype.resolveCommand=function(){return _.O(function(S){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.IN(S)})};var Ol=function(){};
_.C(Ol,gi);Ol.prototype.resolveCommand=function(){var S;return _.O(function(c){if(c.nextAddress==1)return _.F(c,_.z7x(window.document.documentElement),2);(S=document.querySelector("mini-app-container-view-model iframe"))&&S.focus();_.IN(c)})};var zB=function(S){this.JSC$15370_navigationConfirmationService=S};
_.C(zB,gi);
zB.prototype.resolveCommand=function(){var S=this;return _.O(function(c){var Q=S.JSC$15370_navigationConfirmationService,f=_.fl().resolve(_.CM),U;if(((U=Q.navigateParams)==null?void 0:U.data)!==void 0){var a;_.deu(f,Q.navigateParams.endpoint,Q.navigateParams.data,(a=Q.navigateParams.navigationType)!=null?a:1,Q.navigateParams.tempData,Q.navigateParams.isMiniplayer,void 0,!0);Q.navigateParams=void 0;Q.customConfirmationCommand=void 0}else Q.navigateParams&&(f.navigate(Q.navigateParams.endpoint,Q.navigateParams.reload,
Q.navigateParams.params,Q.navigateParams.tempData,Q.navigateParams.requestType,Q.navigateParams.createScreenConfig,!0),Q.navigateParams=void 0,Q.customConfirmationCommand=void 0);_.IN(c)})};
zB[mt]=[nE];var xS=function(){};
_.C(xS,gi);xS.prototype.resolveCommand=function(){return _.O(function(S){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.IN(S)})};var Fk=function(S){this.JSC$15375_prefStorage=S};
_.C(Fk,gi);Fk.prototype.resolveCommand=function(){var S=this,c,Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.F(f,S.JSC$15375_prefStorage,2);case 2:return(c=f.yieldResult)?_.F(f,c.set("sfvle",!1),3):f.return();case 3:return _.F(f,c.set("sfvles",!0),4);case 4:Q=_.jL(),_.l2(0,203,!1),_.l2(0,204,!0),Q.save(),_.IN(f)}})};
Fk[mt]=[m7];var B4=function(S){this.JSC$15378_prefStorage=S};
_.C(B4,gi);B4.prototype.resolveCommand=function(){var S=this,c,Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.F(f,S.JSC$15378_prefStorage,2);case 2:return(c=f.yieldResult)?_.F(f,c.set("sfvle",!0),3):f.return();case 3:return _.F(f,c.set("sfvles",!0),4);case 4:Q=_.jL(),_.l2(0,203,!0),_.l2(0,204,!0),Q.save(),_.IN(f)}})};
B4[mt]=[m7];_.iGd=new _.Sg("SNACKBAR_CONTROLLER_TOKEN");var Iy=function(S){this.controller=S};
_.C(Iy,gi);Iy.prototype.resolveCommand=function(S){var c=this,Q;return _.O(function(f){Q=_.Y(S,awe);if(!Q)return f.return();var U=c.controller;U.closeSnackbarFn&&U.closeSnackbarFn();_.IN(f)})};
Iy[mt]=[_.iGd];var nd=function(S){this.controller=S};
_.C(nd,gi);nd.prototype.resolveCommand=function(S){var c=this,Q,f,U;return _.O(function(a){Q=_.Y(S,XAs);if(!Q)return a.return();f=_.Y(Q.content,uPd);if(!f)return a.return();var X=c.controller,z=f,x=(U=Q.animationStyle)!=null?U:"SNACKBAR_ANIMATION_STYLE_DEFAULT";if(X.showSnackbarFn)X.showSnackbarFn({snackbarViewModel:z,animationStyle:x,durationMs:Q.durationSeconds*1E3});else throw Error("mj");_.IN(a)})};
nd[mt]=[_.iGd];var bC=function(){};
_.C(bC,gi);bC.prototype.resolveCommand=function(S){var c;return _.O(function(Q){c=_.Y(S,EHh);if(!c||typeof c.key!=="string"||typeof c.value!=="string")return Q.return();window.localStorage.setItem(c.key,c.value);_.IN(Q)})};var Nb=function(S){this.store=S};
_.C(Nb,gi);Nb.prototype.resolveCommand=function(S){var c=this,Q;return _.O(function(f){Q=_.Y(S,XTY);if(!Q||!Q.stepId||!Q.token)return f.return();c.store.dispatch(d3d({stepId:Q.stepId,token:Q.token,isSelected:!1}));_.IN(f)})};
Nb[mt]=[zP];var Kd=function(S,c,Q){this.innertubeTransportService=S;this.store=c;this.JSC$15397_screenManager=Q};
_.C(Kd,gi);
Kd.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t,V,AZ,IH;return _.O(function(Nr){Q=_.Y(S,Rpz);if(!Q||(f=Q.stepIds)==null||!f.length)return Nr.return();U=c.store.getState().talkToRecs;a=[];X=[];z=_.A(Q.stepIds);for(x=z.next();!x.done;x=z.next())for(I=x.value,n=void 0,(b=(n=U.stepStates[I])==null?void 0:n.userQuery)&&X.push({userQuery:b.userQuery,userQueryToken:b.token}),N=void 0,l=(N=U.stepStates[I])==null?void 0:N.selectionStates,H=_.A(Object.entries(l)),q=
H.next();!q.done;q=H.next())w=q.value,g=_.A(w),r=g.next().value,E=g.next().value,v=r,t=E,t.isSelected&&a.push(v);V={selectedChipTokens:a,userQueries:X,submittedStepIds:Q.stepIds};AZ={browseTalk2recsFormData:V};Q.browseEndpoint?(IH=S,_.wH(IH,_.KJ,Q.browseEndpoint)):Q.command&&(IH=Q.command);return IH?_.F(Nr,_.P3(c.innertubeTransportService,IH,{formData:AZ,disableCache:!0}).then(function(Hc){(Hc==null?0:Hc.trackingParams)&&c.JSC$15397_screenManager.graftServerVe(Hc==null?void 0:Hc.trackingParams)}),
0):Nr.return()})};
Kd[mt]=[_.M6,zP,_.Dp];var $S=function(S){this.store=S};
_.C($S,gi);$S.prototype.resolveCommand=function(S){var c=this,Q;return _.O(function(f){Q=_.Y(S,A9p);if(!Q||!Q.stepId||!Q.token)return f.return();c.store.dispatch(d3d({stepId:Q.stepId,token:Q.token,isSelected:!0}));_.IN(f)})};
$S[mt]=[zP];var pd=function(S){this.store=S};
_.C(pd,gi);pd.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z;return _.O(function(x){f=_.Y(S,ywe);if(!f||!f.stepId||!f.userQueryToken)return x.return();z=(X=(U=c)==null?void 0:(a=U.form)==null?void 0:a.userQuery)!=null?X:"";Q.store.dispatch(_.aB({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:f.stepId,userQueryToken:f.userQueryToken,userQuery:z}}));_.IN(x)})};
pd[mt]=[zP];_.ZG_=new _.Sg("TIMELY_ACTIONS_CONTROLLER_TOKEN");var hy=function(S){this.controller=S};
_.C(hy,gi);hy.prototype.resolveCommand=function(S){var c=this,Q,f,U,a;return _.O(function(X){Q=_.Y(S,jz_);if(!Q)return X.return();f=Q;U=f.id;a=f.isVisible;if(U===void 0||a===void 0)return X.return();var z;(z=c.controller.timelyActionsMap.get(U))==null||z(U,a);_.IN(X)})};
hy[mt]=[_.ZG_];var G8h=function(){this.timelyActionsMap=new Map};var qb=function(S){this.JSC$15424_commandHandler=S};
_.C(qb,gi);qb.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X;return _.O(function(z){Q=_.Y(S,_.lA);if(!Q)return z.return();a=(f=Q.item)==null?void 0:(U=f.notificationTextRenderer)==null?void 0:U.successResponseText;if(!a)return z.return();X=_.y5(a);c.JSC$15424_commandHandler.resolveCommand(X);_.IN(z)})};
qb[mt]=[_.U8];var TB=function(S,c){this.innertubeTransportService=S;this.JSC$15429_playerApiPromise=c};
_.C(TB,gi);
TB.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I,n;return _.O(function(b){if(b.nextAddress==1)return _.F(b,c.JSC$15429_playerApiPromise,2);Q=b.yieldResult;f=Q.getOption("captions","track");U=Object.assign({},_.Y(S,_.I$d));(X=(a=Q.getVideoData())==null?void 0:a.video_id)?U.externalVideoId=X:_.dC(Error("Ei"));if((z=f)==null?0:z.languageCode)U.languageCode=f.languageCode;if((x=f)==null?0:x.kind)U.kind=f.kind;if((I=f)==null?0:I.name)U.name=f.name;n=Object.assign({},S,{getTranscriptEndpoint:U});return _.F(b,
_.P3(c.innertubeTransportService,n),0)})};
TB[mt]=[_.M6,_.J8];var wR=function(){};
_.C(wR,gi);wR.prototype.resolveCommand=function(S){var c,Q,f,U,a,X,z,x;return _.O(function(I){c=_.Y(S,Qld);if((Q=c)==null||!Q.paramKeyValuePairs)return I.return();f=window.location.href;U=_.A(c.paramKeyValuePairs);for(a=U.next();!a.done;a=U.next())X=a.value,X.key&&X.value&&(z={},f=_.tS(f,(z[X.key]=X.value,z)));x=_.fl().resolve(_.Fd);_.xF(x,f);_.IN(I)})};var sl=function(S,c){this.JSC$15436_commandHandler=S;this.innertubeTransportService=c};
_.C(sl,gi);
sl.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E;return _.O(function(v){switch(v.nextAddress){case 1:return(a=(f=c)==null?void 0:(U=f.form)==null?void 0:U.element)&&_.tW(a),X=_.jL().get("hl"),z="",_.X1(v,2),_.F(v,AFc(X),4);case 4:z=v.yieldResult;_.Pi(v,3);break;case 2:return _.Bs(v),a&&_.VV(a),_.sH(Error("Gi"),"ERROR"),v.return();case 3:x=_.Y(S,tTd);if(!x)return a&&_.VV(a),v.return();(b=(I=x.commerceActionConfig)==null?void 0:(n=I.commandLifeCycleConfig)==null?
void 0:n.onStartCommand)&&Q.JSC$15436_commandHandler.resolveCommand(b);return _.F(v,_.P3(Q.innertubeTransportService,S,{client_data:{paymentsClientToken:{token:z}}}),5);case 5:(N=v.yieldResult)?(a&&_.VV(a),((w=N)==null?0:w.command)&&Q.JSC$15436_commandHandler.resolveCommand(N.command),(E=(g=x.commerceActionConfig)==null?void 0:(r=g.commandLifeCycleConfig)==null?void 0:r.onSuccessCommand)&&Q.JSC$15436_commandHandler.resolveCommand(E)):(a&&_.VV(a),_.sH(Error("Hi")),(q=(l=x.commerceActionConfig)==null?
void 0:(H=l.commandLifeCycleConfig)==null?void 0:H.onFailureCommand)&&Q.JSC$15436_commandHandler.resolveCommand(q)),_.IN(v)}})};
sl[mt]=[_.U8,_.M6];var Mb=function(S,c,Q){this.store=S;this.JSC$15452_commandHandler=c;this.innertubeTransportService=Q};
_.C(Mb,gi);
Mb.prototype.resolveCommand=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b;return _.O(function(N){f=_.Y(S,VTp);U=f.googlePaymentPayload;f.onStartCommand&&Q.JSC$15452_commandHandler.resolveCommand(f.onStartCommand);a=U.encryptedPurchaseParams;X=U.ypcLogWalletAnalyticDataEndpoint;z=f.serializedTransactionFlowLoggingParams;x=U.serializedPaymentsClientParams;I=f.ypcCujContext;b=zGc(Q.innertubeTransportService,(n=c)==null?void 0:n.form,a,X,z,x,I);return N.return(b.then(function(l){Xhp(c==null?void 0:c.form,
!1);var H=Q.store,q=Q.JSC$15452_commandHandler,w=l.integratorData;w==null||w===""||l.error!=null?(String(l.error)==="-1"&&f.onDismissCommand?q.resolveCommand(f.onDismissCommand):String(l.error)!=="-1"&&f.onFailureCommand&&q.resolveCommand(f.onFailureCommand),String(l.error)!=="-1"&&String(l.error)!=="132"&&_.sH(Error("Ii"),"ERROR")):(f.googlePaymentEntityKey&&H.dispatch(_.Ns("commerceAcquisitionClientPayloadEntity",f.googlePaymentEntityKey,{key:f.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:w,
fundsGuaranteeCallbackClientData:l.integratorClientCallbackData}}})),f.onSuccessCommand&&q.resolveCommand(f.onSuccessCommand));_.B2()},function(l){Xhp(c==null?void 0:c.form,!1);
_.sH(l,"ERROR");f.onFailureCommand&&Q.JSC$15452_commandHandler.resolveCommand(f.onFailureCommand)}))})};
Mb[mt]=[xs,_.U8,_.M6];var iC=function(S,c){this.JSC$15456_commandHandler=S;this.purchaseManager=c};
_.C(iC,gi);
iC.prototype.resolveCommand=function(S){var c=this,Q,f,U,a,X,z,x,I,n;return _.O(function(b){Q=_.Y(S,ROT);((f=Q)==null?0:(U=f.commandLifeCycleConfig)==null?0:U.onStartCommand)&&c.JSC$15456_commandHandler.resolveCommand(Q.commandLifeCycleConfig.onStartCommand);if(!((a=Q)==null?0:(X=a.googlePaymentPurchaseManagerPayload)==null?0:X.securePayloadBytes))return _.sH(Error("Ji"),"ERROR"),b.return();z=I5l(_.Od(Q.googlePaymentPurchaseManagerPayload.securePayloadBytes));x=_.jL().get("hl");I=_.L4();vws(z.serialize(),
x,function(N){I.resolve(N)},function(N){I.reject(N)},I.resolve);
n=I.promise;return b.return(n.then(function(N){if(N)if(N==null?0:N.errorCode){_.sH(Error("Ki`"+N.errorCode),"ERROR");var l,H;((l=Q)==null?0:(H=l.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&c.JSC$15456_commandHandler.resolveCommand(Q.commandLifeCycleConfig.onFailureCommand)}else if(N==null?0:N.isCancelled){var q,w;((q=Q)==null?0:(w=q.commandLifeCycleConfig)==null?0:w.onCancelCommand)&&c.JSC$15456_commandHandler.resolveCommand(Q.commandLifeCycleConfig.onCancelCommand)}else{var g,r;((g=Q)==
null?0:(r=g.commandLifeCycleConfig)==null?0:r.onSuccessCommand)&&c.JSC$15456_commandHandler.resolveCommand(Q.commandLifeCycleConfig.onSuccessCommand)}},function(N){_.sH(N,"ERROR");
var l,H;((l=Q)==null?0:(H=l.commandLifeCycleConfig)==null?0:H.onFailureCommand)&&c.JSC$15456_commandHandler.resolveCommand(Q.commandLifeCycleConfig.onFailureCommand)}))})};
iC[mt]=[_.U8,Pyp];var WDp=function(S,c){this.JSC$15464_commandHandler=S;this.commandAllowlistOverride=c;var Q;this.commandAllowlist=(Q=this.commandAllowlistOverride)!=null?Q:E2};
WDp.prototype.handleResponse=function(S,c,Q){var f,U=c==null?void 0:(f=c.config)==null?void 0:f.command;if(!U||this.commandAllowlist.some(function(a){return!!_.Y(U,a)})){c=void 0;
Q!==void 0&&(c={form:{element:Q}});S.onResponseReceivedCommand&&this.JSC$15464_commandHandler.resolveCommand(S.onResponseReceivedCommand,c);S.onResponseReceivedAction&&this.JSC$15464_commandHandler.resolveCommand(S.onResponseReceivedAction,c);S.onResponseReceivedEndpoint&&this.JSC$15464_commandHandler.resolveCommand(S.onResponseReceivedEndpoint,c);S.command&&this.JSC$15464_commandHandler.resolveCommand(S.command,c);if(S.onResponseReceivedCommands)for(Q=_.A(S.onResponseReceivedCommands),f=Q.next();!f.done;f=
Q.next())this.JSC$15464_commandHandler.resolveCommand(f.value,c);if(S.onResponseReceivedActions)for(Q=_.A(S.onResponseReceivedActions),f=Q.next();!f.done;f=Q.next())this.JSC$15464_commandHandler.resolveCommand(f.value,c);if(S.onResponseReceivedEndpoints)for(Q=_.A(S.onResponseReceivedEndpoints),f=Q.next();!f.done;f=Q.next())this.JSC$15464_commandHandler.resolveCommand(f.value,c);if(S.actions)for(S=_.A(S.actions),Q=S.next();!Q.done;Q=S.next())this.JSC$15464_commandHandler.resolveCommand(Q.value,c)}};
WDp[mt]=[_.U8,_.QS(lGT)];var gGd=new _.Sg("INNERTUBE_TOKEN_SERVICE");var eEH=new _.Sg("SCHEDULER_TOKEN");var k8H=function(S){this.scheduler=S;S={};this.tokenMap=(S.app={},S.user={},S)};
k8H.prototype.handleResponse=function(S,c){if(!c)throw Error("Li");var Q;if(S=(Q=S.responseContext)==null?void 0:Q.innertubeTokenJar){if(S.appTokens){var f,U,a;Q=(f=c.innerTubeRequest.context)==null?void 0:(U=f.request)==null?void 0:(a=U.innertubeTokenJar)==null?void 0:a.appTokens;rXp(this,S.appTokens,this.tokenMap.app,Q)}if(S.userTokens){var X,z,x;c=(X=c.innerTubeRequest.context)==null?void 0:(z=X.request)==null?void 0:(x=z.innertubeTokenJar)==null?void 0:x.userTokens;rXp(this,S.userTokens,this.tokenMap.user,
c)}}};
k8H.prototype.processContext=function(S){S.request||(S.request={});var c=Object.keys(this.tokenMap.app).length,Q=Object.keys(this.tokenMap.user).length;if(c||Q)S.request.innertubeTokenJar={},c&&(S.request.innertubeTokenJar.appTokens=[].concat(_.Hs(Object.values(this.tokenMap.app).flat()))),Q&&(S.request.innertubeTokenJar.userTokens=[].concat(_.Hs(Object.values(this.tokenMap.user).flat())))};
var rXp=function(S,c,Q,f){c=_.A(c);for(var U=c.next(),a={};!U.done;a={token$jscomp$138:void 0},U=c.next()){a.token$jscomp$138=U.value;if(a.token$jscomp$138.type===void 0)throw new _.Yr("InnerTube token has no type",a.token$jscomp$138);if(a.token$jscomp$138.clearTokens)Q[a.token$jscomp$138.type]=[];else if(a.token$jscomp$138.value!==void 0){Q[a.token$jscomp$138.type]||(Q[a.token$jscomp$138.type]=[]);if(f!==void 0&&f.length){U=_.A(f);for(var X=U.next(),z={};!X.done;z={requestToken:void 0},X=U.next())z.requestToken=
X.value,X=Q[a.token$jscomp$138.type].findIndex(function(x){return function(I){return I===x.requestToken||(0,_.Cn.equals)(I,x.requestToken)}}(z)),X>-1&&Q[a.token$jscomp$138.type].splice(X,1)}Q[a.token$jscomp$138.type].push(a.token$jscomp$138);
a.token$jscomp$138.maxAgeSeconds&&Number(a.token$jscomp$138.maxAgeSeconds)>0&&S.scheduler.addLowPriorityJob(function(x){return function(){var I=Q[x.token$jscomp$138.type].indexOf(x.token$jscomp$138);I>-1&&Q[x.token$jscomp$138.type].splice(I,1)}}(a),Number(a.token$jscomp$138.maxAgeSeconds)*1E3)}else throw new _.Yr("InnerTube token has no value",a.token$jscomp$138);
}};
k8H[mt]=[eEH];var dwi=new _.Sg("LOCAL_INNERTUBE_ROUTER_TOKEN"),vGz=new _.Sg("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var ZG=function(S){this.serviceMap=S};
ZG.prototype.shouldPreferLocalResponse=function(S,c){return(S=PJs(this,S))?S.shouldPreferLocalResponse(c):!1};
ZG.prototype.localInnertubeResponse=function(S,c){var Q=this,f;return _.O(function(U){return(f=PJs(Q,S))?U.return(f.localInnertubeResponse(c)):U.return(Promise.reject(Error("Mi")))})};
ZG.prototype.canProvideFallbackResponse=function(S,c){return(S=PJs(this,S))?S.canProvideFallbackResponse(c):!1};
ZG.prototype.localFallbackInnertubeResponse=function(S,c){var Q=this,f;return _.O(function(U){return(f=PJs(Q,S))?U.return(f.localFallbackInnertubeResponse(c)):U.return(Promise.reject(Error("Mi")))})};
var PJs=function(S,c){c=_.Bi(c);return c?(S=S.serviceMap[c])?S:null:null};
ZG[mt]=[vGz];var Ys=function(){};
Ys.prototype.shouldPreferLocalResponse=function(){return!1};
Ys.prototype.localInnertubeResponse=function(){return _.O(function(S){return S.return(Promise.reject(Error("Ni")))})};
Ys.prototype.canProvideFallbackResponse=function(){return!0};
Ys.prototype.localFallbackInnertubeResponse=function(){var S,c,Q;return _.O(function(f){S=q$("CLOSE_POPUP");c={openPopupAction:Fgz()};Q={actions:[S,c]};return f.return(Q)})};var oiM=function(S,c){this.JSC$15514_upliftPromise=S;this.store=c};
_.J=oiM.prototype;_.J.shouldPreferLocalResponse=function(S){var c=S.videoId,Q;if(Q=c)Q=pxr(this.store.getState().entities,S.videoId);return Q&&h6M(this.store.getState().entities,c)?I7Y(this.store.getState().entities,S.playlistId):!1};
_.J.localInnertubeResponse=function(S){var c=this,Q;return _.O(function(f){return(Q=c.getPlayerResponse(S))?f.return(Promise.resolve(Q)):f.return(Promise.reject(Error("Oi")))})};
_.J.canProvideFallbackResponse=function(S){return!!S.videoId};
_.J.localFallbackInnertubeResponse=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.JSC$15514_upliftPromise,2);Q=c.getPlayerResponse(S);var U;Q?U=f.return(Promise.resolve(Q)):U=CK(c.store.getState().entities,S.videoId)?f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.fK(_.K8("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:Gxz()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
f.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.fK(_.K8("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:ZYH()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return U})};
_.J.getPlayerResponse=function(S){return cpz(this.store.getState().entities,S.videoId)};var le=function(S,c){this.localPlayerService=S;this.localWatchNextService=c};
le.prototype.shouldPreferLocalResponse=function(S){var c=S.playerRequest;S=S.watchNextRequest;return!!(c&&this.localPlayerService.shouldPreferLocalResponse(c)&&S&&this.localWatchNextService.shouldPreferLocalResponse(S))};
le.prototype.localInnertubeResponse=function(S){var c=this,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1){Q=S.playerRequest;f=S.watchNextRequest;if(!Q||!f)throw new _.Yr("Missing streaming request",S);return _.F(X,c.localPlayerService.localInnertubeResponse(Q),2)}if(X.nextAddress!=3)return U=X.yieldResult,_.F(X,c.localWatchNextService.localInnertubeResponse(f),3);a=X.yieldResult;return X.return({playerResponse:U,watchNextResponse:a})})};
le.prototype.canProvideFallbackResponse=function(S){var c=S.playerRequest;S=S.watchNextRequest;return!!(c&&this.localPlayerService.canProvideFallbackResponse(c)&&S&&this.localWatchNextService.canProvideFallbackResponse(S))};
le.prototype.localFallbackInnertubeResponse=function(S){var c=this,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return Q=S.playerRequest,f=S.watchNextRequest,Q&&f?_.F(X,c.localPlayerService.localFallbackInnertubeResponse(Q),2):X.return(Promise.reject(new _.Yr("Missing streaming request",S)));if(X.nextAddress!=3)return U=X.yieldResult,_.F(X,c.localWatchNextService.localFallbackInnertubeResponse(f),3);a=X.yieldResult;return X.return({playerResponse:U,watchNextResponse:a})})};var $s=function(S){this.JSC$15524_persistentStorePromiseAccessor=S};
$s.prototype.shouldPreferLocalResponse=function(){return!1};
$s.prototype.localInnertubeResponse=function(){return _.O(function(S){return S.return(Promise.reject(Error("Pi")))})};
$s.prototype.canProvideFallbackResponse=function(){return!0};
$s.prototype.localFallbackInnertubeResponse=function(){var S=this,c,Q;return _.O(function(f){return f.nextAddress==1?_.F(f,S.JSC$15524_persistentStorePromiseAccessor(),2):f.nextAddress!=3?(c=f.yieldResult)?_.F(f,c.get("service:guide:fallback"),3):f.return(Promise.reject(Error("Qi"))):(Q=f.yieldResult)&&_.O9(Q)?f.return(n6o(_.O9(Q))):f.return(Promise.reject(Error("Ri")))})};var Cj=function(){};
Cj.prototype.shouldPreferLocalResponse=function(){return!1};
Cj.prototype.localInnertubeResponse=function(){return _.O(function(S){return S.return(Promise.reject(Error("Si")))})};
Cj.prototype.canProvideFallbackResponse=function(){return!0};
Cj.prototype.localFallbackInnertubeResponse=function(){var S,c,Q;return _.O(function(f){S=q$("CLOSE_POPUP");c={openPopupAction:Fgz()};Q={actions:[S,c]};return f.return(Q)})};var Kj=function(){this.urlMap=LD_;this.fallbackCommand=_.Ni};
Kj.prototype.shouldPreferLocalResponse=function(S){return(S=S.url)?!!EGp(this,S):!1};
Kj.prototype.localInnertubeResponse=function(S){var c=this,Q;return _.O(function(f){return(Q=S.url)?f.return(tHh(S,EGp(c,Q))):f.return(Promise.reject(Error("Ti")))})};
Kj.prototype.canProvideFallbackResponse=function(){return!0};
Kj.prototype.localFallbackInnertubeResponse=function(S){var c=this,Q,f,U,a,X,z,x;return _.O(function(I){Q=S.url;if(!Q)return I.return(tHh(S,c.fallbackCommand));if(f=EGp(c,Q))return I.return(tHh(S,f));U=void 0;a=_.Bi(Q);a==="/watch"&&(X=_.v1(Q,"v"))&&(x=(z=_.v1(Q,"list"))!=null?z:void 0,U=_.Q5(X,x));U||(U=c.fallbackCommand);return I.return(tHh(S,U))})};
var EGp=function(S,c){if(c)return S.urlMap[_.dN(c)]},tHh=function(S,c){c&&S.parentTrackingParams&&(c.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:S.parentTrackingParams}},c.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:c})};var ue=function(S,c,Q){this.JSC$15534_upliftPromise=S;this.store=c;this.JSC$15534_persistentStorePromiseAccessor=Q};
ue.prototype.shouldPreferLocalResponse=function(){return!1};
ue.prototype.localInnertubeResponse=function(){return _.O(function(S){return S.return(Promise.reject(Error("Ui")))})};
ue.prototype.canProvideFallbackResponse=function(){return!0};
ue.prototype.localFallbackInnertubeResponse=function(){var S=this;return _.O(function(c){return c.return(VHu(S))})};
var VHu=function(S){var c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,Xq(S.JSC$15534_upliftPromise,S.store),2);c=f.yieldResult;Q={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[BAx(c)]}}}};return f.return(RE$(S,Q))})},RE$=function(S,c){var Q,f;
return _.O(function(U){if(U.nextAddress==1)return _.F(U,S.JSC$15534_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3)return Q=U.yieldResult,_.F(U,zV(Q),3);f=U.yieldResult;return U.return({responseContext:{},contents:c,topbar:f})})};var be=function(S,c,Q){this.JSC$15541_upliftPromise=S;this.store=c;this.JSC$15541_persistentStorePromiseAccessor=Q};
be.prototype.shouldPreferLocalResponse=function(S){var c=S.videoId;return c&&pxr(this.store.getState().entities,c)&&h6M(this.store.getState().entities,c)?I7Y(this.store.getState().entities,S.playlistId):!1};
be.prototype.localInnertubeResponse=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1)return(Q=S.videoId)?_.F(U,c.JSC$15541_upliftPromise,2):U.return(Promise.reject(Error("Vi")));if(U.nextAddress!=3)return _.F(U,yXs(c,S,Q),3);f=U.yieldResult;return U.return(oGd(c,f,Q))})};
be.prototype.canProvideFallbackResponse=function(S){return S.videoId?!0:!1};
be.prototype.localFallbackInnertubeResponse=function(S){var c=this,Q,f,U,a;return _.O(function(X){switch(X.nextAddress){case 1:return(Q=S.videoId)?_.F(X,c.JSC$15541_upliftPromise,2):X.return(Promise.reject(Error("Vi")));case 2:return _.F(X,yXs(c,S,Q),3);case 3:f=X.yieldResult;if(CK(c.store.getState().entities,Q)){X.jumpTo(4);break}return _.F(X,Xq(c.JSC$15541_upliftPromise,c.store),5);case 5:return U=X.yieldResult,X.return(mwd(f,U));case 4:return pxr(c.store.getState().entities,Q)&&h6M(c.store.getState().entities,
Q)?X.return(oGd(c,f,Q)):(a={title:_.fK(_.K8("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:Gxz()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},X.return(mwd(f,a)))}})};
var yXs=function(S,c,Q){var f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return f=c.playlistId,U=_.Q5(Q,f),_.F(x,S.JSC$15541_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return a=x.yieldResult,_.F(x,zV(a),3);X=x.yieldResult;z={responseContext:{},currentVideoEndpoint:U,topbar:X};return x.return(z)})},oGd=function(S,c,Q){if(S=CK(S.store.getState().entities,Q)){var f;
Q=S.videoEntity;var U,a={title:Um(Q.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.Jb((f=Q.localizedStrings)==null?void 0:f.viewCount),viewCount:_.Jb((U=Q.localizedStrings)==null?void 0:U.viewCount)}}};Q.publishedTimestampMillis&&(a.dateText=_.Jb(dBo(new Date(Number(Q.publishedTimestampMillis)))));f={videoPrimaryInfoRenderer:a};U=S.videoEntity;S=S.channelEntity;S={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:Um(_.K8("SHOW_MORE",void 0,"Show more")),
showLessText:Um(_.K8("SHOW_LESS",void 0,"Show less")),description:U.formattedDescription,owner:{videoOwnerRenderer:{title:Um(S.title),thumbnail:S.avatar}}}};c.contents={twoColumnWatchNextResults:{results:{results:{contents:[f,S]}}}}}return c},mwd=function(S,c){S.contents={singleColumnWatchNextResults:{results:{results:{contents:[BAx(c)]}}}};
return S};var jP=function(S,c,Q){this.JSC$15546_upliftPromise=S;this.store=c;this.JSC$15546_persistentStorePromiseAccessor=Q};
jP.prototype.shouldPreferLocalResponse=function(){return!1};
jP.prototype.localInnertubeResponse=function(){return _.O(function(S){return S.return(Promise.reject(Error("Wi")))})};
jP.prototype.canProvideFallbackResponse=function(){return!0};
jP.prototype.localFallbackInnertubeResponse=function(){var S=this,c,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:return _.F(a,S.JSC$15546_persistentStorePromiseAccessor(),2);case 2:return c=a.yieldResult,_.F(a,zV(c),3);case 3:return Q=a.yieldResult,f={responseContext:{},topbar:Q},_.F(a,S.JSC$15546_upliftPromise,4);case 4:return _.F(a,Xq(S.JSC$15546_upliftPromise,S.store),5);case 5:return U=a.yieldResult,f.watchStatus={backgroundPromoRenderer:U},a.return(f)}})};var Soe=new _.Sg("ENDPOINT_MAP");var cCe=function(){var S=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return S.sequenceMap}}},g_h=function(S,c,Q){var f,U=(f=c.config)==null?void 0:f.sequenceStrategy;
if(!U)return Q();S.sequenceMap.has(U.sequenceKey)||S.sequenceMap.set(U.sequenceKey,[]);S=S.sequenceMap.get(U.sequenceKey);switch(U.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return QwH(S,c,Q);case "REQUEST_SEQUENCE_TYPE_REPLACE":return f1e(S,c,Q);default:throw new _.Yr("Request could not be sequenced",c);}},QwH=function(S,c,Q){var f,U,a;
return _.O(function(X){S.length>0?(U=S[S.length-1],f=U.responsePromise.then(function(){return Q()})):f=Q();
a={request:c,responsePromise:f};S.push(a);UTd(S,a);return X.return(a.responsePromise)})},f1e=function(S,c,Q){Q=Q();
if(S.length>0)for(var f=_.A(S),U=f.next();!U.done;U=f.next())U.value.responsePromise=Q;var a={request:c,responsePromise:Q};S.push(a);UTd(S,a);return Promise.resolve().then(function(){return S.indexOf(a)>0?a.responsePromise.then(function(X){return Object.assign({},X,{sequenceMetaData:{skipProcessing:!0}})}):a.responsePromise})},UTd=function(S,c){c.responsePromise.then(function(){var Q=S.indexOf(c);
Q>-1&&S.splice(Q,1)})};var JCh=new _.Sg("REQUEST_SEQUENCING");var GB=function(){};
_.C(GB,xR);GB.prototype.getApiPaths=function(){return[]};
GB.prototype.getExtension=function(S){return _.Y(S,NaJ)};
GB.prototype.JSC$11043_buildRequest=function(S,c){S.recaptchaToken=c.recaptchaToken};
GB.prototype.getApiUrl=function(){return"/das_captcha"};var W4=function(){};
_.C(W4,xR);W4.prototype.getApiPaths=function(){return EAp};
W4.prototype.getExtension=function(S){return _.Y(S,Pes)};
W4.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.createBackstagePostParams&&(S.createBackstagePostParams=c.createBackstagePostParams);Q.comment_text&&(S.commentText=Q.comment_text);if(Q.attached_video_id)S.videoAttachment={videoId:Q.attached_video_id};else if(Q.image_poll_options)S.pollAttachmentData={options:Q.image_poll_options};else if(Q.poll_options)S.pollAttachment={choices:Q.poll_options};else if(Q.quiz_options)S.quizAttachmentData={options:Q.quiz_options};else if(Q.image_blob_id)S.imageAttachment=
{encryptedBlobId:Q.image_blob_id},Q.source_video_id&&(S.imageAttachment.sourceExternalVideoId=Q.source_video_id),Q.image_preview_coordinates&&(S.imageAttachment.previewCoordinates=JSON.parse(Q.image_preview_coordinates));else if(Q.images_data)S.imagesAttachment={imagesData:Q.images_data};else if(Q.clip_external_video_id!==void 0||Q.clip_offset_ms!==void 0||Q.clip_duration_ms!==void 0){var f,U,a,X,z;S.clipAttachment={externalVideoId:(a=Q.clip_external_video_id)!=null?a:"",offsetMs:(X=(f=Q.clip_offset_ms)==
null?void 0:f.toString())!=null?X:"",durationMs:(z=(U=Q.clip_duration_ms)==null?void 0:U.toString())!=null?z:""}}else Q.shared_post_id&&(S.sharedPostAttachment={postId:Q.shared_post_id});Q.tagged_video_id&&(S.postCreationData={taggedVideoId:Q.tagged_video_id});Q.access_restrictions&&(typeof Q.access_restrictions==="number"&&(c=Q.access_restrictions,S.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof Q.access_restrictions==="string"&&
(S.accessRestrictionsParams=Q.access_restrictions));Q.scheduled_publish_time_sec&&(S.scheduledPublishTimeSec=Q.scheduled_publish_time_sec.toString())};var gR=function(){};
_.C(gR,xR);gR.prototype.getApiPaths=function(){return SxH};
gR.prototype.getExtension=function(S){return _.Y(S,VgH)};
gR.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.decorateMessageParams&&(S.params=c.decorateMessageParams);Q.text&&(S.text=Q.text)};var eq=function(){};
_.C(eq,xR);eq.prototype.getApiPaths=function(){return u6e};
eq.prototype.getExtension=function(S){return _.Y(S,L9u)};
eq.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;Q.video_id&&(S.videoId=Q.video_id)};var kS=function(){};
_.C(kS,xR);kS.prototype.getApiPaths=function(){return Duh};
kS.prototype.getExtension=function(S){return _.Y(S,_.b2)};
kS.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.suggestions_query&&(S.input=Q.suggestions_query)};var rR=function(){};
_.C(rR,xR);rR.prototype.getApiPaths=function(){return JNu};
rR.prototype.getExtension=function(S){return _.Y(S,Es_)};
rR.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.comment_text!==void 0&&(S.commentText=Q.comment_text);Q.scheduled_publish_time_sec&&(S.scheduledPublishTimeSec=Q.scheduled_publish_time_sec.toString());S.updateBackstagePostParams=c.updateBackstagePostParams};var dR=function(){};
_.C(dR,xR);dR.prototype.getApiPaths=function(){return c$};
dR.prototype.getExtension=function(S){return _.Y(S,_.gj)};
dR.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.formData&&(S.formData=Q.formData);c.token?S.continuation=c.token:c.continuationTokenKey&&(Q=_.V5().getState(),c=_.FT(Q.entities,"continuationTokenEntity",c.continuationTokenKey))&&(S.continuation=String(c.continuationToken))};
var a1z=function(){};
_.C(a1z,xR);_.J=a1z.prototype;_.J.getApiPaths=function(){return c$};
_.J.getExtension=function(S){return _.Y(S,_.KJ)};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11050_getStoreKey=function(S){if((S=this.getExtension(S))&&S.browseId){var c={browseId:S.browseId};S.browseEndpointContextSupportedConfigs&&(c.browseEndpointContextSupportedConfigs=JSON.stringify(S.browseEndpointContextSupportedConfigs));S.params&&(c.params=S.params);S.query&&(c.query=S.query);return _.EM("browse",c)}};
_.J.JSC$11043_buildRequest=function(S,c,Q){c.browseId&&(S.browseId=c.browseId);c.params&&(S.params=c.params);c.query&&(S.query=c.query);Q.formData?S.formData=Q.formData:c.formData&&(S.formData=c.formData);c.browseId==="FEsubscriptions"&&_.jL().getFlag(155)&&(S.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");c.browseId==="SPaccount_playback"&&(Q=_.jL(),S.formData||(S.formData={}),S.formData.accountSettingsFormData={flagCaptionsDefaultOff:Q.getFlag(65),flagAutoCaptionsDefaultOn:Q.getFlag(66),
flagDisableInlinePreview:Q.getFlag(186),flagAudioDescriptionDefaultOn:Q.getFlag(198)});if(c.browseId==="FEwhat_to_watch"){Q=_.jL();var f=Q.getFlag(196);Q.getFlag(197)&&(S.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:f}}})}c.browseId==="FEwhat_to_watch"&&(c=_.jL().getFlag(186),S.inlineSettingStatus=c?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.J.getRequestConfig=function(S,c){c=c===void 0?{}:c;var Q={};if(S=this.JSC$11050_getStoreKey(S,c))Q.storeStrategy={storeKey:S,disableCache:c.disableCache};_.u("web_log_browse_ticks_ks")||(Q.requestTick="br_s",Q.responseTick="br_r");return Q};var v4=function(){};
_.C(v4,xR);v4.prototype.getApiPaths=function(){return k7d};
v4.prototype.getExtension=function(S){return _.Y(S,x1z)};
v4.prototype.JSC$11043_buildRequest=function(S,c,Q){S.legacyYoutubeChannelUsername=Q.legacyYouTubeChannelUsername||"";S.legacyYoutubeChannelPassword=Q.legacyYouTubeChannelPassword||""};var P4=function(){};
_.C(P4,xR);P4.prototype.getApiPaths=function(){return VEl};
P4.prototype.getExtension=function(S){return _.Y(S,cPJ)};
P4.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.recaptcha_response_token&&(S.recaptchaResponseToken=Q.recaptcha_response_token);Q.channel_id&&(S.channelId=Q.channel_id)};var Ld=function(){};
_.C(Ld,xR);Ld.prototype.getApiPaths=function(){return apu};
Ld.prototype.getExtension=function(S){return _.Y(S,APl)};
Ld.prototype.JSC$11043_buildRequest=function(S,c,Q){c.externalChannelId&&(S.externalChannelId=c.externalChannelId);Q.handle&&(S.handleUpdate={handle:Q.handle},c.handleEditSource&&(S.handleUpdate.handleEditSource=c.handleEditSource))};var El=function(){};
_.C(El,xR);El.prototype.getApiPaths=function(){return z5l};
El.prototype.getExtension=function(S){return _.Y(S,jrl)};
El.prototype.JSC$11043_buildRequest=function(S,c,Q){c.request&&(S.channelId=c.request.channelId);var f;if(Q==null?0:(f=Q.uploadDefaults)==null?0:f.emojiReactionSet)S.uploadDefaultsRequest||(S.uploadDefaultsRequest={}),S.uploadDefaultsRequest.emojiReactionSet=Q.uploadDefaults.emojiReactionSet};var ty=function(){};
_.C(ty,xR);ty.prototype.getApiPaths=function(){return B4z};
ty.prototype.getExtension=function(S){return _.Y(S,Qrh)};
ty.prototype.JSC$11043_buildRequest=function(S,c,Q){c.externalChannelId&&(S.externalChannelId=c.externalChannelId);c.channelHandleEntityKey&&(S.channelHandleEntityKey=c.channelHandleEntityKey);c.handleEditSource&&(S.handleEditSource=c.handleEditSource);Q.handle?S.handle=Q.handle:Q.name&&(S.name=Q.name)};var V9=function(){};
_.C(V9,xR);V9.prototype.getApiPaths=function(){return vAd};
V9.prototype.getExtension=function(S){return _.Y(S,hkl)};
V9.prototype.JSC$11043_buildRequest=function(S,c){c.actions?S.actions=c.actions:c.action&&(S.actions=[c.action])};var Ry=function(){};
_.C(Ry,xR);Ry.prototype.getApiPaths=function(){return PnT};
Ry.prototype.getExtension=function(S){return _.Y(S,_.gj)};
Ry.prototype.JSC$11043_buildRequest=function(S,c){c.token&&(S.continuation=c.token)};var y9=function(){};
_.C(y9,xR);y9.prototype.getApiPaths=function(){return Kni};
y9.prototype.getExtension=function(S){return _.Y(S,_.gj)};
y9.prototype.JSC$11043_buildRequest=function(S,c){S.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";c.token&&(S.fetchCommentsParams={continuation:c.token})};var oy=function(){};
_.C(oy,xR);oy.prototype.getApiPaths=function(){return Reh};
oy.prototype.getExtension=function(S){return _.Y(S,pEp)};
oy.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.createReplyParams&&(S.createReplyParams=c.createReplyParams);c.commentText&&(S.commentText=_.Em(c.commentText));Q.comment_text&&(S.commentText=Q.comment_text);Q.image_blob_id&&(S.imageAttachment={encryptedBlobId:Q.image_blob_id});Q.botguard_response&&(S.botguardResponse=Q.botguard_response)};
_.Rh.Object.defineProperties(oy.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var m_=function(){};
_.C(m_,xR);m_.prototype.getApiPaths=function(){return yAT};
m_.prototype.getExtension=function(S){return _.Y(S,_.DYd)};
m_.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.createCommentParams&&(S.createCommentParams=c.createCommentParams);c.commentText&&(S.commentText=_.Em(c.commentText));c.videoPositionMention&&(S.videoPositionMention=c.videoPositionMention);c.sources&&(S.sources=c.sources);Q.comment_text&&(S.commentText=Q.comment_text);Q.attached_video_id?S.videoAttachment={videoId:Q.attached_video_id}:Q.poll_options?S.pollAttachment={choices:Q.poll_options}:Q.image_blob_id?S.imageAttachment=
{encryptedBlobId:Q.image_blob_id}:Q.shared_post_id&&(S.sharedPostAttachment={postId:Q.shared_post_id});Q.access_restrictions&&typeof Q.access_restrictions==="number"&&(c=Q.access_restrictions,S.accessRestrictions={restriction:c!==1&&c===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});Q.botguard_response&&(S.botguardResponse=Q.botguard_response)};
_.Rh.Object.defineProperties(m_.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var SM=function(){};
_.C(SM,xR);SM.prototype.getApiPaths=function(){return ANp};
SM.prototype.getExtension=function(S){return _.Y(S,T6T)};
SM.prototype.JSC$11043_buildRequest=function(S,c,Q){c.commentText&&(S.replyText=_.Em(c.commentText));Q.comment_text&&(S.replyText=Q.comment_text);S.updateReplyParams=c.updateReplyParams};
_.Rh.Object.defineProperties(SM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cS=function(){};
_.C(cS,xR);cS.prototype.getApiPaths=function(){return XJ$};
cS.prototype.getExtension=function(S){return _.Y(S,qWz)};
cS.prototype.JSC$11043_buildRequest=function(S,c,Q){c.commentText&&(S.commentText=_.Em(c.commentText));Q.comment_text&&(S.commentText=Q.comment_text);S.updateCommentParams=c.updateCommentParams};
_.Rh.Object.defineProperties(cS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Q4=function(){};
_.C(Q4,xR);Q4.prototype.getApiPaths=function(){return Oml};
Q4.prototype.getExtension=function(S){return _.Y(S,Nrh)};
Q4.prototype.JSC$11043_buildRequest=function(S,c){c.settings&&(S.settings=c.settings)};var fo=function(){};
_.C(fo,xR);fo.prototype.getApiPaths=function(){return xuH};
fo.prototype.getExtension=function(S){return _.Y(S,fxh)};
fo.prototype.JSC$11043_buildRequest=function(S,c){c.channelCreationToken&&(S.channelCreationToken=c.channelCreationToken);c.source&&(S.source=c.source)};var Ug=function(){};
_.C(Ug,xR);Ug.prototype.getApiPaths=function(){return VnH};
Ug.prototype.getExtension=function(S){return _.Y(S,axd)};
Ug.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;if(Q.name&&(Q.given_name||Q.family_name))S=new _.Yr("channel creation cannot set both GAIA and YouTube names",c),_.sH(S);else{if(c.zeroStepChannelCreationParams){if(!Q.comment_text){S=new _.Yr("zero_step_create_comment_params but no zero_step_texts",c);_.sH(S);return}S.zeroStepChannelCreationParams=c.zeroStepChannelCreationParams;S.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(S.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
Q.comment_text,Q.botguard_response&&(S.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=Q.botguard_response))}S.channelCreationToken=c.channelCreationToken;Q.given_name&&(S.givenName=Q.given_name);Q.family_name&&(S.familyName=Q.family_name);c.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(S.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(Q.name||Q.handle||Q.avatar_url||Q.encryptedBlobId||Q.isNameChanged!==void 0||Q.isHandleChanged!==void 0||Q.isDefaultProfilePhoto!==
void 0||Q.obakeImageSource)S.overrideChannelCreationParams={},Q.name&&(S.overrideChannelCreationParams.name=Q.name),Q.handle&&(S.overrideChannelCreationParams.handle=Q.handle),Q.avatar_url&&(S.overrideChannelCreationParams.avatarUrl=Q.avatar_url),Q.encryptedBlobId&&(S.overrideChannelCreationParams.blobEncryptionId=Q.encryptedBlobId),Q.enableIdentityForAllChannelCreationDialog&&(Q.encryptedBlobId?S.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
Q.isDefaultProfilePhoto!==void 0&&(S.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=Q.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),Q.isNameChanged!==void 0&&(S.overrideChannelCreationParams.identityForAllChannelCreationNameTag=Q.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),Q.isHandleChanged!==
void 0&&(S.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=Q.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),Q.obakeImageSource&&(S.overrideChannelCreationParams.obakeImageSourceType=Q.obakeImageSource))}};var J0=function(){};
_.C(J0,xR);J0.prototype.getApiPaths=function(S){return(S=this.getExtension(S))&&S.status==="DISLIKE"?Uuh:S&&S.status==="INDIFFERENT"?vRd:wbe};
J0.prototype.getExtension=function(S){return _.Y(S,_.LD)};
J0.prototype.JSC$11043_buildRequest=function(S,c){c.target&&(S.target=c.target);if(c=this.getParams(c))S.params=c};
J0.prototype.getParams=function(S){switch(S==null?void 0:S.status){case "DISLIKE":return S.dislikeParams;case "INDIFFERENT":return S.removeLikeParams;default:return S==null?void 0:S.likeParams}};var aG=function(){};
_.C(aG,xR);aG.prototype.getApiPaths=function(){return SLd};
aG.prototype.getExtension=function(S){return _.Y(S,kpH)};
aG.prototype.JSC$11043_buildRequest=function(S,c){c.settingItemId&&(S.settingItemId=c.settingItemId);c.stringValue!=null&&c.stringValue!==void 0?S.newValue={stringValue:c.stringValue}:c.intValue?S.newValue={intValue:c.intValue}:c.boolValue!==null&&c.boolValue!==void 0?S.newValue={boolValue:c.boolValue}:(S=new _.Yr("Unknown value type for SetSettingEndpoint.",c),_.sH(S))};var A0=function(){};
_.C(A0,xR);A0.prototype.getApiPaths=function(){return QQ$};
A0.prototype.getExtension=function(S){return _.Y(S,UBJ)||void 0};
A0.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.channelIds&&(S.channelIds=c.channelIds);c.siloName&&(S.siloName=c.siloName);c.params&&(S.params=c.params);Q.botguardResponse&&(S.botguardResponse=Q.botguardResponse);Q.feature&&(S.clientFeature=Q.feature)};
_.Rh.Object.defineProperties(A0.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Xt=function(){};
_.C(Xt,xR);Xt.prototype.getApiPaths=function(){return Uc$};
Xt.prototype.getExtension=function(S){return _.Y(S,ree)||void 0};
Xt.prototype.JSC$11043_buildRequest=function(S,c){c.channelIds&&(S.channelIds=c.channelIds);c.siloName&&(S.siloName=c.siloName);c.params&&(S.params=c.params)};
_.Rh.Object.defineProperties(Xt.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Og=function(S){this.shareClientParamsProvider=S};
_.C(Og,xR);Og.prototype.getApiPaths=function(){return lMz};
Og.prototype.getExtension=function(S){return _.Y(S,Fus)||_.Y(S,_.B3u)||_.Y(S,xSz)};
Og.prototype.JSC$11043_buildRequest=function(S,c){c.serializedShareEntity&&(S.serializedSharedEntity=c.serializedShareEntity);if(c.clientParamIdentifier){var Q;if((Q=this.shareClientParamsProvider)==null?0:Q.clientParams.has(c.clientParamIdentifier)){Q=this.shareClientParamsProvider;c=c.clientParamIdentifier;var f=Q.clientParams.get(c);f&&Q.clientParams.delete(c);S.clientParams=f}}};
Og[mt]=[Ctd];var z5=function(){};
_.C(z5,xR);z5.prototype.getApiPaths=function(){return W6i};
z5.prototype.getExtension=function(S){return _.Y(S,jli)};
z5.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var xV=function(){};
_.C(xV,xR);xV.prototype.getApiPaths=function(){return JKd};
xV.prototype.getExtension=function(S){return _.Y(S,KCT)};
xV.prototype.JSC$11043_buildRequest=function(S,c){c.dismissal&&(S.items=[c.dismissal])};
_.Rh.Object.defineProperties(xV.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Ft=function(){};
_.C(Ft,xR);Ft.prototype.getApiPaths=function(){return qxh};
Ft.prototype.getExtension=function(S){return _.Y(S,_.ie)||void 0};
Ft.prototype.JSC$11043_buildRequest=function(S,c,Q){S.feedbackTokens=[];c.feedbackToken&&S.feedbackTokens.push(c.feedbackToken);if(c=c.cpn||Q.cpn)S.feedbackContext={cpn:c};S.isFeedbackTokenUnencrypted=!!Q.is_feedback_token_unencrypted;S.shouldMerge=!1;Q.extra_feedback_tokens&&(S.shouldMerge=!0,S.feedbackTokens=S.feedbackTokens.concat(Q.extra_feedback_tokens))};
_.Rh.Object.defineProperties(Ft.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var BS=function(){};
_.C(BS,xR);BS.prototype.getApiPaths=function(){return qxh};
BS.prototype.getExtension=function(S){return _.Y(S,_.b2)};
BS.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.feedback_tokens&&(S.feedbackTokens=Q.feedback_tokens,S.shouldMerge=!0)};
_.Rh.Object.defineProperties(BS.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var IG=function(){};
_.C(IG,xR);IG.prototype.getApiPaths=function(){return qxh};
IG.prototype.getExtension=function(S){return _.Y(S,OFH)};
IG.prototype.JSC$11043_buildRequest=function(S,c){c.undoToken&&(S.feedbackTokens=[c.undoToken]);c.isUndoTokenUnencrypted&&(S.isFeedbackTokenUnencrypted=c.isUndoTokenUnencrypted)};
_.Rh.Object.defineProperties(IG.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var no=function(){};
_.C(no,xR);no.prototype.getApiPaths=function(){return Ipp};
no.prototype.getExtension=function(S){return _.Y(S,nqs)};
no.prototype.JSC$11043_buildRequest=function(S,c){c.nextEndpoint&&_.Y(c.nextEndpoint,_.rQ)?S.nextEndpoint={urlEndpoint:_.Y(c.nextEndpoint,_.rQ)}:c.nextEndpoint&&_.Y(c.nextEndpoint,_.tG)&&(S.nextEndpoint={watchEndpoint:_.Y(c.nextEndpoint,_.tG)});c.setRacy&&(S.setRacy=c.setRacy);c.setControvercy&&(S.setControvercy=c.setControvercy)};var ba=function(S){this.JSC$15727_storeWithEntities=S};
_.C(ba,xR);ba.prototype.getApiPaths=function(){return AKd};
ba.prototype.getExtension=function(S){return _.Y(S,ede)};
ba.prototype.JSC$11043_buildRequest=function(S,c){c.flowId&&(S.flowId=c.flowId);c.targetId&&(S.targetId=c.targetId);c.continuation&&(S.continuation=c.continuation);var Q=c.flowStateEntityKey;if(c.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&Q&&this.JSC$15727_storeWithEntities){var f;if(c=(f=this.JSC$15727_storeWithEntities.getState())==null?void 0:f.entities)if(f=_.XT(Q).entityType,f=_.FT(c,f,Q))S.flowState=f,S.flowStateEntityKey=Q}};
_.Rh.Object.defineProperties(ba.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
ba[mt]=[xs];var ACz=function(){};
_.C(ACz,xR);_.J=ACz.prototype;_.J.getApiPaths=function(){return hST};
_.J.JSC$11050_getStoreKey=function(){return _.EM("guide")};
_.J.getRequestConfig=function(){var S=this.JSC$11050_getStoreKey(),c;S&&(c={storeStrategy:{storeKey:S}});return c};
_.J.isNavigationCommand=function(){return!0};
_.J.getExtension=function(S){return _.Y(S,_.b2)};
_.J.JSC$11043_buildRequest=function(S){S.fetchLiveState=!0};var Ne=function(){};
_.C(Ne,xR);Ne.prototype.getApiPaths=function(){return rAJ};
Ne.prototype.getExtension=function(S){return _.Y(S,YWp)};
Ne.prototype.JSC$11043_buildRequest=function(){};var Ko=function(){};
_.C(Ko,xR);Ko.prototype.getApiPaths=function(){return diz};
Ko.prototype.getExtension=function(S){return _.Y(S,CKz)};
Ko.prototype.JSC$11043_buildRequest=function(){};var $V=function(){};
_.C($V,xR);$V.prototype.getApiPaths=function(){return G7z};
$V.prototype.getExtension=function(S){return _.Y(S,_.gj)};
$V.prototype.JSC$11043_buildRequest=function(S,c){c.token&&(S.continuation=c.token);var Q,f;S==null||(Q=S.context)==null||(f=Q.user)==null||delete f.onBehalfOfUser};
$V.prototype.getRequestConfig=function(S){var c={},Q;if(((Q=this.getExtension(S))==null?void 0:Q.sessionIndex)!==void 0){var f;c={authStrategy:{sessionIndex:(f=this.getExtension(S))==null?void 0:f.sessionIndex}}}return c};var ua=function(){};
_.C(ua,xR);ua.prototype.JSC$11043_getRequest=function(S){var c=this.getExtension(S),Q=S="";if(c==null?0:c.popup)S="true";if(c==null?0:c.disableSignout)Q="true";c={};return{input:"/getAccountSwitcherEndpoint",requestShell:LP("/getAccountSwitcherEndpoint","GET",(c["X-YouTube-Delegation-Context"]=_.WY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),c["X-YouTube-Account-Switcher-Popup"]=S,c["X-YouTube-Account-Switcher-Disable-Signout"]=Q,c)),innerTubeRequest:{}}};
ua.prototype.getApiPaths=function(){return[]};
ua.prototype.getExtension=function(S){return _.Y(S,_.K_Y)};
ua.prototype.JSC$11043_buildRequest=function(){};var jM=function(){};
_.C(jM,xR);jM.prototype.JSC$11043_getRequest=function(S){var c="/cross_account_channel_transfer";(S=this.getExtension(S))&&(c=umz(c,{target_session:S.targetSessionIndex,source_rapt:S.sourceRapt,rapt:S.targetRapt}));return{input:c,requestShell:LP(c,"GET"),innerTubeRequest:{}}};
jM.prototype.getApiPaths=function(){return[]};
jM.prototype.getExtension=function(S){return _.Y(S,Y9e)};
jM.prototype.JSC$11043_buildRequest=function(){};var la=function(){};
_.C(la,xR);la.prototype.getApiPaths=function(){return Xbh};
la.prototype.isNavigationCommand=function(){return!0};
la.prototype.getExtension=function(S){return _.Y(S,_.b2)};
la.prototype.JSC$11043_buildRequest=function(S){var c=_.jL().get("gsml","");c&&(S.safetyModeLockerObfuscatedGaiaId=c);S.userInterfaceTheme=_.pJ(!0);_.h4()?S.deviceTheme="DEVICE_THEME_SELECTED":_.nJZ()?S.deviceTheme="DEVICE_THEME_SUPPORTED":S.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var YV=function(){};
_.C(YV,xR);YV.prototype.getApiPaths=function(){return G7z};
YV.prototype.getExtension=function(S){return _.Y(S,Cez)};
YV.prototype.JSC$11043_buildRequest=function(S,c){if(c&&c.requestType&&(S.requestType=c.requestType,c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var Q=c.nextUrl;Q&&(_.lmx(Q)||SJ(Q))&&(S.nextNavendpoint={urlEndpoint:{url:Q}})}c&&c.channelSwitcherQuery&&(S.channelSwitcherQuery=c.channelSwitcherQuery);c&&c.triggerChannelCreation&&(S.triggerChannelCreation=c.triggerChannelCreation);var f;if(c==null?0:(f=c.contentOwnerConfig)==
null?0:f.externalContentOwnerId)S.contentOwnerConfig=c.contentOwnerConfig;S.callCircumstance=c&&c.requestType&&c.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var U,a;c=S==null?void 0:(U=S.context)==null?void 0:(a=U.user)==null?void 0:a.onBehalfOfUser;if(c!==void 0){S.obfuscatedSelectedGaiaId=c;var X,z;S==null||(X=S.context)==null||(z=X.user)==null||delete z.onBehalfOfUser}var x,I;if(U=S==null?void 0:(x=S.context)==null?void 0:(I=x.user)==null?
void 0:I.serializedDelegationContext)S.selectedSerializedDelegationContext=U};var Co=function(){};
_.C(Co,xR);Co.prototype.getApiPaths=function(){return jtH};
Co.prototype.getExtension=function(S){return _.Y(S,$7H)};
Co.prototype.JSC$11043_buildRequest=function(S,c){c.profileOwnerExternalChannelId&&(S.profileOwnerExternalChannelId=c.profileOwnerExternalChannelId);c.profileCardContext&&(S.profileCardContext=c.profileCardContext)};var HS=function(){};
_.C(HS,xR);HS.prototype.getApiPaths=function(){return gAH};
HS.prototype.getExtension=function(S){return _.Y(S,IPl)};
HS.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var Dd=function(){};
_.C(Dd,xR);Dd.prototype.getApiPaths=function(){return tnd};
Dd.prototype.getExtension=function(S){return _.Y(S,_.h7l)};
Dd.prototype.JSC$11043_buildRequest=function(S,c){if(c=c.createBroadcastRequest)S.useMasks=c.useMasks,S.broadcastType=c.broadcastType,S.broadcastSource=c.broadcastSource,S.broadcastMetadata=c.broadcastMetadata,S.broadcastMetadataMask=c.broadcastMetadataMask,S.videoMetadata=c.videoMetadata,S.videoMetadataMask=c.videoMetadataMask,S.liveChatSettingsUpdate=c.liveChatSettingsUpdate,S.liveChatSettingsUpdateMask=c.liveChatSettingsUpdateMask,S.cloneVideoId=c.cloneVideoId,S.cloneWithOverrides=c.cloneWithOverrides,
S.targetEntity=c.targetEntity,S.scheduledRedirectMetadata=c.scheduledRedirectMetadata};var po=function(){};
_.C(po,xR);po.prototype.getApiPaths=function(){return oAi};
po.prototype.getExtension=function(S){return _.Y(S,pHd)};
po.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.params&&(S.params=c.params);Q.questionText&&(S.questionText=Q.questionText);Q.optionText&&Q.optionText.length>0&&(S.optionText=Q.optionText)};var h0=function(){};
_.C(h0,xR);h0.prototype.getApiPaths=function(){return cKs};
h0.prototype.getExtension=function(S){return _.Y(S,H0$)};
h0.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var qe=function(){};
_.C(qe,xR);qe.prototype.getApiPaths=function(){return BcT};
qe.prototype.getExtension=function(S){return _.Y(S,jaT)};
qe.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var T5=function(){};
_.C(T5,xR);T5.prototype.getApiPaths=function(){return nRi};
T5.prototype.getExtension=function(S){return _.Y(S,lgJ)};
T5.prototype.JSC$11043_buildRequest=function(S,c,Q){c.params&&(S.params=c.params);c.continuation&&(S.continuation=c.continuation);Q.currentPlayerState&&Q.currentPlayerState.playerOffsetMs&&(S.currentPlayerState={playerOffsetMs:Q.currentPlayerState.playerOffsetMs.toString()})};var wW=function(){};
_.C(wW,xR);wW.prototype.getApiPaths=function(){return bMd};
wW.prototype.getExtension=function(S){return _.Y(S,uSi)};
wW.prototype.JSC$11043_buildRequest=function(S,c,Q){c.params&&(S.params=c.params);Q.continuation&&(S.continuation=Q.continuation);"hidden"in Q&&(S.webClientInfo={isDocumentHidden:Q.hidden});Q.isInvalidationTimeoutRequest&&(S.isInvalidationTimeoutRequest=Q.isInvalidationTimeoutRequest);Q.invalidationPayload&&(c=$Us(_.Od(ci(Q.invalidationPayload))),S.invalidationPayloadLastPublishAtUsec=Zx(c,2));Q.reloadActionPanel&&(S.reloadActionPanel=Q.reloadActionPanel);Q.fullReload&&(S.fullReload=Q.fullReload);
Q.currentPlayerState&&(S.currentPlayerState=Q.currentPlayerState)};var sg=function(){};
_.C(sg,xR);sg.prototype.getApiPaths=function(){return stu};
sg.prototype.getExtension=function(S){return _.Y(S,DU$)};
sg.prototype.JSC$11043_buildRequest=function(S,c){S.params=c.params};var Me=function(){};
_.C(Me,xR);Me.prototype.getApiPaths=function(){return IMl};
Me.prototype.getExtension=function(S){return _.Y(S,T3h)};
Me.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var ia=function(){};
_.C(ia,xR);ia.prototype.getApiPaths=function(){return Ncs};
ia.prototype.getExtension=function(S){return _.Y(S,w9d)};
ia.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var Zd=function(){};
_.C(Zd,xR);Zd.prototype.getApiPaths=function(){return MEd};
Zd.prototype.getExtension=function(S){return _.Y(S,hCu)};
Zd.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var G5=function(){};
_.C(G5,xR);G5.prototype.getApiPaths=function(){return ZMd};
G5.prototype.getExtension=function(S){return _.Y(S,qn$)};
G5.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var WS=function(){};
_.C(WS,xR);WS.prototype.getApiPaths=function(){return Pss};
WS.prototype.getExtension=function(S){return _.Y(S,N3p)};
WS.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var gW=function(){};
_.C(gW,xR);gW.prototype.getApiPaths=function(){return oRi};
gW.prototype.getExtension=function(S){return _.Y(S,_.TTd)};
gW.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.params&&(S.params=c.params);Q.client_message_id&&(S.clientMessageId=Q.client_message_id);Q.recaptcha_token&&(S.recaptchaToken=Q.recaptcha_token);Q.rich_message&&Q.rich_message.text_segments?(c=Q.rich_message.text_segments.map(function(f){var U={};f.text&&(U.text=f.text);f.emoji_id&&(U.emojiId=f.emoji_id);return U}),S.richMessage={textSegments:c}):Q.message&&(S.message=Q.message);
Q.currentPlayerState&&(S.currentPlayerState=Q.currentPlayerState)};var eM=function(){};
_.C(eM,xR);eM.prototype.getApiPaths=function(){return mup};
eM.prototype.getExtension=function(S){return _.Y(S,wHp)};
eM.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var kV=function(){};
_.C(kV,xR);kV.prototype.getApiPaths=function(){return fp$};
kV.prototype.getExtension=function(S){return _.Y(S,M1J)};
kV.prototype.JSC$11043_buildRequest=function(S,c,Q){c.isUserInitiated&&(S.isUserInitiated=c.isUserInitiated);c.initiationSource&&(S.initiationSource=c.initiationSource);Q.locationInfo&&(S.context.client.locationInfo=Q.locationInfo)};var rW=function(){};
_.C(rW,xR);rW.prototype.getApiPaths=function(){return iMu};
rW.prototype.getExtension=function(S){return _.Y(S,qbp)};
rW.prototype.JSC$11043_buildRequest=function(S,c,Q){c.metadataUpdateRequest&&(c=c.metadataUpdateRequest,S.encryptedVideoId=c.encryptedVideoId,c.liveChat&&(c=c.liveChat,S.liveChat||(S.liveChat={}),c.performAsExternalChannelId&&(S.liveChat.performAsExternalChannelId=c.performAsExternalChannelId),c.source&&(S.liveChat.source=c.source)));var f;if(Q==null?0:(f=Q.liveChat)==null?0:f.liveChatSettings)S.liveChat||(S.liveChat={}),Q=Q.liveChat.liveChatSettings,S.liveChat.newLiveChatSettings=Q,S.liveChat.newLiveChatSettingsMask||
(S.liveChat.newLiveChatSettingsMask={}),Q.emojiReactionSet&&(S.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var dW=function(){};
_.C(dW,xR);dW.prototype.getApiPaths=function(){return Fyh};
dW.prototype.getExtension=function(S){return _.Y(S,_.d9i)};
dW.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.continuation?S.continuation=Q.continuation:c.videoId&&(S.videoId=c.videoId);Q.clientParams&&(S.clientParams=Q.clientParams)};var vS=function(){};
_.C(vS,xR);vS.prototype.getApiPaths=function(){return Kni};
vS.prototype.getExtension=function(S){return _.Y(S,_.sa)};
vS.prototype.JSC$11043_buildRequest=function(S,c){S.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";S.fetchCommentsParams={};c.videoId&&(S.fetchCommentsParams.encryptedVideoId=c.videoId);c.postId&&(S.fetchCommentsParams.postId=c.postId);c.externalChannelId&&(S.fetchCommentsParams.externalChannelId=c.externalChannelId);c.linkedCommentId&&(S.fetchCommentsParams.linkedCommentId=c.linkedCommentId);(0,_.Cn.isEmpty)(S.fetchCommentsParams)&&delete S.fetchCommentsParams};var PS=function(){};
_.C(PS,xR);PS.prototype.getApiPaths=function(){return c$};
PS.prototype.JSC$11043_buildRequest=function(S){S.browseId="FEnotifications_inbox"};
PS.prototype.getExtension=function(S){return _.Y(S,_.b2)};var Lo=function(){};
_.C(Lo,xR);Lo.prototype.getApiPaths=function(){return Kni};
Lo.prototype.JSC$11043_buildRequest=function(S,c){c.signal==="GET_NOTIFICATIONS_MENU"&&(S.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");c.ctoken&&(S.ctoken=c.ctoken)};
var XP$=function(){};
_.C(XP$,Lo);XP$.prototype.getExtension=function(S){return _.Y(S,_.b2)};
var Oru=function(){};
_.C(Oru,Lo);Oru.prototype.getExtension=function(S){return _.Y(S,FCH)};var Eg=function(){};
_.C(Eg,xR);Eg.prototype.getApiPaths=function(){return HMi};
Eg.prototype.getExtension=function(S){return _.Y(S,_.b2)};
Eg.prototype.JSC$11043_buildRequest=function(){};var t0=function(){};
_.C(t0,xR);t0.prototype.getApiPaths=function(){return G3p};
t0.prototype.getExtension=function(S){return _.Y(S,M5H)||void 0};
t0.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params);c.secondaryParams&&(S.secondaryParams=c.secondaryParams)};var V4=function(){};
_.C(V4,xR);V4.prototype.getApiPaths=function(){return Wnd};
V4.prototype.getExtension=function(S){return _.Y(S,nod)};
V4.prototype.JSC$11043_buildRequest=function(S,c){c.undo&&(S.undo=c.undo);c.serializedOptOut&&(S.serializedOptOut=c.serializedOptOut);c.serializedRecordInteractionsRequest&&(S.serializedRecordInteractionsRequest=c.serializedRecordInteractionsRequest)};var RG=function(){};
_.C(RG,xR);RG.prototype.getApiPaths=function(){return k3d};
RG.prototype.getExtension=function(S){return _.Y(S,bwp)};
RG.prototype.JSC$11043_buildRequest=function(S,c){c.serializedInteractionsRequest&&(S.serializedRecordNotificationInteractionsRequest=c.serializedInteractionsRequest)};var y4=function(){};
_.C(y4,xR);y4.prototype.getApiPaths=function(){return YOM};
y4.prototype.getExtension=function(S){return _.Y(S,DbY)};
y4.prototype.JSC$11043_buildRequest=function(S,c,Q){c=c===void 0?{}:c;Q=Q===void 0?{}:Q;c.videoId?S.videoId=c.videoId:c.playlistId&&(S.playlistId=c.playlistId);var f,U=(f=c.offlineWebClientEligibility)!=null?f:Q.offlineWebClientEligibility;U&&(S.offlineWebClientEligibility=U);var a;if(f=(a=c.preferredFormatType)!=null?a:Q.preferredFormatType)S.preferredFormatType=f;var X;if(a=(X=c.lastOfflineQualitySettingsSavedMs)!=null?X:Q.lastOfflineQualitySettingsSavedMs)S.lastOfflineQualitySettingsSavedMs=a;
c.params&&(S.params=c.params)};var oG=function(){};
_.C(oG,xR);oG.prototype.getApiPaths=function(){return RJ};
oG.prototype.getExtension=function(S){return _.Y(S,_.gj)};
oG.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.token&&(S.continuation=c.token);Q.formData&&(S.formData=Q.formData)};var m$=function(){};
_.C(m$,xR);m$.prototype.getApiPaths=function(){return RJ};
m$.prototype.getExtension=function(S){return _.Y(S,Ybl)};
m$.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;S.continuation=Q.continuation};var SY=function(){};
_.C(SY,xR);SY.prototype.getApiPaths=function(){return RJ};
SY.prototype.getExtension=function(S){return _.Y(S,_.M7)};
SY.prototype.JSC$11043_buildRequest=function(S,c){var Q,f=c.panelIdentifier||((Q=c.identifier)==null?void 0:Q.tag);f&&(S.panelId=f);var U;if((U=c.globalConfiguration)==null?0:U.params){var a;S.params=(a=c.globalConfiguration)==null?void 0:a.params}};
_.Rh.Object.defineProperties(SY.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var cW=function(){};
_.C(cW,xR);cW.prototype.getApiPaths=function(){return RJ};
cW.prototype.getExtension=function(S){return _.Y(S,Apd)};
cW.prototype.JSC$11043_buildRequest=function(S,c){c.panelLoadingStrategy&&$Az(S,c.panelLoadingStrategy)};var QC=function(){};
_.C(QC,xR);QC.prototype.getApiPaths=function(){return RJ};
QC.prototype.getExtension=function(S){return _.Y(S,p9u)};
QC.prototype.JSC$11043_buildRequest=function(S,c){c.loadingStrategy&&$Az(S,c.loadingStrategy)};var fI=function(){};
_.C(fI,xR);fI.prototype.getApiPaths=function(){return RJ};
fI.prototype.getExtension=function(S){return _.Y(S,_.KS)};
fI.prototype.JSC$11043_buildRequest=function(S,c){c.panelLoadingStrategy&&$Az(S,c.panelLoadingStrategy)};var UD=function(){};
_.C(UD,xR);UD.prototype.getApiPaths=function(){return RJ};
UD.prototype.getExtension=function(S){return _.Y(S,h1u)};
UD.prototype.JSC$11043_buildRequest=function(S,c){var Q,f=(Q=c.contentSourcePanelIdentifier)==null?void 0:Q.tag;f&&(S.panelId=f);var U;if((U=c.globalConfiguration)==null?0:U.params){var a;S.params=(a=c.globalConfiguration)==null?void 0:a.params}};var JJ=function(){};
_.C(JJ,xR);JJ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
JJ.prototype.getExtension=function(S){return _.Y(S,qEu)};
JJ.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var aE=function(){};
_.C(aE,xR);aE.prototype.getApiPaths=function(){return xcJ};
aE.prototype.getExtension=function(S){return _.Y(S,s8d)};
aE.prototype.JSC$11043_buildRequest=function(S,c){c.externalChannelId&&(S.externalChannelId=c.externalChannelId);c.superChatAction&&(S.superChatAction=c.superChatAction);c.superStickersAction&&(S.superStickersAction=c.superStickersAction)};var AJ=function(){};
_.C(AJ,xR);AJ.prototype.getApiPaths=function(){return OMd};
AJ.prototype.getExtension=function(S){return _.Y(S,l2d)||_.Y(S,hNz)};
AJ.prototype.JSC$11043_buildRequest=function(S,c){c.videoIds?S.videoIds=c.videoIds:c.videoId&&(S.videoIds=[c.videoId]);c.playlistId&&(S.playlistId=c.playlistId);c.params&&(S.params=c.params);S.excludeWatchLater=!1};var X0=function(){};
_.C(X0,xR);X0.prototype.getApiPaths=function(){return miT};
X0.prototype.getExtension=function(S){return _.Y(S,_.eT)};
X0.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.create_playlist_title?S.title=Q.create_playlist_title:c.title&&(S.title=c.title);if(Q.create_playlist_privacy_status&&typeof Q.create_playlist_privacy_status==="number"){a:{var f=Q.create_playlist_privacy_status;if(f!==0){if(f===1){f="PUBLIC";break a}if(f===2){f="UNLISTED";break a}}f="PRIVATE"}S.privacyStatus=f}else c.privacyStatus&&(S.privacyStatus=c.privacyStatus);Q.create_playlist_description&&(S.description=Q.create_playlist_description);c.videoIds&&
(S.videoIds=c.videoIds);c.params&&(S.params=c.params);c.sourcePlaylistId&&(S.sourcePlaylistId=c.sourcePlaylistId)};var OD=function(){};
_.C(OD,xR);OD.prototype.getApiPaths=function(){return QtJ};
OD.prototype.getExtension=function(S){return _.Y(S,wEs)};
OD.prototype.JSC$11043_buildRequest=function(S,c){S.playlistId=c.playlistId};var zl=function(){};
_.C(zl,xR);zl.prototype.getApiPaths=function(){return $uh};
zl.prototype.getExtension=function(S){return _.Y(S,Owd)};
zl.prototype.JSC$11043_buildRequest=function(S,c){c.playlistId&&(S.playlistId=c.playlistId);c.params&&(S.params=c.params)};var xW=function(){};
_.C(xW,xR);xW.prototype.getApiPaths=function(){return eSd};
xW.prototype.getExtension=function(S){return _.Y(S,_.MB)||void 0};
xW.prototype.JSC$11043_buildRequest=function(S,c){c.actions&&(S.actions=c.actions);c.params&&(S.params=c.params);c.playlistId&&(S.playlistId=c.playlistId)};var F0=function(){};
_.C(F0,xR);_.J=F0.prototype;_.J.getApiPaths=function(){return rKd};
_.J.getExtension=function(S){return _.Y(S,_.ll)};
_.J.JSC$11043_buildRequest=function(S,c){c.videoId&&(S.playerRequest={videoId:c.videoId},c.playerParams&&(S.playerRequest.params=c.playerParams),c.racyCheckOk&&(S.playerRequest.racyCheckOk=!!c.racyCheckOk),c.contentCheckOk&&(S.playerRequest.contentCheckOk=!!c.contentCheckOk));c.params&&(S.params=c.params);c.inputType&&(S.inputType=c.inputType);S.disablePlayerResponse=!0};
_.J.getRequestConfig=function(S){var c;(S=this.JSC$11050_getStoreKey(S))&&(c={storeStrategy:{storeKey:S}});_.u("web_log_reels_ticks")&&(c=c||{},c.requestTick="r_wrs",c.responseTick="r_wrr");return c};
_.J.JSC$11050_getStoreKey=function(S){S=this.getExtension(S);if(_.u("shorts_controller_retrieve_seedless_sequence_v2")){if((S==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.EM("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.u("web_prefetch_riw_for_next_video")||_.u("web_shorts_prefetch_service_enabled"))&&S!=null&&S.videoId){var c={videoId:S.videoId};S.params&&(c.params=S.params);return _.EM("reel_item_watch",c)}};var BW=function(){};
_.C(BW,xR);_.J=BW.prototype;_.J.getApiPaths=function(){return duu};
_.J.getExtension=function(S){return _.Y(S,_.ll)};
_.J.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;S.sequenceParams=c.sequenceParams;var f;((f=Q)==null?0:f.contentPlaybackContext)&&_.u("web_shorts_prefetch_service_enabled")&&(S.playbackContext={contentPlaybackContext:Q.contentPlaybackContext})};
_.J.JSC$11050_getStoreKey=function(S){if(_.u("shorts_controller_retrieve_seedless_sequence_v2")&&(S=this.getExtension(S),S==null?0:S.sequenceParams))return _.EM("reel_watch_sequence",{sequenceParams:S.sequenceParams})};
_.J.getRequestConfig=function(S){S=this.JSC$11050_getStoreKey(S);var c;S&&(c={storeStrategy:{storeKey:S}});_.u("reel_watch_sequence_request_log_ticks")&&(c=c||{},c.requestTick="r_wsrs",c.responseTick="r_wsrr",c.processorTick="r_wsrp");return c};
var IE=function(){};
_.C(IE,xR);IE.prototype.getApiPaths=function(){return duu};
IE.prototype.getExtension=function(S){return _.Y(S,_.gj)};
IE.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.token&&(S.continuation=c.token);var f;((f=Q)==null?0:f.contentPlaybackContext)&&_.u("web_shorts_prefetch_service_enabled")&&(S.playbackContext={contentPlaybackContext:Q.contentPlaybackContext})};
IE.prototype.getRequestConfig=function(S){S=this.JSC$11050_getStoreKey(S);var c;S&&(c={storeStrategy:{storeKey:S}});_.u("reel_watch_sequence_request_log_ticks")&&(c=c||{},c.requestTick="r_wsrs",c.responseTick="r_wsrr",c.processorTick="r_wsrp");return c};var nI=function(){};
_.C(nI,xR);nI.prototype.getApiPaths=function(){return aMz};
nI.prototype.getExtension=function(S){return _.Y(S,_.gq_)};
nI.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.flagAction&&(S.action=c.flagAction);c.flagRequestType&&(S.flagRequestType=c.flagRequestType);c.additionalDetailCheckboxChecked&&(S.additionalDetailCheckboxChecked=c.additionalDetailCheckboxChecked);c.legalCheckboxChecked&&(S.legalCheckboxChecked=c.legalCheckboxChecked);c={};Q.flag_issue_type!==void 0&&(c.issue=Q.flag_issue_type);Q.flag_affiliation!==void 0&&(c.affiliation=Q.flag_affiliation);Q.flag_full_name&&(c.fullName=Q.flag_full_name);
Object.keys(c).length&&(S.legalReportDetails=c);if(Q.flag_description||Q.text)S.userComments=Q.flag_description||Q.text;c={};Q.minutes!==void 0&&Q.seconds!==void 0&&(c.minutes=Q.minutes,c.seconds=Q.seconds);Q.vss_id&&(c.vssId=Q.vss_id);Object.keys(c).length&&(S.videoReportDetails=c);c={};Q.video_ids&&(c.videoIds=Q.video_ids);Q.impersonated_channel_url&&(c.impersonatedChannelUrl=Q.impersonated_channel_url);Object.keys(c).length&&(S.channelAbuseReportDetails=c)};
_.Rh.Object.defineProperties(nI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var b_=function(){};
_.C(b_,xR);b_.prototype.getApiPaths=function(){return Fn_};
b_.prototype.getExtension=function(S){return _.Y(S,xUd)};
b_.prototype.JSC$11043_buildRequest=function(S,c){c.blockedForKidsContent&&(S.blockedForKidsContent=c.blockedForKidsContent)};var Nh=function(){};
_.C(Nh,xR);Nh.prototype.getApiPaths=function(){return LnH};
Nh.prototype.getExtension=function(S){return _.Y(S,p4Z)};
Nh.prototype.JSC$11043_buildRequest=function(S,c,Q){S.params=c.params;Q.impersonated_channel_url&&(S.impersonatedChannelUrl=Q.impersonated_channel_url)};var KI=function(){};
_.C(KI,xR);KI.prototype.getApiPaths=function(){return Tc$};
KI.prototype.getExtension=function(S){return _.Y(S,_.FLz)};
KI.prototype.JSC$11043_buildRequest=function(S,c){c.items&&(S.items=c.items);c.kidGaiaId&&(S.kidGaiaId=c.kidGaiaId)};var $W=function(){};
_.C($W,xR);$W.prototype.getApiPaths=function(){return zSl};
$W.prototype.getExtension=function(S){return _.Y(S,_.ugs)};
$W.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params);c.targetId&&(S.targetId=c.targetId)};var u_=function(){};
_.C(u_,xR);u_.prototype.getApiPaths=function(){return RSp};
u_.prototype.getExtension=function(S){return _.Y(S,BOd)};
u_.prototype.JSC$11043_buildRequest=function(S,c){c.externalVideoId&&(S.externalVideoId=c.externalVideoId);c.query&&(S.query=c.query);c.sourceTimelines&&(S.sourceTimelines=c.sourceTimelines)};var jY=function(){};
_.C(jY,xR);jY.prototype.getApiPaths=function(){return yKp};
jY.prototype.getExtension=function(S){return _.Y(S,_.gj)||void 0};
jY.prototype.JSC$11043_buildRequest=function(S,c){c.token&&(S.continuation=c.token)};
_.zvl=function(){};
_.C(_.zvl,xR);_.J=_.zvl.prototype;_.J.getApiPaths=function(){return yKp};
_.J.getExtension=function(S){return _.Y(S,_.$k)||void 0};
_.J.isNavigationCommand=function(){return!0};
_.J.JSC$11050_getStoreKey=function(S,c){c=c===void 0?{}:c;if(!c.disableCache&&(S=this.getExtension(S))&&S.query)return c={query:S.query},S.params&&(c.params=S.params),_.EM("search",c)};
_.J.JSC$11043_buildRequest=function(S,c,Q){c.query&&(S.query=c.query);c.params&&(S.params=c.params);if(!_.u("web_forward_suggest_stats_killswitch")){var f=_.Y(c,Q8u);f&&(S.suggestStats=f)}var U;!_.u("kevlar_searchbox_stats_killswitch")&&((U=Q.tempData)==null?0:U.gs_l)&&!_.Y(c,Q8u)&&(S.webSearchboxStatsUrl="/search?oq="+(Q.tempData.oq||"")+"&gs_l="+Q.tempData.gs_l);var a;if((a=Q.tempData)==null?0:a.entityMid)c=S.suggestionSearchParams||{},c.entityMid=Q.tempData.entityMid,S.suggestionSearchParams=c};
_.J.getRequestConfig=function(S,c){c=c===void 0?{}:c;S=this.JSC$11050_getStoreKey(S,c);var Q;S&&(Q={storeStrategy:{storeKey:S}});_.u("web_log_search_ticks_ks")||(Q=Q||{},Q.requestTick="sr_s",Q.responseTick="sr_r");return Q};var l_=function(){};
_.C(l_,xR);l_.prototype.getApiPaths=function(){return Yxd};
l_.prototype.getExtension=function(S){return _.Y(S,tss)};
l_.prototype.JSC$11043_buildRequest=function(S,c){c.serializedGetSharingProviderDataParams&&(S.serializedGetSharingProviderDataParams=c.serializedGetSharingProviderDataParams)};var YW=function(){};
_.C(YW,xR);YW.prototype.getApiPaths=function(){return Csp};
YW.prototype.getExtension=function(S){return _.Y(S,MWd)};
YW.prototype.JSC$11043_buildRequest=function(S,c){c.endpoint&&(S.endpoint=c.endpoint);c.action&&(S.action=c.action)};var CI=function(){};
_.C(CI,xR);CI.prototype.getApiPaths=function(){return fMT};
CI.prototype.getExtension=function(S){return _.Y(S,s0d)};
CI.prototype.JSC$11043_buildRequest=function(S,c){S.videoId=c.videoId;c.scheduledRedirectMetadataSourceVideoId&&(S.scheduledRedirectMetadata={sourceVideoId:c.scheduledRedirectMetadataSourceVideoId})};var HW=function(){};
_.C(HW,xR);HW.prototype.getApiPaths=function(){return cNJ};
HW.prototype.getExtension=function(S){return _.Y(S,_.qaz)};
HW.prototype.JSC$11043_buildRequest=function(S,c){S.params=c.params;S.correctionText=c.correctionText};var DH=function(){};
_.C(DH,xR);DH.prototype.getApiPaths=function(){return jVZ};
DH.prototype.getExtension=function(S){return _.Y(S,_.I$d)};
DH.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params);S.searchQuery=c.searchQuery;S.languageCode=c.languageCode;S.kind=c.kind;S.name=c.name;S.externalVideoId=c.externalVideoId};var pI=function(){};
_.C(pI,xR);pI.prototype.getApiPaths=function(){return bmh};
pI.prototype.getExtension=function(S){return _.Y(S,vce)};
pI.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.params=c.params)};var hJ=function(S){this.JSC$16002_storeWithEntities=S};
_.C(hJ,xR);hJ.prototype.getApiPaths=function(){return L6s};
hJ.prototype.getExtension=function(S){return _.Y(S,LxH)||_.Y(S,tTd)};
hJ.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.client_data&&(S.clientData=Q.client_data);if(c.commerceActionConfig){var f=c.commerceActionConfig;c=f.actionId;f=f.commerceActionParams;c&&(S.actionId=c);f&&(S.commerceActionParams=f)}else{var U=c.actionId,a=c.commerceActionParams;Q=c.entityKeys;U&&(S.actionId=U);a&&(S.commerceActionParams=a);var X;c=(f=this.JSC$16002_storeWithEntities)==null?void 0:(X=f.getState())==null?void 0:X.entities;if(Q&&c){f=[];X=_.A(Q);for(Q=X.next();!Q.done;Q=X.next())if(U=
Q.value,Q=_.XT(U).entityType,U=_.FT(c,Q,U))a={},f.push((a[Q]=U,a));S.entityMutationPayloads=f}}};
hJ.prototype.getRequestConfig=function(S){var c,Q=(c=_.Y(S,LxH))==null?void 0:c.requestSequenceType;if(Q&&S.clickTrackingParams&&Q!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:S.clickTrackingParams,sequenceType:Q}}};
hJ[mt]=[xs];var qh=function(){};
_.C(qh,xR);qh.prototype.getApiPaths=function(){return N4h};
qh.prototype.getExtension=function(S){return _.Y(S,_.F6h)};
qh.prototype.JSC$11043_buildRequest=function(S,c){c.feedbackData&&(S.feedbackData=c.feedbackData);c.params&&(S.itemParams=c.params)};
_.Rh.Object.defineProperties(qh.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Tl=function(){};
_.C(Tl,xR);Tl.prototype.getApiPaths=function(){return Kyd};
Tl.prototype.getExtension=function(S){return _.Y(S,B2d)};
Tl.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.payments_payload&&(S.paymentsPayload=Q.payments_payload);Q.offer_params&&(S.offerParams=Q.offer_params);c.transactionParams&&(S.transactionParams=c.transactionParams)};var wf=function(){};
_.C(wf,xR);wf.prototype.getApiPaths=function(){return $cu};
wf.prototype.getExtension=function(S){return _.Y(S,_.ICh)};
wf.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.buybucketParams&&(S.buybucketData={params:c.buybucketParams},c.stickerParams?S.buybucketData.stickerParams=c.stickerParams:(Q.rich_chat_message?S.buybucketData.richChatMessage=Q.rich_chat_message:Q.chat_message_text&&(S.buybucketData.chatMessageText=Q.chat_message_text),Q.purchase_price_micros&&(S.buybucketData.purchasePriceMicros=Q.purchase_price_micros.toString())));c.donationAmountMicros&&(S.tipAmountMicros=c.donationAmountMicros,
c.tipParams&&(S.tipParams=c.tipParams));c.offerParams&&(S.offerParams=c.offerParams);c.productData&&(S.productData=c.productData);c.transactionParams&&(S.transactionParams=c.transactionParams)};var sD=function(){};
_.C(sD,xR);sD.prototype.getApiPaths=function(){return ulp};
sD.prototype.getExtension=function(S){return _.Y(S,N2e)};
sD.prototype.JSC$11043_buildRequest=function(S,c){c.updateFopParams&&(S.updateFopParams=c.updateFopParams)};var Mh=function(){};
_.C(Mh,xR);Mh.prototype.getApiPaths=function(){return jQJ};
Mh.prototype.getExtension=function(S){return _.Y(S,_.aC)};
Mh.prototype.JSC$11043_buildRequest=function(S,c){c.couponCode&&(S.couponCode=c.couponCode);c.params&&(S.itemParams=c.params)};var i_=function(){};
_.C(i_,xR);i_.prototype.getApiPaths=function(){return lpl};
i_.prototype.getExtension=function(S){return _.Y(S,_.Ecs)};
i_.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;c.params&&(S.params=c.params);Q.ctk&&(S.clientToken=Q.ctk)};var ZH=function(S){this.JSC$16037_storeWithEntities=S};
_.C(ZH,xR);ZH.prototype.getApiPaths=function(){return YLd};
ZH.prototype.getExtension=function(S){return _.Y(S,_.rx)};
ZH.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.purchase_price_micros&&(S.productData={pdgData:{purchasePriceMicros:Q.purchase_price_micros.toString()}},Q.rich_chat_message&&(S.productData.pdgData.richChatMessage=Q.rich_chat_message),Q.currency_code&&(S.productData.pdgData.currencyCode=Q.currency_code));c.transactionParams&&(S.transactionParams=c.transactionParams);c.clientLocationContext&&(S.clientLocationContext=c.clientLocationContext);Q.payments_payload&&(S.paymentsPayload=Q.payments_payload);
Q.funds_guarantee_callback_client_data&&(S.fundsGuaranteeCallbackClientData=Q.funds_guarantee_callback_client_data);var f,U;Q=(f=this.JSC$16037_storeWithEntities)==null?void 0:(U=f.getState())==null?void 0:U.entities;if(c.entityKeys&&Q){f=[];c=_.A(c.entityKeys);for(U=c.next();!U.done;U=c.next()){var a=U.value;U=_.XT(a).entityType;if(a=_.FT(Q,U,a)){var X={};f.push((X[U]=a,X))}}S.entityMutationPayloads=f}};
ZH[mt]=[xs];var Gl=function(){};
_.C(Gl,xR);Gl.prototype.getApiPaths=function(){return Cvu};
Gl.prototype.getExtension=function(S){return _.Y(S,nAu)};
Gl.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;Q.backend_analytics&&(S.serializedBackendAnalyticsEvent=Q.backend_analytics);c.offerParams&&(S.offerParams=c.offerParams)};var WW=function(){};
_.C(WW,xR);WW.prototype.getApiPaths=function(){return jQJ};
WW.prototype.getExtension=function(S){return _.Y(S,n2T)};
WW.prototype.JSC$11043_buildRequest=function(S,c){c.params&&(S.itemParams=c.params)};var gf=function(){};
_.C(gf,xR);gf.prototype.getApiPaths=function(){return Hme};
gf.prototype.getExtension=function(S){return _.Y(S,_.mBJ)};
gf.prototype.JSC$11043_buildRequest=function(S,c,Q){Q.resume_time_ms&&(S.resumeTimeMs=Q.resume_time_ms);c.pauseParams&&(S.pauseParams=c.pauseParams)};var eY=function(){};
_.C(eY,xR);eY.prototype.getApiPaths=function(){return DcT};
eY.prototype.getExtension=function(S){return _.Y(S,_.bte)};
eY.prototype.JSC$11043_buildRequest=function(S,c,Q){Q=Q===void 0?{}:Q;Q.c&&(S.redeemCode=Q.c);Q.rd&&(S.riskData=Q.rd);Q.ctk&&(S.clientToken=Q.ctk)};var kW=function(){};
_.C(kW,xR);kW.prototype.getApiPaths=function(){return pJJ};
kW.prototype.getExtension=function(S){return _.Y(S,_.Sci)};
kW.prototype.JSC$11043_buildRequest=function(S,c){c.resumeParams&&(S.resumeParams=c.resumeParams)};var rf=function(S,c){this.clientName=S;this.defaultExpirationDelayMs=c};
rf.prototype.put=function(S,c){var Q=this,f;return _.O(function(U){f=Object.assign({},c.data);f.key=S;f.clientName=Q.clientName;f.expireTimestampMs===void 0&&(f.expireTimestampMs=(Math.round((0,_.Qk)())+Q.defaultExpirationDelayMs).toString());return U.return(Q.putInternal(S,f))})};
rf[mt]=[$X,CJ$];var xTd=function(){rf.apply(this,arguments);this.JSC$16067_responseStore=new Map};
_.C(xTd,rf);_.J=xTd.prototype;_.J.get=function(S){var c=this;return _.O(function(Q){return Q.return(O6(c,S))})};
_.J.putInternal=function(S,c){var Q=this,f,U,a;return _.O(function(X){f=Q.defaultExpirationDelayMs;c.expireTimestampMs&&(f=Number(c.expireTimestampMs)-Math.round((0,_.Qk)()),U=_.a6("mweb_override_response_store_expiration_ms"),U>0&&U<f&&(f=U));a=setTimeout(function(){Q.remove(S)},f);
Q.JSC$16067_responseStore.set(S,{entryData:c,timer:a});_.IN(X)})};
_.J.remove=function(S){var c=this;return _.O(function(Q){F0s(c,S);_.IN(Q)})};
_.J.removeAll=function(){var S=this;return _.O(function(c){S.JSC$16067_responseStore.forEach(function(Q){clearTimeout(Q.timer)});
S.JSC$16067_responseStore.clear();_.IN(c)})};
_.J.has=function(S){return!!this.JSC$16067_responseStore.get(S)};
_.J.getKeys=function(){return this.JSC$16067_responseStore.keys()};
var O6=function(S,c){if(S=S.JSC$16067_responseStore.get(c))return new _.Xd(S.entryData)},F0s=function(S,c){var Q=S.JSC$16067_responseStore.get(c);
Q&&(clearTimeout(Q.timer),S.JSC$16067_responseStore.delete(c))};var uOY;var YiY=function(S,c,Q){rf.call(this,S,c);this.token=Q};
_.C(YiY,rf);_.J=YiY.prototype;_.J.get=function(S){var c=this,Q,f;return _.O(function(U){return U.nextAddress==1?_.F(U,l7p(c.token),2):U.nextAddress!=3?(Q=U.yieldResult,_.F(U,Q.get("ResponseStore",[S,c.clientName]),3)):(f=U.yieldResult)?U.return(new _.Xd(f)):U.return(void 0)})};
_.J.putInternal=function(S,c){var Q=this,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,l7p(Q.token),2);f=U.yieldResult;return _.F(U,f.put("ResponseStore",c),0)})};
_.J.remove=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,l7p(c.token),2);Q=f.yieldResult;return f.return(Q.delete("ResponseStore",[S,c.clientName]))})};
_.J.removeAll=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,l7p(S.token),2);c=Q.yieldResult;return _.F(Q,b6_(c,IDBKeyRange.only(S.clientName)),0)})};
_.J.has=function(){throw Error("Xi");};_.df=new _.Sg("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Bsi=function(S){var c;this.stateTagsData=(c=S.responseContext)==null?void 0:c.stateTags},I1$=function(S){var c;
return((c=S.stateTagsData)==null?void 0:c.stateTagsModified)||[]};var njT;njT=function(S){this.JSC$16080_responseStore=S};
_.Lj=function(S,c,Q){if(!_.u("state_tags_killswitch")){var f=new Bsi(c);if(I1$(f).length>0){var U=S.JSC$16080_responseStore.getKeys();U=_.A(U);for(var a=U.next();!a.done;a=U.next()){a=a.value;var X=O6(S.JSC$16080_responseStore,a);if(X){var z=_.O9(X);a:{var x=void 0;X=I1$(f);z=((x=(new Bsi(z)).stateTagsData)==null?void 0:x.relevantStateTags)||[];x=_.A(z);for(z=x.next();!z.done;z=x.next())if(z=z.value,z.stateTag!=null&&X.includes(z.stateTag)&&z.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){X=
!0;break a}X=!1}X&&F0s(S.JSC$16080_responseStore,a)}}}}var I;f=(I=c.responseContext)==null?void 0:I.maxAgeSeconds;_.u("web_prefetch_riw_for_next_video")&&!f&&c.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(f=3600);Q&&f&&Number(f)>0&&(c=A8(c,f),S.JSC$16080_responseStore.put(Q,new _.Xd(c)))};
njT.prototype.handleResponse=function(S,c){if(!c)throw Error("Yi");var Q,f;c=(Q=c.config)==null?void 0:(f=Q.storeStrategy)==null?void 0:f.storeKey;_.Lj(this,S,c)};
njT[mt]=[_.Ad];_.$CZ=new _.Sg("STORE_RESPONSE_PROCESSOR_TOKEN");var brs=function(S){this.JSC$16083_responseStore=S};
brs.prototype.handleResponse=function(S,c){if(c.input.match(_.RB(duu))){var Q;if(S==null?0:(Q=S.entries)==null?0:Q.length)for(S=_.A(S.entries),c=S.next();!c.done;c=S.next()){Q=c.value.command;var f=void 0;c=(f=_.Y(Q,_.ll))==null?void 0:f.unserializedPrefetchData;if(!Q||!c)break;f=(new F0).JSC$11050_getStoreKey(Q);var U=_.Y(c,UYh),a=void 0,X=void 0,z=void 0,x=_.a6("web_shorts_prefetch_service_ttl_seconds")>0?_.a6("web_shorts_prefetch_service_ttl_seconds"):Number((z=(a=U)==null?void 0:(X=a.responseContext)==
null?void 0:X.maxAgeSeconds)!=null?z:3600);f&&x>0&&(U=A8(U,x),this.JSC$16083_responseStore.put(f,new _.Xd(U)));Q=(new bs).JSC$11050_getStoreKey(Q);c=_.Y(c,r1d);a=U=f=void 0;X=_.a6("web_shorts_prefetch_service_ttl_seconds")>0?_.a6("web_shorts_prefetch_service_ttl_seconds"):Number((a=(f=c)==null?void 0:(U=f.responseContext)==null?void 0:U.maxAgeSeconds)!=null?a:3600);Q&&X>0&&(c=A8(c,X),this.JSC$16083_responseStore.put(Q,new _.Xd(c)))}}};
brs[mt]=[_.Ad];var NsJ=function(S){this.innertubeTransportService=S};
NsJ[mt]=[_.M6];var K0d=new _.Sg("SUBMIT_API_SERVICE_TOKEN");var vW=function(){this.scheduler=_.TV()},$TJ;
vW.prototype.pause=function(){throw Error("Zi");};
vW.prototype.resume=function(){throw Error("Zi");};
vW.prototype.queue=function(S){var c=this,Q=_.L4(),f=_.HG(this.scheduler,function(){try{var U;if(_.BI.instance)var a=_.BI.instance;else{var X=new _.Yr("Error: Unexpected uninitialized CommandHandler.");_.sH(X);a=void 0}(U=a)==null||U.resolveCommand(S.command);Q.resolve()}catch(z){Q.reject(z)}});
Q.promise.thenCatch(function(U){U instanceof _.EI&&c.scheduler.cancelJob(f)});
return Q.promise};
vW.prototype.queueAll=function(S){var c=new Map;S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,c.set(Q.id,this.queue(Q));return c};var jwd=function(S,c){var Q=this;this.taskModel=S;this.onTaskCancelledCallback=c;this.resolver=_.L4();S=S.proto.prefetchConfig;if(!S)throw Error("$i");if(!S.prefetchAction)throw Error("aj");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(f){f instanceof _.EI&&(uXJ(Q,Q.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),Q.onTaskCancelledCallback(Q.taskModel.id,Q.jobId),Q.tick("pcc"));
throw f;});
this.timerName=this.taskModel.id;_.MD(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},l1l=function(S){switch(S.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},uXJ=function(S,c){_.sz({prefetchInfo:{cancellationReason:c}},S.timerName)};
jwd.prototype.tick=function(S){_.i2(S,void 0,this.timerName)};var LI=function(){var S=this;this.scheduler=_.TV();this.maxInflightTasks=_.a6("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.a6("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new WSp;this.onTaskCancelled=function(c,Q){Q&&S.scheduler.cancelJob(Q);Yop(S,c);PW(S,3)}},C6z=function(){LI.instance||(LI.instance=new LI);
return LI.instance};
LI.prototype.pause=function(){this.prefetchCoordinatorState=0};
LI.prototype.resume=function(){PW(this,0)};
LI.prototype.queue=function(S){S=Hrd(this,S);PW(this,1);return S};
LI.prototype.queueAll=function(S){var c=new Map;S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,c.set(Q.id,Hrd(this,Q));PW(this,1);return c};
var Hrd=function(S,c){var Q=S.allPrefetchTasks.get(c.id);if(Q)return Q.cancellablePromise;try{var f=new jwd(c,S.onTaskCancelled)}catch(a){return _.pv(a)}Q=f;Q.tick("pcq");var U={prefetchInfo:{taskId:Q.taskModel.id,isPrefetch:!0,fetchAction:Q.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:Q.taskModel.command.clickTrackingParams}};Q.taskModel.csn&&(U.clientScreenNonce=Q.taskModel.csn);_.sz(U,Q.timerName);S.allPrefetchTasks.set(c.id,f);S.drainingHeap.insert(-l1l(f),f);return f.cancellablePromise},
PW=function(S,c){S.prefetchCoordinatorState===c&&(S.prefetchCoordinatorState=2,DTl(S))},DTl=function(S){for(var c={};S.prefetchCoordinatorState!==0;c={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(S.inflightPrefetchTasks.size>=S.maxInflightTasks){S.prefetchCoordinatorState=3;break}c.prefetchTask$jscomp$1=S.drainingHeap.remove();if(!c.prefetchTask$jscomp$1){S.prefetchCoordinatorState=1;break}c.taskId$jscomp$3=c.prefetchTask$jscomp$1.taskModel.id;if(S.allPrefetchTasks.has(c.taskId$jscomp$3)){var Q=-1;S.coordinatorTimeoutMs>0&&(Q=_.HG(S.scheduler,function(f){return function(){ED(S,f.taskId$jscomp$3,Error("bj"))}}(c),S.coordinatorTimeoutMs));
S.inflightPrefetchTasks.set(c.taskId$jscomp$3,Q);if(!S.JSC$16101_commandHandler){if(!_.BI.instance){ED(S,c.taskId$jscomp$3,Error("cj"));continue}S.JSC$16101_commandHandler=_.BI.instance}a:switch(c.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":Q=1;break a;default:Q=0}c.prefetchTask$jscomp$1.jobId=S.scheduler.addJob(function(f){return function(){f.prefetchTask$jscomp$1.tick("pcr");try{S.JSC$16101_commandHandler.resolveCommand(f.prefetchTask$jscomp$1.taskModel.command)||
ED(S,f.taskId$jscomp$3,Error("dj"))}catch(U){ED(S,f.taskId$jscomp$3,U)}}}(c),Q,0)}}},pPd=function(S,c){(c=Yop(S,c))!=null&&(c.resolver.resolve(),c.tick("pce"));
PW(S,3)},ED=function(S,c,Q){(c=Yop(S,c,Q))!=null&&(c.resolver.reject(Q),c.tick("pcc"),uXJ(c,"CANCELLATION_REASON_ERROR"),Math.random()<=_.a6("prefetch_coordinator_error_logging_sampling_rate")&&(Q=new _.Yr("Prefetch Command failed.",c.taskModel.id,Q.message),_.sH(Q)));
PW(S,3)},Yop=function(S,c,Q){var f=S.allPrefetchTasks.get(c);
f?((Q=S.inflightPrefetchTasks.get(c))&&Q!==-1&&S.scheduler.cancelJob(Q),S.inflightPrefetchTasks.delete(c),S.allPrefetchTasks.delete(c)):_.i5(new _.Yr("Unexpected missing prefetch task when deleting task.",c,Q==null?void 0:Q.message));return f};var hvd=function(S,c,Q,f,U){this.id=S;this.triggerOn=c;this.cancelOn=Q;this.command=f;this.proto=U};
_.Rh.Object.defineProperties(hvd.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var qol=function(){this.JSC$16106_prefetchCoordinator=C6z();$TJ||($TJ=new vW);this.defaultCoordinator=$TJ},Tsi;
qol.getInstance=function(){Tsi||(Tsi=new qol);return Tsi};
qol.prototype.get=function(S){switch(S){case 0:return this.JSC$16106_prefetchCoordinator;default:return this.defaultCoordinator}};var tJ=function(){this.coordinatorSupplier=qol.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},MOH=function(S){var c=_.wN()||void 0,Q=Object.keys(wPT)[0];
if(Q){var f=S.taskIdByTriggerId.get(Q);if(f!=null){S.taskIdByTriggerId.delete(Q);Q=[];f=_.A(f);for(var U=f.next();!U.done;U=f.next())if(U=S.tasks.get(U.value))c!=="UNDEFINED_CSN"&&(U.csn=c),Q.push(U);Q=DAZ(Q);c=[];Q=_.A(Q);for(f=Q.next();!f.done;f=Q.next()){U=_.A(f.value);f=U.next().value;U=U.next().value;f=S.coordinatorSupplier.get(f).queueAll(U);f=_.A(f);var a=f.next();for(U={};!a.done;U={taskId$jscomp$9:void 0},a=f.next()){var X=_.A(a.value);a=X.next().value;X=X.next().value;U.taskId$jscomp$9=
a;a=X;c.push(U.taskId$jscomp$9);S.queuedPromisesByTask.set(U.taskId$jscomp$9,_.p0(a,function(z){return function(){swH(S,z.taskId$jscomp$9)}}(U)))}}}}else _.i5(new _.Yr("Unexpected malformed TriggerEvent."))};
tJ.prototype.trigger=function(S,c){var Q=this,f=this.tasks.get(S);if(!f||this.queuedPromisesByTask.has(S))return!1;irz(this,S,f.triggerOn);c!=="UNDEFINED_CSN"&&(f.csn=c);c=this.coordinatorSupplier.get(f.taskType).queue(f);this.queuedPromisesByTask.set(S,_.p0(c,function(){swH(Q,S)}));
return!0};
tJ.prototype.cancel=function(S){var c=this.queuedPromisesByTask.get(S);if(c)c.cancel();else return swH(this,S)};
var swH=function(S,c){S.queuedPromisesByTask.delete(c);var Q=S.tasks.get(c);if(!Q)return!1;S.tasks.delete(c);irz(S,c,Q.triggerOn);(Q=HAz(Q.cancelOn))&&(S=S.taskIdByCancelId.get(Q))&&S.delete(c);return!0},irz=function(S,c,Q){(Q=Object.keys(Q)[0])&&(S=S.taskIdByTriggerId.get(Q))&&S.delete(c)};var wPT={taskRegistered:{}},VC=function(){tJ.instance||(tJ.instance=new tJ);this.JSC$16115_taskManager=tJ.instance};
_.C(VC,gi);
VC.prototype.resolveCommand=function(S){var c=this,Q,f;return _.O(function(U){Q=_.Y(S,Jpz);if((f=Q)==null||!f.tasks){var a=new _.Yr("RegisterTasksCommand is missing tasks.");_.sH(a);return U.return()}a=c.JSC$16115_taskManager;for(var X=_.A(Q.tasks),z=X.next();!z.done;z=X.next())if(z=z.value,z=z.id&&z.triggerOn&&z.cancelOn&&z.command?new hvd(z.id,z.triggerOn,z.cancelOn,z.command,z):void 0,z){var x=Object.keys(z.triggerOn)[0];if(x){var I=HAz(z.cancelOn);I?(a.tasks.set(z.id,z),a.taskIdByTriggerId.has(x)||a.taskIdByTriggerId.set(x,
new Set),a.taskIdByTriggerId.get(x).add(z.id),a.taskIdByCancelId.has(I)||a.taskIdByCancelId.set(I,new Set),a.taskIdByCancelId.get(I).add(z.id)):_.i5(new _.Yr("Unexpected malformed cancelOn field."))}else _.i5(new _.Yr("Unexpected malformed triggerOn field."))}else _.i5(new _.Yr("Unexpected malformed Task proto."));MOH(c.JSC$16115_taskManager);_.IN(U)})};var Zre={},Gis=(Zre.rendered={priority:0,callback:function(){var S={};S.numCpu=navigator.hardwareConcurrency;var c={};c.ramGb=_.QY.navigator.deviceMemory;var Q={staticContext:{}};c.ramGb&&phz(c.ramGb)&&(Q.staticContext.memoryTotalKbytes=(c.ramGb*1048576).toString());S.numCpu&&phz(S.numCpu)&&(Q.staticContext.cpuCores=S.numCpu);if(_.u("web_enable_adaptive_appl_signal")){S={};c=_.W2("rses_dpj");var f=_.W2("rsef_dpj");c&&c>0&&f&&f>0&&(c=Math.ceil(f-c),c>0&&(S.loadLatency=c));S.loadLatency&&phz(S.loadLatency)&&
(Q.appL=S.loadLatency.toString())}_.Te("applicationStarted",Q)}},Zre);var W0T=new _.Sg("WINDOW_ON_ERROR"),gjT=new _.Sg("ERROR_WEIGHT_MAPS"),evi=new _.Sg("INIT_ERROR");var kid={},rCe=(kid.initialized={priority:10,callback:function(S){S.injector.resolve(evi)()}},kid);var dTu=function(){},vjd=function(){var S=_.rC("meta_logger_impl");
S||(S=new dTu,_.m5("meta_logger_impl",S));return S},P6e=function(){vjd().csiSubscriptionKey=nyT("meta_logging_csi_event",function(S){var c=S.timerName;
if(S=S.timelineData){_.MD(c,{startTime:S.startTime},c);S.infos&&_.sz(S.infos,c);for(var Q=_.A(Object.keys(S.ticks)),f=Q.next();!f.done;f=Q.next())f=f.value,_.i2(f,S.ticks[f],c)}})};
dTu.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&KMT(this.csiSubscriptionKey)};var L0$={},Ej_=(L0$.initialized={priority:10,callback:function(){P6e()}},L0$);var tO_=function(S,c){this.innertubeClientName=S;this.JSC$16131_prefCookie=c};
tO_.prototype.record=function(){if(_.u("web_li_record_binary_eval_tick")){var S=_.W2("rsef_dpj");var c=_.W2("rses_dpj");S=S!==void 0&&c!==void 0?Math.round(S-c):void 0;if(S!==void 0&&S>0){c=_.Bb(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var Q=this.poolSize;if(!(c.valuesSeen>=1E9)){if(c.valuesSample.length<Q)c.valuesSample.push(S);else{var f=Math.floor(Math.random()*(c.valuesSeen+1));f<Q&&(c.valuesSample[f]=S)}c.valuesSeen+=1}_.F6(this.storagePrefix+"-"+this.innertubeClientName,
c,2592E3);S=c.valuesSample;c=hGT(S);S=S.length<5?void 0:c<400?1:c<1700?2:3;S!==void 0&&(this.JSC$16131_prefCookie.set(this.cookiePrefix+this.innertubeClientName,S),this.JSC$16131_prefCookie.save())}}else _.It(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$16131_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$16131_prefCookie.save()};
tO_[mt]=[$X,V6];var VOd=function(){tO_.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.C(VOd,tO_);var Rv_=new _.Sg("PAGE_LOAD_TIME_TOKEN");var yCh=new _.Sg("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var RE=function(S,c){this.JSC$16154_storeWithEntities=S;this.JSC$16154_commandHandler=c;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
RE.prototype.start=function(){this.JSC$16154_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
RE.prototype.observeDownloadingEntities=function(){var S=_.lVT(this.JSC$16154_storeWithEntities.getState().entities).map(function(f){return Y$H(f)});
if(S.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var c={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:WTo()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.fK(_.K8("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$16154_commandHandler.resolveCommand(c)}this.downloadingEntities=S}else if(this.downloadingEntities.length){var Q=j7Y(this.JSC$16154_storeWithEntities.getState().entities).map(function(f){return Y$H(f)});
this.downloadingEntities.filter(function(f){return Q.includes(f)}).length&&(S={openPopupAction:xAZ()},this.JSC$16154_commandHandler.resolveCommand(S));
this.downloadingEntities=[]}};
RE[mt]=[xs,_.U8];var ojd;_.yC=function(S,c,Q,f,U,a,X,z){this.JSC$16157_playerApiPromise=S;this.JSC$16157_commandHandler=c;this.JSC$16157_screenManager=Q;this.offlineWebClientEligibility=f;this.JSC$16157_prefStorage=U;this.JSC$16157_actionRouter=a;this.entityTypeMap=X;this.JSC$16157_persistentStorePromiseAccessor=z;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
ojd=function(){var S=_.fl().resolve(_.yC),c;_.O(function(Q){if(Q.nextAddress==1)return S.downloadFailureListenerBound?Q.return():_.F(Q,S.JSC$16157_playerApiPromise,2);c=Q.yieldResult;c.addEventListener("onOfflineOperationFailure",function(f){if(f.failureReason&&f.entityKey&&f.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(f.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var U=_.XT(f.entityKey).entityId;U&&S.JSC$16157_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
U)}else if(_.u("kevlar_woffle")){U=S.JSC$16157_commandHandler;var a=U.resolveCommand;f=f.failureReason;var X=_.K8("TRANSFER_FAILED",void 0,"Download failed");f==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(X=_.K8("STORAGE_FULL",void 0,"Storage full"));a.call(U,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.fK(X),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
S.downloadFailureListenerBound=!0;_.IN(Q)})};
_.yC.prototype.deleteVideo=function(S,c){var Q=this,f,U,a;return _.O(function(X){if(X.nextAddress==1)return _.F(X,Q.JSC$16157_playerApiPromise,2);f=X.yieldResult;a={offlineLoggingData:{offlineDeleteReason:(U=c)!=null?U:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.F(X,f.queueOfflineAction(S,Q.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",a),0)})};
_.yC.prototype.pauseVideoDownload=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.JSC$16157_playerApiPromise,2);Q=f.yieldResult;Q.pauseVideoDownload(S);_.IN(f)})};
_.yC.prototype.resumeVideoDownload=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.JSC$16157_playerApiPromise,2);Q=f.yieldResult;return _.F(f,Q.resumeVideoDownload(S),0)})};
_.yC[mt]=[_.J8,_.U8,_.Dp,yCh,m7,yo,wC$,nM];var mTp=new _.Sg("DOWNLOAD_STATE_STORE_TOKEN");var ST1=function(S,c){this.JSC$16177_persistentStorePromiseAccessor=S;this.store=c;this.upliftCompletionResolver=new _.O_},fZO=function(){var S=_.fl().resolve(cZV),c;
_.O(function(Q){switch(Q.nextAddress){case 1:if(S.upliftImplPromise)return Q.return(S.upliftImplPromise);_.X1(Q,2);S.upliftImplPromise=QHE(S);return _.F(Q,S.upliftImplPromise,4);case 4:S.upliftCompletionResolver.resolve();_.Pi(Q,3);break;case 2:throw c=_.Bs(Q),S.upliftCompletionResolver.reject(c),c;case 3:return Q.return(S.upliftImplPromise)}})},QHE=function(S){var c,Q,f;
return _.O(function(U){switch(U.nextAddress){case 1:return _.gC("LOGGED_IN")?_.F(U,S.JSC$16177_persistentStorePromiseAccessor(),2):U.return();case 2:c=U.yieldResult;if(!c)return _.i2("vdeur"),U.return();_.i2("vdeus");_.X1(U,3);return _.F(U,UrZ(c),5);case 5:Q=U.yieldResult;S.store.dispatch(T6Z(Q));c.observe(function(a){wER(S.store,a)});
_.Pi(U,4);break;case 3:throw f=_.Bs(U),_.i2("vdeur"),f;case 4:_.i2("vdeuc"),_.IN(U)}})},UrZ=function(S){var c;
return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,ZAo(S),2);c=Q.yieldResult;return Q.return(c.reduce(function(f,U){if(!U.data||!U.key||!U.entityType)return f;f[U.entityType]||(f[U.entityType]={});f[U.entityType][U.key]=U.data;return f},{}))})};
ST1[mt]=[nM,_.kR];var cZV;cZV=new _.Sg("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.oE=new _.Sg("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var mj=function(S,c){this.JSC$16180_persistentStorePromiseAccessor=S;this.transportService=c};
mj.prototype.refresh=function(){var S=this,c,Q,f,U;return _.O(function(a){if(a.nextAddress==1)return _.gC("LOGGED_IN")?_.F(a,S.JSC$16180_persistentStorePromiseAccessor(),2):a.return();if(a.nextAddress!=3)return(c=a.yieldResult)?_.F(a,NAY(c),3):a.return();if((Q=a.yieldResult)&&!(Number(Q.data.refreshTimestampMs||0)<(0,_.Qk)()))return a.return();f={browseId:"SPaccount_downloads"};U=_.RB(c$);_.ZC(S.transportService,f,U).then(function(X){var z;if(c&&(X==null?void 0:(z=X.responseContext)==null?void 0:
z.maxAgeSeconds)!==0){var x;z=(X==null?void 0:(x=X.responseContext)==null?void 0:x.maxAgeSeconds)||604800;x=String(Math.floor((0,_.Qk)())+z*1E3);c.put("service:downloads_settings:fallback",new _.Xd({innertubeResponse:X,refreshTimestampMs:x}))}});
_.IN(a)})};
mj[mt]=[_.df,_.M6];var SZ=function(S,c){this.JSC$16184_playerPromise=S;this.store=c;this.started=!1};
SZ.prototype.start=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return S.started?Q.return():_.F(Q,S.JSC$16184_playerPromise,2);c=Q.yieldResult;c.addEventListener("onOrchestrationBecameLeader",S.updateIsLeader.bind(S,!0));c.addEventListener("onOrchestrationLostLeader",S.updateIsLeader.bind(S,!1));if(c.isOrchestrationLeader)S.updateIsLeader(c.isOrchestrationLeader());else{var f=new _.Yr("Function isOrchestrationLeader is undefined",{"player.isReady":c.isReady(),"player.playVideo":c.playVideo?
"defined":"undefined"});_.sH(f);S.updateIsLeader(!1)}S.started=!0;_.IN(Q)})};
SZ.prototype.updateIsLeader=function(S){this.store.dispatch(_.aB({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:S}}))};
SZ[mt]=[_.J8,_.kR];var JZ1=function(S,c){this.networkStatusManager=S;this.JSC$16187_prefStoragePromise=c;this.redirectsToPreload=["https://youtube.com"]},aZE=function(){var S=_.fl().resolve(JZ1),c,Q,f,U,a,X;
_.O(function(z){switch(z.nextAddress){case 1:return _.F(z,S.JSC$16187_prefStoragePromise,2);case 2:c=z.yieldResult;if(!(Q=c)){z.jumpTo(3);break}return _.F(z,c.get("yt-redirect-prefetch-id"),4);case 4:Q=z.yieldResult;case 3:if(Q||!S.networkStatusManager.isNetworkAvailable())return z.return();f={cache:"reload",redirect:"manual"};U=_.A(S.redirectsToPreload);a=U.next();case 5:if(a.done){if(!c){z.jumpTo(0);break}return _.F(z,c.set("yt-redirect-prefetch-id",!0,86400),0)}X=a.value;_.X1(z,8);return _.F(z,
_.QY.fetch(X,f),10);case 10:_.Pi(z,6);break;case 8:_.Bs(z);case 6:a=U.next(),z.jumpTo(5)}})};var cp=function(S){S?(this.container=S,this.containerWasInjected=!0):this.containerWasInjected=!1};
cp.prototype.openDialog=function(S,c,Q){var f=this,U;return _.O(function(a){(U=f.container)==null||U.openDialog(S,c,Q);_.IN(a)})};
cp.prototype.closeDialog=function(){var S=this,c;return _.O(function(Q){(c=S.container)==null||c.closeDialog();_.IN(Q)})};
cp.prototype.isDialogOpen=function(){var S=this,c,Q;return _.O(function(f){return f.return((Q=(c=S.container)==null?void 0:c.isDialogOpen())!=null?Q:!1)})};
cp[mt]=[_.QS(xhJ)];_.AZ8=new _.Sg("POPUP_CONTROLLER_TOKEN");var Xc2=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
Xc2.prototype.registerPanel=function(S,c){if(S){this.panelMap.set(S,c);var Q=this.pendingPanelResolvers.get(S);Q&&(Q.resolve(c),this.pendingPanelResolvers.delete(S))}};
Xc2.prototype.getPanel=function(S){var c=this,Q;return _.O(function(f){return(Q=c.panelMap.get(S))?f.return(Q):f.return(OzU(c,S))})};
var OzU=function(S,c){var Q,f;return _.O(function(U){if(Q=S.pendingPanelResolvers.get(c))return U.return(Q.promise);f=new _.O_;S.pendingPanelResolvers.set(c,f);return U.return(f.promise)})},zR0=function(S){Xc2.call(this);
var c=this;this.popupController=S;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return c.panelMap.size}}};
_.C(zR0,Xc2);_.J=zR0.prototype;_.J.getReloadContinuation=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.getPanel(S),2);Q=f.yieldResult;return f.return(Q.getReloadContinuation())})};
_.J.showPanel=function(S,c,Q,f,U,a,X){var z=this,x,I,n,b;return _.O(function(N){if(N.nextAddress==1){X&&z.updatePanelContinuationDatas.set(S,X);if((x=Q)==null?0:(I=x.engagementPanelPopupPresentationConfig)==null?0:I.popupType){n=Q.engagementPanelPopupPresentationConfig.popupType;U===void 0&&(U=document.body);var l=N.return,H=z.popupController,q=H.openPopup;a:switch(n){case "PANEL_POPUP_TYPE_DIALOG":var w="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":w="DROPDOWN";break a;default:throw Error("fj`"+
n);}return l.call(N,q.call(H,S,c,w,U))}return _.F(N,z.getPanel(S),2)}b=N.yieldResult;(c||a)&&b.updatePanel(c,!1,f,a);b.showPanel(f);_.IN(N)})};
_.J.hidePanel=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,c.getPanel(S),2);Q=f.yieldResult;Q.hidePanel();c.popupController.closePopup(S);_.IN(f)})};
_.J.isVisible=function(S,c){var Q=this,f;return _.O(function(U){if(U.nextAddress==1)return c&&!Q.panelMap.has(S)?U.return(!1):_.F(U,Q.getPanel(S),2);f=U.yieldResult;return U.return(f.isVisible())})};
_.J.updatePanel=function(S,c,Q,f,U,a){Q=Q===void 0?!1:Q;var X=this,z;return _.O(function(x){if(x.nextAddress==1){if(!c&&!U)return x.return();a&&X.updatePanelContinuationDatas.set(S,a);return _.F(x,X.getPanel(S),2)}z=x.yieldResult;z.updatePanel(c,Q,f,U);_.IN(x)})};
_.J.registerPanelContent=function(S,c){S&&this.panelContentMap.set(S,c)};
_.J.getPanelContent=function(S){return this.panelContentMap.get(S)};
_.J.getUpdatePanelContinuationData=function(S){return this.updatePanelContinuationDatas.get(S)};
zR0[mt]=[_.AZ8];var QD=function(S,c){this.innertubeTransportService=S;this.JSC$16203_screenManager=c},xrT=function(S){var c;
return!((c=S.panelLoadingStrategy)==null||!c.requestTemplate)};
QD.prototype.makeRequest=function(S){var c=this,Q,f;return _.O(function(U){switch(U.nextAddress){case 1:if(!xrT(c)){U.jumpTo(2);break}_.X1(U,3);return _.F(U,_.P3(c.innertubeTransportService,S),5);case 5:return Q=U.yieldResult,Q?U.return(Q.content):(_.sH(Error("gj")),U.return(void 0));case 3:f=_.Bs(U),_.sH(f);case 2:return U.return(void 0)}})};
QD.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
QD.prototype.execute=function(S){var c=this,Q,f,U,a,X,z,x,I,n,b;return _.O(function(N){if(N.nextAddress==1){Q=S;f=Q.data;U=Q.fallbackVe;a=Q.parentVe;X=Q.createScreenConfig;z=Q.renderFn;x=Q.command;c.panelLoadingStrategy=f;var l,H,q=((l=c.panelLoadingStrategy)==null?0:l.screenVe)?(H=c.panelLoadingStrategy)==null?void 0:H.screenVe:U;q&&_.X2(c.JSC$16203_screenManager,q,a,X);return(I=c.getContent())?_.F(N,z(I),2):N.jumpTo(2)}return N.nextAddress!=4?xrT(c)?_.F(N,c.makeRequest(x),4):N.return():(b=n=N.yieldResult)?
_.F(N,z(b),0):N.return()})};
QD[mt]=[_.M6,_.Dp];var fp=function(){};
fp.prototype.getContainer=function(){return _.f8()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
fp.prototype.openSheet=function(S,c){var Q=this,f,U,a,X,z,x;return _.O(function(I){switch(I.nextAddress){case 1:return f={stack:[],error:void 0,hasError:!1},_.X1(I,2,3),U=Sd,_.F(I,Q.isSheetOpen(),5);case 5:a=I.yieldResult;ftc(f,pYc(U));if(a){if(c&&Q.currentTarget===c)return(X=Q.getContainer())==null||X.closeSheet(),I.return();Q.pendingData={data:S,target:poH(Q,c)};return I.return()}S.viewModel&&(S={viewModel:S.viewModel});(z=Q.getContainer())==null||z.openSheet(S,c);Q.currentTarget=c;case 3:_.O7(I);
UlH(f);_.F1(I,0);break;case 2:x=_.Bs(I),f.error=x,f.hasError=!0,I.jumpTo(3)}})};
fp.prototype.closeSheet=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,(c=S.getContainer())==null?void 0:c.closeSheet(),2);if(Q.nextAddress!=4)return S.currentTarget=void 0,S.pendingData?_.F(Q,S.openSheet(S.pendingData.data,S.pendingData.target),4):Q.jumpTo(0);S.pendingData=void 0;_.IN(Q)})};
fp.prototype.isSheetOpen=function(){var S=this,c,Q;return _.O(function(f){return f.return((Q=(c=S.getContainer())==null?void 0:c.isSheetOpen())!=null?Q:!1)})};
var poH=function(S,c){if(!_.u("web_parent_target_for_sheets"))return c;var Q,f;return(f=(Q=S.getContainer())==null?void 0:Q.getParentTarget(c))!=null?f:c};var Fq=window.documentPictureInPicture;var tip=_.oK(["dark"]),Viz=_.oK(["system-icons"]),RGx=_.oK(["typography"]),yFc=_.oK(["lang"]),o6T=_.oK(["style"]),v6p=_.oK(["dir"]),PTM=_.oK(["rounded-container"]),LgT=_.oK(["style"]),Ssc=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],U3=function(S){this.JSC$16215_clientRoot=S;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
U3.prototype.openWindow=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1)return window.documentPictureInPicture&&_.Tz()&&!c.currentPipWindow?_.F(U,(Q=Fq?Fq:null)==null?void 0:Q.requestWindow(S),2):U.return(!1);if(U.nextAddress!=3){f=U.yieldResult;if(!f)return U.return(!1);f.addEventListener("pagehide",function(){FpE(c)});
f.addEventListener("resize",c.handlePipWindowResize);c.pipWindowResizeDelay=new _.mG(function(){c.currentPipWindow&&_.XF(c.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.xh(c.currentPipWindow.innerWidth,c.currentPipWindow.innerHeight)])},f);
mAp(f);QUc(f);return _.F(U,dAo(f),3)}if(!eGM())return U.return(!1);c.currentPipWindow=f;c.JSC$16215_eventForwarder=cVp(f,c.JSC$16215_clientRoot);c.pipWindowResizeDelay.start();return U.return(!0)})};
U3.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var FpE=function(S){if(S.currentPipWindow){var c,Q;(c=Fq?Fq:null)==null||(Q=c.window)==null||Q.close();S.currentPipWindow.removeEventListener("resize",S.handlePipWindowResize);var f;(f=S.pipWindowResizeDelay)==null||f.dispose();S.pipWindowResizeDelay=void 0;var U;(U=S.JSC$16215_eventForwarder)==null||U.stop();S.JSC$16215_eventForwarder=void 0;c=_.A(S.onCloseCallbacks);for(Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q();S.onCloseCallbacks=[];S.currentPipWindow=null}};
U3.prototype.getWindow=function(){return this.currentPipWindow};
var BpT=function(S,c){var Q;(Q=S.onCloseCallbacks)==null||Q.push(c)};
U3.prototype.pictureInPictureSupported=function(){return!!window.documentPictureInPicture&&_.Tz()};
_.Rh.Object.defineProperties(U3.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
U3[mt]=[wSz];var IZO=new _.Sg("PICTURE_IN_PICTURE_CONTROLLER");var fDT=function(S,c){this.lengthY=this.lengthX=0;this.lengthX=c.x-S.x;this.lengthY=c.y-S.y};var nYg=function(){},wod=function(S,c){var Q;
(Q=S.headerElement)==null||Q.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:c}))};var bzT=function(){};
bzT.prototype.openPopup=function(S,c,Q,f){var U=this,a;return _.O(function(X){if(!U.container)return X.return();a={openPopupAction:{popup:c,popupType:Q,uniqueId:S}};return X.return(U.container.handleOpenPopupAction(a,f))})};
bzT.prototype.closePopup=function(S){this.container&&this.container.closePopup(S)};var Npp=function(){this.openTunnels=new Map},IdY=function(S,c,Q){if(OHT(Q)){var f=_.v1(Q,"gclid");
Q={handleEvent:function(z){c&&!c.closed&&typeof c.postMessage==="function"&&z&&z.origin&&z.source===c&&z.data&&z.data.action==="gcl_setup"&&c.postMessage(Object.assign({},{action:"gcl_transfer"},f&&{gclid:f},{gadSource:2}),z.origin)}};
for(var U=_.A(S.openTunnels),a=U.next();!a.done;a=U.next()){var X=_.A(a.value);a=X.next().value;X=X.next().value;if(a.closed)try{window.removeEventListener("message",X),S.openTunnels.delete(a)}catch(z){_.sH(z)}}c&&S.openTunnels.size<15&&(S.openTunnels.set(c,Q),window.addEventListener("message",Q))}};var KpU=function(){this.clientParams=new Map},i_J=function(S){for(var c=_.A(S.clientParams.keys()),Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.startsWith("yt-mini-app-share")&&S.clientParams.delete(Q)};var $r2=function(S,c){_.C9.call(this);var Q=this;this.shortsController=S;this.storeWithShorts=c;S=_.Kt(this.storeWithShorts,_.G2Z,function(f){if(f){var U,a=(U=Q.shortsController.getRoot())==null?void 0:U.getPlayer(),X;(U=(X=Q.shortsController.alternativePlayerContainerElement)==null?void 0:X.getPlayerContainer())&&(a==null||a.appendTo(U))}else{var z;X=(z=Q.shortsController.alternativePlayerContainerElement)==null?void 0:z.getPlayerContainer().querySelector("#player");U=Q.shortsController.activeIndex;
(z=(a=Q.shortsController.getRoot())==null?void 0:a.querySelector('ytd-reel-video-renderer[id="'+U+'"] #player-container'))&&(X==null||X.appendTo(z,void 0,!0))}});
this.addOnDisposeCallback(S)};
_.C($r2,_.C9);var JD=function(S,c,Q,f,U){var a=this;this.storeWithShorts=S;this.ephemeralResponseStore=c;this.store=Q;this.innertubeTransportService=f;this.innertubeTransportLoader=U;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.Gs(_.KD);this.isShortsPipActive=_.Gs(_.$u);this.nextReelVe=_.qo(56921);this.prevReelVe=_.qo(56922);this.backButtonVe=_.qo(22156);this.TEST_ONLY={getActiveModules:function(){return a.activeModules}}},Wh_,g9$,uo8;
JD.prototype.initOrDisposeActiveModules=function(S){S?this.activeModules.push(new $r2(this,this.storeWithShorts)):(_.oq(this.activeModules),this.activeModules.length=0)};
JD.prototype.getRoot=function(){return this.rootElement};
JD.prototype.setActiveIndex=function(S){this.activeIndex=S};
_.wez=function(S,c){var Q,f,U,a,X,z,x;return _.O(function(I){switch(I.nextAddress){case 1:return Q=new F0,(f=Q.JSC$11050_getStoreKey(c))&&S.ephemeralResponseStore.has(f)?_.F(I,S.ephemeralResponseStore.get(f),7):_.F(I,uo8(S,c),4);case 4:U=I.yieldResult;if(!f){I.jumpTo(3);break}a=A8(U,3600);return _.F(I,S.ephemeralResponseStore.put(f,new _.Xd(a)),3);case 7:U=(X=I.yieldResult)==null?void 0:_.O9(X);case 3:return((z=U)==null?0:z.replacementEndpoint)&&(x=_.Y(U.replacementEndpoint,_.ll))&&U.sequenceContinuation&&
(x.sequenceParams=U.sequenceContinuation),I.return(U)}})};
Wh_=function(S,c){c=(new BW).JSC$11050_getStoreKey(c);return!!c&&S.ephemeralResponseStore.has(c)};
g9$=function(S,c,Q){var f,U,a,X,z;_.O(function(x){if(x.nextAddress==1){f=new BW;U=f.JSC$11050_getStoreKey(c);if(!U)return x.return();if(Q.reelWatchSequenceResponse)return a=A8(Q.reelWatchSequenceResponse,3600),S.ephemeralResponseStore.put(U,new _.Xd(a)),x.jumpTo(0);if(!S.ephemeralResponseStore.has(U))return x.jumpTo(0);z=Q;return _.F(x,S.ephemeralResponseStore.get(U),4)}z.reelWatchSequenceResponse=(X=x.yieldResult)==null?void 0:_.O9(X);_.IN(x)})};
uo8=function(S,c){var Q=Q===void 0?{}:Q;var f,U,a;return _.O(function(X){switch(X.nextAddress){case 1:if(S.innertubeTransportService){f=S.innertubeTransportService;X.jumpTo(2);break}if(!S.innertubeTransportLoader){_.eG(Error("ij"));X.jumpTo(2);break}return _.F(X,S.innertubeTransportLoader(),4);case 4:f=X.yieldResult;case 2:return _.F(X,(U=f)==null?void 0:_.P3(U,c,Q),5);case 5:return a=X.yieldResult,X.return(a)}})};
_.Rh.Object.defineProperties(JD.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
JD[mt]=[lrl,_.Ad,xs,_.QS(_.M6),_.QS(Nlh)];_.jHU=new _.Sg("STORAGE_MANAGER_TOKEN");var BuY=["touchmove","scroll"];var NuH={onSpanEnd:function(S){if(S.parent==null){var c=S.name;_.MD(c);bHZ(S,c)}}};var lZU=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},YTN;
lZU.prototype.enqueue=function(S,c){c===1?this.currentPersistentToast=S:this.queue.push(S);this.openToast()};
lZU.prototype.openToast=function(){var S;(S=this.currentToast)!=null&&S.isOpened()||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.au=new _.Sg("TOAST_MANAGER_TOKEN");var CME=new _.Sg("VIEW_TRANSITION_COORDINATOR_CONFIG_TOKEN");_.AD=new _.Sg("VIEW_TRANSITION_COORDINATOR_TOKEN");var HzU=function(S){this.config=S;this.elementTasksMap=new Map;this.transitionTasksMap=new Map;S=_.A(S.transitionConfigs);for(var c=S.next();!c.done;c=S.next())c=_.A(c.value).next().value,this.transitionTasksMap.set(c,[])};
HzU.prototype.registerElement=function(S,c,Q){Q=Q===void 0?!1:Q;for(var f=_.A(Object.keys(c)),U=f.next(),a={};!U.done;a={viewTransitionName:void 0},U=f.next()){U=U.value;a.viewTransitionName=c[U];var X=this.elementTasksMap.get(S),z=void 0;if((z=X)==null?0:z.has(U)){_.MP(new _.Yr("Element already registered for transition",S,U));break}X=X||new Map;X.set(U,{beforeTransition:function(x){return function(){S.style.viewTransitionName=x.viewTransitionName}}(a),
afterTransition:function(){S.style.viewTransitionName&&(S.style.viewTransitionName="")},
runOnce:Q});this.elementTasksMap.set(S,X)}};
var yEY=function(S,c){var Q=S.elementTasksMap.get(c);Q&&(Q.clear(),Q.size===0&&S.elementTasksMap.delete(c))};
HzU[mt]=[CME];var Dr8;_.pc1=_.y_(function(S){return _.B("basic-content-view-model",{class:_.n4("ytBasicContentViewModelHost",_.tq(S.className))},_.B(_.K,{cond:function(){return S.data().headline},
then:function(c){return _.B("div",{class:"ytBasicContentViewModelHeadline"},_.B(_.mw,{text:c}))}}),_.B(_.lW,{each:function(){return S.data().paragraphs||[]},
keyBy:"INDEX"},function(c){return _.B("div",{class:"ytBasicContentViewModelParagraph"},_.B(_.K,{cond:function(){var Q=c();return!!(Q.header||Q.customHeader||Q.headline)},
then:function(){return _.B(Dr8,{paragraph:c})}}),_.B(_.K,{cond:function(){return c().asset||c().text},
then:function(){return _.B("div",{class:"ytBasicContentViewModelParagraphContent"},_.B(_.K,{cond:function(){return c().asset},
then:function(Q){return _.B("div",{class:"ytBasicContentViewModelParagraphAsset"},_.B(_.h8,{data:Q},{contentPreviewImageViewModel:_.cM}))}}),_.B(_.K,{cond:function(){return c().text},
then:function(Q){return _.B("div",{class:"ytBasicContentViewModelParagraphText"},_.B(_.mw,{text:Q}))}}))}}))}))},"me");
Dr8=_.y_(function(S){var c=S.paragraph;return _.B(_.ak,null,_.B(_.K,{cond:function(){return c().headline},
then:function(Q){return _.B(_.mw,{text:Q,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.B(_.h8,{data:function(){return c().header||c().customHeader}},{sectionHeaderViewModel:function(Q){return _.B(_.aO,{data:Q.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"ne");var qTV=_.y_(function(S){var c=_.EH("yt-expandable-metadata-header-view-model"),Q=_.$d(function(f){if(!_.dJ(_.rJ(f),c.value,["A".toString(),"BUTTON".toString()])){var U;(U=S.expandedCallback)==null||U.call(S,!1)}});
return _.B("yt-expandable-metadata-header-view-model",{el:c,class:"ytExpandableMetadataHeaderViewModelHost"},_.B(_.K,{cond:function(){return S.expanded()},
then:function(){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader","on:click":Q},_.B("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.B(_.K,{cond:function(){return S.data().expandedTitleImage},
then:function(f){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.B(_.RW,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:f}))}}),_.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.B("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.B(_.mw,{text:function(){return S.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.B(_.mw,{text:function(){return S.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.B(_.mw,{text:function(){return S.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.B("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.B(_.h8,{data:function(){return S.data().infoButton}},{buttonViewModel:_.Ze}),_.B(_.h8,{data:function(){return S.data().collapseButton}},{buttonViewModel:function(f){return _.B(_.Ze,{data:f.data,
onClick:function(){var U;(U=S.expandedCallback)==null||U.call(S,!1)}})}})))},
else:function(){return _.B(hRp,Object.assign({},S))}}))},"oe"),TpO=_.y_(function(S){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.B(_.K,{cond:function(){return S.data().collapsedLabelImage},
then:function(c){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.B(_.RW,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:c,alt:""}))}}),_.B(_.mw,{text:function(){return S.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"pe"),hRp=_.y_(function(S){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader",
"on:click":_.$d(function(){var c;return void((c=S.expandedCallback)==null?void 0:c.call(S,!0))})},_.B("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.B(_.K,{cond:function(){return S.data().collapsedImage},
then:function(c){return _.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.B(_.RW,{width:16,height:16,data:c,alt:""}))}}),_.B(_.K,{cond:function(){return S.data().showLeadingCollapsedLabel},
then:function(){return _.B(TpO,Object.assign({},S))}}),_.B("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.B(_.mw,{text:function(){return S.data().collapsedTitle}}))),_.B("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.B(_.K,{cond:function(){return!S.data().showLeadingCollapsedLabel},
then:function(){return _.B(TpO,Object.assign({},S))}}),_.B(_.h8,{data:function(){return S.data().infoButton}},{buttonViewModel:_.Ze}),_.B(_.h8,{data:function(){return S.data().expandButton}},{buttonViewModel:function(c){return _.B(_.Ze,{data:c.data,
onClick:function(){var Q;(Q=S.expandedCallback)==null||Q.call(S,!0)}})}})))},"qe");_.wcg=_.y_(function(S){var c=_.A(_.l8(function(){return S.data().initiallyExpanded})),Q=c.next().value,f=c.next().value,U,a=(U=_.fl().resolve(_.QS(_.Lv)))==null?void 0:U(),X=function(){var z=S.data().colorData;
if(z)return a?z==null?void 0:z.darkColorPalette:z==null?void 0:z.lightColorPalette};
return _.B("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.Yd({"background-color":function(){var z=X();return(z==null?0:z.section2Color)?_.gh(z.section2Color):""}})},_.B(_.h8,{data:function(){return S.data().header}},{expandableMetadataHeaderViewModel:function(z){return _.B(qTV,{data:z.data,
expanded:function(){return!!Q()},
expandedCallback:function(x){f(x)}})}}),_.B(_.K,{cond:function(){return Q()},
then:function(){return _.B("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.B(_.h8,{data:function(){return S.data().expandedContent}},{horizontalShelfViewModel:function(z){return _.B(_.TU,{data:z.data,
includeMargin:!0,forceNarrowLayout:!0,palette:X})},
videoSummaryContentViewModel:function(z){return _.B(ArJ,{data:z.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(z){return _.B(_.U4,{data:z.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(z){return _.B(_.pc1,{data:z.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.B(_.h8,{data:function(){return S.data().expandedBottomButtons}},{buttonViewModel:function(z){return _.B("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.B(_.Ze,{data:z.data}))}}))}}))},"re");var sHE=_.y_(function(S){var c=S.text;var Q=S.marqueeSpacing;var f=S.scrollDelay;var U=S.scrollDuration;var a=S.enableMarqueeScroll;S=S.large;var X=_.A(_.ny(!1,void 0,"kfNqfd")),z=X.next().value,x=X.next().value,I=_.A(_.ny(0,void 0,"bYgZbf"));X=I.next().value;var n=I.next().value,b=_.EH("marquee-scroll");I=_.EH("div");var N=_.EH("span"),l=_.fl().resolve(_.t2);_.To(function(){if(a()){var w=N.value.getBoundingClientRect().width,g=b.value.getBoundingClientRect().width;if(w>g){var r=(l==="ltr"?-1:1)*
(w+(Q?Q():16));Promise.resolve().then(function(){x(!0);n(r)})}}},"giRlme");
var H={},q={};return _.B("marquee-scroll",{class:_.n4("ytMarqueeScrollHost",(H.ytMarqueeScrollHostLarge=S,H)),el:b},_.B("div",{id:"marquee-scroll-inner-container",class:_.n4("ytMarqueeScrollInnerContainer",(q.ytMarqueeScrollAnimationEnabled=function(){return z()},q)),
el:I,style:_.Yd({gap:Q?(0,_.Du)(Q):"16px","animation-duration":U?mAe(U):"16s","animation-delay":f?mAe(f):"3s","--marquee-translate":(0,_.Du)(X)})},_.B("span",{el:N,dir:"auto"},_.B(_.mw,{text:c,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.B(_.K,{cond:z,then:function(){return _.B("span",{"aria-hidden":"true",dir:"auto"},_.B(_.mw,{text:c,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"se");_.MxV=_.y_(function(S){var c=S.data;var Q=S.overlayDensity;S=_.$d(function(){c().onTapCommand&&_.kz(c().onTapCommand);return!1});
var f=_.JEz(),U=function(){return(Q==null?void 0:Q())===1?22:16},a={};
return _.B("reel-sound-metadata-view-model",{class:_.n4("ytReelSoundMetadataViewModelHost",(a.ytReelSoundMetadataViewModelHostLarge=function(){return(Q==null?void 0:Q())===1},a)),
"on:click":S,tabindex:0,role:"button","on:keydown":f},_.B("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.B(_.K,{cond:function(){return c().musicIcon},
then:function(X){return _.B(_.RW,{data:X,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon",size:U})}}),_.B("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.B(sHE,{text:function(){return c().soundMetadata},
enableMarqueeScroll:function(){return!!c().enableMarqueeScroll},
large:function(){return(Q==null?void 0:Q())===1}}))))},"te");var izV,ZzG,Xj,eR8,rZE,gY8,PMp,vYp;izV=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];ZzG=_.a6("wil_icon_max_concurrent_fetches",Infinity);
Xj=function(S,c,Q){var f=this;this.iconSet=S;this.appDirection=c;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.QY.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.u("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.u("wil_icon_network_first");this.renderWhenIdle=_.u("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.u("wil_icon_load_immediately");this.isPurging=!1;S=function(){f.cacheStorageAvailable&&(f.cacheStorageAsync=_.QY.caches.open("yt-icons").then(function(a){return f.cacheStorageSync=a}).catch(function(){f.cacheStorageAvailable=!1}))};
Q=(Q==null?void 0:Q())||{};Q=_.A(Object.entries(Q));for(c=Q.next();!c.done;c=Q.next()){var U=_.A(c.value);c=U.next().value;U=U.next().value;U=bW(U);GzE(U);this.iconCache[c]=U.cloneNode(!0)}this.isPurging=WpE(this);this.isPurging instanceof Promise?this.isPurging.then(S):S()};
_.eVx=function(S,c){var Q=S.resolveIcon(c);return Q?S.renderingMode===1?gY8(S,Q,S.renderingMode):(c=S.iconCache[Q.url])?(c=c.cloneNode(!0),eR8(S,c),gY8(S,Q,S.renderingMode,c)):_.kzU(S,Q).then(function(f){var U=f?0:1;eR8(S,f);return gY8(S,Q,U,f)}):(_.MP(new _.Yr("Icon not found",{iconShape:c})),function(){})};
eR8=function(S,c){if(c){S.counter+=1;S="_yt"+S.counter;c=[c].concat(_.Hs(c.getElementsByTagName("*")));c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())if(Q=Q.value,Q.tagName==="style"&&Q.textContent)Q.textContent=rZE(Q.textContent,S,!0);else for(var f=_.A(Q.attributes),U=f.next();!U.done;U=f.next()){U=U.value;U.name==="id"&&(U.value+=S);["mask","fill","clip-path"].includes(U.name)&&(U.value=rZE(U.value,S));if(U.name==="style"){var a=Q.style;try{a.cssText=rZE(a.cssText,S,!0)}catch(n){var X=void 0,z=
void 0,x=void 0,I=void 0;O3({error:((X=n)==null?void 0:(x=(z=X).toString)==null?void 0:x.call(z))||"",el:Q.outerHTML,style:!!a,cssText:(I=a)==null?void 0:I.cssText})}}U.name==="xlink:href"&&(U.value=U.value.replace(/#(.*)/,"#$1"+S))}}};
rZE=function(S,c,Q){var f=/url\(["']?#(.*?)["']?\)/;(Q===void 0?0:Q)&&(f=/url\(["']?#(.*?)["']?\)/g);return S.replace(f,"url(#$1"+c+")")};
gY8=function(S,c,Q,f){return function(U,a){var X=Object.assign({},{iconColor:"currentcolor",iconWidth:c.size+"px",iconHeight:c.size+"px",iconDisplay:"block"},a);a=_.Nf("DIV");var z=X.iconColor,x=X.iconFilter;X="width: "+X.iconWidth+"; height: "+X.iconHeight+"; display: "+X.iconDisplay+";";x&&(X+=" filter: "+x+";");Q===0&&(X+=" fill: "+z+";");Q===1&&(x=c.url,X+=" -webkit-mask: url("+x+") no-repeat center / cover; mask: url("+(x+") no-repeat center / cover; background-color: ")+z);c.allowMirroring&&
S.appDirection==="rtl"&&(X+=" transform: scale(-1, 1); transform-origin: center center;");a.setAttribute("style",X);Q===0&&f&&a.appendChild(f);U.appendChild(a)}};
_.kzU=function(S,c){var Q,f,U;return _.O(function(a){Q=function(X){return h5(X)};
f=c.url;if(!dr2(f))throw Error("kj");U=vYp(S,f);return a.return(U.then(function(X){return X.clone().text()}).then(function(X){var z=Q(X);
X=c.size;var x=_.Nf("DIV");_.kD(x,z);z=_.K9(x.firstElementChild!==void 0?x.firstElementChild:_.UHs(x.firstChild,!0));X=GzE(z,X);S.iconCache[f]=X.cloneNode(!0);delete S.responsePromises[f];return X}).catch(function(){}))})};
PMp=function(S){var c,Q=(c=S.requestAninmationFrameResolver)==null?void 0:c.promise;Q||(S.requestAninmationFrameResolver=new _.O_,Q=S.requestAninmationFrameResolver.promise,_.QY.requestAnimationFrame(function(){var f;(f=S.requestAninmationFrameResolver)==null||f.resolve();S.requestAninmationFrameResolver=null}));
return Q};
vYp=function(S,c){var Q,f;return _.O(function(U){if(U.nextAddress==1)return S.waitForAnimationFrame?_.F(U,PMp(S),2):U.jumpTo(2);Q=S.responsePromises[c];Q||(f=function(){var a,X,z;return _.O(function(x){switch(x.nextAddress){case 1:if(!S.cacheStorageAvailable){a=void 0;x.jumpTo(2);break}if(X=S.cacheStorageSync){x.jumpTo(3);break}return _.F(x,S.cacheStorageAsync,4);case 4:X=x.yieldResult;case 3:a=X;case 2:return z=a,S.isNetworkFirstStrategy?x.return(S.fetchAndUpdateCache(c,z).catch(S.getCacheStorageResponse.bind(S,
c,z))):x.return(S.getCacheStorageResponse(c,z).catch(S.fetchAndUpdateCache.bind(S,c,z)))}})},Q=S.renderWhenIdle?new Promise(function(a,X){_.HG(_.Mq,function(){f().then(a).catch(X)},10)}):f(),S.responsePromises[c]=Q);
return U.return(Q.catch(function(a){delete S.responsePromises[c];O3({error:(a==null?0:a.toString)?a.toString():"",url:c});throw a;}))})};
Xj.prototype.fetchAndUpdateCache=function(S,c){var Q=this;return _.O(function(f){return f.return(Lpp(Q,S).then(function(U){EYB(Q,S,U,c);return U}))})};
var Lpp=function(S,c){var Q;return _.O(function(f){if(S.numFetches<ZzG)return S.numFetches+=1,f.return(txp(S,c).finally(function(){--S.numFetches;if(Object.keys(S.queuedResponseResolvers).length){var U=Object.keys(S.queuedResponseResolvers)[0],a=S.queuedResponseResolvers[U];delete S.queuedResponseResolvers[U];a.resolve(Lpp(S,U))}}));
Q=new _.O_;S.queuedResponseResolvers[c]=Q;return f.return(Q.promise)})},txp=function(S,c,Q){Q=Q===void 0?2:Q;
var f;return _.O(function(U){f={credentials:"same-origin",priority:"low"};return U.return(_.QY.fetch(c,f).then(function(a){return a.ok?a:Promise.reject(Error("lj`"+a.status+"`"+a.statusText))}).catch(function(a){if(Q>0)return txp(S,c,Q-1);
throw a;}))})},EYB=function(S,c,Q,f){_.O(function(U){return f?U.return(new Promise(function(a){_.HG(_.Mq,function(){var X,z;
return _.O(function(x){switch(x.nextAddress){case 1:if(!S.isNetworkFirstStrategy){X=void 0;x.jumpTo(2);break}return _.F(x,f.match(c).catch(function(){}),3);
case 3:X=x.yieldResult;case 2:if(z=X){x.jumpTo(4);break}return _.F(x,f.put(c,Q.clone()).catch(function(I){O3({error:(I==null?0:I.toString)?I.toString():"",url:c})}),4);
case 4:a(),_.IN(x)}})},50)})):U.return()})};
Xj.prototype.getCacheStorageResponse=function(S,c){return _.O(function(Q){return c?Q.return(c.match(S).then(function(f){return f&&f.ok?f:Promise.reject()})):Q.return(Promise.reject())})};
var GzE=function(S,c){c===void 0||S.getAttribute("viewBox")||S.setAttribute("viewBox","0 0 "+c+" "+c);S.setAttribute("focusable","false");S.setAttribute("aria-hidden","true");try{S.style.pointerEvents="none",S.style.display="inherit",S.style.width="100%",S.style.height="100%"}catch(U){var Q;O3({error:((Q=U)==null?0:Q.toString)?U.toString():""});try{S.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(a){var f;O3({error:((f=a)==null?0:f.toString)?a.toString():
""})}}return S},dr2=function(S){for(var c=_.A(izV),Q=c.next();!Q.done;Q=c.next())if(S.startsWith(Q.value)&&S.endsWith(".svg"))return!0;
return!1};
Xj.prototype.resolveIcon=function(S){return this.iconSet.resolveIcon(S)};
var O3=function(S){_.i5(new _.Yr("Error in IconManager",S))},WpE=function(S){if(_.u("wil_icons_cache_purge_killswitch"))return!1;
try{var c=_.QY.localStorage}catch(a){return!1}if(!c||!S.cacheStorageAvailable)return!1;var Q=function(a){try{var X;(X=c)==null||X.setItem("yt-icons-last-purged",a.toString())}catch(x){var z;O3({error:((z=x)==null?0:z.toString)?x.toString():""})}},f=Number(c.getItem("yt-icons-last-purged"));
if(!f)return f=new Date,f=f.setDate(f.getDate()-Math.floor(Math.random()*90+1)),Q(f),!1;if(function(a,X){a=new Date(a);X=new Date(X);return X.getMonth()-a.getMonth()+12*(X.getFullYear()-a.getFullYear())}(f,Date.now())<3)return!1;
try{return _.QY.caches.delete("yt-icons").then(function(a){a&&Q(Date.now());return a}).catch(function(){return!1}).finally(function(){S.isPurging=!1})}catch(a){var U;
O3({error:((U=a)==null?0:U.toString)?a.toString():""});return!1}};
Xj[mt]=[JXe,_.t2,_.QS(XoJ)];_.zu=function(S,c){this.iconManager=S;this.iconsToFetch=c};
_.zu[mt]=[_.FB,_.QS(AXu)];var VxO=function(){};var RR1=function(S,c,Q){this.requestKey=S;this.dKW=c;this.a49=Q;this.i4H=function(){return new XMLHttpRequest};
this.aHW=void 0;this.i38=[]};
RR1.prototype.getLatestChallengeResponse=function(){return this.a49};
var QNp=function(S,c,Q){var f,U,a,X;return _.O(function(z){if(z.nextAddress==1){_.MD("attestation_challenge_fetch");_.i2("att_fs",void 0,"attestation_challenge_fetch");if(!S.aHW)throw new _.qU(9,"Missing fetcher");return _.F(z,S.aHW(c,Q),2)}f=z.yieldResult;a=(U=f)==null?void 0:U.bgChallenge;if(!a)throw new _.qU(15,"Missing field");S.a49=f;S.i38.forEach(function(x){x(f)});
X=NYY(a);_.i2("att_fc",void 0,"attestation_challenge_fetch");USo("attestation_challenge_fetch");return z.return(X)})},HRd=function(S,c){var Q,f,U,a,X;
return _.O(function(z){switch(z.nextAddress){case 1:Q=new X5(100,3E5,.25,2),f=void 0;case 2:if(!(Q.currBackoffCount_<10)){z.jumpTo(4);break}_.X1(z,5);if(!(Q.currBackoffCount_>0)){z.jumpTo(7);break}return _.F(z,$yp(Q.getValue()),7);case 7:return _.F(z,yZE(S,c),9);case 9:return U=z.yieldResult,z.return(U);case 5:a=_.Bs(z);a instanceof _.qU?f=a:(X=a instanceof Error?a.message:"Unknown",f=new _.qU(9,X));xV$(Q);z.jumpTo(2);break;case 4:if(f)throw f;throw new _.qU(9,"Unknown error");}})},yZE=function(S,
c){c=Poh(Lci(new vDT,c),S.requestKey);
var Q=new _.O_,f=S.i4H();f.open("POST",S.dKW);f.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");f.setRequestHeader("Content-Type","application/json+protobuf");f.onload=function(){if(_.i$p(f)){var U=cHd(f.responseText);Q.resolve(U)}else Q.reject(new _.qU(_.zk(_.O8(f)),f.statusText))};
f.onerror=function(){Q.reject(new _.qU(_.zk(_.O8(f)),f.statusText))};
f.send(c.serialize());return Q.promise};var mrp=function(S){this.networkStatusManager=S;this.isDownloaded=KgM===void 0?function(){return!1}:KgM;
this.isReady=!1;this.ten=oY2(this)},oY2=function(S){var c;
return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,hxT(),2);if(Q.nextAddress!=3)return c=Q.yieldResult,_.F(Q,jgh(c),3);S.tB=Q.yieldResult;jUx(S.tB).then(function(){S.isReady=!0});
return Q.return(S.tB)})},Sd1=function(S,c,Q){S.tB?(S=S.tB.zv({rD:Q,
lkF:!0,iMC:!0}),c.serviceIntegrityDimensions={poToken:S}):_.sH(Error("nj"))};
mrp.prototype.processContext=function(S){var c=this;if(!S.input.match(_.RB(gRJ)))return _.Lk();var Q=S.innerTubeRequest,f=Q.videoId;return!f||this.isDownloaded(Q)||this.networkStatusManager&&!this.tB&&!this.networkStatusManager.isNetworkAvailable()?_.Lk():this.tB?this.isReady?(Sd1(this,Q,f),_.Lk()):new PA(jUx(this.tB).then(function(){Sd1(c,Q,f)})):new PA(this.ten.then(function(U){return _.O(function(a){if(a.nextAddress==1)return _.F(a,jUx(U),2);
Sd1(c,Q,f);_.IN(a)})}))};var c$T=new _.Sg("WEB_PO_CONTEXT_PROCESSOR");var QpN=function(S,c){var Q=this;this.orG=0;var f;this.mfJ=(f=c==null?void 0:c.mfJ)!=null?f:window;this.networkStatusManagerPromise=c==null?void 0:c.networkStatusManagerPromise;var U;this.requestKey=(U=c==null?void 0:c.requestKey)!=null?U:_.Al("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var a;this.r5p=(a=c==null?void 0:c.r5p)!=null?a:function(x){return new GN(x)};
var X;f=(X=c==null?void 0:c.bw0)!=null?X:function(x,I,n){return new RR1(x,I,n)};
this.bgChallenge=NYY(S.bgChallenge);this.ttlSeconds=KfR(ml(S.challenge||""));this.lG=f(this.requestKey,_.u("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.QY.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",S);ueH(this.lG);var z;this.sb1=(z=c==null?void 0:c.sb1)!=null?z:function(x){_.HI(Q.mfJ.document,"visibilitychange",function(){Q.mfJ.document.visibilityState===
"visible"&&x()})}},UH2=function(S){if(!S.jX){var c={maxAttempts:5,
ux4:S.ttlSeconds*1E3};lDM(S.mfJ);S.jX=S.r5p({lG:S.lG,bW:{disable:_.u("html5_web_po_disable_remote_logging"),h9:"aGIf",rvZ:qPr("html5_web_po_experiment_ids"),veJ:_.u("wpo_dis_lfdms")?0:1E3,dm:_.u("wpo_gel_strz")?function(f){var U=Wrh.get(f);U||(U=new GTe(f),U=new B1(U),Wrh.set(f,U));return U}:void 0},
cec:c,eIX:S.bgChallenge,nKJ:YsR});S.orG=Date.now();y5i(S.jX,function(){S.orG=Date.now()});
sjp(S.jX,function(){return _.O(function(f){return f.return(fTT(S))})});
var Q=S.clC.bind(S);S.networkStatusManagerPromise&&S.ttlSeconds>0&&S.networkStatusManagerPromise.then(function(f){f.listen("publicytnetworkstatus-online",Q)});
S.sb1(Q)}};
QpN.prototype.clC=function(){if(Date.now()>this.orG+this.ttlSeconds*1E3){var S;(S=this.jX)==null||Rhs(S)}};
var fTT=function(S){if(S.h9F)return S.h9F;if(!S.jX)throw Error("oj");S.h9F=new k5({jX:S.jX,lG:S.lG,afH:!0,onError:YsR});return S.h9F},HHz=function(S,c){S=new QpN(S,c);
UH2(S);fTT(S)};var x8=function(S,c){this.store=S;this.queue=[];c==null||c.addEventListener("yt-navigate-start",this.reset.bind(this))};
x8.prototype.enqueue=function(S){var c=S.command,Q=S.durationMs,f=S.elementToFocus;var U=S.label;var a=S.elementToFocus;S.command?U=_.K8("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:U,shortcut:_.K8("SHIFT_PLUS_ENTER")}):a&&(S=U+". "+_.K8("SHIFT_PLUS_ENTER")+" for more information.",U=_.K8("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:U,shortcut:_.K8("SHIFT_PLUS_ENTER")},S));Q={announcement:U,durationMs:Q!=null?Q:8E3};c?Q.command=c:f&&(f.classList.add("ephemeral-action-focusable-element"),Q.selector=f.tagName+
".ephemeral-action-focusable-element");this.queue.push(Q);J$N(this)};
x8.prototype.activate=function(S){var c=_.s9H(this.store.getState());if(c){if(c==null?0:c.command)_.WI(c.command),this.store.dispatch(MrH(null));if(c==null?0:c.selector)c=document.querySelector(c.selector),_.mjz(c);S.preventDefault()}};
var J$N=function(S){if(!_.s9H(S.store.getState())&&S.queue.length){var c=S.queue.shift();c&&(S.previousAnnouncement===c.announcement&&(c.announcement+="\u00a0"),S.store.dispatch(MrH(c)),S.previousAnnouncement=c.announcement,S.timeoutId=setTimeout(function(){if(c.selector){var Q;(Q=document.querySelector(c.selector))==null||Q.classList.remove("ephemeral-action-focusable-element")}S.store.dispatch(MrH(null));J$N(S)},c.durationMs))}};
x8.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(MrH(null));this.queue.length=0;this.timeoutId=void 0};
x8[mt]=[_.kR,_.CM];_.Fj=new _.Sg("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var aT0=new _.Sg("AUTH_SERVICE_TOKEN");var hZp=_.oK(["about:blank"]),pjc;var A$G=new _.Sg("API_IFRAME_TOKEN"),X_V=new _.Sg("FETCH_FN_TOKEN"),OiE=new _.Sg("PARSE_FN_TOKEN"),zsB=new _.Sg("WINDOW_REQUEST_TOKEN");var f0s;f0s=new _.Sg("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.xH2=new _.Sg("MISC_UI_SHARED_FLAGS_TOKEN");var FeE=function(){};
FeE.prototype.getFlag=function(S){if(S.configType!==2)throw Error("pj");return BdT(S)};
var BdT=function(S){switch(S.flagType){case "bool":return _.u(S.flagName);case "int":return _.Li(_.a6(S.flagName));case "double":return _.a6(S.flagName);case "string":return _.Al(S.flagName);case "int32_list":return qPr(S.flagName);case "int64_list":return qPr(S.flagName).map(function(c){return _.Li(c)});
case "string_list":return _.XJ(S.flagName);default:throw Error("qj");}};var Bp=function(S,c,Q){c=c===void 0?{}:c;sE.call(this,Q===void 0?"uninitialized":Q);this.env=S;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}];c.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=c.shouldWaitOnAsyncImmediate)};
_.C(Bp,sE);Bp.prototype.init=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.F(f,S(c.env),2):(S(c.env),f.jumpTo(2));if(f.nextAddress!=4)return c.jobSet?_.F(f,c.jobSet.completedResolver.promise,4):f.jumpTo(4);Q=_.g2();Q.parkOrScheduleJob(function(){c.transition("rendering")},10,"ci");
_.IN(f)})};
Bp.prototype.initialRender=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.F(f,S(c.env),2):(S(c.env),f.jumpTo(2));if(f.nextAddress!=4)return c.jobSet?_.F(f,c.jobSet.completedResolver.promise,4):f.jumpTo(4);Q=_.g2();Q.parkOrScheduleJob(function(){c.transition("rendered")},10,"cr");
_.IN(f)})};
Bp.prototype.afterRenderImmediate=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return c.processPluginOptions.shouldWaitOnAsyncImmediate?_.F(f,S(c.env),2):(S(c.env),f.jumpTo(2));if(f.nextAddress!=4)return c.jobSet?_.F(f,c.jobSet.completedResolver.promise,4):f.jumpTo(4);Q=_.g2();Q.parkOrScheduleJob(function(){c.transition("after-render-deferred")},10,"carml");
_.IN(f)})};
Bp.prototype.afterRenderDeferred=function(S){var c=this;return _.O(function(Q){S(c.env);_.IN(Q)})};var ITT={},nlB=(ITT.rendered={priority:0,callback:function(S){Gfz(S.injector.resolve(DE))}},ITT);var biN=!1,WKT=0,MaT=null,Gdc=null;var NdV=new _.Sg("NETWORK_SLI_TOKEN");var Keg=function(S,c,Q,f){this.networkSli=S;this.fetchFn=c;this.parseFn=Q;this.requestFn=f};
Keg.prototype.fetch=function(S,c,Q){var f=this,U,a,X;return _.O(function(z){U=$HT(f,S,c);X=(a=f.fetchFn)!=null?a:fetch;return z.return(X(U).then(function(x){return f.handleResponse(x,Q)}).catch(function(x){_.i5(x);
if((Q==null?0:Q.expectJsonStrict)&&x instanceof jE&&x.errorType===1)return Promise.reject(x)}))})};
var WPp=function(S,c,Q,f){var U,a,X,z,x,I,n;return _.O(function(b){switch(b.nextAddress){case 1:return U=$HT(S,c,Q),_.X1(b,2),_.F(b,fetch(U),4);case 4:a=b.yieldResult;_.Pi(b,3);break;case 2:throw _.Bs(b),new jE(2,"Failed to parse streaming response",U.url);case 3:if(!a.redirected&&!a.ok)throw(X=S.networkSli)==null||X.failure(),new _.Yr("Streaming fetch request not ok",U.url);if(!a.body)throw new _.Yr("No response body in streaming response",U.url);z={};if(_.u("web_streaming_fast"))return x=a.body.getReader(),
b.return(uhE(S,x,z,f));I=a.body.pipeThrough(new TextDecoderStream).getReader();n=new _.a7;return b.return(jpU(S,I,n,Ayc,z,f))}})},$HT=function(S,c,Q){if(S.networkSli){var f=_.Bi(_.c2(c,"key"))||"/UNKNOWN_PATH";
S.networkSli.start(f)}f=Q;_.u("wug_networking_gzip_request")&&(f=dOY(Q));var U;return new ((U=S.requestFn)!=null?U:window.Request)(c,f)},uhE=function(S,c,Q,f){var U,a,X,z,x,I,n,b,N,l,H;
return _.O(function(q){switch(q.nextAddress){case 1:U=new TextDecoder("utf-8"),a="",X=function(w){w=w.trim();w.length!==0&&w!=="]"&&w!=="["?(w.startsWith("[")&&(w=w.substring(1)),w.endsWith("]")&&(w=w.slice(0,-1)),w.endsWith(",")&&(w=w.slice(0,-1)),w=w.trim()):w=void 0;if(w)try{var g=JSON.parse(w);Ayc(Q,g);f==null||f(Q,g)}catch(r){throw new jE(1,"Failed to parse streaming response",w);}},_.X1(q,2,3);
case 5:return _.F(q,c.read(),8);case 8:z=q.yieldResult;x=z.value;if(I=z.done)return a.length>0&&X(a),n=void 0,(n=S.networkSli)==null||n.success(),q.return(Q);a+=U.decode(x,{stream:!0});b=a.split("\n");a=b.pop()||"";N=_.A(b);for(l=N.next();!l.done;l=N.next())H=l.value,X(H);q.jumpTo(5);break;case 3:_.O7(q);c.releaseLock();_.F1(q,0);break;case 2:throw _.Bs(q),new jE(1,"Failed to parse streaming response");}})},jpU=function(S,c,Q,f,U,a){var X,z,x,I,n,b,N,l,H;
return _.O(function(q){if(q.nextAddress==1)return _.F(q,c.read(),2);X=q.yieldResult;z=X.value;if(x=X.done)return(I=S.networkSli)==null||I.success(),q.return(U);try{n=Q.parse(z)}catch(w){throw new jE(1,"Failed to parse streaming response",z);}if(n!=null)for(b=_.A(n),N=b.next();!N.done;N=b.next())l=N.value,f(U,l),H=void 0,(H=a)==null||H(U,l);return q.return(jpU(S,c,Q,f,U,a))})};
Keg.prototype.handleResponse=function(S,c){var Q,f=(Q=this.parseFn)!=null?Q:JSON.parse;Q=S.text().then(function(U){if((c==null?0:c.jspbResponseCtor)&&S.ok)return QAx(c.jspbResponseCtor,U);U=U.replace(")]}'","");if((c==null?0:c.expectJsonStrict)&&U)try{var a=f(U)}catch(z){throw new jE(1,"JSON parsing failed after fetch");}var X;return(X=a)!=null?X:f(U)});
S.redirected||S.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),Q=Q.then(function(U){_.i5(new _.Yr("Error: API fetch failed",S.status,S.url,U));return Object.assign({},U,{errorMetadata:{status:S.status}})}));
return Q};
Keg[mt]=[_.QS(NdV),_.QS(X_V),_.QS(OiE),_.QS(zsB)];var lTp=new _.Sg("NETWORK_MANAGER_TOKEN");var YdZ=[1,2,4,8,16,30],HiZ=function(S){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=S.maxTimeMs;this.maxFrameCount=S.maxFrameCount===void 0?Math.ceil(60*S.maxTimeMs/1E3):S.maxFrameCount;S=_.A(YdZ);for(var c=S.next();!c.done;c=S.next())this.brokenFrameSummarizers.push(new CuZ(c.value/60*1E3))},DHT=function(S){var c=S.frameCountInternal>=S.maxFrameCount;
return S.elapsedTimeMs>=S.maxTimeMs||c},p_1=function(S){for(var c=[],Q=_.A(S.brokenFrameSummarizers),f=Q.next();!f.done;f=Q.next())f=f.value,f=f.brokenFrameCount!==0?{severityMs:Math.round(f.targetFrameTimeMs),
eventCount:f.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(f.averageDurationBetweenEventsMs)}:void 0,f&&c.push(f);return{summaries:c,monitoringDurationMs:Math.round(S.elapsedTimeMs)}};
_.Rh.Object.defineProperties(HiZ.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 CuZ=function(S){this.targetFrameTimeMs=S;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.Rh.Object.defineProperties(CuZ.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var hsZ=function(){};
hsZ.prototype.start=function(S,c){var Q=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var f=new HiZ({maxTimeMs:S});this.monitor=f;this.lastSummaryInternal=void 0;this.metadataToLog=c;return new Promise(function(U){var a=function(X){if(X===void 0)Q.stop(),U(void 0);else if(Q.monitor!==f)X=Object.assign({},p_1(f),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),U(X);else{var z=Q.monitor;if(!DHT(z)){z.frameCountInternal++;if(z.prevTime===void 0)z.startTime=
X;else for(var x=X-z.prevTime,I=_.A(z.brokenFrameSummarizers),n=I.next();!n.done;n=I.next()){n=n.value;var b=n.currTimeMs;n.currTimeMs+=x;x>n.targetFrameTimeMs+2&&(n.brokenFrameCount++,n.timeOfFirstBrokenFrameMs===void 0&&(n.timeOfFirstBrokenFrameMs=b),n.timeOfLastBrokenFrameMs=b)}z.prevTime=X}DHT(Q.monitor)?U(Q.stop()):_.Mq.addJob(a,5,0)}};
_.Mq.addJob(a,5,0)})};
hsZ.prototype.stop=function(S){if(!this.monitor)return this.lastSummaryInternal;var c=Object.assign({},p_1(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(c.monitoringDurationMs){S=S!=null?S:this.metadataToLog;var Q={droppedFramesSummary:c,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};S&&(Q[S.type]=S.data);_.Te("manualSmoothnessMeasurement",Q)}this.monitor=void 0;this.lastSummaryInternal=c;this.metadataToLog=void 0;return c};_.qdg=new _.Sg("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var Tdp;Tdp=function(S){this.JSC$16357_expiringStorage=new Hi(S)};
_.w_2=function(S){if(_.giz()&&(S=_.K1x(_.jJ()+"::"+S)))return new Tdp(S)};
Tdp.prototype.set=function(S,c,Q){Q=Q!==void 0?Date.now()+Q:void 0;this.JSC$16357_expiringStorage.set(S,c,Q)};
Tdp.prototype.get=function(S){return this.JSC$16357_expiringStorage.get(S)};
Tdp.prototype.remove=function(S){this.JSC$16357_expiringStorage.remove(S)};var spN=new _.Sg("SESSION_STORAGE");_.Iu=function(){};
_.Iu.getInstance=function(){var S=_.rC("ytglobal.storage_");S||(S=new _.Iu,_.m5("ytglobal.storage_",S));return S};
_.Iu.prototype.estimate=function(){var S,c,Q;return _.O(function(f){S=navigator;return((c=S.storage)==null?0:c.estimate)?f.return(S.storage.estimate()):((Q=S.webkitTemporaryStorage)==null?0:Q.queryUsageAndQuota)?f.return(eZz()):f.return()})};
_.m5("ytglobal.storageClass_",_.Iu);var vip=!!(UY[1]&8192);var dyr=!1;var MzU=_.oK(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),iiE=_.oK(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var LD_={"/":_.Ni,"/?feature=ytca":_.Ni,"/feed/downloads":_.MAR};var N7=function(S,c,Q){this.JSC$16369_upliftPromise=S;this.store=c;this.JSC$16369_persistentStorePromiseAccessor=Q};
N7.prototype.shouldPreferLocalResponse=function(S){return S.browseId==="FEdownloads"||S.browseId==="FEsmart_downloads"&&_.u("kevlar_modern_downloads_page")?!0:!1};
N7.prototype.localInnertubeResponse=function(S){var c=this;return _.O(function(Q){return S.browseId==="FEdownloads"?_.u("kevlar_modern_downloads_page")?Q.return(ZiE(c)):Q.return(GJG(c)):S.browseId==="FEsmart_downloads"&&_.u("kevlar_modern_downloads_page")?Q.return(WeB(c)):Q.return(Promise.reject(Error("sj")))})};
N7.prototype.canProvideFallbackResponse=function(){return!0};
N7.prototype.localFallbackInnertubeResponse=function(S){var c=this,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:return _.F(a,c.JSC$16369_persistentStorePromiseAccessor(),2);case 2:Q=a.yieldResult;if(S.browseId!=="SPaccount_downloads"||!Q){a.jumpTo(3);break}return _.F(a,NAY(Q),4);case 4:if(f=a.yieldResult)return a.return(_.O9(f));case 3:return S.browseId==="FEwhat_to_watch"?a.return(glE(c)):(U=_.u("web_offline_continuation_automatic_retry")||_.u("web_offline_continuation_retry_button"))&&
S.continuation?a.return(esp(c)):a.return(kJG(c))}})};
var glE=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.JSC$16369_upliftPromise,2);c=_.SaR(S.store.getState().entities);return c.length?Q.return(r$E(S,c)):Q.return(kJG(S))})},GJG=function(S){var c,Q;
return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$16369_upliftPromise,2);if(f.nextAddress!=3)return c=dHp([{offlineItemSectionRenderer:{}}]),_.F(f,vl1(S,c),3);Q=f.yieldResult;Q.onResponseReceivedActions=[q$("REFRESH_DOWNLOADS")];return f.return(Q)})},ZiE=function(S){var c,Q,f,U,a,X,z,x,I,n,b,N,l;
return _.O(function(H){if(H.nextAddress==1)return _.F(H,S.JSC$16369_upliftPromise,2);if(H.nextAddress!=3)return c=S.store.getState(),Q=c.entities,f=_.pK(Q),U=_.hb(Q),a=_.Txz(c),X=_.qax(c),z=_.wAr(c),x=_.UBz(Q),I=_.lZ(f),n=_.qO(Q),b={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.vPY(f,U,x,a,X,I,n,z),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},N=_.K8("DOWNLOADS",void 0,"Downloads"),_.F(H,Pug(S,b,N),3);l=H.yieldResult;
l.onResponseReceivedActions=[q$("REFRESH_DOWNLOADS")];return H.return(l)})},WeB=function(S){var c,Q,f,U,a,X,z,x,I;
return _.O(function(n){if(n.nextAddress==1)return _.F(n,S.JSC$16369_upliftPromise,2);if(n.nextAddress!=3)return c=S.store.getState(),Q=c.entities,f=_.pK(Q),U=_.lZ(f),a=_.qO(Q),X={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.LTz(f),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},z=_.K8("SMART_DOWNLOADS",void 0,"Smart downloads"),x=rfM(U,a),_.F(n,Pug(S,X,z,x),3);I=n.yieldResult;I.onResponseReceivedActions=[q$("REFRESH_DOWNLOADS")];
return n.return(I)})},kJG=function(S){var c,Q;
return _.O(function(f){if(f.nextAddress==1)return _.F(f,Xq(S.JSC$16369_upliftPromise,S.store),2);c=f.yieldResult;Q=dHp([BAx(c)]);return f.return(vl1(S,Q))})},esp=function(S){var c,Q,f,U;
return _.O(function(a){if(a.nextAddress==1)return c={},Q=S.store.getState().continuation.continuationCommand,_.wH(c,_.gj,Q),_.F(a,Xq(S.JSC$16369_upliftPromise,S.store,c,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);f=a.yieldResult;U={};_.wH(U,_.lxd,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:f}}}],targetId:"browse-feedFEwhat_to_watch"});return a.return({responseContext:{},onResponseReceivedActions:[U]})})},dHp=function(S){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:S}}}}]}}},r$E=function(S,c){var Q,f;
return _.O(function(U){var a={contents:Tw(c)};Q=a&&a.contents?a:{};_.u("kevlar_modern_downloads_page")&&(Q=Object.assign({},_.EPH(c),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));f={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Q}}}]}};return U.return(vl1(S,f))})},vl1=function(S,c){var Q,f;
return _.O(function(U){if(U.nextAddress==1)return _.F(U,S.JSC$16369_persistentStorePromiseAccessor(),2);if(U.nextAddress!=3)return Q=U.yieldResult,_.F(U,zV(Q),3);f=U.yieldResult;return U.return({responseContext:{},contents:c,topbar:f})})},Pug=function(S,c,Q,f){var U,a;
return _.O(function(X){if(X.nextAddress==1)return _.F(X,S.JSC$16369_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3)return U=X.yieldResult,_.F(X,zV(U),3);a=X.yieldResult;var z=X.return;var x=f;x=x===void 0?"":x;x={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:Q}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.K8("SETTINGS",void 0,"Settings"),accessibilityText:_.K8("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:cq("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:x}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:Q};
return z.call(X,{responseContext:{},contents:c,topbar:a,header:{pageHeaderRenderer:x}})})};var LeN=function(){this.moduleRegistry={};this.fetchCount=0};
LeN.prototype.isFetching=function(){return this.fetchCount>0};
var da=function(S,c){S.moduleRegistry[c.toString()]={asyncId:c,isFetching:!1};return S};
LeN.prototype.JSC$16380_loadModules=function(){for(var S=this,c=new Map,Q=[],f=_.A(_.YD.apply(0,arguments)),U=f.next();!U.done;U=f.next()){U=U.value;var a=this.moduleRegistry[U];a?a.resolver?c.set(U,a.resolver):(a.resolver=new _.O_,c.set(U,a.resolver),Q.push(a.asyncId),a.isFetching=!0):(a=new _.O_,c.set(U,a),a.resolve(void 0))}Q.length&&(this.fetchCount+=1,_.p0(_.at.getMultipleAsync.apply(_.at,_.Hs(Q)).then(function(X){for(var z=0;z<Q.length;z++){var x=X[z],I=S.moduleRegistry[Q[z].toString()];I.isFetching=
!1;I.resolver.resolve(x)}}).catch(function(X){for(var z=_.A(Q),x=z.next();!x.done;x=z.next()){x=x.value;
var I=S.moduleRegistry[x.toString()];I.resolver=void 0;I.isFetching=!1;c.get(x.toString()).reject(X)}}),function(){--S.fetchCount}));
return Promise.all([].concat(_.Hs(c.values())).map(function(X){return X.promise}))};_.v$=new _.Sg("MODULE_REGISTRY_TOKEN");var ElU={},tzT=(ElU.rendered={priority:0,callback:function(S){a:{var c=void 0;try{var Q;b:{if(_.QvZ()){var f=_.NNT(_.jJ()+"::pom");if(f){var U=new pM(f);break b}}U=void 0}var a=(Q=U)==null?void 0:Q.get("role_text");if(!a)break a;c={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:a}]}}}}}}catch(x){}c&&S.injector.resolve(_.U8).resolveCommand(c)}try{var X=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(X){var z=JSON.parse(X);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
z&&S.injector.resolve(_.U8).resolveCommand(z)}}catch(x){}}},ElU);var VzV,RsE={},y$p=(RsE.initialized={priority:10,callback:function(){VzV=hw()}},RsE.rendering={callback:function(S){var c;
return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,VzV,2);c=Q.yieldResult;if(!c.endpoint)throw Error("uj`"+_.QY.location.href);s9(S,c);_.IN(Q)})}},RsE);var olZ={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(_.Hs(_.u("web_pip_minimize_breakages")?[{messageRegExp:/.*__shady_dispatchEvent.*/,weight:0}]:[]),[{messageRegExp:/ytsignals missing/,weight:500},{messageRegExp:/MutationObserver is not defined/,
weight:100},{messageRegExp:/Cannot call 'patch'/,weight:500},{messageRegExp:/ShadyDOM.patch is not a function/,weight:500},{messageRegExp:/Illegal invocation/,weight:500},{messageRegExp:/no such interface supported/,weight:500},{messageRegExp:/play.*request was interrupted/,weight:500},{messageRegExp:/Failed to .* ServiceWorker.*/,weight:500},{messageRegExp:/Cannot call 'onIdle'/,weight:500},{messageRegExp:/Failed to sanitize attribute of <div>: <div style="--nx:82;">/,weight:500},{messageRegExp:/(DOMPurify|vid_mate_check) is not defined/,
weight:0},{messageRegExp:/A network error occurred/,weight:500},{messageRegExp:/Ticking CPT when CPT already ticked/,weight:100},{messageRegExp:/Unexpected end of .*(input|data)/,weight:500},{messageRegExp:/JSON .* unexpected/,weight:500},{messageRegExp:/Unexpected token </,weight:500},{messageRegExp:/^undefined$/,weight:500},{messageRegExp:/The YouTube player is not attached to the DOM/,weight:500},{messageRegExp:/Malformed continuation/,weight:500},{messageRegExp:/Offset is outside the bounds of the DataView/,
weight:500},{messageRegExp:/Cannot call 'push'/,weight:0},{messageRegExp:/.*push is not a function/,weight:0},{messageRegExp:/.*\.find is not a function/,weight:0},{messageRegExp:/Cannot redefine property: BetterJsPop/,weight:0},{messageRegExp:/cdn.paddle.com/,weight:0},{messageRegExp:/^network error$/,weight:0},{messageRegExp:/Cannot read property 'snippet'.*/,weight:0},{messageRegExp:/Cannot read property 'insertBefore'.*/,weight:0},{messageRegExp:/The play method is not allowed by the user agent or the platform in the current context, possibly because the user denied permission./,
weight:0},{messageRegExp:/Unhandled action/,weight:100},{messageRegExp:/UrlEndpoint should not be used for same origin navigations. Use a better typed endpoint instead./,weight:100},{messageRegExp:/VisibilityLogger called before newScreen/,weight:1E3},{messageRegExp:/BL:ULB/,weight:500},{messageRegExp:/Failed to retrieve emoji manager initial JSON data/,weight:100},{messageRegExp:/Endpoint supplied is invalid/,weight:100},{messageRegExp:/Cannot read property 'polyfillWrapFlushCallback'.*/,weight:500},
{messageRegExp:/unblocked44.ml.*/,weight:0},{messageRegExp:/Failed to fetch/,weight:500},{messageRegExp:/.*API fetch failed.*/,weight:1E3},{messageRegExp:/No RequestBuilder for endpoint/,weight:100},{messageRegExp:/.*Failed to initialize Tango client in CommentsInvalidation.*/,weight:100},{messageRegExp:/.*redefine.*property.*adPlacements/,weight:1E3},{messageRegExp:/ownerObj.base is undefined/,weight:1E3},{messageRegExp:/History popstate has no state/,weight:500},{messageRegExp:/ReadableStream uploading is not supported/,
weight:1E3},{messageRegExp:/bad trailing UTF-8 byte .* doesn't match the pattern 0b10xxxxxx/,weight:1E3},{messageRegExp:/b172965563/,weight:1E3},{messageRegExp:/UrlEndpoint should not be used for same origin navigations/,weight:1E3},{messageRegExp:/Fetching RunAttestationCommand returned falsy/,weight:100},{messageRegExp:/WEBCHANNEL_NETWORK_ERROR/,weight:100},{messageRegExp:/urlForEndpoint used on client endpoint/,weight:1E3},{messageRegExp:/InnerTubeTransportService is already initialized/,weight:100},
{messageRegExp:/Cannot redefine property: userAgent/,weight:500},{messageRegExp:/(ResizeObserver loop limit exceeded)|(ResizeObserver loop completed with undelivered notifications)/,weight:500},{messageRegExp:/undefined is not an object \(evaluating 'this.manager'\).*/,weight:500},{messageRegExp:/_0x22d63b is not defined/,weight:500},{messageRegExp:/Cannot call '1'/,weight:500},{messageRegExp:/.*Wanteeed.*/,weight:0},{messageRegExp:/.*WtdRoot*/,weight:0},{messageRegExp:/.*Constructing wtd-root:*/,
weight:0},{messageRegExp:/.*WtdDiv.*/,weight:0},{messageRegExp:/.*Failed to execute 'appendChild'.*/,weight:0},{messageRegExp:/.*TypeError: a is not a constructor'.*/,weight:0},{messageRegExp:/.*Readwise.*/,weight:0},{messageRegExp:/.*Form is either loading or already opened*/,weight:0},{messageRegExp:/.*wtd-div.*/,weight:0},{messageRegExp:/.*Blocked a frame with origin "https:\/\/www.youtube.com" from accessing a cross-origin frame.*/,weight:0},{messageRegExp:/.*disguiseToken.*/,weight:0},{messageRegExp:/Identifier 'YTNonstop' has already been declared/,
weight:1E3},{messageRegExp:/Cannot read properties of undefined (reading 'setTimeout')/,weight:0},{messageRegExp:/undefined is not an object \(evaluating 'this.\w+.setTimeout'\)/,weight:0},{messageRegExp:/BWB:Timeout/,weight:0},{messageRegExp:/NWA/,weight:0},{messageRegExp:/This document requires '((TrustedHTML)|(TrustedScript)|(TrustedScriptURL))' assignment/,weight:0},{messageRegExp:/The constructed element must not have any attributes/,weight:100},{messageRegExp:/runtime.browser/,weight:500},{messageRegExp:/Cannot call 'registerMenuCommand'/,
weight:500},{messageRegExp:/__data is undefined/,weight:0},{messageRegExp:/.*ddg-ctl-placeholder-blocked*/,weight:1E3}]),callbackWeights:[{callback:function(S){var c=S.stack;if(c.includes("chrome://")||c.includes("chrome-extension://")||S.message.includes("chrome-extension://")||c.includes("moz-extension://")||c.includes("local.adguard.org")||c.includes("auctioneer3.50million.club")||c.includes("youtubedownloader")||c.includes("youtube_home_page")||c.includes("is_youtube_video_no_longer_available")||
c.includes("switchScreenSizeHack")||c.includes("yt_main_big_banner.js")||c.includes("YouTubeCenter.js")||c.includes("/mytube.js")||c.includes("JSON.parseWrapper")||c.includes("/inj_js/common.js")||c.includes("firebug-lite")||c.includes(".repl.co/")||c.includes("linkfix")||c.includes("playAfterAd")||S.message.includes("Access is denied for this document")&&c.includes("<anonymous>")||S.fileName==="user-script"||S.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
c.includes("<anonymous>"))return!0;if(c.includes("https://www.youtube.com"))return!1;S=c.split("\n");if(!S.length)return!1;if(S.length<=3&&c.includes("s.onloadeddata"))return!0;c=0;for(var Q=_.A(S),f=Q.next();!f.done;f=Q.next())f=f.value,(f.includes("https://")||f.includes("http://"))&&c++;return c/S.length>.95},
weight:0},{callback:function(S){return S.message==="Unknown Error"&&S.name.indexOf("NS_")===0},
weight:100},{callback:function(S){if(!_.Fa)return!1;var c=S.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||S.message.includes("available to complete this operation"),Q=S.stack.includes("webcomponents")&&S.message==="Object doesn't support this action";S=S.message.includes("object that does not implement interface Element");return c||Q||S},
weight:0},{callback:function(S){return S.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(S){return S.message==="Operation is not supported"&&(S.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(S){return S.stack.includes("eval code (eval (code:1:1)")||S.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(S){return S.message.includes("Permission denied")&&S.stack.includes("this.domHandler")?!0:S.name.includes("TypeError")&&S.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(S){if(!S.stack)return!1;var c=S.stack.trim().split("\n");c.length&&c[0].endsWith("Error: "+S.message)&&c.shift();c.length&&c[c.length-1].includes("at window.onerror (")&&c.pop();if(!c.length)return!0;if(S.message==="Script error.")return c[0].includes("www.youtube.com")||c.length>=2&&c[0].startsWith("at new")&&c[1].startsWith("at window.onerror");if(S.message==="Unexpected token")return!0;S=_.A(c);for(c=S.next();!c.done;c=S.next())if(c=c.value,!(c.includes("<anonymous>")||
c.startsWith("load@")||c.startsWith("global code@")||c.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(S){return S.message==="Cannot read property 'experiments'"&&S.stack.includes("/s/player/")},
weight:500},{callback:function(S){return S.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(S){return S.stack.includes("/embed.js")?(S.params&&S.params&&(S.params.name="56"),!0):!1},
weight:1},{callback:function(){if(_.u("use_error_suppression"))var S=_.WY("SUPPRESS_CLIENT_ERRORS",!1);else{if(S=_.NJ)S=/Chrome\/(\d+)/.exec(_.bM()),S=(S?parseFloat(S[1]):NaN)>=66;S=!(S||_.bR&&_.nW(65)||_.GD&&_.nW(12.1)||yS&&_.nW(79))}return S},
weight:500}]};var mHB={},SZZ=(mHB.initialized={priority:10,callback:function(S){S.injector.addProvider({provide:wSz,useValue:S.root});S.injector.addProvider({provide:W0T,useValue:IcZ});S.injector.addProvider({provide:gjT,useValue:olZ});var c={};S.injector.addProvider((c.provide=evi,c.useFactory=function(Q,f){return function(){whx(Q,f)}},c[mt]=[W0T,
gjT],c));S.injector.addProvider({provide:Bu,useClass:Bu})}},mHB);var cUO={},QgG=(cUO.initialized={priority:3,callback:function(){var S;if(S=zzZ()){S=S.replace("/",".");var c=_.jL();c.set("tz",S);c.save();S=!0}else S=!1;S||(S=_.jL(),S.set("utco",-Math.floor((new Date).getTimezoneOffset())),S.save())}},cUO);var fBN={},UGg=(fBN.initialized={priority:10,callback:function(S){S.injector.resolve(Bu).start();S=_.vV();var c=_.gC("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.gC("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.gC("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.gC("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.IK(_.Z0T(),{mainAppWeb:Object.assign({},S,{pageType:c})});_.IK(WLp(),{mainAppWeb:Object.assign({},S,{pageType:c})});
_.IK(g5o(),{mainAppWeb:S});_.IK(eCx(),{mainAppWeb:S});VJH(function(){_.nj(g5o(),"FAILURE");_.nj(eCx(),"FAILURE")});
J9z();alM();LyZ()}},fBN);var JU2={},aBV=(JU2.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.i2("dl"),_.g2().processSignal("pcl");else{var S=function(){_.i2("dl");_.g2().processSignal("pcl");window.removeEventListener("load",S)};
window.addEventListener("load",S)}}},JU2);var AU0={},X80=(AU0.rendering={priority:0,callback:function(){var S=_.g2();S.parkOrScheduleJob(function(){S.processSignal("eocs")},10,"eor",5E3)}},AU0);var OTO=function(){};
_.C(OTO,gi);
OTO.prototype.resolveCommand=function(S,c){var Q,f,U,a,X,z,x,I;return _.O(function(n){U=(Q=_.Y(S,_.J1_))==null?void 0:(f=Q.dialog)==null?void 0:f.commentReplyDialogRenderer;if(!U)throw new _.Yr("No dialog in createCommentReplyDialogEndpoint");X=(a=c.form)==null?void 0:a.event;if(!X)throw new _.Yr("Event not passed in when resolving command");z=_.A(X.composedPath());for(x=z.next();!x.done;x=z.next())if(I=x.value,I.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||I.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return I.showReplyDialog(U),n.return();
_.IN(n)})};var np=function(S){this.pageRequestService=S;this.JSC$16395_prefetchCoordinator=C6z()};
_.C(np,gi);np.prototype.resolveCommand=function(S){var c=this,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1){Q=_.Y(S,goh);if((f=Q)==null||!f.taskId)throw Error("vj");U=Q.taskId;_.X1(X,2);return _.F(X,_.Z3$(c.pageRequestService,S,{},"").then(function(z){if(!z)throw Error("wj");},function(z){throw Error("xj`"+z);
}),4)}if(X.nextAddress!=2)return pPd(c.JSC$16395_prefetchCoordinator,U),_.Pi(X,0);
a=_.Bs(X);ED(c.JSC$16395_prefetchCoordinator,U,a);_.IN(X)})};
np[mt]=[H$];var bm=function(S){this.innertubeTransportService=S};
_.C(bm,gi);bm.prototype.resolveCommand=function(S){var c=this,Q,f;return _.O(function(U){Q=_.Y(S,kpH);if(Q.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||Q.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")f=Q.boolValue?2:1,_.oJ.getInstance().setState(f,!0,!0);return _.F(U,_.P3(c.innertubeTransportService,S),0)})};
bm[mt]=[_.M6];var N4={},z22=(N4.addToPlaylistEndpoint=SD(jF),N4.addToToastAction=SD(qb),N4.adsControlFlowOpportunityReceivedCommand=SD(fZ),N4.captionLanguageSelectActionCommand=SD(ZX),N4.captionPickerEndpoint=SD(GP),N4.changeMiniAppPlayStateCommand=SD(l$),N4.changeTimelyActionVisibilityCommand=SD(hy),N4.channelCreationFormEndpoint=SD(nZ),N4.clearLocationCommand=SD(u$),N4.clearUrlParamCommand=SD(YX),N4.copyLinkCommand=SD(rz),N4.copyTextEndpoint=SD(ae),N4.createCommentReplyDialogEndpoint=goo(OTO),N4.createPlaylistServiceEndpoint=
SD(dz),N4.dismissDialogEndpoint=SD(Hk),N4.entityUpdateCommand=SD(X7),N4.feedbackEndpoint=SD(xX),N4.getAnswerCommand=SD(soJ),N4.getPaymentsClientTokenCommand=SD(sl),N4.getTranscriptEndpoint=SD(TB),N4.googlePaymentBillingCommand=SD(Mb),N4.googlePaymentPurchaseManagerCommand=SD(iC),N4.hideEngagementPanelEndpoint=SD(DX),N4.hideSnackbarCommand=SD(Iy),N4.insertRichSectionCommand=SD(NQ),N4.listMutationCommand=SD(KZ),N4.logGtmCommand=SD(b$),N4.notifyDropdownOptionSelectedCommand=SD(CZ),N4.openAdAllowlistInstructionCommand=
SD(_.UQ),N4.openOnePickAddVideoModalCommand=SD(vk),N4.persistSubscriptionsDisplayPreferencesCommand=SD(Re),N4.pingingEndpoint=SD(Jx),N4.playlistEditEndpoint=SD(LZ),N4.playlistVotingRefreshPopupCommand=SD(EQ),N4.refreshPanelEndpoint=SD(pZ),N4.saveImageToDeviceEndpoint=SD(Ax),N4.scrollToSectionEndpoint=goo(MH_),N4.seekToVideoTimestampCommand=SD(Wk),N4.selectCountryCommand=SD(y6),N4.setCookieCommand=SD(oe),N4.setLocalStorageCommand=SD(bC),N4.setPrefStorageEntryCommand=SD(Sq),N4.setSettingEndpoint=SD(bm),
N4.sfvAudioItemPlaybackCommand=SD(gz),N4.shareImageCommand=SD(c4),N4.sharingProviderDataCommand=SD(Q9),N4.showCaptionLanguageSelectActionCommand=SD(eF),N4.showDialogCommand=SD(TP),N4.showEngagementPanelEndpoint=SD(wz),N4.showSheetCommand=SD(sQ),N4.showSnackbarCommand=SD(nd),N4.showTransientPlayerScrimOverlayCommand=SD(kX),N4.submitFormWithValidationFlowCommand=SD(Ie),N4.talkToRecsDeselectCommand=SD(Nb),N4.talkToRecsNextCommand=SD(Kd),N4.talkToRecsSelectCommand=SD($S),N4.talkToRecsUpdateTextCommand=
SD(pd),N4.toggleEngagementPanelCommand=SD(MQ),N4.undoFeedbackEndpoint=SD(Bk),N4.updateEngagementPanelContentCommand=SD(i$),N4.updateUrlParamCommand=SD(wR),N4.verifyCommand=SD(nZ),N4.webNativeShareCommand=SD(fd),N4.webSubmitFormCommand=SD(tx),N4.ACK_PLAYABLES_3P_DATA_CONSENT=SD(Ul),N4.CANCEL_NAVIGATION=SD(Jy),N4.COPY_SHARE_URL=SD(ay),N4.MINI_APP_EXIT_DIALOG_SEEN=SD(Xk),N4.MINI_APP_OPEN_URL=SD(Ay),N4.REQUEST_MINI_APP_FULLSCREEN=SD(Ol),N4.RESUME_NAVIGATION=SD(zB),N4.SHARE_PLAYABLE_WITH_HIGH_SCORE=SD(xS),
N4.TELL_US_WHY=SD(F7),N4);_.u("web_enable_prefetching_videos_on_home")&&(z22.prefetchWatchCommand=SD(np),z22.registerTasksCommand=SD(VC));_.u("enable_share_panel_navigation_logging_fix_on_web")&&(z22.shareEntityServiceEndpoint=SD(hx));var dci=Object.assign({},z22);var xGp={},FVN=(xGp.initialized={priority:10,callback:xtR},xGp);var B10={},IBG=(B10.initialized={callback:function(S){var c={},Q={};SgY().install((c.document_disposed={callback:function(){_.u("finalize_all_timelines")?J1c():wS();iHZ("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.xep();var f=S.injector.resolve(Bu);f.intervalId!==void 0&&(f.intervalId&&_.Mq.cancelJob(f.intervalId),f.intervalId=void 0,--f.currentPartitionIndex,f=$ez(f),f>0&&hep({mainAppWeb:_.vV(),survivalSli:{partitionMinute:f,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));$iu(dx);vA!=null&&
vA.flush();U_&&U_.snapshotAndFlush();f=_.A(Wrh.values());for(var U=f.next();!U.done;U=f.next())U.value.snapshotAndFlush()}},c),(Q.flush_logs={callback:function(){_.wQ()}},Q))}},B10);var n0E={},bTZ=(n0E.rendered={priority:0,callback:function(){var S=new ZRu;S.increment("STARTED");if(_.WY("LOGGED_IN")&&_.WY("SERVER_VERSION")!=="test"&&_.WY("SERVER_VERSION")!=="dev"&&!uo_()&&!$rs()){S.increment("EXECUTING");var c=document.createElement("iframe");c.style.display="none";_.KEo(c,2,_.jS("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.WY("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(c);S.increment("DONE")}}},n0E);var N1O={},KVp=(N1O.rendered={callback:function(){C6z().resume()}},N1O);var $GB={acknowledgeChannelTouStrikeCommand:Yk(z5),addToPlaylistServiceEndpoint:Yk(AJ),addToPlaylistEndpoint:Yk(AJ),addUpcomingEventReminderEndpoint:Yk(HS),browseEndpoint:Yk(a1z),channelCreationFormEndpoint:Yk(fo),channelCreationServiceEndpoint:Yk(Ug),claimLegacyYoutubeChannelEndpoint:Yk(v4),clearSearchHistoryEndpoint:Yk(Ne),clearWatchHistoryEndpoint:Yk(Ko),commerceActionCommand:CJ(hJ),createBackstagePostEndpoint:Yk(W4),createBroadcastCommand:Yk(Dd),createCommentEndpoint:Yk(m_),createCommentReplyEndpoint:Yk(oy),
createLiveChatPollEndpoint:Yk(po),createPlaylistServiceEndpoint:Yk(X0),crossAccountChannelTransferEndpoint:Yk(jM),deleteLiveChatMessageCommand:Yk(h0),deletePlaylistEndpoint:Yk(OD),deleteVideoEndpoint:Yk(CI),dismissalEndpoint:Yk(xV),feedbackEndpoint:Yk(Ft),flagEndpoint:Yk(nI),getAccountSwitcherEndpoint:Yk(ua),verifyCommand:Yk(GB),getAccountsListInnertubeEndpoint:Yk(YV),getCommentsFromInboxCommand:Yk(vS),getDownloadActionCommand:Yk(y4),getFlowCommand:CJ(ba),getKidsBlocklistPickerCommand:Yk(b_),getNotificationMenuEndpoint:Yk(Oru),
getPaymentInstrumentsParamsCommand:Yk(i_),getPaymentsClientTokenCommand:CJ(hJ),getPdgBuyFlowCommand:Yk(JJ),getReportFormEndpoint:Yk(Nh),getSearchInVideoCommand:Yk(u_),getAnswerCommand:Yk($W),getSurveyCommand:Yk(YW),getTranscriptEndpoint:Yk(DH),getPostVideoPreviewEndpoint:Yk(eq),decorateMessageEndpoint:Yk(gR),likeEndpoint:Yk(J0),liveChatActionEndpoint:Yk(sg),liveChatEndpoint:Yk(wW),liveChatItemContextMenuEndpoint:Yk(qe),liveChatPurchaseMessageEndpoint:Yk(Me),liveChatReplayEndpoint:Yk(T5),manageLiveChatUserEndpoint:Yk(Zd),
metadataUpdateCommand:Yk(rW),moderateLiveChatEndpoint:Yk(G5),modifyChannelNotificationPreferenceEndpoint:Yk(t0),notificationOptOutEndpoint:Yk(V4),openSuperStickerBuyFlowCommand:Yk(ia),performCommentActionEndpoint:Yk(V9),playlistEditEndpoint:Yk(xW),playlistEditorEndpoint:Yk(zl),profileCardCommand:Yk(Co),recordNotificationInteractionsEndpoint:Yk(RG),reelWatchEndpoint:Yk(F0),refreshPanelEndpoint:Yk(m$),removeUpcomingEventReminderEndpoint:Yk(WS),resolveLocationCommand:Yk(kV),revealBusinessEmailCommand:Yk(P4),
searchEndpoint:Yk(_.zvl),sendLiveChatMessageEndpoint:Yk(gW),sendLiveChatVoteEndpoint:Yk(eM),setSettingEndpoint:Yk(aG),shareEntityServiceEndpoint:CJ(Og),sharingProviderDataCommand:Yk(l_),showEngagementPanelEndpoint:Yk(SY),showMoreDrawerCommand:Yk(QC),showSheetCommand:Yk(fI),showDialogCommand:Yk(cW),subscribeEndpoint:Yk(A0),transcriptSubmitCaptionCorrectionCommand:Yk(HW),undoFeedbackEndpoint:Yk(IG),unsubscribeEndpoint:Yk(Xt),updateBackstagePostEndpoint:Yk(rR),updateCommentEndpoint:Yk(cS),updateCommentReplyEndpoint:Yk(SM),
updateCommentsSettingsEndpoint:Yk(Q4),updateCreatorChannelInnertubeCommand:Yk(El),updateKidsBlacklistEndpoint:Yk(KI),updateEngagementPanelContentCommand:Yk(UD),updatePdgFeatureEnablementCommand:Yk(aE),updatedMetadataEndpoint:Yk(dW),validateChannelHandleCommand:Yk(ty),updateChannelPageSettingsEndpoint:Yk(Ld),verifyAgeEndpoint:Yk(no),watchEndpoint:CJ(bs),whitelistEditEndpoint:Yk(pI),ypcCancelRecurrenceEndpoint:Yk(qh),ypcCompleteTransactionEndpoint:Yk(Tl),ypcFixInstrumentEndpoint:Yk(sD),ypcGetCartEndpoint:Yk(wf),
ypcGetOffersEndpoint:Yk(Mh),ypcHandleTransactionEndpoint:CJ(ZH),ypcLogWalletAnalyticDataEndpoint:Yk(Gl),ypcOffersEndpoint:Yk(WW),ypcPauseSubscriptionCommand:Yk(gf),ypcRedeemCodeEndpoint:Yk(eY),ypcResumeSubscriptionCommand:Yk(kW),ypcUpdateFopEndpoint:Yk(sD)},Kp={},uEZ=(Kp.GET_ACCOUNT_MENU=Yk(la),Kp.GET_NOTIFICATIONS_MENU=Yk(XP$),Kp.GET_NOTIFICATIONS_INBOX=Yk(PS),Kp.GET_UNSEEN_NOTIFICATION_COUNT=Yk(Eg),Kp.GET_USER_MENTION_SUGGESTIONS=Yk(kS),Kp.LOAD_GUIDE=Yk(ACz),Kp.SUBMIT_FEEDBACK=Yk(BS),Kp),$8={},
jgE=($8.CONTINUATION_REQUEST_TYPE_BROWSE=Yk(dR),$8.CONTINUATION_REQUEST_TYPE_SEARCH=Yk(jY),$8.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=Yk(KM),$8.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=Yk($V),$8.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=Yk(y9),$8.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=Yk(Ry),$8.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=Yk(IE),$8.CONTINUATION_REQUEST_TYPE_GET_PANEL=Yk(oG),$8),lB1={player:CJ(bs),watchNext:Yk(Nu)},YZB={player:CJ(bs),reelItemWatch:Yk(F0),reelWatchSequence:Yk(BW)},
CE2={watchEndpoint:CJ($R)},HT8={commandEndpointMap:$GB,signalEndpointMap:uEZ,continuationEndpointMap:jgE,watchEndpointMap:lB1,reelWatchEndpointMap:YZB,streamingEndpointMap:CE2};var DGV,p8Z,h2V,qZT={disableAllTransitions:(p8Z=(DGV=window).matchMedia)==null?void 0:(h2V=p8Z.call(DGV,"(prefers-reduced-motion: reduce)"))==null?void 0:h2V.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["learning-journey",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:600}}]])};var F4z={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 IlY=["videoPrimaryInfoRenderer","title"],nTT=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var T18;T18=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.w8g=_.y_(function(S){S=_.V_(S,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var c=S.data,Q=S.playlistData,f=S.expanded,U=S.onExpandClick,a=S.isReadyToResume,X=function(){var n;return!((n=Q())==null||!n.contents)},z=function(){var n=Q();
return n&&n.totalVideos&&n.currentIndex!==void 0?n.currentIndex+1+" / "+n.totalVideos:""};
S=_.$d(function(){_.um(_.fl().resolve(_.ra));return!1});
var x=_.$d(function(){X()&&U&&U()}),I={};
return _.B("ytd-miniplayer-info-bar",{class:_.n4("ytdMiniplayerInfoBarHost",(I.ytdMiniplayerInfoBarHasPlaylistData=X,I)),"on:click":x},_.B("div",{class:"ytdMiniplayerInfoBarContent"},_.B("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":S},_.B(_.mw,{text:function(){var n=c();var b=Q();if(b==null?0:b.contents){var N;n=(N=_.Sxr(b))==null?void 0:N.title}else n=n==null?void 0:n.miniplayerTitle;return Nmz(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.B("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.B(_.K,{cond:a,then:function(){return _.B(wWd,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:T18})}}),_.B("h1",null,_.B(_.mw,{className:"ytdMiniplayerInfoBarSubtitleText",
text:function(){var n=c();var b=Q();n=a()?{simpleText:_.K8("CONTINUE_WATCHING",void 0,"Continue watching")}:(b==null?0:b.contents)?b.titleText:n==null?void 0:n.miniplayerSubtitle;return Nmz(n)},
noEndpoints:!0,ellipsisTruncate:!0})),_.B(_.K,{cond:function(){return!!z()&&!a()},
then:function(){return _.B("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.B("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.B("span",null,z))}}))),_.B(_.K,{cond:X,
then:function(){return _.B("div",{class:"ytdMiniplayerInfoBarExpand"},_.B(cZ,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(n){U&&(U(),n.stopPropagation())}}},
iconName:function(){return f()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"ue");var sgZ;sgZ=_.y_(function(S){return _.B("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.B(cZ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:S.onTap}},
iconName:"yt-icons:close"}))},"ve");
_.MNG=_.y_(function(S){S=_.V_(S,{playabilityStatus:void 0,isDisabled:!1});var c=S.size,Q=S.playabilityStatus,f=S.isDisabled,U=_.EH("div");S=_.A(_.ny(void 0,void 0,"bJr0Se"));var a=S.next().value,X=S.next().value;S=_.Gs(_.$u);var z=!1,x=function(){return c().height<=0};
_.To(function(){var N=c(),l=x(),H=a();H&&!l&&H.setInternalSize(N.width,N.height)},"OUOyKb");
_.qR(function(){var N,l,H;return _.O(function(q){if(q.nextAddress==1){N=_.fl().resolve(_.ra);l=N.getPlayerElement();if(!N.isMiniplayerActive()||!l||!U.value)return q.return();l.appendTo(U.value);return _.F(q,l.getPlayerPromise(),2)}H=q.yieldResult;H.setSizeStyle(!1,!0);X(H);_.IN(q)})});
_.wX(function(){I()});
_.To(function(){var N=a();if(N)if(f()){var l=N.getPlayerState();(z=l===-1||l===1||l===3)&&N.pauseVideo()}else I()},"KKHe5");
var I=function(){if(z){z=!1;var N;(N=a())==null||N.playVideo()}},n=_.$d(function(){_.um(_.fl().resolve(_.ra))}),b={};
return _.B("ytd-miniplayer-player-container",{class:_.n4("ytdMiniplayerPlayerContainerHost",(b.ytdMiniplayerPlayerContainerHidden=x,b.ytdMiniplayerPlayerContainerHostShortsPip=S,b)),style:_.Yd({width:function(){return c().width+"px"},
height:function(){return c().height+"px"}})},_.B("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:U}),_.B(_.K,{cond:function(){return!!Q()&&!_.aDx(Q())},
then:function(){return _.B(HVu,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var N;return((N=Q())==null?void 0:N.errorScreen)||null},
status:function(){var N;return((N=Q())==null?void 0:N.status)||null}})}}),_.B(_.K,{cond:f,
then:function(){return _.B("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":n},_.B(sgZ,{onTap:function(){_.fl().resolve(_.ra).close()}}))}}))},"we");_.iTE=_.y_(function(S){var c=S.toastData;var Q=_.EH("ytd-miniplayer-toast");S=_.A(_.l8(function(){return!!c()}));
var f=S.next().value,U=S.next().value;S=_.A(_.ny(!1,void 0,"xkrBze"));var a=S.next().value,X=S.next().value,z=function(){var n;return _.Em((n=c())==null?void 0:n.data.title)};
_.wC(function(){_.k1.requestAvailability();c()&&U(!1)});
var x,I;_.To(function(){f()&&(_.Az(Q.value,"iron-announce",{text:c().label+" "+z()}),x&&_.Mq.cancelJob(x),x=_.Mq.addLowPriorityJob(function(){X(!0)},2500))},"OTdL1e");
_.To(function(){a()&&(I&&_.Mq.cancelJob(I),I=_.Mq.addLowPriorityJob(function(){U(!1);X(!1)},300))},"yybqib");
S={};return _.B("ytd-miniplayer-toast",{el:Q,class:_.n4("ytdMiniplayerToastHost",(S.ytdMiniplayerToastOpening=function(){return f()},S.ytdMiniplayerToastClosing=function(){return a()},S))},_.B(_.K,{cond:function(){var n;
return(n=c())==null?void 0:n.data},
then:function(n){return _.B(g8z,{className:"ytdMiniplayerToastThumbnail",data:n,width:78})}}),_.B("div",{class:"ytdMiniplayerToastInfo"},_.B("div",{class:"ytdMiniplayerToastLabel"},function(){var n;
return(n=c())==null?void 0:n.label}),_.B("div",{class:"ytdMiniplayerToastTitle"},z)))},"xe");var pTo;var wTM=new Set,Tmp=null;var Mvp=null;var GOO=_.y_(function(S){var c=S.progressState;var Q=S.multiMarkersPlayerBarRenderer;var f=S.progressBarWidth;var U=function(){return W4x(Q())},a=function(){return kqR(c())},X=function(){return f()*(c().playedTime/c().videoDuration)};
return _.B("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.B(_.lW,{each:U},function(z,x){return _.B(ZTN,{modifiedProps:a,chapters:U,index:x,playedProgressWidth:X,backgroundGradientPosition:function(){var I=a(),n=U(),b=x(),N=X();return(I.playedTime-eP(_.Y(n[b],W$)))/I.playedTime*N}})}))},"ye"),ZTN=_.y_(function(S){var c=S.modifiedProps;
var Q=S.chapters;var f=S.index;var U=S.playedProgressWidth;var a=S.backgroundGradientPosition;S={};S=_.n4("ytChapteredProgressBarChapteredPlayerBarChapter",(S.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return X().isScrubbing},S.ytChapteredProgressBarHoveredMacroMarker=function(){return X().scrubberHovering},S.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return X().videoPosition==="seen"},S));
var X=function(){return r9p(c(),Q(),f())},z=function(){var x=c();
var I=Q(),n=f();if(r9p(x,I,n).videoPosition!=="active")x=0;else{var b=eP(_.Y(I[n],W$));x=(x.playedTime-b)/((eP(_.Y(I[n+1],W$))||x.videoDuration)-b)}return x};
return _.B("div",{class:S,style:_.Yd({width:function(){var x=c(),I=Q(),n=f(),b=_.Y(I[n],W$);I=_.Y(I[n+1],W$);return(I?eP(I)-eP(b):x.videoDuration-eP(b))/x.videoDuration*100+"%"},
"background-color":function(){a:{var x=X();switch(x.videoPosition){case "pending":x=x.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":x=x.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:x=""}}return x},
"background-size":function(){return(dtZ(X())?U():"")+"px"},
"background-position-x":function(){return(dtZ(X())?a():"")+"px"}})},_.B("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var x=c(),I=Q(),n=f();if(r9p(x,I,n).videoPosition==="seen")var b=0;else b=eP(_.Y(I[n],W$)),I=eP(_.Y(I[n+1],W$))||x.videoDuration,x=x.videoDuration*x.percentLoaded,b=I<=x?1:b>=x?0:(x-b)/(I-b);return"width: "+b*100+"%"}}),_.B("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.Yd({width:function(){return z()*100+"%"},
"background-size":function(){return(dtZ(X(),z())?U():"")+"px"},
"background-position-x":function(){return(dtZ(X(),z())?a():"")+"px"}})}))},"ze");var WV1=function(S,c){c=c===void 0?QWs:c;var Q,f=[],U,a=!1;return function(){var X=_.YD.apply(0,arguments);if(a&&Q===this&&c(X,f))return U;U=S.apply(this,X);a=!0;Q=this;f=X;return U}}(function(S){var c=S.heatMarkers,Q=S.minHeightDp===void 0?0:S.minHeightDp,f=S.maxHeightDp===void 0?60:S.maxHeightDp;
var U=U===void 0?!1:U;var a=1E3/c.length;S=[];S.push({x:0,y:100});for(var X=0;X<c.length;X++){var z=void 0,x=((z=_.Y(c[X],gci))==null?void 0:z.heatMarkerIntensityScoreNormalized)||0;z=(X+.5)*a;x=100-_.Zv(x*100,Q/321*100,f/321*100);X!==0||U||S.push({x:0,y:x});S.push({x:z,y:x});X===c.length-1&&S.push({x:1E3,y:x})}S.push({x:1E3,y:100});c="";for(Q=0;Q<S.length;Q++)U=S[Q],Q===0?U="M "+U.x.toFixed(1)+","+U.y.toFixed(1):(f=Uyz(S[Q-1],S[Q-2],U),a=Uyz(U,S[Q-1],S[Q+1],!0),U=" C "+(f.x.toFixed(1)+","+f.y.toFixed(1)+
" "+a.x.toFixed(1)+","+a.y.toFixed(1)+" "+U.x.toFixed(1)+","+U.y.toFixed(1))),c+=U;return c});var g0E=_.y_(function(S){var c=S.progressBarProps;var Q=S.config;var f={};S=_.n4("ytHeatSeekerHost",(f.ytHeatSeekerHighContrast=S.highContrast,f));var U=function(){return llp(Q().chapterData)};
return _.B("yt-progress-bar-heatseeker",{class:S,style:function(){var a;return"height: 320px; display: "+(c().isDragging&&((a=U())==null?0:a.heatMarkers)?"block":"none")}},_.B(_.K,{cond:U,
then:function(a){return _.B(_.K,{cond:function(){return a().heatMarkers},
then:function(){return _.B("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.B("path",{d:function(){return WV1(a())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"Ae");var e2E=_.y_(function(S){var c=S.progressBarProps;var Q=S.config;S={};S=_.n4("ytProgressBarLineProgressBarLine",(S.ytProgressBarLineProgressBarLineRounded=function(){return Q().rounded},S.ytProgressBarLineProgressBarLineBottomInset=function(){return Q().position===2},S));
return _.B("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.B("div",{class:S},_.B("div",{class:"ytProgressBarLineProgressBarBackground"}),_.B("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+c().percentLoaded*100+"%"}}),_.B("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var f=c();return"width: "+(f.videoDuration?_.Zv(f.hoveredTime/f.videoDuration,0,1):0)*100+"%"}}),_.B("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+$tR(c())*100+"%"}})))},"Be");
e2E.idomCompat=!0;var kOG=_.y_(function(S){var c=S.progressBarProps;var Q=S.playheadData;var f=S.interpolateDotPosition;var U=S.hidePlayhead;S={};var a=_.n4("ytProgressBarPlayheadProgressBarPlayheadDot",(S.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return c().isDragging},S.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!c().isDragging&&U()},S));
return _.B("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.Yd({"margin-left":function(){return uGz(c())*100+"%"},
transform:function(){return"translateX(-"+(f()?uGz(c())*12:6)+"px)"}})},_.B(_.K,{cond:function(){var X;
return(X=_.tq(Q)())==null?void 0:X.playheadImage},
then:function(X){var z={};return _.B("div",{class:_.n4("ytProgressBarPlayheadProgressBarPlayheadCustom",(z.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return c().isDragging},z.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!c().isDragging&&U()},z)),
style:_.Yd({"transform-origin":function(){return(f()?uGz(c())*20:10)+"px center"}})},_.B(_.RW,{data:X,
alt:"","aria-hidden":"true"}))},
else:function(){return _.B("div",{class:a,style:_.Yd({"transform-origin":function(){return(f()?uGz(c())*12:6)+"px center"}})})}}))},"Ce");
kOG.idomCompat=!0;var jZ=function(S,c,Q,f,U,a){this.getProgressBarRect=S;this.updateProgressBarRect=c;this.getFilmstripYPosition=Q;this.setFineScrubbingDraggedTime=f;this.updateFilmStripDraggedYDistance=U;this.resetFilmStripYOffset=a;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.S0(this.onThrottledSeek,100,this)},rUE=function(S,c,Q){return function(f){S.handleClick(f,c(),Q())}},PET=function(S,c){return function(Q){dGT(S,
Q,v0B(Q),c())}},LVE=function(S,c){return function(Q){dGT(S,Q,{x:Q.clientX,
y:Q.clientY},c())}},tNp=function(S,c,Q){return function(f){var U=c(),a=Q();
E0E(S,f,v0B(f),U,a,!0);if(a.onTouchMove)a.onTouchMove(U)}},R2Z=function(S,c,Q){return function(f){VN8(S,f,c(),Q())}},yUO=function(S,c){return function(){S.handleMouseLeave(c())}},o0U=function(S,c,Q){return function(){var f=c(),U=Q();
lm(S,f,U);if(U.onTouchEnd)U.onTouchEnd(f)}},mG8=function(S,c,Q){return function(){var f=c(),U=Q();
lm(S,f,U);if(U.onTouchEnd)U.onTouchEnd(f)}},SCN=function(S,c,Q){return function(){lm(S,c(),Q())}},cjE=function(S){return function(c){if(c.keyCode===39||c.keyCode===38){var Q,f;
(Q=S())==null||(f=Q.playerApi)==null||f.seekBy(5,void 0,void 0,72)}else if(c.keyCode===37||c.keyCode===40){var U,a;(U=S())==null||(a=U.playerApi)==null||a.seekBy(-5,void 0,void 0,71)}}},QAN=function(S,c,Q){return function(f){!Q().disableScrubbing&&S.startPosition&&VN8(S,f,c(),Q())}},fR0=function(S,c,Q){return function(){if(!Q().disableScrubbing)if(S.startPosition){var f=c(),U=Q();
lm(S,c(),Q());if(U.onTouchEnd)U.onTouchEnd(f)}else c().setState({isDragging:!1})}},v0B=function(S){S=S.touches[0];
return{x:S.clientX,y:S.clientY}},VN8=function(S,c,Q,f){if(c.buttons!==1){if(c.movementX||c.movementY)c.preventDefault(),c.stopPropagation(),S=UVg(S,Q,c.clientX),Q.setState({isHovering:!0,
hoveredTime:S*Q.videoDuration})}else Jj0(Q),E0E(S,c,{x:c.clientX,y:c.clientY},Q,f,!1)};
jZ.prototype.handleMouseLeave=function(S){Jj0(S)};
var Jj0=function(S){S.isHovering&&S.setState({isHovering:!1,hoveredTime:0})},dGT=function(S,c,Q,f){S.startPosition||(S.startPosition=Q,S.updateProgressBarRect(),S.controlsWereVisibleBeforeDragging=f.controlsVisible,c.stopPropagation(),_.u("medium_progress_bar_modification")||c.preventDefault())},E0E=function(S,c,Q,f,U,a){if(S.startPosition)if(a&&U.isInlinePlayback&&S.startPosition&&!S.hasDraggedTheMinimumDistance&&Math.abs(Q.y-S.startPosition.y)>Math.abs(Q.x-S.startPosition.x))lm(S,f,U);
else if(c.preventDefault(),c.stopPropagation(),f.videoDuration&&(S.startPosition&&!S.hasDraggedTheMinimumDistance&&(S.hasDraggedTheMinimumDistance=Math.abs(Q.x-S.startPosition.x)>=1),U.enableFineScrubbing&&(S.startPosition&&(S.isDraggedForFineScrubbing=-(Q.y-S.startPosition.y)>=60),!S.startPosition||Q.y>=S.startPosition.y||(f.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:vTc(f.draggedTime,f,U.chapterData)}),S.setFineScrubbingDraggedTime(f.draggedTime),S.updateFilmStripDraggedYDistance(S.startPosition.y,
Q.y,f))),S.hasDraggedTheMinimumDistance)){c=UVg(S,f,Q.x);if(S.isDraggedForFineScrubbing){var X;(X=f.playerApi)==null||X.pauseVideo();f.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:f.draggedTime,filmStripXDistance:vTc(c*f.videoDuration,f,U.chapterData)})}U.enableFineScrubbing&&(!U.enableFineScrubbing||S.getFilmstripYPosition(f)<68)||f.setState({draggedTime:c*f.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:S.controlsWereVisibleBeforeDragging});var z;(z=
U.cancelAutohideControlsFn)==null||z.call(U)}},lm=function(S,c,Q){var f=Q.enableFineScrubbing&&c.fineScrubbingActiveState!=="off";
if(c.isDragging||f){f={isDragging:!1,playedTime:c.draggedTime,controlsVisible:S.controlsWereVisibleBeforeDragging};Q.enableFineScrubbing&&c.fineScrubbingActiveState!=="on"&&(S.resetFilmStripYOffset(),f.fineScrubbingActiveState="off");var U=U===void 0?Mvp:U;var a=_.wN(0);a&&U&&_.Vw(a,U,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(c.playedTime*1E3),endMediaTimeMs:Math.round(c.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});c.setState(f);
S.seekThrottle.fire(c.draggedTime,c,7);_.u("mweb_new_progress_bar_play_on_seek")&&S.resumeVideo(c);Q.unmuteOnSeek&&(Q=c.playerApi,c.volumeMuted&&(Q==null||Q.unMute()))}else c.setState({controlsVisible:!c.controlsVisible}),(a=Q.triggerAutohideControlsAfterDelayFn)==null||a.call(Q);S.startPosition=null;S.hasDraggedTheMinimumDistance=!1;S.isDraggedForFineScrubbing=!1;S.controlsWereVisibleBeforeDragging=!1};
jZ.prototype.handleClick=function(S,c,Q){this.updateProgressBarRect();S.stopPropagation();S=UVg(this,c,S.clientX)*c.videoDuration;c.setState({playedTime:S});if(c.playerState!==2){var f;(f=Q.triggerAutohideControlsAfterDelayFn)==null||f.call(Q)}this.seekThrottle.fire(S,c,7)};
var UVg=function(S,c,Q){S=S.getProgressBarRect(c);return _.Zv(0,(Q-S.left)/S.width,1)};
jZ.prototype.resumeVideo=function(S){if(S.draggedTime<S.videoDuration){var c;(c=S.playerApi)==null||c.playVideo()}};
jZ.prototype.onThrottledSeek=function(S,c,Q){if(c=c.playerApi){var f;if((f=c.getVideoData())==null?0:f.isLive)f=this.getProgressState(c),S+=(f==null?void 0:f.seekableStart)||0;c.seekTo(S,void 0,void 0,void 0,Q)}};
jZ.prototype.getProgressState=function(S){var c=S==null?void 0:S.getPresentingPlayerType();return S==null?void 0:S.getProgressState(c)};var XaV,Aj2,Oh1,xVU,aRV,FE8,BU1,IRB,nZE;XaV=_.y_(function(S){var c=S.progressBarProps;var Q=S.config;var f=S.progressBarWidthPx;var U=S.chapterData;var a=Vvz(c,function(){return Q().isShortsPage}),X=function(){return!c().isHovering&&!Q().isShortsPage};
S={};var z=_.n4("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(S.ytPlayerStoryboardHostMwebShorts=function(){return Q().isShortsPage&&!1},S));
return _.B("yt-player-storyboard",null,_.B(_.K,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.B(_.K,{cond:a,then:function(x){return _.B(_.K,{cond:X,then:function(){return _.B("div",{class:z,"aria-hidden":"true"},_.B(aRV,{props:c,config:Q,isBigboard:!0,chapterData:U}))},
else:function(){return _.B(Aj2,{props:c,frame:x,config:Q,progressBarWidthPx:f,chapterData:U})}})}})}}))},"De");
_.zQV=_.y_(function(S){var c=S.progressBarProps;var Q=Vvz(c,S.isShortsPage);return _.B("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.B(_.K,{cond:function(){return c().isDragging||c().isHovering},
then:function(){return _.B(_.K,{cond:Q,then:function(f){return _.B(Oh1,{frame:f,props:c,isBigboard:!0})}})}}))},"Ee");
Aj2=_.y_(function(S){var c=S.props;var Q=S.frame;var f=S.config;var U=S.progressBarWidthPx;S=S.chapterData;var a={};a=_.n4("ytPlayerStoryboardHost",(a.ytPlayerStoryboardHostMwebShorts=function(){return f().isShortsPage&&!1},a.ytPlayerStoryboardHostInlinePlayer=function(){return f().isInlinePlayer},a.ytPlayerStoryboardHostFadeIn=function(){return f().useFadeInAnimation},a));
return _.B("div",{class:a,"aria-hidden":"true",style:function(){var X=c(),z=Pqo(Q()),x=U();X=L4c(X)/X.videoDuration;var I=x*X,n=z/2+6;z=x-(z/2+6);return"left: "+(I<=n?n/x*100:I>=z?z/x*100:X*100)+"%"}},_.B(_.K,{cond:function(){var X=c();
return!(f().isShortsPage&&X.videoDuration<15)},
then:function(){return _.B(Oh1,{frame:Q,props:c,isBigboard:!1})}}),_.B(aRV,{props:c,
config:f,isBigboard:!1,chapterData:S}))},"Fe");
Oh1=_.y_(function(S){var c=S.frame;var Q=S.props;var f=S.isBigboard;var U=function(){var z,x;return(x=(z=Q().playerApi)==null?void 0:z.getVideoContentRect())!=null?x:{width:0,height:0}},a=function(){return Pqo(c())},X=function(){var z=c();
return z?z.height/z.rows:0};
S={};S=_.n4((S.ytPlayerStoryboardBigboardImageWrapper=f,S.ytPlayerStoryboardStoryboardImageWrapper=function(){return!f()},S));
return _.B("div",{class:S,style:function(){return"width: "+(f()?U().width:a())+"px; height: "+(f()?U().height:X())+"px;"}},_.B(xVU,{frame:c,
storyboardWidth:a,storyboardHeight:X,storyboardScale:function(){return(f()?U().width:a())/a()}}))},"Ge");
xVU=_.y_(function(S){var c=S.frame;var Q=S.storyboardWidth;var f=S.storyboardHeight;var U=S.storyboardScale;var a=function(){var X=c().row,z=c().column,x=Q(),I=f(),n=U();return{left:-z*x*n,top:-X*I*n}};
return _.B("img",{src:function(){return c().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+a().left+"px; top: "+a().top+"px; width: "+c().width*U()+"px; height: "+c().height*U()+"px;"}})},"He");
aRV=_.y_(function(S){var c=S.props;var Q=S.config;var f=S.isBigboard;var U=S.chapterData;S={};S=_.n4("ytPlayerStoryboardMetadata",(S.ytPlayerStoryboardMetadataBigboard=f,S));return _.B("div",{class:S},_.B(_.K,{cond:f,then:function(){return _.B(_.ak,null,_.B(FE8,{props:c,config:Q}),_.B(_.K,{cond:function(){a:{var a=c();var X=Q(),z=U(),x;if((X==null?0:X.activeChapter)&&((x=_.Y(X==null?void 0:X.activeChapter,W$))==null?0:x.title))a=!0;else{X=_.A(YUY(z));for(X=X.next();!X.done;X=X.next()){a=(X=_.Y(X.value,
kFd))&&ETY(a,X);break a}a=!1}}return a},
then:function(){return _.B(BU1,{props:c,config:Q,isBigboard:!0,chapterData:U})}}))},
else:function(){return _.B(_.ak,null,_.B(BU1,{props:c,config:Q,isBigboard:!0,chapterData:U}),_.B(FE8,{props:c,config:Q}))}}))},"Ie");
FE8=_.y_(function(S){var c=S.props;var Q=S.config;S={};S=_.n4("ytPlayerStoryboardTimestamp",(S.ytPlayerStoryboardTimestampShorts=function(){return Q().isShortsPage},S.ytPlayerStoryboardTimestampIsHovering=function(){return c().isHovering||Q().isShortsPage&&!0},S));
return _.B("div",{class:S},_.B(_.ak,null,function(){return _.tvZ(L4c(c()))}))},"Je");
BU1=_.y_(function(S){var c=S.props;var Q=S.config;var f=S.isBigboard;var U=S.chapterData;S={};f=_.n4("ytPlayerStoryboardTitle",(S.ytPlayerStoryboardTitleBigboard=f,S));return _.B("div",{class:f},_.B(_.K,{cond:function(){return!Q().isShortsPage},
then:function(){return _.B(IRB,{props:c,activeChapter:function(){return Q().activeChapter},
chapterData:U})}}))},"Ke");
IRB=_.y_(function(S){var c=S.props;var Q=S.activeChapter;var f=S.chapterData;return _.B(_.ak,null,_.B(_.lW,{each:function(){return YUY(f())},
keyBy:"INDEX"},function(U){return _.B(_.ak,null,_.B(_.K,{cond:function(){return _.Y(U(),kFd)&&ETY(c(),_.Y(U(),kFd))},
then:function(){return _.B(nZE,{timedMarker:function(){return _.Y(U(),kFd)}})}}))}),_.B(_.K,{cond:function(){var U;
return Q()&&((U=_.Y(Q(),W$))==null?void 0:U.title)},
then:function(U){return _.B(_.mw,{text:U,noPreWrap:!0})}}))},"Le");
nZE=_.y_(function(S){var c=S.timedMarker;return _.B(_.ak,null,_.B("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.B(_.C4,{icon:function(){return c().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.B(_.mw,{text:function(){return c().label},
noPreWrap:!0}))},"Me");_.bhB=_.y_(function(S){var c=S.progressBarProps;var Q=S.playheadData;var f=S.config;S=_.EH("yt-progress-bar");var U=_.EH("div"),a=_.EH("div"),X=_.A(_.ny({width:0,left:0},void 0,"NcXsUb")),z=X.next().value,x=X.next().value,I=function(){a.value&&x(a.value.getBoundingClientRect())},n=function(){z().width<=0&&I();
return z()};
mY("resize",I);var b=new jZ(n,function(){},function(){return 0},function(){},function(){},function(){}),N=function(){return c()};
X=_.A(_.ny(!1,void 0,"ZsF6Xc"));var l=X.next().value,H=X.next().value;X=_.$d(function(){H(!0);f().position===2?setTimeout(function(){I()},100):I()});
var q=_.$d(function(){H(!1);yUO(b,N)()}),w=_.$d(function(ex){f().doSeekOnClick&&rUE(b,N,f)(ex);
return!1}),g=_.$d(function(ex){PET(b,N)(ex);
return!1}),r=_.$d(function(ex){LVE(b,N)(ex);
return!1}),E=_.$d(function(ex){tNp(b,N,f)(ex);
return!1}),v=_.$d(function(ex){R2Z(b,N,f)(ex);
return!1}),t=_.$d(function(){o0U(b,N,f)();
return!1}),V=_.$d(function(){mG8(b,N,f)();
return!1}),AZ=_.$d(function(){SCN(b,N,f)();
return!1}),IH=_.$d(function(ex){cjE(N)(ex);
return!1});
mY("mousemove",QAN(b,N,f));mY("mouseup",fR0(b,N,f));_.wC(function(){iFx(U.value);H(!1);I();fR0(b,N,f)()});
var Nr={};Nr=_.n4("ytPlayerProgressBarHost",function(){return f().className},(Nr.ytPlayerProgressBarHostReadOnly=function(){return f().disableScrubbing},Nr.ytPlayerProgressBarHostHidden=function(){return f().hideProgressBar&&!l()},Nr.ytPlayerProgressBarHostLowerPlayer=function(){return f().position===0},Nr.ytPlayerProgressBarHostBottomEdge=function(){return f().position===1},Nr.ytPlayerProgressBarHostBottomInset=function(){return f().position===2},Nr.ytPlayerProgressBarHostCustom=function(){return f().position===
3},Nr));
var Hc={},qr=_.n4("ytPlayerProgressBarBackground",(Hc.ytPlayerProgressBarBackgroundHide=function(){return f().position===2&&!l()&&!c().isDragging},Hc));
Hc={};Hc=_.n4("ytPlayerProgressBarDragContainer",(Hc.ytPlayerProgressBarDragContainerBottomEdge=function(){return f().position===1},Hc));
var wp={};wp=_.n4("ytPlayerProgressBarProgressBar",(wp.ytPlayerProgressBarProgressBarInset=function(){return f().position===2},wp.ytPlayerProgressBarProgressBarInsetMinimized=function(){return f().position===2&&!l()&&!c().isDragging},wp));
var Pc=function(){return Math.floor($tR(c())*100)};
return _.B("yt-progress-bar",{el:S,class:Nr},_.B(_.K,{cond:function(){return f().position===2},
then:function(){return _.B("div",{class:qr})}}),_.B("div",{el:U,
"on:click":w,"on:touchstart":g,"on:touchmove":E,"on:mouseenter":X,"on:mousedown":r,"on:mouseleave":q,"on:mousemove":v,"on:mouseup":V,"on:touchend":t,"on:touchcancel":AZ,"on:keydown":IH,class:Hc,role:"slider","aria-valuenow":Pc,"aria-valuetext":function(){return Pc()+"%"},
"aria-valuemin":function(){return 0},
"aria-valuemax":function(){return c().videoDuration},
draggable:"true",tabindex:0,"aria-label":_.K8("SEEK_SLIDER")},_.B("div",{el:a,class:wp},_.B(g0E,{progressBarProps:c,config:f,highContrast:function(){return!!f().isInlinePlayback}}),_.B(_.K,{cond:function(){return f().chapterData&&Cqo(f().chapterData)},
then:function(){return _.B(GOO,{progressState:c,multiMarkersPlayerBarRenderer:function(){return f().chapterData},
progressBarWidth:function(){return z().width}})},
else:function(){return _.B(e2E,{progressBarProps:c,config:f})}}),_.B(kOG,{progressBarProps:c,
playheadData:Q,interpolateDotPosition:function(){return f().position!==2},
hidePlayhead:function(){return f().playheadDotBehavior===1&&!l()}}))),_.B(XaV,{progressBarProps:c,
config:function(){return{activeChapter:e$M(c(),f().chapterData),getProgressBarWidthPx:function(){return n().width},
isShortsPage:!!f().isShortsPage,isInlinePlayer:!!f().isInlinePlayback,useFadeInAnimation:!!f().isInlinePlayback}},
progressBarWidthPx:function(){return z().width},
chapterData:function(){return f().chapterData}}))},"Ne");
_.bhB.idomCompat=!0;Object.assign({},_.HFc(),{setState:function(){},
domMeasurements:{},appApi:_.K4Z(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var NUN;
_.KEE=_.y_(function(){var S,c=(S=_.ks(R$H().playerApi))!=null?S:void 0;S=_.A(_.ny(!1,void 0,"HLFBmb"));var Q=S.next().value,f=S.next().value;S=_.A(_.ny(!1,void 0,"lHH9bc"));var U=S.next().value,a=S.next().value;S=_.A(_.ny(!1,void 0,"zsY7yd"));var X=S.next().value,z=S.next().value;S=_.A(_.ny(!1,void 0,"KeHQgc"));var x=S.next().value,I=S.next().value;S=_.A(_.ny(0,void 0,"gLLCj"));var n=S.next().value,b=S.next().value;S=_.A(_.ny(0,void 0,"s3RYkf"));var N=S.next().value,l=S.next().value;S=_.A(_.ny(!1,void 0,
"Dn608e"));var H=S.next().value,q=S.next().value;S=_.A(_.ny(0,void 0,"AnkH1b"));var w=S.next().value,g=S.next().value;S=_.A(_.ny(0,void 0,"QYNL0b"));var r=S.next().value,E=S.next().value;S=_.A(_.ny("",void 0,"Yzw45d"));var v=S.next().value,t=S.next().value;S=_.A(_.ny(-1,void 0,"iiVI0c"));var V=S.next().value,AZ=S.next().value,IH=_.uQ(function(){var Nr={controlsVisible:Q(),isOverlayHidden:U(),shouldWaitToHideControls:X(),isDragging:x(),isHovering:H(),videoDuration:w(),playedTime:r(),videoId:v(),draggedTime:N(),
hoveredTime:n(),playerState:V()};return Object.assign({},_.HFc(),Nr,{domMeasurements:{},setState:function(Hc){Hc.controlsVisible!==void 0&&f(Hc.controlsVisible);Hc.isOverlayHidden!==void 0&&a(Hc.isOverlayHidden);Hc.shouldWaitToHideControls!==void 0&&z(Hc.shouldWaitToHideControls);Hc.isDragging!==void 0&&I(Hc.isDragging);Hc.isHovering!==void 0&&q(Hc.isHovering);Hc.draggedTime!==void 0&&l(Hc.draggedTime);Hc.hoveredTime!==void 0&&b(Hc.hoveredTime);Hc.videoDuration!==void 0&&g(Hc.videoDuration);Hc.playedTime!==
void 0&&E(Hc.playedTime);Hc.videoId!==void 0&&t(Hc.videoId);Hc.playerState!==void 0&&AZ(Hc.playerState)},
appApi:_.K4Z(),playerApi:c})},void 0,"ZW7y9");
_.qR(function(){c==null||c.addEventListener("onVideoProgress",qUM(IH));c==null||c.addEventListener("onVideoDataChange",h$p(IH));c==null||c.addEventListener("onStateChange",DtH(IH))});
_.wX(function(){if(c==null?0:c.isReady())c==null||c.removeEventListener("onVideoProgress",qUM(IH)),c==null||c.removeEventListener("onVideoDataChange",h$p(IH)),c==null||c.removeEventListener("onStateChange",DtH(IH))});
return _.B("desktop-shorts-player-controls",null,_.B(NUN,{playerControlsProps:IH}))},"Oe");
NUN=_.y_(function(S){var c=S.playerControlsProps;return _.B("div",{class:"desktopShortsPlayerControlsWizHost"},_.B(_.bhB,{progressBarProps:c,config:function(){return{isShortsPage:!0,hideProgressBar:c().videoDuration<30&&c().playerState!==2&&!c().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"Pe");_.$V2=_.y_(function(S){function c(Nr){Nr!==0||b()?Nr>50&&(b()||!l())?(N(!1),H(!0)):Nr<=50&&(b()||l())&&(N(!1),H(!1)):N(!0)}
function Q(Nr,Hc){var qr;return _.O(function(wp){if(wp.nextAddress==1)return _.F(wp,_.Oe(),2);qr=wp.yieldResult;Hc&&qr?(qr.unMute(!0),Nr&&(oTY(Nr,qr.getVolume()),w(qr.getVolume()))):qr&&(qr.mute(!0),Nr&&oTY(Nr,0));_.IN(wp)})}
function f(Nr){var Hc,qr;return _.O(function(wp){if(wp.nextAddress==1)return _.F(wp,_.Oe(),2);Hc=wp.yieldResult;qr=50;Hc&&(qr=Hc.getVolume(),Hc.isMuted()?oTY(Nr,0):oTY(Nr,qr));w(qr);_.IN(wp)})}
var U=S.orientation;S=_.EH("desktop-shorts-volume-controls");var a=_.EH("button"),X=_.tc("input"),z=_.A(_.ny(!1,void 0,"F6vt0d")),x=z.next().value,I=z.next().value,n=_.A(_.ny(!1,void 0,"S5PCqb"));z=n.next().value;n=n.next().value;var b=z,N=n;n=_.A(_.ny(!0,void 0,"Tgy4e"));z=n.next().value;n=n.next().value;var l=z,H=n;z=_.A(_.ny(50,void 0,"Dq3efd"));var q=z.next().value,w=z.next().value;z=_.uQ(function(){var Nr=b();return _.u("web_shorts_keyboard_enable_mute_shortcut")?Nr?_.K8("PLAYER_LABEL_UNMUTE",
void 0,"Unmute (m)"):_.K8("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):Nr?_.K8("UNMUTE_VOLUME",void 0,"Unmute"):_.K8("MUTE_VOLUME",void 0,"Mute")},void 0,"zjOD8c");
n=_.uQ(function(){var Nr=b(),Hc=l();return{sources:[{clientResource:{imageName:Nr?_.u("web_shorts_modern_controls")?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED":Hc?_.u("web_shorts_modern_controls")?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED":_.u("web_shorts_modern_controls")?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED"}}]}},void 0,"bIZ5A");
var g=_.uQ(function(){var Nr=q();return b()?Nr+"% volume muted":Nr+"% volume"},void 0,"kvkmyc"),r=_.uQ(function(){return U()==="vertical_down"},void 0,"zaNsZ");
_.wC(function(){function Nr(){I(!0)}
function Hc(){I(!1)}
X&&X.value&&(X.value.addEventListener("focus",Nr),X.value.addEventListener("focusout",Hc),f(X.value).then(function(){c(Number(mtM(X.value)))}));
a&&a.value&&(a.value.addEventListener("focus",Nr),a.value.addEventListener("focusout",Hc));_.wX(function(){var qr;X==null||(qr=X.value)==null||qr.removeEventListener("focus",Nr);var wp;X==null||(wp=X.value)==null||wp.removeEventListener("focusout",Hc);var Pc;a==null||(Pc=a.value)==null||Pc.removeEventListener("focus",Nr);var ex;a==null||(ex=a.value)==null||ex.removeEventListener("focusout",Hc)})});
var E=_.$d(function(){if(X&&X.value){var Nr=Number(mtM(X.value));y9z(Nr);w(Nr);X.value.style.setProperty("--gradient-percent",Nr+"%");c(Nr)}return!1}),v=_.$d(function(){I(!0)}),t=_.$d(function(){X&&X.value&&(Q(X.value,b()),N(!b()));
return!1}),V={},AZ={},IH={};
return _.B("desktop-shorts-volume-controls",{"on:pointerleave":_.$d(function(){I(!1)}),
class:_.n4("ytdDesktopShortsVolumeControlsHost",(V.ytdDesktopShortsVolumeControlsHostVertical=r,V.ytdDesktopShortsVolumeControlsHostExpanded=x,V)),el:S},_.B(_.K,{cond:function(){return!r()},
then:function(){var Nr={};return _.B("div",{class:_.n4("ytdDesktopShortsVolumeControlsBackgroundScrim",(Nr.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=x,Nr))})}}),_.B("div",{class:_.n4((AZ.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=r,AZ))},_.B("button",{"aria-label":z,
title:z,el:a,"on:click":t,"on:pointerenter":v,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},n?_.B(_.RW,{data:n,alt:z,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.B("div",{class:_.n4("ytdDesktopShortsVolumeControlsSliderContainer",(IH.ytdDesktopShortsVolumeControlsSliderContainerExpanded=x,IH.ytdDesktopShortsVolumeControlsSliderContainerVertical=r,IH.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=r,IH.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=
function(){return x()&&r()},IH))},_.B("input",{"aria-label":_.K8("VOLUME"),
title:_.K8("VOLUME"),el:X,"on:input":E,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input",role:"slider","aria-valuenow":q,"aria-valuetext":g,"aria-valuemin":0,"aria-valuemax":100})))},"Qe");_.uAT=_.y_(function(S){var c=S.data;return _.B("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.B(_.xJ,{command:function(){return c().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.B(_.K,{cond:function(){return c().iconName},
then:function(Q){return _.B(_.C4,{icon:Q})}}),_.B("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return c().text}),_.B(_.K,{cond:function(){return c().showEndChevron},
then:function(){return _.B(_.C4,{icon:"CHEVRON_RIGHT"})}})))},"Re");var jAV=_.y_(function(S){var c=S.data;var Q=S.overlayDensity;S={};return _.B("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.B(_.h8,{data:function(){return c().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(f){var U=f.data;
return _.B(_.h7,{data:function(){return(Q==null?void 0:Q())===1?Object.assign({},U(),{avatar:{avatarViewModel:Object.assign({},_.Y(U().avatar,_.Ee),{avatarImageSize:"AVATAR_SIZE_48"})}}):U()}})}}),_.B(_.h8,{data:function(){return c().avatarStackViewModel}},{avatarStackViewModel:function(f){return _.B(_.qn,{data:f.data})}}),_.B(_.mw,{className:_.n4("ytReelChannelBarViewModelChannelName",(S.ytReelChannelBarViewModelChannelNameLarge=function(){return(Q==null?void 0:Q())===1},S)),
text:function(){return c().channelName},
linkInheritColor:!0,userInput:!0}),_.B("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.B(_.h8,{data:function(){return c().subscribeButtonViewModel}},{subscribeButtonViewModel:function(f){var U=f.data;
return _.B(_.Dj,{data:function(){return(Q==null?void 0:Q())===1?Object.assign({},U(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},U().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):U()},
isOverlay:!1})},
buttonViewModel:_.Ze})),_.B("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.B(_.h8,{data:function(){var f,U;return(U=_.Y((f=c())==null?void 0:f.sponsorButtonViewModel,f2d))==null?void 0:U.sponsorButton}},{buttonViewModel:function(f){return _.B(_.Ze,{data:f.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"Se");var lRg=_.y_(function(S){var c=function(){var f;return(S==null?void 0:(f=S.overlayDensity)==null?void 0:f.call(S))===1?22:18},Q={};
return _.B("yt-reel-multi-format-link-view-model",{class:_.n4("ytReelMultiFormatLinkViewModelHost",(Q.ytReelMultiFormatLinkViewModelHostTall=!0,Q.ytReelMultiFormatLinkViewModelHostLarge=function(){var f;return((f=S.overlayDensity)==null?void 0:f.call(S))===1},Q))},_.B(_.xJ,{ariaLabel:function(){return S.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.Gv(S.data().command)},
dangerousStopPropagation:!1},_.B("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.B(_.K,{cond:function(){return S.data().icon},
then:function(f){return _.B(_.RW,{data:f,className:"ytReelMultiFormatLinkViewModelIcon",alt:"",size:c})}}),_.B(_.mw,{text:function(){return S.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"Te");
lRg.idomCompat=!0;var YCZ=_.y_(function(S){var c=S.data;var Q=S.overlayDensity;var f=_.EH("yt-shorts-suggested-action-view-model");S=_.A(_.ny(!1,void 0,"xDqzhe"));var U=S.next().value,a=S.next().value;S=_.A(_.ny(!1,void 0,"LI9CFd"));var X=S.next().value,z=S.next().value,x=function(){return c().isMultiLineSa},I=_.b9(pFZ,function(){var E,v;
return(v=(E=c().toggleableContent)==null?void 0:E.entityKey)!=null?v:""}),n=function(){var E,v,t;
return(t=c().toggleableContent)!=null&&t.entityKey?(v=(E=I())==null?void 0:E.value)!=null?v:!1:!1},b=function(){var E,v,t,V,AZ,IH,Nr,Hc,qr,wp,Pc;
return c().toggleableContent?n()?(E=c().toggleableContent)==null?void 0:E.toggledData:(v=c().toggleableContent)==null?void 0:v.untoggledData:{primaryText:(Hc=(t=c().defaultContent)==null?void 0:t.primaryText)!=null?Hc:c().text,secondaryText:(V=c().defaultContent)==null?void 0:V.secondaryText,onTapCommand:(qr=(AZ=c().defaultContent)==null?void 0:AZ.onTapCommand)!=null?qr:c().onTapCommand,icon:(wp=(IH=c().defaultContent)==null?void 0:IH.icon)!=null?wp:c().icon,image:(Pc=(Nr=c().defaultContent)==null?
void 0:Nr.image)!=null?Pc:c().image}},N=function(){return x()?c().trailingTapTarget:void 0};
S=function(E,v){return function(){return U()?v:E}};
var l={leadingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:S("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};S={};S=_.n4((S.ytShortsSuggestedActionViewModelStaticHost=function(){return!x()},S.ytShortsSuggestedActionViewModelDynamicHost=x,S.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return x()&&X()},S.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return x()&&!X()},S));
_.wC(function(){if(x()){var E=0,v;if((v=c().animationParams)==null?0:v.shouldExpand){var t,V;E=((V=(t=c().animationParams)==null?void 0:t.expansionDelaySecs)!=null?V:0)*1E3}var AZ,IH=((AZ=c().animationParams)==null?0:AZ.shouldExpand)?setTimeout(function(){a(!0)},E):void 0,Nr,Hc;
E=((Nr=c().animationParams)==null?0:Nr.visibilityDelaySecs)?((Hc=c().animationParams)==null?NaN:Hc.visibilityDelaySecs)*1E3:0;var qr=setTimeout(function(){z(!0)},E);
_.wX(function(){IH&&clearTimeout(IH);clearTimeout(qr)})}});
var H=function(E){_.kz(E,Object.assign({},{form:{element:f.value}}))},q=_.$d(function(){var E,v=(E=b())==null?void 0:E.onTapCommand;
v&&H(v)}),w=_.$d(function(){var E,v;
if(E=(v=N())==null?void 0:v.onTapCommand)return H(E),!1}),g=_.Yd({"vertical-align":"bottom",
"border-radius":function(){var E;return x()?((E=c().defaultContent)==null?0:E.isCircleImage)?"50%":"4px":"0px"},
width:function(){var E,v,t;return x()&&((E=c().defaultContent)==null?0:E.imageSize)?((t=(v=c().defaultContent)==null?void 0:v.imageSize)!=null?t:24)+"px":null},
height:function(){var E,v,t;return x()&&((E=c().defaultContent)==null?0:E.imageSize)?((t=(v=c().defaultContent)==null?void 0:v.imageSize)!=null?t:24)+"px":null}}),r={};
return _.B("yt-shorts-suggested-action-view-model",{class:S,el:f},_.B("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.B("button",{class:_.n4(function(){return x()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var E;
return(E=c().useFullRoundedBorder)!=null&&E?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!N()&&x()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":x()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var E;
return(E=c().disableFixedHeight)!=null&&E?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(r.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(Q==null?void 0:Q())===1},r)),
"on:click":q},_.B(_.p4,{model:{color:4}}),_.B("div",{class:_.n4(function(){return x()?l.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.B(_.K,{cond:function(){var E;
return(E=b())==null?void 0:E.image},
then:function(E){return _.B(_.RW,{data:E,alt:"",className:function(){return x()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:g})}}),_.B(_.K,{cond:function(){var E,v;
return(E=b())==null?void 0:(v=E.icon)==null?void 0:v.iconType},
then:function(E){return _.B(_.C4,{icon:E,active:n,className:function(){return x()?U()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.B("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.B(_.K,{cond:function(){var E;
return(E=b())==null?void 0:E.primaryText},
then:function(E){return _.B("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.B(_.mw,{text:E}))}}),_.B(_.K,{cond:function(){var E;
return(E=b())==null?void 0:E.secondaryText},
then:function(E){return _.B("div",{class:l.secondaryText},_.B(_.mw,{text:E}))}}))),_.B(_.K,{cond:N,
then:function(E){return _.B("div",{class:l.trailingSection,"aria-label":function(){var v;return(v=E().a11yLabel)!=null?v:""},
"on:click":w,role:"button",tabindex:0},_.B(_.p4,{model:{color:4}}),_.B(_.C4,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ue");var CYU=_.y_(function(S){var c=S.data;var Q=S.overlayDensity;var f=_.EH("yt-shorts-video-title-view-model");S=_.$d(function(X){if(_.dJ(_.rJ(X),f.value,["A".toString()]))return!1;(X=c().truncatedTextOnTapCommand)&&_.kz(X);return!1});
var U={},a={};return _.B("yt-shorts-video-title-view-model",{el:f,class:_.n4("ytShortsVideoTitleViewModelHost",(U.ytShortsVideoTitleViewModelHostClickable=function(){return!!c().truncatedTextOnTapCommand},U)),
"on:click":S},_.B("h2",{class:_.n4("ytShortsVideoTitleViewModelShortsVideoTitle",(a.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(Q==null?void 0:Q())===1},a))},_.B(_.mw,{text:function(){return c().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Ve");_.HhZ=_.y_(function(S){var c=S.data;var Q=S.overlayDensity;return _.B("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.B(_.h8,{data:function(){return c().metadataItems}},{badgeViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.S7,{data:f.data}))},
playerDisclosureViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.uAT,{data:f.data}))},
shortsSuggestedActionViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(YCZ,{data:f.data,overlayDensity:Q}))},
reelChannelBarViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(jAV,{data:f.data,overlayDensity:Q}))},
reelMultiFormatLinkViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(lRg,{data:f.data,overlayDensity:Q}))},
shortsVideoTitleViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(CYU,{data:f.data,overlayDensity:Q}))},
reelSoundMetadataViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.MxV,{data:f.data,overlayDensity:Q}))},
toggleButtonViewModel:function(f){return _.B("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.B(_.qs,{data:f.data}))}}))},"We");var DVG=_.y_(function(S){var c=_.V_(S,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),Q=c.size,f=c.onTap,U=c.disabled,a=c.tooltipText;return _.B("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.B(cZ,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:Q(),disabled:U(),tooltipText:a(),onTap:f}},
iconName:S.iconType}))},"Xe"),pa2=_.y_(function(S){function c(n){n.stopPropagation();
n.code==="ArrowUp"?(n.preventDefault(),QbT(z.value)):n.code==="ArrowDown"?(n.preventDefault(),fFr(z.value)):n.code==="KeyM"?Svc():(n.code==="KeyK"||n.code==="Space")&&cuM(x())}
var Q=_.V_(S,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});S=Q.previousButtonDisabled;var f=Q.nextButtonDisabled,U=Q.data,a=Q.playabilityStatus,X=Q.previewThumbnail,z=_.EH("ytd-shorts-miniplayer-overlay"),x=_.Gs(_.NxM),I;_.qR(function(){(I=_.qk(z.value))&&I.addEventListener("keydown",c)});
_.wX(function(){var n;(n=I)==null||n.removeEventListener("keydown",c)});
Q=function(){var n,b,N;return(n=U())==null?void 0:(b=n.reelPlayerOverlayRenderer)==null?void 0:(N=b.likeButton)==null?void 0:N.likeButtonRenderer};
return _.B("ytd-shorts-miniplayer-overlay",{el:z,class:"ytdShortsMiniplayerOverlayHost"},_.B("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.Yd({"background-image":function(){var n=X();return n?'url("'+_.Ja(n.thumbnails)+'")':""}})}),_.B("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.B("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.B(DVG,{iconType:function(){var n=x();
return n===2||n===-1||n===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){cuM(x())},
tooltipText:function(){var n=x();return n===1||n===3?_.K8("PLAYER_LABEL_PAUSE"):_.K8("PLAYER_LABEL_PLAY")}}),_.B(_.$V2,{orientation:"horizontal_right"})),_.B("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.B(DVG,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:S,onTap:function(){QbT(z.value)},
tooltipText:_.K8("PREVIOUS_VIDEO_LABEL")}),_.B(DVG,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:f,onTap:function(){fFr(z.value)},
tooltipText:_.K8("NEXT_VIDEO_LABEL")}),_.u("web_shorts_pip_like_button")?_.B("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.B(Uvl,{buttonTooltipPosition:"left",data:Q,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.B("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.B(_.K,{cond:function(){var n,b;return _.Y((n=U())==null?void 0:(b=n.reelPlayerOverlayRenderer)==null?void 0:b.metapanel,
_.mSH)},
then:function(n){return _.B("div",{class:_.n4("ytdShortsMiniplayerOverlayInteractive")},_.B(_.HhZ,{data:n}))}})),_.B("div",{class:_.n4("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var n;return!((n=U())==null||!n.adsOverlay)||a()&&!JVT(a())}},_.B("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.B(_.KEE,null)))),_.B(_.K,{cond:function(){var n=U(),b,N;
n=_.Y(n==null?void 0:(b=n.adsOverlay)==null?void 0:(N=b.fulfillmentContent)==null?void 0:N.fulfilledLayout,sK$);return _.Y(n==null?void 0:n.renderingContent,W9_)},
then:function(n){return _.B("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.B(U8_,{data:n}))}}))},"Ye");var UCz=_.y_(function(){var S=_.A(_.ny(new _.xh(NaN,NaN),void 0,"HSMFk")),c=S.next().value,Q=S.next().value;S=_.A(_.ny(!1,void 0,"uaAxwf"));var f=S.next().value,U=S.next().value,a=_.A(_.ny(!1,void 0,"nVSwef"));S=a.next().value;var X=a.next().value,z=_.fl().resolve(_.ra).miniplayerPropSignalMap[0],x=z.data,I=z.shortsData,n=z.nextButtonDisabled,b=z.shortsPreviewThumbnail,N=z.previousButtonDisabled,l=z.externalPlaylistData;a=z.toastData;var H=z.playabilityStatus,q=z.isDisabled,w=z.playerVe,g=z.closeVe;
z=_.Gs(_.$u);_.L1("yt-pip-window-resized",function(t){Q(t)});
_.L1("yt-activate-pip-miniplayer",function(){return _.O(function(t){X(!0);_.IN(t)})});
var r=function(){var t;return!((t=l())==null||!t.contents)&&f()},E=function(){var t=c(),V=!!x(),AZ=r();
t=t.clone();V&&(t.height-=76);AZ&&(t.height-=285);return t},v=function(){U(!f())};
_.To(function(){var t=w(),V=_.wN(11),AZ=_.T$(11);V&&AZ&&t&&(_.dS(V,AZ,t),AZ=g())&&(_.v2(V,t,[AZ]),_.L8(V,[AZ]))},"HPkp0c");
return _.B("ytd-pip-container",{class:"ytdPipContainerHost"},_.B(_.K,{cond:S,then:function(){return _.B(_.MNG,{isDisabled:q,playabilityStatus:H,size:E})}}),_.B(_.K,{cond:x,
then:function(){return _.B(_.w8g,{data:x,expanded:f,onExpandClick:v,playlistData:l})}}),_.B(_.K,{cond:r,
then:function(){return _.B("div",{class:"ytdPipContainerPlaylistPanel"},_.B(_.Q$l,{data:l,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.B(_.K,{cond:z,
then:function(){return _.B(pa2,{data:I,nextButtonDisabled:n,previousButtonDisabled:N,playabilityStatus:H,previewThumbnail:b})}}),_.B("div",{class:"ytdPipContainerToast"},_.B(_.iTE,{toastData:a})))},"Ze");var Y8=function(S,c){var Q=this;this.pipController=S;this.JSC$16529_clientRoot=c;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=BmY();this.watchPipEnabled=_.u("web_watch_pip");this.shortsPipEnabled=_.u("web_shorts_pip");this.JSC$16529_watchWhileEnabled=_.u("kevlar_watch_while_v2");this.miniplayerServiceActionMap={"yt-downloaded-video-deleted":this.onDownloadedVideoDeleted.bind(this),"yt-show-miniplayer-command":this.onShowMiniplayerCommand.bind(this)};
this.watchPipMode=this.shortsPipMode=this.watchWhileMode=this.miniplayerToPipMode=this.userDeactivatedWatchWhile=this.isReadyToResume=this.hasPlaylistData=this.isSingleOptionSurveyActive=!1;_.Kt(_.V5(),_.Bxx,function(f){Q.isSingleOptionSurveyActive=f});
this.JSC$16529_onPlayerPlayVideo=this.JSC$16529_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);_.vG(_.dQ.getInstance(),this.miniplayerServiceActionMap,this.JSC$16529_clientRoot);S.pictureInPictureSupported()&&_.Te("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},ios,WEG,MlE,gZ1,eQp,g4d;
Y8.prototype.handleMediaSessionPipActivation=function(){var S=this,c;return _.O(function(Q){_.bn().mediaSessionPipActivation=!0;c=_.fl().resolve(_.oZ);return c.isOnWatch()&&S.watchPipEnabled?(_.bn().watchPipActivation=!0,_.hQE(S,c.data),Q.jumpTo(0)):c.isOnShorts()&&S.shortsPipEnabled?(_.bn().shortsPipActivation=!0,_.qC1(S),Q.jumpTo(0)):S.isMiniplayerActive()&&S.watchPipEnabled&&!S.watchWhileMode?_.F(Q,TUN(S),0):Q.jumpTo(0)})};
var TUN=function(S){var c,Q,f,U;return _.O(function(a){if(a.nextAddress==1)return c=!S.miniplayerToPipMode,Q=S.playerElement,f=S.miniplayerData,U=S.watchResponse,_.F(a,S.deactivate(),2);if(a.nextAddress!=3)return c?(_.bn().mediaSessionPipActivation=!0,_.bn().watchPipActivation=!0):_.bn().miniplayerButtonActivation=!0,_.F(a,S.activate(Q,f,U),3);S.miniplayerToPipMode=c;_.IN(a)})};
Y8.prototype.onDownloadedVideoDeleted=function(S){var c,Q=_.Y((c=this.miniplayerData)==null?void 0:c.watchEndpoint,_.tG),f,U;Q&&((f=this.watchResponse)==null?void 0:(U=f.playerResponse)==null?void 0:U.offlineState)!==void 0&&(c=Q.videoId)&&S&&c===S&&this.close()};
Y8.prototype.onShowMiniplayerCommand=function(S){var c=this,Q,f,U,a,X,z,x,I,n,b,N,l,H;return _.O(function(q){switch(q.nextAddress){case 1:return Q=_.Y(S,dUd),U=(f=Q)==null?void 0:f.miniplayerCommand,a=_.Y(U,_.tG),U&&a&&!c.active?_.F(q,_.HL.getInstance(),2):q.return();case 2:return X=q.yieldResult,_.F(q,(z=X)==null?void 0:z.get("yt-miniplayer-shown-video-id"),3);case 3:x=q.yieldResult;I=a.videoId;if(!I||x===I)return q.return();n=_.fl().resolve(_.oZ);if(n.isOnWatch())return _.i5(Error("Gj")),q.return();
b={channelItem:{externalId:btoa(I)}};c.readyToResumeVe=_.qo(121253,void 0,void 0,b);_.bn().showMiniplayerCommandActivation=!0;return _.F(q,_.eX_(c,U,!0),4);case 4:return c.active?(_.Cp(c,{readyToResumeVe:c.readyToResumeVe,continueWatching:!0,premiumBranding:!((N=Q)==null||!N.showPremiumBranding)}),_.u("ytd_miniplayer_to_wiz")&&_.Cp(c,{isReadyToResume:!0}),c.isReadyToResume=!0):_.Cp(c,{continueWatching:!0,premiumBranding:!((l=Q)==null||!l.showPremiumBranding)}),_.F(q,(H=X)==null?void 0:H.set("yt-miniplayer-shown-video-id",
a.videoId),5);case 5:c.readyToResumeVe=void 0,_.IN(q)}})};
Y8.prototype.init=function(S){this.miniplayerEl?_.i5(new _.Yr("MiniplayerService already initialized.")):this.miniplayerEl=S};
Y8.prototype.isInitialized=function(){var S=!!this.miniplayerEl;S||_.i5(new _.Yr("MiniplayerService used before initialized."));return S};
_.hQE=function(S,c){if(S.isInitialized()){var Q=_.bFY(c.response,c.playerResponse),f=_.fl().resolve(_.oZ).getPlayerFromWatch();_.bn().currentEndpoint=Q.watchEndpoint||null;S.activate(f,Q,c)}};
_.qC1=function(S){if(S.isInitialized()){var c=_.fl().resolve(_.oZ).getPlayerFromShorts();S.activate(c)}};
ios=function(S,c){var Q;(Q=!S.isInitialized())||(Q=_.fl().resolve(_.oZ).isOnWatch()&&S.watchPipMode,Q=!(S.isMiniplayerActive()&&(_.bn().userActivation||_.bn().lockupActivation||Q)));if(Q)return!1;waV(S,c)?_.um(S):g4d(S,c);return S.watchPipMode?!_.fl().resolve(_.oZ).isOnWatch():!0};
Y8.prototype.isMiniplayerActive=function(){return this.active};
var waV=function(S,c){var Q;c=(Q=_.Y(c,_.tG))==null?void 0:Q.videoId;var f,U;S=(U=_.Y((f=S.miniplayerData)==null?void 0:f.watchEndpoint,_.tG))==null?void 0:U.videoId;return c!=null&&c===S};
Y8.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.Az(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.XF(this.miniplayerEl,"yt-navigate-home-action"))};
_.eX_=function(S,c,Q,f){Q=Q===void 0?!1:Q;var U,a,X;return _.O(function(z){switch(z.nextAddress){case 1:if(S.active){z.jumpTo(2);break}U=_.fl().resolve(_.oZ);if(X=(a=S.playerElement)!=null?a:U.getPlayerFromWatch()){z.jumpTo(3);break}return _.F(z,_.fl().resolve(_.J8),4);case 4:X=U.getPlayerFromWatch();case 3:if(!X){_.i5(Error("Ij"));z.jumpTo(2);break}return _.F(z,S.activate(X,f),2);case 2:return S.active?_.F(z,g4d(S,c,Q),0):z.return()}})};
Y8.prototype.activate=function(S,c,Q){var f=this,U,a,X,z,x,I,n,b,N;return _.O(function(l){switch(l.nextAddress){case 1:if(!f.isInitialized())return l.return();if(!S)return _.i5(Error("Ij")),l.return();if(_.oJz()||f.isMiniplayerActive())var H=!0;else H=_.bn().watchPipActivation||_.bn().watchWhileActivation,_.fl().resolve(_.oZ).isOnWatch()&&!H?(_.i5(new _.Yr("miniplayer activated on watch page")),H=!0):H=_.bn().watchWhileActivation?f.userDeactivatedWatchWhile||!!document.pictureInPictureElement||eGM():
!1;if(H)return yNz(),l.return();U=_.bn().mediaSessionPipActivation;a=_.bn().shortsPipActivation;X=_.bn().watchPipActivation;x=(z=_.bn().watchWhileActivation)||X;I=X||a;if(!f.pictureInPictureEnabled()||!I){l.jumpTo(2);break}return _.F(l,sAB(f,U),3);case 3:if(!l.yieldResult)return _.i5(Error("Hj")),yNz(),l.return();case 2:return f.setActive(!0),f.watchResponse=Q,f.playerElement=S,f.updateMiniplayerData(c),_.F(l,MlE(f,S),4);case 4:if(!f.active)return _.i5(new _.Yr("miniplayer deactivated during activation")),
f.removePlayerListeners(),l.return();H=_.fl().resolve(_.G7);H.addEventListener("yt-navigate",_.xn(f,f.onPlaylistNavigate));H.addEventListener("yt-playlist-data-updated",_.xn(f,f.JSC$16529_onPlaylistDataUpdated));f.JSC$16529_onPlaylistDataUpdated();yNz();f.JSC$16529_watchWhileEnabled&&_.ihg(f,z);f.pictureInPictureEnabled()&&f.shortsPipEnabled&&(f.shortsPipMode=a,_.V5().dispatch(W8d(f.shortsPipMode)));f.pictureInPictureEnabled()&&f.watchPipEnabled&&(f.watchPipMode=X,_.rFz(f.handleMediaSessionPipActivation));
f.player&&(n=f.player.getPlayerState(),b=n===1,_.V5().dispatch(L8l(n)),_.Oz(f.miniplayerEl,"yt-miniplayer-play-state-changed",[b]),_.bn().isVideoPlaying=b);_.Oz(f.miniplayerEl,"yt-miniplayer-endpoint-changed");ZhT(f);_.GaN(f);return f.shortsPipMode||f.watchPipMode?_.F(l,_.zZ(f.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.u("ytd_miniplayer_to_wiz")?_.F(l,_.zZ(f.miniplayerEl,"yt-activate-miniplayer",[x]),6):_.F(l,_.zZ(f.miniplayerEl,"yt-activate-miniplayer-action",[S,x]),6);case 6:if(f.watchResponse&&
!_.u("miniplayer_copy_screen_on_activation_killswitch")){H=f.getScreenLayer();var q=_.wN(0),w=jaZ(0);q&&w&&(_.ME(q,w,H),H===0&&$UR(void 0,0))}WEG(f);gZ1(f,!0);(N=f.getPlayerElement())==null||N.focusOnPlayer();_.IN(l)}})};
Y8.prototype.updateMiniplayerData=function(S){this.miniplayerData=S;_.Cp(this,{data:S})};
_.GaN=function(S){var c,Q,f=((c=S.miniplayerData)==null?void 0:(Q=c.miniplayerRenderer)==null?void 0:Q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";c=S.watchWhileMode||S.watchPipMode?f&&!_.fl().resolve(_.oZ).isOnWatch():f;_.Cp(S,{isDisabled:c});var U,a;Q=_.Y((U=S.miniplayerData)==null?void 0:(a=U.miniplayerRenderer)==null?void 0:a.minimizedEndpoint,_.pk);c&&Q&&_.fl().resolve(_.CE).openSheet({openPopupActionCommand:{openPopupAction:Q}},S.miniplayerEl)};
WEG=function(S){if(S.watchResponse&&!eQp(S)){var c,Q=(c=S.watchResponse.playerResponse)==null?void 0:c.trackingParams;Q&&(_.Cp(S,{expandVe:_.qo(35989),closeVe:_.qo(34699),readyToResumeCloseVe:_.qo(131070),repositionVe:_.qo(226204),resizeVe:_.qo(226205)}),_.Cp(S,{playerVe:_.Yz(Q)}))}};
MlE=function(S,c){return _.O(function(Q){if(Q.nextAddress==1)return c.preparePlayer(),_.F(Q,c.getPlayerPromise(),2);S.player=Q.yieldResult;S.player&&(S.player.addEventListener("onPlayVideo",S.JSC$16529_onPlayerPlayVideo),S.player.addEventListener("onCloseMiniplayer",S.onPlayerCloseMiniplayer),S.player.addEventListener("onExpandMiniplayer",S.onPlayerExpandMiniplayer),S.player.addEventListener("onStateChange",S.onPlayerStateChange));_.IN(Q)})};
_.J=Y8.prototype;_.J.JSC$16529_onPlayerPlayVideo=function(S){var c=S.sessionData&&"autonav"in S.sessionData,Q;S.sessionData&&S.sessionData.itct&&(Q=S.sessionData.itct);var f=S.watchEndpoint;c=f&&c?_.W_H(f,Q):_.Q5(S.videoId,S.listId||void 0,Q);S.sessionData&&_.SL(_.Y(c.commandMetadata,_.Qw).url,S.sessionData);g4d(this,c)};
_.J.onPlayerExpandMiniplayer=function(){_.um(this)};
_.J.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.J.onPlayerStateChange=function(){if(this.player){var S=this.player.getPlayerState(),c=S===1;_.V5().dispatch(L8l(S));_.V5().dispatch(_.Vre(S));_.Oz(this.miniplayerEl,"yt-miniplayer-play-state-changed",[c]);_.bn().isVideoPlaying=c;if(S===0){c=!_.oJ.getInstance().isAutoplaySetExplicitly();var Q,f,U,a,X,z,x=(Q=this.watchResponse.response)==null?void 0:(f=Q.contents)==null?void 0:(U=f.twoColumnWatchNextResults)==null?void 0:(a=U.autoplay)==null?void 0:(X=a.autoplay)==null?void 0:(z=X.autoplayExplicitChoiceDialogRenderer)==
null?void 0:z.confirmDialogRenderer;c&&x&&this.player.setAutonavState(1)}S===0&&this.watchWhileMode&&this.deactivate()}};
_.J.onPlaylistNavigate=function(S,c){var Q=this,f,U,a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1){if(!_.Y(c.endpoint,_.tG))return n.return();_.bn().currentEndpoint=c.endpoint;_.Oz(Q.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.fl().resolve(_.oZ).isOnWatch()&&(Q.watchWhileMode||Q.watchPipMode))return n.return();S.stopPropagation();(a=(U=_.Y((f=c.endpoint)==null?void 0:f.commandMetadata,_.Qw))==null?void 0:U.url)&&c.tempData&&!_.Cn.isEmpty(c.tempData)&&_.SL(a,c.tempData);X={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};z=new ydJ(function(){return Q.getPlayerElement()},X,{layer:Q.getScreenLayer()});
x=function(b){z.processChunk({endpoint:c.endpoint,data:b})};
kaU(Q);Q.miniplayerFetchRequest=rjp(Q,c.endpoint,x);_.X1(n,2);return _.F(n,Q.miniplayerFetchRequest,4)}if(n.nextAddress!=2)return I=n.yieldResult,dVV(Q,I),_.Pi(n,0);_.Bs(n);_.IN(n)})};
_.J.JSC$16529_onPlaylistDataUpdated=function(){var S=_.fl().resolve(_.G7).getPlaylistData();this.hasPlaylistData=!!S;_.Cp(this,{externalPlaylistData:S||{}})};
_.J.close=function(S){if(this.isInitialized())if(S){if(!((this.watchWhileMode||this.watchPipMode)&&_.fl().resolve(_.oZ).isOnWatch()||this.shortsPipMode)){var c;(c=this.getPlayerElement())==null||c.stop()}this.deactivate()}else _.r2().closeMiniplayer(this.miniplayerEl)};
_.J.deactivate=function(S){var c=this,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1){if(!c.isInitialized()||!c.active)return X.return();c.setActive(!1);kaU(c);(Q=!!S&&waV(c,S))&&c.isSingleOptionSurveyActive&&_.XF(c.miniplayerEl,"yt-show-watch-page-survey",[c.isSingleOptionSurveyActive]);return _.F(X,vZ2(c),2)}if(X.nextAddress!=3){gZ1(c,!1);c.isReadyToResume=!1;c.watchResponse=void 0;c.updateMiniplayerData(void 0);c.shortsPipMode&&(c.shortsPipMode=!1,_.V5().dispatch(W8d(c.shortsPipMode)),FpE(c.pipController),
(f=c.player)==null||f.setInternalSize(NaN,NaN));c.watchPipMode&&(c.watchPipMode=!1,FpE(c.pipController));(U=c.watchWhileMode)&&_.ihg(c,!1);c.removePlayerListeners();var z=_.fl().resolve(_.G7);z.removeEventListener("yt-navigate",_.xn(c,c.onPlaylistNavigate));z.removeEventListener("yt-playlist-data-updated",_.xn(c,c.JSC$16529_onPlaylistDataUpdated));_.bn().currentEndpoint=null;_.Oz(c.miniplayerEl,"yt-miniplayer-endpoint-changed");c.playerElement=null;yNz();return c.shortsPipMode||c.watchPipMode?X.jumpTo(3):
_.F(X,_.zZ(c.miniplayerEl,_.u("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[Q,U]),3)}(a=c.player)==null||a.setInternalSize(NaN,NaN);c.player=null;_.IN(X)})};
var vZ2=function(S){var c;return _.O(function(Q){c=_.fl().resolve(_.oZ);return S.shortsPipMode?_.F(Q,c.movePlayerToShorts(S.playerElement),0):_.F(Q,c.movePlayerToWatch(S.playerElement),0)})};
Y8.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16529_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
Y8.prototype.setActive=function(S){this.active=S;this.isSingleOptionSurveyActive?_.XF(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.XF(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.V5().dispatch(_.aB({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.ihg=function(S,c){S.watchWhileMode=c;_.Cp(S,{watchWhile:c})};
gZ1=function(S,c){if(!eQp(S))if(S.shortsPipMode||S.watchPipMode){var Q;(Q=S.player)==null||Q.setDocumentPictureInPicture(c)}else{var f;(f=S.player)==null||f.setMinimized(c)}};
eQp=function(S){return S.watchWhileMode&&_.u("kevlar_watch_while_counterfactual")};
_.um=function(S){var c;return _.O(function(Q){switch(Q.nextAddress){case 1:if(!S.isInitialized())return Q.return();_.X1(Q,2);return _.F(Q,S.miniplayerFetchRequest,4);case 4:_.Pi(Q,3);break;case 2:_.Bs(Q);case 3:S.watchResponse&&S.miniplayerData&&S.miniplayerData.watchEndpoint?(c={url:S.watchResponse.url,endpoint:S.miniplayerData.watchEndpoint,data:S.watchResponse,miniplayer:!0},_.Az(S.miniplayerEl,"yt-navigate-cache",c)):S.miniplayerData&&S.miniplayerData.watchEndpoint&&_.Az(S.miniplayerEl,"yt-navigate",
{endpoint:S.miniplayerData.watchEndpoint}),_.IN(Q)}})};
g4d=function(S,c,Q){var f,U,a,X;return _.O(function(z){if(z.nextAddress==1){if(waV(S,c))return z.return();_.bn().currentEndpoint=c;_.Oz(S.miniplayerEl,"yt-miniplayer-endpoint-changed");_.Oz(S.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.bn().isVideoPlaying=!1;f={clientParams:{miniplayer:!0,autoSaveToQueue:!Q}};U=new ydJ(function(){return S.getPlayerElement()},f,{layer:S.getScreenLayer(),
parentLayer:0},void 0,S.readyToResumeVe);a=function(x){var I,n,b=Object.assign({},(I=x.playerResponse)==null?void 0:(n=I.playerConfig)==null?void 0:n.playbackStartConfig,{startPaused:!0}),N;Q&&((N=x.playerResponse)==null?0:N.playerConfig)&&(x.playerResponse.playerConfig.playbackStartConfig=b);U.processChunk({endpoint:c,data:x})};
kaU(S);S.miniplayerFetchRequest=rjp(S,c,a);_.X1(z,2);return _.F(z,S.miniplayerFetchRequest,4)}if(z.nextAddress!=2)return X=z.yieldResult,dVV(S,X),_.Pi(z,0);_.Bs(z);_.IN(z)})};
Y8.prototype.getScreenLayer=function(){return this.shortsPipMode||this.watchPipMode?11:3};
var kaU=function(S){S.miniplayerFetchRequest&&(S.miniplayerFetchRequest.cancel&&S.miniplayerFetchRequest.cancel("Active request obsolete"),S.miniplayerFetchRequest=null)},rjp=function(S,c,Q){var f=_.ls.instance,U,a=(U=_.Y(c.commandMetadata,_.Qw))==null?void 0:U.url,X;
U=!a||_.u("disable_miniplayer_tempdata")?{}:(X=Amz(a))!=null?X:{};return P$(f,c,U,window.location.href,"watch",function(z,x){Q(x)},function(z){return z!==S.miniplayerFetchRequest})},dVV=function(S,c){var Q;
_.O(function(f){if(!c)return f.return();S.watchResponse=c;WEG(S);ZhT(S);Q=_.bFY(c.response,c.playerResponse);if(S.isMiniplayerActive()){c.response&&(S.playerElement.watchNextData=c.response);var U=_.Cn.getValueByKeys.apply(_.Cn,[c].concat(_.Hs(Adz)));_.Cn.getValueByKeys.apply(_.Cn,[c].concat(_.Hs(Frs)))&&U&&_.fl().resolve(_.G7).setAutoplayRenderer(U);if(U)if(_.u("kevlar_is_pupi_enabled")){var a,X,z,x,I,n=((a=c.response)==null?0:(X=a.playerOverlays)==null?0:(z=X.playerOverlayRenderer)==null?0:(x=z.autonavToggle)==
null?0:(I=x.autoplaySwitchButtonRenderer)==null?0:I.enabled)?2:1;_.oJ.getInstance().setState(n,!1,!1)}else a=uzM()?2:1,(n=S.player)==null||n.setAutonavState(a);S.updateMiniplayerData(Q);_.GaN(S)}_.IN(f)})},ZhT=function(S){var c,Q,f=(c=S.watchResponse)==null?void 0:(Q=c.playerResponse)==null?void 0:Q.playabilityStatus,U;
c=f==null?void 0:(U=f.miniplayer)==null?void 0:U.miniplayerRenderer;(c==null?void 0:c.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&c.minimizedEndpoint&&_.xt(S.miniplayerEl,[c.minimizedEndpoint]);_.Cp(S,{miniplayerRenderer:c,playabilityStatus:f})};
Y8.prototype.openToast=function(S,c){_.Cp(this,{toastData:{data:S,label:c}})};
_.Cp=function(S,c){var Q=S.miniplayerEl,f;for(f in c)Q[f]=c[f];(0,S.miniplayerPropSignalMap[1])(c)};
Y8.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var S;return this.playerElement?this.playerElement:(S=_.Ur(this.miniplayerEl).querySelector("#player-container"))==null?void 0:S.firstElementChild};
Y8.prototype.pictureInPictureSupported=function(){return this.pipController.pictureInPictureSupported()};
var sAB=function(S,c){c=c===void 0?!1:c;var Q,f,U,a,X,z,x;return _.O(function(I){if(I.nextAddress==1){Q=navigator.userActivation.isActive||c;if(!Q||!S.pictureInPictureSupported())return I.return(!1);f=PYN(S);U=f.width;a=f.height;return _.F(I,S.pipController.openWindow({width:U,height:a}),2)}X=I.yieldResult;z=S.pipController.getWindow();if(!z||!X)return I.return(!1);z.document.body.style.overflow="hidden";x=JuM(z);BpT(S.pipController,function(){LE1(S);x()});
return I.return(!0)})},PYN=function(S){var c=_.bn().shortsPipActivation,Q,f;
S=c?.5625:(f=(Q=S.player)==null?void 0:Q.getVideoAspectRatio())!=null?f:16/9;Q=Math.min(window.innerWidth,window.innerHeight)/2;c=c?0:76;return S>1?new _.xh(Q,c+Q/S):new _.xh(Q*S,c+Q)},LE1=function(S){var c;
_.O(function(Q){c=_.fl().resolve(_.oZ);return c.isOnWatch()&&S.watchPipMode||c.isOnShorts()&&S.shortsPipMode?_.F(Q,S.deactivate(),0):S.miniplayerToPipMode?_.F(Q,TUN(S),0):S.watchPipMode?_.F(Q,_.um(S),0):Q.jumpTo(0)})};
Y8.prototype.pictureInPictureEnabled=function(){return this.pictureInPictureSupported()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.Rh.Object.defineProperties(Y8.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
Y8[mt]=[IZO,wSz];var EZp="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(" "),
tlB="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(" "),VlN="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" "),
RQN="arrow_down arrow_up overflow_horizontal pause play share text_bubble thumb_down thumb_up volume_max volume_mute waveform".split(" ");var yjp=null;var oZE={},mVV=(oZE.initialized={priority:10,callback:function(S){var c=_.fl();c.addProvider({provide:f0s,useClass:FeE});c.addProvider({provide:_.xH2,useFactory:function(){return new Ukd}});
c.addProvider({provide:$X,useValue:_.WY("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});c.addProvider({provide:CJ$,useValue:5184E6});c.addProvider({provide:eEH,useValue:_.TV()});c.addProvider({provide:Rv_,useClass:iad});c.addProvider({provide:k3,useClass:k3});c.addProvider({provide:_.J8,useFactory:function(){return gOp.promise}});
c.addProvider({provide:_.kKu,useFactory:function(){return _.eul.promise}});
c.addProvider({provide:ioR,useValue:function(){var z;return((z=_.S9())==null?void 0:z.getPlayer())||null}});
var Q={};c.addProvider((Q.provide=_.df,Q.useFactory=function(z,x){return function(){return CTT(z,x)}},Q[mt]=[$X,
CJ$],Q));Q={};c.addProvider((Q.provide=_.Ad,Q.useClass=xTd,Q[mt]=[$X,CJ$],Q));Q={};c.addProvider((Q.provide=_.$CZ,Q.useClass=njT,Q[mt]=[_.Ad],Q));c.addProvider({provide:zP,useFactory:_.V5});c.addProvider({provide:xs,useFactory:_.V5});c.addProvider({provide:mTp,useFactory:_.V5});c.addProvider({provide:lrl,useFactory:_.V5});c.addProvider({provide:_.kR,useFactory:_.V5});c.addProvider({provide:nM,useValue:_.nK});c.addProvider({provide:aT0,useClass:l5x});c.addProvider({provide:fyz,useClass:Qos});c.addProvider({provide:hJ,
useClass:hJ});c.addProvider({provide:bs,useClass:bs});c.addProvider({provide:Nu,useClass:Nu});c.addProvider({provide:$R,useClass:$R});c.addProvider({provide:ZH,useClass:ZH});c.addProvider({provide:ba,useClass:ba});c.addProvider({provide:Og,useClass:Og});c.addProvider({provide:Soe,useValue:HT8});c.addProvider({provide:_.Dp,useFactory:_.Kv});c.addProvider({provide:V6,useFactory:_.jL});Q={};c.addProvider((Q.provide=Q_Z,Q.useFactory=function(z){return function(x){var I=I===void 0?{}:I;var n,b,N=(b=_.Y((n=
x.endpoint)==null?void 0:n.commandMetadata,_.Qw))==null?void 0:b.rootVe;if(N){var l,H;if(n=x.previousCsn||((H=_.Y((l=x.endpoint)==null?void 0:l.commandMetadata,KUp))==null?void 0:H.parentCsn)){var q=q===void 0?{}:q;if(n!==_.wN(q.layer)||N!==jaZ(q.layer))DUZ(n,q.cttAuthInfo,q.layer||0),$UR(n,q.layer||0),l=q.layer||0,_.G_(uSz(l===void 0?0:l),N);I.parentCsn=n}x.endpoint&&n?Zmh(z,x.endpoint,I):_.X2(z,N,void 0,I);var w;((w=x.response)==null?0:w.trackingParams)&&z.graftServerVe(x.response.trackingParams);
var g;((g=x.playerResponse)==null?0:g.trackingParams)&&z.graftServerVe(x.playerResponse.trackingParams);var r;((r=x.reelWatchSequenceResponse)==null?0:r.trackingParams)&&z.graftServerVe(x.reelWatchSequenceResponse.trackingParams)}}},Q[mt]=[_.Dp],Q));
Q={};c.addProvider((Q.provide=cZV,Q.useClass=ST1,Q[mt]=[nM,_.kR],Q));Q={};c.addProvider((Q.provide=SZ,Q.useClass=SZ,Q[mt]=[_.J8,_.kR],Q));Q={};c.addProvider((Q.provide=RE,Q.useClass=RE,Q[mt]=[xs,_.U8],Q));c.addProvider({provide:_.AZ8,useClass:bzT});Q={};c.addProvider((Q.provide=_.YF,Q.useClass=zR0,Q[mt]=[_.AZ8],Q));c.addProvider({provide:_.CE,useClass:fp});c.addProvider({provide:_.iGd,useClass:VxO});c.addProvider({provide:_.Hu,useClass:cp});Q={};c.addProvider((Q.provide=_.Pk,Q.useClass=nYg,Q[mt]=
[_.Pk],Q));c.addProvider({provide:_.Qs,useClass:Riz});c.addProvider({provide:nZ,useClass:nZ});c.addProvider({provide:jF,useClass:jF});c.addProvider({provide:qQ,useClass:QD});Q={};c.addProvider((Q.provide=sQ,Q.useClass=sQ,Q[mt]=[_.CE,qQ],Q));_.u("web_enable_feedback_endpoint_resolver")&&(Q={},c.addProvider((Q.provide=xX,Q.useClass=xX,Q[mt]=[zP,OQ],Q)),c.addProvider({provide:OQ,useClass:NZ$}));_.u("web_enable_feedback_endpoint_resolver_batch_2")&&(Q={},c.addProvider((Q.provide=Bk,Q.useClass=Bk,Q[mt]=
[zP],Q)),Q={},c.addProvider((Q.provide=F7,Q.useClass=F7,Q[mt]=[OQ],Q)));Q={};c.addProvider((Q.provide=TP,Q.useClass=TP,Q[mt]=[_.Hu,qQ],Q));Q={};c.addProvider((Q.provide=Hk,Q.useClass=Hk,Q[mt]=[_.Hu],Q));Q={};c.addProvider((Q.provide=wz,Q.useClass=wz,Q[mt]=[_.M6,_.YF],Q));Q={};c.addProvider((Q.provide=hx,Q.useClass=hx,Q[mt]=[_.M6,_.Dp],Q));c.addProvider({provide:c4,useClass:c4});Q={};c.addProvider((Q.provide=tx,Q.useClass=tx,Q[mt]=[zP],Q));c.addProvider({provide:nd,useClass:nd});c.addProvider({provide:Iy,
useClass:Iy});Q={};c.addProvider((Q.provide=Nb,Q.useClass=Nb,Q[mt]=[zP],Q));Q={};c.addProvider((Q.provide=Kd,Q.useClass=Kd,Q[mt]=[_.M6,zP],Q));Q={};c.addProvider((Q.provide=$S,Q.useClass=$S,Q[mt]=[zP],Q));Q={};c.addProvider((Q.provide=pd,Q.useClass=pd,Q[mt]=[zP],Q));Q={};c.addProvider((Q.provide=DX,Q.useClass=DX,Q[mt]=[_.YF],Q));Q={};c.addProvider((Q.provide=ay,Q.useClass=ay,Q[mt]=[_.Dp],Q));Q={};c.addProvider((Q.provide=Fk,Q.useClass=Fk,Q[mt]=[m7],Q));Q={};c.addProvider((Q.provide=B4,Q.useClass=
B4,Q[mt]=[m7],Q));c.addProvider({provide:Ol,useClass:Ol});c.addProvider({provide:zB,useClass:zB});c.addProvider({provide:Jy,useClass:Jy});Q={};c.addProvider((Q.provide=MQ,Q.useClass=MQ,Q[mt]=[_.YF,_.U8],Q));c.addProvider({provide:KZ,useClass:KZ});Q={};c.addProvider((Q.provide=pZ,Q.useClass=pZ,Q[mt]=[_.M6,_.YF],Q));c.addProvider({provide:l$,useClass:l$});Q={};c.addProvider((Q.provide=LZ,Q.useClass=LZ,Q[mt]=[zP,_.M6,_.Pk],Q));Q={};c.addProvider((Q.provide=dz,Q.useClass=dz,Q[mt]=[_.M6,_.U8],Q));c.addProvider({provide:$Nd,
useValue:g4Y});c.addProvider({provide:Cps,useValue:fkT});c.addProvider({provide:vk,useClass:vk});Q={};c.addProvider((Q.provide=rz,Q.useClass=rz,Q[mt]=[zP],Q));Q={};c.addProvider((Q.provide=EQ,Q.useClass=EQ,Q[mt]=[_.Qs,_.U8],Q));Q={};c.addProvider((Q.provide=Ie,Q.useClass=Ie,Q[mt]=[_.U8],Q));c.addProvider({provide:X7,useFactory:function(){return new X7(_.V5())}});
c.addProvider({provide:Yvz,useFactory:_.TW.getInstance});Q={};c.addProvider((Q.provide=u$,Q.useClass=u$,Q[mt]=[$X,Yvz,_.U8],Q));c.addProvider({provide:b$,useClass:b$});c.addProvider({provide:fZ,useClass:fZ});c.addProvider({provide:Jx,useClass:Jx});c.addProvider({provide:_.UQ,useClass:_.UQ});c.addProvider({provide:TB,useClass:TB});Q={};c.addProvider((Q.provide=gz,Q.useClass=gz,Q[mt]=[xs],Q));Q={};c.addProvider((Q.provide=eF,Q.useClass=eF,Q[mt]=[_.U8],Q));_.u("web_enable_prefetching_videos_on_home")&&
(c.addProvider({provide:VC,useClass:VC}),c.addProvider({provide:np,useClass:np}));Q={};c.addProvider((Q.provide=qb,Q.useClass=qb,Q[mt]=[_.U8],Q));c.addProvider({provide:ae,useClass:ae});Q={};c.addProvider((Q.provide=Q9,Q.useClass=Q9,Q[mt]=[_.M6,_.U8],Q));Q={};c.addProvider((Q.provide=Ax,Q.useClass=Ax,Q[mt]=[_.U8],Q));c.addProvider({provide:bm,useClass:bm});c.addProvider({provide:GP,useClass:GP});Q={};c.addProvider((Q.provide=ZX,Q.useClass=ZX,Q[mt]=[xs,_.U8],Q));Q={};c.addProvider((Q.provide=Mb,Q.useClass=
Mb,Q[mt]=[xs,_.U8,_.M6],Q));Q={};c.addProvider((Q.provide=iC,Q.useClass=iC,Q[mt]=[_.U8],Q));Q={};c.addProvider((Q.provide=sl,Q.useClass=sl,Q[mt]=[_.U8,_.M6],Q));Q={};c.addProvider((Q.provide=kX,Q.useClass=kX,Q[mt]=[_.J8],Q));Q={};c.addProvider((Q.provide=Wk,Q.useClass=Wk,Q[mt]=[_.J8],Q));c.addProvider({provide:oe,useClass:oe});c.addProvider({provide:Sq,useClass:Sq});c.addProvider({provide:bC,useClass:bC});c.addProvider({provide:fd,useClass:fd});c.addProvider({provide:y6,useClass:y6});c.addProvider({provide:YX,
useClass:YX});c.addProvider({provide:Re,useClass:Re});_.u("kevlar_enable_mss_lazy_load")&&c.addProvider({provide:_.v$,useClass:LeN});c.addProvider({provide:_.us,useClass:JD});c.addProvider({provide:yo,useFactory:function(){return _.dQ.getInstance()}});
c.addProvider({provide:yCh,useFactory:g6x});c.addProvider({provide:m7,useFactory:function(){return _.HL.getInstance()}});
c.addProvider({provide:wC$,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});Q={};c.addProvider((Q.provide=_.yC,Q.useClass=_.yC,Q[mt]=[_.J8,_.U8,_.Dp,yCh,m7,yo,wC$,nM],Q));c.addProvider({provide:_.Fd,useClass:nVd});c.addProvider({provide:_.Dwz,useClass:HGi});Q={};c.addProvider((Q.provide=CZ,Q.useClass=CZ,Q[mt]=[_.Dwz],Q));Q={};c.addProvider((Q.provide=_.oE,Q.useFactory=function(z){return z.upliftCompletionResolver.promise},Q[mt]=[cZV],Q));
Q=_.gC("IS_SHELL_LOAD")?"aa":"eocs";var f=_.gC("IS_SHELL_LOAD")?3:2;_.g2().parkOrScheduleJob(function(){fZO()},f,Q);
_.g2().parkOrScheduleJob(function(){_.fl().resolve(SZ).start()},2,"eocs");
_.g2().parkOrScheduleJob(function(){ojd()},2,"eocs");
_.g2().parkOrScheduleJob(function(){_.fl().resolve(RE).start()},2,"eocs");
_.u("kevlar_debug_data_app_registration_ks")||adZ();c.addProvider({provide:_.wj,useValue:new XN$(S.root)});c.addProvider({provide:kL,useValue:new kvR});c.addProvider({provide:_.bVH,useValue:new I_d(S.root)});c.addProvider({provide:_.s_,useValue:new nwd});c.addProvider({provide:_.CM,useClass:bF});c.addProvider({provide:IZO,useClass:U3});_.u("kevlar_network_sli_killswitch")||c.addProvider({provide:NdV,useValue:j2_});c.addProvider({provide:A$G,useFactory:qsx});_.u("web_bind_fetch")&&(Q={},c.addProvider((Q.provide=
X_V,Q.useFactory=TuZ,Q[mt]=[_.QS(A$G)],Q)));_.u("web_bind_parse")&&(Q={},c.addProvider((Q.provide=OiE,Q.useFactory=wjR,Q[mt]=[_.QS(A$G)],Q)));_.u("web_bind_window_request")&&(Q={},c.addProvider((Q.provide=zsB,Q.useFactory=sUp,Q[mt]=[_.QS(A$G)],Q)));Q={};c.addProvider((Q.provide=vGz,Q.useFactory=myR,Q[mt]=[_.oE,zP,_.df],Q));Q={};c.addProvider((Q.provide=dwi,Q.useClass=ZG,Q[mt]=[vGz],Q));c.addProvider({provide:JCh,useClass:cCe});c.addProvider({provide:gGd,useClass:k8H});Q=[].concat(_.Hs(E2));_.u("web_continuation_response_processing")&&
Q.push(_.gj);Q.push(LxH);_.u("enable_share_panel_navigation_logging_fix_on_web")&&Q.push(_.B3u);c.addProvider({provide:lGT,useValue:Q});c.addProvider({provide:DCo,useClass:WDp});c.addProvider({provide:lTp,useClass:Keg});Q={};c.addProvider((Q.provide=lFY,Q.useClass=Dv$,Q[mt]=[xs],Q));_.Mq.addLowPriorityJob(function(){XBT()});
Q={};c.addProvider((Q.provide=H3p,Q.useFactory=function(z){return function(x){var I,n=(I=_.Y(x.commandMetadata,_.Qw))==null?void 0:I.url;if(!n)throw new _.Yr("No URL for PBJ Command",x);n=umz(n,{pbj:"1"});I=gQT(n,{})||{};I=Object.assign({},I,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.WY("STS").toString()});x=_.nl({command:JSON.stringify(x),session_token:_.WY("XSRF_TOKEN")});return z.fetch(n,{method:"POST",headers:I,body:x})}},Q[mt]=[lTp],Q));
Q=[];Q.push(c.resolve(gGd));f={};f=(f.client_location=_.TW.getInstance(),f.consistency=_.$cM(),f.entities=c.resolve(fyz),f.response_received_commands=c.resolve(DCo),f.store=c.resolve(_.$CZ),f.tokens=c.resolve(gGd),f);if(_.u("web_shorts_prefetch_service_enabled")){var U=new brs(c.resolve(_.Ad));f.shorts_prefetch=U}f.adblock_detection=c.resolve(lFY);c.addProvider({provide:_.L6,useClass:_.L6});U=c.resolve(Soe);var a=[];_.u("PremiumClientSharedConfig__enable_att_context_processor")&&(c.addProvider({provide:kHd,
useClass:WRu}),a.push(c.resolve(kHd)));if(_.u("owl_pl_await")){var X={};c.addProvider((X.provide=c$T,X.useFactory=function(z){return new mrp(z)},X[mt]=[_.L6],X));
a.push(c.resolve(c$T))}MKd(U,c.resolve(lTp),c.resolve(aT0),f,c.resolve(_.Ad),Q,a,c.resolve(dwi),c.resolve(JCh));c.addProvider({provide:_.M6,useValue:_.dj.instance});_.u("start_client_gcf")&&c.addProvider({provide:DE,useValue:M8d()});c.addProvider({provide:JZ1,useFactory:function(){return new JZ1(_.fl().resolve(_.L6),_.HL.getInstance())}});
_.g2().parkOrScheduleJob(function(){aZE()},1,"eocs");
Q={};c.addProvider((Q.provide=mj,Q.useClass=mj,Q[mt]=[_.df,_.M6],Q));c.addProvider({provide:_.jHU,useFactory:_.Iu.getInstance});_.g2().parkOrScheduleJob(function(){_.fl().resolve(mj).refresh()},0,"eocs");
Dns(HT8.watchEndpointMap||{},U.reelWatchEndpointMap||{},S.injector.resolve(_.M6));c.addProvider({provide:H$,useValue:_.ls.instance});_.u("kevlar_signal_collection_killswitch")||(Q={},c.addProvider((Q.provide=VOd,Q.useClass=VOd,Q[mt]=[$X,V6],Q)),_.g2().parkOrScheduleJob(function(){_.fl().resolve(VOd).record()},1,"eocs"));
_.u("web_debug_handler_registration_killswitch")||_.g2().parkOrScheduleJob(function(){UeY("DOWNLOAD_PES",WgY);_.u("offline_client_state_export_ks")||UeY("OFFLINE_CLIENT_STATE",iAT)},0,"eocs");
_.u("kevlar_prevent_polymer_dynamic_font_load")&&_.g2().parkOrScheduleJob(function(){var z=[_.QN(MzU),_.QN(iiE)];z=_.A(z);for(var x=z.next();!x.done;x=z.next()){x=x.value;var I=document.createElement("link");_.d_(I,x,"stylesheet");document.head.appendChild(I)}},1,"eocs");
Q=S.injector.resolve(_.M6);_.eii.instance=new _.eii(Q);u9x(wNl(new gwz(Q)));Q={};S.injector.addProvider((Q.provide=SR,Q.useFactory=function(z){(z=z==null?void 0:z.getCurrentPage())?z=z.visibilityObserver:(yjp||(yjp=Hmp()),z=yjp);return z},Q[mt]=[_.QS(_.oZ)],Q.skipCache=!0,Q));
c.addProvider({provide:_.ra,useClass:Y8});c.addProvider({provide:nE,useClass:ldJ});S.injector.addProvider({provide:uHs,useValue:Aid});c.addProvider({provide:UNh,useValue:WBY});c.addProvider({provide:_.Lv,useValue:VcZ});S=c.addProvider;YTN||(YTN=new lZU);S.call(c,{provide:_.au,useValue:YTN});c.addProvider({provide:_.t2,useValue:_.WY("HTML_DIR")==="rtl"?"rtl":"ltr"});c.addProvider({provide:JXe,useClass:nGe});c.addProvider({provide:_.FB,useClass:Xj});_.fl().addProvider({provide:AXu,useValue:_.u("enable_web_delhi_icons")?
tlB.concat(RQN):EZp.concat(VlN)});c.addProvider({provide:_.zu,useClass:_.zu});c.addProvider({provide:_.qdg,useValue:new hsZ});c.addProvider({provide:JIJ,useClass:SAT});c.addProvider({provide:Ul,useClass:Ul});c.addProvider({provide:Ay,useClass:Ay});S={};c.addProvider((S.provide=i$,S.useClass=i$,S[mt]=[_.M6,_.YF],S));c.addProvider({provide:wR,useClass:wR});c.addProvider({provide:Ctd,useClass:KpU});c.addProvider({provide:xS,useClass:xS});c.addProvider({provide:cRJ,useValue:egT});c.addProvider({provide:_.i3,
useClass:cXp});_.u("enable_payments_purchase_manager")&&c.addProvider({provide:Pyp,useClass:riJ});c.addProvider({provide:spN,useFactory:function(){return function(z){return _.w_2(z)}}});
c.addProvider({provide:_.ZG_,useClass:G8h});S={};c.addProvider((S.provide=hy,S.useClass=hy,S[mt]=[_.ZG_],S));c.addProvider({provide:Xk,useClass:Xk});c.addProvider({provide:K4$,useValue:V_l});c.addProvider({provide:s4i,useValue:_.wcg});c.addProvider({provide:nVp,useClass:Npp});c.addProvider({provide:CME,useValue:qZT});S={};c.addProvider((S.provide=_.AD,S.useClass=HzU,S[mt]=[CME],S));_.u("web_ephemeral_actions")&&(S={},c.addProvider((S.provide=_.Fj,S.useClass=x8,S[mt]=[_.kR,_.CM],S)));if(_.u("web_explore_hub_on_hover")||
_.u("web_client_explore_hub_on_hover"))S={},c.addProvider((S.provide=NQ,S.useClass=NQ,S[mt]=[_.M6,yo],S));c.addProvider({provide:gKz,useValue:wFc});S={};c.addProvider((S.provide=K0d,S.useClass=NsJ,S[mt]=[_.M6],S))}},oZE);var Sy1={},c58=(Sy1.initialized={priority:10,callback:function(){if(!biN){Ekz();iHZ("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.xr(_.u2(iHZ,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.u("log_heartbeat_with_lifecycles")){var S={};Vt.instance||(Vt.instance=new Vt);Vt.instance.install((S.document_visible={callback:ZHz,priority:10},S.document_hidden={callback:ZHz,priority:10},S))}else _.Se(document,"visibilitychange",ZHz);biN=!0}(S=_.wN())&&S!=="UNDEFINED_CSN"&&NTz(S)}},Sy1);var QnE={},fQE=(QnE.initialized={callback:function(S){var c=_.qo(232091),Q=S.injector.resolve(_.Dp);_.Oc(Q,c);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?aFz()&&_.xA(Q,c):(S=S.injector.resolve(spN)("refresh_detector"))&&(S.get("first_tab_load")?_.xA(Q,c):S.set("first_tab_load","1"))}},QnE);var Ug0={},J5O=(Ug0.initialized={priority:10,callback:IFT},Ug0);var aQV={},A5E=(aQV.initialized={priority:0,callback:function(){var S=new iR_,c="other";_.NJ?c="chrome":_.bR?c="firefox":_.GD?c="safari":yS&&(c="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(Q){S.increment(_.uB(),Q,c)}).catch(function(){S.increment(_.uB(),!1,c)}):S.increment(_.uB(),!1,c)}},aQV);var X7V={},OcO=(X7V.rendering={priority:8,callback:nep},X7V);var zhU={},xg8=(zhU.rendering={priority:10,callback:h4Y},zhU.rendered={callback:pUY},zhU),FcO={},B_g=(FcO.rendering={callback:h4Y},FcO.rendered={callback:pUY},FcO);var IQB=!1,nDp={},bcV=(nDp.initialized={priority:10,callback:function(){IQB||(C5p({didPatch:function(S){S.el&&Y3H(S.el,S.props)},
didUnmount:function(S){jup(S.el)}}),IQB=!0)}},nDp);var N_E=/^\/shorts\/?$/;_.G_("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.u("kevlar_enable_mss")){_.cSY(new NKu);var KcE=!0,$gg,Hp;KcE=KcE===void 0?!1:KcE;$gg=$gg===void 0?!1:$gg;Hp=Hp===void 0?{}:Hp;var uKU=Hp.cssRowKey||"",jn1=Hp.combinedSignature||"";!uKU&&window&&window._F_cssRowKey&&(uKU=window._F_cssRowKey,!jn1&&window._F_combinedSignature&&(jn1=window._F_combinedSignature));if(uKU&&typeof window._F_installCss!=="function")throw Error("wd");var lQE=Hp.loaderClass||_.eg,Di=rSo("base-js"),YyG,CoU=vCp("",Di);YyG=_.XK(CoU);var pp=new lQE(YyG,uKU,jn1,KcE,$gg),HcT=
Hp.useCors||Di&&Di.hasAttribute("crossorigin"),Dgg=Hp.corsMode||Di&&Di.getAttribute("crossorigin");HcT&&(pp.useCors_=HcT);Dgg&&(pp.corsMode_=Dgg);Hp.urlMaxLength&&(pp.urlMaxLength=Hp.urlMaxLength);Hp.fetchPriority&&(pp.fetchPriority=Hp.fetchPriority);var p70=wF();p70.JSC$8090_loader_=pp;p70.setBatchModeEnabled(!0)}
(function(){var S=document.querySelector("ytd-app");if(!S)throw Error("Jj");S=new Bp({root:S,injector:_.fl()});S.install(c58);var c={};S.install((c.initialized={priority:10,callback:bsz},c));_.u("wp_lat_b")&&(c={},S.install((c.initialized={priority:10,callback:function(){DyZ()}},c)));
c={};S.install((c.rendered={priority:0,callback:BLc},c));c={};S.install((c.rendered={priority:0,callback:function(){_.Mq.addLowPriorityJob(function(){_.bGp>1&&(a4Y(),x3z())},4E4)}},c));
S.install(aBV);S.install(fQE);S.install(bcV);taH();S.install(IBG);S.install(SZZ);S.install(UGg);S.install(rCe);S.install(Ej_);S.install(FVN);S.install(mVV);_.u("kevlar_enable_mss_lazy_load")&&S.install(J5O);S.install(QgG);S.install(A5E);if(!_.gC("IS_SHELL_LOAD")||_.u("kevlar_fetch_initial_data_promise_client")||_.u("sw_nav_preload_pbj")){var Q=_.Bi(window.location.href);c=Q&&Q==="/watch";Q=Q&&Q.match(N_E);c?S.install(B_g):Q?S.install(OcO):S.install(xg8)}else S.install(y$p);S.install(X80);_.u("web_enable_prefetching_videos_on_home")&&
S.install(KVp);_.u("start_client_gcf")&&S.install(nlB);S.install(Gis);(new ZRu).increment("INSTALLED");S.install(bTZ);S.install(tzT);S.transition("initialized");KKz()})();
_.XU=[[["bG1wcmk2M245ZjFraW5kIzg=","Mjg3N2trNXB2YWx1ZSNwcms3"],"TlRfS0lORF9TVEFSVCN4dG5zcGllMmV5MnhBRF9QTEFDRU1F"]];_.A4=["dWsxZDZsZ2xvYmFsQ2FsbGJhY2tzI3lxcG9oNg==","cm1hbGl0eURldGVjdGVkI2VjcXU1cW40c2I3NW9uQWJubw==","bkFkU2tpcCNsemN6ems4MnA5eW9v","cmF3X3BsYXllcl9yZXNwb25zZSNienZ0NW9maXl3NQ==","eWthZFNsb3RzI3VtajNrMmVoMmk="];_.PL="dWsxZDZsZ2xvYmFsQ2FsbGJhY2tzI3lxcG9oNg== cm1hbGl0eURldGVjdGVkI2VjcXU1cW40c2I3NW9uQWJubw== bkFkU2tpcCNsemN6ems4MnA5eW9v cmF3X3BsYXllcl9yZXNwb25zZSNienZ0NW9maXl3NQ== IzQxbnMxc2UycnI2dHdlYl9wbGF5bGlzdF9xdWV1ZV9tdWx0aXBsZV9za2lwc19rcw== Yl9zYV9lZiMyamdlbWRkczQ0YWhh eWthZFNsb3RzI3VtajNrMmVoMmk=".split(" ");
_._ModuleManager_initialize=function(S,c){if(!_.ho){if(!_.Tk)return;_.cSY(_.Tk())}_.ho.setAllModuleInfoString(S,c)};
_._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{
_.wg=function(S,c,Q,f,U){var a={};c&&(a[c]=Q);f?a.errorType=f:U&&(a.errorReason=U);_.Te(S,a);_.wQ()};
_.s3=function(S){var c=_.g2();return _.$0J(c,S,1)};
_.DI({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 S=this.query;S&&(this.full||S[0]==="("||(S="("+S+")"),this._mq=window.matchMedia(S),this._add(),this.queryHandler(this._mq))},
queryHandler:function(S){this._setQueryMatches(S.matches)}});var Wc1;var gDE;var ehG=function(){};
_.J=ehG.prototype;_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._focusedChanged=function(){};
_.J._createRipple=function(){};
_.J.registered=function(){};
_.J._invalidChanged=function(){};
_.J.hasValidator=function(){};
_.J.validate=function(){};
_.J._getValidity=function(){};
_.J._requiredChanged=function(){};
_.J._valueChanged=function(){};
_.J._checkedChanged=function(){};
_.J._buttonStateChanged=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
ehG=_.DI({is:"tp-yt-paper-radio-button",_template:function(){if(gDE!==void 0)return gDE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;Wc1===void 0&&(Wc1=document.createElement("template"));var f=Wc1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return gDE=S},
behaviors:[_.feJ],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(){_.tO(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var S=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),c=Math.floor(3*S);c%2!==S%2&&c++;this.updateStyles({"--paper-radio-button-ink-size":c+"px"})}})}});var kRV;var r5E;_.DI({_template:function(){if(r5E!==void 0)return r5E;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;kRV===void 0&&(kRV=document.createElement("template"));var f=kRV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return r5E=S},
is:"tp-yt-paper-radio-group",behaviors:[_.bvd],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(S){var c=this._valueToItem(S);if(!c||!c.hasAttribute("disabled")){if(this.selected){c=this._valueToItem(this.selected);if(this.selected==S)if(this.allowEmptySelection)S="";else{c&&(c.checked=!0);return}c&&
(c.checked=!1)}_.rM.select.apply(this,[S]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(S){this._focusPrevious();S.preventDefault();this._activateFocusedItem()},
_onDownKey:function(S){this._focusNext();S.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(S){_.nzJ._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(S){_.nzJ._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.rM._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.Tp._resetTabindices.apply(this,arguments);this.items.forEach(function(S){S.removeAttribute("aria-selected")},this)}});var dgZ;_.i8("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var M4=function(){return _.W.apply(this,arguments)||this};
_.C(M4,_.W);_.J=M4.prototype;_.J.computeHasPrimaryIcon=function(S){return!(!S.icon&&!S.thumbnail)};
_.J.computeHasSecondary=function(S){return!(!S.secondaryIcon&&!S.secondaryNotificationText)};
_.J.computeHideSecondaryString=function(S){return!_.u("disable_hide_empty_secondary_string")&&!S.secondaryNotificationText};
_.J.computeCompactLinkStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.J.computeHasFitHeight=function(S){return S==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.J.isActiveEndpoint=function(S){return(S=this.get("commandMetadata.webCommandMetadata.url",S))?_.Bi(window.location.href)!=="/account_transfer_channel"&&_.Bi(window.location.href)!=="/gaia_link"&&_.Bi(window.location.href)!=="/channel_switcher"||S!=="/account"?_.Bi(window.location.href)===S:!0:!1};
_.J.onTap=function(){var S;((S=this.data)==null?0:S.serviceEndpoint)&&_.xt(this.hostElement,[this.data.serviceEndpoint])};
M4.prototype.onTap=M4.prototype.onTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],M4.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],M4.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.P("design:type",Boolean)],M4.prototype,"active",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.P("design:type",String)],M4.prototype,"compactLinkStyle",void 0);
_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",Object)],M4.prototype,"icon",void 0);_.d([_.Z({computed:"computeIcon_(data.secondaryIcon)"}),_.P("design:type",Object)],M4.prototype,"secondaryIcon",void 0);_.d([_.Z({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],M4.prototype,"hasSecondary",void 0);_.d([_.Z({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],M4.prototype,"hideSecondaryString",void 0);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],M4.prototype,"onTap",null);_.d([_.e({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],M4);
_.k(M4,"ytd-compact-link-renderer",function(){if(dgZ!==void 0)return dgZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return dgZ=S},{mode:1});var vDB;_.i8("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var im=function(){var S=_.W.apply(this,arguments)||this;S.role="link";S.tabindex="0";S.actionMap=_.u("kevlar_move_theme_action_handlers_killswitch")?{"yt-signal-action-toggle-dark-theme-on":"handleSignalActionToggleDarkThemeOn","yt-signal-action-toggle-dark-theme-off":"handleSignalActionToggleDarkThemeOff","yt-signal-action-toggle-dark-theme-device":"handleSignalActionToggleDarkThemeDevice"}:{};return S};
_.C(im,_.W);_.J=im.prototype;_.J.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.pJ()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.J.getCurrentTheme=function(){return _.h4()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.pJ()};
_.J.onThemeSelected=function(S,c){var Q=S||c?S:_.DO(),f=(Q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!Q&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.bmo(_.Bi(window.location.href));_.l2(0,165,S);_.l2(0,174,c);this.prefs.save();f&&_.XF(this.hostElement,"yt-dark-mode-toggled-action",[Q]);_.XF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.onTap=function(){this.data.serviceEndpoint&&_.xt(this.hostElement,[this.data.serviceEndpoint])};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
im.prototype.onTap=im.prototype.onTap;im.prototype.dataChanged=im.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],im.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.VP),_.P("design:type",Object)],im.prototype,"paperItemBehaviors",void 0);_.d([_.Z(),_.P("design:type",Object)],im.prototype,"data",void 0);_.d([_.Z({value:function(){return _.jL()}}),
_.P("design:type",_.Qz)],im.prototype,"prefs",void 0);_.d([_.Z(),_.P("design:type",Object)],im.prototype,"label",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],im.prototype,"role",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],im.prototype,"tabindex",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],im.prototype,"dataChanged",null);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],im.prototype,"onTap",null);_.d([_.e({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],im);
_.k(im,"ytd-toggle-theme-compact-link-renderer",function(){if(vDB!==void 0)return vDB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return vDB=S},{mode:1});
}catch(e){_._DumpException(e)}
try{
var LcT,EDp;_.Zi=function(S){return!!S.getOptions("captions")};
_.PoE=function(S){return(S=S.getOption("captions","track"))?!!S.displayName:!1};
_.Gu=function(S,c){_.GV(c,S,function(){return LcT[c]},function(Q){LcT[c]=Q;
if(!_.u("mweb_player_ve_show_ks")){var f=_.wN(0);f&&Q&&_.P2(f,Q)}})};
_.Wp=function(S){(S=LcT[S])&&_.xA(_.Kv(),S)};
LcT={};var tS0;/*

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
*/
_.DI({_template:function(){if(tS0!==void 0)return tS0;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;EDp===void 0&&(EDp=document.createElement("template"));var f=EDp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return tS0=S},
is:"tp-yt-paper-checkbox",behaviors:[_.feJ],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.tO(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var S=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),c="px",Q=S.match(/[A-Za-z]+$/);Q!==null&&(c=Q[0]);S=parseFloat(S);Q=8/3*S;c==="px"&&(Q=Math.floor(Q),Q%2!==S%2&&Q++);this.updateStyles({"--paper-checkbox-ink-size":Q+
c})}})},
_computeCheckboxClass:function(S,c){var Q="";S&&(Q+="checked ");c&&(Q+="invalid");return Q},
_computeCheckmarkClass:function(S){return S?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.c8e._createRipple.call(this)}});var VSE=new _.L("radioButtonSurveyOptionRenderer"),Rh2=new _.L("checkboxSurveyOptionRenderer");var y5T;var oDO;var mgE=0,gg=function(){var S=_.W.call(this)||this;S.selected=!1;S.isOverlay=!1;S.inputId="toggle-option-"+mgE;mgE++;return S};
_.C(gg,_.W);gg.prototype.onTap=function(){_.Az(this.hostElement,"ytd-toggle-option-clicked")};
_.d([_.Z(),_.P("design:type",String)],gg.prototype,"label",void 0);_.d([_.Z(),_.P("design:type",String)],gg.prototype,"inputId",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gg.prototype,"selected",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gg.prototype,"isOverlay",void 0);_.d([_.e({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.P("design:paramtypes",[])],gg);
_.k(gg,"ytd-toggle-option-renderer",function(){if(oDO!==void 0)return oDO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return oDO=S},{mode:1});var eZ=function(){var S=_.W.apply(this,arguments)||this;S.isToggleOption=!1;S.isOverlay=!1;return S};
_.C(eZ,_.W);eZ.prototype.onTap=function(S){S.preventDefault();this.data&&(S=!this.data.checked,this.set("data.checked",S),_.Az(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:S,value:this.data.value}))};
_.Rh.Object.defineProperties(eZ.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
eZ.prototype.onTap=eZ.prototype.onTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],eZ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],eZ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],eZ.prototype,"isToggleOption",void 0);_.d([_.Z(),_.P("design:type",Object)],eZ.prototype,"isOverlay",void 0);_.d([_.M("data.responseText"),_.P("design:type",String),_.P("design:paramtypes",[])],eZ.prototype,"label",null);
_.d([_.FV("ytd-toggle-option-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],eZ.prototype,"onTap",null);_.d([_.e({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],eZ);
_.k(eZ,"ytd-checkbox-survey-option-renderer",function(){if(y5T!==void 0)return y5T;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return y5T=S},{mode:1});var S7p;var chU;var k8=function(){var S=_.W.apply(this,arguments)||this;S.checked=!1;S.isToggleOption=!1;return S};
_.C(k8,_.W);k8.prototype.onTap=function(){this.data&&(this.checked?_.XF(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.XF(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
k8.prototype.onTap=k8.prototype.onTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],k8.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],k8.prototype,"checked",void 0);_.d([_.Z(),_.P("design:type",Object)],k8.prototype,"isToggleOption",void 0);_.d([_.FV("ytd-toggle-option-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],k8.prototype,"onTap",null);
_.d([_.e({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],k8);
_.k(k8,"ytd-radio-button-survey-option-renderer",function(){if(chU!==void 0)return chU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return chU=S},{mode:1});var rg=function(){var S=_.W.apply(this,arguments)||this;S.disableAnimation=!1;S.isToggleOption=!0;S.followUpSurveyCommand=null;S.selectedRatingEndpoint=null;S.isSlimlineSurveyFollowUp=!1;S.isShortsStyle=!1;S.styleOverrideAttribute=!0;S.isDarkMode=!1;S.isSubmitted=!1;S.roundedContainer=!0;S.improveShortsResponseRate=_.u("web_improve_shorts_response_rate");S.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 S};
_.C(rg,_.W);_.J=rg.prototype;
_.J.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"}}}}};
_.J.attached=function(){var S=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(Q){var f;if((f=Q[0])!=null&&f.isIntersecting){_.b7().reportShown(S.hostElement);var U;(U=S.intersectionObserver)==null||U.unobserve(S.hostElement)}},{rootMargin:"0px",
threshold:.6});var c;(c=this.intersectionObserver)==null||c.observe(this.hostElement)};
_.J.onDarkModeToggledAction=function(S){this.isDarkMode=S};
_.J.dataChanged=function(){var S;if(((S=this.data)==null?void 0:S.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var c;((c=this.data)==null?void 0:c.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var Q,f,U,a;this.darkColorPalette=(Q=this.data)==null?void 0:(f=Q.inlineContent)==null?void 0:(U=f.compactVideoRenderer)==null?void 0:(a=U.thumbnail)==null?
void 0:a.darkColorPalette;var X,z,x,I;this.lightColorPalette=(X=this.data)==null?void 0:(z=X.inlineContent)==null?void 0:(x=z.compactVideoRenderer)==null?void 0:(I=x.thumbnail)==null?void 0:I.lightColorPalette;var n,b;if(((n=this.data)==null?0:(b=n.inlineContent)==null?0:b.compactVideoRenderer)&&this.isShortsStyle){var N,l,H,q;S=_.Ja((N=this.data)==null?void 0:(l=N.inlineContent)==null?void 0:(H=l.compactVideoRenderer)==null?void 0:(q=H.thumbnail)==null?void 0:q.thumbnails);_.Or(this.hostElement,
{"--yt-background-url":"url("+S+")"})}};
_.J.handleRequestCompletion=function(){this.hostElement.hidden&&_.Az(this.hostElement,"yt-dismissible-item-dismissed")};
_.J.onPopupClosed=function(S){var c;((c=S.detail)==null?void 0:c.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.XF(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.J.handleInlineSurveyRatingSelect=function(S,c){var Q=this;this.selectedRatingEndpoint=S;this.followUpSurveyCommand=c;this.expanded=!!S;this.getOptionRenderers().forEach(function(f,U){Q.notifyPath("followUpSurveyCommand.followUpOptions."+U+".checkboxSurveyOptionRenderer.checked");Q.set("followUpSurveyCommand.followUpOptions."+U+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),S=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.XF(this.hostElement,"yt-reel-non-video-content-dismissal-command",[S]))};
_.J.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.XF(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var S,c=(S=this.data)==null?void 0:S.dismissalEndpoint;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.J.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.XF(this.hostElement,"yt-close-popup-action"))};
_.J.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var S=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{S=this.getOptionRenderers().filter(function(f){return f.checked});
if(S.length===0)return;S=S.map(function(f){return f.responseEndpoint})}var c=[];
S.forEach(function(f,U){U!==0&&(f=_.Y(f,_.ie))&&f.feedbackToken&&c.push(f.feedbackToken)});
if(S=S[0]){var Q={};c.length>0&&(Q.extra_feedback_tokens=c);this.ytComponentBehavior.resolveCommand(S,{form:Q})}}};
_.J.getOptionRenderers=function(){var S=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(c){S.isSingleSelect=!!_.Y(c,VSE);return S.isSingleSelect?_.Y(c,VSE):_.Y(c,Rh2)}):[]};
_.J.handleInlineSurveyOptionSelect=function(S){S=this.optionSelector.indexOf(S);S!==-1&&this.optionSelector.selectIndex(S)};
_.J.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.J.maybeGetBackgroundColor=function(S){return this.isDarkMode?S.section2Color:S.section3Color};
_.J.colorPaletteChanged=function(){var S=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;S=S&&this.maybeGetBackgroundColor(S);this.dismissibleEl.style.backgroundColor=!S||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.WV(S)};
_.Rh.Object.defineProperties(rg.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
rg.prototype.colorPaletteChanged=rg.prototype.colorPaletteChanged;rg.prototype.onPopupClosed=rg.prototype.onPopupClosed;rg.prototype.handleRequestCompletion=rg.prototype.handleRequestCompletion;rg.prototype.dataChanged=rg.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],rg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],rg.prototype,"actionHandlerBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],rg.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rg.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],rg.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.nU("#follow-up-survey-options"),_.P("design:type",Object)],rg.prototype,"optionSelector",void 0);_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"disableAnimation",void 0);_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"isToggleOption",void 0);_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"followUpSurveyCommand",void 0);_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"selectedRatingEndpoint",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],rg.prototype,"expanded",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rg.prototype,"isSlimlineSurveyFollowUp",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rg.prototype,"isShortsStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rg.prototype,"styleOverrideAttribute",void 0);_.d([_.Z(),_.P("design:type",Boolean)],rg.prototype,"isSingleSelect",void 0);_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"isDarkMode",void 0);
_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"lightColorPalette",void 0);_.d([_.Z(),_.P("design:type",Object)],rg.prototype,"darkColorPalette",void 0);_.d([_.M("selectedRatingEndpoint","isShortsStyle"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rg.prototype,"isOptionSelected",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rg.prototype,"roundedContainer",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rg.prototype,"improveShortsResponseRate",void 0);_.d([_.nU("#dismissible"),_.P("design:type",HTMLElement)],rg.prototype,"dismissibleEl",void 0);_.d([_.nU("#dismiss-button yt-icon-button"),_.P("design:type",HTMLElement)],rg.prototype,"dismissButtonEl",void 0);_.d([_.nU("#inline-survey-header yt-icon-button"),_.P("design:type",HTMLElement)],rg.prototype,"inlineHeaderDismissButtonEl",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rg.prototype,"dataChanged",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rg.prototype,"handleRequestCompletion",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],rg.prototype,"onPopupClosed",null);
_.d([_.B0("darkColorPalette","lightColorPalette","isDarkMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rg.prototype,"colorPaletteChanged",null);_.d([_.e({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],rg);
_.k(rg,"ytd-inline-survey-renderer",function(){if(S7p!==void 0)return S7p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return S7p=S},{mode:1});var QNg=["en-CA","en","es-MX","fr-CA"];_.fW2=_.y_(function(S){var c=_.V_(S,{isOverlay:!1,isModern:!1}),Q=c.captionIconType,f=c.onClick;S=c.ariaLabel;var U=c.ariaPressed,a=c.isOverlay,X=c.isModern;c=_.EH("button",function(I){_.Gu(I,127299)});
var z=_.$d(function(I){_.Wp(127299);f==null||f(I);return!1}),x={};
return _.B("ytm-closed-captioning-button",{class:_.n4("ytmClosedCaptioningButtonHost",(x.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return Q()===-1&&a()},x.ytmClosedCaptioningButtonIconDisabled=function(){return Q()===-1&&!a()},x))},_.B("button",{el:c,
class:"ytmClosedCaptioningButtonButton",title:S,"aria-label":S,"aria-pressed":U,"on:click":z},_.B(_.C4,{icon:function(){var I="";var n=X()?"CLOSED_CAPTION_DELHI_PLAYER":"CLOSED_CAPTION";var b=_.jL().get("hl");n=!b||QNg.includes(b)?n:"SUBTITLES";b=Q();switch(b){case -1:case 0:I=n;break;case 1:I=n+"_FILLED";break;default:_.OZ(b)}return I}})))},"$e");
_.fW2.idomCompat={callbacks:{onClick:!0}};
}catch(e){_._DumpException(e)}
try{
_.VU=function(S){return function(c,Q){var f=S||Q.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(c,Q,{get:function(){var U;return this.$?this.$[f]:(U=_.I1(this))==null?void 0:U.querySelector("#"+f)},
enumerable:!0,configurable:!0})}};_.R4=function(S){S=S===void 0?!1:S;_.C9.call(this);this.pubSub_=new _.bB(S);_.F5(this,this.pubSub_)};
_.Xa(_.R4,_.C9);_.R4.prototype.subscribe=function(S,c,Q){return this.isDisposed()?0:this.pubSub_.subscribe(S,c,Q)};
_.R4.prototype.unsubscribe=function(S,c,Q){return this.isDisposed()?!1:this.pubSub_.unsubscribe(S,c,Q)};
_.R4.prototype.unsubscribeByKey=function(S){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(S)};
_.R4.prototype.publish=function(S,c){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var qgZ=function(){_.wg("ypcRedeemFlowStarted")},FG=function(S){_.wg("ypcRedeemFlowFailed",void 0,void 0,void 0,S)},TW0=function(S,c,Q){c&&Q&&(S.videos.forEach(function(f){f.videoId===c&&(f.itemId=Q)}),S.recommendedVideos.forEach(function(f){f.videoId===c&&(f.itemId=Q)}))};var wSN;var sGU;/*

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
*/
_.DI({_template:function(){if(sGU!==void 0)return sGU;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;wSN===void 0&&(wSN=document.createElement("template"));var f=wSN;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return sGU=S},
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(S,c){var Q=this._resolveSrc(S);Q!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",S===""||c?this._setLoading(!1):(this._resolvedSrc=Q,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 S=this.$.sizedImgDiv.style,c=this.$.placeholder.style;S.backgroundSize=c.backgroundSize=this.sizing;S.backgroundPosition=c.backgroundPosition=this.sizing?this.position:"";S.backgroundRepeat=c.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(S){S=_.JO(S,this.$.baseURIAnchor.href);S.length>=2&&S[0]==="/"&&S[1]!=="/"&&(S=(location.origin||location.protocol+"//"+location.host)+S);return S}});var MM1;var io2;_.DI({_template:function(){if(io2!==void 0)return io2;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;MM1===void 0&&(MM1=document.createElement("template"));var f=MM1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return io2=S},
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(S){return S?"false":"true"},
_headingChanged:function(S){var c=this.getAttribute("heading"),Q=this.getAttribute("aria-label");typeof Q==="string"&&Q!==c||this.setAttribute("aria-label",S)},
_computeHeadingClass:function(S){return S?" over-image":""},
_computeAnimated:function(S){return S}});var ZoE=new _.L("addRendererToItemSectionAction");var G5E;var BT=function(){return _.W.apply(this,arguments)||this};
_.C(BT,_.W);BT.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BT.prototype,"rendererBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],BT.prototype,"dismissibleItemBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],BT.prototype,"rendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BT.prototype,"data",void 0);_.d([_.e({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],BT);
_.k(BT,"ytd-comment-history-entry-renderer",function(){if(G5E!==void 0)return G5E;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return G5E=S},{mode:1});var W$p;_.i8("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.i8("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var I_=function(){return _.W.apply(this,arguments)||this};
_.C(I_,_.W);_.J=I_.prototype;_.J.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onKeyUp=function(S){if(S.keyCode===13)this.onTap()};
_.J.onTap=function(){this.data.recordClickEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var S=this.data.navigationEndpoint;S&&_.Y(S,_.sa)&&_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})};
_.J.readChanged=function(){var S;_.a1(this.hostElement,"unread",!((S=this.data)==null?0:S.read))};
_.J.dataChanged=function(){this.data&&_.a1(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.J.computeThumbnailSize=function(){var S;return((S=this.data)==null?0:S.highPriorityNotification)?32:48};
_.J.getEndpointURL=function(S){return S&&!_.Y(S,_.sa)?this.componentBehavior.computeHref_(S):null};
_.J.getEndpointData=function(S){return S&&!_.Y(S,_.sa)?S:null};
I_.prototype.computeThumbnailSize=I_.prototype.computeThumbnailSize;I_.prototype.dataChanged=I_.prototype.dataChanged;I_.prototype.readChanged=I_.prototype.readChanged;I_.prototype.onKeyUp=I_.prototype.onKeyUp;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],I_.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],I_.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],I_.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],I_.prototype,"data",void 0);_.d([_.Z({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.P("design:type",Number)],I_.prototype,"thumbnailSize",void 0);_.d([_.FV("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],I_.prototype,"onKeyUp",null);
_.d([_.B0("data.read"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I_.prototype,"readChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I_.prototype,"dataChanged",null);_.d([_.B0("data.highPriorityNotification"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I_.prototype,"computeThumbnailSize",null);
_.d([_.e({is:"ytd-notification-renderer",disableElementRegistration:!0})],I_);
_.k(I_,"ytd-notification-renderer",function(){if(W$p!==void 0)return W$p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return W$p=S},{mode:1});var gVE;var nF=function(){return _.W.apply(this,arguments)||this};
_.C(nF,_.W);nF.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"}}}};
nF.prototype.computeActionButtonClass=function(S){return!S.actionButtons||S.actionButtons.length<=1?"single-button":S.description?"vertical-buttons":"horizontal-buttons"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nF.prototype,"data",void 0);_.d([_.e({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],nF);
_.k(nF,"ytd-playlist-show-metadata-renderer",function(){if(gVE!==void 0)return gVE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return gVE=S},{mode:1});var eLE;_.i8("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var bq=function(){return _.W.apply(this,arguments)||this};
_.C(bq,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bq.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bq.prototype,"data",void 0);_.d([_.e({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],bq);
_.k(bq,"ytd-purchase-item-renderer",function(){if(eLE!==void 0)return eLE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return eLE=S},{mode:1});var k58;var r00={};r00.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(S){if(S)return S.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(S){if(S==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.i8("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var Nt=function(){return _.W.apply(this,arguments)||this};
_.C(Nt,_.W);Nt.prototype.onYtNavigate=function(S){var c=this.openPopupBehavior.getNavigationEndpointPopupAction(S.detail.endpoint);c&&(S.stopPropagation(),this.openPopupBehavior.openPopup(c))};
Nt.prototype.onYtNavigate=Nt.prototype.onYtNavigate;_.d([_.p(r00.YtSimpleTextSectionBehavior),_.P("design:type",Object)],Nt.prototype,"ytSimpleTextSectionBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],Nt.prototype,"openPopupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Nt.prototype,"data",void 0);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Nt.prototype,"onYtNavigate",null);_.d([_.e({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],Nt);
_.k(Nt,"ytd-simple-text-section-renderer",function(){if(k58!==void 0)return k58;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return k58=S},{mode:1});var deE;_.i8("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var KF=function(){return _.W.apply(this,arguments)||this};
_.C(KF,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],KF.prototype,"data",void 0);_.d([_.e({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],KF);
_.k(KF,"ytd-unlimited-page-feature-info-renderer",function(){if(deE!==void 0)return deE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return deE=S},{mode:1});var vV0;var PaE;var $T=function(){return _.W.apply(this,arguments)||this};
_.C($T,_.W);$T.prototype.dataChanged=function(){if(this.data){var S=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);S&&(S=_.U2(S,screen.width),this.hostElement.style.backgroundImage="url("+S+")")}};
$T.prototype.dataChanged=$T.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$T.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$T.prototype,"dataChanged",null);_.d([_.e({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],$T);
_.k($T,"ytd-post-redemption-section-renderer",function(){if(PaE!==void 0)return PaE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return PaE=S},{mode:1});var L$0;var uq=function(){return _.W.apply(this,arguments)||this};
_.C(uq,_.W);uq.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uq.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],uq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uq.prototype,"data",void 0);_.d([_.e({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],uq);
_.k(uq,"ytd-ypc-post-redemption-renderer",function(){if(L$0!==void 0)return L$0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return L$0=S},{mode:1});_.i8("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var jv=function(){var S=_.W.apply(this,arguments)||this;S.MIN_CODE_LENGTH=12;S.MAX_CODE_LENGTH=24;return S};
_.C(jv,_.W);_.J=jv.prototype;_.J.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.J.created=function(){this.riskService=new _.UAo;this.loadPaymentThenable=_.a7z(_.WY("YPC_MB_URL"))};
_.J.ready=function(){var S=this;this.code.addEventListener("keypress",function(c){S.onCodeInputKeypress(c)})};
_.J.dataChanged=function(){var S=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(c){c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.type==="attributes"&&Q.attributeName==="dark"&&S.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.J.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var S=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+S+")")}};
_.J.computeRedeemButton=function(S){(S=this.get("redeemButton.buttonRenderer",S))&&(S=Object.assign({},S,{serviceEndpoint:void 0}));return S};
_.J.onRedeemButtonTap=function(S){S.stopPropagation();qgZ();this.redeemCode()};
_.J.redeemCode=function(){var S=this;this.isLoading=!0;var c=this.riskService.init();_.Dg([c,this.loadPaymentThenable]).then(function(){var Q=S.data.redeemButton.buttonRenderer.serviceEndpoint,f=_.JFc(),U=payments.business.integration.ClientTokenFactory.createClientToken(_.Y(Q,_.bte).countryCode,f);f={c:S.code.value.trim(),rd:window.btoa(f),ctk:U};Q&&_.fl().resolve(_.U8).resolveCommand(Q,{form:Object.assign({},f,{element:S.hostElement})})},function(){S.showGenericError();
FG("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.eG(Error("Wl"))})};
_.J.onYtServiceRequestCompleted=function(S){S.stopPropagation();this.isLoading=!1;var c,Q;this.errorMessage=(c=S.detail)==null?void 0:(Q=c.data)==null?void 0:Q.errorMessage;var f,U;this.postRedemptionRenderer=(f=S.detail)==null?void 0:(U=f.data)==null?void 0:U.renderer;var a,X;if(S=(a=S.detail)==null?void 0:(X=a.data)==null?void 0:X.redirectEndpoint)this.isLoading=!0,_.Az(this.hostElement,"yt-navigate",{endpoint:S});this.errorMessage?FG("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
S)&&_.wg("ypcRedeemFlowSucceeded")};
_.J.onYtServiceRequestError=function(S){S.stopPropagation();this.isLoading=!1;if(S=this.get("detail.error.message",S))this.errorMessage=_.LK(S);FG("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.J.onInvokeInstrumentManagerActionCompleted=function(S){S.stopPropagation();this.redeemCode()};
_.J.onInvokeInstrumentManagerActionError=function(S){S.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",S)){case "instrumentManagerLoadError":this.showGenericError();FG("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();FG("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.wg("ypcRedeemFlowCancelled")}};
_.J.onInput=function(){var S=this;_.e$(this,"onInput",function(){var c=S.code.value.trim();S.redeemButtonDisabled=c.length<S.MIN_CODE_LENGTH||c.length>S.MAX_CODE_LENGTH},200)};
_.J.onCodeInputKeypress=function(S){S.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(qgZ(),this.redeemCode())};
_.J.computeImageUrl=function(S){return S?_.U2(S.thumbnails,600):null};
_.J.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
jv.prototype.onInvokeInstrumentManagerActionError=jv.prototype.onInvokeInstrumentManagerActionError;jv.prototype.onInvokeInstrumentManagerActionCompleted=jv.prototype.onInvokeInstrumentManagerActionCompleted;jv.prototype.onYtServiceRequestError=jv.prototype.onYtServiceRequestError;jv.prototype.onYtServiceRequestCompleted=jv.prototype.onYtServiceRequestCompleted;jv.prototype.dataChanged=jv.prototype.dataChanged;
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],jv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jv.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],jv.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Boolean)],jv.prototype,"redeemButtonDisabled",void 0);
_.d([_.Z(),_.P("design:type",Object)],jv.prototype,"errorMessage",void 0);_.d([_.Z(),_.P("design:type",Object)],jv.prototype,"postRedemptionRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],jv.prototype,"observer",void 0);_.d([_.nU("#code"),_.P("design:type",HTMLInputElement)],jv.prototype,"code",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jv.prototype,"dataChanged",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jv.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jv.prototype,"onYtServiceRequestError",null);
_.d([_.FV("yt-invoke-instrument-manager-action-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jv.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.d([_.FV("yt-invoke-instrument-manager-action-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jv.prototype,"onInvokeInstrumentManagerActionError",null);_.d([_.e({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],jv);
_.k(jv,"ytd-redeem-code-renderer",function(){if(vV0!==void 0)return vV0;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return vV0=S},{mode:1});var EVO;_.i8("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var lq=function(){var S=_.W.apply(this,arguments)||this;S.businessEmailDisplayState="HIDE_SECTION";return S};
_.C(lq,_.W);_.J=lq.prototype;_.J.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}}}}}};
_.J.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"};
_.J.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.J.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.kU("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.J.onYtServiceRequestCompleted=function(S){var c;if((c=S.detail.data)==null?0:c.businessEmail)this.businessEmail=S.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var Q;if((Q=S.detail.data)==null?0:Q.errorMessage)this.businessEmailErrorMessage=S.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.J.computeEmailHref=function(S){return"mailto:"+S};
_.J.computeSafeUrl=function(S){if(S)return _.jS(S)};
_.J.onBusinessEmailCaptchaSubmit=function(){var S;(S=this.data)!=null&&S.onBusinessEmailRevealClickCommand&&(S=this.JSC$19132_captchaTextarea.value)&&(S={recaptcha_response_token:S,channel_id:this.data.channelId},_.fl().resolve(_.U8).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},S,{element:this.hostElement})}))};
_.J.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.Rh.Object.defineProperties(lq.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 S,c;return!((S=this.data)==null||!S.primaryLinks)&&!((c=this.data)==null?0:c.links)&&this.data.primaryLinks.every(function(Q){return Q.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.primaryLinks)&&!((c=this.data)==null?0:c.links)&&!this.shouldShowNewLinks}}});
lq.prototype.onYtServiceRequestCompleted=lq.prototype.onYtServiceRequestCompleted;lq.prototype.dataChanged=lq.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],lq.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lq.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lq.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.nU("#g-recaptcha-response"),_.P("design:type",HTMLTextAreaElement)],lq.prototype,"JSC$19132_captchaTextarea",void 0);_.d([_.Z(),_.P("design:type",Object)],lq.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],lq.prototype,"businessEmailDisplayState",void 0);_.d([_.Z(),_.P("design:type",String)],lq.prototype,"businessEmail",void 0);_.d([_.Z(),_.P("design:type",String)],lq.prototype,"businessEmailErrorMessage",void 0);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],lq.prototype,"hideDetailsSection",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lq.prototype,"dataChanged",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],lq.prototype,"shouldShowNewLinks",null);_.d([_.M("data","shouldShowLinks"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],lq.prototype,"shouldShowLegacyLinks",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],lq.prototype,"onYtServiceRequestCompleted",null);_.d([_.e({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],lq);
_.k(lq,"ytd-channel-about-metadata-renderer",function(){if(EVO!==void 0)return EVO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return EVO=S},{mode:1});var tME;_.i8("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var CF=function(){return _.W.apply(this,arguments)||this};
_.C(CF,_.W);CF.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],CF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CF.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],CF);
_.k(CF,"ytd-channel-featured-content-renderer",function(){if(tME!==void 0)return tME;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return tME=S},{mode:1});var VME;_.i8("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var HT=function(){var S=_.W.apply(this,arguments)||this;S.roundContainer=!0;S.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return S};
_.C(HT,_.W);_.J=HT.prototype;_.J.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.dataChanged=function(){this.imageWidth=this.imageHeight=24;var S=this.data;S.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!S.style&&S.image&&S.image.thumbnails.length&&(S=S.image.thumbnails[0],this.imageWidth=S.width||0,this.imageHeight=S.height||0)};
_.J.computeSource=function(S){return S.secondarySource?_.Em(S.secondarySource):_.Em(S.source)};
_.J.computeClarifyStyle=function(S){return S?S.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.J.isLargeStyle=function(S){return S==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.J.computeBackgroundStyle=function(S){return S?S.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.J.computeHasActionButton=function(S){return!!S.actionButton};
_.J.computeHasBottomSection=function(S){return!!S.ctaHasBottomSection};
_.J.computeIsSourceMissing=function(S){return S.ctaHasBottomSection===!1?!0:S&&this.computeSource(S)?!1:!0};
_.J.computeSecondaryEndpoint=function(S){return S.secondaryEndpoint||S.endpoint};
HT.prototype.dataChanged=HT.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],HT.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],HT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],HT.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],HT.prototype,"imageWidth",void 0);_.d([_.Z(),_.P("design:type",Number)],HT.prototype,"imageHeight",void 0);
_.d([_.Z({computed:"computeSecondaryEndpoint(data)"}),_.P("design:type",Object)],HT.prototype,"secondaryEndpoint",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.P("design:type",Boolean)],HT.prototype,"hasActionButton",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.P("design:type",Boolean)],HT.prototype,"hasBottomSection",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.P("design:type",Boolean)],HT.prototype,"missingSource",void 0);_.d([_.Z({computed:"computeIcon_(data.icon)"}),_.P("design:type",String)],HT.prototype,"icon",void 0);_.d([_.Z({computed:"computeIcon_(data.secondaryIcon)"}),_.P("design:type",String)],HT.prototype,"secondaryIcon",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.P("design:type",String)],HT.prototype,"clarifyStyle",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.P("design:type",String)],HT.prototype,"backgroundStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HT.prototype,"roundContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],HT.prototype,"amsterdamEnabled",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HT.prototype,"dataChanged",null);
_.d([_.e({is:"ytd-clarification-renderer",disableElementRegistration:!0})],HT);
_.k(HT,"ytd-clarification-renderer",function(){if(VME!==void 0)return VME;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return VME=S},{mode:1});var RLT;var y0E;var Dl=function(){var S=_.W.apply(this,arguments)||this;S.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return S};
_.C(Dl,_.W);_.J=Dl.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.J.computeIcon=function(S){return S?"yt-icons:"+S.toLowerCase():null};
_.J.computeUseContacts=function(S){return!!S.contacts&&S.contacts.length>0};
_.J.computePhoneContact=function(S){var c,Q;return(c=S.contacts)==null?void 0:(Q=c.find(function(f){var U;return(f==null?void 0:(U=f.icon)==null?void 0:U.iconType)==="PHONE"}))==null?void 0:Q.actionText};
_.J.computeSmsContact=function(S){var c,Q;return(c=S.contacts)==null?void 0:(Q=c.find(function(f){var U;return(f==null?void 0:(U=f.icon)==null?void 0:U.iconType)==="SMS"}))==null?void 0:Q.actionText};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Dl.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Dl.prototype,"amsterdamEnabled",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.P("design:type",Boolean)],Dl.prototype,"useContacts",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.P("design:type",String)],Dl.prototype,"phoneContact",void 0);_.d([_.e({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Dl);
_.k(Dl,"ytd-single-action-emergency-support-renderer",function(){if(y0E!==void 0)return y0E;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return y0E=S},{mode:1});_.i8("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var pF=function(){var S=_.W.apply(this,arguments)||this;S.roundedContainer=!0;S.amsterdamEnabled=_.u("enable_desktop_amsterdam_info_panels");return S};
_.C(pF,_.W);pF.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"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pF.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],pF.prototype,"roundedContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],pF.prototype,"amsterdamEnabled",void 0);
_.d([_.e({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],pF);
_.k(pF,"ytd-emergency-onebox-renderer",function(){if(RLT!==void 0)return RLT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return RLT=S},{mode:1});var oV0;_.i8("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var h9=function(){return _.W.apply(this,arguments)||this};
_.C(h9,_.W);h9.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],h9.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],h9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],h9.prototype,"data",void 0);_.d([_.e({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],h9);
_.k(h9,"ytd-exploratory-results-renderer",function(){if(oV0!==void 0)return oV0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return oV0=S},{mode:1});var meN;_.i8("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var qt=function(){var S=_.W.apply(this,arguments)||this;S.messageData=null;return S};
_.C(qt,_.W);_.J=qt.prototype;_.J.onServiceRequestCompleted=function(S,c){S=c.actions||[];c=0;for(var Q=S.length;c<Q;c++){var f=S[c],U=void 0,a=void 0;if((U=_.Y(f,_.Yc))==null?0:(a=U.item)==null?0:a.messageRenderer)this.messageData=_.Y(f,_.Yc).item.messageRenderer}};
_.J.dataChanged=function(){var S=this.data;this.hostElement.hidden=!1;_.a1(this.hostElement,"is-channel",S&&!S.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.J.computeThumbnailWidth=function(S){return S?126:56};
_.J.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.J.onSubmitTap=function(){var S=this.data,c=this.selectedResponseIndex;S!==void 0&&c!==void 0&&(S=S.responses[c],S.responseData&&_.fl().resolve(_.U8).resolveCommand(S.responseData,{form:{element:this.hostElement}}))};
_.J.onDismissTap=function(){this.hostElement.hidden=!0;var S=this.data;S!==void 0&&S.dismissalEndpoint&&_.fl().resolve(_.U8).resolveCommand(S.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.updateSelectedResponseIndexFromBinding=function(S){this.selectedResponseIndex=S.detail.value};
qt.prototype.onSelectedResponseIndexChange=qt.prototype.onSelectedResponseIndexChange;qt.prototype.dataChanged=qt.prototype.dataChanged;qt.prototype.onServiceRequestCompleted=qt.prototype.onServiceRequestCompleted;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qt.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qt.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],qt.prototype,"messageData",void 0);
_.d([_.Z(),_.P("design:type",Number)],qt.prototype,"selectedResponseIndex",void 0);_.d([_.nU("#submit-button"),_.P("design:type",HTMLButtonElement)],qt.prototype,"submitButton",void 0);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],qt.prototype,"onServiceRequestCompleted",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qt.prototype,"dataChanged",null);
_.d([_.B0("selectedResponseIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qt.prototype,"onSelectedResponseIndexChange",null);_.d([_.e({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],qt);
_.k(qt,"ytd-feedback-elicitation-single-question-renderer",function(){if(meN!==void 0)return meN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return meN=S},{mode:1});var SDV;var Tq=function(){return _.W.apply(this,arguments)||this};
_.C(Tq,_.W);Tq.prototype.computeThumbnailWidth=function(S){return S?602:428};
Tq.prototype.updateWideFromBinding=function(S){this.wide=S.detail.value};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Tq.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Tq.prototype,"wide",void 0);_.d([_.e({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],Tq);
_.k(Tq,"ytd-newspaper-hero-video-renderer",function(){if(SDV!==void 0)return SDV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return SDV=S},{mode:1});var cJ8;var wm=function(){return _.W.apply(this,arguments)||this};
_.C(wm,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wm.prototype,"rendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],wm.prototype,"data",void 0);_.d([_.e({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],wm);
_.k(wm,"ytd-newspaper-mini-video-renderer",function(){if(cJ8!==void 0)return cJ8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return cJ8=S},{mode:1});var QEZ;_.i8("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var sU=function(){return _.W.apply(this,arguments)||this};
_.C(sU,_.W);sU.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"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],sU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sU.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sU.prototype,"data",void 0);_.d([_.e({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],sU);
_.k(sU,"ytd-newspaper-renderer",function(){if(QEZ!==void 0)return QEZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return QEZ=S},{mode:1});var fHO;_.i8("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Mt=function(){var S=_.W.apply(this,arguments)||this;S.isSegment=!1;S.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};S.nextContinuation={continuationType:"playlistVideoListContinuation"};return S};
_.C(Mt,_.W);_.J=Mt.prototype;_.J.attached=function(){_.fl();var S;(S=_.fl().resolve(_.QS(_.Pk)))!=null&&(S.playlistVideoListElement=this.hostElement)};
_.J.detached=function(){var S;(S=_.fl().resolve(_.QS(_.Pk)))!=null&&(S.playlistVideoListElement=void 0);S=_.fl().resolve(_.QS(_.Qs));_.u("web_enable_voting_animation")&&S&&(S.parentElem=void 0,S.videos=[],S.continuationsPresent=!1,S.showRefreshPill=!1)};
_.J.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"}}}}}};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.J.dataChanged=function(){var S=_.fl().resolve(_.QS(_.Qs));if(_.u("web_enable_voting_animation")&&this.data&&S){var c=_.Ur(this.hostElement).querySelector("#contents");c&&(S.parentElem=c);S.addVideos(this.data.contents)}_.tqi(this.ytReorderableBehavior)};
_.J.onRendererstamperFinished=function(){this.canReorder&&_.Vqs(this.ytReorderableBehavior,_.Ur(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.J.onPlaylistReloading=function(){this.isReloading=!0};
_.J.onUpdateSetVideoId=function(S){if(S.detail&&this.data&&this.data.contents){var c=S.detail;S=this.data.contents.findIndex(function(U){var a;return((a=U.playlistVideoRenderer)==null?void 0:a.videoId)===c.videoId});
if(!(S<0)&&c.setVideoId&&(this.set("data.contents."+S+".playlistVideoRenderer.setVideoId",c.setVideoId),_.u("web_enable_voting_animation"))){var Q;if(S=_.Y((Q=this.data.contents[S].playlistVideoRenderer)==null?void 0:Q.engagementBar,_.pBM)){var f;(f=S.actions)==null||f.forEach(function(U){if(U=_.Y(U,_.hXT))U.itemId=c.setVideoId})}(Q=_.fl().resolve(_.QS(_.Qs)))&&TW0(Q,c.videoId,c.setVideoId)}}};
_.J.computeContentsClass=function(S){return S?"reloading":""};
_.J.computeIsSortable=function(S,c){return S&&c>0&&!this.isSegment&&!_.u("shorts_in_playlists_web")};
_.J.computeIsEditable=function(S){return S};
_.J.computeCanReorder=function(S){return S};
_.J.handlePlaylistRemoveVideosAction=function(S){if(this.get("playlistRemoveVideosAction.setVideoIds",S)&&this.data&&this.data.contents){S=_.Y(S,_.DJd).setVideoIds;for(var c=this.data.contents.length-1;c>=0;){var Q=this.data.contents[c].playlistVideoRenderer;Q&&Q.setVideoId&&S.includes(Q.setVideoId)&&this.splice("data.contents",c,1);c--}_.XF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var S=0;S<this.data.contents.length;S++)this.set("data.contents."+S+".playlistVideoRenderer.index",_.LK(String(S+1)))};
_.J.handleDrop=function(S){S=S.currDragItem;var c=_.kY(S.parentNode.childNodes,S),Q=this.data.contents.splice(Number(_.Em(S.data.index))-1,1)[0];this.data.contents.splice(c,0,Q);c=c?this.get("contents."+(c-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();S=this.buildReorderServiceEndpoint(S.data.setVideoId,c);this.ytComponentBehavior.resolveCommand(S)};
_.J.buildReorderServiceEndpoint=function(S,c){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",S),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",c),this.data.onReorderEndpoint):null};
_.J.handleUpdatePlaylistAction=function(S){var c;(S=_.Y((c=_.Y(S,_.pgp))==null?void 0:c.updatedRenderer,_.vod))&&this.canReorder!==S.canReorder&&this.set("data.canReorder",S.canReorder);S&&S.contents&&(this.set("data.contents",S.contents),this.isReloading=!1);S&&S.continuations&&this.set("data.continuations",S.continuations)};
_.J.handleAddRendererToItemSectionAction=function(S){var c,Q=(c=_.Y(S,ZoE))==null?void 0:c.renderer,f;Q&&((f=_.Y(S,ZoE))==null?void 0:f.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,Q),S=_.fl().resolve(_.QS(_.Qs)),_.u("web_enable_voting_animation")&&S&&(Q&&(c=_.Dpz(Q))&&S.recommendedVideos.push({itemId:c,videoId:_.qOr(Q),voteCount:_.TYZ(Q),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.J.isVotingEnabledOnPlaylist=function(S){if(!S)return!1;S=_.A(S);for(S=S.next();!S.done;S=S.next()){var c=void 0;return!!_.Y((c=S.value.playlistVideoRenderer)==null?void 0:c.engagementBar,_.pBM)}return!1};
_.J.onAppendContinuationItemsActionFinished=function(){var S;this.isVotingEnabledOnPlaylist((S=this.data)==null?void 0:S.contents)&&(this.updateIndices(),S=_.fl().resolve(_.QS(_.Qs)),_.u("web_enable_voting_animation")&&S&&this.data&&S.addVideos(this.data.contents))};
_.J.updateVideoData=function(S){if(S.detail&&this.data&&this.data.contents){var c=S.detail;S=c.toIdx;var Q=c.itemId,f=c.newVoteCount,U=c.voteStatus;c=c.hideItem;var a,X,z=(a=this.data)==null?void 0:(X=a.contents)==null?void 0:X.findIndex(function(b){return _.Dpz(b)===Q});
if(!(z<0)){a=this.data.contents[z];var x;if((x=a.playlistVideoRenderer)==null?0:x.voteCount)a.playlistVideoRenderer.voteCount=f;var I;if(x=_.Y((I=a.playlistVideoRenderer)==null?void 0:I.engagementBar,_.pBM)){var n;(n=x.actions)==null||n.forEach(function(b){(b=_.Y(b,_.hXT))&&b.initialState&&(b.initialState.votes=f,b.initialState.status=U)})}this.data.contents.splice(z,1);
c||this.data.contents.splice(S,0,a);this.updateIndices()}}};
Mt.prototype.updateVideoData=Mt.prototype.updateVideoData;Mt.prototype.onAppendContinuationItemsActionFinished=Mt.prototype.onAppendContinuationItemsActionFinished;Mt.prototype.onUpdateSetVideoId=Mt.prototype.onUpdateSetVideoId;Mt.prototype.onPlaylistReloading=Mt.prototype.onPlaylistReloading;Mt.prototype.onRendererstamperFinished=Mt.prototype.onRendererstamperFinished;Mt.prototype.dataChanged=Mt.prototype.dataChanged;
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Mt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Mt.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.vM.YtNextContinuationBehavior),_.P("design:type",Object)],Mt.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.p(_.RNJ),_.P("design:type",Object)],Mt.prototype,"ytReorderableBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],Mt.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Mt.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Mt.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Mt.prototype,"isReloading",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Mt.prototype,"isSegment",void 0);_.d([_.Z({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.P("design:type",Boolean)],Mt.prototype,"isSortable",void 0);_.d([_.Z({computed:"computeIsEditable(data.isEditable)"}),_.P("design:type",Boolean)],Mt.prototype,"isEditable",void 0);_.d([_.Z({computed:"computeCanReorder(data.canReorder)"}),_.P("design:type",Boolean)],Mt.prototype,"canReorder",void 0);
_.d([_.Z({value:101}),_.P("design:type",Number)],Mt.prototype,"scrollMargin",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mt.prototype,"dataChanged",null);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mt.prototype,"onRendererstamperFinished",null);
_.d([_.FV("yt-playlist-reloading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mt.prototype,"onPlaylistReloading",null);_.d([_.FV("yt-update-set-video-id"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mt.prototype,"onUpdateSetVideoId",null);
_.d([_.FV("yt-append-continuation-items-action-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mt.prototype,"onAppendContinuationItemsActionFinished",null);_.d([_.FV("yt-update-video-data-voting-animation"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mt.prototype,"updateVideoData",null);_.d([_.e({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Mt);
_.k(Mt,"ytd-playlist-video-list-renderer",function(){if(fHO!==void 0)return fHO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return fHO=S},{mode:_.A2("kevlar_poly_si_batch_j047")?1:2});var Uhp;var iq=function(){return _.W.apply(this,arguments)||this};
_.C(iq,_.W);iq.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"}}}}};
iq.prototype.onTextWrapperTap=function(S){var c=this.data&&this.data.navigationEndpoint;c&&!_.RZ(_.t4(S),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.Az(this.hostElement,"yt-navigate",{endpoint:c})};
iq.prototype.dataChanged=function(){var S=this.get("data.offerButton.buttonRenderer.serviceEndpoint");S&&S.commandMetadata&&_.Y(S.commandMetadata,_.hp)&&_.Y(S.commandMetadata,_.hp).fireAutomatically&&_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})};
iq.prototype.dataChanged=iq.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iq.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],iq.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rL),_.P("design:type",Object)],iq.prototype,"ytdLockupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],iq.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],iq.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],iq.prototype,"biggerThumbsStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],iq.prototype,"leftAligned",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iq.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-movie-renderer"})],iq);
_.k(iq,"ytd-movie-renderer",function(){if(Uhp!==void 0)return Uhp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Uhp=S},{mode:1});var JJB;var Zl=function(){var S=_.W.apply(this,arguments)||this;S.rounded=!0;S.pageAttachedTo=void 0;S.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return S};
_.C(Zl,_.W);Zl.prototype.attached=function(){this.pageAttachedTo=_.fl().resolve(_.oZ).getCurrentPage();_.Az(this.hostElement,"yt-player-attached",this.player)};
Zl.prototype.detached=function(){var S;if((S=this.pageAttachedTo)==null?0:S.hostElement)_.Az(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
Zl.prototype.dataChanged=function(){var S;if((S=this.data)==null?0:S.videoId)S={video_id:this.data.videoId,autoplay:!0},!_.u("miniplayer_stop_channel_video_autoplay_killswitch")&&_.fl().resolve(_.ra).isMiniplayerActive()&&(S.pause_at_start=!0,S.autoplay=!1),this.player.loadVideoWithPlayerVars(S)};
Zl.prototype.handleSignalActionPausePlayer=function(){_.cK().pause()};
Zl.prototype.dataChanged=Zl.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],Zl.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Zl.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Zl.prototype,"rounded",void 0);_.d([_.nU("#player"),_.P("design:type",Object)],Zl.prototype,"player",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zl.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],Zl);
_.k(Zl,"ytd-channel-video-player-renderer",function(){if(JJB!==void 0)return JJB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return JJB=S},{mode:1});var aHN;var AJU;var XWp;var Gq=function(){var S=_.W.apply(this,arguments)||this;S.playing=!1;S.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.Qd(S);S.active=!1;return S};
_.C(Gq,_.W);_.J=Gq.prototype;_.J.detached=function(){this.stop()};
_.J.play=function(){var S=this,c,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return S.active=!0,c=S.get("data.inlinePlaybackEndpoint.watchEndpoint"),Q=c.videoId||S.data.videoId,f=c.startTimeSeconds||0,U=c.playerParams||null,_.u("kevlar_player_update_killswitch")?_.F(X,S.playerEl.update({args:{video_id:Q,startSeconds:f,player_params:U}}),2):(S.playerEl.loadVideoWithPlayerVars({video_id:Q,startSeconds:f,player_params:U,autoplay:!0}),X.jumpTo(2));if(X.nextAddress!=4)return _.F(X,S.playerEl.getPlayerPromise(),
4);a=X.yieldResult;a.unloadModule("annotations_module");a.addEventListener("onStateChange",function(z){S.onPlayerStateChange(z)});
_.IN(X)})};
_.J.onPlayerStateChange=function(S){if(this.active)switch(this.playing=S===1,S){case 1:_.Az(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.Az(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.J.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.J.resize=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.playerEl.getPlayerPromise(),2);c=Q.yieldResult;c.setSize(NaN,NaN);_.IN(Q)})};
_.d([_.Z(),_.P("design:type",Object)],Gq.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Gq.prototype,"playing",void 0);_.d([_.Z(),_.P("design:type",Object)],Gq.prototype,"playerId",void 0);_.d([_.nU("#player"),_.P("design:type",Object)],Gq.prototype,"playerEl",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],Gq);
_.k(Gq,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(XWp!==void 0)return XWp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return XWp=S},{mode:1});var OIp;var zc2;var WT=function(){var S=_.W.apply(this,arguments)||this;S.width=0;return S};
_.C(WT,_.W);_.J=WT.prototype;_.J.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.xn(this,this.onEnded));this.mp4El.addEventListener("error",_.xn(this,this.onError))};
_.J.detached=function(){this.videoEl.removeEventListener("ended",_.xn(this,this.onEnded));this.mp4El.removeEventListener("error",_.xn(this,this.onError))};
_.J.play=function(){var S=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var c=this.videoEl.play();c?c.then(function(){S.handleVideoStartPlaying()}).catch(function(){_.Az(S.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.Az(this.hostElement,"yt-video-thumbnail-not-playing")};
_.J.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.J.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.J.dataChanged=function(){var S;if((S=this.data)==null?0:S.thumbnailPlaceholder)S=_.U2(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+S+")";this.stop();this.autoplay&&this.play()};
_.J.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.J.onEnded=function(){this.stop();_.Az(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.J.onError=function(){_.Az(this.hostElement,"yt-video-thumbnail-error")};
_.J.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.J.getVideoThumbnail=function(S){if(S&&S.length)return S[0]};
WT.prototype.dataChanged=WT.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],WT.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],WT.prototype,"animatePlaceholderOnEntrance",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],WT.prototype,"autoplay",void 0);_.d([_.Z({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.P("design:type",Object)],WT.prototype,"videoThumbnail",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],WT.prototype,"loop",void 0);_.d([_.Z(),_.P("design:type",Boolean)],WT.prototype,"isVideoPlaying",void 0);_.d([_.Z(),_.P("design:type",Object)],WT.prototype,"width",void 0);_.d([_.nU("#mp4"),_.P("design:type",HTMLElement)],WT.prototype,"mp4El",void 0);_.d([_.nU("#placeholder"),_.P("design:type",HTMLElement)],WT.prototype,"placeholderEl",void 0);_.d([_.nU("#video"),_.P("design:type",HTMLVideoElement)],WT.prototype,"videoEl",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],WT.prototype,"dataChanged",null);_.d([_.wM({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],WT);
_.k(WT,"yt-video-as-thumbnail-details",function(){if(zc2===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;OIp===void 0&&(OIp=document.createElement("template"));var f=OIp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);zc2=S}S=zc2;return S},{mode:2});var gm=function(){var S=_.W.apply(this,arguments)||this;S.disableGridStateAware=!1;S.animationEnabled=_.u("enable_web_ketchup_hero_animation");S.transitioningOut=!1;S.narrow=!1;S.narrower=!1;S.isCarouselInFeed=!1;S.videoTimeoutJobId=0;S.panelTimeoutJobId=0;S.panelTimeoutJobStartMs=0;S.actionMap={"yt-window-resized":"onWindowResized"};return S};
_.C(gm,_.W);_.J=gm.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.J.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var S;this.player&&((S=this.data)==null?0:S.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.J.attached=function(){this.onWindowResized()};
_.J.detached=function(){this.clearTimeouts()};
_.J.onWindowResized=function(){this.updateSize()};
_.J.computePanelLayout=function(S){return S&&S.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.playVideo=function(){var S;this.video&&((S=this.data)==null?0:S.videoThumbnail)&&this.video.play();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.play()};
_.J.stopVideo=function(){var S;this.video&&((S=this.data)==null?0:S.videoThumbnail)&&this.video.stop();var c;this.player&&((c=this.data)==null?0:c.inlinePlaybackRenderer)&&this.player.stop()};
_.J.transitionOut=function(){var S=this;this.transitioningOut=!0;return new Promise(function(c){var Q=function(){_.Ur(S.hostElement).querySelector("#action-button").removeEventListener("animationend",Q);_.Mq.cancelJob(f);c();S.transitioningOut=!1};
var f=_.HG(_.Mq,Q,1E3);_.Ur(S.hostElement).querySelector("#action-button").addEventListener("animationend",Q);S.player&&(S.player.playing=!1)})};
_.J.computeMetadataOrder=function(S){return S&&S.metadataOrder&&S.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?S.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.J.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.J.computeAvatarSize=function(S){return S&&S.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.J.onContentClick=function(S){if(!_.RZ(_.t4(S),this.hostElement,["A".toString(),"BUTTON".toString()])){var c;if((c=this.data)==null?0:c.navigationEndpoint){var Q;this.componentBehavior.resolveCommand((Q=this.data)==null?void 0:Q.navigationEndpoint)}}};
_.J.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.J.setBackgroundImage=function(S){if(S=this.getBackgroundImageUrl(S))_.Ur(this.hostElement).querySelector("#hero").style.backgroundImage="url("+S+")"};
_.J.setScrimLayer=function(S){var c=this.getScrimLayerColorStops(S);S=((S==null?void 0:S.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(S=180);_.WY("HTML_DIR")==="rtl"&&(S=-S);c&&(_.Ur(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+S+"deg, "+c+")")};
_.J.isNarrower=function(){return this.hostElement.clientWidth<gm.NARROW_VERSION_SIZE};
_.J.getScrimLayerColorStops=function(){var S,c=(S=this.data)==null?void 0:S.scrimColorValues;if(!c)return null;if(c.length===1)return S=_.gh(c[0]),S+" 0%, "+S+" 100%";if(c.length===3){var Q=[0,72,98];return c.map(function(f,U){return _.gh(f)+" "+Q[U]+"%"}).join(",")}return null};
_.J.getBackgroundImageUrl=function(S){return S&&S.largeFormFactorBackgroundThumbnail?_.U2((S.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||S.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.J.onPlaying=function(){this.startVideoTimeout()};
_.J.onEnded=function(){this.rotate()};
_.J.startPanelTimeout=function(){var S=this;if(!this.panelTimeoutJobId){var c=this.get("data.minPanelDisplayDurationMs");c&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.HG(_.Mq,function(){S.rotate()},c))}};
_.J.startVideoTimeout=function(){var S=this;if(!this.videoTimeoutJobId){_.Mq.cancelJob(this.panelTimeoutJobId);var c=Date.now()-this.panelTimeoutJobStartMs;c=Math.max(0,this.get("data.minPanelDisplayDurationMs")-c);c=Math.max(this.get("data.minVideoPlayDurationMs")||0,c);this.videoTimeoutJobId=_.HG(_.Mq,function(){S.rotate()},c)}};
_.J.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.Mq.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.Mq.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.J.rotate=function(){this.clearTimeouts();_.Az(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.Rh.Object.defineProperties(gm.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.Ur(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.Ur(this.hostElement).querySelector("#video")}}});
_.Rh.Object.defineProperties(gm,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
gm.prototype.onEnded=gm.prototype.onEnded;gm.prototype.onPlaying=gm.prototype.onPlaying;gm.prototype.dataChanged=gm.prototype.dataChanged;_.d([_.p(_.GK),_.P("design:type",Object)],gm.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],gm.prototype,"componentBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],gm.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.p(_.i7p),_.P("design:type",Object)],gm.prototype,"ytBooleanLogicBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],gm.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],gm.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gm.prototype,"ytRendererBehavior",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"disableGridStateAware",void 0);_.d([_.Z(),_.P("design:type",Object)],gm.prototype,"data",void 0);_.d([_.Z({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.P("design:type",String)],gm.prototype,"panelLayout",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"animationEnabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"transitioningOut",void 0);
_.d([_.Z({computed:"computeMetadataOrder(data)"}),_.P("design:type",Boolean)],gm.prototype,"metadataOrder",void 0);_.d([_.Z({computed:"computeByline(data)"}),_.P("design:type",Object)],gm.prototype,"byline",void 0);_.d([_.Z({computed:"computeAvatarSize(data)"}),_.P("design:type",Number)],gm.prototype,"avatarSize",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"narrow",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"narrower",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"layoutStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gm.prototype,"isCarouselInFeed",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gm.prototype,"dataChanged",null);_.d([_.FV("yt-default-promo-panel-renderer-playing"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gm.prototype,"onPlaying",null);
_.d([_.FV("yt-default-promo-panel-renderer-ended"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gm.prototype,"onEnded",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],gm);
_.k(gm,"ytd-default-promo-panel-renderer",function(){if(AJU!==void 0)return AJU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return AJU=S},{mode:1});_.i8("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var ev=function(){var S=_.W.apply(this,arguments)||this;S.narrower=!1;S.dotMenuVisible=!1;S.paginationThumbnailsVisible=!1;S.active=!0;S.disableGridStateAware=!1;S.actionMap={"yt-window-resized":"onWindowResized"};return S};
_.C(ev,_.W);_.J=ev.prototype;_.J.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]]"}}}}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.xn(this,this.onPageTypeChange));this.currentPageSubtype=_.IM(location.pathname);this.onWindowResized()};
_.J.detached=function(){this.jobId&&_.Mq.cancelJob(this.jobId);this.updateSizeJobId&&_.Mq.cancelJob(this.updateSizeJobId);document.removeEventListener("yt-page-type-changed",_.xn(this,this.onPageTypeChange))};
_.J.onPageTypeChange=function(S){this.active=S.detail.newPageSubtype===this.currentPageSubtype};
_.J.onWindowResized=function(){this.updateSize()};
_.J.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.J.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.J.setCarouselItem=function(S){S>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.Mq.cancelJob(this.jobId);var c=this.getCurrentPanelElement();c&&c.stopVideo();this.currentItemIndex=S%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(c||(c=this.getCurrentPanelElement()),c.playVideo()):this.startRotationJob()};
_.J.scrollThumbnails=function(S){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var c=this.getCurrentPaginationElement();if(c){var Q=_.Ur(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?Q.style.transform="translateX(0)":(c=c.offsetWidth+8,Q.style.transform="translateX(-"+c*(S-Math.ceil(Math.floor(this.overlay.offsetWidth/c)/2)+1)+"px)")}}};
_.J.onDataChanged=function(){var S=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.pS(_.Mq,function(){S.getCurrentPanelElement().updateSize();S.updateSize()}))};
_.J.getCurrentPanelElement=function(){return _.Ur(_.Ur(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.J.getCurrentPaginationElement=function(){return _.Ur(_.Ur(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.J.getNavigationClass=function(S,c){return S===c?"selected":""};
_.J.getNavigationDurationStyle=function(S){return"animation-duration:"+(this.get("data.carouselItems."+S+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.J.onNavigationTap=function(S){var c=this,Q=S.model.index;Q!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){c.setCarouselItem(Q)}),this.autorotateActive=!1)};
_.J.onVideoThumbnailEnded=function(){var S=this;if(this.shouldRotate()){var c=this.getCurrentPaginationElement();c&&(c.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){c.classList.remove("finished");S.setNextCarouselItem()}))}};
_.J.onVideoThumbnailError=function(){this.startRotationJob()};
_.J.onVideoNotPlaying=function(){this.startRotationJob()};
_.J.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.J.startRotationJob=function(){var S=this;_.Mq.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.Mq.addLowPriorityJob(function(){S.getCurrentPanelElement().transitionOut().then(function(){S.setNextCarouselItem()})},this.rotationTimeout))};
_.J.computeDotMenuVisible=function(S,c){return!!S&&!!S.carouselItems&&S.carouselItems.length>1&&!S.paginationThumbnails||!!c};
_.J.computePaginationThumbnailsVisible=function(S,c){var Q,f;return((f=S==null?void 0:(Q=S.paginationThumbnails)==null?void 0:Q.length)!=null?f:0)>1&&!c};
_.J.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.J.computePaginatorAlignment=function(S){return(S==null?void 0:S.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.J.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.J.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.J.isNarrower=function(S){return(S!=null?S:0)<gm.NARROW_VERSION_SIZE};
ev.prototype.activeChanged=ev.prototype.activeChanged;ev.prototype.onVideoNotPlaying=ev.prototype.onVideoNotPlaying;ev.prototype.onVideoThumbnailError=ev.prototype.onVideoThumbnailError;ev.prototype.onVideoThumbnailEnded=ev.prototype.onVideoThumbnailEnded;ev.prototype.onDataChanged=ev.prototype.onDataChanged;_.d([_.p(_.GK),_.P("design:type",Object)],ev.prototype,"ytdGridStateAwareBehavior",void 0);
_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],ev.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ev.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ev.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],ev.prototype,"currentItem",void 0);
_.d([_.Z(),_.P("design:type",Number)],ev.prototype,"currentItemIndex",void 0);_.d([_.Z(),_.P("design:type",Number)],ev.prototype,"rotationTimeout",void 0);_.d([_.Z(),_.P("design:type",Number)],ev.prototype,"loopCount",void 0);_.d([_.Z({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.P("design:type",String)],ev.prototype,"paginatorAlignment",void 0);_.d([_.Z(),_.P("design:type",Number)],ev.prototype,"jobId",void 0);
_.d([_.Z(),_.P("design:type",Number)],ev.prototype,"updateSizeJobId",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],ev.prototype,"isCarouselInFeed",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ev.prototype,"narrower",void 0);_.d([_.Z({computed:"computeDotMenuVisible(data, narrower)"}),_.P("design:type",Object)],ev.prototype,"dotMenuVisible",void 0);
_.d([_.Z({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.P("design:type",Object)],ev.prototype,"paginationThumbnailsVisible",void 0);_.d([_.Z({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.P("design:type",String)],ev.prototype,"layoutType",void 0);_.d([_.Z({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],ev.prototype,"autorotateActive",void 0);_.d([_.Z(),_.P("design:type",Object)],ev.prototype,"active",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ev.prototype,"disableGridStateAware",void 0);_.d([_.nU("#overlay"),_.P("design:type",HTMLElement)],ev.prototype,"overlay",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ev.prototype,"onDataChanged",null);
_.d([_.FV("yt-video-thumbnail-ended"),_.FV("yt-default-promo-panel-renderer-rotate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ev.prototype,"onVideoThumbnailEnded",null);_.d([_.FV("yt-video-thumbnail-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ev.prototype,"onVideoThumbnailError",null);
_.d([_.FV("yt-video-thumbnail-not-playing"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ev.prototype,"onVideoNotPlaying",null);_.d([_.$n("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ev.prototype,"activeChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],ev);
_.k(ev,"ytd-carousel-item-renderer",function(){if(aHN!==void 0)return aHN;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return aHN=S},{mode:2});var xhO;var Fjp;var Bf0;var IHU;var kT=function(){var S=_.W.apply(this,arguments)||this;S.originalQuery=null;S.originalEndpoint=null;return S};
_.C(kT,_.W);kT.prototype.computeShowOriginalQueryWithoutEndpoint_=function(S,c){return!(!S||c)};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],kT.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],kT.prototype,"correctedText",void 0);_.d([_.Z(),_.P("design:type",Object)],kT.prototype,"correctedQuery",void 0);_.d([_.Z(),_.P("design:type",Object)],kT.prototype,"correctedEndpoint",void 0);_.d([_.Z(),_.P("design:type",Object)],kT.prototype,"originalText",void 0);_.d([_.Z(),_.P("design:type",Object)],kT.prototype,"originalQuery",void 0);
_.d([_.Z(),_.P("design:type",Object)],kT.prototype,"originalEndpoint",void 0);_.d([_.Z({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.P("design:type",Boolean)],kT.prototype,"showOriginalQueryWithoutEndpoint",void 0);_.d([_.wM({is:"yt-search-query-correction",disableElementRegistration:!0})],kT);
_.k(kT,"yt-search-query-correction",function(){if(IHU===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Bf0===void 0&&(Bf0=document.createElement("template"));var f=Bf0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);IHU=S}S=IHU;return S},{mode:2});_.i8("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var rm=function(){return _.W.apply(this,arguments)||this};
_.C(rm,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rm.prototype,"data",void 0);_.d([_.wM({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],rm);
_.k(rm,"yt-did-you-mean-renderer",function(){if(Fjp===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;xhO===void 0&&(xhO=document.createElement("template"));var f=xhO;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Fjp=S}S=Fjp;return S},{mode:2});var nW0;var bIN;_.i8("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var dm=function(){return _.W.apply(this,arguments)||this};
_.C(dm,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dm.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],dm.prototype,"data",void 0);_.d([_.wM({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],dm);
_.k(dm,"yt-including-results-for-renderer",function(){if(bIN===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;nW0===void 0&&(nW0=document.createElement("template"));var f=nW0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);bIN=S}S=bIN;return S},{mode:2});var NfU;var KjG;_.i8("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var vT=function(){return _.W.apply(this,arguments)||this};
_.C(vT,_.W);vT.prototype.computeExtraClasses_=function(S,c){var Q="";S&&(Q+=" "+S.toLowerCase().replace(/_/g,"-"));c&&(Q+=" "+c.toLowerCase().replace(/_/g,"-"));return Q};
vT.prototype.computeUrlImg_=function(){var S=this.data;S.image&&(_.Ur(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.U2(S.image.thumbnails,Number.MAX_VALUE)+")")};
vT.prototype.computeUrlImg_=vT.prototype.computeUrlImg_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vT.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vT.prototype,"computeUrlImg_",null);_.d([_.wM({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],vT);
_.k(vT,"yt-music-pass-feature-info-renderer",function(){if(KjG===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;NfU===void 0&&(NfU=document.createElement("template"));var f=NfU;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);KjG=S}S=KjG;return S},{mode:2});var $hE;var u0T;_.i8("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var PT=function(){return _.W.apply(this,arguments)||this};
_.C(PT,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],PT.prototype,"data",void 0);_.d([_.wM({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],PT);
_.k(PT,"yt-no-results-found-showing-results-for-renderer",function(){if(u0T===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;$hE===void 0&&($hE=document.createElement("template"));var f=$hE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);u0T=S}S=u0T;return S},{mode:2});var jET;var lHE;_.i8("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var LF=function(){return _.W.apply(this,arguments)||this};
_.C(LF,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LF.prototype,"data",void 0);_.d([_.wM({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],LF);
_.k(LF,"yt-results-without-quotes-renderer",function(){if(lHE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;jET===void 0&&(jET=document.createElement("template"));var f=jET;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);lHE=S}S=lHE;return S},{mode:2});var YD8;var C_B;_.i8("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var EU=function(){return _.W.apply(this,arguments)||this};
_.C(EU,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],EU.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],EU.prototype,"data",void 0);_.d([_.wM({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],EU);
_.k(EU,"yt-search-no-results-renderer",function(){if(C_B===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;YD8===void 0&&(YD8=document.createElement("template"));var f=YD8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);C_B=S}S=C_B;return S},{mode:2});var HIV;var DhE;_.i8("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var t9=function(){return _.W.apply(this,arguments)||this};
_.C(t9,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],t9.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],t9.prototype,"data",void 0);_.d([_.wM({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],t9);
_.k(t9,"yt-showing-results-for-renderer",function(){if(DhE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;HIV===void 0&&(HIV=document.createElement("template"));var f=HIV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);DhE=S}S=DhE;return S},{mode:2});var pW2;var hcO;var qDV;var Tfg;var Vb=function(){var S=_.W.apply(this,arguments)||this;S.answerExpanded=!1;return S};
_.C(Vb,_.W);Vb.prototype.toggleAnswer_=function(S){var c=_.VI(S);c&&c.classList.contains("yt-simple-endpoint")||(S.preventDefault(),S.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
Vb.prototype.toggleAnswer_=Vb.prototype.toggleAnswer_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Vb.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Vb.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Vb.prototype,"answerExpanded",void 0);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Vb.prototype,"toggleAnswer_",null);
_.d([_.wM({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],Vb);
_.k(Vb,"yt-generic-faq-question-renderer",function(){if(Tfg===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;qDV===void 0&&(qDV=document.createElement("template"));var f=qDV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Tfg=S}S=Tfg;return S},{mode:2});_.i8("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var R_=function(){return _.W.apply(this,arguments)||this};
_.C(R_,_.W);R_.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],R_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],R_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],R_.prototype,"data",void 0);_.d([_.wM({is:"yt-faq-section-renderer",disableElementRegistration:!0})],R_);
_.k(R_,"yt-faq-section-renderer",function(){if(hcO===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;pW2===void 0&&(pW2=document.createElement("template"));var f=pW2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);hcO=S}S=hcO;return S},{mode:2});var wWp;var sE8;_.i8("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var yb=function(){return _.W.apply(this,arguments)||this};
_.C(yb,_.W);
yb.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"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yb.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],yb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yb.prototype,"data",void 0);_.d([_.wM({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],yb);
_.k(yb,"yt-offer-item-expanded-renderer",function(){if(sE8===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;wWp===void 0&&(wWp=document.createElement("template"));var f=wWp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);sE8=S}S=sE8;return S},{mode:2});var MY2;var iIT;_.i8("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var o_=function(){return _.W.apply(this,arguments)||this};
_.C(o_,_.W);
o_.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"}}}}};
o_.prototype.computeFullWidthMode=function(S){return!(!S||!S.fullWidthMode)};
o_.prototype.computeBorderlessMode=function(S){return!(!S||!S.borderlessMode)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],o_.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],o_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],o_.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.P("design:type",Boolean)],o_.prototype,"fullWidthMode",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.P("design:type",Boolean)],o_.prototype,"borderlessMode",void 0);_.d([_.wM({is:"yt-offer-item-renderer",disableElementRegistration:!0})],o_);
_.k(o_,"yt-offer-item-renderer",function(){if(iIT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;MY2===void 0&&(MY2=document.createElement("template"));var f=MY2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);iIT=S}S=iIT;return S},{mode:2});var ZI8;var GlT;_.i8("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var m4=function(){return _.W.apply(this,arguments)||this};
_.C(m4,_.W);m4.prototype.computeAriaLevel_=function(S){return this.getLevelID_(S)};
m4.prototype.getLevelID_=function(S){return(S=S.match(/[0-9]+$/))&&S.length==1?S[0]:"1"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],m4.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],m4.prototype,"data",void 0);_.d([_.Z({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.P("design:type",String)],m4.prototype,"ariaLevel",void 0);_.d([_.Z({value:"heading",reflectToAttribute:!0}),_.P("design:type",String)],m4.prototype,"role",void 0);
_.d([_.Z({value:-1,reflectToAttribute:!0}),_.P("design:type",Number)],m4.prototype,"tabindex",void 0);_.d([_.wM({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],m4);
_.k(m4,"yt-subscription-product-header-renderer",function(){if(GlT===void 0){var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;ZI8===void 0&&(ZI8=document.createElement("template"));var f=ZI8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);GlT=S}S=GlT;return S},{mode:2});var Wj8;var gWT;_.i8("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var SQ=function(){return _.W.apply(this,arguments)||this};
_.C(SQ,_.W);SQ.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:_.ZL("menuRenderer"),events:!0}}};
SQ.prototype.onStampFinished_=function(){_.Ur(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
SQ.prototype.onStampFinished_=SQ.prototype.onStampFinished_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],SQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],SQ.prototype,"data",void 0);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SQ.prototype,"onStampFinished_",null);
_.d([_.wM({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],SQ);
_.k(SQ,"yt-subscription-product-renderer",function(){if(gWT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Wj8===void 0&&(Wj8=document.createElement("template"));var f=Wj8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);gWT=S}S=gWT;return S},{mode:2});var ecp;var klO;_.i8("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var cU=function(){return _.W.apply(this,arguments)||this};
_.C(cU,_.W);cU.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
cU.prototype.imageScrimColorValuesChanged_=function(){var S,c=(S=this.data)==null?void 0:S.imageScrimColorValues;_.Ur(this.hostElement).querySelector("#scrim").style.backgroundColor=c?_.gh(c[0]):"transparent"};
cU.prototype.imageScrimColorValuesChanged_=cU.prototype.imageScrimColorValuesChanged_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cU.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cU.prototype,"data",void 0);
_.d([_.B0("data.imageScrimColorValues"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cU.prototype,"imageScrimColorValuesChanged_",null);_.d([_.wM({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],cU);
_.k(cU,"yt-subscription-product-upsell-offer-renderer",function(){if(klO===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;ecp===void 0&&(ecp=document.createElement("template"));var f=ecp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);klO=S}S=klO;return S},{mode:2});var rJO;var dh8;var vWB;var P_U;var LjN;var EW8;var QK=function(){return _.W.apply(this,arguments)||this};
_.C(QK,_.W);QK.prototype.onYtServiceRequestError_=function(S){_.fD(this.hostElement,S.detail.error.message)};
QK.prototype.onYtServiceRequestError_=QK.prototype.onYtServiceRequestError_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],QK.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],QK.prototype,"data",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],QK.prototype,"collapsible",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],QK.prototype,"isManageRed",void 0);
_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],QK.prototype,"onYtServiceRequestError_",null);_.d([_.wM({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],QK);
_.k(QK,"yt-single-ypc-offer-renderer",function(){if(EW8===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;LjN===void 0&&(LjN=document.createElement("template"));var f=LjN;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);EW8=S}S=EW8;return S},{mode:2});var f7=function(){return _.W.apply(this,arguments)||this};
_.C(f7,_.W);f7.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],f7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],f7.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],f7.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],f7.prototype,"isManageRed",void 0);_.d([_.wM({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],f7);
_.k(f7,"yt-single-ypc-offer-list-renderer",function(){if(P_U===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;vWB===void 0&&(vWB=document.createElement("template"));var f=vWB;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);P_U=S}S=P_U;return S},{mode:2});var tYU;var VYE;_.i8("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var Uv=function(){return _.W.apply(this,arguments)||this};
_.C(Uv,_.W);Uv.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Uv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Uv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Uv.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Uv.prototype,"isManageRed",void 0);_.d([_.wM({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],Uv);
_.k(Uv,"yt-ypc-offers-list-renderer",function(){if(VYE===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;tYU===void 0&&(tYU=document.createElement("template"));var f=tYU;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);VYE=S}S=VYE;return S},{mode:2});_.i8("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Ju=function(){return _.W.apply(this,arguments)||this};
_.C(Ju,_.W);
Ju.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}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ju.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ju.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ju.prototype,"data",void 0);_.d([_.wM({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Ju);
_.k(Ju,"yt-unlimited-manage-subscription-page-renderer",function(){if(dh8===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;rJO===void 0&&(rJO=document.createElement("template"));var f=rJO;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);dh8=S}S=dh8;return S},{mode:2});var RcU;var yJV;var ab=function(){return _.W.apply(this,arguments)||this};
_.C(ab,_.W);_.J=ab.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.J.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.onKeypress_=function(S){S.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.J.handleHeaderTap_=function(S){S.preventDefault();S.stopPropagation();this.expandOffers_()};
_.J.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.J.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
ab.prototype.dataChanged_=ab.prototype.dataChanged_;_.d([_.p(_.lc),_.P("design:type",Object)],ab.prototype,"ironA11yKeysBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ab.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ab.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],ab.prototype,"offersVisible_",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ab.prototype,"dataChanged_",null);_.d([_.wM({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],ab);
_.k(ab,"yt-collapsible-ypc-offer-renderer",function(){if(yJV===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;RcU===void 0&&(RcU=document.createElement("template"));var f=RcU;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);yJV=S}S=yJV;return S},{mode:2});var oW0;var mhZ;_.i8("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Au=function(){return _.W.apply(this,arguments)||this};
_.C(Au,_.W);_.J=Au.prototype;_.J.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.J.dataChanged_=function(){if(this.data.backgroundImage){var S=_.U2(this.data.backgroundImage.thumbnails,screen.width),c=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=c?"linear-gradient(180deg, "+c+"), url("+S+")":"url("+S+")";this.data.gtmId&&_.qu(this.data.gtmId,_.WY("GL",""))}};
_.J.onYtServiceRequestError_=function(S){_.fD(this.hostElement,S.detail.error.message)};
_.J.getScrimLayerColorStops_=function(){var S,c,Q=(S=this.data.unlimitedHeaderV2Data)==null?void 0:(c=S.unlimitedHeaderV2Data)==null?void 0:c.scrimLayerColors;if(!Q)return null;var f=100/Q.length;return Q.map(function(U,a){a*=f;return _.gh(U)+" "+a+"%"}).join(",")};
_.J.computeLogoWithPadding=function(S){var c,Q,f;return(S=(c=S.unlimitedLogoImage)==null?void 0:(Q=c.thumbnails)==null?void 0:(f=Q[0])==null?void 0:f.height)&&S%31===0?!0:!1};
Au.prototype.onYtServiceRequestError_=Au.prototype.onYtServiceRequestError_;Au.prototype.dataChanged_=Au.prototype.dataChanged_;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Au.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Au.prototype,"ytRendererBehavior",void 0);_.d([_.Z({computed:"computeLogoWithPadding(data)"}),_.P("design:type",Boolean)],Au.prototype,"logoWithPadding",void 0);
_.d([_.Z(),_.P("design:type",Object)],Au.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Au.prototype,"dataChanged_",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Au.prototype,"onYtServiceRequestError_",null);_.d([_.wM({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Au);
_.k(Au,"yt-unlimited-page-header-renderer",function(){if(mhZ===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;oW0===void 0&&(oW0=document.createElement("template"));var f=oW0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);mhZ=S}S=mhZ;return S},{mode:2});var S3B;var cDZ;_.i8("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var XY=function(){return _.W.apply(this,arguments)||this};
_.C(XY,_.W);XY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],XY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],XY.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],XY.prototype,"data",void 0);_.d([_.wM({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],XY);
_.k(XY,"yt-unlimited-user-notification-renderer",function(){if(cDZ===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;S3B===void 0&&(S3B=document.createElement("template"));var f=S3B;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);cDZ=S}S=cDZ;return S},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.B5V=_.y_(function(S){var c=_.V_(S,{numberOfChips:5}).numberOfChips;return _.B("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.B(_.lW,{each:function(){return Array(c==null?void 0:c())}},function(){return _.B("div",{class:"ytGhostChipShelfChip"})}))},"mg");_.IhV=_.y_(function(S){var c=_.xa(),Q=_.fl().resolve(_.t2);_.qR(function(){requestAnimationFrame(function(){var U;(U=c.lottieEl)==null||U.addEventListener("DOMLoaded",function(){var a;(a=S.onLottieLoaded)==null||a.call(S)})})});
var f={};return _.B("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var U;return((U=S.data)==null?void 0:U.call(S).targetId)||""}},_.B(_.b8,{className:_.n4((f.ytChatLoadingViewModelRtl=Q==="rtl",f)),
animationName:"YOUCHAT_LOADER",data:function(){var U;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((U=S.data)==null?void 0:U.call(S).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:c}))},"ng");
}catch(e){_._DumpException(e)}
try{
var iR8,ZRE,GC0,WoE,gpZ,eUN,kCE,dZB,yhU,cz,RUU,LoV,V61,t6g,Ep2,PiB,opN,mZO,SVB,cHp,QU,Qq2,f02,a0Z,JE,Uk1,a4,fC,AE,JH1,UB,AHV,X5E,OnT,zKO,xkT,FW8,I0N,KWN,jq8,l0E,YVV,Hn1,p5Z,qV8,TbG,w5V,sqN,inZ,ZnG,Gcg,WW1,gh8,eK2,kcE,dkT,Eh2,LW0,vhO,tCE,PNN,VC0,mkE,ohO,RKZ,yH1,OB,ShN,co8,f3Z,O9p,zxV,xfV,F28,BFT,I31,nxG,b90,NFN,K2N,u5T,jjE,l30,a3Z;
_.ms=function(S){var c=new _.Yr("Error accessing DB");return _.T4Y().then(function(Q){return new Promise(function(f,U){try{var a=Q.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(S);a.onsuccess=function(){var X=a.result;f(X?X.value:null)};
a.onerror=function(){c.params={key:S,source:"onerror"};U(c)}}catch(X){c.params={key:S,
thrownError:String(X)},U(c)}})},function(){return null})};
_.M6N=function(S,c){var Q=_.nZo(c);Q!=="javascript:"&&Q!=="data:"&&S.setAttribute("href",c)};
iR8=function(S,c){return _.FT(S.entities,"flowStateEntity",c)};
ZRE=function(S){return _.Wc(S,function(c){return c.languageCode==="en"})};
GC0=function(S){var c=S3;if(_.PoE(S))S.setOption("captions","stickyLoading",{}),S.setOption("captions","track",{});else{var Q=_.Wc(_.Vbo(S),function(f){return f.displayName===c});
S.setOption("captions","track",Q)}};
WoE=function(S){if(!S)return 0;var c=S.getPresentingPlayerType(),Q=S.getVideoData();return Q&&Q.isLive?(S=S.getProgressState(c),S.seekableEnd-S.seekableStart):S.getDuration(c)};
gpZ=function(S,c){for(var Q=_.A(Object.keys(S)),f=Q.next();!f.done;f=Q.next())if(f=f.value,S[f]!==c[f])return!1;return!0};
eUN=function(){return document.getElementById("player-control-overlay")};
kCE=function(S){S!==-1&&!_.u("player_controls_log_creation_killswitch")&&eUN()&&(_.i2("pcu_cs",S),_.i2("pcu_ce"))};
dZB=function(S){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(S.subscribeButton?[S.subscribeButton,S.channelAccess]:[S.channelAccess]).map(function(c){return _.B("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz--button"},rh2(c)))}))};
_.vpp=function(S){var c=S.data;S=S.hideDivider;var Q={};Q=(Q["yt-profile-identity-info-view-model-wiz__frame"]=!0,Q["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!c.channelBanner,Q);Q={class:_.No(Q)};var f,U={imageBannerViewModel:{image:(f=c.channelBanner)==null?void 0:f.image,style:"IMAGE_BANNER_STYLE_INSET"}};f=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},c.channelBanner?_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
rh2(U,{imageBannerViewModel:{isPositionRelative:!0}})):null);U=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},rh2(c.avatar));var a;var X=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},c.channelDisplayName),c.verifiedOrOacBadge?_.B("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.B(_.RW,{data:{thumbnails:[{url:(a=c.verifiedOrOacBadge)==null?void 0:a.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);a=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},X,rh2(c.threeDotMenu));X=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},c.channelHandle),c.channelPronouns&&c.channelHandle?_.B("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.B("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},c.channelPronouns)),_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},c.leftOfBulletInfo),c.leftOfBulletInfo&&c.rightOfBulletInfo?_.B("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.B("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},c.rightOfBulletInfo)));a=_.B("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},a,X);return _.B("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.B("div",Q,f,_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},U,a),c.channelDescription?_.B("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},c.channelDescription):
null,dZB(c),S?null:_.B("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
yhU=function(S,c){var Q=_.tq(S,{}),f=PiB("top",c),U=PiB("bottom",c),a=PiB("left",c),X=PiB("right",c);return _.Yd({top:function(){return cz(Q().position,f)},
bottom:function(){return cz(Q().position,U)},
left:function(){return cz(Q().position,a)},
right:function(){return cz(Q().position,X)},
position:function(){return cz(Q().positionType,LoV)},
height:function(){return cz(Q().height,QU)},
width:function(){return cz(Q().width,QU)},
"min-width":function(){return cz(Q().minWidth,QU)},
"min-height":function(){return cz(Q().minHeight,QU)},
"max-width":function(){return cz(Q().maxWidth,QU)},
"max-height":function(){return cz(Q().maxHeight,QU)},
"aspect-ratio":function(){return cz(Q().aspectRatio,String)},
"margin-top":function(){return cz(Q().margin,f)},
"margin-bottom":function(){return cz(Q().margin,U)},
"margin-left":function(){return cz(Q().margin,a)},
"margin-right":function(){return cz(Q().margin,X)},
"padding-top":function(){return cz(Q().padding,f)},
"padding-bottom":function(){return cz(Q().padding,U)},
"padding-left":function(){return cz(Q().padding,a)},
"padding-right":function(){return cz(Q().padding,X)},
"flex-direction":function(){return cz(Q().flexDirection,Ep2)},
"justify-content":function(){return cz(Q().justifyContent,t6g)},
"align-items":function(){return cz(Q().alignItems,V61)},
"flex-grow":function(){return cz(Q().flexGrow,String)},
"flex-shrink":function(){return cz(Q().flexShrink,String)},
"flex-basis":function(){return cz(Q().flexBasis,QU)},
"align-self":function(){return cz(Q().alignSelf,V61)},
"flex-wrap":function(){return cz(Q().flexWrap,RUU)},
"align-content":function(){return cz(Q().alignContent,V61)}})};
cz=function(S,c){return S!==void 0?c(S):void 0};
RUU=function(S){switch(S){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
LoV=function(S){switch(S){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
V61=function(S){switch(S){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"}};
t6g=function(S){switch(S){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"}};
Ep2=function(S){switch(S){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"}};
PiB=function(S,c){var Q=c==="rtl";switch(S){case "top":var f=opN;break;case "bottom":f=mZO;break;case "left":f=SVB;break;default:f=cHp}return function(U){return cz(f(U,Q),QU)}};
opN=function(S){var c=S.top;var Q=S.vertical;S=S.all;var f;return(f=c!=null?c:Q)!=null?f:S};
mZO=function(S){var c=S.bottom;var Q=S.vertical;S=S.all;var f;return(f=c!=null?c:Q)!=null?f:S};
SVB=function(S,c){var Q=S.left;var f=S.end;var U=S.start;var a=S.horizontal;S=S.all;var X,z;return(z=(X=Q!=null?Q:c?f:U)!=null?X:a)!=null?z:S};
cHp=function(S,c){var Q=S.right;var f=S.end;var U=S.start;var a=S.horizontal;S=S.all;var X,z;return(z=(X=Q!=null?Q:c?U:f)!=null?X:a)!=null?z:S};
QU=function(S){var c=S.value;switch(S.unit){case "YPC_DIMENSION_UNIT_POINT":return c+"px";case "YPC_DIMENSION_UNIT_FRACTION":return c+"%";default:return""+c}};
Qq2=function(S){switch(S){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"}};
f02=function(S){var c=S!=null?S:{};S=c.fontRole;var Q=c.fontSize;c=c.fontWeight;if(S!==null&&Q!==null)switch(S){case "YPC_FONT_ROLE_DISPLAY":switch(Q){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(Q){case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return c===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(Q){case "YPC_FONT_SIZE_XL":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return c==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
a0Z=function(S,c,Q){function f(n){return Object.values(n).map(function(b){var N=b.productId;b=b.pricingOptionIndex;return fC(U(N).pricingOptions,b).pricingOptionId})}
function U(n){return z().get(n)}
function a(n){n=f(n);Q(n)}
var X=UB([S,c],function(n,b){var N=n==null?void 0:n.selectedPricingOptions;n={};var l=!0;if(N&&b.length)for(var H=_.A(b),q=H.next();!q.done;q=H.next()){q=q.value;var w=Uk1(q.pricingOptions,function(E){a:{E=E.pricingOptionId;for(var v=_.A(N),t=v.next();!t.done;t=v.next())if(t.value===E){E=!0;break a}E=!1}return E});
if(w>=0){l=!1;var g=fC(q.pricingOptions,w),r=void 0;n[q.groupId]={productId:q.productId,pricingOptionIndex:w,pricingGroupAttributes:(r=g)==null?void 0:r.pricingGroupAttributes}}}l&&b.length&&(l=fC(b[0].pricingOptions,0),n[b[0].groupId]={productId:b[0].productId,pricingOptionIndex:0,pricingGroupAttributes:l==null?void 0:l.pricingGroupAttributes});return n}),z=UB([c],function(n){return new Map(n.map(function(b){return[b.productId,
b]}))}),x=UB([c],function(n){var b=new Map;
n=_.A(n);for(var N=n.next();!N.done;N=n.next()){var l=N.value;N=l.groupId;var H=l.productId;l=_.A(JE(l.pricingOptions));for(var q=l.next();!q.done;q=l.next()){var w=_.A(q.value);q=w.next().value;w=w.next().value;b.set(w.pricingOptionId,{groupId:N,productId:H,index:q,pricingOption:w,pricingGroupAttributes:w.pricingGroupAttributes})}}return b}),I=UB([c],function(n){var b=new Map;
n=_.A(n);for(var N=n.next();!N.done;N=n.next()){var l=N.value;N=l.groupId;var H=l.productId,q=void 0;l=_.A(JE((q=l.pricingGroups)!=null?q:[]));for(q=l.next();!q.done;q=l.next()){var w=_.A(q.value);q=w.next().value;w=w.next().value;b.set(w.pricingGroupId,{groupId:N,productId:H,index:q,pricingGroup:w,pricingGroupAttributes:w.pricingGroupAttributes})}}return b});
return{getProductById:U,isProductSelected:function(n){var b=U(n);if(!b)return!1;var N;return((N=X()[b.groupId])==null?void 0:N.productId)===n},
getSelectedPricingOptions:function(){return Object.values(X()).map(function(n){var b=n.productId;n=n.pricingOptionIndex;return fC(U(b).pricingOptions,n)})},
getSelectedPricingGroupAttributesByGroupId:function(n){var b;return(n=(b=X()[n])==null?void 0:b.pricingGroupAttributes)?Array.from(n):void 0},
getSelectedProductByGroupId:function(n){var b;return(n=(b=X()[n])==null?void 0:b.productId)?U(n):void 0},
onProductSelected:function(n){var b=U(n);if(b){var N=X(),l;if(((l=N[b.groupId])==null?void 0:l.productId)!==n){var H,q;l=(q=(H=N[b.groupId])==null?void 0:H.pricingOptionIndex)!=null?q:0;a4(b.pricingOptions)<=l&&(l=0);H=fC(b.pricingOptions,l);var w;q={};a(Object.assign({},N,(q[b.groupId]={productId:n,pricingOptionIndex:l,pricingGroupAttributes:(w=H==null?void 0:H.pricingGroupAttributes)!=null?w:[]},q)))}}},
onPricingOptionSelected:function(n){var b=x().get(n);if(b){n=b.groupId;var N=b.productId;b=b.index;var l=X(),H,q;if(((H=l[n])==null?void 0:H.productId)!==N||((q=l[n])==null?void 0:q.pricingOptionIndex)!==b){var w,g;H={};a(Object.assign({},l,(H[n]={productId:N,pricingOptionIndex:b,pricingGroupAttributes:(g=(w=l[n])==null?void 0:w.pricingGroupAttributes)!=null?g:[]},H)))}}},
onPricingGroupSelected:function(n){var b=I().get(n);if(b){n=b.groupId;var N=b.productId,l=b.pricingGroup.pricingGroupAttributes,H=U(N);if(H){b=X();var q=b[n].pricingGroupAttributes,w;if(((w=b[n])==null?void 0:w.productId)!==N||!AE(JH1(q,a4(l)),l)){w=Array.from(l);for(l=a4(l);l<a4(q);l++){var g="",r=!1,E=Array.from(w);E.push(fC(q,l));for(var v=_.A(H.pricingGroups),t=v.next();!t.done;t=v.next())if(t=t.value,AE(t.pricingGroupAttributes,E)){w.push(fC(q,l));r=!0;break}else g===""&&a4(t.pricingGroupAttributes)===
E.length&&AE(JH1(t.pricingGroupAttributes,w.length),w)&&(g=fC(t.pricingGroupAttributes,l));r||w.push(g)}g=b[n].pricingOptionIndex;l=[];r=new Map;E=0;H=_.A(JE(H.pricingOptions));for(v=H.next();!v.done;v=H.next())t=_.A(v.value),v=t.next().value,t=t.next().value,AE(t.pricingGroupAttributes,w)&&l.push(v),AE(t.pricingGroupAttributes,q)&&r.set(v,E++);l.length===0?q=0:(q=r.get(g),q=q!==void 0&&q<l.length?l[q]:l[0]);H={};a(Object.assign({},b,(H[n]={productId:N,pricingOptionIndex:q,pricingGroupAttributes:w},
H)))}}}},
onClearGroupSelected:function(n){var b=X();b[n]&&(b=Object.fromEntries(Object.entries(b).filter(function(N){return _.A(N).next().value!==n})),a(b))}}};
JE=function(S){return function Q(){var f,U,a,X,z;return _.zZY(Q,function(x){switch(x.nextAddress){case 1:_.xp(x,2),f=0,U=_.A(S),a=U.next();case 4:if(a.done){x.jumpTo(2);break}X=a.value;z=_.xyH;return _.F(x,[f++,X],7);case 7:z(x.yieldResult);a=U.next();x.jumpTo(4);break;case 2:_.O7(x),_.F1(x,0)}})}()};
Uk1=function(S,c){S=_.A(JE(S));for(var Q=S.next();!Q.done;Q=S.next()){var f=_.A(Q.value);Q=f.next().value;f=f.next().value;if(c(f))return Q}return-1};
a4=function(S){var c=0;for(S=S[Symbol.iterator]();!S.next().done;)++c;return c};
fC=function(S,c){S=_.A(JE(S));for(var Q=S.next();!Q.done;Q=S.next()){var f=_.A(Q.value);Q=f.next().value;f=f.next().value;if(Q===c)return f}};
AE=function(S,c){if(!S&&!c)return!0;if(!S||!c)return!1;S=Array.from(S);c=Array.from(c);if(S.length!==c.length)return!1;for(var Q=0;Q<S.length;Q++)if(S[Q]!==c[Q])return!1;return!0};
JH1=function(S,c){c=c===void 0?Infinity:c;var Q=[];S=_.A(JE(S));for(var f=S.next();!f.done;f=S.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;if(f>=c)break;f>=0&&Q.push(U)}return Q};
UB=function(S,c){var Q,f;return function(){for(var U=S.map(function(X){return X()}),a=0;a<U.length;a++)if(!Q||U[a]!==Q[a]){Q=U;
f=c.apply(null,_.Hs(U));break}return f}};
AHV=function(S,c,Q){var f=[];S=_.A(S);for(var U=S.next();!U.done;U=S.next()){U=U.value;var a=void 0;((a=c)==null?0:a.length)&&!AE(U.pricingGroupAttributes,c)||f.push({pricingOption:U,isSelected:Q.includes(U.pricingOptionId)})}return f};
X5E=function(S,c){return _.FT(S.entities,"pdpStateEntity",c)};
OnT=function(S){var c,Q;return!!(S.productId&&S.groupId&&((c=S.pricingOptions)==null?0:c.length)&&S.pricingOptions.every(function(f){return f.pricingOptionId})&&((Q=S.pricingGroups)==null||!Q.length||Array.isArray(S.pricingGroups)&&S.pricingGroups.every(function(f){return f.pricingGroupId&&f.pricingGroupAttributes&&f.pricingGroupAttributes.length>0})))};
zKO=function(S,c,Q){return a0Z(S,UB([c],function(f){return f.filter(OnT)}),Q)};
xkT=function(S,c){return c.length===0?[S]:[S.slice(0,c[0]),S.slice(c[0])].filter(function(Q){return Q.length>0})};
FW8=function(S){switch(S){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""}};
I0N=function(S,c,Q,f){f=Object.assign({},f);_.wH(f,BbE,{selectedOptionId:S,primaryButtonOverride:Q});_.P0().dispatch(_.Ns("flowStateEntity",c,f))};
_.NbO=function(){if(!nhN){var S=_.A(_.ny(new Map,void 0,"UJImUe"));nhN=S.next().value;bn0=S.next().value}return nhN};
KWN=function(S){if(S)return _.NbO()().get(S)};
_.$kO=function(S,c){if(S&&c){var Q=_.NbO();Q().set(S,c);S=Q();bn0(new Map(S))}};
_.u4O=function(S){return{onSubmit:function(){var c;(c=KWN(S()))==null||c.onSubmit()},
isValid:function(){var c=KWN(S());return c?c.isValid():!0},
isSubmitting:function(){var c,Q;return!!((c=KWN(S()))==null?0:(Q=c.isSubmitting)==null?0:Q.call(c))}}};
jq8=function(S,c){return _.FT(S.entities,"contextNoteFeedEntityPayload",c)};
l0E=function(S){S.style.height="auto";S.style.height=S.scrollHeight+"px"};
YVV=function(S){return[S.syncStep,S.asyncStep].filter(function(c){return c!==void 0})};
Hn1=function(S){var c,Q,f;if(S=(c=S.structuredContextNoteFormSchema)==null?void 0:(Q=c.fieldSchemas)==null?void 0:(f=Q.noteBody)==null?void 0:f.validationSchema)for(c=_.A(YVV(S)),Q=c.next();!Q.done;Q=c.next()){Q=Q.value.rules;if(!Q)break;Q=_.A(Q);for(Q=Q.next();!Q.done;Q=Q.next())return _.Y(Q.value,_.CNE)}};
p5Z=function(S){if(S){S=_.A(YVV(S));for(var c=S.next();!c.done;c=S.next()){c=c.value.rules;if(!c)break;c=_.A(c);for(c=c.next();!c.done;c=c.next())return _.Y(c.value,Dk8)}}};
qV8=function(S){if(S){S=_.A(YVV(S));for(var c=S.next();!c.done;c=S.next()){c=c.value.rules;if(!c)break;c=_.A(c);for(c=c.next();!c.done;c=c.next())return _.Y(c.value,hK1)}}};
TbG=function(S){S=/^https?:\/\//.test(S)?S:"http://"+S;try{var c=_.L9(S)}catch(Q){return!1}if(c.toString()!==S)return!1;S=c.JSC$8068_domain_.split(".");return S.length>1&&S.every(function(Q){return!!Q})};
w5V=function(S,c,Q,f){var U;f=(U=f.structuredContextNoteData)==null?void 0:U.createCommentEndpoint;if(U=_.Y(f,_.DYd))return U.commentText=_.LK(S),U.videoPositionMention=c,U.sources=Q,f};
sqN=function(S){return S==null?void 0:S.stringValue};
inZ=function(S,c,Q){S=S.map(function(f,U){return{listItemViewModel:{title:f.title,subtitle:f.subtitle,leadingImage:f.leadingImage,trailingImage:U===c?MCO:void 0,rendererContext:{commandContext:{onTap:f.onTap}}}}});
return Object.assign({},Q&&{header:{panelHeaderViewModel:{title:Q}}},{content:{listViewModel:{listItems:S}}})};
ZnG=function(S,c){if(S&&c)switch(c){case "SELECTION_TYPE_BOOL":return S.boolValue;case "SELECTION_TYPE_INT":return S.intValue;case "SELECTION_TYPE_STRING":return S.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return S.privacyStatusValue}};
Gcg=function(S){var c;S=(c=S.options)==null?void 0:c.findIndex(function(Q){return Q.isSelected});
return S===void 0?-1:S};
WW1=function(S,c,Q){var f=function(){return S().label},U={},a=_.n4("ytDropdownViewModelLabel",(U.ytDropdownViewModelLabelError=c,U));
return _.B(_.K,{cond:function(){return S().label&&!(Q()===-1&&S().label&&!S().placeholderText)},
then:function(){return _.B("div",{class:a},_.B(_.mw,{text:f}))}})};
gh8=function(S,c){var Q={};Q=_.n4("ytDropdownViewModelTitle",(Q.ytDropdownViewModelTitlePlaceholder=function(){return c()===-1},Q));
return _.B("div",{class:Q},_.B(_.mw,{text:function(){var f=S();var U=c();if(U===-1)f=f.placeholderText?f.placeholderText:f.label;else{var a,X;f=(a=f.options)==null?void 0:(X=a[U])==null?void 0:X.title}return f}}))};
eK2=function(S,c){var Q=function(){return S().hint};
return _.B(_.ak,null,_.B(_.K,{cond:function(){return Q()&&!c()},
then:function(){return _.B("div",{class:_.n4("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.B(_.mw,{text:Q,className:"ytDropdownViewModelSupportText"}))}}),_.B(_.K,{cond:c,
then:function(){return _.B("div",{id:"dropdown-view-model-error",role:"alert",class:_.n4("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.B(_.C4,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.B(_.mw,{text:c,className:"ytDropdownViewModelSupportText"}))}}))};
kcE=function(S,c){var Q=_.fl().resolve(_.Dwz);_.wC(function(){var f=S().id;f&&Q!=null&&Q.dropdownMap.set(f,c)})};
dkT=function(S){S=_.Y(S.scheduleButton,rHU);S=_.Y(S==null?void 0:S.primaryButton,_.Ya);S=_.Y(S==null?void 0:S.onTap,_.Zc);var c,Q,f=((Q=_.Y(S,_.II))==null?void 0:Q.commands)||[S];Q=_.A(f);for(S=Q.next();!S.done&&!(c=_.Y(S.value,_.h7l));S=Q.next());var U;c=(U=c)==null?void 0:U.createBroadcastRequest;if(!c)throw Error("Mj");return c};
Eh2=function(S,c,Q){Q=Q===void 0?{}:Q;var f,U;return _.O(function(a){if(f=vhO(c))return a.return(f);(U=PNN(S,c,Q))&&LW0(c,U);return a.return(U)})};
LW0=function(S,c){var Q=tCE(S);Q&&c.then(function(f){_.fl().resolve(_.Ad).put(Q,new _.Xd({innertubeResponse:f}))})};
vhO=function(S){if(S=tCE(S)){var c=_.fl().resolve(_.Ad);if(c.has(S))return c.get(S).then(function(Q){return Q==null?void 0:_.O9(Q)})}return null};
tCE=function(S){var c=_.Y(S.endpoint,_.tG);if(c!=null&&c.videoId)return c={videoId:c.videoId},_.u("web_imp_player_mute_params")&&(c.mutedAtStart=S.startPlaybackInMutedState),_.EM("inline_playback",c)};
PNN=function(S,c,Q){S=_.P3(S,c.endpoint,VC0(c,Q)).then(function(f){return f});
return Promise.resolve(S)};
VC0=function(S,c){c=_.u("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!S.startPlaybackInMutedState},c):Object.assign({},{vis:5,autonav:"1"},c);var Q;c={contentPlaybackContext:_.HV(c,(Q=_.Y(S.endpoint.commandMetadata,_.Qw))==null?void 0:Q.url,window.location.href)};_.u("web_imp_player_mute_params")&&(c.overrideMutedAtStart=!S.startPlaybackInMutedState);return c};
mkE=function(S,c){var Q=window.MutationObserver;Q&&(X8=new Q(function(f,U){f=_.A(f);for(var a=f.next();!a.done;a=f.next()){a=a.value;var X;if(X=a.type==="childList"&&a.target)a:{X=S;a=RKZ(a.target);X=RKZ(X);for(var z=null,x=0;x<a.length;x++)if(X.includes(a[x])){if(x===0){X=!1;break a}z=a[x];break}z?(a=yH1(a,z),X=yH1(X,z),X=a<X):X=!1}if(X){c();U.disconnect();break}}}),(Q=ohO())&&X8.observe(Q,{childList:!0,
subtree:!0}))};
ohO=function(){var S=document.getElementsByTagName("ytd-rich-grid-renderer");if(S.length>0)return S[0];S=document.getElementsByTagName("ytd-section-list-renderer");return S.length>0?S[0]:null};
RKZ=function(S){for(var c=[];S;)c.push(S),S=S.parentElement;return c};
yH1=function(S,c){var Q=Array.from(c.children);c=S.indexOf(c);return c>0?Q.indexOf(S[c-1]):-1};
OB=function(S,c,Q){Q=Q===void 0?{}:Q;return _.K8(S,Q,c)};
ShN=function(S){switch(S){case "MUSIC":return!0;default:return!1}};
co8=function(S){return S==null?void 0:S.filter(function(c){return c.premiereTrailerBadgeRenderer})};
f3Z=function(S){var c,Q=S==null?void 0:(c=S.find(function(b){return b.thumbnailOverlayTimeStatusRenderer}))==null?void 0:c.thumbnailOverlayTimeStatusRenderer,f,U;
if((Q==null?0:(f=Q.icon)==null?0:f.iconType)&&ShN(Q==null?void 0:(U=Q.icon)==null?void 0:U.iconType)){var a;return{icon:Q==null?void 0:(a=Q.icon)==null?void 0:a.iconType}}var X,z;var x=(S=(X=S==null?void 0:(x=S.find(function(b){return b.thumbnailBottomOverlayViewModel}))==null?void 0:x.thumbnailBottomOverlayViewModel)==null?void 0:(z=X.badges)==null?void 0:z.find(function(b){var N,l;
return((N=_.Y(b,Qj8))==null?void 0:(l=N.inlinePlaybackBadgeData)==null?void 0:l.replicateAsTimestamp)===!0}))?_.Y(S,Qj8):void 0;
if(x==null?0:x.icon){var I,n;if((x=(I=_.xXH(x==null?void 0:x.icon))==null?void 0:(n=I.clientResource)==null?void 0:n.imageName)&&ShN(x))return{icon:x}}return{}};
O9p=function(S,c){var Q=Uf8,f=_.A(_.ny(JoB(new a3Z(function(){},Q,c)),void 0,"PAnyd")),U=f.next().value,a=f.next().value,X=new a3Z(function(z){a(z)},Q,c);
_.To(function(){Promise.resolve().then(function(){var z,x=(z=S())!=null?z:{};X.playerControlsData=x;_.u("player_controls_skip_double_signal_old")&&(X.lastSeenPlayerApi=_.ks(x.playerApi));_.u("player_controls_skip_double_signal_old")||(X.lastSeenPlayerApi=_.ks(x.playerApi));AoT(X)});
_.wX(function(){X1G(X)})},"HikUP");
_.wX(function(){X1G(X)});
return function(){return U()}};
zxV=function(S){return function(c){var Q=S(),f={playerState:c};if(c===1){var U;(U=Q.playerApi)==null||U.loadModule("captions")}if(c===0){var a;(a=Q.playerApi)==null||a.unloadModule("captions")}(c!==-1||_.u("web_imp_controls_set_player_state_killswitch"))&&Q.setState(f)}};
xfV=function(S){return function(c){S().setState({playbackRate:c})}};
F28=function(S){return function(c){var Q=S(),f=Q.playerApi,U=f==null?void 0:f.getVideoData(),a=(U==null?void 0:U.isLive)||!1;U=U==null?void 0:U.video_id;a={videoDuration:WoE(f||void 0),isLive:a,videoId:U};a.videoId!==Q.videoId&&(a=Object.assign({},_.HFc(f),a));if(c==null?0:c.playertype)a.playerType=c.playertype;if(f){a.captionsAvailable=_.Zi(f);c=a;var X;U=(X=f.getStoryboardLevel(f.getNumberOfStoryboardLevels()-1))==null?void 0:X.intervalMs;c.storyboardInterval=U?U/1E3:void 0;a.captionsAvailable&&
(a.captionsEnabled=_.PoE(f))}a.volumeMuted=!(f==null||!f.isMuted());Q.setState(a)}};
BFT=function(S){return function(c){var Q=S(),f=Q.playerApi;if(f){var U=f.getPresentingPlayerType();c={playedTime:c||0,percentLoaded:f.getVideoLoadedFraction(),playerType:U};Q.playerState===0&&(c.playedTime=Q.videoDuration);Q.isLive&&(U=f.getProgressState(U),c.playedTime-=U.seekableStart,c.videoDuration=WoE(f));if(Q.playerType===1)f=!1;else{var a;if((a=Q.uxConfig)==null?0:a.showCuedOverlay){var X;f=!((X=Q.playerApi)==null?0:X.getPlayerStateObject(Q.playerType).isDomPaused)}else f=!0}f&&delete c.playedTime;
Q.setState(c)}}};
I31=function(S){return function(){var c=S(),Q,f,U,a={volume:(U=(Q=c.playerApi)==null?void 0:Q.getVolume())!=null?U:0,volumeMuted:!((f=c.playerApi)==null||!f.isMuted())};c.setState(a)}};
nxG=function(S){return function(){var c=S(),Q=c.playerApi;if(Q){var f={captionsAvailable:_.Zi(Q)};f.captionsAvailable&&(f.captionsEnabled=_.PoE(Q));c.setState(f)}}};
b90=function(S){return function(){var c=S();if(c.playerApi&&!(c.volumeMuted||c.controlsVisible&&c.isProbablyAScreenreaderUser)){c.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var Q;(Q=document.querySelector(".player-control-play-pause-icon"))==null||Q.focus()}}};
NFN=function(S){return{appApi:Object.assign({},_.K4Z(),{showCaptionsToggleToast:function(c){var Q,f;(f=(Q=S()).showCaptionsToggleToast)==null||f.call(Q,c)},
openInMiniplayer:function(){var c,Q;(Q=(c=S()).openInMiniplayer)==null||Q.call(c)}})}};
K2N=function(S,c){var Q,f,U;return!!(S==null?0:(Q=S.playerResponse)==null?0:(f=Q.playerConfig)==null?0:(U=f.inlinePlaybackConfig)==null?0:U.showScrubbingControls)&&!(c==null?0:c.hideScrubbingControls)};
_.$fU=function(S){var c=!S.miniplayerIsActive;return[5,2,0].includes(S.miniplayerPlaybackState)||c};
u5T={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};jjE=function(S,c){var Q,f,U,a,X;_.O(function(z){if(!c.length)return z.return([]);Q=[];f=_.A(c);for(U=f.next();!U.done;U=f.next())a=U.value,(X=S.resolveIcon(a))&&!S.iconCache[X.url]&&Q.push(_.kzU(S,X).then(function(){}).catch(function(){}));
return z.return(Promise.all(Q))})};
l30=function(S,c){var Q=[];c=(new Set(c)).values();c=_.A(c);for(var f=c.next();!f.done;f=c.next()){f=f.value;for(var U=_.A(Object.values(u5T)),a=U.next();!a.done;a=U.next())Q.push({iconName:f,iconStyle:a.value})}jjE(S.iconManager,Q)};
_.YhG=function(S,c,Q){var f=Q!=null?Q:S.iconsToFetch;f!=null&&f.length?c!==void 0&&c>=0?_.HG(_.Mq,function(){l30(S,f)},c):l30(S,f):Promise.resolve()};
a3Z=function(S,c,Q){var f=this;this.renderFn=S;this.listeners=c;this.context=Q;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var U;this.lastSeenPlayerApi=_.ks((U=this.playerControlsData)==null?void 0:U.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.HFc(),void 0);_.u("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){JoB(f).setState({playerState:-1});f.resetRecentlyNavigatedJobId&&_.Mq.cancelJob(f.resetRecentlyNavigatedJobId);
f.recentlyNavigated=!0;f.resetRecentlyNavigatedJobId=_.Mq.addJob(function(){f.recentlyNavigated=!1},8,1E4)})};
a3Z.prototype.setState=function(S){if(!_.u("mweb_player_skip_no_op_state_changes")||!gpZ(S,this.state))if(this.state=Object.assign({},this.state,S),!_.u("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)S=-1,_.u("player_controls_log_creation_killswitch")||eUN()||(S=(0,_.Qk)()),_.i2("pcu_s"),_.i2("pcu_se"),_.i2("pcu_rs"),this.renderFn(JoB(this)),_.i2("pcu_re"),kCE(S),_.Mq.addJob(function(){_.i2("pcu_ap")},8)};
var JoB=function(S){var c;var Q=_.ks((c=S.playerControlsData)==null?void 0:c.playerApi);return Object.assign({},S.state,{setState:S.boundSetState,domMeasurements:{progressBarLineRect:S.progressBarLineRect},playerApi:Q,appApi:S.context.appApi,playerContainer:S.context.playerContainer,playerControlContainer:S.context.playerControlContainer,uxConfig:S.context.uxConfig})},AoT=function(S){S.listeners.forEach(function(c){S.eventListenerCleanupFunctions.push(c.register(function(){return JoB(S)},function(){return S.getData()}))})},
X1G=function(S){S.eventListenerCleanupFunctions.forEach(function(c){c()});
S.eventListenerCleanupFunctions.length=0};
a3Z.prototype.getData=function(){return this.playerControlsData};
var zG=new _.L("abuseReportFlowState");var CGO=new _.L("feedbackFormFlowState");var H9g=new _.L("inputBoxViewModel");var DfV=new _.L("flowNextStepCommand");var p1G=new _.L("flowPrevStepCommand");var hxZ=new _.L("updateFlowCommand");_.qhV=new _.L("flowStepRenderer");_.CNE=new _.L("lengthValidationRule");var Dk8=new _.L("regexValidationRule");var hK1=new _.L("selectedValidationRule");var TF1=new _.L("talkToRecsViewModel");var w1V=new _.L("creatorGoalSetUpFlowDropdownItemViewModel");var sjV=new _.L("creatorGoalSetUpFlowDropdownViewModel");var Qj8=new _.L("thumbnailBadgeViewModel");_.MtB=new _.L("radioButtonGroupViewModel");var rHU=new _.L("panelFooterViewModel");var i9E=new _.L("ypcCancelRecurrenceCommand");var Z9V=new _.L("cancellationFlowState");var BbE=new _.L("premiumPurchaseFlowState");var GkG=new _.L("surveyAnswerCardRenderer");var W2Z=new _.L("showMoreButtonRenderer");var gxT;var exE,kkZ=function(){if(exE!==void 0)return exE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;gxT===void 0&&(gxT=document.createElement("template"));var f=gxT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return exE=S};var x$=function(){var S=_.W.apply(this,arguments)||this;S.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";S.goalDescription="";S.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";S.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";S.startButtonId="start-button";S.exampleButtonId="example-button";return S};
_.C(x$,_.W);_.J=x$.prototype;_.J.getGoalDropdownItems=function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.purchaseTargetDropdown,sjV))==null?void 0:c.dropdownItems};
_.J.getTimerDropdownItems=function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.timerDropdown,sjV))==null?void 0:c.dropdownItems};
_.J.getColorDropdownItems=function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.colorDropdown,sjV))==null?void 0:c.dropdownItems};
_.J.getDropdownItemText=function(S){var c;return(c=_.Y(S,w1V))==null?void 0:c.itemLabel};
_.J.getDropdownItemValue=function(S){S=_.Y(S,w1V);return(S==null?void 0:S.timeLimit)||(S==null?void 0:S.purchaseTarget)||(S==null?void 0:S.eligiblePurchaseType)};
_.J.updateFlowState=function(S){_.XF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:S}])};
_.J.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.J.updateGoalValue=function(S){this.goal=S.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.J.onTextValueChanged=function(S){this.goalDescription=S.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.J.updateTimerValue=function(S){this.timer=S.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.J.updateTierValue=function(S){this.tier=S.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.J.getButtonViewModel=function(S){S=(S==null?void 0:S.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var c,Q=_.Y((c=this.data)==null?void 0:c.startGoalButton,_.Ya);return Object.assign({},Q,{state:S})};
_.Rh.Object.defineProperties(x$,{template:{configurable:!0,enumerable:!0,get:function(){return kkZ()}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],x$.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],x$.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],x$.prototype,"goal",void 0);_.d([_.Z(),_.P("design:type",Object)],x$.prototype,"goalDescription",void 0);_.d([_.Z(),_.P("design:type",Object)],x$.prototype,"timer",void 0);_.d([_.Z(),_.P("design:type",Object)],x$.prototype,"tier",void 0);
_.d([_.Z(),_.P("design:type",Object)],x$.prototype,"startButtonId",void 0);_.d([_.Z(),_.P("design:type",Object)],x$.prototype,"exampleButtonId",void 0);_.d([_.wM({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],x$);_.k(x$,"yt-creator-goal-set-up-flow-view-model",function(){return kkZ()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var ro1;var df0;var vxE;var PGE=function(){return _.W.apply(this,arguments)||this};
_.C(PGE,_.W);_.d([_.Z(),_.P("design:type",Object)],PGE.prototype,"data",void 0);_.d([_.wM({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],PGE);
_.k(PGE,"yt-survey-answer-card-renderer",function(){if(vxE===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;df0===void 0&&(df0=document.createElement("template"));var f=df0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);vxE=S}S=vxE;return S},{mode:2});var L22;var ExU;var F8=function(){return _.W.apply(this,arguments)||this};
_.C(F8,_.W);_.J=F8.prototype;_.J.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.J.selectedItemChanged=function(S){_.XF(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[S.feedbackToken||""]}])};
_.J.surveyAnswerCardRendererClicked=function(S){if(S.target&&_.Y(S.model.item,GkG)){var c=S.target;S=_.Y(S.model.item,GkG);S.onTapCommand?_.FF(c,[S.onTapCommand],c):this.data.onTapCommand&&_.FF(c,[this.data.onTapCommand],c);this.selectedItemChanged(S)}};
_.J.checkIsCancellationStyle=function(S){return S==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.J.updateSelectedItemFromBinding=function(S){this.selectedItem=S.detail.value};
F8.prototype.onSelectedItemChanged=F8.prototype.onSelectedItemChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],F8.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],F8.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],F8.prototype,"selectedItem",void 0);_.d([_.Z({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.P("design:type",Boolean)],F8.prototype,"isCancellationStyle",void 0);
_.d([_.B0("selectedItem"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],F8.prototype,"onSelectedItemChanged",null);_.d([_.wM({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],F8);
_.k(F8,"yt-survey-flow-step-renderer",function(){if(ExU===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;L22===void 0&&(L22=document.createElement("template"));var f=L22;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);ExU=S}S=ExU;return S},{mode:2});var Bz=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return S};
_.C(Bz,_.W);Bz.prototype.handleSurveyFlowStepOptionChanged=function(S){this.ytdReduxBehavior.dispatch(_.aB({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:S}));_.XF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:S}}])};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Bz.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Bz.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Bz.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],Bz);
_.k(Bz,"ytd-survey-flow-step-renderer",function(){if(ro1!==void 0)return ro1;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ro1=S},{mode:1});var rh2;rh2=_.l9({avatarViewModel:_.p3,buttonViewModel:_.Ze,subscribeButtonViewModel:_.Dj,imageBannerViewModel:_.vid});_.ttZ=_.K4(_.vpp);_.Qu(_.vpp);var VtG;var I4=function(){return _.W.apply(this,arguments)||this};
_.C(I4,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],I4.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],I4.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],I4);
_.k(I4,"ytd-channel-history-renderer",function(){if(VtG!==void 0)return VtG;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return VtG=S},{mode:1});var Rxp;var yoT=function(){return _.W.apply(this,arguments)||this};
_.C(yoT,_.W);_.d([_.Z(),_.P("design:type",Object)],yoT.prototype,"data",void 0);_.d([_.e({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],yoT);
_.k(yoT,"ytd-feature-enablement-info-renderer",function(){if(Rxp!==void 0)return Rxp;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Rxp=S},{mode:1});var oxE;var mfV;var nC=function(){var S=_.W.apply(this,arguments)||this;S.textBoxMaxLength=_.u("enable_tvod_campaign_code_integration")?15:12;return S};
_.C(nC,_.W);_.J=nC.prototype;_.J.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.J.onSubmit=function(){var S=this.data.serviceEndpoint,c=_.Y(S,_.aC);c&&S&&(c.couponCode=this.userInput,_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}}))};
_.J.validate=function(){var S=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=S&&!this.data.errorMessage;this.showErrorMessage=S&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.u("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.J.computeStyle=function(S){return S};
_.J.computeShowValidationBelowInput=function(S){return S!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.J.updateUserInputFromBinding=function(S){this.userInput=S.currentTarget.value};
_.J.updateShowErrorMessageFromBinding=function(S){this.showErrorMessage=S.detail.value};
_.Rh.Object.defineProperties(nC.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
nC.prototype.dataChanged=nC.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nC.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nC.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],nC.prototype,"userInput",void 0);_.d([_.Z(),_.P("design:type",Boolean)],nC.prototype,"disableApplyButton",void 0);_.d([_.Z(),_.P("design:type",Boolean)],nC.prototype,"hideApplyButton",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],nC.prototype,"hideErrorMessage",void 0);_.d([_.Z(),_.P("design:type",Boolean)],nC.prototype,"showTick",void 0);_.d([_.Z(),_.P("design:type",Boolean)],nC.prototype,"showErrorMessage",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],nC.prototype,"couponStyle",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.P("design:type",Boolean)],nC.prototype,"showValidationBelowInput",void 0);_.d([_.Z(),_.P("design:type",Object)],nC.prototype,"textBoxMaxLength",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nC.prototype,"dataChanged",null);
_.d([_.M("showTick","showErrorMessage","userInput"),_.P("design:type",String),_.P("design:paramtypes",[])],nC.prototype,"validationState",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],nC);
_.k(nC,"ytd-ypc-coupon-renderer",function(){if(mfV!==void 0)return mfV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return mfV=S},{mode:1});var bp=function(){return _.W.apply(this,arguments)||this};
_.C(bp,_.W);bp.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"}}}};
bp.prototype.computeStyle=function(S){return S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bp.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bp.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],bp.prototype,"buttonStyle",void 0);_.d([_.e({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],bp);
_.k(bp,"ytd-flow-bottom-bar-renderer",function(){if(oxE!==void 0)return oxE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return oxE=S},{mode:1});var SjN;var ct8;var Qx2;var NN=function(){return _.W.apply(this,arguments)||this};
_.C(NN,_.W);NN.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
NN.prototype.focus=function(S){this.title&&_.Vk(this.title,S)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],NN.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],NN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],NN.prototype,"data",void 0);_.d([_.nU("#title"),_.P("design:type",HTMLElement)],NN.prototype,"title",void 0);_.d([_.e({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],NN);
_.k(NN,"ytd-flow-top-bar-renderer",function(){if(Qx2!==void 0)return Qx2;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Qx2=S},{mode:1});var ffN;var UjZ;var Jtp;var KC=function(){return _.W.apply(this,arguments)||this};
_.C(KC,_.W);KC.prototype.freeTextValueChanged=function(){_.XF(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
KC.prototype.updateFreeTextValueFromBinding=function(S){this.freeTextValue=S.detail.value};
_.Rh.Object.defineProperties(KC.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(c=(S=this.data)==null?void 0:S.responseMaxLength)!=null?c:500,f;return((f=this.freeTextValue)!=null?f:"").length>=Q?"maxed-out":""}}});
KC.prototype.freeTextValueChanged=KC.prototype.freeTextValueChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KC.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],KC.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],KC.prototype,"freeTextValue",void 0);_.d([_.nU("#user-input"),_.P("design:type",HTMLTextAreaElement)],KC.prototype,"input",void 0);
_.d([_.M("freeTextValue"),_.P("design:type",Object),_.P("design:paramtypes",[])],KC.prototype,"characterLimitClass",null);_.d([_.B0("freeTextValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KC.prototype,"freeTextValueChanged",null);_.d([_.wM({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],KC);
_.k(KC,"yt-free-text-input-flow-step-renderer",function(){if(Jtp===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;UjZ===void 0&&(UjZ=document.createElement("template"));var f=UjZ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Jtp=S}S=Jtp;return S},{mode:2});var $$=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return S};
_.C($$,_.W);$$.prototype.handleFreeTextFlowStepInputChanged=function(S){_.XF(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:S}}])};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],$$.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],$$.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$$.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],$$);
_.k($$,"ytd-free-text-input-flow-step-renderer",function(){if(ffN!==void 0)return ffN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ffN=S},{mode:1});var afT;var At2;var Xrg=function(){return _.W.apply(this,arguments)||this};
_.C(Xrg,_.W);_.d([_.Z(),_.P("design:type",Object)],Xrg.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],Xrg);
_.k(Xrg,"ytd-metadata-line-renderer",function(){if(At2!==void 0)return At2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return At2=S},{mode:1});var up=function(){return _.W.apply(this,arguments)||this};
_.C(up,_.W);up.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],up.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],up.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],up.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],up.prototype,"isMasthead",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],up);
_.k(up,"ytd-media-product-renderer",function(){if(afT!==void 0)return afT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return afT=S},{mode:1});var Oy8;var j3=function(){return _.W.apply(this,arguments)||this};
_.C(j3,_.W);j3.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
j3.prototype.onBillboardImageLoaded=function(){_.Az(this.hostElement,"yt-refit")};
j3.prototype.onBillboardImageLoaded=j3.prototype.onBillboardImageLoaded;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],j3.prototype,"data",void 0);_.d([_.nU("#billboardImage"),_.P("design:type",Object)],j3.prototype,"billboardImage",void 0);_.d([_.FV("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j3.prototype,"onBillboardImageLoaded",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],j3);
_.k(j3,"ytd-billboard-masthead-renderer",function(){if(Oy8!==void 0)return Oy8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Oy8=S},{mode:1});var zqZ;var lp=function(){var S=_.W.apply(this,arguments)||this;S.smallSize=!1;return S};
_.C(lp,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],lp.prototype,"ytComponentBehaviorType",void 0);_.d([_.Z(),_.P("design:type",Object)],lp.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lp.prototype,"smallSize",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],lp);
_.k(lp,"ytd-bullet-formatted-string",function(){if(zqZ!==void 0)return zqZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return zqZ=S},{mode:1});var xjp;var Y$=function(){return _.W.apply(this,arguments)||this};
_.C(Y$,_.W);Y$.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Y$.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Y$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Y$.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],Y$);
_.k(Y$,"ytd-offer-detail-renderer",function(){if(xjp!==void 0)return xjp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return xjp=S},{mode:1});var FmV;var CC=function(){return _.W.apply(this,arguments)||this};
_.C(CC,_.W);CC.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CC.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],CC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CC.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],CC);
_.k(CC,"ytd-offer-detail-step-renderer",function(){if(FmV!==void 0)return FmV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return FmV=S},{mode:1});var BXT;var Hz=function(){var S=_.W.apply(this,arguments)||this;S.isInOfferModule=!1;return S};
_.C(Hz,_.W);_.J=Hz.prototype;_.J.computeHasEndpoint=function(){var S;return!((S=this.data)==null||!S.onClickCommand)};
_.J.dataChanged=function(){var S;if((S=this.data)==null?0:S.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")};
_.J.detached=function(){var S;if((S=this.data)==null?0:S.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.J.handleClickEvent=function(){var S;if((S=this.data)==null?0:S.onClickCommand){var c;this.componentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand)}};
_.J.onContentKeyDown=function(S){S.key==="Enter"?this.handleClickEvent(S):S.key===" "&&S.preventDefault()};
_.J.onContentKeyUp=function(S){S.key===" "&&this.handleClickEvent(S)};
Hz.prototype.dataChanged=Hz.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Hz.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Hz.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Hz.prototype,"data",void 0);_.d([_.Z({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Hz.prototype,"hasEndpoint",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Hz.prototype,"isInOfferModule",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hz.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],Hz);
_.k(Hz,"ytd-channel-masthead-renderer",function(){if(BXT!==void 0)return BXT;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return BXT=S},{mode:1});var IfN;var DS=function(){var S=_.W.apply(this,arguments)||this;S.thumbnailObjectFit="CONTAIN";S.thumbnailObjectPosition="LEFT";S.isExpanded=!1;return S};
_.C(DS,_.W);_.J=DS.prototype;_.J.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.J.dataChanged=function(){this.resetStates()};
_.J.computeisTapOnOfferInfoContainerEnabled=function(){var S;return((S=this.data)==null?void 0:S.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.J.onExpandBtnClick=function(){var S,c=_.Y((S=this.data)==null?void 0:S.showMoreButtonRenderer,W2Z);c&&_.F2(_.Kv(),c.trackingParams);this.isExpanded=!this.isExpanded};
_.J.onOfferInfoClick=function(S){this.isTapOnOfferInfoContainerEnabled&&(_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.yn(_.t4(S)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.J.onBottomBarClick=function(){this.executeTapCommand()};
_.J.executeTapCommand=function(){var S,c=(S=this.data)==null?void 0:S.tapCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.J.resetStates=function(){this.isExpanded=!1};
_.Rh.Object.defineProperties(DS.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var S=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),c,Q,f;return((c=this.data)==null?void 0:c.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&S&&!!((Q=this.data)==null?0:(f=Q.benefits)==null?0:f.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((c=_.Y((S=this.data)==null?void 0:S.showMoreButtonRenderer,W2Z))==null?void 0:c.showMoreButtonTitle)||((Q=this.data)==null?void 0:Q.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((c=_.Y((S=this.data)==null?void 0:S.showMoreButtonRenderer,W2Z))==null?void 0:c.showLessButtonTitle)||((Q=this.data)==null?void 0:Q.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var S;return(S=this.showLessButtonTitle)!=null?S:""}var c;return(c=this.showMoreButtonTitle)!=null?c:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?void 0:S.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((c=this.data)==null?0:c.footerTitle)||((Q=this.data)==null?0:Q.footerSubtitle))}}});
DS.prototype.dataChanged=DS.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],DS.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],DS.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],DS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",String)],DS.prototype,"thumbnailObjectFit",void 0);
_.d([_.Z(),_.P("design:type",String)],DS.prototype,"thumbnailObjectPosition",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.P("design:type",Boolean)],DS.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.d([_.Z(),_.P("design:type",Object)],DS.prototype,"isExpanded",void 0);_.d([_.Z(),_.P("design:type",Object)],DS.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.footerIcon)"}),_.P("design:type",String)],DS.prototype,"icon",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DS.prototype,"dataChanged",null);_.d([_.M("data.thumbnail"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DS.prototype,"hasThumbnail",null);_.d([_.M("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DS.prototype,"enableExpandButton",null);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DS.prototype,"enableOfferContentIcon",null);_.d([_.M("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],DS.prototype,"showMoreButtonTitle",null);_.d([_.M("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.P("design:type",Object),_.P("design:paramtypes",[])],DS.prototype,"showLessButtonTitle",null);
_.d([_.M("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.P("design:type",String),_.P("design:paramtypes",[])],DS.prototype,"expandedBtnText",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DS.prototype,"enableBottomBar",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],DS);
_.k(DS,"ytd-offer-card-renderer",function(){if(IfN!==void 0)return IfN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return IfN=S},{mode:1});var nv0;var pC=function(){return _.W.apply(this,arguments)||this};
_.C(pC,_.W);pC.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"}}}};
pC.prototype.onClick=function(S){if(!_.RZ(S.composedPath()||[],this.hostElement,["A".toString()])){var c,Q;if((S=(Q=_.Y((c=this.data)==null?void 0:c.actionButton,_.GF))==null?void 0:Q.command)&&!this.ytComponentBehavior.resolveCommand(S)){var f;(f=_.Kv())==null||f.clickCommand(S);_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})}}};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],pC.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pC.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pC.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],pC);
_.k(pC,"ytd-offer-content-renderer",function(){if(nv0!==void 0)return nv0;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return nv0=S},{mode:1});var by8;var hE=function(){return _.W.apply(this,arguments)||this};
_.C(hE,_.W);hE.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.Rh.Object.defineProperties(hE.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.title)||!((c=this.data)==null||!c.description)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hE.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],hE.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hE.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],hE.prototype,"hasHeaderData",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],hE);
_.k(hE,"ytd-offer-section-renderer",function(){if(by8!==void 0)return by8;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return by8=S},{mode:1});var NXE;var qN=function(){return _.W.apply(this,arguments)||this};
_.C(qN,_.W);
qN.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"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qN.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],qN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qN.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],qN);
_.k(qN,"ytd-offer-selection-step-renderer",function(){if(NXE!==void 0)return NXE;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return NXE=S},{mode:1});var KmB;var TG=function(){return _.W.apply(this,arguments)||this};
_.C(TG,_.W);TG.prototype.computeStyle=function(S){return S};
TG.prototype.computeImageWidth=function(S){return S==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.d([_.Z({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.P("design:type",String)],TG.prototype,"containerStyle",void 0);_.d([_.Z({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.P("design:type",String)],TG.prototype,"imageWidth",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],TG.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],TG.prototype,"data",void 0);
_.d([_.e({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],TG);
_.k(TG,"ytd-confirmation-masthead-renderer",function(){if(KmB!==void 0)return KmB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return KmB=S},{mode:1});var $j8;var ww=function(){return _.W.apply(this,arguments)||this};
_.C(ww,_.W);ww.prototype.computeStyle=function(S){return S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ww.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ww.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.P("design:type",String)],ww.prototype,"containerStyle",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],ww);
_.k(ww,"ytd-purchase-complete-detail-renderer",function(){if($j8!==void 0)return $j8;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return $j8=S},{mode:1});var urp;var sB=function(){var S=_.W.apply(this,arguments)||this;S.scriptsAppended=!1;return S};
_.C(sB,_.W);sB.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"}}}};
sB.prototype.onDataChanged=function(){var S=this.get("data.gtmId");S&&(_.qu(S,_.WY("GL","")),this.setupConversionTracking())};
sB.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var S=document.createElement("noscript");S.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(S);this.scriptsAppended=!0}};
sB.prototype.onDataChanged=sB.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sB.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],sB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sB.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],sB.prototype,"scriptsAppended",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sB.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],sB);
_.k(sB,"ytd-purchase-complete-step-renderer",function(){if(urp!==void 0)return urp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return urp=S},{mode:1});var jxV;var MN=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(MN,_.W);MN.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],MN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],MN.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],MN.prototype,"darkerDarkTheme",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],MN);
_.k(MN,"ytd-ypc-transaction-error-message-renderer",function(){if(jxV!==void 0)return jxV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return jxV=S},{mode:1});var lf0;var Yj8;var ip=function(){var S=_.W.apply(this,arguments)||this;S.handlePhoneVerificationSuccess=function(c){if(S.isValidPhoneVerificationCompletionMessageEvent(c)){var Q;((Q=S.data)==null?0:Q.nextStepCommand)&&S.ytComponentBehavior.resolveCommand(S.data.nextStepCommand)}};
return S};
_.C(ip,_.W);ip.prototype.isValidPhoneVerificationCompletionMessageEvent=function(S){if(S.data!=="yt-phone-verification-complete")return!1;S=_.ok(S.origin);return S!==null&&S.includes("youtube.com")};
ip.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
ip.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ip.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ip.prototype,"data",void 0);_.d([_.wM({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],ip);
_.k(ip,"yt-feature-enablement-soft-entry-renderer",function(){if(Yj8===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;lf0===void 0&&(lf0=document.createElement("template"));var f=lf0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Yj8=S}S=Yj8;return S},{mode:1});var CQg;var HyN;var Dj0;var prN;var hqE=function(){return _.W.apply(this,arguments)||this};
_.C(hqE,_.W);_.d([_.Z(),_.P("design:type",Object)],hqE.prototype,"data",void 0);_.d([_.wM({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],hqE);
_.k(hqE,"yt-benefits-item-renderer",function(){if(prN===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Dj0===void 0&&(Dj0=document.createElement("template"));var f=Dj0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);prN=S}S=prN;return S},{mode:2});var qjE;var TX2;var ZS=function(){return _.W.apply(this,arguments)||this};
_.C(ZS,_.W);ZS.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
ZS.prototype.computeisWithoutPadding=function(){var S;return((S=this.data)==null?void 0:S.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ZS.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ZS.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.P("design:type",Boolean)],ZS.prototype,"isWithoutPadding",void 0);_.d([_.wM({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],ZS);
_.k(ZS,"yt-benefits-section-renderer",function(){if(TX2===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;qjE===void 0&&(qjE=document.createElement("template"));var f=qjE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);TX2=S}S=TX2;return S},{mode:2});var GG=function(){return _.W.apply(this,arguments)||this};
_.C(GG,_.W);GG.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
GG.prototype.computeisUsingLargeWidth=function(){var S;return((S=this.data)==null?void 0:S.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],GG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],GG.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.P("design:type",Boolean)],GG.prototype,"isUsingLargeWidth",void 0);_.d([_.wM({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],GG);
_.k(GG,"yt-benefits-flow-step-renderer",function(){if(HyN===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;CQg===void 0&&(CQg=document.createElement("template"));var f=CQg;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);HyN=S}S=HyN;return S},{mode:2});var wrV;var sx1;var Wz=function(){return _.W.apply(this,arguments)||this};
_.C(Wz,_.W);Wz.prototype.checkIsUsingLargeWidth=function(){var S;return((S=this.data)==null?void 0:S.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.d([_.Z(),_.P("design:type",Object)],Wz.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Wz.prototype,"ytRendererBehavior",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.P("design:type",Boolean)],Wz.prototype,"isUsingLargeWidth",void 0);_.d([_.wM({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],Wz);
_.k(Wz,"yt-confirmation-flow-step-renderer",function(){if(sx1===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;wrV===void 0&&(wrV=document.createElement("template"));var f=wrV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);sx1=S}S=sx1;return S},{mode:2});var Mdp;var iyG;var ZyV=function(){return _.W.apply(this,arguments)||this};
_.C(ZyV,_.W);_.d([_.Z(),_.P("design:type",Object)],ZyV.prototype,"data",void 0);_.d([_.wM({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],ZyV);
_.k(ZyV,"yt-info-flow-step-renderer",function(){if(iyG===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Mdp===void 0&&(Mdp=document.createElement("template"));var f=Mdp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);iyG=S}S=iyG;return S},{mode:2});var Go2;var WmV;var gvZ=function(){return _.W.apply(this,arguments)||this};
_.C(gvZ,_.W);_.d([_.Z(),_.P("design:type",Object)],gvZ.prototype,"data",void 0);_.d([_.wM({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],gvZ);
_.k(gvZ,"yt-info-list-flow-step-renderer",function(){if(WmV===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Go2===void 0&&(Go2=document.createElement("template"));var f=Go2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);WmV=S}S=WmV;return S},{mode:2});var eqB=_.y_(function(S){var c=S.data;return _.B("styled-text-view-model",{class:_.n4("ytStyledTextViewModelHost",function(){return f02(c().fontAttributes)},function(){return Qq2(c().color)})},_.B(_.mw,{text:function(){return c().text},
ariaLabel:function(){var Q,f,U;return(U=(Q=c().accessibility)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label)!=null?U:""}}))},"af");
eqB.idomCompat=!0;var ko1=_.y_(function(S){var c=function(){var U,a,X,z;return(z=(X=(U=S.alt)==null?void 0:U.call(S))!=null?X:(a=S.data().accessibilityData)==null?void 0:a.label)!=null?z:""},Q=function(){return S.data().imageWidth},f=function(){return S.data().imageHeight};
return _.B("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.B(_.K,{cond:function(){var U=S.data();if(U){var a,X,z;var x=((a=_.fl().resolve(_.QS(_.Lv)))==null?0:a())?(X=U.imageDark)!=null?X:U.imageLight:(z=U.imageLight)!=null?z:U.imageDark}else x=void 0;return x},
then:function(U){return _.B(_.RW,Object.assign({},S,{data:U,alt:c,targetWidth:Q,targetHeight:f,preserveHeight:!0,preserveWidth:!0}))}}))},"bf");
ko1.idomCompat=!0;var gw=_.y_(function(S){var c=S.data;S=_.tq(function(){return c().slots},[]);
var Q=_.tq(function(){return c().layoutProperties},{}),f=_.fl().resolve(_.t2);
return _.B("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:yhU(Q,f)},_.B(_.lW,{each:S,keyBy:"INDEX"},function(U){return _.B("div",{class:"ytContainerLayoutViewModelSlot",style:yhU(function(){return U().layoutProperties},f)},_.B(_.h8,{data:function(){return U().contents}},{containerLayoutViewModel:gw,
badgeViewModel:_.S7,buttonViewModel:_.Ze,styledTextViewModel:eqB,contentPreviewImageViewModel:function(a){return _.B(_.cM,{data:a.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(a){return _.B(ko1,{data:a.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"cf");
gw.idomCompat=!0;var rtN=_.y_(function(S){var c=S.data;var Q=S.stateFns;var f=function(){var I=c(),n=I.productId;return!(!I.clearGroupId&&!n)},U=function(){var I=c(),n=I.clearGroupId;
return(I=I.productId)?Q().isProductSelected(I):n?Q().getSelectedProductByGroupId(n)==null:!1},a=function(){var I=c(),n=I.clearGroupId;
if(I=I.productId)Q().onProductSelected(I);else if(n)Q().onClearGroupSelected(n)},X=function(){var I=c(),n=I.clearGroupId;
if(I=I.productId){var b;return"group:"+(((b=Q().getProductById(I))==null?void 0:b.groupId)||"")}return n?"group:"+n:""},z=_.tq(function(){return c().header},[]),x=_.tq(function(){return c().body},[]);
return _.B("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.B(_.K,{cond:function(){return z().length>0||f()},
then:function(){return _.B("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.B("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.B(_.h8,{data:z},{containerLayoutViewModel:function(I){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(gw,{data:I.data}))},
styledTextViewModel:function(I){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(eqB,{data:I.data}))}})),_.B(_.K,{cond:f,
then:function(){return _.B("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.B(_.p5,{checked:U,name:X,onChange:a}))}}))}}),_.B(_.K,{cond:function(){return x().length>0},
then:function(){return _.B("div",null,_.B(_.h8,{data:x},{containerLayoutViewModel:function(I){return _.B("div",{class:"ytPdpCardSectionViewModelContentItem"},_.B(gw,{data:I.data}))}}))}}))},"df");
rtN.idomCompat=!0;var dj1=_.y_(function(S){var c=S.data;var Q=S.stateFns;return _.B("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.B(_.K,{cond:function(){return c().banner},
then:function(f){return _.B("div",{class:"ytPdpCardViewModelBanner"},_.B(_.mw,{text:f}))}}),_.B(_.h8,{data:function(){return c().sections}},{pdpCardSectionViewModel:function(f){f=f.data;
var U={};return _.B("div",{class:_.n4("ytPdpCardViewModelSectionContainer",(U.ytPdpCardViewModelShowDividers=function(){return c().showDividers},U))},_.B(rtN,{data:f,
stateFns:Q}))}}))},"ef");
dj1.idomCompat=!0;var vvU=_.y_(function(S){var c=S.data;var Q=S.isOverlay;S={};return _.B("pdp-masthead-view-model",{class:_.n4("ytPdpMastheadViewModelHost",(S.ytPdpMastheadViewModelIsOverlay=Q,S))},_.B(_.h8,{data:function(){return c().image}},{contentPreviewImageViewModel:_.cM,
themedImageViewModel:function(f){return _.B(ko1,{data:f.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.B(_.K,{cond:function(){return c().title},
then:function(f){return _.B("h1",{class:"ytPdpMastheadViewModelHeading"},_.B(_.mw,{text:f,isOverlay:Q}))}}),_.B(_.lW,{each:function(){var f;
return(f=c().finePrint)!=null?f:[]}},function(f){return _.B("div",{class:"ytPdpMastheadViewModelFinePrint"},_.B(_.mw,{text:f,
isOverlay:Q}))}))},"ff");
vvU.idomCompat=!0;var PQ1=_.y_(function(S){var c=S.data;var Q=S.stateFns;var f=function(){return"pdp-pricing-group-selector-"+c().pricingGroupAttributeIds},U=_.tq(function(){return c().pricingGroupSelectorSectionHeader});
return _.B("pdp-pricing-group-selector-view-model",null,_.B(_.K,{cond:function(){return!!U()},
then:function(){return _.B(_.h8,{data:U},{sectionHeaderViewModel:function(a){a=a.data;var X={};return _.B("div",{class:_.n4("ytPdpPricingGroupSelectorViewModelSectionHeader",(X.ytPdpPricingGroupSelectorViewModelFullBleed=!0,X.ytPdpPricingGroupSelectorViewModelNoVerticalPadding=!0,X))},_.B(_.aO,{data:a}))}})}}),_.B("div",{class:"ytPdpPricingGroupSelectorViewModelHost"},_.B(_.lW,{each:function(){var a=Q().getSelectedProductByGroupId(c().groupId);
if(!a)return _.MP(Error("Kj`"+c().groupId)),[];var X,z=(X=c().pricingGroupAttributeIds)!=null?X:[],x;if((x=a.pricingGroups)==null||!x.length||!z.length)return[];X=a.pricingGroups.filter(function(N){return z.length?N.pricingGroupAttributes.every(function(l){return z.includes(l)}):!1});
a=[];if(z.length>0){X=[].concat(_.Hs(X));x=_.A(z);for(var I=x.next(),n={};!I.done;n={targetAttrId:void 0},I=x.next())n.targetAttrId=I.value,I=X.findIndex(function(N){return function(l){return l.pricingGroupAttributes.includes(N.targetAttrId)}}(n)),I!==-1&&(a.push(X[I]),X.splice(I,1))}var b=Q().getSelectedPricingGroupAttributesByGroupId(c().groupId);
return a.map(function(N){var l=!1;b&&N.pricingGroupAttributes&&(l=AE(N.pricingGroupAttributes,b));return{pricingGroup:N,isSelected:l}})},
keyBy:function(a){return a.pricingGroup.pricingGroupId}},function(a){return _.B("label",{class:"ytPdpPricingGroupSelectorViewModelOption"},_.B("div",{class:"ytPdpPricingGroupSelectorViewModelOptionContent"},_.B(_.h8,{data:function(){return a().pricingGroup.pricingGroupSelectorOption}},{containerLayoutViewModel:gw})),_.B("div",{class:"ytPdpPricingGroupSelectorViewModelOptionRadio"},_.B(_.p5,{checked:function(){return a().isSelected},
name:f,onClick:function(){Q().onPricingGroupSelected(a().pricingGroup.pricingGroupId)}})))})))},"gf");
PQ1.idomCompat=!0;var Lm2=_.y_(function(S){var c=S.data;var Q=S.stateFns;return _.B("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.B(_.lW,{each:function(){var f=Q().getSelectedPricingOptions().map(function(X){return X.pricingOptionId}),U=Q().getSelectedProductByGroupId(c().groupId);
if(!U)return _.MP(Error("Lj`"+c().groupId)),[];var a=Q().getSelectedPricingGroupAttributesByGroupId(c().groupId);return AHV(U.pricingOptions,a,f)},
keyBy:"INDEX"},function(f){return _.B("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.B("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.B(_.h8,{data:function(){return f().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:gw})),_.B("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.B(_.p5,{checked:function(){return f().isSelected},
onClick:function(){Q().onPricingOptionSelected(f().pricingOption.pricingOptionId);var U=f().pricingOption.onSelectPricingOption;if(U=_.Gv(U)){var a;(a=_.fl().resolve(_.U8))==null||a.resolveCommand(U)}}})))}))},"hf");
Lm2.idomCompat=!0;var Evg=_.y_(function(S){var c=S.data;var Q=S.stateFns;return _.B("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.B(_.h8,{data:function(){var f,U;return(U=(f=Q().getSelectedPricingOptions()[0])==null?void 0:f.primaryButton)!=null?U:c().emptyStateButton}},{buttonViewModel:_.Ze}))},"jf");
Evg.idomCompat=!0;var tdp=_.y_(function(S){var c=S.stateFns;return _.B("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.B(_.h8,{data:function(){return c().getSelectedPricingOptions().flatMap(function(Q){return Q.summaryLines}).filter(function(Q){return!!Q})}},{containerLayoutViewModel:function(Q){return _.B("div",{class:"ytPdpSummaryViewModelLineItem"},_.B(gw,{data:Q.data}))}}))},"kf");
tdp.idomCompat=!0;var VdT=_.y_(function(S){function c(w){var g=X();_.Er(_.TI("pdpStateEntity",g,{key:g,selectedPricingOptions:w}))}
var Q=S.data;var f=S.internalScrolling;var U=S.stateFnsForTesting;var a=_.tq(function(){return Q().allProducts},[]),X=_.tq(function(){return Q().pdpStateEntityKey},""),z=_.b9(X5E,X),x=_.uQ(function(){_.Zf(!0);
var w;return(w=U==null?void 0:U())!=null?w:zKO(z,a,c)},void 0,"pjJzrd"),I=_.tq(function(){return Q().body},[]),n=_.tq(function(){return Q().columnBreakHints},[]),b=function(){return Q().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},N=function(){return b()||Q().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},l=_.uQ(function(){var w=_.oi(Q().background),g;
if(w==null?0:(g=w.sources)==null?0:g.length){var r=r===void 0?!0:r;w=_.IuH(void 0,w.sources,void 0,r,r?1E3:void 0,r?void 0:1E3)}else w=null;return w},void 0,"GO4GAe");
S=_.Yd({"--pdp-view-model-background":function(){return l()?"url("+l()+")":void 0}});
var H={};f=_.n4("ytPdpViewModelHost",(H.ytPdpViewModelHasBackground=function(){return N()||!!l()},H.ytPdpViewModelHasDarkBackground=N,H.ytPdpViewModelHasScrim=b,H.ytPdpViewModelInternalScrolling=_.tq(f,!1),H));
var q=function(w){var g={};return _.n4("ytPdpViewModelItem",(g.ytPdpViewModelFullBleed=function(){return _.tYZ(w())==="dividerViewModel"||_.tYZ(w())==="sectionHeaderViewModel"},g.ytPdpViewModelNoVerticalPadding=function(){return _.tYZ(w())==="sectionHeaderViewModel"},g))};
_.wC(function(){var w=Q().onStartCommand;if(w&&(w=_.Gv(w))){var g;(g=_.fl().resolve(_.U8))==null||g.resolveCommand(w)}});
return _.B("pdp-view-model",{class:f,style:S},_.B("div",{class:"ytPdpViewModelColumnContainer"},_.B(_.lW,{each:function(){return xkT(I(),n())},
keyBy:"INDEX"},function(w){return _.B("div",{class:"ytPdpViewModelColumn"},_.B(_.h8,{data:w},{containerLayoutViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(gw,{data:g}))},
dividerViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(_.yF_,{data:g}))},
pdpCardViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(dj1,{data:g,
stateFns:x}))},
pdpMastheadViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(vvU,{data:g,
isOverlay:N}))},
pdpPricingGroupSelectorViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(PQ1,{data:g,
stateFns:x}))},
pdpPricingOptionSelectorViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(Lm2,{data:g,
stateFns:x}))},
pdpPrimaryButtonViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(Evg,{data:g,
stateFns:x}))},
pdpSummaryViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(tdp,{data:g,
stateFns:x}))},
sectionHeaderViewModel:function(g,r){g=g.data;return _.B("div",{class:q(function(){return w()[r()]})},_.B(_.aO,{data:g}))}}))})))},"lf");
VdT.idomCompat=!0;_.f4(VdT,"pdp-view-model",{props:{data:_.y$,stateFnsForTesting:_.Qn,internalScrolling:_.Qn}});var Rq0=_.y_(function(S){var c=S.data;var Q=S.className;var f=_.b9(_.fj,function(){return c().flowStateEntityKey});
return _.B("ytm-premium-purchase-button-renderer",{class:_.n4("yt-premium-purchase-button-renderer",Q)},_.B(_.h8,{data:function(){var U;return(U=_.Y(f(),BbE))==null?void 0:U.primaryButtonOverride}},{buttonRenderer:function(U){return _.B(_.ve,{data:U.data,
className:Q})},
buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,className:Q})}}))},"mf");
Rq0.idomCompat=!0;var ytE=_.y_(function(S){var c=S.data;S=S.className;var Q=function(){return FW8(c().style)},f=_.n4("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",Q),U=_.n4("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",Q);
return _.B("yt-flow-bottom-bar-renderer",{class:_.n4("yt-flow-bottom-bar-renderer",S,Q)},_.B(_.h8,{data:function(){return c().secondaryButton}},{buttonRenderer:function(a){return _.B(_.ve,{data:a.data,
className:U})},
buttonViewModel:function(a){return _.B(_.Ze,{data:a.data,className:U})},
premiumPurchaseButtonRenderer:function(a){return _.B(Rq0,{data:a.data,className:U})}}),_.B(_.h8,{data:function(){return c().primaryButton}},{buttonRenderer:function(a){return _.B(_.ve,{data:a.data,
className:f})},
buttonViewModel:function(a){return _.B(_.Ze,{data:a.data,className:f})},
premiumPurchaseButtonRenderer:function(a){return _.B(Rq0,{data:a.data,className:f})}}))},"nf");
ytE.idomCompat=!0;_.f4(ytE,"yt-flow-bottom-bar-renderer",{props:{data:_.y$,className:_.y$}});var ovT=_.y_(function(S){var c=_.n4(S.className,"ytOfferSummaryRendererHost");return _.B("yt-offer-summary-renderer",{class:c},_.B("div",{class:"ytOfferSummaryRendererTextContainer"},_.B("div",{class:"ytOfferSummaryRendererEyebrowText"},_.B(_.mw,{text:function(){return S.data().eyebrowText}})),_.B("div",{class:"ytOfferSummaryRendererTitle"},_.B(_.mw,{text:function(){return S.data().title}})),_.B("div",{class:"ytOfferSummaryRendererSubtitle"},_.B(_.mw,{text:function(){return S.data().subtitle}})),
_.B("div",{class:"ytOfferSummaryRendererFeatureListData"},_.B(_.lW,{each:function(){var Q;
return(Q=S.data().featureListData)!=null?Q:[]}},function(Q){var f;
return _.B("div",{class:"ytOfferSummaryRendererFeatureList"},_.B(_.C4,{icon:(f=Q.icon)==null?void 0:f.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"ytOfferSummaryRendererFeatureListIconGreen";case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":return"ytOfferSummaryRendererFeatureListIconSmall";default:return"ytOfferSummaryRendererFeatureListIconDefault"}}}),_.B("div",{class:"ytOfferSummaryRendererFeatureListText"},_.B(_.mw,{text:Q.text,
className:function(){return Q.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytOfferSummaryRendererFeatureListSecondaryText":""}})))})),_.B("div",{class:"ytOfferSummaryRendererDescription"},_.B(_.mw,{text:function(){return S.data().description}}))))},"of");_.f4(_.y_(function(S){var c={};c=_.n4("ytOfferSummaryFlowStepRendererHost",(c.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=S.shouldDisableHeaderTopMargin,c));return _.B("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:c},_.B("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.B("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.B(_.mw,{text:function(){return S.data().header}})),_.B("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.B(_.mw,{text:function(){return S.data().subtitle}}))),_.B("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.B(_.h8,{data:function(){return S.data().offerSummary}},{offerSummaryRenderer:function(Q){return _.B(ovT,{data:Q.data,
className:S.flowClassName})}})))},"pf"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Qn,
flowClassName:_.Qn,flowStateEntityKey:_.Qn,shouldDisableHeaderTopMargin:_.Qn}});var mjT=_.y_(function(S){var c=S.data;var Q=S.className;var f=S.flowStateEntityKey;var U=S.selectionStepStyle;S=_.$d(function(x){var I=c(),n=f==null?void 0:f();x.target&&(x.stopPropagation(),x=n||"",n=_.fj(_.P0().getState(),x),I=Object.assign({},n,{premiumPurchaseFlowState:{selectedOptionId:I.optionId,primaryButtonOverride:I.primaryButtonOverride}}),_.P0().dispatch(_.Ns("flowStateEntity",x,I)));return!1});
var a=function(){return(f==null?void 0:f())||""},X=_.b9(_.fj,a);
_.wC(function(){var x=c(),I=a(),n=X();x.defaultSelected&&I!==""&&x.primaryButtonOverride&&I0N(x.optionId||"",I,x.primaryButtonOverride,n)});
var z={};return _.B("ytm-option-item-renderer",{"on:click":S,class:_.n4(Q,"ytm-option-item-renderer",(z["ytm-option-item-renderer--lp2-style"]=function(){return(U==null?void 0:U())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},z))},_.B("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.B("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var x=c(),I=a(),n=X();n=_.Y(n,BbE);return(n?(n==null?void 0:n.selectedOptionId)||"":x.defaultSelected&&I!==""?(x==null?void 0:x.optionId)||"":"")===c().optionId},
name:("input"+_.MI(_.HD)).toString()})),_.B("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.B(_.K,{cond:function(){return c().eyebrowText},
then:function(){return _.B("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.B(_.mw,{text:function(){return c().eyebrowText}}))}}),_.B("div",{class:"ytm-option-item-renderer__option-item-title"},_.B(_.mw,{text:function(){return c().title}})),_.B("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.B(_.mw,{text:function(){return c().subtitle}})),_.B(_.K,{cond:function(){return c().featureListData},
then:function(){return _.B("div",{class:"ytm-option-item-renderer__feature-list-data"},_.B(_.lW,{each:function(){return c().featureListData||[]}},function(x){var I,n=(I=x.icon)==null?void 0:I.iconType;
a:switch(x.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":I="ytm-option-item-renderer__feature-list-icon-green";break a;case "BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT":I="ytm-option-item-renderer__feature-list-icon-small";break a;default:I="ytm-option-item-renderer__feature-list-icon-default"}return _.B("div",{class:"ytm-option-item-renderer__feature-list"},_.B(_.C4,{icon:n,className:I,active:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"}}),
_.B("div",{class:"ytm-option-item-renderer__feature-list-text"},_.B(_.mw,{text:x.text,
className:function(){return x.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"ytm-option-item-renderer__feature-list-secondary-text":""}})))}))}}),_.B("div",{class:"ytm-option-item-renderer__option-item-description"},_.B(_.mw,{text:function(){return c().description}}))))},"qf");var Spp=_.y_(function(S){var c=S.data;var Q=S.flowClassName;var f=S.flowStateEntityKey;var U=S.selectionStepStyle;return _.B("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.B("div",{class:"yt-option-section-renderer__option-section-header-section"},_.B("div",{class:"yt-option-section-renderer__option-section-header"},_.B(_.mw,{text:function(){return c().title}}),_.B(_.h8,{data:function(){return c().titleBadge}},{badgeViewModel:function(a){return _.B(_.S7,
{data:a.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.B(_.K,{cond:function(){return c().subtitle},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.B(_.mw,{text:function(){return c().subtitle}}))}}),_.B(_.K,{cond:function(){return c().featureListData},
then:function(a){return _.B("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.B(_.lW,{each:a},function(X){var z;return _.B("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.B(_.C4,{icon:(z=X.icon)==null?void 0:z.iconType,active:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_BOLD_ICON_PRIMARY_TEXT"},
className:function(){switch(X.style){case "BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT":return"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"}}}),_.B("div",{class:"yt-option-section-renderer__option-section-feature-item-text"},_.B(_.mw,{text:X.text,
className:function(){return X.style==="BULLET_FORMATTED_STRING_STYLE_SMALL_ICON_GREY_TEXT"?"yt-option-section-renderer__option-section-feature-item-text-secondary":""}})))}))}}),_.B(_.K,{cond:function(){return c().secondaryTitle},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-secondary-title"},_.B(_.mw,{text:function(){return c().secondaryTitle}}))}}),_.B(_.lW,{each:function(){return c().sectionDisclaimers||[]}},function(a){return _.B("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.B(_.mw,{text:a}))})),_.B(_.h8,{data:function(){return c().optionItems}},{optionItemRenderer:function(a){return _.B("div",{class:"yt-option-section-renderer__option-item"},_.B(mjT,{data:a.data,
className:Q,flowStateEntityKey:f,selectionStepStyle:U}))}}),_.B(_.K,{cond:function(){return c().offerText},
then:function(){return _.B("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.B(_.mw,{text:function(){return c().offerText}}))}}))},"rf");
Spp.idomCompat=!0;var cS0=_.y_(function(S){var c=S.data;var Q=S.flowClassName;var f=S.flowStateEntityKey;S=S.isDesktop;var U=function(){var I;return(I=c().flowStateEntityKey)!=null?I:f==null?void 0:f()},a=function(){return(U==null?void 0:U())||""},X=function(){return c().style},z=_.b9(_.fj,a);
_.wC(function(){var I=c(),n=a(),b=z();!_.Y(b,BbE)&&I.noPreselect&&n!==""&&I.defaultButtonOverride&&I0N("default",n,I.defaultButtonOverride,b)});
var x={};return _.B("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.n4("ytm-option-selection-flow-step-renderer",(x["ytm-option-selection-flow-step-renderer--desktop"]=S,x["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return c().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},x))},_.B("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"},
_.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.B(_.mw,{text:function(){return c().header}})),_.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.B(_.mw,{text:function(){return c().subtitle}}))),_.B(_.h8,{data:function(){return c().optionItems||[]}},{optionItemRenderer:function(I){return _.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.B(mjT,{data:I.data,
className:Q,flowStateEntityKey:U,selectionStepStyle:X}))},
optionSectionRenderer:function(I){return _.B("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.B(Spp,{data:I.data,flowClassName:Q,flowStateEntityKey:U,selectionStepStyle:X}))}}))},"sf");
cS0.idomCompat=!0;_.f4(cS0,"yt-option-selection-flow-step-renderer",{props:{data:_.y$,flowClassName:_.y$,flowStateEntityKey:_.y$,isDesktop:_.y$}});var nhN,bn0;_.e3=_.y_(function(S){var c=_.V_(S,{type:1,disablePadding:!1,disablePrimaryButton:!1}),Q=c.data,f=c.type;S=c.disablePadding;var U=c.disablePrimaryButton,a=c.onClickPrimaryButton,X=function(){return Q().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},z=function(){return{disabled:U(),
state:U()?"disabled":"active"}},x=function(){return Q().leadingLabel||Q().trailingLabel};
c={};return _.B("yt-panel-footer-view-model",{class:_.n4("yt-panel-footer-view-model-wiz",(c["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return Q().shouldHideDivider},c["yt-panel-footer-view-model-wiz--disable-padding"]=S,c))},_.B(_.K,{cond:x,
then:function(){var I={},n={};return _.B("div",{class:_.n4("yt-panel-footer-view-model-wiz__text-row",(I["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var b=Q();return!(!b.leadingLabel&&!b.trailingLabel||!b.primaryButton&&!b.secondaryButton)},I))},_.B(_.mw,{text:function(){return Q().leadingLabel},
className:_.n4((n["yt-panel-footer-view-model-wiz--text-padding"]=x,n))}),_.B(_.mw,{text:function(){return Q().trailingLabel}}))}}),_.B(_.K,{cond:X,
then:function(){var I={};return _.B("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.B("div",{class:_.n4("yt-panel-footer-view-model-wiz__primary-button",(I["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return Q().secondaryButton},I))},_.B(_.h8,{data:function(){return Q().primaryButton}},{buttonViewModel:function(n){return _.B(_.Ze,{data:n.data,
buttonOverrides:z,onClick:a})}})),_.B(_.h8,{data:function(){return Q().secondaryButton}},{buttonViewModel:_.Ze}))}}),_.B(_.K,{cond:function(){return!X()},
then:function(){var I={},n={},b={};return _.B("div",{class:_.n4("yt-panel-footer-view-model-wiz__button-row",(I["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===f()},I))},_.B("div",{class:_.n4("yt-panel-footer-view-model-wiz__button-row--left-button",(n["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===f()},n["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!Q().secondaryButton||0===f()},n["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===f()},n))},_.B(_.h8,{data:function(){return Q().secondaryButton}},{buttonViewModel:_.Ze})),_.B("div",{class:_.n4("yt-panel-footer-view-model-wiz__primary-button",(b["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===f()||1===f()},b["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===f()},b))},_.B(_.h8,{data:function(){return Q().primaryButton}},{buttonViewModel:function(N){return _.B(_.Ze,{data:N.data,
buttonOverrides:z,onClick:a})}})))}}))},"tf");
_.e3.idomCompat=!0;_.QkO=_.y_(function(S){S=_.V_(S,{disablePadding:!1});var c=S.data,Q=S.disablePadding;S=_.u4O(function(){return c().formId});
var f=S.onSubmit,U=S.isValid,a=S.isSubmitting;return _.B("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.B(_.h8,{data:function(){return c().panelFooter}},{panelFooterViewModel:function(X){return _.B(_.e3,{data:X.data,
onClickPrimaryButton:function(){f()},
disablePrimaryButton:function(){return!U()||a()},
disablePadding:Q})}}))},"uf");_.f4(_.QkO,"yt-form-footer-view-model",{props:{data:_.y$,disablePadding:_.y$}});_.f4(_.y_(function(S){return _.B("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.B(_.K,{cond:function(){var c;return(c=S.data())==null?void 0:c.image},
then:function(c){return _.B(_.RW,{data:c,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.B(_.mw,{text:function(){var c;
return(c=S.data())==null?void 0:c.title}})),_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.B(_.mw,{text:function(){var c;
return(c=S.data())==null?void 0:c.subtitle}})),_.B("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.B(_.h8,{data:function(){var c;
return(c=S.data())==null?void 0:c.viewTipsButton}},{buttonViewModel:_.Ze}))))},"vf"),"yt-contributor-zero-state-view-model",{props:{data:_.y$}});var fJN=_.y_(function(S){var c=_.b9(jq8,_.tq(function(){var Q;return(Q=S.data())==null?void 0:Q.noteFeedEntityKey},""));
return _.B("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.B(_.K,{cond:function(){var Q,f;return(Q=S.data())==null?void 0:(f=Q.noteData)==null?void 0:f.isPinned},
then:function(){return _.B(_.C4,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})},
else:function(){return _.B(_.K,{cond:function(){var Q,f;return(Q=S.data())==null?void 0:(f=Q.noteData)==null?void 0:f.isPublished},
then:function(){return _.B(_.C4,{icon:"PEOPLE_NOTE_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIcon"})}})}}),_.B(_.mw,{text:function(){var Q,f;
return(Q=S.data())==null?void 0:(f=Q.noteData)==null?void 0:f.headerText}}),_.B("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.B(_.mw,{text:function(){var Q,f;
return(Q=S.data())==null?void 0:(f=Q.noteData)==null?void 0:f.delimiter}})),_.B(_.mw,{text:function(){var Q,f;
return(Q=c())==null?void 0:(f=Q.contributorNote)==null?void 0:f.publishedTimeText}})),_.B(_.h8,{data:function(){var Q,f,U,a=(Q=S.data())==null?void 0:Q.noteData;
Q=(f=c())==null?void 0:(U=f.contributorNote)==null?void 0:U.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:a.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:a.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:a.deleteDialogTitle}]},dialogMessages:[{runs:[{text:a.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:a.deleteActionText}]},command:{performCommentActionEndpoint:{action:Q}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:a.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.B("div",{class:"ytNoteViewModelNoteContent"},_.B(_.mw,{text:function(){var Q,f;
return(Q=c())==null?void 0:(f=Q.contributorNote)==null?void 0:f.text}})))},"wf");
fJN.idomCompat=!0;_.f4(fJN,"yt-note-view-model",{props:{data:_.y$}});var k$=_.y_(function(S){var c=_.V_(S,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),Q=c.label,f=c.text,U=c.placeholder,a=c.hint;S=c.rows;var X=c.overflowStyle,z=c.outline,x=c.disabled,I=c.disableNewLines,n=c.characterLimit,b=c.validation,N=c.onInput,l=_.EH("textarea");c=_.A(_.l8(function(){return f()}));
var H=c.next().value,q=c.next().value;c=_.A(_.ny(!1,void 0,"fXvinf"));var w=c.next().value,g=c.next().value,r=function(){g(!0)},E=function(){g(!1)};
_.wC(function(){var Pc=l.value,ex=X(),yd=H();ex==="expand-vertically"&&yd&&l0E(Pc);l.value.addEventListener("focusin",r);l.value.addEventListener("focusout",E)});
_.wX(function(){l.value.removeEventListener("focusin",r);l.value.removeEventListener("focusout",E)});
var v=function(){var Pc;return(Pc=b())==null?void 0:Pc.validate(H())},t=function(){return n()&&!v()&&H().length>n().maxChars},V=function(){return!!v()||t()};
c=_.$d(function(Pc){if(!Pc.currentTarget)return!1;Pc=Pc.currentTarget;q(Pc.value);X()==="expand-vertically"&&l0E(Pc);N==null||N(Pc.value);return!0});
var AZ=_.$d(function(Pc){I()&&Pc.key==="Enter"&&Pc.preventDefault();return!1}),IH=_.$d(function(){l.value.focus()}),Nr=function(){return U()||Q()},Hc={},qr={},wp={};
return _.B("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.B("div",{class:_.n4("ytStandardsTextareaShapeTextareaContainer",(Hc.ytStandardsTextareaShapeTextareaContainerOutline=z,Hc.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=x,Hc.ytStandardsTextareaShapeTextareaContainerOutlineError=V,Hc)),"on:click":IH},_.B("label",{class:_.n4("ytStandardsTextareaShapeLabel",(qr.ytStandardsTextareaShapeLabelFocused=w,qr.ytStandardsTextareaShapeLabelDisabled=x,qr.ytStandardsTextareaShapeLabelError=
function(){return V()&&!x()},qr.ytStandardsTextareaShapeLabelHidden=function(){return!w()&&!H()&&!!Nr()},qr))},Q),_.B("div",{class:_.n4("ytStandardsTextareaShapePlaceholder",(wp.ytStandardsTextareaShapePlaceholderVisible=function(){return!w()&&!H()},wp)),
"aria-hidden":"true"},Nr),_.B("textarea",{el:l,class:"ytStandardsTextareaShapeTextarea",rows:S,disabled:x,placeholder:Nr,"on:input":c,"on:keydown":AZ},H)),_.B(_.K,{cond:function(){return a()&&!V()},
then:function(){var Pc={};return _.B("div",{class:_.n4("ytStandardsTextareaShapeHint",(Pc.ytStandardsTextareaShapeHintDisabled=x,Pc))},_.B("div",{class:"ytStandardsTextareaShapeHintHintMessage"},a))}}),_.B(_.K,{cond:v,
then:function(){return _.B(UR8,{disabled:x},_.B("div",{class:"ytStandardsTextareaShapeErrorMessage"},v))}}),_.B(_.K,{cond:n,
then:function(Pc){return _.B(_.K,{cond:t,then:function(){return _.B(UR8,{disabled:x},_.B("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return Pc().errorMessage}),_.B("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return H().length+"/"+Pc().maxChars}))}})}}))},"xf");
k$.idomCompat={callbacks:{onInput:!0}};var UR8=_.y_(function(S){var c={};return _.B("div",{class:_.n4("ytStandardsTextareaShapeError",(c.ytStandardsTextareaShapeErrorDisabled=S.disabled,c)),role:"alert"},_.B(_.C4,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),S.children)},"yf");_.JS1=_.y_(function(S){var c=S.data;return _.B("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.B(k$,{text:S.text,label:function(){var Q;return(Q=c().contentProperties)==null?void 0:Q.labelText},
placeholder:function(){var Q;return(Q=c().contentProperties)==null?void 0:Q.placeholderText},
hint:function(){var Q;return(Q=c().contentProperties)==null?void 0:Q.hintText},
outline:function(){var Q;return!((Q=c().displayProperties)==null?0:Q.hideBorder)},
overflowStyle:function(){var Q;return((Q=c().displayProperties)==null?0:Q.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:S.disabled,disableNewLines:function(){var Q;return(Q=c().displayProperties)==null?void 0:Q.disableNewLines},
onInput:S.onInput,characterLimit:S.characterLimit,validation:S.validation,rows:function(){var Q;return(Q=c().displayProperties)==null?void 0:Q.rows}}))},"zf");_.aJZ=_.y_(function(S){var c=S.data;return _.B("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.B(k$,{text:S.text,label:function(){var Q;return(Q=c().contentProperties)==null?void 0:Q.labelText},
placeholder:function(){var Q;return(Q=c().contentProperties)==null?void 0:Q.placeholderText},
hint:function(){var Q;return(Q=c().contentProperties)==null?void 0:Q.hintText},
outline:function(){var Q;return!((Q=c().displayProperties)==null?0:Q.hideBorder)},
overflowStyle:function(){var Q;return((Q=c().displayProperties)==null?0:Q.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var Q;return(Q=c().displayProperties)==null?void 0:Q.disableNewLines},
onInput:S.onInput,characterLimit:S.characterLimit,validation:S.validation,rows:function(){var Q;return(Q=c().displayProperties)==null?void 0:Q.rows}}))},"Af");var ASE=_.y_(function(S){var c=_.A(_.l8(function(){var Nr,Hc;return((Nr=S.data().structuredContextNoteFormSchema)==null?0:(Hc=Nr.initialValues)==null?0:Hc.noteBody)?S.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),Q=c.next().value,f=c.next().value;
c=_.A(_.l8(function(){S.data();return!1}));
var U=c.next().value,a=c.next().value;c=_.A(_.l8(function(){S.data();return!1}));
var X=c.next().value,z=c.next().value;c=_.A(_.l8(function(){var Nr,Hc;return((Nr=S.data().structuredContextNoteFormSchema)==null?0:(Hc=Nr.initialValues)==null?0:Hc.timestamp)?S.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var x=c.next().value,I=c.next().value;c=_.A(_.l8(function(){S.data();return!1}));
var n=c.next().value,b=c.next().value;c=_.A(_.l8(function(){var Nr,Hc;return((Nr=S.data().structuredContextNoteFormSchema)==null?0:(Hc=Nr.initialValues)==null?0:Hc.sources)?[S.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var N=c.next().value,l=c.next().value;c=_.A(_.l8(function(){S.data();return!1}));
var H=c.next().value,q=c.next().value;c=_.A(_.l8(function(){return!1}));
var w=c.next().value,g=c.next().value;_.wC(function(){var Nr;_.$kO((Nr=S.data().structuredContextNoteFormSchema)==null?void 0:Nr.id,{isSubmitting:w,onSubmit:function(){g(!0);var Hc=w5V(Q(),x(),N(),S.data()),qr=_.fl().resolve(_.U8);Hc&&qr&&qr.resolveCommand(Hc,{commandController:{onSuccess:function(){g(!1)}}})},
isValid:function(){return U()&&!X()&&!n()&&!H()}})});
var r=function(Nr){if(Nr!==void 0&&(f(Nr),!U()&&Nr.length>0&&a(!0),U())){var Hc=Hn1(S.data());if(Hc){var qr=Hc.minLength;Hc=Hc.maxLength;qr&&Nr.length<qr?z(!0):Hc&&Nr.length>Hc?z(!0):z(!1)}}},E=function(Nr){if(Nr!==void 0){I(Nr);
if(Nr.length>0){var Hc,qr,wp,Pc,ex=p5Z((Hc=S.data())==null?void 0:(qr=Hc.structuredContextNoteFormSchema)==null?void 0:(wp=qr.fieldSchemas)==null?void 0:(Pc=wp.timestamp)==null?void 0:Pc.validationSchema);if(ex&&(Hc=ex.regex)&&!(new RegExp(Hc)).test(Nr)){b(!0);return}}b(!1)}},v=function(Nr){if(Nr!==void 0){var Hc=Nr.split(/[ \n]/).map(function(qr){return qr.trim()});
l(Hc);if(Nr.length>0)for(Nr=_.A(Hc),Hc=Nr.next();!Hc.done;Hc=Nr.next())if(!TbG(Hc.value)){q(!0);return}q(!1)}},t=function(){return{validate:function(Nr){if(U()){var Hc=Hn1(S.data());
if(Hc){var qr=Hc.minLength;Hc=Hc.translations;if(qr&&Nr.length<qr)return Hc==null?void 0:Hc.minLengthErrorMessage}}}}},V=function(){var Nr=Hn1(S.data()),Hc=Nr==null?void 0:Nr.maxLength,qr;
Nr=Nr==null?void 0:(qr=Nr.translations)==null?void 0:qr.maxLengthErrorMessage;if(Hc&&Nr)return{maxChars:Hc,errorMessage:Nr}},AZ=function(){return{validate:function(Nr){if(Nr){var Hc,qr,wp,Pc,ex=p5Z((Hc=S.data())==null?void 0:(qr=Hc.structuredContextNoteFormSchema)==null?void 0:(wp=qr.fieldSchemas)==null?void 0:(Pc=wp.timestamp)==null?void 0:Pc.validationSchema);
if(ex&&(Hc=ex.regex,ex=ex.translations,Hc&&!(new RegExp(Hc)).test(Nr)))return ex==null?void 0:ex.regexErrorMessage}}}},IH=function(){return{validate:function(Nr){if(Nr){var Hc,qr,wp,Pc,ex=qV8((Hc=S.data())==null?void 0:(qr=Hc.structuredContextNoteFormSchema)==null?void 0:(wp=qr.fieldSchemas)==null?void 0:(Pc=wp.sources)==null?void 0:Pc.validationSchema);
if(ex&&(Hc=ex.translations,Hc==null?0:Hc.selectedErrorMessage))for(Nr=Nr.split(/[ \n]/).map(function(yd){return yd.trim()}),Nr=_.A(Nr),qr=Nr.next();!qr.done;qr=Nr.next())if(!TbG(qr.value))return Nr=void 0,(Nr=Hc)==null?void 0:Nr.selectedErrorMessage}}}};
return _.B("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.h8,{data:function(){var Nr;return(Nr=S.data())==null?void 0:Nr.noteContents}},{textFormFieldViewModel:function(Nr){return _.B(_.aJZ,{data:Nr.data,
onInput:r,validation:t,characterLimit:V})},
textFieldViewModel:function(Nr){return _.B(_.JS1,{data:Nr.data,onInput:r,validation:t,characterLimit:V})}})),_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.h8,{data:function(){var Nr;
return(Nr=S.data())==null?void 0:Nr.noteTimestamp}},{textFormFieldViewModel:function(Nr){return _.B(_.aJZ,{data:Nr.data,
onInput:E,validation:AZ})},
textFieldViewModel:function(Nr){return _.B(_.JS1,{data:Nr.data,onInput:E,validation:AZ})}})),_.B("div",{class:"ytStructuredContextNoteViewModelTextField"},_.B(_.h8,{data:function(){var Nr;
return(Nr=S.data())==null?void 0:Nr.noteSources}},{textFormFieldViewModel:function(Nr){return _.B(_.aJZ,{data:Nr.data,
onInput:v,validation:IH})},
textFieldViewModel:function(Nr){return _.B(_.JS1,{data:Nr.data,onInput:v,validation:IH})}})))},"Bf");
ASE.idomCompat=!0;_.f4(ASE,"yt-structured-context-note-view-model",{props:{data:_.y$}});var XYE=_.y_(function(S){var c=_.A(_.l8(function(){var a;if((a=S.controlled)==null?0:a.call(S))return[];var X;return(((X=S.data())==null?void 0:X.chips)||[]).map(function(z){z=_.Y(z,_.kc);if(z==null?0:z.selected)return sqN(z.chipValue)}).filter(function(z){return z!==void 0})})),Q=c.next().value,f=c.next().value,U=function(a){var X=sqN(a.chipValue);
if(X!==void 0){var z;if((z=S.controlled)==null?0:z.call(S))return void S.controlled().onTap(X);a=Q().includes(X)?[].concat(_.Hs(Q().filter(function(I){return I!==X}))):[].concat(_.Hs(Q()),[X]);
f(a);var x;if((x=S.uncontrolled)==null?0:x.call(S))S.uncontrolled().onUpdate(a)}};
return _.B("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.B(_.lW,{each:function(){return S.data().chips||[]}},function(a){return _.B("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.B(_.ViJ,{data:function(){return _.Y(a,_.kc)},
selected:function(){var X;if(X=_.Y(a,_.kc)){var z=sqN(X.chipValue);if(z!==void 0){var x;X=((x=S.controlled)==null?0:x.call(S))?S.controlled().selectedValues.includes(z):Q().includes(z)}else X=void 0}else X=!1;return X},
callback:U}))}))},"Cf");var ObB=_.y_(function(S){var c=S.data;var Q=function(){var z;return((z=c())==null?void 0:z.flowStateKey)||""},f=_.b9(_.fj,Q),U=function(){var z;
return(z=_.Y(f(),CGO))==null?void 0:z.chips},a=function(z){if(z!==void 0){var x=U()||[];
x=x.find(function(I){return I===z})?x.filter(function(I){return I!==z}):[].concat(_.Hs(x),[z]);
x=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.Y(f(),CGO),{chips:x})});_.Er(_.Ns("flowStateEntity",Q(),x))}},X=function(){var z;
return _.Y((z=c())==null?void 0:z.inputBox,H9g)};
S=_.jW(function(z){var x=X();x=!(x==null?0:x.maxChars)||z.length<=x.maxChars;z=Object.assign({},f(),{feedbackFormFlowState:Object.assign({},_.Y(f(),CGO),{detail:z}),abuseReportFlowState:Object.assign({},_.Y(f(),zG),{navigationEnabled:x})});_.Er(_.Ns("flowStateEntity",Q(),z))},150);
return _.B("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.B("div",{class:"ytFeedbackFormViewModelChips"},_.B(_.h8,{data:function(){var z;return(z=c())==null?void 0:z.chipSelection}},{chipSelectionFormFieldViewModel:function(z){return _.B(XYE,{data:z.data,
controlled:function(){return{selectedValues:U()||[],onTap:a}}})}})),_.B("div",{class:"ytFeedbackFormViewModelInputBox"},_.B(k$,{text:function(){var z;
return(z=_.Y(f(),CGO))==null?void 0:z.detail},
placeholder:function(){var z;return((z=X())==null?void 0:z.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var z=X();if(z&&z.maxChars)return{maxChars:z.maxChars,errorMessage:z.maxCharsExceededErrorMessage||""}},
onInput:S})),_.B("div",{class:"ytFeedbackFormViewModelFooterText"},_.B(_.mw,{text:function(){return c().footerText}})))},"Df");
ObB.idomCompat=!0;_.f4(ObB,"yt-feedback-form-view-model",{props:{data:_.y$}});var zjB=_.y_(function(S){var c=S.data;var Q=function(){return c().flowStateKey||""},f=_.b9(iR8,Q),U=function(){return _.Y(f(),zG)},a=function(){if(_.u("enable_gff_accessibility_fix")){var X=!0,z;
if((z=U())==null?0:z.navigationEnabled){var x;_.kz((x=U())==null?void 0:x.navigationCommand);X=!1}z=Object.assign({},f(),{abuseReportFlowState:Object.assign({},U(),{isReportFormDirty:X})});_.Er(_.Ns("flowStateEntity",Q(),z))}else _.kz((X=U())==null?void 0:X.navigationCommand)};
return _.B("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.B("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.B(_.h8,{data:function(){return c().cancelButton}},{buttonViewModel:function(X){return _.B(_.Ze,{data:X.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:a})}}),_.B(_.h8,{data:function(){var X;
if(c().navButton){var z=Object;var x=z.assign,I=_.Y(c().navButton,_.Ya),n=((X=U())==null?0:X.navigationEnabled)||_.u("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",b,N;X=_.Y((b=U())==null?void 0:b.navigationCommand,_.Zc);b=(N=_.Y(X,_.rQ))==null?void 0:N.url;z={buttonViewModel:x.call(z,{},I,{state:n,iconName:b?"OPEN_IN_NEW":""})}}else z=void 0;return z}},{buttonViewModel:function(X){return _.B(_.Ze,{data:X.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:a})}})))},"Ef");
zjB.idomCompat=!0;_.f4(zjB,"yt-report-form-bottom-bar-view-model",{props:{data:_.y$}});var xRV=_.y_(function(S){var c=S.nextStep;return _.B("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.B("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.B(_.C4,{icon:function(){return c().iconName||""}})),_.B("div",null,_.B(_.mw,{text:function(){return c().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"Ff"),FAZ=_.y_(function(S){var c=S.data;
var Q,f=(Q=_.fl().resolve(_.QS(_.Lv)))==null?void 0:Q(),U=_.b9(_.fj,function(){return c().flowStateKey||""});
return _.B("yt-report-form-confirmation-page-view-model",{class:function(){var a;return((a=_.Y(U(),zG))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.B("div",{class:function(){var a;
return((a=_.Y(U(),zG))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.B(_.RW,{data:function(){return f&&c().imageDark?c().imageDark:c().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.B("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return c().confirmationHeader}),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.B(_.mw,{text:function(){return c().confirmationText}})),_.B("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.B(_.mw,{text:function(){return c().lawEnforcementText}})),
_.B("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return c().whatToExpectHeader}),_.B(_.K,{cond:function(){return c().nextSteps},
then:function(a){return _.B("div",null,_.B(_.lW,{each:a},function(X){return _.B(xRV,{nextStep:X})}))}}),_.B(_.K,{cond:function(){return c().legalReportText},
then:function(a){return _.B("div",null,_.B(_.mw,{text:a,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"Gf");
FAZ.idomCompat=!0;_.f4(FAZ,"yt-report-form-confirmation-page-view-model",{props:{data:_.y$}});var BCB=_.y_(function(S){var c=S.data;var Q=function(){var a;return((a=_.Y(c().inputBox,H9g))==null?void 0:a.maxChars)||500},f=function(){return c().flowStateKey||""},U=_.b9(_.fj,f);
S=_.jW(function(a){a=Object.assign({},U(),{flowFormState:{isValid:a.length<=Q()},abuseReportFlowState:{userComments:a,navigationEnabled:!(a.length>Q()),isReportFormDirty:!0}});_.P0().dispatch(_.TI("flowStateEntity",f(),a))},150);
_.wC(function(){var a=Object.assign({},U(),{flowFormState:{isValid:!0}});_.P0().dispatch(_.TI("flowStateEntity",f(),a))});
return _.B("yt-report-form-details-page-view-model",{class:function(){var a;return((a=_.Y(U(),zG))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.B("h1",{class:function(){var a;
return((a=_.Y(U(),zG))==null?void 0:a.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return c().detailsPageHeader}),_.B("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.B(_.mw,{text:function(){return c().bodyText}})),_.B("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.B(k$,{label:function(){var a;
return((a=_.Y(c().inputBox,H9g))==null?void 0:a.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var a;return{errorMessage:((a=_.Y(c().inputBox,H9g))==null?void 0:a.maxCharsExceededErrorMessage)||"",maxChars:Q()}},
onInput:S})))},"Hf");
BCB.idomCompat=!0;_.f4(BCB,"yt-report-form-details-page-view-model",{props:{data:_.y$}});var IJN=_.y_(function(S){var c=S.data;var Q=S.selectedKey;var f=S.onSelected;var U=S.groupName;var a=function(){return c().text},X=function(){return c().attributedText},z=function(){return c().subtext},x=function(){return c().attributedSubtext},I=_.B("div",{class:"ytRadioButtonItemViewModelLabel"},_.B(_.K,{cond:a,
then:function(){return _.B("div",null,a)}}),_.B(_.K,{cond:X,
then:function(){return _.B(_.mw,{text:X})}}),_.B(_.K,{cond:z,
then:function(){return _.B("div",{class:"ytRadioButtonItemViewModelSubText"},z)}}),_.B(_.K,{cond:x,
then:function(){return _.B("div",{class:"ytRadioButtonItemViewModelSubText"},_.B(_.mw,{text:x}))}})),n=function(){if(X()){var N;
return(N=X())==null?void 0:N.content}return a()},b=function(){if(x()){var N;
return(N=x())==null?void 0:N.content}return z()};
S={};return _.B("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.B(_.p5,{name:U,checked:function(){return!(Q==null||!Q()||c().key!==(Q==null?void 0:Q()))},
onChange:function(N){f==null||f(N.target,c(),U==null?void 0:U())},
labelRenderable:function(){return I},
ariaLabel:function(){return b()?n()+", "+b():n()},
className:_.n4((S.ytRadioButtonItemViewModelSubTitle=function(){return!!c().subtext},S))}))},"If");_.nCZ=_.y_(function(S){var c=S.data;var Q=S.onSelected;var f=S.selectedKey;var U=S.groupName;var a=function(){return(U==null?void 0:U())||c().key};
return _.B("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.B("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.B(_.h8,{data:function(){return c().radioButtons}},{radioButtonItemViewModel:function(X){return _.B(IJN,{data:X.data,
onSelected:Q,selectedKey:f,groupName:a})}})))},"Jf");var bb8=_.y_(function(S){var c=S.data;var Q=_.tc("div"),f=function(){return c().flowStateKey||""},U=_.b9(_.fj,f),a=function(){return _.Y(U(),zG)};
_.To(function(){var X,z;if(((X=a())==null?0:X.isReportFormDirty)&&((z=a())==null||!z.navigationEnabled)&&_.u("enable_gff_accessibility_fix")){var x;if(((x=a())==null?void 0:x.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var I;(I=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||I.scrollIntoView()}else{var n;(n=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||n.scrollIntoView()}}},"VvP2Ne");
return _.B("yt-report-form-reason-select-page-view-model",{class:function(){var X;return((X=a())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.B("h1",{class:function(){var X;
return((X=a())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return c().pageHeader}),_.B("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.B(_.mw,{text:function(){return c().bodyText}})),_.B("div",{class:function(){var X;
return((X=a())==null?void 0:X.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.B(_.K,{cond:function(){var X,z;
return((X=a())==null?void 0:X.isReportFormDirty)&&!((z=a())==null?0:z.navigationEnabled)&&_.u("enable_gff_accessibility_fix")},
then:function(){return _.B("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:Q},_.B(_.C4,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.B("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return c().emptyReasonSelectErrorMessage}))}}),_.B(_.nCZ,{data:function(){return _.Y(c().radioButtonGroup,_.MtB)},
onSelected:function(X,z){X=Object.assign({},U(),{abuseReportFlowState:Object.assign({},a(),{reasonKey:z.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:z.command})});_.Er(_.Ns("flowStateEntity",f(),X))},
selectedKey:function(){var X;return(X=a())==null?void 0:X.reasonKey},
groupName:"report-form-reason-select-page"})))},"Kf");
bb8.idomCompat=!0;_.f4(bb8,"yt-report-form-reason-select-page-view-model",{props:{data:_.y$}});var NCT=_.y_(function(S){var c=S.data;var Q,f=(Q=_.fl().resolve(_.QS(_.Lv)))==null?void 0:Q();return _.B("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.B("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.B(_.RW,{data:function(){return f&&c().imageDark?c().imageDark:c().image},
alt:""})),_.B("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.B("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return c().header}),_.B(_.mw,{text:function(){return c().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"Lf");
NCT.idomCompat=!0;_.f4(NCT,"yt-report-form-sign-in-page-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=function(){return c().titleSuperscript},f=function(){var n;
return(n=c().textInputPlaceholder)==null?void 0:n.content},U=function(n){n=n.target.value.trim();
var b=c().onUpdateText;b&&_.kz(b,{form:{userQuery:n}});c().userQuery=n},a=_.jW(function(n){U(n)},150),X=_.$d(function(n){a(n);
return!1}),z=_.$d(function(n){n.key==="Enter"&&(U(n),(n=c().onNextStepCommand)&&_.kz(n,{forceClickLogging:!0}));
return!1}),x=_.EH("yt-talk-to-recs-view-model"),I=function(){if(_.u("web_hide_explore_hub_until_user_navigates_back_to_home")){var n,b,N;
(N=(b=(n=x.value)==null?void 0:n.closest("ytd-flow-step-renderer"))==null?void 0:b.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||N.click()}};
return _.B("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:x},_.B("div",{class:"ytwTalkToRecsTopCornerButton","aria-label":"More options"},_.B(_.h8,{data:function(){return c().topCornerButton}},{buttonViewModel:_.Ze})),_.B("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.B("div",{class:"ytwTalkToRecsTitle",
role:"heading",tabindex:0},_.B(_.mw,{text:function(){return c().title}}),_.B(_.K,{cond:Q,
then:function(){return _.B("sup",{class:"ytwTalkToRecsSuperScript"},_.B(_.mw,{text:Q}))}})),_.B("div",{class:"ytwTalkToRecsSubtitle"},_.B(_.mw,{text:function(){return c().subtitle}})),_.B("div",{class:"ytwTalkToRecsChipsShelf"},_.B(_.h8,{data:function(){return c().answersShelf}},{chipsShelfViewModel:function(n){return _.B("div",{class:"ytwTalkToRecsChipsShelfViewModel"},_.B(_.UyJ,{data:n.data,
callback:I,enableSingleChipSelection:!0}))}})),_.B(_.K,{cond:function(){return c().showOpenTextInput&&!_.u("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.B("div",{class:"ytwTalkToRecsUserInputBox"},_.B("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:f,value:function(){return c().userQuery},
"on:input":X,"on:keyup":z,maxlength:200}))}})))},"Mf"),"yt-talk-to-recs-view-model",{props:{data:_.y$}});var MCO={sources:[{clientResource:{imageName:"CHECK"}}]};_.KAG=_.y_(function(S){var c=_.EH("div");S=_.V_(S,{error:void 0});var Q=S.data,f=S.error,U=S.onSelected;S=_.A(_.l8(function(){return Gcg(Q())}));
var a=S.next().value,X=S.next().value;kcE(Q,function(b){X(b);var N,l,H=ZnG((N=Q().options)==null?void 0:(l=N[b])==null?void 0:l.value,Q().type);U==null||U(H);c.value.focus()});
S=_.$d(function(){if(!Q().disabled){var b=Q(),N=a(),l=c.value;b.options&&(b=inZ(b.options,N,b.label),_.fl().resolve(_.CE).openSheet({viewModel:b},l))}});
var z=_.aSR(),x=function(){return!!f()},I=function(){return!!Q().disabled},n={};
n=_.n4("ytDropdownViewModelDropdownContainer",(n.ytDropdownViewModelDropdownContainerErrorBorder=x,n.ytDropdownViewModelDropdownContainerDisabled=I,n));return _.B("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.B("div",{class:n,"on:click":S,el:c,role:"combobox",tabindex:0,"on:keydown":z,"aria-invalid":x,"aria-disabled":I,"aria-describedby":function(){return x()?"dropdown-view-model-error":void 0}},_.B("div",{class:"ytDropdownViewModelText"},WW1(Q,x,a),gh8(Q,a)),_.B("div",{class:"ytDropdownViewModelChevronDown"},
_.B(_.C4,{icon:"CHEVRON_DOWN"}))),eK2(Q,f))},"Nf");_.f4(_.y_(function(S){var c=S.data;var Q=function(U){var a=dkT(c());a.videoMetadata||(a.videoMetadata={});a.videoMetadata.sponsorshipsMetadata||(a.videoMetadata.sponsorshipsMetadata={});a.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(U)},f=function(U){var a=dkT(c());
a.scheduledRedirectMetadata||(a.scheduledRedirectMetadata={});a.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(U)};
return _.B("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.B("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.B("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.B(_.mw,{text:function(){return c().title}}),_.B(_.C4,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.B(_.mw,{text:function(){return c().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.B(_.h8,{data:function(){return c().tierChoices}},{dropdownViewModel:function(U){return _.B("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.B(_.KAG,{data:U.data,
onSelected:Q}))}}),_.B(_.h8,{data:function(){return c().startTimeChoices}},{dropdownViewModel:function(U){return _.B("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.B(_.KAG,{data:U.data,
onSelected:f}))}}),_.B(_.mw,{text:function(){return c().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.B("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.B(_.h8,{data:function(){return c().scheduleButton}},{panelFooterViewModel:_.e3})))},"Of"),"ytfz-schedule-fanzone-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;S=S.className===void 0?"":S.className;var Q=_.b9(iR8,function(){return c().flowStateEntityKey||""}),f={};
f=_.n4("ytFlowBottomBarViewModelFlowBottomBarButtons",(f.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},f));
var U={},a=_.n4("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",f,(U.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},U.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},U));
U={};var X=_.n4("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",f,(U.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},U.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},U));
f={};f=_.n4("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},f.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return c().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
f));
S=_.n4("ytFlowBottomBarViewModelHost",S);return _.B("yt-flow-bottom-bar-view-model",{class:S},_.B(_.K,{cond:function(){var z;return(z=c())==null?void 0:z.textSection},
then:function(z){return _.B("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.B(_.mw,{text:z}))}}),_.B("div",{class:f},_.B(_.h8,{data:function(){return c().secondaryButton}},{buttonViewModel:function(z){return _.B(_.Ze,{data:z.data,
className:X})}}),_.B(_.h8,{data:function(){return c().primaryButton}},{buttonViewModel:function(z){return _.B(_.Ze,{data:z.data,
className:a,buttonOverrides:function(){var x;return{disabled:!((x=Q())==null||!x.primaryButtonDisabled)}}})}})))},"Pf"),"yt-flow-bottom-bar-view-model",{props:{data:_.y$,
className:_.Qn}});var $RU="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),rw=function(){var S=_.W.apply(this,arguments)||this;S.enableScrollingFix=!0;S.bottomBar=!1;S.hideBottomBar=!1;S.fitContent=!1;return S};
_.C(rw,_.W);_.J=rw.prototype;_.J.ready=function(){_.u("enable_pdp_icon_prefetch")&&_.YhG(_.fl().resolve(_.zu),0,$RU)};
_.J.focus=function(S){this.topBar?_.Vk(this.topBar,S):this.paperDialog.focus(S)};
_.J.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16894_scroller&&(this.JSC$16894_scroller.dialogElement=this.paperDialog,this.JSC$16894_scroller.attached&&typeof this.JSC$16894_scroller.attached==="function"&&this.JSC$16894_scroller.attached())};
_.J.onDataChanged=function(){var S;this.fitContent=!((S=this.data)==null||!S.fitContent);var c;this.bottomBar=!((c=this.data)==null||!c.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.J.onProgressChanged=function(){var S,c,Q=((c=(S=this.data)==null?void 0:S.progress)!=null?c:0)*100;this.progressElement.style.width=Q+"%"};
_.J.isProgressHidden=function(){var S;return!((S=this.data)==null?0:S.progress)};
_.J.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(S){return _.u("enable_wiz_next_lp2_msof")&&S&&!S.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.Rh.Object.defineProperties(rw.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var S;return _.u("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.Y((S=this.data)==null?void 0:S.content,TF1)}}});
rw.prototype.onProgressChanged=rw.prototype.onProgressChanged;rw.prototype.onDataChanged=rw.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],rw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rw.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rw.prototype,"enableScrollingFix",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rw.prototype,"bottomBar",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rw.prototype,"hideBottomBar",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],rw.prototype,"containsExploreHub",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rw.prototype,"fitContent",void 0);_.d([_.nU("#progress"),_.P("design:type",HTMLElement)],rw.prototype,"progressElement",void 0);
_.d([_.nU("#scroller"),_.P("design:type",Object)],rw.prototype,"JSC$16894_scroller",void 0);_.d([_.nU("ytd-flow-top-bar-renderer"),_.P("design:type",HTMLElement)],rw.prototype,"topBar",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rw.prototype,"onDataChanged",null);_.d([_.B0("data.progress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rw.prototype,"onProgressChanged",null);
_.d([_.e({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],rw);
_.k(rw,"ytd-flow-step-renderer",function(){if(ct8!==void 0)return ct8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ct8=S},{mode:1});var up0=function(S){this.resolveCommand=S;this.steps={}},jkE=function(S,c){c=_.A(c||[]);
for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=Object.values(Q)[0],U=void 0;if((U=f)==null?0:U.stepId)S.steps[f.stepId]=Q}},CWU=function(S,c){var Q,f,U,a,X;
return _.O(function(z){if((Q=S.state)==null||!Q.currentStepId)return z.return(void 0);f=lJ0(S);if(!f)return z.return(YpZ(S));if(U=_.Y(f,_.qhV)){var x;((x=U.screenLoggingData)==null?0:x.screenVeType)&&_.X2(_.Kv(),U.screenLoggingData.screenVeType);((a=U)==null?0:a.onStepStartCommand)&&S.resolveCommand((X=U)==null?void 0:X.onStepStartCommand,{})}if(U&&c){x=U;var I,n,b,N;((I=c.flowLoggingData)==null?0:I.eventNamespace)&&((n=x.flowEventData)==null?0:n.eventType)&&((b=x.flowEventData)==null?0:b.eventMetadata)&&
((N=c.flowLoggingData)==null?0:N.flowType)&&(I=_.zW(c.flowLoggingData.eventNamespace,x.flowEventData.eventType,x.flowEventData.eventMetadata),_.xk(_.FU(),I,c.flowLoggingData.flowType));c.steps&&!c.steps.includes(f)&&c.steps.push(f)}return z.return(f)})};
up0.prototype.back=function(){var S;(S=this.state)!=null&&S.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
up0.prototype.handleUpdateFlowCommand=function(S){S.steps&&jkE(this,S.steps);S.entityUpdateCommand&&this.resolveCommand(S.entityUpdateCommand,{});S.flowContinuationCommand&&(S=S.flowContinuationCommand)&&(this.getFlowContinuationCommand=S);this.awaitFlowContinuation&&(this.awaitFlowContinuation(lJ0(this)),this.awaitFlowContinuation=void 0)};
up0.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var YpZ=function(S){return _.O(function(c){return S.getFlowContinuationCommand?c.return(new Promise(function(Q){S.awaitFlowContinuation=Q;S.getFlowContinuationCommand&&S.resolveCommand(S.getFlowContinuationCommand,{flow_state:S.state})})):c.return(Promise.resolve(void 0))})},lJ0=function(S){var c;
if((c=S.state)!=null&&c.currentStepId)return S.steps[S.state.currentStepId]};var dw=function(){var S=_.W.apply(this,arguments)||this;S.flowState=new up0(function(c,Q){Q=Q===void 0?{}:Q;_.BI.instance.resolveCommand(c,{form:{form:Q,element:S.hostElement}})});
S.initialState=!0;S.isLoading=!1;S.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 S};
_.C(dw,_.W);_.J=dw.prototype;_.J.onPopupClosed=function(S){S&&this.hostElement!==S.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.J.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"}}}};
_.J.focus=function(S){var c=this;_.gM(function(){var Q=_.Ur(c.hostElement).querySelector("ytd-flow-step-renderer");(Q==null?0:Q.topBar)?Q.focus(S):c.topBar&&_.Vk(c.topBar,S)},1)};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.J.computeTopBarHidden=function(S){var c;return!((c=_.Y(S,_.qhV))==null||!c.topBarOverride)};
_.J.dataChanged=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1){((c=S.data)==null?0:c.steps)&&jkE(S.flowState,S.data.steps);if((Q=S.data)==null?0:Q.flowContinuationCommand){var U=S.flowState,a=S.data.flowContinuationCommand;a&&(U.getFlowContinuationCommand=a)}return _.F(f,CWU(S.flowState,S.data),2)}S.currentFlowStep=f.yieldResult;_.IN(f)})};
_.J.flowChanged=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1){if(!S.flow)return Q.return();S.flowState.state=S.flow;S.isLoading=!0;return _.F(Q,CWU(S.flowState,S.data),2)}c=Q.yieldResult;if(!c||S.flow.isLoading)return Q.return();S.currentFlowStep=c;S.initialState=!1;S.isLoading=!1;S.autofocusAndRefit();_.IN(Q)})};
_.J.autofocusAndRefit=function(){var S=this,c=_.fl().resolve(_.QS(_.zy)),Q=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),f=document.querySelector("yt-report-form-confirmation-page-view-model"),U=document.querySelector("yt-report-form-details-page-view-model"),a=document.querySelector("yt-report-form-reason-select-page-view-model"),X=document.querySelector("yt-contributor-zero-state-view-model"),
z=document.querySelector("yt-structured-context-note-view-model"),x=document.querySelector("yt-note-view-model");(!Q&&c&&c.isKeyBoardInUse()||f||!Q&&U||!Q&&a||X||z||x)&&_.RR(this.hostElement);_.tO(this,function(){_.Az(S.hostElement,"yt-refit")})};
_.J.handleUpdateFlowCommand=function(S){this.data&&(S=_.Y(S,hxZ),S.targetId===this.data.targetId&&(S.flowContinuationCommand&&(this.data.flowContinuationCommand=S.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(S),this.autofocusAndRefit()))};
_.J.handleFlowNextStepCommand=function(S){this.data&&this.flow&&this.flow.key&&(S=_.Y(S,DfV),S.targetId===this.data.targetId&&(S=S.stepId||"",this.ytdReduxBehavior.dispatch(_.TI("flowStateEntity",this.flow.key,{currentStepId:S,stepIdStack:(this.flow.stepIdStack||[]).concat(S)}))))};
_.J.handleFlowPrevStepCommand=function(S){if(this.data&&this.flow&&this.flow.key&&(S=_.Y(S,p1G),S.targetId===this.data.targetId)){var c=[].concat(_.Hs(this.flow.stepIdStack||[]));c.length>1?(c.pop(),this.ytdReduxBehavior.dispatch(_.TI("flowStateEntity",this.flow.key,{currentStepId:c[c.length-1],stepIdStack:c}))):S.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(S.onFirstStepCommand)}};
_.J.handleYpcCancelRecurrenceCommand=function(S){if(this.data&&this.flow&&this.flow.key&&(S=_.Y(S,i9E),S.targetId===this.data.targetId&&S.endpointCommand)){var c=_.Y(this.flow,Z9V);c&&_.Y(S.endpointCommand,_.F6h)&&(_.Y(S.endpointCommand,_.F6h).feedbackData=c.surveyFeedback);this.ytComponentBehavior.resolveCommand(S.endpointCommand)}};
_.J.handlePartialUpdateFlowStateEntity=function(S){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.TI("flowStateEntity",this.flow.key,S,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
dw.prototype.flowChanged=dw.prototype.flowChanged;dw.prototype.dataChanged=dw.prototype.dataChanged;dw.prototype.onPopupClosed=dw.prototype.onPopupClosed;_.d([_.p(_.st),_.P("design:type",Object)],dw.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],dw.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],dw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],dw.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dw.prototype,"initialState",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dw.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Object)],dw.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],dw.prototype,"currentFlowStep",void 0);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],dw.prototype,"onPopupClosed",null);_.d([_.Z({selectorArgs:["data.flowStateEntityKey"],selector:iR8}),_.P("design:type",Object)],dw.prototype,"flow",void 0);_.d([_.nU("ytd-flow-top-bar-renderer"),_.P("design:type",HTMLElement)],dw.prototype,"topBar",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],dw.prototype,"dataChanged",null);_.d([_.$n("flow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],dw.prototype,"flowChanged",null);_.d([_.e({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],dw);
_.HbV=_.aW()(dw,"ytd-flow-root-renderer",function(){if(SjN!==void 0)return SjN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return SjN=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var DR8;var X8=null;_.f4(_.y_(function(S){return _.B("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.B("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.B(_.mw,{text:function(){return S.data().text}}),_.B("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"Qf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.y$}});var pY8=_.y_(function(S){var c=S.playerControlsProps;var Q=S.isShortsPage;return _.B("yt-bigboard",null,_.B(_.K,{cond:function(){return c().isDragging},
then:function(){return _.B("div",{class:"ytBigboardStoryboardHost"},_.B(_.zQV,{progressBarProps:c,isShortsPage:Q}))}}))},"Rf");
pY8.idomCompat=!0;_.vz={ACCOUNT_LABEL:OB("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:OB("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:OB("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:OB("AD_BADGE_HINT"),AD_BADGE_TEXT:OB("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:OB("ALL_CHANNELS_LABEL"),AMBIENT_MODE:OB("AMBIENT_MODE"),AMBIENT_MODE_OFF:OB("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:OB("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:OB("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:OB("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:OB("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:OB("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:OB("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:OB("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:OB("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:OB("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:OB("AUTOPLAY_UP_NEXT_IN"),AUTO_ZOOM:OB("AUTO_ZOOM","Auto zoom"),BACK:OB("BACK"),CANCEL:OB("CANCEL"),CHANNEL_SWITCHER_LABEL:OB("CHANNEL_SWITCHER_LABEL"),CLOSE:OB("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:OB("CLOSED_CAPTIONS_DISABLED"),
CLOSED_CAPTIONS_OFF:OB("CLOSED_CAPTIONS_OFF"),CLOSED_CAPTIONS_ON:OB("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:OB("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:OB("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:OB("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:OB("COMMENT_MODAL_CONTENT"),CONFIRM_OK:OB("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:OB("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:OB("COPIED_TO_CLIPBOARD"),COPY:OB("COPY"),COPY_DEBUG_INFO:OB("COPY_DEBUG_INFO"),COPY_EMBED_CODE:OB("COPY_EMBED_CODE"),
COPY_LINK_LABEL:OB("COPY_LINK_LABEL"),COPY_VIDEO_URL:OB("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:OB("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:OB("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:OB("DELETE_FROM_DOWNLOADS"),DIALOG:OB("DIALOG"),DONE:OB("DONE"),DOWNLOAD:OB("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:OB("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:OB("FLAG_CONFIRM"),FLAG_CONTENT:OB("FLAG_CONTENT"),FLAG_LABEL:OB("FLAG_LABEL"),FLAG_TITLE:OB("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:OB("FULLSCREEN_GENERIC_ERROR"),
GOOGLE_COMPANY:OB("GOOGLE_COMPANY"),HIDE_PLAYER_CONTROLS:OB("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:OB("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:OB("HIDE_SEARCH_FILTERS_LABEL"),HOME:OB("HOME","Home"),INVALID_RESPONSE_RECEIVED:OB("INVALID_RESPONSE_RECEIVED"),LIBRARY:OB("LIBRARY","Library"),LISTENING:OB("LISTENING"),LOADING:OB("LOADING"),LONG_PRESS_MIC_TO_SPEAK:OB("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:OB("LOOP"),MENU_DESKTOP:OB("MENU_DESKTOP"),
MENU_EXIT:OB("MENU_EXIT"),MENU_FEEDBACK:OB("MENU_FEEDBACK"),MENU_HELP:OB("MENU_HELP"),MENU_IMPRESSUM:OB("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:OB("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:OB("MENU_SETTINGS"),MENU_SIGN_IN:OB("MENU_SIGN_IN"),MENU_TITLE:OB("MENU_TITLE"),MENU_YOUR_DATA:OB("MENU_YOUR_DATA"),MORE_INFO:OB("MORE_INFO"),MORE_OPTIONS:OB("MORE_OPTIONS"),MUTE_VOLUME:OB("MUTE_VOLUME"),NEW_PLAYLIST:OB("NEW_PLAYLIST"),NEXT_VIDEO:OB("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:OB("NOTIFICATION_ERROR_MESSAGE"),
NOT_FOUND_CTA:OB("NOT_FOUND_CTA"),NOT_FOUND_MESSAGE:OB("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:OB("NOT_FOUND_TITLE"),NO_DOWNLOADS:OB("NO_DOWNLOADS"),NO_MIC_INPUT:OB("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:OB("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:OB("OOPS_MESSAGE"),OPEN_APP:OB("OPEN_APP"),OPEN_YOUTUBE:OB("OPEN_YOUTUBE"),PAUSE:OB("PAUSE"),PLAY:OB("PLAY"),PLAYER_CAPTION:OB("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:OB("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:OB("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:OB("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:OB("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:OB("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:OB("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:OB("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:OB("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:OB("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:OB("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:OB("PLAYER_MINIMIZE"),PLAYER_NEXT:OB("PLAYER_NEXT"),PLAYER_PAUSE:OB("PLAYER_PAUSE"),PLAYER_PLAY:OB("PLAYER_PLAY"),
PLAYER_PREVIOUS:OB("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:OB("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:OB("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:OB("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:OB("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:OB("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:OB("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:OB("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:OB("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:OB("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:OB("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:OB("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:OB("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:OB("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:OB("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:OB("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:OB("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:OB("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:OB("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:OB("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:OB("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:OB("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:OB("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:OB("PLAY_ALL"),PLEASE_FIX_ERRORS:OB("PLEASE_FIX_ERRORS"),PREMIUM_BADGE_LABEL:OB("PREMIUM_BADGE_LABEL","Premium"),PREVIOUS_VIDEO:OB("PREVIOUS_VIDEO"),PRIVACY_POLICY:OB("PRIVACY_POLICY"),RELOAD:OB("RELOAD"),REQUIRED_LABEL:OB("REQUIRED_LABEL"),SAVE_PLAYLIST:OB("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:OB("SCRUB_SLIDE_USER_EDU"),SEARCH:OB("SEARCH","Search"),
SEARCH_APPEND_LABEL:OB("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:OB("SEARCH_CHANNEL"),SEARCH_CLEAR_LABEL:OB("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:OB("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:OB("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:OB("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:OB("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:OB("SEARCH_FILTERS_LABEL"),
SEARCH_LABEL:OB("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:OB("SEARCH_PPP_PLACEHOLDER_TEXT"),SEEK_SLIDER:OB("SEEK_SLIDER"),SETTINGS_LABEL:OB("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:OB("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:OB("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:OB("SHOW_LESS"),SHOW_MORE:OB("SHOW_MORE"),SHOW_PLAYER_CONTROLS:OB("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:OB("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:OB("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:OB("SIGN_IN_LABEL"),
SIGN_IN_ON_WEB:OB("SIGN_IN_ON_WEB"),STABLE_VOLUME:OB("STABLE_VOLUME"),STABLE_VOLUME_OFF:OB("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:OB("STABLE_VOLUME_ON"),STATS_FOR_NERDS:OB("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:OB("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:OB("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:OB("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL:OB("SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL","View image source"),SUGGESTION_THUMBNAIL_LABEL:OB("SUGGESTION_THUMBNAIL_LABEL"),
TERMS_OF_SERVICE:OB("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:OB("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:OB("TIMESTAMP_SECONDS"),TOGGLE_OFF:OB("TOGGLE_OFF"),TOGGLE_ON:OB("TOGGLE_ON"),TRENDING:OB("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:OB("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:OB("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:OB("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:OB("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:OB("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),
TURN_OFF_AUTOPLAY_DIALOG_TITLE:OB("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:OB("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:OB("VIDEO_LINK_LABEL")};var hjT=_.y_(function(S){var c=S.playerApi;S=_.EH("button",function(f){_.Gu(f,36843)});
var Q=OB("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"});return _.B("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.B("button",{el:S,class:"ytPlayerControlsJumpForwardButtonButton",title:Q,"aria-label":Q,"on:click":_.$d(function(){_.Wp(36843);c&&c().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1})},_.B("span",null,_.B(_.C4,{icon:"FAST_FORWARD"}))))},"Sf");var qpg=_.y_(function(S){var c=S.appApi;S=_.EH("button",function(f){_.Gu(f,62946)});
var Q=OB("OPEN_IN_MINIPLAYER");return _.B("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.B("button",{el:S,class:"ytMiniplayerButtonButton",title:Q,"aria-label":Q,"on:click":_.$d(function(){_.Wp(62946);var f,U;(U=(f=c()).openInMiniplayer)==null||U.call(f);return!1})},_.B(_.C4,{icon:"PICTURE_IN_PICTURE",
active:!1})))},"Tf");var TC1=_.y_(function(S){var c=S.playerApi;S=_.EH("button",function(a){_.Gu(a,142812)});
var Q=_.A(_.ny(!1,void 0,"I3VCyb")),f=Q.next().value,U=Q.next().value;Q=function(){return OB("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(f()?1:2)})};
return _.B("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.B("button",{el:S,class:"ytPlaybackSpeedButtonButton",title:Q,"aria-label":Q,"on:click":_.$d(function(){_.Wp(142812);if(c){var a=c(),X=f();a.setPlaybackRate(X?1:2);U(!f())}return!1})},_.B("span",null,_.B(_.C4,{icon:function(){return f()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"Uf");var wY8=_.y_(function(S){var c=S.title;var Q=S.ariaLabel;var f=S.icon;var U=S.command;var a=S.veType;S=_.EH("button",function(X){a&&_.Gu(X,a())});
return _.B("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.B("button",{el:S,class:"ytdThumbnailOverlayButtonButton",title:c,"aria-label":Q,"on:click":_.$d(function(){a&&_.Wp(a());U&&_.fl().resolve(_.U8).resolveCommand(U())})},_.B(_.C4,{icon:f})))},"Vf");var S3="";var skZ=_.y_(function(S){var c=S.playerControlsProps,Q=S.onClickFn;S=_.uQ(function(){var a=c(),X=-1;a.captionsAvailable&&(X=a.captionsEnabled?1:0);return X},void 0,"WecR8e");
var f=_.uQ(function(){var a=c();return a.captionsAvailable?_.K8(a.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.K8("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),U=_.uQ(function(){var a=c();
a=a.captionsAvailable?a.captionsEnabled:void 0;return a},void 0,"Q17ly");
return _.B("yt-closed-captions-toggle-button",null,_.B(_.fW2,{captionIconType:S,ariaLabel:f,ariaPressed:U,onClick:function(a){var X=c();if(X.captionsAvailable){var z=X.playerApi;if(z){var x=X.playerApi;if(x){var I=S3;if(I){x=x.getOption("captions","track");var n;S3=(n=x?x.displayName:null)!=null?n:I}else _.Zi(x)?(I=_.Vbo(x),S3=I.length?(n=ZRE(I))?n.displayName:I[0].displayName:""):S3=""}GC0(z);_.u("mweb_disable_set_state_captions_killswitch")&&X.setState({captionsEnabled:!X.captionsEnabled})}}var b,
N;(N=(b=X.appApi).showCaptionsToggleToast)==null||N.call(b,X);Q==null||Q(a)},
isOverlay:!0}))},"Wf");var MGV=_.y_(function(S){var c=S.data;return _.B("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.B(_.y8,{data:function(){return{type:16,text:_.D8Y(c().label)}}}))},"Xf");var ibN=_.y_(function(S){var c=_.n4("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return S.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return S.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return S.size()==="small"?S.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
S.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.B("animated-seek-arrows",{class:_.n4("ytPlayerControlsAnimatedSeekArrowsHost")},_.B("span",{class:c}),_.B("span",{class:c}),_.B("span",{class:c}))},"Yf");
ibN.idomCompat=!0;var ZbE=_.y_(function(){var S=_.K8("PLAYER_SECONDS",{seconds_placeholder:"30"}),c=_.A(_.ny(!1,void 0,"Yj8msb")),Q=c.next().value,f=c.next().value,U=_.A(_.ny(!1,void 0,"r9Z50e"));c=U.next().value;var a=U.next().value;U={};var X=_.n4("jumpForwardOverlayOverlay",(U.jumpForwardOverlayOverlayHidden=c,U));_.wC(function(){var z=null,x=null,I=function(){z!==null&&_.TV().cancelJob(z);x!==null&&_.TV().cancelJob(x);a(!0);f(!0);_.Xi(_.TV(),function(){a(!1)});
z=_.Xi(_.TV(),function(){a(!0);x=_.Xi(_.TV(),function(){f(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",I);_.wX(function(){window.removeEventListener("jump-forward-clicked",I)})});
return _.B("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.B(_.K,{cond:Q,then:function(){return _.B("div",{class:X},_.B(ibN,{direction:1,size:"large"}),_.B("div",null,S))}}))},"Zf");var G_1=_.vz.MUTE_VOLUME,WAO=_.vz.UNMUTE_VOLUME,gCU=_.y_(function(S){var c=S.muteIconType;var Q=S.onClick;var f=S.useOutlineIcon;var U=S.useDelhiIcons;S=_.EH("button",function(z){_.Gu(z,28662)});
var a=function(){var z=c(),x=f==null?void 0:f(),I=U==null?void 0:U(),n="",b="";switch(z){case -1:case 0:n=x?"VOLUME_OFF":I?"VOLUME_OFF_DELHI_PLAYER":"VOLUME_OFF_FILLED";b=WAO;break;case 1:n=x?"VOLUME_UP_OUTLINE":I?"VOLUME_UP_DELHI_PLAYER_FILLED":"VOLUME_UP_FILLED";b=G_1;break;case 2:n=x?"VOLUME_DOWN_OUTLINE":I?"VOLUME_DOWN_DELHI_PLAYER_FILLED":"VOLUME_DOWN_FILLED";b=G_1;break;default:_.OZ(z)}return{iconName:n,ariaLabel:b}},X=function(){return a().ariaLabel};
return _.B("ytm-mute-button",{class:"ytmMuteButtonHost"},_.B("button",{el:S,class:"ytmMuteButtonButton",title:X,"aria-label":X,"on:click":_.$d(function(z){_.Wp(28662);Q==null||Q(z);return!1})},_.B("span",null,_.B(_.C4,{icon:function(){return a().iconName}}))))},"$f");var ejZ=_.y_(function(S){var c=S.volumeProps;var Q=S.onClickFn;var f=S.useOutlineIcon;var U=S.useDelhiIcons;return _.B("yt-mute-toggle-button",null,_.B(gCU,{muteIconType:function(){var a=c();return a.volumeMuted||a.volume===0?0:a.volume>50?1:2},
onClick:function(a){var X=c().playerApi;X&&(X.isMuted()?X.unMute():X.mute(!1));Q==null||Q(a)},
useOutlineIcon:function(){return!(f==null||!f())},
useDelhiIcons:function(){return!(U==null||!U())}}))},"ag");
ejZ.idomCompat=!0;var k_U=_.y_(function(S){var c=S.data;var Q=_.EH("ytm-paid-content-overlay-renderer");return _.B("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:Q,"on:animationend":_.$d(function(){Q.value.classList.add("ytmPaidContentOverlayHidden");return!1})},_.B(_.xJ,{command:function(){return c().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.B(_.K,{cond:function(){var f;return(f=c().icon)==null?void 0:f.iconType},
then:function(){return _.B("span",null,_.B(_.C4,{icon:function(){var f;return(f=c().icon)==null?void 0:f.iconType}}))}}),_.B("div",{class:"ytmPaidContentOverlayText"},_.B(_.mw,{text:function(){return c().text}})),_.B(_.K,{cond:function(){return c().navigationEndpoint},
then:function(){return _.B(_.C4,{icon:"CHEVRON_RIGHT"})}})))},"bg");
k_U.idomCompat=!0;var Uf8=[].concat(_.Hs([{register:function(S){var c=I31(S),Q;(Q=S().playerApi)==null||Q.addEventListener("onVolumeChange",c);return function(){}}},
{register:function(S){var c=nxG(S);S=S().playerApi;S==null||S.addEventListener("captionschanged",c);S==null||S.addEventListener("captionssettingschanged",c);S==null||S.addEventListener("onCaptionsTrackListChanged",c);return function(){}}},
{register:function(S){if(!_.u("mweb_screenreader_accessible_player"))return function(){};
var c=b90(S),Q=document.querySelector("video");Q==null||Q.addEventListener("touchend",c);return function(){Q==null||Q.removeEventListener("touchend",c)}}},
{register:function(S){if(!_.u("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var c=b90(S),Q=document.querySelector("video");Q==null||Q.addEventListener("focus",c);return function(){Q==null||Q.removeEventListener("focus",c)}}}]),[{register:function(S){var c=zxV(S),Q;
(Q=S().playerApi)==null||Q.addEventListener("onStateChange",c);return function(){}}},
{register:function(S){var c=xfV(S),Q;(Q=S().playerApi)==null||Q.addEventListener("onPlaybackRateChange",c);return function(){}}},
{register:function(S){var c=F28(S),Q;(Q=S().playerApi)==null||Q.addEventListener("onVideoDataChange",c);return function(){}}},
{register:function(S){var c=BFT(S),Q,f;(Q=S())==null||(f=Q.playerApi)==null||f.addEventListener("onVideoProgress",c);return function(){}}}]);var rSE=_.y_(function(S){var c=S.data;var Q=function(){return _.K8("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+c().playbackRate})};
return _.B(_.K,{cond:function(){return c().playbackRate&&c().playbackRate!==1},
then:function(){return _.B("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.B("div",{class:"ytPlaybackRateOverlayOverlay"},_.B(ibN,{direction:1,size:"small"}),_.B("div",{class:"ytPlaybackRateOverlayLabel"},Q)))}})},"cg");var dRp=_.y_(function(S){var c=S.data;return _.B("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.B(_.K,{cond:function(){var Q,f=(Q=c())==null?void 0:Q.playerResponse,U;return f==null?void 0:(U=f.paidContentOverlay)==null?void 0:U.paidContentOverlayRenderer},
then:function(Q){return _.B(k_U,{data:Q})}}))},"eg"),vCV=_.y_(function(S){var c=S.props;
var Q=S.data;var f=S.options;var U=function(){var I,n,b,N;return(I=Q())==null?void 0:(n=I.playerResponse)==null?void 0:(b=n.playerConfig)==null?void 0:(N=b.inlinePlaybackConfig)==null?void 0:N.showAudioControls},a=function(){var I,n;
if(U()&&((I=f())==null?void 0:(n=I.additionalButton)==null?void 0:n.button)!==void 0){var b,N,l;I=(b=Q())==null?void 0:(N=b.playerApi)==null?void 0:(l=N.getSize())==null?void 0:l.height;if(!(I===void 0||I<180)){var H,q;return(H=f())==null?void 0:(q=H.additionalButton)==null?void 0:q.button}}},X=function(){var I,n;
return(I=f())==null?void 0:(n=I.additionalButton)==null?void 0:n.thumbnailOverlayButtonRenderers},z=function(){var I,n;
return(I=f())==null?void 0:(n=I.additionalButton)==null?void 0:n.thumbnailOverlayButtonViewModels},x=function(){var I=[_.B(ejZ,{volumeProps:c}),
_.B(skZ,{playerControlsProps:c})];a()===1&&I.push(_.B(hjT,{playerApi:function(){return c().playerApi}}));
a()===2&&I.push(_.B(qpg,{appApi:function(){return c().appApi}}));
a()===3&&I.push(_.B(TC1,{playerApi:function(){return c().playerApi}}));
var n=X();if(a()===4&&n){n=_.A(n);for(var b=n.next(),N={};!b.done;N={tooltip$jscomp$2:void 0,ariaLabel$jscomp$20:void 0,icon$jscomp$52:void 0,command$jscomp$569:void 0},b=n.next()){b=b.value;N.tooltip$jscomp$2=b.tooltip;var l=void 0,H=void 0;N.ariaLabel$jscomp$20=((l=b.accessibility)==null?void 0:(H=l.accessibilityData)==null?void 0:H.label)||N.tooltip$jscomp$2;l=void 0;N.icon$jscomp$52=(l=b.icon)==null?void 0:l.iconType;N.command$jscomp$569=b.command;N.tooltip$jscomp$2&&N.ariaLabel$jscomp$20&&N.icon$jscomp$52&&
I.push(_.B(wY8,{title:function(q){return function(){return q.tooltip$jscomp$2}}(N),
ariaLabel:function(q){return function(){return q.ariaLabel$jscomp$20}}(N),
icon:function(q){return function(){return q.icon$jscomp$52}}(N),
command:function(q){return function(){return q.command$jscomp$569}}(N)}))}}n=z();
if(a()===4&&n)for(n=_.A(n),b=n.next(),N={};!b.done;N={tooltip$jscomp$3:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$53:void 0,command$jscomp$570:void 0},b=n.next())b=b.value,N.tooltip$jscomp$3=b.title,N.ariaLabel$jscomp$21=b.accessibilityText||N.tooltip$jscomp$3,N.icon$jscomp$53=b.iconName,N.command$jscomp$570=_.Gv(b.onTap),N.tooltip$jscomp$3&&N.ariaLabel$jscomp$21&&N.icon$jscomp$53&&I.push(_.B(wY8,{title:function(q){return function(){return q.tooltip$jscomp$3}}(N),
ariaLabel:function(q){return function(){return q.ariaLabel$jscomp$21}}(N),
icon:function(q){return function(){return q.icon$jscomp$53}}(N),
command:function(q){return function(){return q.command$jscomp$570}}(N)}));
return I};
return _.B(_.K,{cond:U,then:function(){return _.B("div",{class:"ytInlinePlayerControlsTopRightControls"},_.B(_.lW,{each:x},function(I){return _.B("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.B("div",{class:"ytInlinePlayerControlsButtonIcon"},I))}))}})},"fg"),ECE=_.y_(function(S){var c=S.props;
var Q=S.data;var f=S.options;S={};S=_.n4("ytInlinePlayerControlsBottomRightControls",(S.ytInlinePlayerControlsBottomRightControlsHidden=function(){var U;return K2N(Q(),f())&&((U=f())==null?void 0:U.insetProgressBar)&&(c().isHovering||c().isDragging)},S));
return _.B("div",{class:S},_.B(PWB,{data:Q}),_.B(_.K,{cond:function(){var U;return!((U=f())==null?0:U.hideTimeDisplay)},
then:function(){return _.B(LA8,{props:c,data:Q})}}))},"gg"),PWB=_.y_(function(S){var c=S.data;
return _.B(_.h8,{data:function(){var Q;return co8((Q=c())==null?void 0:Q.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:MGV})},"hg"),LA8=_.y_(function(S){var c=S.props;
var Q=S.data;return _.B(_.K,{cond:function(){return c().isLive},
then:function(){return _.B(tGT,null)},
else:function(){return _.B(VGE,{props:c,data:Q})}})},"ig"),VGE=_.y_(function(S){var c=S.props;
var Q=S.data;var f=_.uQ(function(){var U;return f3Z((U=Q())==null?void 0:U.thumbnailOverlays)},void 0,"kUmuA");
return _.B("div",{class:_.n4("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.vz.PLAYER_TIME_ELAPSED+" "+_.tvZ(c().playedTime)}},_.B(_.y8,{data:function(){var U=_.tvZ(c().videoDuration-c().playedTime);
return Object.assign({},{type:16,text:U},f())}}))},"jg"),tGT=_.y_(function(){var S=_.n4("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge");
return _.B("div",{class:S},_.B(_.y8,{data:{type:17,text:_.vz.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"kg"),RjN=_.y_(function(S){var c=S.props;
var Q=S.data;var f=S.options;return _.B(_.bhB,{progressBarProps:c,config:function(){var U,a=_.Y((U=Q())==null?void 0:U.multiMarkersPlayerBar,_.Wxh),X;U=((X=f())==null?0:X.insetProgressBar)?2:1;var z;X=(z=f())==null?void 0:z.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:U,chapterData:a,isInlinePlayback:!0,doSeekOnClick:X,playheadDotBehavior:X?1:0}}})},"lg");_.f4(_.y_(function(S){var c=S.data;var Q=S.appApi;var f=S.options;var U=O9p(c,NFN(Q));S={};Q={};return _.B("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.B("div",{class:_.n4("ytInlinePlayerControlsDarkenedOverlay",(S.ytInlinePlayerControlsDarkenedOverlayShow=function(){return U().isHovering},S))}),_.B(ZbE,null),_.B(rSE,{data:U}),_.B(dRp,{data:c}),_.B(pY8,{playerControlsProps:U,
isShortsPage:!1}),_.B("div",{class:_.n4((Q.ytInlinePlayerControlsControlsHidden=function(){return U().isDragging},Q))},_.B(vCV,{props:U,
data:c,options:f}),_.B(ECE,{props:U,data:c,options:f})),_.B(_.K,{cond:function(){return K2N(c(),f())},
then:function(){return _.B(RjN,{props:U,data:c,options:f})}}))},"dg"),"yt-inline-player-controls",{props:{data:_.y$,
appApi:_.Qn,options:_.y$}});var Pz=function(){var S=_.W.apply(this,arguments)||this;S.opts=null;S.playerControlsData=null;S.playerControlsAppApi={openInMiniplayer:function(){S.openInMiniplayer()}};
S.playerControlsOptions={};S.noAnimation=!1;S.playbackIntentTriggered=!1;S.positionData=null;S.hidden=!0;S.active=!1;S.playing=!1;S.videoPreviewDataIndex=0;S.JSC$16950_playerPromise=null;S.player=null;S.enableAudioControls=!1;S.hasBeenUnmuted=!1;S.captionsHaveBeenTurnedOff=!1;S.JSC$16950_playerEvents=new Map;S.videoPreviewFetchRequest=null;S.scheduledPreviewEndJobId=null;S.JSC$16950_preventProgressSaveTimer=null;S.watchEndpointStartTimeUpdaterInterval=null;S.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};S.windowOnBlurFn=function(){S.deactivate()};
return S};
_.C(Pz,_.W);_.J=Pz.prototype;
_.J.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.u("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.J.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16950_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16950_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16950_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16950_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.xn(this,this.onPageTypeChange));this.pagePath=location.pathname;window.addEventListener("scroll",
_.xn(this,this.onScroll))};
_.J.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn);window.removeEventListener("scroll",_.xn(this,this.onScroll))};
_.J.onPageTypeChange=function(){this.deactivate()};
_.J.onWindowResized=function(){this.deactivate()};
_.J.onCaptionsChanged=function(S){S=!!S.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!S);this.setCaptionSize()};
_.J.setCaptionSize=function(){var S;if(this.active&&!this.captionsHaveBeenTurnedOff&&((S=this.player)==null?0:S.getCaptionWindowContainerId())){var c;(c=this.player)==null||c.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.J.currentPageAllowed=function(){return!this.isWatchPage};
_.J.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var S=this.positionData,c=S.initialTopPosition,Q=S.initialHorizontalPosition;_.Or(this.hostElement,{"--ytd-video-preview-translate-left":S.finalHorizontalPosition-Q+"px","--ytd-video-preview-translate-top":S.finalTopPosition-c+"px","--ytd-video-preview-original-top-position":c+"px","--ytd-video-preview-original-horizontal-position":Q+"px",
"--ytd-video-preview-initial-scale":"scale("+S.initialScale+")","--ytd-video-preview-width":S.videoPreviewWidth+"px","--ytd-video-preview-height":S.videoPreviewHeight+"px"});return!0};
_.J.handleOpenVideoPreviewAction=function(S){var c=this,Q;return _.O(function(f){if(!c.currentPageAllowed())return f.return(0);c.opts=S;return(Q=c.alignVideoPreviewForAnimation(S.thumbnail))?f.return(c.activate()):f.return(0)})};
_.J.onMouseLeave=function(S){this.shouldDeactivateOnMouseLeave(S)&&this.deactivate()};
_.J.onScroll=function(){var S,c;((S=this.opts)==null?0:S.isAutoplay)&&((c=this.opts)==null?0:c.mediaRenderer)&&this.opts.mediaRenderer.getBoundingClientRect().top<0&&this.deactivate()};
_.J.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.Mq.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.J.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.J.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",Pz.JSC$16949_DEFAULT_CLICK_LOCATION_BEHAVIOR,Pz.JSC$16949_CLICK_LOCATION_ID_MAP)};
_.J.shouldDeactivateOnMouseLeave=function(S){S=S.relatedTarget;if(!S)return!0;var c;return(c=this.opts)!=null&&c.mediaRenderer?!_.Jq(this.opts.mediaRenderer).contains(S):!0};
_.J.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.J.onPlaybackStart=function(){var S=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$16950_preventProgressSaveTimer=
_.Xi(_.Mq,function(){S.resetPreventProgressSaveTimer()},1E4);
var c;if((c=this.opts)==null?0:c.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.Xi(_.Mq,function(){S.hasMultipleVideoPreviews()?S.startPlaybackForNextVideo():S.deactivate()},this.opts.videoPreviewDurationMs);
var Q;this.player.setGlobalCrop(((Q=this.opts)==null?0:Q.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.J.getRoundedCornersSize=function(){var S;if((S=this.opts)==null?0:S.roundedCornersSize){var c;return(c=this.opts)==null?void 0:c.roundedCornersSize}var Q;if((Q=this.opts)==null?0:Q.enableRounding){var f;if(((f=this.opts)==null?void 0:f.thumbnailSize)==="small")return 1;var U;if(((U=this.opts)==null?void 0:U.thumbnailSize)==="medium")return 2;var a;if(((a=this.opts)==null?void 0:a.thumbnailSize)==="large")return 3}return _.u("web_imp_inset_progress_bar")?3:0};
_.J.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.J.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.J.onMediaContainerClick=function(S){this.isShortcutClick(S)||(this.navigateToWatch(S),S.preventDefault(),S.stopPropagation())};
_.J.activate=function(){var S=this,c,Q,f,U,a,X,z,x,I;return _.O(function(n){switch(n.nextAddress){case 1:if(!S.currentPageAllowed())return n.return(0);Q=(c=S.videoPreviewData)==null?void 0:c.inlinePlaybackEndpoint;f=_.dj.instance;if(!Q||!f)return n.return(0);S.playbackIntentTriggered=!0;((U=S.opts)==null?0:U.mediaRenderer)&&((a=S.opts)==null||!a.isAutoplay)&&mkE(S.opts.mediaRenderer,function(){S.deactivate()});
_.tO(S,function(){S.revealPreviewUi()});
X={};_.u("enable_unknown_lact_fix_on_html5")&&(_.fl().resolve(_.wj),X.lact=_.f1());S.videoPreviewFetchRequest=Eh2(f,S.getInlinePlaybackRequestData(S.videoPreviewData),X);_.X1(n,2);return _.F(n,S.videoPreviewFetchRequest,4);case 4:z=n.yieldResult;if(((x=z)==null?void 0:(I=x.playabilityStatus)==null?void 0:I.status)==="OK")return n.return(S.handlePlayerResponse(z));throw Error("Nj");case 2:_.Bs(n),S.deactivate();case 3:return n.return(1)}})};
_.J.getInlinePlaybackRequestData=function(S){var c,Q=_.u("web_imp_player_mute_params")?((c=this.opts)==null?void 0:c.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:S.inlinePlaybackEndpoint,startPlaybackInMutedState:Q}};
_.J.handlePlayerResponse=function(S){var c=this,Q,f,U,a,X,z,x,I,n,b;return _.O(function(N){if(N.nextAddress==1){Q=c.getInlinePlaybackVideoId();if(!(((f=S)==null?0:(U=f.videoDetails)==null?0:U.videoId)&&c.currentPageAllowed()&&c.playbackIntentTriggered&&c.opts&&Q))return c.deactivate(),N.return(0);if(S.videoDetails.videoId!==Q)return N.return(0);c.enableAudioControls=!!((a=S.playerConfig)==null?0:(X=a.inlinePlaybackConfig)==null?0:X.showAudioControls);S.trackingParams=c.getInlinePlaybackTrackingParams();
if(!c.inlinePlayer)return N.return(0);z={};if(I=_.Y((x=c.videoPreviewData)==null?void 0:x.inlinePlaybackEndpoint,_.tG))z.watch_endpoint=I;if(c.videoPreviewData){var l,H=(l=_.Y(c.videoPreviewData.inlinePlaybackEndpoint,_.tG))==null?void 0:l.startTimeSeconds;H!==void 0&&(S.playerConfig||(S.playerConfig={}),S.playerConfig.playbackStartConfig||(S.playerConfig.playbackStartConfig={}),S.playerConfig.playbackStartConfig.startPosition||(S.playerConfig.playbackStartConfig.startPosition={}),S.playerConfig.playbackStartConfig.startSeconds=
H,S.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(H*1E3))}c.inlinePlayer.loadVideoWithPlayerResponse(S,z);if(c.JSC$16950_playerPromise)return N.jumpTo(2);c.JSC$16950_playerPromise=c.inlinePlayer.getPlayerPromise();return _.F(N,c.JSC$16950_playerPromise,3)}N.nextAddress!=2&&(n=N.yieldResult,n.setInlinePreview(!0),n.setSizeStyle(!1,!0),c.ytPlayerListenerBehavior.listenToPlayerEvents(n,c.JSC$16950_playerEvents),c.player=n,_.Az(c.hostElement,"player-api-ready"));((b=c.opts)==
null?0:b.showPlayerControls)&&c.videoPreviewData&&c.player&&(c.playerControlsData={playerResponse:S,isInlinePlayback:!0,thumbnailOverlays:c.videoPreviewData.thumbnailOverlays,playerApi:c.player},c.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!c.unroundCornersForPlayback,additionalButton:c.getAdditionalButtonType(c.videoPreviewData.thumbnailOverlays)});return N.return(2)})};
_.J.revealPreviewUi=function(){var S=this;this.playbackIntentTriggered&&_.M0Z(this,function(){S.hasThumbnailPositionChangedSinceTriggered()||(S.updateActiveState(!0),S.noAnimation=!1)})};
_.J.hasThumbnailPositionChangedSinceTriggered=function(){var S=this.positionData,c=this.getThumbnailPositionData();return(S==null?void 0:S.initialTopPosition)!==(c==null?void 0:c.initialTopPosition)||(S==null?void 0:S.initialHorizontalPosition)!==(c==null?void 0:c.initialHorizontalPosition)};
_.J.getThumbnailPositionData=function(){var S,c;if((c=this.opts)==null||!c.thumbnail)return null;c=this.opts.thumbnail;var Q=((S=this.opts)==null?0:S.cropPlayerToFillThumbnailHorizontally)?!1:!0;var f=c.getBoundingClientRect();S=f.width;c=f.height;var U=f.top+window.scrollY;f=f.left+window.scrollX;var a=Q?Math.ceil(S):S;Q=Q?Math.ceil(c):c;var X=S/a;S={initialScale:X,initialTopPosition:U-12*X,finalTopPosition:U-12-(Q-c)/2,initialHorizontalPosition:f-(12+(a-S)/2),finalHorizontalPosition:f-12-(a-S)/
2,videoPreviewWidth:a,videoPreviewHeight:Q};return S};
_.J.updateActiveState=function(S){this.active=S;this.ytdReduxBehavior.dispatch(_.aB({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:S}))};
_.J.stopPlayer=function(S){S=S.resetWatchEndpointStartTime===void 0?!1:S.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(S)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.Mq.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.J.deactivate=function(S){S=S===void 0?{}:S;S=S.resetWatchEndpointStartTime===void 0?!1:S.resetWatchEndpointStartTime;X8&&(X8.disconnect(),X8=null);this.stopPlayer({resetWatchEndpointStartTime:S});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.J.isValidThumbnailOverlayButton=function(S,c){S=S.thumbnailOverlayButtonRenderer;var Q;return!!S&&!!S.tooltip&&!((Q=S.icon)==null||!Q.iconType)&&c.includes(S.icon.iconType)};
_.J.isValidThumbnailOverlayButtonViewModel=function(S,c){var Q;S=_.Y((Q=S.thumbnailOverlayButtonViewModel)==null?void 0:Q.overlayButton,_.Ya);return!!S&&!!S.title&&!!S.iconName&&c.includes(S.iconName)};
_.J.getAdditionalButtonType=function(S){var c=this;if(_.u("web_imp_fastforward_button"))return{button:1};if(_.u("web_imp_miniplayer_button"))return{button:2};if(_.u("web_imp_playback_speed_button"))return{button:3};var Q=["BOX_STACK_3"],f=(S||[]).filter(function(a){return c.isValidThumbnailOverlayButton(a,Q)}).map(function(a){return a.thumbnailOverlayButtonRenderer});
if(f.length)return{button:4,thumbnailOverlayButtonRenderers:f};var U=["BOX_STACK_3"];S=(S||[]).filter(function(a){return c.isValidThumbnailOverlayButtonViewModel(a,U)}).map(function(a){return _.Y(a.thumbnailOverlayButtonViewModel.overlayButton,_.Ya)});
if(S.length)return{button:4,thumbnailOverlayButtonViewModels:S}};
_.J.allowCaptions=function(){var S;return!((S=this.opts)==null?0:S.forceCaptionsOff)};
_.J.allowUnmuting=function(){var S;return this.enableAudioControls&&!((S=this.opts)==null?0:S.forceMutedVolume)};
_.J.beginStartTimeUpdater=function(){var S=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.xr(function(){S.updateWatchEndpointStartTime()},1E3)};
_.J.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.J.resetPreventProgressSaveTimer=function(){this.JSC$16950_preventProgressSaveTimer!==null&&(_.Mq.cancelJob(this.JSC$16950_preventProgressSaveTimer),this.JSC$16950_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.J.updateWatchEndpointStartTime=function(S){var c=this.videoPreviewData;if(this.player&&c!=null&&c.inlinePlaybackEndpoint&&!this.JSC$16950_preventProgressSaveTimer){S=S?0:Math.floor(this.player.getCurrentTime());var Q=_.Y(c.navigationEndpoint,_.tG);Q&&(Q.startTimeSeconds=S);if(c=_.Y(c.inlinePlaybackEndpoint,_.tG))c.startTimeSeconds=S}};
_.J.isShortcutClick=function(S){return!!S&&(S.ctrlKey||S.shiftKey||S.metaKey)};
_.J.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.J.openInMiniplayer=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1){Q=(c=S.videoPreviewData)==null?void 0:c.navigationEndpoint;if(!Q)return f.return();_.bn().lockupActivation=!0;return _.F(f,_.eX_(_.fl().resolve(_.ra),Q),2)}_.bn().userActivation=!0;_.IN(f)})};
_.J.navigateToWatch=function(S){var c,Q=(c=this.videoPreviewData)==null?void 0:c.navigationEndpoint;if(Q){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(Q,S,!0);else{if(_.u("web_thumbnail_to_watch_transition")){var f,U;(f=this.opts)==null||(U=f.onNavigateToWatchCallback)==null||U.call(f)}_.Az(this.hostElement,"yt-navigate",{endpoint:Q})}this.deactivate()}};
_.J.getInlinePlaybackVideoId=function(){var S,c;return(c=_.Y((S=this.videoPreviewData)==null?void 0:S.inlinePlaybackEndpoint,_.tG))==null?void 0:c.videoId};
_.J.getInlinePlaybackTrackingParams=function(){var S,c;return(S=this.videoPreviewData)==null?void 0:(c=S.inlinePlaybackEndpoint)==null?void 0:c.clickTrackingParams};
_.J.hasMultipleVideoPreviews=function(){var S;return!!(((S=this.opts)==null?0:S.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.J.startPlaybackForNextVideo=function(){var S;(S=this.opts)!=null&&S.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())};
_.Rh.Object.defineProperties(Pz.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.opts)==null?0:S.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.opts)==null||!S.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 S;if(Array.isArray((S=this.opts)==null?void 0:S.videoPreviewData)){var c;return(c=this.opts)==null?void 0:c.videoPreviewData[this.videoPreviewDataIndex]}var Q;return(Q=this.opts)==null?void 0:Q.videoPreviewData}}});
Pz.prototype.onIsAdsVideoChange=Pz.prototype.onIsAdsVideoChange;Pz.prototype.onInlinePreviewIsEnabledChange=Pz.prototype.onInlinePreviewIsEnabledChange;Pz.prototype.optsChanged=Pz.prototype.optsChanged;Pz.prototype.onMouseLeave=Pz.prototype.onMouseLeave;Pz.JSC$16949_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);Pz.JSC$16949_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"}];
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Pz.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Pz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],Pz.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Pz.prototype,"componentBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Pz.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Pz.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.SX.YtSparklesClickLocationBehavior),_.P("design:type",Object)],Pz.prototype,"ytSparklesClickLocationBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Pz.prototype,"opts",void 0);_.d([_.Z(),_.P("design:type",Object)],Pz.prototype,"playerControlsData",void 0);
_.d([_.Z(),_.P("design:type",Object)],Pz.prototype,"playerControlsAppApi",void 0);_.d([_.Z(),_.P("design:type",Object)],Pz.prototype,"playerControlsOptions",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Pz.prototype,"noAnimation",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Pz.prototype,"hidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Pz.prototype,"active",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Pz.prototype,"playing",void 0);_.d([_.Z({selector:_.bkZ}),_.P("design:type",Boolean)],Pz.prototype,"inlinePreviewIsEnabled",void 0);_.d([_.Z(),_.P("design:type",String)],Pz.prototype,"pagePath",void 0);_.d([_.Z({selector:_.MO}),_.P("design:type",Boolean)],Pz.prototype,"isWatchPage",void 0);_.d([_.M("videoPreviewData"),_.P("design:type",Object),_.P("design:paramtypes",[])],Pz.prototype,"thumbnailData",null);
_.d([_.M("opts","active"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pz.prototype,"hidePlayerControls",null);_.d([_.M("opts"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pz.prototype,"isAdsVideo",null);_.d([_.M("opts"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pz.prototype,"roundedCornersSmall",null);
_.d([_.M("opts"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pz.prototype,"roundedCornersMedium",null);_.d([_.M("opts"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pz.prototype,"roundedCornersLarge",null);_.d([_.M("opts"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Pz.prototype,"unroundCornersForPlayback",null);
_.d([_.M("opts","videoPreviewDataIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],Pz.prototype,"videoPreviewData",null);_.d([_.Z(),_.P("design:type",Object)],Pz.prototype,"videoPreviewDataIndex",void 0);_.d([_.nU("#inline-player"),_.P("design:type",Object)],Pz.prototype,"inlinePlayer",void 0);_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[MouseEvent]),_.P("design:returntype")],Pz.prototype,"onMouseLeave",null);
_.d([_.$n("opts"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pz.prototype,"optsChanged",null);_.d([_.$n("inlinePreviewIsEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pz.prototype,"onInlinePreviewIsEnabledChange",null);_.d([_.B0("isAdsVideo"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pz.prototype,"onIsAdsVideoChange",null);
_.d([_.e({is:"ytd-video-preview",disableElementRegistration:!0})],Pz);
_.k(Pz,"ytd-video-preview",function(){if(DR8!==void 0)return DR8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return DR8=S},{mode:2});
}catch(e){_._DumpException(e)}
try{
var rgN,daT,v2g;rgN=function(S){return _.u("kevlar_watch_cinematics_invisible")||S.fullscreen&&_.u("kevlar_watch_cinematics_invisible_in_fullscreen")||S.theater&&!S.fullscreen&&_.u("kevlar_watch_cinematics_invisible_in_theater")};
daT=function(){var S=document.createElement("canvas"),c=S.getContext("2d");if(!c)throw Error("$l");_.GE(S,{position:"absolute",width:"100%",height:"100%"});return{element:S,context:c}};
v2g=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.u("kevlar_watch_cinematics_css_blur")};
_.PL1=function(S,c,Q){return Math.abs(S-c)<=(Q||1E-6)};
_.LaE=function(S,c){return S==c?!0:S&&c?S.width==c.width&&S.height==c.height:!1};_.E2N=new _.L("notificationActionRenderer");var tUE=function(S){var c=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.O_;this.element.addEventListener("load",function(){c.loaded=!0;c.resolver.resolve(c.element)});
this.element.addEventListener("error",function(){c.failed=!0});
this.element.src=S};var VUV=function(S,c){this.image=S;this.frame=c};
VUV.prototype.drawToCanvas=function(S,c){var Q=this.frame.width/this.frame.columns,f=this.frame.height/this.frame.rows,U=c.offsetX,a=c.offsetY;rgN(c)?(S.fillStyle=c.fullscreen?"#000":"#0f0f0f",S.fillRect(U,a,(c==null?void 0:c.width)||Q,(c==null?void 0:c.height)||f)):S.drawImage(this.image,this.frame.column*Q,this.frame.row*f,Q,f,U,a,(c==null?void 0:c.width)||Q,(c==null?void 0:c.height)||f)};
var RF2=function(S){this.color=S};
RF2.prototype.drawToCanvas=function(S,c){var Q=c.offsetX,f=c.offsetY,U=c.width,a=c.height;S.fillStyle=rgN(c)?c.fullscreen?"#000":"#0f0f0f":this.color;S.fillRect(Q,f,U,a)};var cN=function(S,c){_.R4.call(this);this.playerApi=c;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.xh(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();ygZ(this,S);o2p(this);this.update()};
_.C(cN,_.R4);cN.prototype.addEventListeners=function(){var S=this,c=function(){S.update()},Q=function(U){S.paused||(U.type==="newdata"&&(S.mosaics.clear(),maN(S),Qc(S)),o2p(S),S.update())},f=function(){S.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",c);this.playerApi.addEventListener("onVideoDataChange",Q);this.playerApi.addEventListener("onStateChange",f);this.addOnDisposeCallback(function(){S.playerApi.removeEventListener("onVideoProgress",c);S.playerApi.removeEventListener("onVideoDataChange",Q);S.playerApi.removeEventListener("onStateChange",f)})};
var ygZ=function(S,c){S.cinematicContainerRenderer!==c&&(S.cinematicContainerRenderer=c,maN(S),Qc(S),S.colorStoreUpdateJobId=_.Mq.addLowPriorityJob(function(){var Q;if((Q=S.cinematicContainerRenderer.colorStore)!=null&&Q.sampledColors){Q=Infinity;for(var f=_.A(S.cinematicContainerRenderer.colorStore.sampledColors),U=f.next();!U.done;U=f.next()){U=U.value;var a=Number(U.key);a!==0&&a<Q&&(Q=a);a=_.gh(U.value);S.colorStore.set(U.key,a)}S.colorStoreTimeInterval=Q}}))},maN=function(S){S.colorStoreUpdateJobId&&
(_.Mq.cancelJob(S.colorStoreUpdateJobId),S.colorStoreUpdateJobId=void 0);
S.colorStore.clear();S.currentStoryboardColor=void 0},SkT=function(S,c){var Q;
return(Q=S.getStoryboardFrame(c))==null?void 0:Q.url};
cN.prototype.onPlayerStateChange=function(){this.update()};
cN.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
var o2p=function(S){var c=S.getStoryboardFrame(0);c&&(c=new _.xh(c.width/c.columns,c.height/c.rows),_.LaE(S.currentStoryboardSize,c)||(S.currentStoryboardSize=c,S.publish("STORYBOARD_SIZE_CHANGED",S.currentStoryboardSize)))},cfg=function(S,c){S.currentStoryboardIndex=c;
S.pendingStoryboardIndex=NaN;c=S.getStoryboardFrame(S.currentStoryboardIndex);S.currentStoryboard=new VUV(S.mosaics.get(c.url).element,c);S.publish("STORYBOARD_CHANGED",S.currentStoryboard);S.lastUpdateTime=(0,_.Qk)()};
cN.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var Qc=function(S){S.currentStoryboardIndex=NaN;S.pendingStoryboardIndex=NaN;S.currentStoryboard&&(S.currentStoryboard=void 0,S.publish("STORYBOARD_CHANGED",void 0));S.lastUpdateTime=NaN};
cN.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)Qc(this);else{var S=this.playerApi.getPlayerState(1);if(S===-1||S===5||S===0)Qc(this);else if(isNaN(this.lastUpdateTime)||!((0,_.Qk)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(S=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){S=""+Math.round(S*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var c=this.colorStore.get(S);c?c!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=c,this.currentStoryboard=new RF2(c),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.Qk)()):(_.i5(new _.Yr("Could not find color for timestamp: "+S,this.cinematicContainerRenderer)),Qc(this))}else Qc(this);else QfB(this,S)}};
var QfB=function(S,c){var Q=S.getStoryboardFrameIndex(c);if(Q!==S.currentStoryboardIndex&&Q!==S.pendingStoryboardIndex){c=SkT(S,Q);var f=S.mosaics.get(c);f?f.loaded&&cfg(S,Q):(S.pendingStoryboardIndex=Q,Q=new tUE(c),S.mosaics.set(c,Q),Q.resolver.promise.then(function(){if(!S.isDisposed()&&!S.paused&&!isNaN(S.pendingStoryboardIndex)){var U=SkT(S,S.pendingStoryboardIndex);if(U){var a;(a=S.mosaics.get(U))!=null&&a.loaded&&cfg(S,S.pendingStoryboardIndex)}else Qc(S)}}))}};
cN.prototype.getStoryboardFrameIndex=function(S){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(S,c)};
cN.prototype.getStoryboardFrame=function(S){var c=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,Q,f;return((f=(Q=this.playerApi).getStoryboardFrame)==null?void 0:f.call(Q,S,c))||null};
cN.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Uf=function(S,c,Q,f){f=f===void 0?!1:f;_.C9.call(this);this.cinematicContainerRenderer=c;this.playerApi=Q;this.theater=this.fullscreen=!1;var U;this.ambientLightThemeEnabled=!f&&!!(c==null?0:(U=c.config)==null?0:U.enableInLightTheme);this.ambientFullscreenEnabled=f&&_.u("web_cinematic_fullscreen");this.container=document.createElement("div");S.appendChild(this.container);var a;if(_.u("web_cinematic_theater_mode")||_.u("web_cinematic_fullscreen")||(c==null?0:(a=c.config)==null?0:a.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);f9U(this);S=this.ambientV2Container||this.container;this.backCanvas=daT();this.frontCanvas=daT();S.appendChild(this.backCanvas.element);S.appendChild(this.frontCanvas.element);this.storyboardManager=new cN(c,this.playerApi);_.F5(this,this.storyboardManager);this.addEventListeners();U88(this)?JfO(this,100+fV(this)*3*2,100+fV(this)*3*2):a91(this);AfV(this,this.storyboardManager.currentStoryboard)};
_.C(Uf,_.C9);var f9U=function(S){S.ambientV2Container?XRV(S):(_.GE(S.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+OYp(S)+", "+z3T(S)+")"}),v2g()&&_.GE(S.container,"filter","blur("+_.a6("cinematic_watch_css_filter_blur_strength",40)+"px)"))},XRV=function(S){if(S.ambientV2Container){var c=S.playerApi.getVideoAspectRatio();
_.GE(S.container,{"aspect-ratio":""+c,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.GE(S.ambientV2Container,{"aspect-ratio":""+c,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+OYp(S)+", "+z3T(S)+")"});v2g()&&_.GE(S.ambientV2Container,"filter","blur("+_.a6("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Uf.prototype.setFullscreen=function(S,c){this.fullscreen=S;this.theater=!!c;f9U(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),S=this.storyboardManager.currentStoryboard,x8p(this),S&&FTT(this,S)};
Uf.prototype.addEventListeners=function(){var S=this,c=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(U){AfV(S,U)}),Q=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){a91(S)});
this.addOnDisposeCallback(function(){S.storyboardManager.unsubscribeByKey(c);S.storyboardManager.unsubscribeByKey(Q)});
if(this.ambientV2Container){var f=function(){XRV(S)};
this.playerApi.addEventListener("onVideoDataChange",f);this.addOnDisposeCallback(function(){S.playerApi.removeEventListener("onVideoDataChange",f)})}};
var a91=function(S){if(!U88(S)){var c=S.storyboardManager.currentStoryboardSize;isNaN(c.width)||isNaN(c.height)||JfO(S,Number(c.width)+fV(S)*3*2,Number(c.height)+fV(S)*3*2)}},JfO=function(S,c,Q){S.backCanvas.element.width=c;
S.backCanvas.element.height=Q;S.frontCanvas.element.width=c;S.frontCanvas.element.height=Q},U88=function(S){return S.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},AfV=function(S,c,Q){Q=Q===void 0?!1:Q;
var f=S.frontCanvas.element.getAnimations()[0];f?(f.pause(),S.backCanvas.context.globalAlpha=Number(getComputedStyle(S.frontCanvas.element).opacity),S.frontCanvas.element.style.opacity="0",f.finish()):S.backCanvas.context.globalAlpha=1;S.backCanvas.context.drawImage(S.frontCanvas.element,0,0,S.backCanvas.element.width,S.backCanvas.element.height);x8p(S);c&&FTT(S,c);c=c?S.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.a6("cinematic_watch_fade_out_duration",500);f=_.a6("cinematic_watch_transition_frame_rate")/
1E3;var U={};f&&(U={easing:"steps("+Math.round(c*f)+")"});(Q===void 0?0:Q)||S.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:c,iterations:1},U));S.frontCanvas.element.style.opacity="1"},x8p=function(S){var c=S.ambientLightThemeEnabled,Q=S.ambientLightThemeEnabled||S.ambientFullscreenEnabled&&!_.u("web_cinematic_fullscreen_v2");
S.frontCanvas.context.fillStyle=S.theater&&c||S.fullscreen&&Q?"#000":"#0f0f0f";v2g()||(S.frontCanvas.context.filter="blur(0)");S.frontCanvas.context.fillRect(0,0,S.frontCanvas.element.width,S.frontCanvas.element.height)},FTT=function(S,c){v2g()||(S.frontCanvas.context.filter="blur("+fV(S)+"px)");
S.frontCanvas.context.globalAlpha=_.a6("cinematic_watch_effect_opacity",.4);var Q={offsetX:fV(S)*3,offsetY:fV(S)*3,theater:S.theater,fullscreen:S.fullscreen};U88(S)&&(Q.width=100,Q.height=100);c.drawToCanvas(S.frontCanvas.context,Q);S.frontCanvas.context.globalAlpha=1},fV=function(S){var c;
return(c=S.cinematicContainerRenderer.config.blurStrength)!=null?c:5},OYp=function(S){var c,Q;
if((S.fullscreen||S.theater)&&((c=S.cinematicContainerRenderer.config)==null?0:(Q=c.watchFullscreenConfig)==null?0:Q.colorSourceWidthMultiplier))return S.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var f;return(f=S.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?f:S.cinematicContainerRenderer.config.colorSourceSizeMultiplier},z3T=function(S){var c,Q;
if((S.fullscreen||S.theater)&&((c=S.cinematicContainerRenderer.config)==null?0:(Q=c.watchFullscreenConfig)==null?0:Q.colorSourceHeightMultiplier))return S.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var f;return(f=S.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?f:S.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Uf.prototype.disposeInternal=function(){_.C9.prototype.disposeInternal.call(this);this.container.remove()};
Uf.prototype.clear=function(){AfV(this,void 0,!0)};
Uf.prototype.pause=function(){this.storyboardManager.pause()};var BIp;BIp=_.ur(function(){var S,c,Q=!((c=(S=document.createElement("canvas")).getContext)==null||!c.call(S,"2d")),f;S=!((f=CSS)==null||!f.supports("filter: blur(0)"));f=!!Element.prototype.animate&&!!Element.prototype.getAnimations;c=_.u("web_cinematic_fullscreen")||_.u("web_cinematic_theater_mode")||_.u("web_cinematic_light_theme")||!1;var U;return Q&&S&&f&&(!c||!((U=CSS)==null||!U.supports("aspect-ratio: 1 / 1")))});
_.Ji=function(S,c){_.R4.call(this);this.container=S;this.playerApi=c;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=I90(this);this.update()};
_.C(_.Ji,_.R4);_.nPN=function(S){var c=document.documentElement.hasAttribute("dark");S.isDarkModeEnabled=c;S.update()};
_.bY1=function(S,c){S.settingEnabled=c;S.update()};
_.Ji.prototype.setFullscreen=function(S,c){this.fullscreen=S;this.theater=!!c;this.update()};
_.NIp=function(S,c){S.cinematicContainerRenderer=c;S.cinematicContainerRenderer&&(S.cinematicsVe=_.qo(S.isShorts()?227858:159022),_.Oc(_.Kv(),S.cinematicsVe),S.loggingClientData={watchCinematicContainerData:{presentationStyle:S.cinematicContainerRenderer.presentationStyle}});S.update()};
_.Ji.prototype.isShorts=function(){var S,c;return((S=this.cinematicContainerRenderer)==null?void 0:(c=S.config)==null?void 0:c.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.Ji.prototype.isAllowed=function(){var S;if(S=BIp()){var c,Q,f;S=((Q=this.cinematicContainerRenderer)==null?void 0:Q.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((f=this.cinematicContainerRenderer)==null||!f.colorStore)||((c=this.cinematicContainerRenderer)==null?void 0:c.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(S)if(_.u("web_cinematics_pausing")){var U,a;S=this.isDarkModeEnabled||!!((U=this.cinematicContainerRenderer)==
null?0:(a=U.config)==null?0:a.enableInLightTheme)}else{var X,z;U=!!((X=this.cinematicContainerRenderer)==null?0:(z=X.config)==null?0:z.enableInLightTheme)&&(_.WY("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);S=this.isDarkModeEnabled||U}if(X=S){var x,I;X=!((I=(x=this.prefersReducedMotionQuery)==null?void 0:x.matches)!=null&&I)}return X};
_.KTG=function(S){(S=S.currentCinematicEffect)!=null&&(S=S.storyboardManager,S.paused=!1,o2p(S),S.update())};
_.Ji.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var I90=function(S){if(!_.u("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var c=window.matchMedia("(prefers-reduced-motion: reduce)"),Q=function(){S.update()};
c.addListener(Q);S.addOnDisposeCallback(function(){c.removeListener(Q)});
return c}};
_.Ji.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var S=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Uf(this.container,S,this.playerApi,this.isDarkModeEnabled),_.F5(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var c=this.currentCinematicEffect;c.cinematicContainerRenderer!==
S&&(c.cinematicContainerRenderer=S,ygZ(c.storyboardManager,S),f9U(c));S=_.jL();_.l2(0,194,!0);S.save();S=_.wN();this.cinematicsVe&&S&&_.L8(S,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(S=_.wN(),this.cinematicsVe&&S&&_.Ez(S,[this.cinematicsVe],!1,this.loggingClientData),_.yN(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.Rh.Object.defineProperties(_.Ji.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var NnU;var Ka0;_.DI({_template:function(){if(Ka0!==void 0)return Ka0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=
S.content,Q=c.insertBefore;NnU===void 0&&(NnU=document.createElement("template"));var f=NnU;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return Ka0=S},
is:"tp-yt-iron-pages",behaviors:[_.w9,_.rM],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var F3O;_.Bwg=function(){if(_.u("kevlar_home_skeleton")&&!F3O){var S=document.querySelector("#home-page-skeleton");S&&(_.i2("hgcr"),_.K9(S),F3O=!0)}};
F3O=!1;_.lP=new _.L("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var fiE,JDN,ai2,ADg,XpE,OpG,z_T,x4p,Bg1,IiO,NgZ,$4G,ujE,KsO,n80,bp2,Y3g;_.Qup=function(S,c,Q){c=c===void 0?5:c;if(c!==0){var f=typeof S==="function"?S():document.querySelector(S);f?(Q==null?0:Q.enableSmartFocus)?_.mjz(f):f.focus():setTimeout(function(){_.Qup(S,c-1,Q)},500)}};
fiE=function(S){return String.raw.apply(String,[{raw:S}].concat(_.Hs(_.YD.apply(1,arguments).map(function(c){return c instanceof Array?c.join(""):c}))))};
JDN=function(S){var c=_.YD.apply(1,arguments);if(!Array.isArray(S)||!Array.isArray(S.raw)||S.length!==S.raw.length||!_.l1Y&&S===S.raw||!(_.l1Y&&!_.YoH||_.zR(S))||c.length+1!==S.length)throw new TypeError("ea");return new U4E(Object.freeze({strings:Object.freeze(S),args:Object.freeze(c)}))};
ai2=function(S){return _.cvo(_.StR(S&16777215))<.5};
ADg=function(S,c,Q){var f=Q.minimumRowsOfVideosBetweenSections===void 0?1:Q.minimumRowsOfVideosBetweenSections;return S<(Q.minimumRowsOfVideosAtStart===void 0?2:Q.minimumRowsOfVideosAtStart)||c!==null&&S-c<=f?!1:!0};
XpE=function(S,c){var Q=0,f=0;S=_.A(S);for(var U=S.next();!U.done;U=S.next()){var a=U.value;if(a.richItemRenderer)a.richItemRenderer.rowIndex=f,a.richItemRenderer.colIndex=Q++,Q===c&&(Q=0,f++);else if(a.richGroupRenderer&&a.richGroupRenderer.numColumns!==void 0)a.richGroupRenderer.rowIndex=f,a.richGroupRenderer.colIndex=Q,Q+=a.richGroupRenderer.numColumns,Q===c&&(Q=0,f++);else if(a.richSectionRenderer){var X=U=void 0;if(a=_.Y((U=a)==null?void 0:(X=U.richSectionRenderer)==null?void 0:X.content,_.AMu))a.rowIndex=
f++}}};
OpG=function(S,c){var Q=c.contentElement;c=c.rendererToTagNameMap;if(Q&&c&&c.size!==0){for(var f=new Map,U=_.A(Q.children),a=U.next();!a.done;a=U.next()){a=a.value;var X=a.tagName.toLowerCase(),z=f.get(X);z||(z=[],f.set(X,z));z.push(a)}if(f.size!==0)for(U=Math.min(S.length,Q.children.length),a=new Map,X=0;X<U;X++){z=Object.keys(S[X])[0];z=c.get(z);if(!z)break;var x=a.get(z);x===void 0&&(x=0,a.set(z,x));var I=f.get(z);if(!I||x>=I.length)break;a.set(z,x+1);z=I[x];x=Q.children[X];x!==z&&(_.E_x=!0,_.tKR.set(z,
!0),Q.insertBefore(z,x),_.tKR.delete(z),_.E_x=!1)}}};
z_T=function(S,c,Q,f,U,a,X){f=f===void 0?{}:f;if(!S||!S.length)return[];S=S.slice();var z=[],x=[];U=null;for(var I=0,n=function(g){x.sort(function(v,t){return t.skippedOnRow-v.skippedOnRow});
for(var r,E=(r=x.shift())==null?void 0:r.content;E;)!E.richSectionRenderer&&g||z.push(E),r=void 0,E=(r=x.shift())==null?void 0:r.content},b=[];S.length>0||x.length>0;){for(var N=[],l=c;l>0;){var H=void 0,q=void 0,w=(q=x[0]&&x[0].skippedOnRow<I?(H=x.shift())==null?void 0:H.content:void 0)!=null?q:S.shift();
if(!w)break;if(w.richItemRenderer)H=w.richItemRenderer.targetId,q=void 0,H&&((q=X)==null?0:q.has(H))&&b.push(X.get(H)),N.push(w),l--;else if(w.richGroupRenderer&&w.richGroupRenderer.numColumns!==void 0)w.richGroupRenderer.numColumns<=l?(N.push(w),l-=w.richGroupRenderer.numColumns):l===c&&w.richGroupRenderer.numColumns>c?(N.push({richGroupRenderer:Object.assign({},w.richGroupRenderer,{numColumns:c})}),l=0):x.push({content:w,skippedOnRow:I});else if(w.richSectionRenderer)if(ADg(I,U,f)&&l===c){z.push(w);
U=I;I++;continue}else x.push({content:w,skippedOnRow:I});else if(w.continuationItemRenderer){n(!0);z.push(w);l=0;break}if(l===0)z.push.apply(z,_.Hs(N));else if(!Q&&S.length===0){n(!1);z.push.apply(z,_.Hs(N));l=0;break}}I++;b=_.A(b);for(N=b.next();!N.done;N=b.next())z.push(N.value),I++;b=[]}XpE(z,c);a&&OpG(z,a);return z};
x4p=function(){return _.YD.apply(0,arguments).flat().filter(function(S){return S}).join(";")};
Bg1=function(){return JDN(FsE,x4p.apply(null,_.Hs(_.YD.apply(0,arguments))))};
IiO=function(S){return S.talkToRecs};
NgZ=function(S,c){if(c){var Q=_.V5().getState().entities.flowStateEntity,f=n80(S),U=[c];f&&f!==c&&U.push(f);var a=!0,X;if(Q&&S.flowStateEntityKey&&((X=Q[S.flowStateEntityKey])==null?void 0:X.primaryButtonDisabled)!==void 0){var z;a=!((z=Q[S.flowStateEntityKey])==null||!z.primaryButtonDisabled)}bp2(S,f!=null?f:c,U,a)}};
$4G=function(S){return _.Kt(_.V5(),function(c){return c.entities.flowStateEntity},function(c,Q){if(S.flowStateEntityKey){var f,U=c==null?void 0:(f=c[S.flowStateEntityKey])==null?void 0:f.currentStepId,a;
Q=Q==null?void 0:(a=Q[S.flowStateEntityKey])==null?void 0:a.currentStepId;a=_.V5().getState().talkToRecs;if(U&&U!==Q){var X;c=(c==null?void 0:(X=c[S.flowStateEntityKey])==null?void 0:X.stepIdStack)||Object.keys(a.stepStates);X=!KsO(a==null?void 0:a.stepStates[U]);bp2(S,U,c,X)}}})};
ujE=function(S){return _.Kt(_.V5(),IiO,function(c){var Q=n80(S);if(Q){var f=Object.keys(c.stepStates);c=!KsO(c==null?void 0:c.stepStates[Q]);bp2(S,Q,f,c)}})};
KsO=function(S){var c=Object.keys((S==null?void 0:S.selectionStates)||{}).reduce(function(a,X){return a||(S==null?void 0:S.selectionStates[X].isSelected)},!1),Q,f,U=!!(S==null?0:(Q=S.userQuery)==null?0:(f=Q.userQuery)==null?0:f.trim());
return c||U};
n80=function(S){if(S.flowStateEntityKey){var c,Q,f=(c=_.V5().getState().entities.flowStateEntity)==null?void 0:(Q=c[S.flowStateEntityKey])==null?void 0:Q.currentStepId;if(f)return f}};
bp2=function(S,c,Q,f){_.V5().dispatch(_.Ns("flowStateEntity",S.flowStateEntityKey,{currentStepId:c,stepIdStack:Q,key:S.flowStateEntityKey,primaryButtonDisabled:f}))};
_.juV=function(S,c){return _.FT(S.entities,"youchatPendingResponseEntity",c)};
_.li8=function(S){return function(c){_.Er(_.Ns("youchatPendingResponseEntity",S,{entityKey:S,isPendingResponse:c}))}};
Y3g=function(S){S==null||S.addEventListener("DOMLoaded",function(){S.goToAndPlay(S.totalFrames-48,!0)})};
_.fb=function(S){this.__isSoyCss=!0;this.css=fiE.apply(null,[S.strings].concat(_.Hs(S.args)))};
_.fb.prototype.toString=function(){return this.css};
var U4E=function(){_.fb.apply(this,arguments)};
_.C(U4E,_.fb);var FsE=_.oK(["",""]);var CmG;var HpU;_.DI({_template:function(){if(HpU!==void 0)return HpU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
var c=S.content,Q=c.insertBefore;CmG===void 0&&(CmG=document.createElement("template"));var f=CmG;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return HpU=S},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var D4U=new _.L("talkToRecsFlowRenderer");var ppV=new _.L("flowRootRenderer");var h_E=new _.L("learningJourneyQuizViewModel");var q38=new _.L("chipsShelfViewModel");var TgU=new _.L("responsiveContainerConfiguration");var wpB=new _.L("horizontalShelfViewModel");_.sug=new _.L("engagementPanelSectionListRenderer");var MZB=new _.L("conversationResourceViewModel");var ip1=function(){this.horizontal=!1},ZpT=function(S,c){S.horizontal=c};
ip1.prototype.position=function(S,c,Q,f){f=f===void 0?1:f;S=this.delta(S)*f+c;f=Math.max(c,Q);return S>=Math.min(c,Q)&&S<=f?S:Q};
ip1.prototype.axis=function(S){S=this.direction(S);return S==="up"||S==="down"?"Y":"X"};var Ov=function(S,c,Q){c=c===void 0?_.DM():c;this.target=S;this.manager=c;this.touchAction=Q;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Ov.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(_.Hs(this.events)));for(var S=_.A(this.events),c=S.next();!c.done;c=S.next())this.listen(c.value)}};
Ov.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Hs(this.events)));for(var S=_.A(this.events),c=S.next();!c.done;c=S.next())this.unlisten(c.value)}};
Ov.prototype.listen=function(S){this.eventMap[S]&&this.target.addEventListener(S,this.eventMap[S])};
Ov.prototype.unlisten=function(S){this.eventMap[S]&&this.target.removeEventListener(S,this.eventMap[S])};var zt=function(){ip1.apply(this,arguments)};
_.C(zt,ip1);zt.prototype.direction=function(S){var c=S.detail;S=c.deltaY;c=c.deltaX;return S&&!this.horizontal?S>0?"down":"up":c&&this.horizontal?c>0?"right":"left":"none"};
zt.prototype.distance=function(S){return Math.abs(this.delta(S))};
zt.prototype.delta=function(S){var c=this.direction(S),Q=S.detail;S=Q.deltaX;Q=Q.deltaY;return c==="up"||c==="down"?Q||0:S||0};
zt.prototype.velocity=function(S){var c=this.direction(S),Q=S.detail;S=Q.velocityX;Q=Q.velocityY;return Math.abs(c==="up"||c==="down"?Q||0:S||0)};_.xe=function(S,c,Q,f,U,a){U=U===void 0?new zt:U;a=a===void 0?_.DM():a;Ov.call(this,c,a,f);var X=this;this.element=S;this.target=c;this.config=Q;this.input=U;this.manager=a;this.events=["panstart","panmove","panend"];this.onPanStart=function(){X.config.draggingClass&&X.element.classList.add(X.config.draggingClass);X.config.startAction&&X.config.startAction()};
this.onPanMove=function(z){var x=Gu8(X,z);if(x){X.move(z,x);x.fade&&X.fade(z,x);var I=X.input.direction(z);x.moveAction&&x.moveAction(WsV(X,z,x),I)}};
this.onPanEnd=function(z){var x,I,n,b,N,l;return _.O(function(H){if(H.nextAddress==1){X.animationRequestId&&cancelAnimationFrame(X.animationRequestId);X.animationRequestId=void 0;x=Gu8(X,z);if(!x)return H.return();I=x;n=I.triggerAction;b=I.fade;N=I.disableFinish;l=I.translateBack;var q=X.input.velocity(z),w=X.input.distance(z),g=X.threshold(x);return q>.3&&w>10||w>g?N?H.jumpTo(6):b?_.F(H,g8N(X,z),6):_.F(H,e_Z(X,z,x),6):l?_.F(H,X.translateBack(z),3):H.jumpTo(3)}H.nextAddress!=3&&n&&n();X.config.draggingClass&&
X.element.classList.remove(X.config.draggingClass);X.reset();_.IN(H)})};
S=Object.keys(Q.triggers);this.directions=new Set(S);ZpT(this.input,this.directions.has("right")||this.directions.has("left"))};
_.C(_.xe,Ov);_.xe.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var Gu8=function(S,c){c=S.input.direction(c);return S.config.triggers[c]};
_.xe.prototype.move=function(S,c){var Q=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var f=Q.input.axis(S),U=Q.input.position(S,Q.config.startPosition,c.endPosition,c.moveRatio||1);Q.element.style.transform="translate"+f+"("+U+"px)";Q.animationRequestId=void 0}))};
var WsV=function(S,c,Q){var f=Q.moveRatio||1;Q=Math.abs(S.config.startPosition-Q.endPosition);return Math.min(S.input.distance(c)*f,Q)/Q};
_.xe.prototype.fade=function(S,c){var Q=c.endOpacity;S=WsV(this,S,c);S>0&&(this.element.style.opacity=""+(((Q||0)-1)*S+1))};
_.xe.prototype.threshold=function(S){return S.threshold?S.threshold:Math.abs(S.endPosition-this.config.startPosition)/3};
var e_Z=function(S,c,Q){var f,U,a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1)return f=S.input.delta(c)+S.config.startPosition,U=S.input.axis(c),a=Q,X=a.endPosition,z=a.transitionEndPosition,I=(x=z)!=null?x:X,_.F(n,S.element.animate([{transform:"translate"+U+"("+f+"px)"},{transform:"translate"+U+"("+I+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);S.element.style.transform="translate"+U+"("+I+"px)";_.IN(n)})};
_.xe.prototype.translateBack=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1){if(!c.element.style.transform)return U.return();Q=c.input.axis(S);f=c.config.startPosition;return _.F(U,c.element.animate([{transform:c.element.style.transform},{transform:"translate"+Q+"("+f+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}c.element.style.transform="translate"+Q+"("+f+"px)";_.IN(U)})};
var g8N=function(S,c){var Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return Q=S.input.delta(c)+S.config.startPosition,f=S.input.axis(c),U=Q+70,a=S.element.style.opacity===""?1:S.element.style.opacity,_.F(X,S.element.animate([{transform:"translate"+f+"("+Q+"px)",opacity:a},{transform:"translate"+f+"("+U+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);S.element.style.transform="translate"+f+"("+U+"px)";S.element.style.opacity="0";_.IN(X)})};var FY=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;S.scrollRate=3;S.autoScrollAnimationStart=0;S.autoScrollPaused=!1;S.autoScrollRafId=0;return S};
_.C(FY,_.N_);_.J=FY.prototype;_.J.created=function(){var S=this;this.boundAutoScrollHandler=function(c){S.autoScroll(c)}};
_.J.detached=function(){this.hostElement.removeEventListener("mouseout",_.xn(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.xn(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.xn(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.J.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.xn(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.xn(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.xn(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.xn(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.xn(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.xn(this,this.endAutoScroll)),this.endAutoScroll())};
_.J.autoScroll=function(S){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=S);var c;if(c=!this.autoScrollPaused&&this.scrollTarget)c=this.scrollTarget,c=c.scrollHeight-c.scrollTop!==c.clientHeight;c&&(c=1E3/this.scrollRate,S-=this.autoScrollAnimationStart,S>c&&(this.scrollTarget.scrollTop+=Math.ceil(S/c),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.J.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.J.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
FY.prototype.autoScrollEnabledChanged=FY.prototype.autoScrollEnabledChanged;_.d([_.Z(),_.P("design:type",Object)],FY.prototype,"scrollRate",void 0);_.d([_.Z(),_.P("design:type",Object)],FY.prototype,"scrollTarget",void 0);_.d([_.Z(),_.P("design:type",Boolean)],FY.prototype,"autoScrollEnabled",void 0);_.d([_.B0("autoScrollEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FY.prototype,"autoScrollEnabledChanged",null);_.d([_.KU()],FY);_.kuE=[FY.prototype];var rD8;var BU=function(){var S=_.W.apply(this,arguments)||this;S.buttonUpdate=_.u("web_button_rework");S.dismissButtonOverrides=_.u("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;S.forceDarkTheme=!1;S.forceLightTheme=!1;S.dynamicTextHeight=94;S.hasOverflowButton=!1;S.isInfeedModernization=!1;return S};
_.C(BU,_.W);_.J=BU.prototype;_.J.computeUrlImg=function(S){if(S)return _.Ja(S.thumbnails)};
_.J.getLogoHeight=function(S){return this.logoWithPadding(S)?"31":"24"};
_.J.getLogoClassName=function(S){return this.logoWithPadding(S)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.J.logoWithPadding=function(S){var c,Q;return(S=(c=S.thumbnails)==null?void 0:(Q=c[0])==null?void 0:Q.height)&&S%31===0?!0:!1};
_.J.sendImpressionEndpoints=function(S){S.impressionEndpoints&&_.xt(this.hostElement,S.impressionEndpoints)};
_.J.observeBasicPalette=function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.colorData)==null?void 0:c.basicColorPaletteData;Q?_.s2(this.hostElement,Q):_.s2(this.hostElement,{})};
_.J.observeDataChanged=function(){var S;this.dynamicTextHeight=((S=this.data)==null?0:S.supplementalText)?74:94;var c;this.hasSupplementalText=!((c=this.data)==null||!c.supplementalText);if(_.u("web_button_rework")){var Q,f,U,a;S=(Q=this.data)==null?void 0:(f=Q.actionButton)==null?void 0:(U=f.buttonRenderer)==null?void 0:(a=U.colorData)==null?void 0:a.basicColorPaletteData;var X,z,x;if(!((X=this.data)==null?0:(z=X.actionButton)==null?0:(x=z.buttonRenderer)==null?0:x.style)&&S){this.computeIsInfeedModernization(this.data)||
(S.borderColor=S.foregroundTitleColor);var I,n;this.set("data.actionButton.buttonRenderer",_.Cn.unsafeClone((I=this.data)==null?void 0:(n=I.actionButton)==null?void 0:n.buttonRenderer))}}};
_.J.observeDataForCounterfactual=function(){if(_.u("kevlar_banner_cf_extra_logging")){var S;((S=this.data)==null?0:S.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.J.computeSupplementalStyle=function(){var S;if((S=this.data)!=null&&S.supplementalText){var c,Q,f;if((c=this.data)==null?0:(Q=c.colorData)==null?0:(f=Q.basicColorPaletteData)==null?0:f.foregroundActivatedColor)return S=_.WV(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+S+"; --yt-endpoint-hover-color:"+S+"; --yt-endpoint-visited-color:"+S+"; --yt-formatted-string-bold-font-weight:700;"}};
_.J.computeForcedDarkTheme=function(){var S,c,Q,f=(S=this.data)==null?void 0:(c=S.actionButton)==null?void 0:(Q=c.buttonRenderer)==null?void 0:Q.style,U,a,X;S=ai2(((U=this.data)==null?void 0:(a=U.colorData)==null?void 0:(X=a.basicColorPaletteData)==null?void 0:X.backgroundColor)||0);return f&&S};
_.J.computeForcedLightTheme=function(){var S,c,Q,f=(S=this.data)==null?void 0:(c=S.actionButton)==null?void 0:(Q=c.buttonRenderer)==null?void 0:Q.style,U,a,X;S=!ai2(((U=this.data)==null?void 0:(a=U.colorData)==null?void 0:(X=a.basicColorPaletteData)==null?void 0:X.backgroundColor)||0);return f&&S};
_.J.computeHasOverflowButton=function(S){return!!S.overflowButton};
_.J.computeHasTitle=function(S){return!!S.title};
_.J.computeTitleMaxFontSize=function(S){return this.computeHasOverflowButton(S)?28:64};
_.J.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.J.computeIsInfeedModernization=function(){var S,c,Q,f,U=(S=this.data)==null?void 0:(c=S.actionButton)==null?void 0:(Q=c.buttonRenderer)==null?void 0:(f=Q.colorData)==null?void 0:f.basicColorPaletteData;return(U==null?void 0:U.backgroundColor)===452984831||(U==null?void 0:U.backgroundColor)===218103808};
BU.prototype.observeDataForCounterfactual=BU.prototype.observeDataForCounterfactual;BU.prototype.observeDataChanged=BU.prototype.observeDataChanged;BU.prototype.observeBasicPalette=BU.prototype.observeBasicPalette;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BU.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],BU.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],BU.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BU.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BU.prototype,"buttonUpdate",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],BU.prototype,"hasSupplementalText",void 0);_.d([_.Z(),_.P("design:type",Object)],BU.prototype,"dismissButtonOverrides",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.P("design:type",Boolean)],BU.prototype,"hasTitle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.P("design:type",Object)],BU.prototype,"forceDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.P("design:type",Object)],BU.prototype,"forceLightTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],BU.prototype,"dynamicTextHeight",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.P("design:type",Object)],BU.prototype,"hasOverflowButton",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.P("design:type",Object)],BU.prototype,"isInfeedModernization",void 0);_.d([_.B0("data.colorData.basicColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BU.prototype,"observeBasicPalette",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BU.prototype,"observeDataChanged",null);_.d([_.B0("data.isVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BU.prototype,"observeDataForCounterfactual",null);_.d([_.e({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],BU);
_.k(BU,"ytd-banner-promo-renderer",function(){if(rD8!==void 0)return rD8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return rD8=S},{mode:1});var d4E;var v88;var PmN;var Ib=function(){return _.W.apply(this,arguments)||this};
_.C(Ib,_.W);_.d([_.Z(),_.P("design:type",Object)],Ib.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);_.d([_.e({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],Ib);
_.k(Ib,"ytd-hashtag-grid-tile-renderer",function(){if(PmN!==void 0)return PmN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return PmN=S},{mode:1});var n7=function(){return _.W.apply(this,arguments)||this};
_.C(n7,_.W);n7.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
n7.prototype.updateRichGridTrendingHashtagsVisibility=function(){var S,c;if(((S=this.data)==null||!S.isExpanded)&&(c=this.data)!=null&&c.tiles){S=this.data.tiles.length;c=S>this.richGridItemsPerRow?this.richGridItemsPerRow+1:S;var Q=Math.ceil(S/c);this.fullyVisibleRows=S%c===1&&Q===2?1:Math.min(Q,2);this.isShowMoreVisible=this.fullyVisibleRows<Q}};
n7.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
n7.prototype.updateRichGridTrendingHashtagsVisibility=n7.prototype.updateRichGridTrendingHashtagsVisibility;_.d([_.Z(),_.P("design:type",Object)],n7.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Number)],n7.prototype,"fullyVisibleRows",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],n7.prototype,"isShowMoreVisible",void 0);_.d([_.Z({selector:_.wP,value:0}),_.P("design:type",Number)],n7.prototype,"richGridItemsPerRow",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],n7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],n7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],n7.prototype,"ytdReduxBehavior",void 0);_.d([_.B0("data","richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n7.prototype,"updateRichGridTrendingHashtagsVisibility",null);
_.d([_.e({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],n7);
_.k(n7,"ytd-hashtag-grid-shelf-renderer",function(){if(v88!==void 0)return v88;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return v88=S},{mode:1});var LsE;var E8O;var bP=function(){var S=_.W.apply(this,arguments)||this;S.visibleVideos=[];S.hiddenVideos=[];S.modern=_.u("web_modern_buttons");S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(bP,_.W);_.J=bP.prototype;_.J.attached=function(){var S=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",S);this.onDarkModeToggledAction(S)};
_.J.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"}}}};
_.J.dataChanged=function(){var S=this;this.requestElementsPerRow();var c,Q;this.currentColorPalette=this.isDarkTheme?(c=this.data)==null?void 0:c.darkColorData:(Q=this.data)==null?void 0:Q.lightColorData;var f;if((f=this.currentColorPalette)==null?0:f.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.tO(this,function(){S.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.J.computeIsFirstFeedItem=function(S){return S};
_.J.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S);this.data&&(this.currentColorPalette=S?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.J.getCurrentLogo=function(S,c){if(S)return c?S.darkLogoImage:S.lightLogoImage};
_.J.computeTitleStyle=function(S){var c;if((c=this.data)!=null&&c.title&&S&&S.textPrimary!==void 0)return"color:"+_.WV(S.textPrimary)+";"};
_.J.computeSubtitleStyle=function(S){var c;if((c=this.data)!=null&&c.subtitle&&S&&S.textSecondary!==void 0)return"color:"+_.WV(S.textSecondary)+";"};
_.J.computeDismissIconStyle=function(S){if(this.data&&this.data.dismissButton&&S&&S.textPrimary!==void 0)return"--yt-button-color:"+_.WV(S.textPrimary)+";"};
_.J.computeOverflowButtonStyle=function(S){if(this.data&&this.data.overflowButton&&S&&S.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.WV(S.textPrimary)+";--yt-spec-icon-active-other:"+_.WV(S.textPrimary)+";"};
_.J.computeBackgroundStyle=function(S){if(S&&this.data){var c="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var Q=_.Ja((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);Q&&(c+='background-image:url("'+Q+'");')}S.backgroundColor!==void 0&&(c+="background-color:"+_.gh(S.backgroundColor)+";");return c}};
_.J.computeButton=function(){var S,c=Object.assign({},_.Y((S=this.data)==null?void 0:S.showMoreButton,_.GF));if(this.modern&&c){c.style="STYLE_MONO_OUTLINE";var Q;if(S=(Q=this.currentColorPalette)==null?void 0:Q.textPrimary)c.colorData={basicColorPaletteData:{foregroundTitleColor:S,borderColor:S}}}return c};
_.J.shouldShowBottomButton=function(S,c){return!(S==null?0:S.header)&&!(S==null||!S.primaryButton)&&c<3};
_.J.checkExpanded=function(S){this.isExpanded=S&&S.content?this.hiddenVideos.length===0:!0};
_.J.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.J.getLogoHeight=function(S){return this.logoWithPadding(S)?"26":"20"};
_.J.getLogoImageId=function(S){return this.logoWithPadding(S)?"logo-image-with-padding":"logo-image"};
_.J.computeHasSectionHeader=function(S){return!!S.header};
_.J.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var S;if((S=this.data.primaryButton)==null?0:S.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 c;((c=this.data.dismissButton)==null?0:c.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var Q,f;((Q=this.data)==null?0:(f=Q.primaryButton)==null?0:f.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.J.setVisibleVideos=function(S){if(this.data&&this.data.content)if(this.data.content.length){var c=this.data.content.length;this.data.header?S?(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.slimItemsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(c,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow),c)):(this.visibleVideos=this.data.content.slice(0,Math.min(c,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(c,this.elementsPerRow-1),c))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.J.setHasMovieRenderer=function(){var S;if((S=this.data)!=null&&S.content){var c;this.hasMovieRenderer=!!_.Y((c=this.data)==null?void 0:c.content[0],_.Zfd)}else this.hasMovieRenderer=!1};
_.J.requestElementsPerRow=function(){_.Az(this.hostElement,"yt-request-elements-per-row")};
_.J.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var S=_.A(this.hiddenMediaRenderers),c=S.next();!c.done;c=S.next())c.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(S=_.Ur(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&S.focus()}};
_.J.updateTitleSpec=function(){var S;(S=this.data)!=null&&S.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.J.logoWithPadding=function(S){var c,Q,f;return(S=(c=this.getCurrentLogo(S,this.isDarkTheme))==null?void 0:(Q=c.thumbnails)==null?void 0:(f=Q[0])==null?void 0:f.height)&&S%31===0?!0:!1};
_.J.onUpdateElementsPerRowAction=function(S,c,Q){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S);Q&&this.slimItemsPerRow!==Q&&(this.slimItemsPerRow=Q)};
bP.prototype.slimItemsPerRowChanged=bP.prototype.slimItemsPerRowChanged;bP.prototype.elementsPerRowChanged=bP.prototype.elementsPerRowChanged;bP.prototype.dataChanged=bP.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],bP.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],bP.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],bP.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bP.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],bP.prototype,"currentColorPalette",void 0);_.d([_.Z(),_.P("design:type",Array)],bP.prototype,"visibleVideos",void 0);_.d([_.Z(),_.P("design:type",Array)],bP.prototype,"hiddenVideos",void 0);
_.d([_.Z(),_.P("design:type",Object)],bP.prototype,"primaryButton",void 0);_.d([_.Z({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],bP.prototype,"elementsPerRow",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],bP.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],bP.prototype,"isExpanded",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],bP.prototype,"largeTitle",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],bP.prototype,"hasMovieRenderer",void 0);_.d([_.Z(),_.P("design:type",Number)],bP.prototype,"slimItemsPerRow",void 0);_.d([_.Z(),_.P("design:type",Boolean)],bP.prototype,"showLightVideoMetadata",void 0);_.d([_.Z(),_.P("design:type",Boolean)],bP.prototype,"showDarkVideoMetadata",void 0);_.d([_.Z(),_.P("design:type",Number)],bP.prototype,"videoMetadataColor",void 0);
_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],bP.prototype,"miniMode",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.P("design:type",Boolean)],bP.prototype,"isFirstFeedItem",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.P("design:type",Boolean)],bP.prototype,"hasSectionHeader",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],bP.prototype,"roundedContainer",void 0);_.d([_.bw("#visible-video-container ytd-rich-grid-media"),_.P("design:type",Array)],bP.prototype,"visibleMediaRenderers",void 0);_.d([_.bw("#hidden-video-container ytd-rich-grid-media"),_.P("design:type",Array)],bP.prototype,"hiddenMediaRenderers",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bP.prototype,"modern",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bP.prototype,"dataChanged",null);_.d([_.B0("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bP.prototype,"elementsPerRowChanged",null);_.d([_.B0("slimItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bP.prototype,"slimItemsPerRowChanged",null);
_.d([_.e({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],bP);
_.k(bP,"ytd-brand-video-shelf-renderer",function(){if(E8O!==void 0)return E8O;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return E8O=S},{mode:1});var tZ2;var NC=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(NC,_.W);_.J=NC.prototype;_.J.attached=function(){var S=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",S);this.onDarkModeToggledAction(S)};
_.J.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"}}}};
_.J.dataChanged=function(){this.requestElementsPerRow();var S,c;this.currentColorPalette=this.isDarkTheme?(S=this.data)==null?void 0:S.darkColorData:(c=this.data)==null?void 0:c.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.J.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.J.computeIsFirstFeedItem=function(S){return S};
_.J.onDarkModeToggledAction=function(S){S!==this.isDarkTheme&&this.set("isDarkTheme",S);this.data&&(this.currentColorPalette=S?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(S),this.updateButtonPalette())};
_.J.shouldShowThumbnailInMetadata=function(S){return S<=1};
_.J.computeVideoMetadataColor=function(){if(this.data){var S;if((S=this.currentColorPalette)==null?0:S.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.J.computeTitleStyle=function(S){var c;if((c=this.data)!=null&&c.title&&S&&S.textPrimary!==void 0)return"color:"+_.WV(S.textPrimary)+";"};
_.J.computeSubtitleStyle=function(S){var c;if((c=this.data)!=null&&c.subtitle&&S&&S.textSecondary!==void 0)return"color:"+_.WV(S.textSecondary)+";"};
_.J.computeOverflowButtonStyle=function(S){if(this.data&&this.data.overflowButton&&S.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.WV(S.textPrimary)+";--yt-spec-icon-active-other:"+_.WV(S.textPrimary)+";"};
_.J.computeBackgroundStyle=function(S){if(S&&this.data){var c="";S.backgroundColor!==void 0&&(c+="background-color:"+_.gh(S.backgroundColor)+";");return c}};
_.J.computeHasOverflowButton=function(S){return!!S.overflowButton};
_.J.updateButtonPalette=function(){if(this.data){var S;if((S=this.data.primaryButton)==null?0:S.buttonRenderer){var c;if((c=this.currentColorPalette)==null?0:c.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var Q;((Q=this.currentColorPalette)==null?0:Q.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)})}}};
_.J.requestElementsPerRow=function(){_.Az(this.hostElement,"yt-request-elements-per-row")};
_.J.updateTitleSpec=function(){var S;(S=this.data)!=null&&S.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")};
_.J.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S)};
NC.prototype.elementsPerRowChanged=NC.prototype.elementsPerRowChanged;NC.prototype.dataChanged=NC.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],NC.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],NC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],NC.prototype,"ytdDismissibleItemBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],NC.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],NC.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],NC.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],NC.prototype,"currentColorPalette",void 0);_.d([_.Z(),_.P("design:type",Object)],NC.prototype,"primaryButton",void 0);
_.d([_.Z({reflectToAttribute:!0,value:3}),_.P("design:type",Number)],NC.prototype,"elementsPerRow",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],NC.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],NC.prototype,"titleSize",void 0);_.d([_.Z(),_.P("design:type",Number)],NC.prototype,"videoMetadataColor",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],NC.prototype,"miniMode",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.P("design:type",Boolean)],NC.prototype,"isFirstFeedItem",void 0);_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],NC.prototype,"roundedContainer",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.P("design:type",Boolean)],NC.prototype,"hasOverflowButton",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NC.prototype,"dataChanged",null);_.d([_.B0("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NC.prototype,"elementsPerRowChanged",null);_.d([_.e({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],NC);
_.k(NC,"ytd-brand-video-singleton-renderer",function(){if(tZ2!==void 0)return tZ2;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return tZ2=S},{mode:_.A2("kevlar_poly_si_batch_j070")?1:2});var VZU;var R_2=_.y_(function(S){var c=S.data;return _.B(_.RW,{data:function(){return c().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(c().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var Q=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":Q=88;break a;default:Q=88}return Q},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return c().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"ri"),o8E=_.y_(function(S){var c=S.metadataRow;
var Q=S.delimiter;return _.B(_.lW,{each:function(){return c().textParts||[]},
keyBy:"INDEX"},function(f,U){return _.B(_.ak,null,_.B(_.mw,{text:f,noWrap:!0,userInput:!0}),_.B(yDT,{delimiter:Q,max:function(){return c().textParts.length},
index:U}))})},"si"),yDT=_.y_(function(S){var c=S.delimiter;
var Q=S.max;var f=S.index;return _.B(_.K,{cond:function(){return(c==null?void 0:c())&&Q()-1>f()},
then:function(){return _.B("span",null,c)}})},"ti"),m48=_.y_(function(S){var c=S.data;
S={};return _.B("yt-profile-page-header-information-view-model",{class:_.n4("profile-page-header-information-view-model-wiz",(S["profile-page-header-information-view-model-wiz--mobile"]=!1,S))},_.B(_.K,{cond:function(){return c().onTap},
then:function(){return _.B(_.xJ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Gv(c().onTap)}},_.B(_.h8,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:R_2}))},
else:function(){return _.B("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.B(_.h8,{data:function(){return c().thumbnail}},{profilePageHeaderThumbnailViewModel:R_2}))}}),_.B("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.B(_.K,{cond:function(){return c().onTap},
then:function(){return _.B(_.h8,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(Q){var f=Q.data;
return _.B(_.xJ,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Gv(f().onTap)}},_.B(_.mw,{text:function(){return f().title}}))}})},
else:function(){return _.B(_.h8,{data:function(){return c().title}},{profilePageHeaderTitleViewModel:function(Q){var f=Q.data;
return _.B(_.mw,{text:function(){return f().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.B(_.h8,{data:function(){return c().metadata}},{profilePageHeaderMetadataViewModel:function(Q){var f=Q.data;
return _.B(_.K,{cond:function(){return f().metadataRows},
then:function(U){return _.B("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.B(_.lW,{each:U,keyBy:"INDEX"},function(a,X){return _.B(_.ak,null,_.B(o8E,{metadataRow:a,delimiter:" \u2022 "}),_.B(yDT,{delimiter:" \u2022 ",max:function(){return U().length},
index:X}))}))}})}})))},"ui");
m48.idomCompat=!0;_.f4(m48,"yt-profile-page-header-information-view-model",{props:{data:_.y$}});var K7=function(){return _.W.apply(this,arguments)||this};
_.C(K7,_.W);K7.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],K7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],K7.prototype,"data",void 0);_.d([_.e({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],K7);
_.k(K7,"ytd-effect-pivot-header-view-model",function(){if(VZU!==void 0)return VZU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return VZU=
S},{mode:1});var SB0;var $e=function(){return _.W.apply(this,arguments)||this};
_.C($e,_.W);$e.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$e.prototype,"data",void 0);_.d([_.e({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],$e);
_.k($e,"ytd-source-pivot-header-renderer",function(){if(SB0!==void 0)return SB0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return SB0=S},{mode:1});_.cE1=_.y_(function(S){var c=S.data;S=_.EH("content-list-item-view-model");_.LS(S,function(){return c().rendererContext});
var Q=function(){var U;return _.PK((U=c())==null?void 0:U.rendererContext)},f={};
return _.B("content-list-item-view-model",{el:S,class:_.n4("ytContentListItemViewModelHost",(f.ytContentListItemViewModelTappable=Q,f)),role:function(){return Q()?"listitem":void 0},
tabindex:function(){return Q()?0:void 0}},_.B("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.B("div",{class:"ytContentListItemViewModelImageContainer"},_.B(_.K,{cond:function(){return c().image},
then:function(U){return _.B(_.RW,{data:U,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.B(_.h8,{data:function(){var U;
return(U=c())==null?void 0:U.avatar}},{avatarViewModel:_.p3})),_.B("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.B("div",{class:_.n4("ytContentListItemViewModelTitle",function(){a:{switch(c().titleStyle){case "CONTENT_LIST_ITEM_TITLE_STYLE_PROMINENT":var U="ytContentListItemViewModelProminentTitle";
break a}U=void 0}return U})},_.B(_.mw,{text:function(){return c().title}})),_.B("div",{class:"ytContentListItemViewModelMetadata"},_.B(_.h8,{data:function(){return c().metadata}},{contentMetadataViewModel:function(U){return _.B(_.t3p,{data:U.data,
layout:1})}})))),_.B("div",{class:"ytContentListItemViewModelActionButton"},_.B(_.h8,{data:function(){var U;
return(U=c())==null?void 0:U.actionButton}},{buttonViewModel:_.Ze,
toggleButtonViewModel:_.qs})))},"vi");_.f4(_.y_(function(S){var c={},Q={},f={},U={};return _.B("yt-card-view-model",{class:_.n4("ytCardViewModelHost",S.className,(c.ytCardViewModelOutline=function(){return S.data().cardStyle==="CARD_STYLE_OUTLINE"},c),(Q.ytCardViewModelRaised=function(){return S.data().cardStyle==="CARD_STYLE_RAISED"||S.data().cardStyle==="CARD_STYLE_UNSPECIFIED"},Q),(f.ytCardViewModelTonal=function(){return S.data().cardStyle==="CARD_STYLE_TONAL"},f),(U.ytCardViewModelInverted=function(){return S.data().cardStyle===
"CARD_STYLE_INVERSE"},U))},_.B(_.h8,{data:function(){return S.data().background}},{cinematicContainerViewModel:function(a){return _.B(_.Gd_,{data:a.data})}}),_.B("div",{class:"ytCardViewModelContentWrapper"},_.B(_.h8,{data:function(){return S.data().content}},{contentListItemViewModel:function(a){return _.B(_.cE1,{data:a.data})}})),_.B(_.h8,{data:function(){return S.data().dismissAction}},{buttonViewModel:function(a){return _.B(_.Ze,{data:a.data})}}))},"wi"),"yt-card-view-model",{props:{data:_.y$,
className:_.y$}});_.f4(_.y_(function(S){var c=function(){return _.Y(S.data().flowRoot,ppV)};
_.wC(function(){var Q=c(),f=function(){},U=function(){};
if(Q){var a,X,z,x=((z=_.Y((a=c())==null?void 0:(X=a.steps)==null?void 0:X[0],_.qhV))==null?void 0:z.stepId)||"";NgZ(Q,x);f=$4G(Q);U=ujE(Q)}_.wX(function(){var I=c();I&&_.V5().dispatch(_.Ns("flowStateEntity",I.flowStateEntityKey));f();f=function(){};
U();U=function(){}})});
return _.B("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.B(_.o$z,{contentId:function(){return S.data().contentId}},function(){return _.B("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.B(_.K,{cond:c,
then:function(Q){return _.B(_.HbV,{data:Q})}}))}))},"xi"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.y$}});_.f4(_.y_(function(){return _.B("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.B("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.B("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.B(_.B5V,null)),_.B(_.mM$,{data:{rows:1},isExploreHub:!0}))},"yi"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.f4(_.y_(function(S){var c=S.data;var Q=S.standardUnitMinWidth;S=_.EH("ytd-chips-shelf-with-video-shelf-renderer");var f=_.A((0,_.fbd)(c)),U=f.next().value,a=f.next().value,X=function(){var x,I=(x=U())==null?void 0:x.contents;return I==null||I.length===0},z=function(){a(Object.assign({},U(),{contents:[]}))};
_.cn(S,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var x=_.Y(c().chipsShelf,q38);if(x!=null&&x!=null&&x.autoselectChipOnVisible){var I,n,b=_.Y(x==null?void 0:(I=x.contents)==null?void 0:I[(n=x.autoselectedChipIndex)!=null?n:0],_.kc);b&&b.tapCommand&&_.kz(b.tapCommand)}}});
return _.B("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:S},_.B(_.o$z,{contentId:function(){return c().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.B("div",null,_.B("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.B(_.h8,{data:function(){return c().header}},{sectionHeaderViewModel:function(x){return _.B(_.aO,{data:x.data,
disableHorizontalPadding:!0})}})),_.B("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.B(_.h8,{data:function(){return c().chipsShelf}},{chipsShelfViewModel:function(x){return _.B(_.UyJ,{data:x.data,
callback:z,enableSingleChipSelection:!0})}})),_.B("div",null,_.B(_.K,{cond:X,
then:function(){return _.B("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.B(_.mM$,{data:{rows:1},isExploreHub:!0}))}}),_.B(_.h8,{data:function(){var x;
return(x=U())==null?void 0:x.contents}},{richShelfRenderer:function(x){return _.B(_.Up_,{data:x.data,
isInnerShelf:!0,standardUnitMinWidth:Q})}})))}))},"zi"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.y$,
standardUnitMinWidth:_.y$}});var uP=function(){return _.W.apply(this,arguments)||this};
_.C(uP,_.W);
uP.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}}};
uP.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.d([_.p(_.st),_.P("design:type",Object)],uP.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],uP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],uP.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uP.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Number)],uP.prototype,"standardUnitMinWidth",void 0);_.d([_.e({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],uP);
_.k(uP,"ytd-rich-section-renderer",function(){if(LsE!==void 0)return LsE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return LsE=S},{mode:_.A2("kevlar_poly_si_batch_j029")?
1:2});_.f4(_.ttZ,"yt-profile-identity-info-view-model",{props:{data:_.y$,hideDivider:_.y$}});_.f4(_.LKz,"yt-page-header-view-model",{props:{data:_.y$,noPadding:_.y$,enableBanner:_.y$,cinematicContainerTopbarOffset:_.y$,allowCinematicContainerOverflow:_.y$,displayAsSidebar:_.y$,displayAsPanel:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=function(){var U;return(U=c().numColumns)!=null?U:2},f=function(){return Q()>1?3:2};
S={};return _.B("ytd-rich-grid-group",{class:_.n4("ytdRichGridGroupHost",(S.ytdRichGridGroupHostFirstColumn=function(){return c().colIndex===0},S)),
style:_.Yd({"--ytd-rich-grid-group-num-columns":Q,"--ytd-rich-grid-items-per-group":f})},_.B("div",{class:"ytdRichGridGroupContents"},_.B(_.h8,{data:function(){var U;return(U=c().contents)==null?void 0:U.slice(0,f())}},{richItemRenderer:function(U){return _.B(_.QVh,{data:U.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"Ai"),"ytd-rich-grid-group",{props:{data:_.y$}});var jQ=function(){var S=_.W.apply(this,arguments)||this;S.resizeOnObserverInit=!1;S.isInlinePreviewDisabled=_.u("web_disable_inline_preview");S.disableStickyFilterBar=!1;S.transparentBackgroundChipsBar=!1;S.hideChipsBar=!1;S.isWatchDefaultLayout=!0;S.continuationShowButton=!1;S.rowReducedHorizontalMargin=!1;S.useCompactList=!1;S.manualDownloadsPresent=!1;S.smartDownloadsPresent=!1;S.shouldRenderDownloadsBanner=!1;S.hasOptedIntoSmartDownloads=!1;S.elementsPerRow=4;S.typographyBump=!1;S.showGnomeContents=
!1;S.showExploreHubContents=!1;S.slimItemsPerRow=1;S.pageLoadingFromNavigation=!1;S.loggingRefactor=_.u("kevlar_rich_grid_logging_fix");S.resizeObserver=null;S.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"};S.rendererToTagNameMap=
new Map(Object.entries(S.contentMapping()).map(function(c){var Q=_.A(c);c=Q.next().value;Q=Q.next().value;return[c,Q.component]}));
S.insertedContent=new Map;return S};
_.C(jQ,_.W);_.J=jQ.prototype;_.J.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var S=_.A(_.Ur(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=S.next();!c.done;c=S.next())c.value.useCompactList=this.useCompactList};
_.J.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var S=_.A(_.Ur(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),c=S.next();!c.done;c=S.next())c=c.value,c.sizing=this.sizing,c.typographyBump=this.typographyBump};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.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]]"}}}};
_.J.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}}};
_.J.attached=function(){document.addEventListener("yt-page-type-changed",_.xn(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.JSC$19323_throttledOnResize=new _.S0(this.resizeObserved,_.a6("rich_grid_resize_delay_ms",50),this)};
_.J.detached=function(){var S;(S=this.resizeObserver)==null||S.disconnect();document.removeEventListener("yt-page-type-changed",_.xn(this,this.onPageChange))};
_.J.insertRichSection=function(S){var c=S.richItemTargetId;S=S.richSectionRendererToInsert;c&&S&&(this.insertedContent.set(c,S),this.reflowContent())};
_.J.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.J.computeIsInlinePreviewEnabled=function(S,c,Q){return _.u("web_disable_inline_preview")?!1:!Q&&_.$fU({miniplayerIsActive:S,miniplayerPlaybackState:c})};
_.J.computeSizing=function(){var S=_.xMx(this.data);if(S||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return S?this.useCompactList?"COMPACT":S:this.miniMode?"COMPACT":_.u("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.J.updateItemMinAndMaxWidth=function(){var S=_.a6("rich_grid_max_item_width",500);S>0&&_.Or(this.hostElement,{"--ytd-rich-grid-item-max-width":S+"px"});var c;S=this.getRichItemMinWidth((c=this.hostElement)==null?void 0:c.clientWidth);S>0&&_.Or(this.hostElement,{"--ytd-rich-grid-item-min-width":S+"px"})};
_.J.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.J.resizeObserved=function(){_.Oz(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.J.navigateBackToHome=function(){_.u("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.u("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var S=_.fl().resolve(_.oZ).isOnWatch(),c,Q=((c=_.IM(location.pathname))==null?void 0:c.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(Q)||S)&&this.gnomeContents&&_.u("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);S&&this.exploreHubContents&&_.u("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.V5().dispatch(_.aB({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.J.onPageChange=function(){var S=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.u("disable_chip_select_on_nav")||_.Oz(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.Mq.addJob(function(){S.pageLoadingFromNavigation=!1;_.u("disable_chip_select_on_nav")&&_.u("h5_reset_cache_and_filter_before_update_masthead")&&S.resetCacheAndIsFilteredFeed();S.setMasthead();S.maybeSetBigYoodle();S.forceRefreshAndLog();S.terminateVideoPreview();_.u("web_hide_gnome_until_user_navigates_back_to_home")&&
(S.dataChanged(),_.tO(S,function(){if(S.showGnomeContents){var c=Array.from(_.Ur(S.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){f=_.Ur(f).querySelector("ytd-rich-shelf-renderer");return!!f&&f.isGnomeShelf()});
if(c){c=c.offsetTop-S.contentsElement.offsetTop;var Q=_.fl().resolve(_.oZ).getCurrentPage();Q&&Q.getPageScrollingElement().scrollTo({top:c,behavior:"smooth"})}}}));
_.u("web_hide_explore_hub_until_user_navigates_back_to_home")&&(S.dataChanged(),_.tO(S,function(){if(S.showExploreHubContents&&!_.u("web_explore_hub_no_scroll")){var c=Array.from(_.Ur(S.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(f){return!!f.querySelector("ytd-talk-to-recs-flow-renderer")});
if(c){c=c.offsetTop-S.contentsElement.offsetTop;var Q=_.fl().resolve(_.oZ).getCurrentPage();Q&&Q.getPageScrollingElement().scrollTo({top:c,behavior:"smooth"})}}}))},8)):((_.u("web_hide_gnome_until_user_navigates_back_to_home")||_.u("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.J.dataChanged=function(){var S=this,c=_.a6("web_rich_grid_row_margin",0);c>0&&_.Or(this.hostElement,{"--ytd-rich-grid-row-margin":c+"px"});_.Oz(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.tO(this,function(){S.updateRichItemGridPositions();S.contentsElement&&_.Or(S.hostElement,{"--ytd-rich-grid-content-offset-top":S.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.J.initResizeObserver=function(){var S=this;if(window.ResizeObserver){var c;(c=this.resizeObserver)==null||c.disconnect();var Q=!1;this.resizeObserver=new ResizeObserver(function(){if(Q){var f;(f=S.resizeObserver)==null||f.disconnect();var U;(U=S.JSC$19323_throttledOnResize)==null||U.fire();requestAnimationFrame(function(){var X;(X=S.JSC$19323_throttledOnResize)==null||X.fire();S.initResizeObserver()})}else if(Q=!0,S.resizeOnObserverInit){var a;
(a=S.JSC$19323_throttledOnResize)==null||a.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.J.contentLengthChanged=function(){if(_.u("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.Oz(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.updateElementsPerRow=function(){_.Oz(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.aB({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.aB({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.J.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.J.onRichShelfRendererCollapse=function(S){if(this.shownItems){var c=S.detail;S=this.shownItems.findIndex(function(f){var U,a;return((a=_.Y(f==null?void 0:(U=f.richSectionRenderer)==null?void 0:U.content,_.AMu))==null?void 0:a.trackingParams)===c});
var Q=S+1;S<0||Q>=this.contentsElement.children.length||!this.shownItems[Q].richItemRenderer||this.contentsElement.children[Q].scrollIntoView({behavior:"smooth",block:"start"})}};
_.J.onSoftReloadPage=function(){this.scrollUpToTop()};
_.J.handleRerenderDownloadsData=function(){_.u("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.J.handlePlaylistRemoveVideosAction=function(S){var c;if(((c=_.Y(S,_.DJd))==null?0:c.setVideoIds)&&this.data&&this.data.contents){S=_.Y(S,_.DJd).setVideoIds;for(c=this.data.contents.length-1;c>=0;){var Q=_.Y(this.data.contents[c],_.qB);(Q=Q&&_.Y(Q.content,_.Zw))&&Q.setVideoId&&S.includes(Q.setVideoId)&&this.splice("data.contents",c,1);c--}this.updateIndices()}};
_.J.updateIndices=function(){if(this.data&&this.data.contents)for(var S=0;S<this.data.contents.length;S++)this.set("data.contents."+S+".richItemRenderer.index",_.LK(String(S+1)))};
_.J.hasTopRowInlinePlayableVideoWithEndorsement=function(S){var c;return!((c=S.slice(0,this.getItemsPerRow()))==null||!c.some(function(Q){var f;Q=_.Y(Q==null?void 0:(f=Q.richItemRenderer)==null?void 0:f.content,_.gx);var U;return(Q==null?void 0:Q.inlinePlaybackEndpoint)&&(Q==null?void 0:(U=Q.thumbnailOverlays)==null?void 0:U.some(function(a){return a.thumbnailOverlayEndorsementRenderer}))}))};
_.J.refreshGridLayoutNew=function(S,c,Q,f){var U=f.postsPerRow;var a=f.slimItemsPerRow;var X=f.gameCardsPerRow;f=f.miniGameCardsPerRow;var z;if((z=this.data)==null||!z.contents||!this.containerWidth)return!1;var x;if((x=this.data.responsiveContainerConfiguration)==null?0:x.responsiveSize){var I=_.yfz(this.data.responsiveContainerConfiguration,this.containerWidth),n;z=_.Ri(Object.assign({},I,{standardUnitMinWidth:(n=this.data)==null?void 0:n.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&I.isCompactList)}else z=_.Ri({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(I=this.data)==null?void 0:I.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=z.typographyBump;n=!1;if(S||this.elementsPerRow!==z.numItems||this.postsPerRow!==U||this.slimItemsPerRow!==a||this.gameCardsPerRow!==
X||this.miniGameCardsPerRow!==f||this.gutter!==z.gutter)n=this.elementsPerRow!==z.numItems,this.elementsPerRow=z.numItems,this.postsPerRow=U,this.slimItemsPerRow=a,this.gameCardsPerRow=X,this.miniGameCardsPerRow=f,this.gutter=z.gutter,this.itemWidth=z.itemWidth,this.reflowContent(c),_.Or(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":z.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(Q);this.ytdReduxBehavior.dispatch(_.aB({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:z.maxContainerWidth}));return n};
_.J.refreshGridLayout=function(S,c){var Q,f=(Q=this.hostElement)==null?void 0:Q.clientWidth;this.containerWidth=this.adjustRichGridWidth(f,!0);var U;if((U=this.data)==null||!U.contents||!this.containerWidth)return S&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.u("rg_pending_reflow_ks")&&(S=!0,this.pendingForceReflow=!1);Q=this.getRichItemMinWidth(f);var a=this.isShortsPanel?146:194,X=this.getMiniGameCardMinWidth(),z=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
f=Q=this.calcElementsPerRow(Q,z);(U=Q<=3&&this.miniModeAllowed())&&(Q=this.calcElementsPerRow(240,4));var x=this.calcMaxSlimElementsPerRow(Q,z,this.isDefaultGrid);z=this.calcElementsPerRow(a,x);var I=this.calcElementsPerRow(this.isCompactGrid?a:154,x);a=this.calcElementsPerRow(this.isCompactGrid?a:X,x);X=!1;if(this.sizing)return this.refreshGridLayoutNew(S,c,U,{postsPerRow:f,slimItemsPerRow:z,gameCardsPerRow:I,miniGameCardsPerRow:a});if(S||this.elementsPerRow!==Q||this.postsPerRow!==f||this.slimItemsPerRow!==
z||this.gameCardsPerRow!==I||this.miniGameCardsPerRow!==a)X=this.elementsPerRow!==Q,this.elementsPerRow=Q,this.postsPerRow=f,this.slimItemsPerRow=z,this.gameCardsPerRow=I,this.miniGameCardsPerRow=a,this.reflowContent(c),this.updateElementsPerRow(),_.Or(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)&&_.Or(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(U);_.Oz(this.hostElement,"yt-rich-grid-layout-refreshed");return X};
_.J.getRichItemMinWidth=function(S){var c=_.a6("rich_grid_min_item_width",310);if(!_.u("kevlar_disable_min_width_override")){var Q,f;c=(f=(Q=this.data)==null?void 0:Q.minItemWidth)!=null?f:c}return c+_.UMT(S)};
_.J.calcMaxSlimElementsPerRow=function(S,c,Q){return(Q===void 0?0:Q)?S===1?2:S%2===0?_.u("web_shorts_2_by_3_reduce_items_per_row")&&S>=4?S/2*3-1:S/2*3:_.u("web_shorts_2_by_3_reduce_items_per_row")&&S>=3?S+1:S+2:c*2};
_.J.adjustRichGridWidth=function(S,c){var Q=_.u("disable_rich_grid_guide_compensation");if(!this.isWatch&&!Q){Q=_.fl().resolve(_.QS(_.WC));var f=Q==null?void 0:Q.guideElement;if(!(!Q||Q.getData()||f!=null&&f.opened||Q.getMiniGuideVisible()))if(Q.canFitPersistentGuide(S)&&Q.getGuideExpandsAutomatically()){var U,a,X=Number((U=window.getComputedStyle(this.hostElement))==null?void 0:(a=U.getPropertyValue("--app-drawer-width"))==null?void 0:a.replace("px",""));S-=X||0}else if(Q.canFitMiniGuide(S)){var z;
U=Number((X=window.getComputedStyle(this.hostElement))==null?void 0:(z=X.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:z.replace("px",""));S-=U||0}}S>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(S-=c?32:48));return S};
_.J.calcElementsPerRow=function(S,c){var Q=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),f=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((Q+f)/(S+f))||1,c)};
_.J.reflowContent=function(S){var c=this;if(!this.isReflowing){this.isReflowing=!0;var Q,f,U=!!((Q=this.data)==null?0:(f=Q.contents)==null?0:f.some(function(l){return _.Y(l,_.aK)}));
Q=this.getItemsPerRow();var a;f=(a=this.data)==null?void 0:a.reflowOptions;S&&(_.i2("rgr_s"),_.tO(this,function(){_.i2("rgr_nrf")}));
S={};(a=_.Ur(this.hostElement).querySelector("#contents"))&&(S={contentElement:a,rendererToTagNameMap:this.rendererToTagNameMap});a=(a=this.data.contents)?a.slice():[];var X=(_.u("web_hide_gnome_behind_feed_filter_chip")||_.u("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,z=_.u("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,x=-1,I=-1;if(this.isHomePage&&z){for(z=0;z<a.length;z++){var n=void 0,b=void 0;_.Y((n=a[z])==null?void 0:
(b=n.richSectionRenderer)==null?void 0:b.content,D4U)&&(I=z)}I>-1&&(this.exploreHubContents=a.splice(I,1))}if(this.isHomePage&&X){for(I=0;I<a.length;I++)b=n=void 0,(z=_.Y((n=a[I])==null?void 0:(b=n.richSectionRenderer)==null?void 0:b.content,_.AMu))&&X&&(b=n=void 0,z=_.Y((n=z)==null?void 0:(b=n.contents)==null?void 0:b[0],_.qB),n=void 0,_.Y((n=z)==null?void 0:n.content,_.XHd)&&(x=I));x>-1&&(this.gnomeContents=a.splice(x,1))}var N=z_T(a,Q,U,f,this.getRichGridStyle(),S,this.insertedContent);U=function(){c.shownItems=
N;c.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(N),_.tO(this,U)):U()}};
_.J.getFirstRowItems=function(S){for(var c=[],Q=0;Q<S.length;Q++){var f=void 0,U=void 0,a=void 0,X=void 0,z=void 0,x=void 0;if(((f=S[Q])==null?void 0:(U=f.richItemRenderer)==null?void 0:U.rowIndex)===0||((a=S[Q])==null?void 0:(X=a.richGroupRenderer)==null?void 0:X.rowIndex)===0||((z=S[Q])==null?void 0:(x=z.richSectionRenderer)==null?void 0:x.rowIndex)===0)c.push(S[Q]);else break}return c};
_.J.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.J.handleChipCloudChipSelectAction=function(S,c){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.u("web_hide_gnome_behind_feed_filter_chip")&&(c?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.J.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.u("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.J.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.u("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.J.terminateVideoPreview=function(){_.Oz(this.hostElement,"yt-terminate-video-preview-action")};
_.J.updateRichItemGridPositions=function(){var S={gridData:{gridColumnCount:this.elementsPerRow}},c;if((c=this.data)==null?0:c.trackingParams)this.loggingRefactor?_.Kv().stateChanged(this.data.trackingParams,S):(c=_.wN())&&_.yw(c,_.Yz(this.data.trackingParams),S);_.Oz(this.hostElement,"ytd-rich-item-index-update-action")};
_.J.miniModeAllowed=function(){return _.u("disable_channels_mini_mode")?!1:this.isChannelPage};
_.J.getMiniGameCardMinWidth=function(){return 154};
_.J.updateMiniMode=function(S){this.miniMode=this.miniModeAllowed()&&S;this.ytdReduxBehavior.dispatch(_.aB({type:"SET_RICH_GRID_MINI_MODE",payload:S}))};
_.J.isCurrentPage=function(){return location.pathname===this.pagePath};
_.J.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var S=_.fl().resolve(_.oZ).getCurrentPage();S&&S.setScrollTop(0)}};
_.J.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.J.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.J.maybeSetBigYoodle=function(){var S,c=(S=this.data)==null?void 0:S.bigYoodle;this.bigYoodleData!==c&&(this.bigYoodleData=c)};
_.J.setMasthead=function(){var S;((S=this.data)==null?0:S.masthead)?this.mastheadData=this.data.masthead:_.u("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.J.getRichGridStyle=function(){var S,c;return(c=(S=this.data)==null?void 0:S.style)!=null?c:"RICH_GRID_STYLE_UNKNOWN"};
_.J.onIsShortsGridChange=function(){var S=this.ytdReduxBehavior,c=S.dispatch,Q=this.getRichGridStyle();c.call(S,_.aB({type:"SET_RICH_GRID_STYLE",payload:Q}))};
_.Rh.Object.defineProperties(jQ.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var S=_.fl().resolve(_.oZ).getCurrentPage(),c,Q,f;return(((c=this.data)==null?void 0:c.targetId)==="browse-feedFEsfv_audio_pivot"||_.u("web_enable_channel_pivot_panel")&&((Q=this.data)==null?void 0:Q.targetId)==="browse-feedFEsfv_channel_pivot"||_.u("web_enable_effect_pivot_panel")&&((f=this.data)==null?void 0:f.targetId)==="browse-feedFEsfv_effect_pivot")&&(S==null?void 0:S.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.u("kevlar_watch_grid_reduced_top_margin_rich_grid")}},
noTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&!this.isWatchDefaultLayout}},
topRowEndorsement:{configurable:!0,enumerable:!0,get:function(){return this.isInlinePreviewEnabled&&this.hasTopRowInlinePlayableVideoWithEndorsement(this.shownItems)}},
hideHeader:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null?0:S.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var S;return((S=_.fl().resolve(_.oZ).getCurrentPage())==null?void 0:S.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var S;return((S=_.fl().resolve(_.oZ).getCurrentPage())==null?void 0:S.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 S;return this.hideChipsBar||(((S=this.data)==null?void 0:S.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.u("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.targetId)||"")==="watch-next-feed"&&!_.u("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?0:S.enableContentSpecificAspectRatio)||((c=this.data)==null?0:(Q=c.responsiveContainerConfiguration)==null?0:Q.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.a6("web_continuation_handler_margin",0):0}}});
jQ.prototype.onIsShortsGridChange=jQ.prototype.onIsShortsGridChange;jQ.prototype.onReloadContinuationFinish=jQ.prototype.onReloadContinuationFinish;jQ.prototype.reflowContent=jQ.prototype.reflowContent;jQ.prototype.handleRerenderDownloadsData=jQ.prototype.handleRerenderDownloadsData;jQ.prototype.onRichShelfRendererCollapse=jQ.prototype.onRichShelfRendererCollapse;jQ.prototype.onRequestElementsPerRow=jQ.prototype.onRequestElementsPerRow;jQ.prototype.contentLengthChanged=jQ.prototype.contentLengthChanged;
jQ.prototype.dataChanged=jQ.prototype.dataChanged;jQ.prototype.onSizingChange=jQ.prototype.onSizingChange;jQ.prototype.onUseCompactListChange=jQ.prototype.onUseCompactListChange;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],jQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.w9),_.P("design:type",Object)],jQ.prototype,"ironResizableBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],jQ.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],jQ.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],jQ.prototype,"componentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],jQ.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],jQ.prototype,"miniMode",void 0);_.d([_.Z({value:[]}),_.P("design:type",Array)],jQ.prototype,"shownItems",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],jQ.prototype,"isReflowing",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],jQ.prototype,"isFilteredFeed",void 0);_.d([_.Z({selector:_.FxZ}),_.P("design:type",Boolean)],jQ.prototype,"guideIsExpanded",void 0);
_.d([_.Z({selectorArgs:["entitySelectorType"],selector:function(S,c){if(_.u("kevlar_modern_downloads_page")&&c&&c!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(c){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var Q=S.entities;c=_.pK(Q);var f=_.hb(Q),U=_.Txz(S),a=_.qax(S);S=_.wAr(S);var X=_.UBz(Q),z=_.lZ(c);Q=_.qO(Q);return _.vPY(c,f,X,U,a,z,Q,S);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return c=_.pK(S.entities),_.LTz(c);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return c=
_.SaR(S.entities),_.EPH(c);default:_.i5(new _.Yr("Error: entitySelectorType defined but not matched in selector.",S,c))}}}),
_.P("design:type",Object)],jQ.prototype,"entityDrivenRichGridData",void 0);_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"resizeOnObserverInit",void 0);_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"bigYoodleData",void 0);_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"mastheadData",void 0);_.d([_.Z(),_.P("design:type",Boolean)],jQ.prototype,"isInlinePreviewDisabled",void 0);_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"disableStickyFilterBar",void 0);
_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"transparentBackgroundChipsBar",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jQ.prototype,"hideChipsBar",void 0);_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"isWatchDefaultLayout",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jQ.prototype,"continuationShowButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jQ.prototype,"rowReducedHorizontalMargin",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jQ.prototype,"useCompactList",void 0);_.d([_.Z({selector:function(S){return _.hb(S.entities).length>0}}),
_.P("design:type",Object)],jQ.prototype,"manualDownloadsPresent",void 0);_.d([_.Z({selector:function(S){return _.pK(S.entities).length>0}}),
_.P("design:type",Object)],jQ.prototype,"smartDownloadsPresent",void 0);_.d([_.Z({selector:_.qax}),_.P("design:type",Object)],jQ.prototype,"shouldRenderDownloadsBanner",void 0);_.d([_.Z({selector:_.Txz}),_.P("design:type",Object)],jQ.prototype,"hasOptedIntoSmartDownloads",void 0);_.d([_.B0("useCompactList"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"onUseCompactListChange",null);
_.d([_.B0("sizing","typographyBump"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"onSizingChange",null);_.d([_.Z({selector:_.NxM}),_.P("design:type",Number)],jQ.prototype,"miniplayerPlaybackState",void 0);_.d([_.Z({selector:_.sm}),_.P("design:type",Boolean)],jQ.prototype,"miniplayerIsActive",void 0);
_.d([_.Z({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.P("design:type",Boolean)],jQ.prototype,"isInlinePreviewEnabled",void 0);_.d([_.Z({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.P("design:type",String)],jQ.prototype,"sizing",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jQ.prototype,"elementsPerRow",void 0);
_.d([_.Z(),_.P("design:type",Object)],jQ.prototype,"typographyBump",void 0);_.d([_.Z(),_.P("design:type",Number)],jQ.prototype,"itemWidth",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],jQ.prototype,"headerElement",void 0);_.d([_.nU("#contents"),_.P("design:type",HTMLElement)],jQ.prototype,"contentsElement",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"dataChanged",null);
_.d([_.$n("data.contents.length"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"contentLengthChanged",null);_.d([_.FV("yt-request-elements-per-row"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"onRequestElementsPerRow",null);
_.d([_.FV("yt-rich-shelf-renderer-collapse"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jQ.prototype,"onRichShelfRendererCollapse",null);_.d([_.$n("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"handleRerenderDownloadsData",null);
_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],jQ.prototype,"entitySelectorType",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isSub",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isWatch",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isShortsPanel",null);_.d([_.Z({reflectToAttribute:!0}),_.M("isWatch"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"reducedTopMargin",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data","isWatch","isWatchDefaultLayout"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"noTopMargin",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("isInlinePreviewEnabled","shownItems"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"topRowEndorsement",null);_.d([_.M("data.header"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"hideHeader",null);_.d([_.FV("yt-rich-grid-reflow"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],jQ.prototype,"reflowContent",null);
_.d([_.FV("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"onReloadContinuationFinish",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isSlimGrid",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isShortsGrid",null);
_.d([_.M("data","isSlimGrid","isShortsGrid"),_.Z(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"noRichItemGutterMargins",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isShortsGridSlim",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isCompactGrid",null);
_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"isDefaultGrid",null);_.d([_.M("data.targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"hideChipsBarOnHome",null);_.d([_.M("data.targetId"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"hideChipsBarOnWatch",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jQ.prototype,"onIsShortsGridChange",null);_.d([_.M("data.enableContentSpecificAspectRatio"),_.Z(),_.P("design:type",Boolean),_.P("design:paramtypes",[])],jQ.prototype,"force16By9ThumbnailAspectRatio",null);_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],jQ.prototype,"continuationTriggerOffset",null);_.d([_.e({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],jQ);
_.k(jQ,"ytd-rich-grid-renderer",function(){if(d4E!==void 0)return d4E;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return d4E=S},{mode:2});var Q41=_.y_(function(S){var c=S.thumbsUp,Q=S.thumbsDown,f=S.rightAlignThumbs;S=_.A(_.ny(!1,void 0,"FjNDrf"));var U=S.next().value,a=S.next().value;S=_.A(_.ny(!1,void 0,"Tphjfb"));var X=S.next().value,z=S.next().value;S={};return _.B("div",{class:_.n4("ytwThumbsUpDownThumbs",(S.ytwThumbsUpDownRightAlign=function(){return f==null?void 0:f()},S))},_.B(_.qs,{data:c,
onToggle:function(x){a(x);X()&&z(!1)},
buttonShapeOverrides:function(){return{toggled:U()}}}),_.B(_.qs,{data:Q,
onToggle:function(x){z(x);U()&&a(!1)},
buttonShapeOverrides:function(){return{toggled:X()}}}))},"Bi");
Q41.idomCompat=!0;var UNE=_.y_(function(S){var c=function(){return S.data().pendingStateEntityKey||""},Q=_.b9(_.juV,c),f=function(){var z;
if(!(z=S.disabled())){var x;z=!((x=Q())==null||!x.isPendingResponse)}return z},U=_.A(_.ny(Bg1(""),void 0,"aC8eBe")),a=U.next().value,X=U.next().value;
_.qR(function(){requestAnimationFrame(function(){var z=S.data().onShowAnimationMs||0;z=z>0?Bg1("--chip-animation-duration: "+z+"ms;"):Bg1("");X(z)})});
return _.B("you-chat-chips-data",{class:"ytwYouChatChipsDataHost",style:a},_.B(_.lW,{each:function(){return S.data().chipData||[]},
keyBy:"REFERENCE"},function(z){return _.B(fSB,{data:z,disabled:f,pendingStateKey:c,onError:S.onError})}))},"Ci"),fSB=_.y_(function(S){var c=_.EH("button"),Q=_.A(_.ny(!0,void 0,"NaMiCd")),f=Q.next().value,U=Q.next().value,a=function(){return S.data().text.content},X=_.$d(function(z){var x,I,n,b,N,l,H,q;
return _.O(function(w){switch(w.nextAddress){case 1:z.stopPropagation();if(S.disabled())return w.return();I=String(Math.floor(((x=_.zI())==null?void 0:x.getCurrentTime())||0)*1E3);n="youchat-"+Date.now();b=function(){_.WI(S.data().onClick||{});var g={continuationCommand:{token:S.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},r={inputComposerFormData:{clientMessageId:n,playerOffsetMs:I}};return new Promise(function(E,v){_.WI(g,{form:{formData:r},commandController:{onSuccess:function(t,
V){E(V)},
onServerError:function(t,V){v(V.error)}}})})};
N=_.li8(S.pendingStateKey());N(!0);_.Qup("#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");U(!1);_.X1(w,2);return _.F(w,b(),4);case 4:_.Pi(w,3);break;case 2:l=_.Bs(w),(q=(H=S).onError)==null||q.call(H,l);case 3:N(!1),_.IN(w)}})});
return _.B(_.K,{cond:f,then:function(){return _.B("div",{class:"ytwYouChatChipsDataChipWrapper"},_.B("button",{el:c,class:"ytwYouChatChipsDataChip","data-disabled":S.disabled,"on:click":X,tabindex:0},a))}})},"Di");var JEO=_.y_(function(S){var c=S.data;return _.B("yt-conversation-resource-view-model",{class:_.n4("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.B(_.h8,{data:function(){var Q,f;return((Q=c().conversationResourceData)==null?void 0:(f=Q.learningGuideData)==null?void 0:f.sections)||[]}},{expandableMetadataViewModel:function(Q){return _.B(_.wcg,{data:Q.data})}}))},"Ei");
JEO.idomCompat=!0;var aS2=_.y_(function(S){var c=function(){var v;return(v=S.data().text)==null?void 0:v.content},Q=function(){var v,t;
return(v=S.data().webData)==null?void 0:(t=v.textResult)==null?void 0:t.content},f=_.fl().resolve(_.t2),U=_.xa(),a=function(){return S.data().chatResponseStyle},X=function(){return!S.data().transparentBackground},z=function(){return S.data().rightAlignThumbs},x=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:S.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},I=function(){var v;
return S.data().webData||((v=S.data().text)==null?void 0:v.content)||S.data().videoResultsData||S.data().conversationResourceViewModel||S.data().quiz},n=function(){var v;
return(v=S.data().videoResultsData)==null?void 0:v.videoShelf},b=function(){var v;
return _.Y(((v=S.data().videoResultsData)==null?void 0:v.videoShelf)||{},wpB)},N=function(){var v;
return(v=S.data().webData)==null?void 0:v.sourcesShelf},l=function(){var v;
return _.Y(((v=S.data().webData)==null?void 0:v.sourcesShelf)||{},wpB)},H=function(){return _.Y(S.data().conversationResourceViewModel||{},MZB)},q=function(){return _.Y(S.data().quiz||{},h_E)},w=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||a()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:S.data().thumbsDownViewModel&&S.data().thumbsUpViewModel},g=function(){return _.Y(S.data().thumbsUpViewModel,_.CS)},r=function(){return _.Y(S.data().thumbsDownViewModel,_.CS)};
_.qR(function(){requestAnimationFrame(function(){var v;(v=S.shouldAnimateIcon)!=null&&v.call(S)&&Y3g(U.lottieEl)})});
var E={};return _.B("you-chat-item-view-model",{class:_.n4("ytwYouChatItemViewModelYouChatItemViewModel",(E.ytwYouChatItemViewModelHostNoPadding=function(){return!1},E)),
"data-target-id":function(){return S.data().id||""}},_.B(_.K,{cond:function(){return S.data().removeIcon?!1:I()},
then:function(){var v={};return _.B("div",{"aria-hidden":"true"},_.B(_.b8,{className:_.n4("ytwYouChatItemViewModelIcon",(v.ytwYouChatItemViewModelRtl=f==="rtl",v.ytwYouChatItemViewModelHidden=function(){return!(S.data().hideIcon||a()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||a()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:I())},v)),
animationName:"YOUCHAT_ICON",data:x,animationRef:U}))}}),_.B(_.K,{cond:I,
then:function(){var v={};return _.B("div",{class:_.n4("ytwYouChatItemViewModelHost",(v.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},v.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},v.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return a()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},v.ytwYouChatItemViewModelGradientBackground=X,v)),
role:"alert"},_.B(_.K,{cond:c,then:function(t){return _.B(_.sF,{text:t})}}),_.B(_.K,{cond:Q,
then:function(t){return _.B(_.sF,{text:t})}}),_.B(_.K,{cond:n,
then:function(){return _.B("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.B(_.TU,{data:b,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.B(_.K,{cond:N,
then:function(){return _.B("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.B(_.TU,{data:l,hasPeek:!0,disableArrows:!1}))}}),_.B(_.K,{cond:H,
then:function(){return _.B(JEO,{data:H})}}),_.B(_.K,{cond:q,
then:function(){return _.B(_.pj_,{data:q})}}),_.B(_.K,{cond:w,
then:function(){return _.B(Q41,{thumbsUp:g,thumbsDown:r,rightAlignThumbs:z})}}))}}),_.B(_.K,{cond:function(){return S.data().chipsData},
then:function(v){return _.B(UNE,{data:v,disabled:S.pending,onError:S.onError})}}))},"Fi");
aS2.idomCompat={callbacks:{onError:!0,onSend:!0}};var AEG=_.y_(function(S){var c=function(){return S.data().choiceSelectedText};
return _.B("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.B(_.K,{cond:c,then:function(){return _.B("div",{class:"ytYouChatUserTurnChoiceSelected"},_.B(_.mw,{text:c}))}}),_.B("div",{class:"ytYouChatUserTurnUserMessage"},function(){return S.data().text}))},"Gi");var XzE=_.y_(function(S){var c=_.A((0,_.abe)(S.data)).next().value;return _.B("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return S.data().targetId||""}},_.B(_.h8,{data:function(){return S.data().header}},{chipBarViewModel:_.RGz}),_.B(_.h8,{data:function(){return c().contents}},{accordionViewModel:_.TuT,
alertBannerViewModel:_.fDd,chatLoadingViewModel:_.IhV,chatUserTurnViewModel:AEG,learningJourneyLoaderViewModel:_.Dy$,lockupViewModel:function(Q){return _.B(_.U4,{data:Q.data,className:"ytItemSectionRendererLockup",containerLayoutConfig:S.containerLayoutConfig,thumbnailFixedWidth:"200px"})},
youChatItemViewModel:function(Q){return _.B(aS2,{data:Q.data,pending:!1})}}))},"Hi");_.f4(_.y_(function(S){var c=_.A((0,_.abe)(S.data)).next().value,Q=_.EH("yt-section-list-renderer"),f=_.A(_.ny(void 0,void 0,"rQpPgc")),U=f.next().value,a=f.next().value,X=function(){var z;return _.Y((z=S.data().sectionListLayoutConfiguration)==null?void 0:z.layoutConfiguration,TgU)};
_.wC(function(){var z,x=(z=Q.value)==null?void 0:z.clientWidth;if(X()){z=X();var I=z.responsiveSize;x=x<528?"CONTAINER_SIZE_NARROW":x<1024?"CONTAINER_SIZE_MEDIUM":"CONTAINER_SIZE_WIDE";b:{var n=_.A(z.responsiveMap||[]);for(var b=n.next();!b.done;b=n.next())if(b=b.value,b.containerSize===x){n=b.containerType;break b}n=void 0}if(n&&I){b:{if(n==="CONTAINER_TYPE_VERTICAL_LIST")if(I==="RESPONSIVE_SIZE_STANDARD"){if(x!=="CONTAINER_SIZE_NARROW"){b="50%";break b}}else{b=x==="CONTAINER_SIZE_NARROW"?"50%":
"33.3%";break b}b=void 0}z={responsiveSize:I,containerSize:x,containerType:n,force16By9ThumbnailAspectRatio:!z.enableContentSpecificAspectRatio,contentPreviewWidth:b,fullbleed:(n==="CONTAINER_TYPE_VERTICAL_LIST"||n==="CONTAINER_TYPE_GRID")&&x==="CONTAINER_SIZE_NARROW"&&!1}}else z=void 0}else z=void 0;a(z)});
return _.B("yt-section-list-renderer",{class:_.n4("ytSectionListRendererHost",S.className),el:Q,"data-target-id":function(){return S.data().targetId||""}},_.B(_.h8,{data:function(){return c().contents}},{itemSectionRenderer:function(z){return _.B(XzE,{data:z.data,
containerLayoutConfig:U})}}))},"Ii"),"yt-section-list-renderer",{props:{data:_.y$,
className:_.Qn}});var OC2;var zyB;var xNT=function(){return _.W.apply(this,arguments)||this};
_.C(xNT,_.W);_.d([_.Z(),_.P("design:type",Object)],xNT.prototype,"data",void 0);_.d([_.wM({is:"yt-alert-renderer",disableElementRegistration:!0})],xNT);
_.k(xNT,"yt-alert-renderer",function(){if(zyB===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;OC2===void 0&&(OC2=document.createElement("template"));var f=OC2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);zyB=S}S=zyB;return S},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.sng=function(S,c){var Q,f;c=c===void 0?{}:c;var U,a,X,z,x,I,n,b,N,l,H,q;return _.O(function(w){switch(w.nextAddress){case 1:U=c;a=U.shouldWrap===void 0?!0:U.shouldWrap;X=U.skipTransitionTimeoutMs===void 0?300:U.skipTransitionTimeoutMs;z=U.beforeTransition;x=U.afterTransition;if(!a||!document.startViewTransition||document.visibilityState==="hidden")return w.return(S());Q=window.innerWidth;f=window.innerHeight;I=!1;(n=z)==null||n();_.X1(w,2);b=document.startViewTransition(S);N=setTimeout(function(){b.skipTransition();
I=!0},X);
return _.F(w,b.ready,4);case 4:return clearTimeout(N),_.F(w,b.finished,5);case 5:clearTimeout(N);(l=x)==null||l();_.Pi(w,0);break;case 2:H=_.Bs(w),(q=x)==null||q(),H&&!I&&document.visibilityState!=="hidden"&&Q===window.innerWidth&&f===window.innerHeight&&_.sH(H),_.IN(w)}})};
_.hD=function(){for(var S=Array(36),c=0,Q,f=0;f<36;f++)f==8||f==13||f==18||f==23?S[f]="-":f==14?S[f]="4":(c<=2&&(c=33554432+Math.random()*16777216|0),Q=c&15,c>>=4,S[f]=_.C7s[f==19?Q&3|8:Q]);return S.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 MS2=_.oK(['<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>']),
ic1=_.F1d(MS2);ic1.setAttribute("style","display: none;");document.head.appendChild(ic1.content);_.q4=_.upY(function(S){var c=_.Nf("DIV");S&&(c.className=S);c.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";S=_.Nf("DIV");_.jp$(S,"200px","200px");c.appendChild(S);document.body.appendChild(c);S=c.offsetWidth-c.clientWidth;_.K9(c);return S});var Zc1;var GRg;var Tu=function(){var S=_.W.apply(this,arguments)||this;S.icon=null;return S};
_.C(Tu,_.W);Tu.prototype.dismiss=function(){_.Az(this.hostElement,"yt-live-chat-error-message-dismiss")};
Tu.prototype.computeIcon=function(S){return S&&S.iconType?"yt-icons:"+S.iconType.toLowerCase():"yt-icons:close"};
_.d([_.Z(),_.P("design:type",Object)],Tu.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon(data.icon)"}),_.P("design:type",Object)],Tu.prototype,"icon",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Tu);
_.k(Tu,"yt-live-chat-error-message-renderer",function(){if(GRg===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Zc1===void 0&&(Zc1=document.createElement("template"));var f=Zc1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);GRg=S}S=GRg;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var $WB,uM8,jD0,lop,hPp,qKZ,Tq8,w6T,sDU,pV,MfG,iQ0,hi,ZQT,GbU,WHV,gB1,ePG,kbT,rY1,dW2,vB0,Php,LH1,EBg,tfG,VfU,RPU,yYB,oB1,mWp,SGB,qv,cs1,QcO,faU,aaE,AsN,Xv2,Ou1,zg0,x2Z,U2G,Jsp,BG2,Ia0,nfE,bup,NGZ,FBN,$2U;$WB=function(S,c){return _.FT(S.entities,"timedMarkersListSyncEntity",c)};
uM8=function(S,c){return _.FT(S.entities,"liveReactionsDataEntity",c)};
jD0=function(S,c){S=_.FT(S.entities,"booleanEntity",c);return!(!S||!S.value)};
lop=function(S,c){var Q=_.wN();Q&&S&&_.dS(Q,_.Yz(S),c)};
_.YKp=function(){_.u("web_watch_log_theater_mode")&&_.Lso("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.ChB=function(S,c,Q){if(!S.includes("START_TIME_PLACEHOLDER")||!S.includes("END_TIME_PLACEHOLDER"))return S;var f=new Date(0),U=new Date(0);f.setUTCMilliseconds(c);U.setUTCMilliseconds(Q);return S.replace("START_TIME_PLACEHOLDER",_.rP(f,7)).replace("END_TIME_PLACEHOLDER",_.rP(U,7))};
_.HQZ=function(S){return S.watch.isWatchActive};
_.DWO=function(S){return _.WK(S)||_.gJ(S)||_.R_R(S)};
_.p62=function(S){return!_.DWO(S)};
_.D_=function(S){return S.watch.watchScrollTop};
hPp=function(S){return S.watch.isLiveChatCollapsed};
qKZ=function(S){return S.watch.openEngagementPanels};
Tq8=function(S,c){return _.FT(S.entities,"booleanEntity",c)};
w6T=function(){return function(S){_.Er(_.Ns("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:S}))}};
sDU=function(S){switch(S){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}};
pV=function(S,c,Q){var f=_.Gv(Q);S&&c&&f&&S.getPlayerPromise().then(function(U){_.ldz(f)&&_.wQ();(new _.HM(U)).executeCommand(f,c);_.u("continue_playback_on_desktop_companion_click")||U.pauseVideo()})};
MfG=function(S){var c=_.S9(),Q;if(Q=_.rC("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;Q=(f=Q())==null?void 0:f.layoutId}else Q=null;pV(c,Q,S)};
iQ0=function(S){var c=_.S9(),Q;if(Q=_.rC("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;Q=(f=Q())==null?void 0:f.layoutId}else Q=null;pV(c,Q,S)};
hi=function(S,c){var Q=S<0?"-":"";S=Math.abs(S);var f=Math.floor(S/3600),U=Math.floor(S)%3600,a=Math.floor(U/60);U=Math.floor(U)%60;var X="";(c===void 0?0:c)&&(X="."+Math.round((S-Math.floor(S))*10));return f>0?Q+f+":"+(a<10?"0"+a:""+a)+":"+(U<10?"0"+U:""+U)+X:Q+a+":"+(U<10?"0"+U:""+U)+X};
ZQT=function(S){var c=S.match(/[^0-9:\.]/g);if(c&&c.length>0)return null;S=S.split(":");if(S.length===0||S.length>3)return null;c=1;for(var Q=0;S.length>0;){var f=S.pop();if(f===void 0)break;var U=Number(f);if(f===""||isNaN(U))return null;Q+=U*c;c*=60}return Q};
GbU=function(S,c,Q,f){S=Math.max(Q,S);c=Math.min(c,f-Q);S+c>f?(Q=f,S=Q-c):Q=S+c;return{start:S,end:Q}};
WHV=function(S,c,Q,f,U,a){S<Q?S=Q:S+U>f&&(S=f-U);c>f&&(c=f);c=Math.min(S+a,Math.max(S+U,c));return{start:S,end:c}};
gB1=function(S,c,Q,f,U,a){c>f?c=f:c-U<Q&&(c=Q+U);S<Q&&(S=Q);S=Math.min(c-U,Math.max(c-a,S));return{start:S,end:c}};
ePG=function(S){return _.u("web_transcript_cue_id_killswitch")?String(S):"ytd-transcript-renderer_"+S};
kbT=function(S){return _.u("web_transcript_cue_id_killswitch")?!0:S.startsWith("ytd-transcript-renderer")};
rY1=function(S){var c=_.S9(),Q;if(Q=_.rC("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var f;Q=(f=Q())==null?void 0:f.layoutId}else Q=null;pV(c,Q,S)};
dW2=function(S){S.style.height="auto";S.style.height=Math.min(S.scrollHeight||20,80)+"px"};
vB0=function(S,c){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:c}}],insertByPositionInSection:{sectionTargetId:S,position:"INSERTION_POSITION_LAST"}}}]}}}};
Php=function(S){var c=_.S9(),Q;Q=(Q=_.rC("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.layoutId:null;pV(c,Q,S)};
LH1=function(S){var c=_.S9(),Q;Q=(Q=_.rC("yt.www.ads.eventcache.getLastCompanionData"))?(Q=Q())&&Q.layoutId:null;pV(c,Q,S)};
EBg=function(S,c){c=c===void 0?!1:c;if(S.simpleText)S=[{text:S.simpleText}];else{var Q;S=((Q=S.runs)!=null?Q:[]).map(function(f){return Object.assign({},f)})}if(c)for(c=_.A(S),Q=c.next();!Q.done;Q=c.next())Q.value.bold=!0;
return S};
tfG=function(S){var c=S.startEndTimeTemplate,Q=S.startTimeUtcMillis;S=S.endTimeUtcMillis;if(c&&Q&&S)return _.LK(_.ChB(_.Em(c),Number(Q),Number(S)))};
VfU=function(S,c){var Q,f,U=S==null?void 0:(Q=S.viewCount)==null?void 0:(f=Q.videoViewCountRenderer)==null?void 0:f.shortViewCount;if(!c&&U)return U;var a,X;return S==null?void 0:(a=S.viewCount)==null?void 0:(X=a.videoViewCountRenderer)==null?void 0:X.viewCount};
RPU=function(S,c){var Q=S==null?void 0:S.relativeDateText;return!c&&Q?[Q,!0]:[S==null?void 0:S.dateText,!1]};
yYB=function(S,c,Q,f,U){f=f===void 0?!0:f;U=U===void 0?"":U;var a=VfU(S,c),X=_.A(RPU(S,c)),z=X.next().value;X=X.next().value;c=c?S==null?void 0:S.sponsorsOnlyFirstTimeLongText:S==null?void 0:S.sponsorsOnlyFirstTimeShortText;var x=[];Q&&a&&x.push(a);!Q&&X||!z||x.push(z);S=[].concat(_.Hs(x),[c,S==null?void 0:S.stationName,S==null?void 0:S.rating,S?tfG(S):void 0,S==null?void 0:S.upNextProgramText,S==null?void 0:S.superTitleLink]).filter(function(I){return!!I});
Q={runs:[]};for(a=0;a<S.length;a++)Q.runs.push.apply(Q.runs,_.Hs(EBg(S[a],f))),a<S.length-1&&Q.runs.push({text:" "+U+" ",bold:f});return Q};
oB1=function(S){if(S)return{runs:[{text:S,bold:!0}]}};
mWp=function(S){var c,Q,f,U;if(S=S==null?void 0:(c=S.contents)==null?void 0:(Q=c.twoColumnWatchNextResults)==null?void 0:(f=Q.results)==null?void 0:(U=f.results)==null?void 0:U.contents){var a,X;return(X=(a=S.find(function(z){return!!z.videoPrimaryInfoRenderer}))==null?void 0:a.videoPrimaryInfoRenderer)==null?void 0:X.updatedMetadataEndpoint}};
SGB=function(S,c){var Q;return(Q=S.sourceConfigs)==null?void 0:Q.find(function(f){return f.videoId===c})};
qv=function(S){return S==="End of video"||S==="End of playlist"};
cs1=function(S){var c,Q,f,U;return(c=S.getWatchNextResponse())==null?void 0:(Q=c.contents)==null?void 0:(f=Q.twoColumnWatchNextResults)==null?void 0:(U=f.playlist)==null?void 0:U.playlist};
QcO=function(S){var c,Q,f,U,a,X;return(c=cs1(S))==null?void 0:(Q=c.playlistButtons)==null?void 0:(f=Q.menuRenderer)==null?void 0:(U=f.topLevelButtons)==null?void 0:(a=U[0])==null?void 0:(X=a.playlistLoopButtonRenderer)==null?void 0:X.playlistLoopStateEntityKey};
faU=function(S){var c=_.fl().resolve(_.G7),Q;return(c=(Q=_.Y(c.getAutoplayEndpoint(),_.tG))==null?void 0:Q.playlistId)&&c===S};
aaE=function(S,c,Q,f,U){function a(){_.Mq.cancelJob(TH);var X=U2G(c,Q/S.getPlaybackRate()),z=X.hours,x=X.minutes;X=(X.seconds*1E3||6E4)/S.getPlaybackRate();S.setVideoTimeLeft(Jsp(z,x));f&&S.getPlayerState()!==0&&S.setSleepTimerTimeLeft(Jsp(z,x,!0));(z>0||x>0)&&!U&&(TH=_.u9(_.Mq,a,X))}
_.Mq.cancelJob(TH);TH=_.u9(_.Mq,a)};
AsN=function(S,c,Q){function f(){_.Mq.cancelJob(w0);var U=U2G(c,Q),a=U.hours;U=U.minutes;var X=6E4/S.getPlaybackRate();if(a>0||U>0)S.setSleepTimerTimeLeft(Jsp(a,U,!0)),w0=_.u9(_.Mq,f,X)}
_.Mq.cancelJob(w0);w0=_.u9(_.Mq,f)};
Xv2=function(S,c){var Q=S.getVolume()/(c/500),f=function(U){_.Mq.cancelJob(sf);var a=Math.floor(U-Q);S.setVolume(a,!1);a>0&&(sf=_.u9(_.Mq,function(){f(a)},500))};
_.Mq.cancelJob(sf);sf=_.u9(_.Mq,function(){f(S.getVolume())})};
Ou1=function(S,c){_.Mq.cancelJob(sf);c&&S.syncVolume()};
zg0=function(){var S={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.K8("SLEEP_TIMER_DISRUPTED")}}}}};_.fl().resolve(_.U8).resolveCommand(S)};
x2Z=function(S){return(S.getDuration()-S.getProgressState().current)*1E3};
U2G=function(S,c){S=S+c-(0,_.Qk)();if(S<=0)return{hours:0,minutes:0,seconds:0};var Q=new FBN(0,0,0,0,0,0,S);S=Q.getHours();c=Q.getMinutes();Q=Q.getSeconds();Q!==0&&c++;c!==0&&c%60===0&&(S++,c=0);return{hours:S,minutes:c,seconds:Q}};
Jsp=function(S,c,Q){return S>0&&c>0?Q?_.K8("TIME_LEFT_HOURS_MINUTES",{hours:S.toString(),minutes:c.toString()}):_.K8("TIME_HOURS_MINUTES",{hours:S.toString(),minutes:c.toString()}):S>0?Q?_.$t("TIME_LEFT_HOURS",S):_.$t("TIME_HOURS",S):Q?_.K8("TIME_LEFT_MINUTES",{minutes:c.toString()}):_.K8("TIME_MINUTES",{minutes:c.toString()})};
BG2=function(S,c){if(S.timelyActions)return S.timelyActions.find(function(Q){var f;return((f=_.Y(Q,Mv))==null?void 0:f.cueRangeId)===c})};
Ia0=function(S){var c=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.zr(S);S.keyMap_.forEach(function(Q,f){_.dp(c,f)||this.remove(f)},S)};
nfE=function(S,c){S.reloadContinuationItemsCommandMatcher=c};
_.iy=function(S,c){S.insertBefore(c,S.childNodes[0]||null)};
bup=function(S){if(S>=48&&S<=57||S>=96&&S<=106||S>=65&&S<=90||_.Ir&&S==0)return!0;switch(S){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 _.Bg;default:return!1}};
NGZ=function(S){if(S.altKey&&!S.ctrlKey||S.metaKey||S.keyCode>=112&&S.keyCode<=123)return!1;if(bup(S.keyCode))return!0;switch(S.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!_.Bg;default:return S.keyCode<166||S.keyCode>183}};
FBN=function(S,c,Q,f,U,a,X){this.date=typeof S==="number"?new Date(S,c||0,Q||1,f||0,U||0,a||0,X||0):new Date(S&&S.getTime?S.getTime():_.AP())};
_.Xa(FBN,_.YN);_.J=FBN.prototype;_.J.getHours=function(){return this.date.getHours()};
_.J.getMinutes=function(){return this.date.getMinutes()};
_.J.getSeconds=function(){return this.date.getSeconds()};
_.J.getMilliseconds=function(){return this.date.getMilliseconds()};
_.J.getUTCDay=function(){return this.date.getUTCDay()};
_.J.getUTCHours=function(){return this.date.getUTCHours()};
_.J.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.J.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.J.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.J.setHours=function(S){this.date.setHours(S)};
_.J.setMinutes=function(S){this.date.setMinutes(S)};
_.J.setSeconds=function(S){this.date.setSeconds(S)};
_.J.setMilliseconds=function(S){this.date.setMilliseconds(S)};
_.J.setUTCHours=function(S){this.date.setUTCHours(S)};
_.J.setUTCMinutes=function(S){this.date.setUTCMinutes(S)};
_.J.setUTCSeconds=function(S){this.date.setUTCSeconds(S)};
_.J.setUTCMilliseconds=function(S){this.date.setUTCMilliseconds(S)};
_.J.add=function(S){_.YN.prototype.add.call(this,S);S.hours&&this.setUTCHours(this.date.getUTCHours()+S.hours);S.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+S.minutes);S.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+S.seconds)};
_.J.JSC$9276_toIsoString=function(S){var c=_.YN.prototype.JSC$9276_toIsoString.call(this,S);return S?c+"T"+_.UR(this.getHours(),2)+":"+_.UR(this.getMinutes(),2)+":"+_.UR(this.getSeconds(),2):c+"T"+_.UR(this.getHours(),2)+_.UR(this.getMinutes(),2)+_.UR(this.getSeconds(),2)};
_.J.equals=function(S){return this.getTime()==S.getTime()};
_.J.toString=function(){return this.JSC$9276_toIsoString()};
_.J.clone=function(){var S=new FBN(this.date);S.firstDayOfWeek_=this.firstDayOfWeek_;S.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return S};
_.KB2=function(S){return _.aB({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:S}})};
$2U=new _.L("imageTileRenderer");var unN=new _.L("adGridCardCollectionViewModel");var jcU=new _.L("carouselTitleViewModel");var laV=new _.L("ctaCarouselItemViewModel");var YG0=new _.L("textFieldViewModel");_.CfB=new _.L("engagementPanelHeaderShowNavigationButtonCommand");var HuO=new _.L("hideEngagementPanelScrimAction");var D28=new _.L("setActivePanelItemAction");var pvG=new _.L("showEngagementPanelScrimAction");var hgV=new _.L("updateEngagementPanelAction");var qGN=new _.L("updateSearchInVideoResultsAction");var TGE=new _.L("transcriptCueGroupRenderer");var wvE=new _.L("transcriptCueRenderer");var scp=new _.L("transcriptFooterRenderer");var Mcg=new _.L("engagementPanelAdSubtitleRenderer");var iuO=new _.L("videoDescriptionFantasySectionViewModel");var ZuT=new _.L("deleteClipEngagementPanelCommand");var GYB=new _.L("loopCommand");var WBp=new _.L("changeCreatorEndscreenVisibilityCommand");var gf8=new _.L("liveChatCallForQuestionsRenderer");var egB=new _.L("updateTimedMarkersSyncObserverCommand");var Mv=new _.L("timelyActionViewModel");var kYp=new _.L("timelyActionsOverlayViewModel");var rsZ=new _.L("repeatChapterCommand");var d2E=new _.L("watchPlayerOverflowMenuCommand");var vfT=new _.L("compositeVideoOverlayRenderer");var Pf0=new _.L("sortFilterSubMenuRenderer");var LBN=new _.L("switchListItemViewModel");var EfZ=new _.L("inputComposerViewModel");var tcU=new _.L("transcriptEditSegmentCommand");var VcB=new _.L("transcriptUpdateSegmentTextCommand");var RgN=new _.L("transcriptSearchBoxRenderer");var ysE=new _.L("transcriptSegmentListRenderer");var ofV=new _.L("transcriptSegmentRenderer");_.m2G=new _.L("updateDateTextAction");var SO0=new _.L("updateTitleAction");var cRO=new _.L("updateViewershipAction");var QVE=new _.L("carouselLockupRenderer");var fKG=new _.L("expandableVideoDescriptionBodyRenderer");var Up8=new _.L("videoDescriptionYouchatSectionViewModel");_.Z_=_.a6("kevlar_watch_page_horizontal_margin",24);_.JRB=_.a6("kevlar_watch_page_columns_top_padding",24);_.aKN=426+_.Z_*2;_.GH=_.a6("kevlar_watch_two_column_width_threshold",1E3);_.AR2=_.Z_*2;_.XBZ=_.a6("kevlar_watch_secondary_width",402);_.OB2=_.a6("kevlar_watch_max_player_width",1280);_.zXE=_.a6("kevlar_watch_flexy_metadata_height",136);_.xpZ=_.AR2+310+_.Z_;_.Ffg=_.AR2+360+_.Z_;var BYG={PAUSE_CHAT:18};var IK0;var n4T;var WN=function(){return _.W.apply(this,arguments)||this};
_.C(WN,_.W);WN.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
WN.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var S=_.Y(this.data.button,_.Ya);S&&(S.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.Rh.Object.defineProperties(WN,{template:{configurable:!0,enumerable:!0,get:function(){if(n4T===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;IK0===void 0&&(IK0=document.createElement("template"));var f=IK0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);n4T=S}S=n4T;return S}}});
_.d([_.p(_.rc),_.P("design:type",Object)],WN.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],WN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({selectorArgs:["data.enabledEntityKey"],selector:jD0,observer:"onEnabledChange"}),_.P("design:type",Boolean)],WN.prototype,"enabled",void 0);_.d([_.Z(),_.P("design:type",Object)],WN.prototype,"data",void 0);_.d([_.wM({is:"yt-disableable-button-view-model",noInjection:!0})],WN);var bBE;var NY0;var Kf2=["transVert01","transVert02","transVert03"],$pE="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),g0=function(){var S=_.W.apply(this,arguments)||this;S.emojiManager=_.g4;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};S.reactionBuckets=[];S.noEmojiIdentifier="NO_EMOJI";return S};
_.C(g0,_.W);_.J=g0.prototype;_.J.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.J.desktopFountainEmojiSizePxChanged=function(){_.Or(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.J.createUserReactionAnimation=function(S){this.createEmojiAnimation(S,!0)};
_.J.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var S;((S=this.data)==null?0:S.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.Ns("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Hs(this.emojiContainer.children)).forEach(function(c){c.remove()})};
_.J.detached=function(){this.cleanupFountain()};
_.J.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var S;this.reactionBuckets=_.Cn.unsafeClone((S=this.emojiFountainData)==null?void 0:S.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.J.processEmojiBucket=function(S){var c=this;if(this.reactionBuckets&&!(S>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var Q=this.reactionBuckets[S];this.generateEmojiAnimations(Q);if(S<this.reactionBuckets.length-1){var f;if(Q==null?0:(f=Q.duration)==null?0:f.seconds)this.emojiBucketTimerId=setTimeout(function(){c.processEmojiBucket(S+1)},Number(Q.duration.seconds)*1E3)}}};
_.J.generateEmojiAnimations=function(S){var c=this,Q=this.getRandomEmojiIdFromBucketWithOverride(S);if(Q&&Q!==this.noEmojiIdentifier){var f=0;S.targetEps?(f=this.linearInterpolateBounded(1,20,100,12,S.emojiSizeIndex||0),this.createEmojiAnimation(Q,!1,S.emojiAnimationMs,f),f=this.getEmojiDelayMsFromTargetEps(S.targetEps)):(this.createEmojiAnimation(Q),f=this.getEmojiDelayMsFromDistribution(S.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){c.generateEmojiAnimations(S)},f)}};
_.J.getRandomEmojiIdFromBucketWithOverride=function(S){if(!(S&&S.reactionsData&&S.reactionsData.length&&S.totalReactions))return this.noEmojiIdentifier;for(var c=S.totalReactions,Q=1,f=_.A(S.reactionsData),U=f.next();!U.done;U=f.next())U=U.value,(U.reactionWeightOverride||U.reactionWeightOverride===0)&&U.reactionCount&&(c-=U.reactionCount,Q-=U.reactionWeightOverride);f=!0;Q<0&&(f=!1,c=S.totalReactions,Q=1);if(f&&Q>0&&c===0)if(Q===1){U=0;for(var a=_.A(S.reactionsData),X=a.next();!X.done;X=a.next())X=
X.value,X.reactionCount&&X.reactionCount>0&&U++;U=1/U;a=_.A(S.reactionsData);for(X=a.next();!X.done;X=a.next())X.value.reactionWeightOverride=U}else for(U=1/(1-Q),a=_.A(S.reactionsData),X=a.next();!X.done;X=a.next())X=X.value,X.reactionWeightOverride&&(X.reactionWeightOverride*=U);U=Math.random();a=0;X=_.A(S.reactionsData);for(var z=X.next();!z.done;z=X.next())if(z=z.value,z.reactionCount&&(a=(z.reactionWeightOverride||z.reactionWeightOverride===0)&&f?a+z.reactionWeightOverride:a+Q*z.reactionCount/
c,a>U&&(z.reactionCount--,S.totalReactions--,z=this.reactionItemToEmojiString(z),z!==this.noEmojiIdentifier)))return z;return this.noEmojiIdentifier};
_.J.reactionItemToEmojiString=function(S){if(S.unicodeEmojiId)return S.unicodeEmojiId;if(S.emoteId)return S.emoteId;if(S.videoReactionType)switch(S.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.J.createEmojiAnimation=function(S,c,Q,f){c=c===void 0?!1:c;this.lastEmojiRequestedForTesting=S;var U=S.startsWith("yt-icons:"),a=_.Gy(this.emojiManager,S);if(a||U){var X=document.createElement("emoji");X.classList.add("yt-emoji-fountain-view-model");X.classList.add(Kf2[Math.floor(Math.random()*Kf2.length)]);var z=document.createElement("div");z.classList.add("yt-emoji-fountain-view-model");z.classList.add("horizontal-container");z.classList.add($pE[Math.floor(Math.random()*$pE.length)]);c?(Q=document.createElement("div"),
Q.classList.add("user-reaction-bubble"),Q.classList.add("yt-emoji-fountain-view-model"),z.appendChild(Q)):(Q&&(X.style.animationDuration=Q+"ms",z.style.animationDuration=Q+"ms"),f&&(X.style.width=f+"px",X.style.height=f+"px"));U?(U=document.createElement("yt-icon"),U.polymerController.icon=S,f&&(U.style.width=f+"px",U.style.height=f+"px"),S=U):S=this.emojiManager.createEmoji(a,!1);S.classList.add("yt-emoji-fountain-view-model");z.appendChild(S);X.appendChild(z);this.emojiContainer.appendChild(X);
X.addEventListener("animationend",function(){X.remove()});
var x,I;if((x=this.data)==null?0:(I=x.loggingDirectives)==null?0:I.trackingParams)c=c?_.qo(183501):_.qo(183500),lop(this.data.loggingDirectives.trackingParams,c),_.Tzp(c);setTimeout(function(){X&&X.remove()},2E3)}};
_.J.getEmojiDelayMsFromDistribution=function(S){return Math.random()*(S||1)*1E3};
_.J.getEmojiDelayMsFromTargetEps=function(S){return Math.random()*2*(1/S)*1E3};
_.J.linearInterpolateBounded=function(S,c,Q,f,U){U=Math.min(Math.max(U,S),Q);return(c*(Q-U)+f*(U-S))/(Q-S)};
g0.prototype.onEmojiFountainDataEntityUpdate=g0.prototype.onEmojiFountainDataEntityUpdate;g0.prototype.desktopFountainEmojiSizePxChanged=g0.prototype.desktopFountainEmojiSizePxChanged;g0.prototype.isActiveChanged=g0.prototype.isActiveChanged;_.d([_.Z(),_.P("design:type",_.Zp)],g0.prototype,"emojiManager",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],g0.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],g0.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],g0.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],g0.prototype,"data",void 0);_.d([_.Z({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(S,c){return _.FT(S.entities,"emojiFountainDataEntity",c)}}),
_.P("design:type",Object)],g0.prototype,"emojiFountainData",void 0);_.d([_.Z(),_.P("design:type",Boolean)],g0.prototype,"isActive",void 0);_.d([_.B0("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g0.prototype,"isActiveChanged",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],g0.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",String)],g0.prototype,"lastEmojiRequestedForTesting",void 0);
_.d([_.Z({value:function(){return _.a6("desktop_fountain_emoji_size_px",20)}}),
_.P("design:type",Number)],g0.prototype,"desktopFountainEmojiSizePx",void 0);_.d([_.B0("desktopFountainEmojiSizePx"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g0.prototype,"desktopFountainEmojiSizePxChanged",null);_.d([_.nU("#emoji-container"),_.P("design:type",HTMLElement)],g0.prototype,"emojiContainer",void 0);
_.d([_.B0("emojiFountainData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],g0.prototype,"onEmojiFountainDataEntityUpdate",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],g0);
_.k(g0,"yt-emoji-fountain-view-model",function(){if(NY0===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;bBE===void 0&&(bBE=document.createElement("template"));var f=bBE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);NY0=S}S=NY0;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var u9N;var jVB;var e2=function(){return _.W.apply(this,arguments)||this};
_.C(e2,_.W);e2.prototype.onChoiceChanged=function(){this.data&&_.Or(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
e2.prototype.onChoiceChanged=e2.prototype.onChoiceChanged;_.d([_.Z(),_.P("design:type",Object)],e2.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],e2.prototype,"onChoiceChanged",null);_.d([_.e({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],e2);
_.k(e2,"yt-live-chat-banner-poll-choice",function(){if(jVB===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;u9N===void 0&&(u9N=document.createElement("template"));var f=u9N;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);jVB=S}S=jVB;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var lK1;var YOE;var kw=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_button_rework_with_live");S.small=!1;return S};
_.C(kw,_.W);kw.prototype.computeIsSmall=function(){var S;return((S=this.buttonOverrides)==null?void 0:S.size)==="S"};
kw.prototype.computeId=function(){return this.data&&this.data.targetId};
_.d([_.p(_.dc.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],kw.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",String)],kw.prototype,"id",void 0);_.d([_.Z(),_.P("design:type",Object)],kw.prototype,"buttonOverrides",void 0);_.d([_.Z(),_.P("design:type",Object)],kw.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],kw.prototype,"modern",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.P("design:type",Object)],kw.prototype,"small",void 0);_.d([_.e({disableElementRegistration:!0,is:"yt-live-chat-button"})],kw);
_.k(kw,"yt-live-chat-button",function(){if(YOE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;lK1===void 0&&(lK1=document.createElement("template"));var f=lK1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);YOE=S}S=YOE;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Cz8;var HBZ;var r0=function(){var S=_.W.apply(this,arguments)||this;S.inCollapsedBanner=!1;S.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};S.questionButtonOverrides={style:"mono",type:"filled"};return S};
_.C(r0,_.W);_.J=r0.prototype;_.J.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]]"}}}}}};
_.J.onContextMenuButtonClick=function(S){this.ytLiveChatItemBehavior.showContextMenu(S)};
_.J.onYtRendererstamperFinished=function(){this.menuButton=_.Ur(this.hostElement).querySelector("#menu-button")};
_.J.dataChanged=function(){var S,c;if((c=_.Y((S=this.data)==null?void 0:S.overflowMenuButton,_.GF))==null?0:c.command)this.data.contextMenuEndpoint=_.Y(this.data.overflowMenuButton,_.GF).command};
_.J.onButtonClick=function(){var S,c=_.Y((S=this.data)==null?void 0:S.askQuestionButton,_.GF);if(c){if(c.trackingParams&&(S=_.Yz(c.trackingParams))){var Q=_.wN();Q&&_.tz(Q,S)}_.Az(this.hostElement,"innertube-command",c.command)}};
r0.prototype.onYtRendererstamperFinished=r0.prototype.onYtRendererstamperFinished;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],r0.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],r0.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],r0.prototype,"ytLiveChatItemBehavior",void 0);_.d([_.Z({observer:"dataChanged"}),_.P("design:type",Object)],r0.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],r0.prototype,"inCollapsedBanner",void 0);_.d([_.Z(),_.P("design:type",Object)],r0.prototype,"buttonOverrides",void 0);_.d([_.Z(),_.P("design:type",Object)],r0.prototype,"questionButtonOverrides",void 0);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],r0.prototype,"onYtRendererstamperFinished",null);
_.d([_.e({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],r0);
_.k(r0,"yt-live-chat-call-for-questions-renderer",function(){if(HBZ===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Cz8===void 0&&(Cz8=document.createElement("template"));var f=Cz8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);HBZ=S}S=HBZ;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var DpO={};DpO.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 S=this;window.requestAnimationFrame(function(){S.restoreFocusNode_||(S.restoreFocusNode_=document.activeElement);var c=_.Z4u(S.hostElement);c.length&&c[c.length-1].focus()})},
isAttachedChanged_:function(S,c){S?this.focusChild_():c&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(S){this.hidden||_.t4(S).indexOf(this.hostElement)!==-1||(S.stopPropagation(),this.focusChild_())}};var pBE;var hXZ;var d0=function(){return _.W.apply(this,arguments)||this};
_.C(d0,_.W);d0.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
d0.prototype.onClick=function(S){S.target!==this.confirmButton&&S.target!==this.cancelButton&&(this.hidden=!0)};
_.d([_.nU("#confirm_button"),_.P("design:type",Object)],d0.prototype,"confirmButton",void 0);_.d([_.nU("#cancel_button"),_.P("design:type",Object)],d0.prototype,"cancelButton",void 0);_.d([_.Z(),_.P("design:type",qOG)],d0.prototype,"data",void 0);_.d([_.Z({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],d0.prototype,"hidden",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],d0.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(DpO.YtLiveChatDialogBehavior),_.P("design:type",Object)],d0.prototype,"ytLiveChatDialogBehavior",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],d0);
var qOG=_.k(d0,"yt-live-chat-dialog-renderer",function(){if(hXZ===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;pBE===void 0&&(pBE=document.createElement("template"));var f=pBE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);hXZ=S}S=hXZ;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var TYU;var wBE,sV8=function(){if(wBE!==void 0)return wBE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;TYU===void 0&&(TYU=document.createElement("template"));var f=TYU;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return wBE=S};var MbN;var iBV;var vN=function(){var S=_.W.apply(this,arguments)||this;S.tooltip=null;S.data=null;S.id="";S.active=!1;S.icon="";S.disabled=!1;S.showTooltip=!1;S.useToggledActiveState=!0;S.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return S};
_.C(vN,_.W);_.J=vN.prototype;
_.J.dataChanged=function(){var S;((S=this.data)==null?0:S.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,_.XV)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var c;if((c=this.data)==null?0:c.disabled)this.disabled=!0};
_.J.computeId=function(S){return S};
_.J.computeIcon=function(S,c){if(!S)return"";if(this.useToggledActiveState)return"yt-icons:"+S.toLowerCase();var Q,f;return c&&((Q=this.data)==null?0:(f=Q.toggledIcon)==null?0:f.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+S.toLowerCase()};
_.J.logPDGEntryPoint=function(){_.muH(_.zW("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")};
_.J.immediatelyShowTooltip=function(){var S=_.Ur(this.hostElement).querySelector("#tooltip");S.animationDelay=0;S.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};S.show()};
_.J.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.J.onClick=function(S){var c;((c=this.data)==null?0:c.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(),S.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.Az(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.J.computeShowTooltip=function(S,c){return!!(S&&S.tooltip&&c)};
_.J.maybeUpdateTooltipText=function(){var S=this,c;if((c=this.data)==null?0:c.tooltip){var Q=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.XV)(S.tooltip).textContent=Q},250)}};
_.J.handleLiveChatActions=function(S){var c=this;S.length&&(this.id!=="creator"&&this.id!=="product-picker"||S.forEach(function(Q){(Q=c.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",Q))&&Q.durationSec===Q.fullDurationSec&&c.startBubble(c.colorFromDecimal(Q.startBackgroundColor))}))};
_.J.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.J.startBubble=function(S){_.Or(this.hostElement,{"--yt-live-chat-monetization-button-glow":S});this.hostElement.setAttribute("bubble","")};
_.J.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.J.colorFromDecimal=function(S){typeof S==="string"&&(S=Number(S));return"rgba("+[S>>16&255,S>>8&255,S&255,(S>>24&255)/255].join()+")"};
vN.prototype.onAnimationEnd=vN.prototype.onAnimationEnd;vN.prototype.disabledChanged=vN.prototype.disabledChanged;vN.prototype.dataChanged=vN.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],vN.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vN.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.dc.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],vN.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vN.prototype,"data",void 0);_.d([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",Object)],vN.prototype,"id",void 0);_.d([_.Z({notify:!0,reflectToAttribute:!0}),_.P("design:type",Object)],vN.prototype,"active",void 0);
_.d([_.Z({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.P("design:type",Object)],vN.prototype,"icon",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],vN.prototype,"disabled",void 0);_.d([_.Z({computed:"computeShowTooltip(data, disabled)"}),_.P("design:type",Object)],vN.prototype,"showTooltip",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],vN.prototype,"useToggledActiveState",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vN.prototype,"dataChanged",null);_.d([_.B0("disabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vN.prototype,"disabledChanged",null);_.d([_.FV("animationend"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vN.prototype,"onAnimationEnd",null);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],vN);
_.k(vN,"yt-live-chat-icon-toggle-button-renderer",function(){if(iBV===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;MbN===void 0&&(MbN=document.createElement("template"));var f=MbN;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);iBV=S}S=iBV;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var ZBp;var GjB;var PN=function(){return _.W.apply(this,arguments)||this};
_.C(PN,_.W);PN.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.d([_.Z(),_.P("design:type",Object)],PN.prototype,"data",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],PN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.e({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],PN);
_.k(PN,"yt-live-chat-message-input-prompt-header-renderer",function(){if(GjB===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;ZBp===void 0&&(ZBp=document.createElement("template"));var f=ZBp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);GjB=S}S=GjB;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var WfV;var g4p;var eX8;var kj2;var rRU;var dpp;var v4E=function(){return _.W.apply(this,arguments)||this};
_.C(v4E,_.W);_.d([_.Z(),_.P("design:type",Object)],v4E.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],v4E);
_.k(v4E,"yt-live-chat-message-subtext-renderer",function(){if(dpp===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;rRU===void 0&&(rRU=document.createElement("template"));var f=rRU;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);dpp=S}S=dpp;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var LV=function(){var S=_.W.apply(this,arguments)||this;S.subtextOnBottom=!1;S.buttonOverrides={style:"mono",type:"tonal"};return S};
_.C(LV,_.W);LV.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LV.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],LV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LV.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],LV.prototype,"subtextOnBottom",void 0);_.d([_.Z(),_.P("design:type",Object)],LV.prototype,"buttonOverrides",void 0);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],LV);
_.k(LV,"yt-live-chat-message-renderer",function(){if(kj2===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;eX8===void 0&&(eX8=document.createElement("template"));var f=eX8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);kj2=S}S=kj2;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var PzV;var LfE;var Ef=function(){var S=_.W.apply(this,arguments)||this;S.isRemovable=!1;S.hasPrefilledText=!1;S.isInputDirty=!1;S.overCharacterLimit=!1;S.underCharacterLimit=!1;S.showErrorMessage=!1;return S};
_.C(Ef,_.W);_.J=Ef.prototype;_.J.computeId=function(){return this.data.id};
_.J.computeInputData=function(){return this.data.inputData};
_.J.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.J.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.J.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.J.getLiveChatRichMessageInput=function(){return _.Ur(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.J.clearInput=function(){_.Ur(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.J.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.J.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.J.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.J.handleTextInputCharCountChanged=function(S){S=S.detail&&S.detail.characterCount;S!==void 0&&(this.characterCount=S,S!==0&&(this.isInputDirty=!0))};
_.J.onInputFocusOut=function(){this.isInputDirty=!0};
_.J.onClickCloseButton=function(){_.Az(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
Ef.prototype.handleTextInputCharCountChanged=Ef.prototype.handleTextInputCharCountChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ef.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ef.prototype,"data",void 0);_.d([_.Z({computed:"computeId(data.id)"}),_.P("design:type",String)],Ef.prototype,"id",void 0);_.d([_.Z({computed:"computeInputData(data.inputData)"}),_.P("design:type",Object)],Ef.prototype,"inputData",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.P("design:type",Object)],Ef.prototype,"isRemovable",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.P("design:type",Object)],Ef.prototype,"hasPrefilledText",void 0);_.d([_.Z({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.P("design:type",Number)],Ef.prototype,"charactersRemaining",void 0);
_.d([_.Z(),_.P("design:type",Number)],Ef.prototype,"characterCount",void 0);_.d([_.Z(),_.P("design:type",Object)],Ef.prototype,"isInputDirty",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.P("design:type",Object)],Ef.prototype,"overCharacterLimit",void 0);_.d([_.Z({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.P("design:type",Object)],Ef.prototype,"underCharacterLimit",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.P("design:type",Object)],Ef.prototype,"showErrorMessage",void 0);_.d([_.FV("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Ef.prototype,"handleTextInputCharCountChanged",null);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],Ef);
_.k(Ef,"yt-live-chat-poll-editor-input",function(){if(LfE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;PzV===void 0&&(PzV=document.createElement("template"));var f=PzV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);LfE=S}S=LfE;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var E4O;var tb8;var VbE={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},ti=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_button_rework_with_live");S.closeButtonOverrides={iconPosition:"icon-only"};S.startButtonOverrides={style:"mono",type:"filled"};S.addOptionButtonOverrides={style:"mono",type:"text"};return S};
_.C(ti,_.W);_.J=ti.prototype;
_.J.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"}}}}};
_.J.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var S;_.Y((S=this.data)==null?void 0:S.startButton,_.GF)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.computeId=function(){return this.data&&this.data.id||""};
_.J.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.J.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.J.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.J.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.J.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var S=0;S<this.pollEditorInfoWithDefaults.minPollOptions;S++)this.addPollOptionData()};
_.J.getIsValidPoll=function(){var S=this;if(!this.pollEditorInfoWithDefaults)return!1;var c=this.pollEditorInfoWithDefaults,Q=c.minPollOptionChars,f=c.maxPollOptionChars,U=c.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>c.maxPollQuestionChars)return!1;c=_.Ur(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(c).every(function(a,X){a=a.characterCount;!a&&U[X]&&(a=S.ytRendererBehavior.getSimpleString(U[X]).length);return a!==void 0&&a>=Q&&a<=f})};
_.J.isValidPollChanged=function(){var S;_.Y((S=this.data)==null?void 0:S.startButton,_.GF)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.J.addPollOptionData=function(){var S=this.pollEditorInfoWithDefaults,c=S.maxPollOptionChars,Q=S.optionPlaceholderText,f=S.customOptionPlaceholderText,U=S.pollOptionData;this.currentNumPollOptions>=S.maxPollOptions||(S={liveChatPollOptionInput:{inputData:{placeholder:f[this.currentNumPollOptions]||Q,maxCharacterLimit:c},maxCharacterLimit:c,minCharacterLimit:S.minPollOptionChars,hasPrefilledText:!!f[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=S.minPollOptions}},U.charCountErrorText&&
(S.liveChatPollOptionInput.charCountErrorText=U.charCountErrorText),U.charsRemainingAltLabel&&(S.liveChatPollOptionInput.charsRemainingAltLabel=U.charsRemainingAltLabel),U.removeOptionAltText&&(S.liveChatPollOptionInput.removeOptionAltText=U.removeOptionAltText),this.push("pollOptionsData",S),U=Array.from(_.Ur(_.Ur(this.hostElement).querySelector("#poll-options")).children),U.forEach(function(a,X){a.polymerController.set("data.id",X)}),_.Ur(U[U.length-1]).querySelector("#input").focus())};
_.J.getPollOptionInputValues=function(){var S=this,c=[],Q=_.Ur(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),f=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(Q).forEach(function(U,a){var X=null;U=U.getLiveChatRichMessageInput();var z;(U==null?0:(z=U.textSegments)==null?0:z.length)?X=_.ey(U):f[a]&&(X=S.formattedStringToLiveChatRichMessageInput(f[a]));c.push(X)});
return c};
_.J.requestCreateAndStartPoll=function(S){var c=this.getPollOptionInputValues();if(!c.some(function(f){return!f})){c={optionText:c};
var Q=_.Ur(_.Ur(this.hostElement).querySelector("#poll-question")).firstChild;Q&&Q.liveChatRichMessageInput&&(c.questionText=_.ey(Q.liveChatRichMessageInput));_.xt(this.hostElement,[S,c])}};
_.J.selectedChanged=function(){if(this.selected){var S=_.Ur(_.Ur(this.hostElement).querySelector("#start-button")).firstElementChild;if(S){var c;(c=_.Ur(S).querySelector("#button")||_.Jq(S).querySelector("button"))==null||c.focus()}}};
_.J.handleTextInputChanged=function(S){var c;((c=S.target)==null?void 0:c.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=S.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.J.handleStartButtonAction=function(S){S.detail.actionName==="yt-service-request"&&(S.stopPropagation(),(S=S.detail.args[1])&&this.requestCreateAndStartPoll(S))};
_.J.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(S){this.createPollRequestInFlight=!1;(S=S.detail&&S.detail.data)&&S.success&&(_.Az(this.hostElement,"picker-cancelled"),_.XF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.J.onCloseClick=function(){_.Az(this.hostElement,"picker-cancelled");_.XF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.J.handlePollEditorInputClosed=function(S){var c=this.pollOptionsData.findIndex(function(Q){return Q.liveChatPollOptionInput.id===S.detail.id});
this.splice("pollOptionsData",c,1);this.isValidPoll=this.getIsValidPoll()};
_.J.onPickerCancelled=function(){this.reset()};
_.J.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var S=_.Ur(_.Ur(this.hostElement).querySelector("#poll-question")).firstChild;S&&S.setLiveChatRichMessageInput(null);if(S=_.Ur(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){S=_.A(Array.from(S));for(var c=S.next();!c.done;c=S.next())c.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.J.formattedStringToLiveChatRichMessageInput=function(S){return S.simpleText?{text_segments:[S.simpleText]}:{text_segments:S.runs}};
_.Rh.Object.defineProperties(ti.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(VbE,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
ti.prototype.onPickerCancelled=ti.prototype.onPickerCancelled;ti.prototype.handlePollEditorInputClosed=ti.prototype.handlePollEditorInputClosed;ti.prototype.handleServiceRequestCompleted=ti.prototype.handleServiceRequestCompleted;ti.prototype.handleServiceRequestSent=ti.prototype.handleServiceRequestSent;ti.prototype.handleTextInputChanged=ti.prototype.handleTextInputChanged;ti.prototype.selectedChanged=ti.prototype.selectedChanged;ti.prototype.isValidPollChanged=ti.prototype.isValidPollChanged;
ti.prototype.shouldInitializePollChanged=ti.prototype.shouldInitializePollChanged;ti.prototype.dataChanged=ti.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ti.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ti.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ti.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ti.prototype,"modern",void 0);
_.d([_.Z(),_.P("design:type",Object)],ti.prototype,"closeButtonOverrides",void 0);_.d([_.Z(),_.P("design:type",Object)],ti.prototype,"startButtonOverrides",void 0);_.d([_.Z(),_.P("design:type",Object)],ti.prototype,"addOptionButtonOverrides",void 0);_.d([_.Z({computed:"computeId(data.id)",reflectToAttribute:!0}),_.P("design:type",String)],ti.prototype,"id",void 0);_.d([_.Z({value:function(){return[]}}),
_.P("design:type",Array)],ti.prototype,"pollOptionsData",void 0);_.d([_.M("pollEditorInfoWithDefaults"),_.P("design:type",Object),_.P("design:paramtypes",[])],ti.prototype,"pollQuestionData",null);_.d([_.Z({value:0}),_.P("design:type",Number)],ti.prototype,"pollQuestionCharacterCount",void 0);_.d([_.M("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],ti.prototype,"pollQuestionCharactersRemaining",null);
_.d([_.Z({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.P("design:type",Boolean)],ti.prototype,"overQuestionCharacterLimit",void 0);_.d([_.M("data.pollEditorInfo"),_.P("design:type",Object),_.P("design:paramtypes",[])],ti.prototype,"pollEditorInfoWithDefaults",null);_.d([_.Z({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.P("design:type",Number)],ti.prototype,"currentNumPollOptions",void 0);
_.d([_.Z({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.P("design:type",Boolean)],ti.prototype,"hasMaxNumPollOptions",void 0);_.d([_.M("pollEditorInfoWithDefaults","pollOptionsData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ti.prototype,"shouldInitializePoll",null);_.d([_.Z(),_.P("design:type",Object)],ti.prototype,"isValidPoll",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],ti.prototype,"createPollRequestInFlight",void 0);_.d([_.Z(),_.P("design:type",Object)],ti.prototype,"selected",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.P("design:type",Boolean)],ti.prototype,"showQuestionErrorMessage",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ti.prototype,"dataChanged",null);_.d([_.B0("shouldInitializePoll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ti.prototype,"shouldInitializePollChanged",null);_.d([_.B0("isValidPoll"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ti.prototype,"isValidPollChanged",null);
_.d([_.B0("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ti.prototype,"selectedChanged",null);_.d([_.FV("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ti.prototype,"handleTextInputChanged",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ti.prototype,"handleServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ti.prototype,"handleServiceRequestCompleted",null);
_.d([_.FV("yt-live-chat-poll-editor-input-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ti.prototype,"handlePollEditorInputClosed",null);_.d([_.FV("picker-cancelled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ti.prototype,"onPickerCancelled",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],ti);
_.k(ti,"yt-live-chat-poll-editor-panel-renderer",function(){if(tb8===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;E4O===void 0&&(E4O=document.createElement("template"));var f=E4O;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);tb8=S}S=tb8;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var RX1;var yRB;var Vc=function(){return _.W.apply(this,arguments)||this};
_.C(Vc,_.W);Vc.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
Vc.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Rh.Object.defineProperties(Vc.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var S,c;return(S=this.data)==null?void 0:(c=S.title)==null?void 0:c.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var S;return _.Gv((S=this.data)==null?void 0:S.onTapCommand)}}});
_.d([_.p(_.Km.YtEndpointBehavior),_.P("design:type",Object)],Vc.prototype,"ytEndpointBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Vc.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Vc.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vc.prototype,"itemId",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vc.prototype,"hasPromotion",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Vc.prototype,"innertubeCommand",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],Vc);
_.k(Vc,"yt-live-chat-product-picker-panel-item-view-model",function(){if(yRB===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;RX1===void 0&&(RX1=document.createElement("template"));var f=RX1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);yRB=S}S=yRB;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var o4V;var mpp;var R$=function(){var S=_.W.apply(this,arguments)||this;S.id="product-picker";S.selected=!1;S.closeButtonId="close-button";S.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return S};
_.C(R$,_.W);_.J=R$.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var S=_.Ur(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");S.length&&S[0].focus()};
_.J.onCloseBuyFlow=function(){_.Az(this.hostElement,"picker-cancelled")};
_.J.onCloseClick=function(){_.Az(this.hostElement,"picker-cancelled");var S;((S=this.data)==null?0:S.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.Y(this.data.closeButton,_.Ya))};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Az(this.hostElement,"picker-cancelled")};
R$.prototype.observeSelected=R$.prototype.observeSelected;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],R$.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],R$.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],R$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],R$.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],R$.prototype,"id",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],R$.prototype,"selected",void 0);_.d([_.Z(),_.P("design:type",Object)],R$.prototype,"closeButtonId",void 0);_.d([_.B0("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R$.prototype,"observeSelected",null);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],R$);
_.k(R$,"yt-live-chat-product-picker-panel-view-model",function(){if(mpp===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;o4V===void 0&&(o4V=document.createElement("template"));var f=o4V;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);mpp=S}S=mpp;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var SiE;var cF8;var yc=function(){var S=_.W.apply(this,arguments)||this;S.iconId="";S.icon="";S.disabled=!1;S.systemIcons=_.u("kevlar_system_icons");return S};
_.C(yc,_.W);_.J=yc.prototype;_.J.attached=function(){_.u("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"))};
_.J.computeIconId=function(S){return S&&S.icon&&S.icon.iconType?S.icon.iconType.toLowerCase():""};
_.J.computeIcon=function(S){return S&&S.icon&&S.icon.iconType?(S=S.icon.iconType.toLowerCase(),(S.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+S):""};
_.J.computeDisabled=function(S){return!!S};
_.J.computeCommand=function(S,c){return c?void 0:S};
_.J.computeTooltip=function(S,c){return c&&S?S:""};
_.J.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.Rh.Object.defineProperties(yc.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){if(!_.u("live_chat_compute_product_button_aria_label"))return"";var S="",c,Q,f;if((c=this.data)==null?0:(Q=c.text)==null?0:(f=Q.runs)==null?0:f.length)S=this.data.text.runs[0].text||"";else{var U,a;if((U=this.data)==null?0:(a=U.text)==null?0:a.simpleText)S=this.data.text.simpleText}var X,z,x;if((X=this.data)==null?0:(z=X.subtext)==null?0:(x=z.runs)==null?0:x.length)S&&(S+=". "),S+=this.data.subtext.runs[0].text||
"";else{var I,n;if((I=this.data)==null?0:(n=I.subtext)==null?0:n.simpleText)S&&(S+=". "),S+=this.data.subtext.simpleText}return S}}});
_.d([_.p(_.Km.YtEndpointBehavior),_.P("design:type",Object)],yc.prototype,"ytEndpointBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yc.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yc.prototype,"data",void 0);_.d([_.Z({computed:"computeIconId(data)",reflectToAttribute:!0}),_.P("design:type",Object)],yc.prototype,"iconId",void 0);
_.d([_.Z({computed:"computeIcon(data)",reflectToAttribute:!0}),_.P("design:type",Object)],yc.prototype,"icon",void 0);_.d([_.Z({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.P("design:type",Object)],yc.prototype,"disabled",void 0);_.d([_.Z({computed:"computeCommand(data.command, disabled)"}),_.P("design:type",Object)],yc.prototype,"command",void 0);_.d([_.Z({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.P("design:type",String)],yc.prototype,"tooltip",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yc.prototype,"systemIcons",void 0);_.d([_.M("data.text","data.subtext"),_.Z(),_.P("design:type",String),_.P("design:paramtypes",[])],yc.prototype,"ariaLabel",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],yc);
_.k(yc,"yt-live-chat-product-button-renderer",function(){if(cF8===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;SiE===void 0&&(SiE=document.createElement("template"));var f=SiE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);cF8=S}S=cF8;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var Q9O;var f7E;var o$=function(){var S=_.W.apply(this,arguments)||this;S.selected=!1;S.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 S};
_.C(o$,_.W);_.J=o$.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.computeId=function(S){return S.id||""};
_.J.onCloseClick=function(){_.Az(this.hostElement,"picker-cancelled")};
_.J.observeSelected=function(){this.selected&&this.hostElement.focus();var S=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");S.length&&S[0].focus()};
_.J.onCloseBuyFlow=function(){_.Az(this.hostElement,"picker-cancelled")};
_.J.onCloseEngageWithAudienceEditorPanels=function(){_.Az(this.hostElement,"picker-cancelled")};
o$.prototype.observeSelected=o$.prototype.observeSelected;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],o$.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],o$.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],o$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],o$.prototype,"data",void 0);
_.d([_.Z({computed:"computeId(data)",reflectToAttribute:!0}),_.P("design:type",String)],o$.prototype,"id",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],o$.prototype,"selected",void 0);_.d([_.B0("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],o$.prototype,"observeSelected",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],o$);
_.k(o$,"yt-live-chat-product-picker-renderer",function(){if(f7E===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;Q9O===void 0&&(Q9O=document.createElement("template"));var f=Q9O;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);f7E=S}S=f7E;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var UAE;var JF8;var a7T;var AF8;var mR=function(){return _.W.apply(this,arguments)||this};
_.C(mR,_.W);mR.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()};
mR.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
mR.prototype.created=function(){this.ids={background:_.hD(),maskOne:_.hD(),maskTwo:_.hD(),gradient:_.hD(),largeBackground:_.hD(),largeGradientOne:_.hD(),largeGradientTwo:_.hD(),largeGradientPath:_.hD()}};
mR.prototype.maybeLoadAnimationBackground=mR.prototype.maybeLoadAnimationBackground;_.d([_.Z({value:!1}),_.P("design:type",Boolean)],mR.prototype,"useLargeBackground",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],mR.prototype,"useAnimationBackground",void 0);_.d([_.Z({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.P("design:type",Boolean)],mR.prototype,"useRegularBackground",void 0);
_.d([_.Z(),_.P("design:type",Object)],mR.prototype,"ids",void 0);_.d([_.Z(),_.P("design:type",Object)],mR.prototype,"lottieAnimation",void 0);_.d([_.nU("#animation-background"),_.P("design:type",HTMLDivElement)],mR.prototype,"animationBackground",void 0);_.d([_.B0("useAnimationBackground"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mR.prototype,"maybeLoadAnimationBackground",null);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],mR);
_.k(mR,"yt-live-interactivity-component-background",function(){if(AF8===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;a7T===void 0&&(a7T=document.createElement("template"));var f=a7T;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);AF8=S}S=AF8;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var SH=function(){var S=_.W.apply(this,arguments)||this;S.characterCount=0;S.showInputErrorMessage=!1;S.startQnaRequestInFlight=!1;S.modern=_.u("web_button_rework_with_live");S.buttonOverrides={style:"mono",type:"filled"};S.closeButtonOverrides={iconPosition:"icon-only"};S.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return S};
_.C(SH,_.W);_.J=SH.prototype;
_.J.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]]"}}}}}};
_.J.onCharacterCountChanged=function(S){var c,Q,f,U,a=(Q=_.Y(this==null?void 0:(c=this.data)==null?void 0:c.creatorCallForQuestions,gf8))==null?void 0:(f=Q.inputField)==null?void 0:(U=f.liveChatTextInputFieldRenderer)==null?void 0:U.maxCharacterLimit,X,z;a!=null&&(S==null?void 0:(X=S.detail)==null?void 0:X.characterCount)!=null&&_.Y(this==null?void 0:(z=this.data)==null?void 0:z.startButton,_.GF)&&(c=S.detail.characterCount>a,this.set("data.startButton.buttonRenderer.isDisabled",S.detail.characterCount===
0||c),this.showInputErrorMessage=c)};
_.J.onCloseClick=function(){_.Az(this.hostElement,"picker-cancelled");_.XF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.onPickerCancelled=function(){var S=_.Ur(this.hostElement).querySelector("#qna-creator-text-input-field");S&&S.setLiveChatRichMessageInput(null)};
_.J.handleOpenQnaStartPanel=function(){var S=_.Ur(this.hostElement).querySelector("#qna-creator-text-input-field");S&&S.focus()};
_.J.handleStartButtonAction=function(S){var c=this;if(S.detail.actionName==="yt-service-request"&&(S.stopPropagation(),S=S.detail.args[1])){var Q=_.Ur(this.hostElement).querySelector("#qna-creator-text-input-field"),f;(Q==null?0:(f=Q.liveChatRichMessageInput)==null?0:f.textSegments)&&Q.liveChatRichMessageInput.textSegments.length!==0&&(f={rich_message:_.ey(Q.liveChatRichMessageInput)},_.xt(this.hostElement,[S,f]).then(function(){_.Az(c.hostElement,"picker-cancelled")}))}};
_.J.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.J.handleServiceRequestCompleted=function(S){var c;S=S==null?void 0:(c=S.detail)==null?void 0:c.data;(S==null?0:S.actions)&&S.actions.length>0?this.startQnaRequestInFlight=!1:_.XF(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.J.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
SH.prototype.handleServiceRequestError=SH.prototype.handleServiceRequestError;SH.prototype.handleServiceRequestCompleted=SH.prototype.handleServiceRequestCompleted;SH.prototype.handleServiceRequestSent=SH.prototype.handleServiceRequestSent;SH.prototype.onPickerCancelled=SH.prototype.onPickerCancelled;SH.prototype.onCharacterCountChanged=SH.prototype.onCharacterCountChanged;_.d([_.Z(),_.P("design:type",Object)],SH.prototype,"characterCount",void 0);
_.d([_.Z(),_.P("design:type",Object)],SH.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],SH.prototype,"showInputErrorMessage",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],SH.prototype,"startQnaRequestInFlight",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],SH.prototype,"modern",void 0);_.d([_.Z(),_.P("design:type",Object)],SH.prototype,"buttonOverrides",void 0);
_.d([_.Z(),_.P("design:type",Object)],SH.prototype,"closeButtonOverrides",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],SH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],SH.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.p(_.eI.YtLiveChatItemBehavior),_.P("design:type",_.kJ)],SH.prototype,"ytLiveChatItemBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],SH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.FV("yt-live-chat-text-input-field-renderer-character-count-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],SH.prototype,"onCharacterCountChanged",null);_.d([_.FV("picker-cancelled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SH.prototype,"onPickerCancelled",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],SH.prototype,"handleServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],SH.prototype,"handleServiceRequestCompleted",null);
_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],SH.prototype,"handleServiceRequestError",null);_.d([_.e({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],SH);
_.k(SH,"yt-live-chat-qna-start-panel-renderer",function(){if(JF8===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;UAE===void 0&&(UAE=document.createElement("template"));var f=UAE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);JF8=S}S=JF8;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var XhV;var OAp;var co=function(){return _.W.apply(this,arguments)||this};
_.C(co,_.W);co.prototype.dismiss=function(){_.Az(this.hostElement,"yt-live-chat-error-message-dismiss")};
co.prototype.edit=function(){_.Az(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.d([_.Z(),_.P("design:type",Object)],co.prototype,"data",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],co);
_.k(co,"yt-live-chat-text-actions-error-message-renderer",function(){if(OAp===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;XhV===void 0&&(XhV=document.createElement("template"));var f=XhV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);OAp=S}S=OAp;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var zG8;var xAU;var FgO;var BAN;var Qj=function(){var S=_.W.apply(this,arguments)||this;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.newnessDotEligible=!1;return S};
_.C(Qj,_.W);Qj.prototype.sendReaction=function(){var S,c,Q=((S=this.data)==null?void 0:S.emojiId)||((c=this.data)==null?void 0:c.emoteId),f;Q&&((f=this.data)==null?0:f.shouldTriggerAnimation)&&_.XF(this.hostElement,"yt-create-user-reaction-animation",[Q]);var U;(S=_.Gv((U=this.data)==null?void 0:U.onTap))&&_.IW(S,this.hostElement);this.showNewnessDot&&_.XF(this.hostElement,"yt-hide-newness-dot")};
Qj.prototype.onClick=function(S){(!S||S.clientX||S.clientY)&&this.sendReaction()};
Qj.prototype.onKeyDown=function(S){S.key!=="Enter"&&S.key!==" "||S.repeat||this.sendReaction()};
_.Rh.Object.defineProperties(Qj.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var S,c;return!!(((S=this.data)==null?0:S.emojiId)||((c=this.data)==null?0:c.emoteId))}}});
_.d([_.Z(),_.P("design:type",Object)],Qj.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Qj.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],Qj.prototype,"newnessDotEligible",void 0);_.d([_.M("data.maybeShowNewnessDot"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qj.prototype,"showNewnessDot",null);_.d([_.M("data.emojiId","data.emoteId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qj.prototype,"useYtImage",null);
_.d([_.wM({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],Qj);
_.k(Qj,"yt-reaction-control-panel-button-view-model",function(){if(BAN===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;FgO===void 0&&(FgO=document.createElement("template"));var f=FgO;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);BAN=S}S=BAN;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var I70;var n6E;var fG=function(){var S=_.W.apply(this,arguments)||this;S.reactionControlPanelExpanded=!1;S.isDarkTheme=document.documentElement.hasAttribute("dark");S.newnessDotEligible=!1;return S};
_.C(fG,_.W);_.J=fG.prototype;_.J.expandedButtonsChanged=function(){var S,c;_.Or(this.hostElement,{"--expanded-buttons-height":((c=(S=this.expandedButtonsData)==null?void 0:S.length)!=null?c:0)*36+"px"})};
_.J.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}}};
_.J.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.J.onMouseLeave=function(){var S=this;this.collapseTimer=setTimeout(function(){S.reactionControlPanelExpanded=!1},500)};
_.J.onFocusIn=function(){this.onMouseEnter()};
_.J.onFocusOut=function(){this.onMouseLeave()};
_.J.onCollapsedButtonFocusIn=function(){var S=this;setTimeout(function(){var c;(c=S.expandedButtons.querySelector("button"))==null||c.focus()},100)};
_.J.onCollapsedButtonFocusOut=function(S){S.stopPropagation()};
_.Rh.Object.defineProperties(fG.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var S,c;return _.Cn.unsafeClone((S=this.liveReactionsData)==null?void 0:S.emojiButtonData)||((c=this.data)==null?void 0:c.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var S;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((S=this.data)==null||!S.maybeShowNewnessDot)}}});
fG.prototype.expandedButtonsChanged=fG.prototype.expandedButtonsChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],fG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],fG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],fG.prototype,"ytLiveChatReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],fG.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],fG.prototype,"reactionControlPanelExpanded",void 0);_.d([_.Z({selectorArgs:["data.liveReactionsDataEntityKey"],selector:uM8}),_.P("design:type",Object)],fG.prototype,"liveReactionsData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],fG.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],fG.prototype,"newnessDotEligible",void 0);
_.d([_.M("liveReactionsData","data.expandedButtons"),_.P("design:type",Object),_.P("design:paramtypes",[])],fG.prototype,"expandedButtonsData",null);_.d([_.M("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.Z({reflectToAttribute:!0}),_.P("design:type",Object),_.P("design:paramtypes",[])],fG.prototype,"showNewnessDot",null);_.d([_.nU("#expanded-buttons"),_.P("design:type",HTMLElement)],fG.prototype,"expandedButtons",void 0);
_.d([_.B0("expandedButtonsData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fG.prototype,"expandedButtonsChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],fG);
_.k(fG,"yt-reaction-control-panel-view-model",function(){if(n6E===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;I70===void 0&&(I70=document.createElement("template"));var f=I70;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);n6E=S}S=n6E;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var UA=new _.ge("yt-live-chat"),bAg=Date.parse("2024-7-24"),JX=function(){var S=_.W.apply(this,arguments)||this;S.emojiManager=_.g4;S.newnessDotEligible=!1;S.newnessDotImpressionCounted=!1;S.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return S};
_.C(JX,_.W);_.J=JX.prototype;_.J.emojiCustomizationEnabledChanged=function(){var S;((S=this.data)==null?0:S.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((S=UA.getCreationTime("emoji-customization-count"))&&S<bAg&&UA.set("emoji-customization-count","0"),S=Number(UA.get("emoji-customization-count"))||0,S<3&&(this.newnessDotEligible=!0,UA.set("emoji-customization-count",(S+1).toString())),this.newnessDotImpressionCounted=!0)};
_.J.hideNewnessDot=function(){this.newnessDotEligible=!1;UA.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.J.handleReactionsMute=function(S){var c=_.wN(),Q=_.qo(206221),f={checkboxData:{state:S?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};c&&_.tz(c,Q,f);this.reactionsMuted=S};
_.J.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.J.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}}};
_.Rh.Object.defineProperties(JX.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var S;return(!((S=this.liveReactionsData)==null||!S.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
JX.prototype.liveReactionsSettingChanged=JX.prototype.liveReactionsSettingChanged;JX.prototype.emojiCustomizationEnabledChanged=JX.prototype.emojiCustomizationEnabledChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],JX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],JX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.rc),_.P("design:type",Object)],JX.prototype,"ytLiveChatReduxBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],JX.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],JX.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",_.Zp)],JX.prototype,"emojiManager",void 0);_.d([_.Z(),_.P("design:type",Object)],JX.prototype,"newnessDotEligible",void 0);_.d([_.Z(),_.P("design:type",Object)],JX.prototype,"newnessDotImpressionCounted",void 0);
_.d([_.Z({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:jD0}),_.P("design:type",Boolean)],JX.prototype,"liveReactionsSetting",void 0);_.d([_.Z({selectorArgs:["data.liveReactionsDataEntityKey"],selector:uM8}),_.P("design:type",Object)],JX.prototype,"liveReactionsData",void 0);_.d([_.Z({value:function(){var S=_.u("enable_lwe_web_mute"),c=UA.get("allow-reactions");return c===void 0?!1:!c&&S}}),
_.P("design:type",Boolean)],JX.prototype,"reactionsMuted",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],JX.prototype,"liveReactionsEnabled",null);_.d([_.B0("data.emojiCustomizationEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JX.prototype,"emojiCustomizationEnabledChanged",null);
_.d([_.B0("liveReactionsEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JX.prototype,"liveReactionsSettingChanged",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],JX);
_.k(JX,"yt-reaction-control-panel-overlay-view-model",function(){if(xAU===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;zG8===void 0&&(zG8=document.createElement("template"));var f=zG8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);xAU=S}S=xAU;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var NA0={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(S){var c=this.$.pickers.selected;if(c){_.Ur(this.hostElement).removeAttribute(c+"-open");var Q="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(Q="#picker-buttons",c==="emoji"&&_.Ur(this.hostElement).querySelector("#emoji-picker-button")&&(Q="#emoji-picker-button"));if(Q=_.Ur(this.hostElement).querySelector(Q).querySelector("#"+c))Q.active=!1}Q=S;c==S&&(Q=null);c!=
S&&_.Ur(this.hostElement).setAttribute(S+"-open","");this.$.pickers.selected=Q;_.XF(this.hostElement,"yt-live-chat-picker-changed",[Q])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var ao=function(){var S=_.W.apply(this,arguments)||this;S.numSentMessages=0;S.timeoutDurationMs=0;S.timeoutMs=0;S.lastTimeoutTimeMs=0;S.pendingMessageId="";S.hasFiredInitialFocusActions=!1;S.isBeforeFocusEnabled=!0;S.id="";S.characterCount=0;S.maxCharacterLimit=0;S.remainingCharacterCount=0;S.inputExpanded=!1;S.buttonOverrides={iconPosition:"icon-only"};S.inReplyPanel=!1;S.countdownRatio=0;S.isTooltipVisible=!1;S.tooltipTimeout=1E4;S.systemIcons=_.u("kevlar_system_icons");S.tallerEmojiPicker=_.u("live_chat_taller_emoji_picker");
S.sendReplyMessageInFlight=!1;S.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"};S.onResize=function(){S.maybeToggleCharacterCount()};
return S};
_.C(ao,_.W);_.J=ao.prototype;
_.J.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"}}}};
_.J.attached=function(){window.addEventListener("resize",this.onResize)};
_.J.detached=function(){window.removeEventListener("resize",this.onResize)};
_.J.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.J.sendMessage=function(){var S=this,c,Q,f,U;return _.O(function(a){if(S.sendDisabled)return a.return();S.isTooltipVisible&&_.XF(S.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(S.data.sendButton&&S.data.sendButton.buttonRenderer){S.input.completeEmojis();c=S.data.sendButton.buttonRenderer.serviceEndpoint;if(!c)return a.return();f=((Q=_.Y(c,_.TTd))==null?void 0:Q.clientIdPrefix)||"";U={client_message_id:f+String(S.numSentMessages++),rich_message:_.ey(S.input.liveChatRichMessageInput)};
S.pendingMessageId=U.client_message_id;S.inReplyPanel&&(S.sendReplyMessageInFlight=!0);_.xt(S.hostElement,[c,U]);S.input.setLiveChatRichMessageInput(null)}_.IN(a)})};
_.J.handleSendButtonAction=function(S){S.detail.actionName==="yt-service-request"&&(S.stopPropagation(),this.sendMessage())};
_.J.onSendCompleted=function(S,c){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(S=this.get("timeoutDurationUsec",c.data))&&this.handleTimeout(Number(S)/1E3);this.errorMessage=this.get("errorMessage",c.data);this.pendingMessageId=""};
_.J.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.XF(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.J.handlePickerButtonToggle=function(S){S=S.detail.targetId;this.ytPickerBehavior.togglePicker_(S);if(S==="emoji")this.input.focus();else if(S==="qna-start-panel"){var c,Q;(c=_.Ur(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(Q=c.querySelector("#qna-creator-text-input-field"))==null||Q.focus()}};
_.J.onComponentReplaced=function(S){var c,Q;S.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((c=S.replacement.liveChatMessageInputRenderer)==null?0:(Q=c.headerRenderer)==null?0:Q.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.J.onEmojiSelect=function(S){this.input.focus();this.input.insertEmoji(S.detail)};
_.J.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.J.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.XF(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.XF(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.J.onOpenPopupAction=function(S,c){var Q=this;c===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.XF(Q.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.J.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.J.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.J.focusChanged=function(){this.maybeToggleCharacterCount()};
_.J.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var S=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",S>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.J.computeId=function(){return this.data&&this.data.targetId||""};
_.J.computeSendDisabled=function(S,c,Q,f){S=!!(!S||c&&S>c||f);(c=_.Ur(this.hostElement).querySelector("#send-button"))&&c.children.length&&(c.children[0].disabled=S);return S};
_.J.handleTimeout=function(S){this.timeoutDurationMs=this.timeoutMs=S;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.J.updateTimeout=function(S){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(S-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=S,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.J.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.J.onErrorMessageEdit=function(S){this.input.setLiveChatRichMessageInput(S.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.J.errorMessageChanged=function(){var S=this;_.gM(function(){_.XF(S.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.J.computeAuthorNameColor=function(S){var c;if(_.u("live_chat_author_name_color_usernames")&&(S==null?0:(c=S.authorName)==null?0:c.simpleText))return _.N$T(_.KFp(S.authorName.simpleText));if(_.u("live_chat_seed_color_usernames")&&(S==null?0:S.authorSeedColorArgb))return _.N$T(_.OX(S.authorSeedColorArgb));if(_.u("live_chat_colored_usernames"))return"#cc0000";var Q;return _.u("live_chat_simple_color_usernames")&&(S==null?0:(Q=S.authorName)==null?0:Q.simpleText)&&(S==null?0:S.authorUsernameColorLight)&&
(S==null?0:S.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.OX(S.authorUsernameColorDark):_.OX(S.authorUsernameColorLight):""};
_.J.onIsTooltipVisibleChanged=function(){var S=_.Ur(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){S.hidden=!1;S.setAttribute("role","alert")},0):(S.hidden=!0,S.removeAttribute("role"))};
_.J.onFocusedChanged=function(S){this.inputFocused=S.detail.value};
_.Rh.Object.defineProperties(ao.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 S;return!((S=this.data)==null||!S.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:(c=S.pickers)==null?void 0:c.find(function(Q){return Q.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return S?this.ytRendererBehavior.getSimpleString(S):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
ao.prototype.onIsTooltipVisibleChanged=ao.prototype.onIsTooltipVisibleChanged;ao.prototype.errorMessageChanged=ao.prototype.errorMessageChanged;ao.prototype.onErrorMessageEdit=ao.prototype.onErrorMessageEdit;ao.prototype.onErrorMessageDismiss=ao.prototype.onErrorMessageDismiss;ao.prototype.focusChanged=ao.prototype.focusChanged;ao.prototype.characterCountChanged=ao.prototype.characterCountChanged;ao.prototype.onEmojiSelect=ao.prototype.onEmojiSelect;ao.prototype.handlePickerButtonToggle=ao.prototype.handlePickerButtonToggle;
ao.prototype.onSendError=ao.prototype.onSendError;ao.prototype.onSendCompleted=ao.prototype.onSendCompleted;ao.prototype.sendMessage=ao.prototype.sendMessage;ao.prototype.dataChanged=ao.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ao.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ao.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(NA0.YtPickerBehavior),_.P("design:type",Object)],ao.prototype,"ytPickerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ao.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.dc.YtLiveChatTooltipTargetingBehavior),_.P("design:type",Object)],ao.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"hasFiredInitialFocusActions",void 0);
_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"isBeforeFocusEnabled",void 0);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"data",void 0);_.d([_.Z({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.P("design:type",Object)],ao.prototype,"id",void 0);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"characterCount",void 0);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"maxCharacterLimit",void 0);
_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"remainingCharacterCount",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ao.prototype,"inputExpanded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],ao.prototype,"inputFocused",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ao.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.d([_.Z(),_.P("design:type",_.vJ)],ao.prototype,"participantsManager",void 0);
_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"buttonOverrides",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ao.prototype,"inReplyPanel",void 0);_.d([_.M("characterCount, maxCharacterLimit, countdownActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ao.prototype,"sendDisabled",null);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"countdownRatio",void 0);
_.d([_.M("countdownRatio"),_.P("design:type",Number),_.P("design:paramtypes",[])],ao.prototype,"countdownStrokeDashOffset",null);_.d([_.M("countdownRatio"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ao.prototype,"countdownActive",null);_.d([_.M("data.interactionMessage"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ao.prototype,"hasInteractionMessage",null);
_.d([_.M("data.emojiPickerButton"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ao.prototype,"hasEmojiPickerButton",null);_.d([_.M("data, characterCount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ao.prototype,"showAvatar",null);_.d([_.M("data.pickers"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ao.prototype,"hasProductPickerPanelViewModel",null);
_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"errorMessage",void 0);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"genericErrorMessage",void 0);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"isTooltipVisible",void 0);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"tooltipTimeout",void 0);_.d([_.M("data.onInitialFocusCommand"),_.P("design:type",String),_.P("design:paramtypes",[])],ao.prototype,"tooltipMessage",null);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ao.prototype,"systemIcons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ao.prototype,"tallerEmojiPicker",void 0);_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],ao.prototype,"authorNameColor",null);_.d([_.Z(),_.P("design:type",Object)],ao.prototype,"sendReplyMessageInFlight",void 0);_.d([_.nU("#input"),_.P("design:type",_.ONz)],ao.prototype,"input",void 0);
_.d([_.nU("#count"),_.P("design:type",HTMLElement)],ao.prototype,"count",void 0);_.d([_.nU("#input-container"),_.P("design:type",HTMLElement)],ao.prototype,"inputContainer",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ao.prototype,"dataChanged",null);_.d([_.FV("yt-live-chat-send-message"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],ao.prototype,"sendMessage",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[Event,_.Vn]),_.P("design:returntype")],ao.prototype,"onSendCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ao.prototype,"onSendError",null);
_.d([_.FV("yt-live-chat-icon-toggle-button-renderer-toggle"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ao.prototype,"handlePickerButtonToggle",null);_.d([_.FV("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ao.prototype,"onEmojiSelect",null);
_.d([_.B0("characterCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ao.prototype,"characterCountChanged",null);_.d([_.B0("inputFocused"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ao.prototype,"focusChanged",null);_.d([_.FV("yt-live-chat-error-message-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ao.prototype,"onErrorMessageDismiss",null);
_.d([_.FV("yt-live-chat-error-message-edit"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ao.prototype,"onErrorMessageEdit",null);_.d([_.B0("errorMessage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ao.prototype,"errorMessageChanged",null);_.d([_.B0("isTooltipVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ao.prototype,"onIsTooltipVisibleChanged",null);
_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],ao);
_.k(ao,"yt-live-chat-message-input-renderer",function(){if(g4p===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;WfV===void 0&&(WfV=document.createElement("template"));var f=WfV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);g4p=S}S=g4p;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var KgE;var $AT;var AX=function(){var S=_.W.apply(this,arguments)||this;S.systemIcons=_.u("kevlar_system_icons");S.firedOnClickCommand=!1;S.inReplyPanel=!1;return S};
_.C(AX,_.W);
AX.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"}}}};
AX.prototype.onButtonToggle=function(S){S.target.disabled||this.ytPickerBehavior.togglePicker_(S.detail.targetId)};
AX.prototype.onClick=function(){var S=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.XF(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return S.firedOnClickCommand=!1},5E3))};
_.Rh.Object.defineProperties(AX.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:(c=S.panels)==null?void 0:c.find(function(Q){return Q.liveChatProductPickerPanelViewModel}))!==void 0}}});
AX.prototype.onButtonToggle=AX.prototype.onButtonToggle;_.d([_.p(NA0.YtPickerBehavior),_.P("design:type",Object)],AX.prototype,"ytPickerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],AX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],AX.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],AX.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],AX.prototype,"systemIcons",void 0);_.d([_.Z({reflectToAttribute:!1}),_.P("design:type",Object)],AX.prototype,"firedOnClickCommand",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],AX.prototype,"inReplyPanel",void 0);_.d([_.M("data.pickers"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],AX.prototype,"hasProductPickerPanelViewModel",null);
_.d([_.FV("yt-live-chat-icon-toggle-button-renderer-toggle"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],AX.prototype,"onButtonToggle",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],AX);
_.k(AX,"yt-live-chat-restricted-participation-renderer",function(){if($AT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;KgE===void 0&&(KgE=document.createElement("template"));var f=KgE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);$AT=S}S=$AT;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var X_=function(){var S=_.W.apply(this,arguments)||this;S.genericErrorMessage=_.LK("Error, try again.");S.inReplyPanel=!1;S.hideBorder=!1;return S};
_.C(X_,_.W);X_.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}}}}}};
_.Rh.Object.defineProperties(X_,{template:{configurable:!0,enumerable:!0,get:function(){return sV8()}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],X_.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],X_.prototype,"genericErrorMessage",void 0);_.d([_.Z(),_.P("design:type",Object)],X_.prototype,"inReplyPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],X_.prototype,"hideBorder",void 0);
_.d([_.wM({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],X_);_.k(X_,"yt-live-chat-engagement-panel-input-renderer",function(){return sV8()},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var uO0,j9g;uO0=_.qo(115994);j9g=_.qo(115993);_.OA=function(S,c,Q){var f=this;var U=Q.dragDownAction;this.layer=0;this.JSC$19973_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$19973_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var a=_.Kv();_.z7(a,uO0,this.layer);_.z7(a,j9g,this.layer);this.dragDownAction=function(){U();_.rj(a,{visualElement:f.fullscreen?uO0:j9g})};
this.gesture=new _.xe(S,c,this.JSC$19973_watchConfig,"pandown");this.attach()};
_.OA.prototype.attach=function(){this.gesture.attach()};
_.OA.prototype.detach=function(){this.gesture.detach()};
_.OA.prototype.update=function(S){this.fullscreen=S;this.gesture.config=S?this.JSC$19973_watchFullScreenConfig:this.JSC$19973_watchConfig};var l71={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(S){if(S&&S.length==1&&Array.isArray(S[0].loggingUrls)){S=_.Cn.unsafeClone(S[0]);var c=this.macros||{},Q=this.getAdModuleClient_();if(!Q)return _.B2();S.loggingUrls.forEach(function(f){if(f.baseUrl){var U=f.baseUrl;var a=c;a=a===void 0?{}:a;U=Q.getOptions().includes("replaceUrlMacros")?_.CUl(Q,"replaceUrlMacros",{url:U,additionalMapping:a}):U;f.baseUrl=U}},this);
S=[S]}return _.xt(this.hostElement,S)},
getAdModuleClient_:function(){var S=_.S9(this);return S?(S=S.getPlayer())?new _.HM(S):null:null}}]};var Yip;var z8=function(){var S=_.W.apply(this,arguments)||this;S.isCollapsed=!1;S.modernPanels=_.u("kevlar_watch_modern_panels");S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return S};
_.C(z8,_.W);_.J=z8.prototype;_.J.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.onDonateTap=function(){var S=this.get("data.donateButton.buttonRenderer.command");if(S){var c=_.wN(),Q=this.get("data.donateButton.buttonRenderer.trackingParams");c&&Q&&_.tz(c,_.Yz(Q));this.ytOpenPopupBehavior.openPopup(S)}};
_.J.onShowMore=function(){this.isCollapsed=!1;var S=_.wN(),c=this.get("data.expandButton.buttonRenderer.trackingParams");S&&c&&_.tz(S,_.Yz(c))};
_.J.onShowLess=function(){this.isCollapsed=!0};
_.J.dataChanged=function(){_.Or(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.J.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.handleUpdate=function(S){if(S=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",S))this.set("data.startLabel",S.startLabel),this.set("data.endLabel",S.endLabel),this.set("data.progress",S.progress),this.set("data.amountRaisedLabel",S.amountRaisedLabel),this.dataChanged()};
_.J.handleOpenPopupAction=function(S){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",S)&&_.XF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.J.computeHeaderBackgroundUrl=function(S,c){if(S)return c?S.headerBackgroundDarkUrl:S.headerBackgroundUrl};
_.J.isProgressBarVisible=function(S){return!(!S||S.progress===void 0)};
_.J.headerBackgroundClass=function(){return _.WY("HTML_DIR")==="rtl"?"flip":""};
z8.prototype.dataChanged=z8.prototype.dataChanged;_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],z8.prototype,"ytOpenPopupBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],z8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],z8.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],z8.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],z8.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],z8.prototype,"isCollapsed",void 0);_.d([_.Z({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.P("design:type",String)],z8.prototype,"headerBackgroundUrl",void 0);_.d([_.Z(),_.P("design:type",Boolean)],z8.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],z8.prototype,"modernPanels",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],z8.prototype,"dataChanged",null);_.d([_.e({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],z8);
_.k(z8,"ytd-donation-shelf-renderer",function(){if(Yip!==void 0)return Yip;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Yip=S},{mode:1});var CTZ;var HAT=function(){return _.W.apply(this,arguments)||this};
_.C(HAT,_.W);_.d([_.Z(),_.P("design:type",Object)],HAT.prototype,"data",void 0);_.d([_.e({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],HAT);
_.k(HAT,"ytd-donation-unavailable-renderer",function(){if(CTZ!==void 0)return CTZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return CTZ=S},{mode:1});var DAB;var xG=function(){return _.W.apply(this,arguments)||this};
_.C(xG,_.W);xG.prototype.computeIconType=function(S){return S?"yt-icons:"+S.toLowerCase():null};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xG.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],xG.prototype,"data",void 0);_.d([_.e({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],xG);
_.k(xG,"ytd-limited-state-message-renderer",function(){if(DAB!==void 0)return DAB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return DAB=S},{mode:1});var phT;var F_=function(){return _.W.apply(this,arguments)||this};
_.C(F_,_.W);F_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
F_.prototype.onTap=function(S){var c=this.data&&this.data.endpoint;c&&!_.RZ(_.t4(S),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.Az(this.hostElement,"yt-navigate",{endpoint:c})};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],F_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],F_.prototype,"data",void 0);_.d([_.e({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],F_);
_.k(F_,"ytd-autotagging-metadata-renderer",function(){if(phT!==void 0)return phT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return phT=S},{mode:1});var hGZ;var Bo=function(){return _.W.apply(this,arguments)||this};
_.C(Bo,_.W);Bo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Bo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Bo.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Bo.prototype,"data",void 0);_.d([_.e({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],Bo);
_.k(Bo,"ytd-autotagging-metadata-row-renderer",function(){if(hGZ!==void 0)return hGZ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return hGZ=S},{mode:1});var qiE;var TAB;var Io=function(){var S=_.W.apply(this,arguments)||this;S.engagementPanelContent=!1;return S};
_.C(Io,_.W);Io.prototype.computeHasDividerLine=function(S,c){return S&&!c};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Io.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.P("design:type",Boolean)],Io.prototype,"hasDividerLine",void 0);_.d([_.Z(),_.P("design:type",Object)],Io.prototype,"engagementPanelContent",void 0);
_.d([_.e({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Io);
_.k(Io,"ytd-metadata-row-header-renderer",function(){if(TAB!==void 0)return TAB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return TAB=S},{mode:1});var whN;var nG=function(){return _.W.apply(this,arguments)||this};
_.C(nG,_.W);nG.prototype.computeHasDividerLine=function(S){return S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nG.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nG.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.P("design:type",Boolean)],nG.prototype,"hasDividerLine",void 0);_.d([_.e({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],nG);
_.k(nG,"ytd-metadata-row-renderer",function(){if(whN!==void 0)return whN;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return whN=S},{mode:1});var s9g;var bJ=function(){return _.W.apply(this,arguments)||this};
_.C(bJ,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bJ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bJ.prototype,"data",void 0);_.d([_.e({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],bJ);
_.k(bJ,"ytd-metadata-with-image-row-renderer",function(){if(s9g!==void 0)return s9g;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return s9g=S},{mode:1});var MiG;var Nw=function(){var S=_.W.apply(this,arguments)||this;S.rounded=!0;S.fixie=!1;S.fullWidth=!1;return S};
_.C(Nw,_.W);_.J=Nw.prototype;_.J.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.J.onDataChanged=function(){var S=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(c){S.onEndpointLinkKeyPress(c)}))};
_.J.onEndpointLinkKeyPress=function(S){S.target===this.endpointLink&&S.keyCode===13&&_.Az(this.hostElement,"click")};
_.J.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var S;if((S=this.data)==null?0:S.endpoint)_.FF(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.J.onYtNavigate=function(S){this.endpointHref||(S.stopPropagation(),S.preventDefault())};
_.J.onInformationButtonContainerClick=function(S){S.target.id!=="information-button-container"&&(S.stopPropagation(),S.preventDefault())};
_.J.computeStyle=function(S){return S};
_.J.computeIsThumbnailStyle=function(S){return S==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.J.computeThumbnailWidth=function(S){switch(S){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}};
_.J.computeThumbnailObjectFit=function(S){switch(S){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.Rh.Object.defineProperties(Nw.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?0:S.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
Nw.prototype.onYtNavigate=Nw.prototype.onYtNavigate;Nw.prototype.onClick=Nw.prototype.onClick;Nw.prototype.onDataChanged=Nw.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Nw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Nw.prototype,"componentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Nw.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Nw.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],Nw.prototype,"componentStyle",void 0);_.d([_.Z({computed:"computeIsThumbnailStyle(data.style)"}),_.P("design:type",Boolean)],Nw.prototype,"isThumbnailStyle",void 0);_.d([_.Z({computed:"computeThumbnailObjectFit(data.style)"}),_.P("design:type",String)],Nw.prototype,"thumbnailObjectFit",void 0);
_.d([_.Z({computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],Nw.prototype,"thumbnailWidth",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Nw.prototype,"rounded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Nw.prototype,"fixie",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Nw.prototype,"fullWidth",void 0);_.d([_.nU("#endpoint-link"),_.P("design:type",HTMLAnchorElement)],Nw.prototype,"endpointLink",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Nw.prototype,"onDataChanged",null);_.d([_.M("data.endpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],Nw.prototype,"endpointHref",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Nw.prototype,"onClick",null);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Nw.prototype,"onYtNavigate",null);_.d([_.e({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],Nw);
_.k(Nw,"ytd-rich-metadata-renderer",function(){if(MiG!==void 0)return MiG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return MiG=S},{mode:_.A2("kevlar_poly_si_batch_j075")?1:2});var iAZ;var KG=function(){var S=_.W.apply(this,arguments)||this;S.fixie=!1;S.fullWidth=!1;return S};
_.C(KG,_.W);KG.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
KG.prototype.computeHasDividerLine=function(S){return S};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],KG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],KG.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.P("design:type",Boolean)],KG.prototype,"hasDividerLine",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],KG.prototype,"fixie",void 0);_.d([_.Z(),_.P("design:type",Object)],KG.prototype,"fullWidth",void 0);
_.d([_.e({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],KG);
_.k(KG,"ytd-rich-metadata-row-renderer",function(){if(iAZ!==void 0)return iAZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return iAZ=S},{mode:1});var $G=function(){var S=_.W.apply(this,arguments)||this;S.engagementPanelContent=!1;S.fixie=!1;S.fullWidth=!1;return S};
_.C($G,_.W);
$G.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"}}}};
$G.prototype.computeCollapsibleItems=function(S,c,Q){return S===void 0||c===void 0||Q===void 0||Q?[]:S.slice(c)};
$G.prototype.computeAlwaysShownItems=function(S,c){return S&&S.length?S.slice(0,c):[]};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$G.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$G.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$G.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],$G.prototype,"collapsed",void 0);
_.d([_.Z({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.P("design:type",Array)],$G.prototype,"alwaysShownItems",void 0);_.d([_.Z({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.P("design:type",Array)],$G.prototype,"collapsibleItems",void 0);_.d([_.Z(),_.P("design:type",Object)],$G.prototype,"engagementPanelContent",void 0);_.d([_.Z(),_.P("design:type",Object)],$G.prototype,"fixie",void 0);
_.d([_.Z(),_.P("design:type",Object)],$G.prototype,"fullWidth",void 0);_.d([_.e({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],$G);
_.k($G,"ytd-metadata-row-container-renderer",function(){if(qiE!==void 0)return qiE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return qiE=S},{mode:1});var ZAE;var uJ=function(){var S=_.W.apply(this,arguments)||this;S.currentPageUrl="";S.baseUrl="";S.isHiddenByUser=null;S.hidden=!1;S.showAboveScrim=!1;S.watchNextGrid=_.u("kevlar_watch_grid");S.modernButtons=_.u("web_modern_buttons");S.roundedContainer=!0;S.noBorder=!1;S.roundBackground=!_.u("live_chat_round_background_killswitch");S.overflowHideChat=_.u("live_chat_overflow_hide_chat");S.forceDarkTheme=!1;S.theaterWatchWhile=!1;S.isListeningForPlayerProgress=!1;S.JSC$20009_playerEvents=new Map;S.isFrameReady=
!1;S.player=null;S.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 S};
_.C(uJ,_.W);_.J=uJ.prototype;_.J.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.Oz(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.J.created=function(){var S=this;this.handleIframeEventListener=function(c){S.handleIframeEvent(c)};
this.handleKeyboardEventListener=function(c){S.handleKeyboardEvent(c)};
this.JSC$20009_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$20009_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20009_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$20009_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$20009_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.J.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()};
_.J.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};
_.J.computeBaseUrl=function(S){var c="/live_chat";this.isChatReplay()&&(c="/live_chat_replay");return _.Jm(_.Ub(_.ff(_.L9(S),c),null),"").toString()};
_.J.dataChanged=function(){_.u("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.J.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var S=this.url;if(this.isChatReplay()&&this.player){var c=Math.floor(this.player.getProgressState().current*1E3);S=_.to(_.L9(S),"playerOffsetMs",c.toString()).toString()}c=this.chatframe;try{var Q=S==="about:blank"?_.C6x:_.jS(S),f=c.contentDocument.location,U=_.H7(Q);U!==void 0&&f.replace(U)}catch(a){c.src=S}}};
_.J.collapsedChanged=function(){_.Az(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.J.handleIframeEvent=function(S){if(S&&this.baseUrl.startsWith(S.origin)&&S.source===this.chatframe.contentWindow&&_.c_(S.data))if(S.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(S);else if(S.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(S.data["yt-show-feedback-dialog"]){var c=_.fl().resolve(_.QS(_.bVH));if(c){var Q=S.ports,f;Q&&Q.length&&(f=function(){Q[0].postMessage({})});
S=S.data["yt-show-feedback-dialog"];c.showFeedbackDialog(S.customProductData,S.feedbackContent,f,S.bucket)}}else if(S.data["yt-show-survey"])_.Az(this.hostElement,"yt-show-survey",S.data["yt-show-survey"]);else if(S.data["yt-purchase-membership"])_.fl().resolve(_.U8).resolveCommand(S.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(S.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(S.data["yt-tunnel-out-live-service-request"]);else if(S.data["yt-user-activity"])_.Q1();
else if(S.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(S.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(S.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(S.data["yt-open-popup"]);else if(S.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(S.data["yt-log-flow-logging-event-command"]);else if(S.data["yt-hide-live-chat"])this.onShowHideChat();else S.data["yt-report-moderation-state-log"]&&
this.player&&(c={cpn:this.player.getVideoData().cpn},_.Te("liveChatBeingModerated",c))};
_.J.attachLiveChatResponseVeTrackingParams=function(S){S=_.Yz(S);var c=_.wN(),Q=_.rC("liveChatRenderer.trackingParams",this.data);c&&Q&&_.dS(c,_.Yz(Q),S)};
_.J.handleBuyflowMessages=function(S){var c=S.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,Q=S.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,f=S.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.OAY(_.Aw(_.E_),c.replace(/-/g,"+").replace(/_/g,"/"),function(U){S.ports[0].postMessage({success:!0,buyFlowResponse:U})},void 0,function(U){S.ports[0].postMessage({success:!1,
error:U&&U.message||"Buyflow rejected without error."})},_.jL().get("hl"),void 0,function(){S.ports[0].postMessage({closed:!0})},Q,f)};
_.J.setupPlayerProgressRelay=function(){var S=this;if(!this.isListeningForPlayerProgress){var c=_.cK();c!=null&&c.getPlayerPromise&&(c.getPlayerPromise().then(function(Q){S.playerApiReady(Q)}),this.isListeningForPlayerProgress=!0)}};
_.J.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.J.playerApiReady=function(S){this.setPlayer(S)};
_.J.playerProgressHandler=function(){if(this.player){var S=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":S.current})}};
_.J.playerAdStartHandler=function(S){this.postToContentWindow({"yt-player-ad-start":S})};
_.J.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.J.playerStateChangeHandler=function(S){this.postToContentWindow({"yt-player-state-change":S})};
_.J.setPlayer=function(S){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20009_playerEvents);S&&(this.player=S,this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$20009_playerEvents),_.Az(this.hostElement,"player-api-ready"))};
_.J.liveChatPageUrl=function(S,c,Q,f){return!Q||c?"about:blank":Q.liveChatRenderer?(c=_.L9(this.currentPageUrl).JSC$8068_queryData_,Ia0(c),S=_.L9(S),c.add("continuation",Q.liveChatRenderer.continuations[0].reloadContinuationData.continuation),Q=_.pJ()==="USER_INTERFACE_THEME_DARK",(f||Q)&&c.add("dark_theme","true"),_.Ub(S,c),f=_.L9(S.toString()),Q=f.JSC$8068_queryData_,"SESSION_INDEX"in _.ZJ&&(Q.add("authuser",_.WY("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.ZJ&&Q.add("pageId",_.WY("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.ZJ&&Q.add("sdc",_.WY("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),f.toString()):""};
_.J.isCollapsed=function(S,c){return c!==null?c:this.isChatReplay()||S&&S.conversationBarRenderer&&S.conversationBarRenderer.availabilityMessage?!0:S?S.liveChatRenderer?S.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.u("live_chat_hide_premiere_replay_message")||S.conversationBarRenderer&&S.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.J.isHidden=function(S,c,Q){var f=c&&c.conversationBarRenderer&&c.conversationBarRenderer.availabilityMessage,U=c&&c.liveChatRenderer&&c.liveChatRenderer.showHideButton,a=c&&c.liveChatRenderer&&c.liveChatRenderer.showButton;return Q&&S&&!f&&!a||!Q&&S&&!f&&!U?!0:c&&c.liveChatRenderer&&c.liveChatRenderer.initialDisplayState?c.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.J.computeButtonOverride=function(S,c){if(S&&c)return{type:"outline"}};
_.J.setCollapsedState=function(S){_.Y(S,_.b0u)&&(this.isHiddenByUser=!!_.Y(S,_.b0u).collapsed,!this.isHiddenByUser&&_.u("enable_teaser_framework_web_client")&&_.XF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.J.forwardReduxActionToIframe=function(S){this.postToContentWindow({"yt-live-chat-forward-redux-action":S})};
_.J.onLoopRangeChange=function(S){this.showAboveScrim=!(S==null||!S.postId)};
_.J.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.J.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.J.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.J.sendDarkThemePostMessage=function(S){this.postToContentWindow({"yt-live-chat-set-dark-theme":S})};
_.J.onLiveChatBuyFlowCallback=function(S){this.postToContentWindow({"yt-live-chat-buy-flow-callback":S})};
_.J.handleKeyboardEvent=function(S){(0,_.Cn.containsValue)(BYG,S.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:S.type,keyCode:S.keyCode}})};
_.J.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.J.postToContentWindow=function(S){if(this.isFrameReady)try{var c=window.location.protocol+"//"+window.location.host,Q;(Q=this.chatframe)!=null&&Q.contentWindow?this.chatframe.contentWindow.postMessage(S,c):_.i5(new _.Yr("Tried posting a message to an iframe with no content window",S))}catch(f){_.sH(f)}};
_.J.shouldHideChatFrame=function(S){return S&&_.u("hide_live_chat_button_when_collapsed")};
_.Rh.Object.defineProperties(uJ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.u("live_chat_overflow_hide_chat")||_.u("web_watch_chat_hide_button_killswitch"))return _.u("live_chat_overflow_hide_chat");var S,c,Q,f;return!!((S=this.data)==null?0:(c=S.liveChatRenderer)==null?0:(Q=c.header)==null?0:(f=Q.liveChatHeaderRenderer)==null?0:f.collapseButton)}}});
uJ.prototype.collapsedChanged=uJ.prototype.collapsedChanged;uJ.prototype.urlChanged=uJ.prototype.urlChanged;uJ.prototype.dataChanged=uJ.prototype.dataChanged;uJ.prototype.onShowHideChat=uJ.prototype.onShowHideChat;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],uJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],uJ.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],uJ.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],uJ.prototype,"ytOpenPopupBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uJ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],uJ.prototype,"currentPageUrl",void 0);
_.d([_.Z({computed:"computeBaseUrl(currentPageUrl,data)"}),_.P("design:type",Object)],uJ.prototype,"baseUrl",void 0);_.d([_.Z({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.P("design:type",String)],uJ.prototype,"url",void 0);_.d([_.Z(),_.P("design:type",Object)],uJ.prototype,"isHiddenByUser",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.P("design:type",Object)],uJ.prototype,"hidden",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.P("design:type",Boolean)],uJ.prototype,"collapsed",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.P("design:type",Boolean)],uJ.prototype,"hideChatFrame",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uJ.prototype,"showAboveScrim",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uJ.prototype,"watchNextGrid",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uJ.prototype,"modernButtons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uJ.prototype,"roundedContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uJ.prototype,"noBorder",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uJ.prototype,"roundBackground",void 0);
_.d([_.Z({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.P("design:type",Object)],uJ.prototype,"toggleButtonOverride",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uJ.prototype,"overflowHideChat",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uJ.prototype,"forceDarkTheme",void 0);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uJ.prototype,"enableShowWithoutHideChatButton",null);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],uJ.prototype,"theaterWatchWhile",void 0);_.d([_.nU("#chatframe"),_.P("design:type",HTMLIFrameElement)],uJ.prototype,"chatframe",void 0);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uJ.prototype,"onShowHideChat",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uJ.prototype,"dataChanged",null);
_.d([_.B0("url"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uJ.prototype,"urlChanged",null);_.d([_.B0("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uJ.prototype,"collapsedChanged",null);_.d([_.e({is:"ytd-live-chat-frame",disableElementRegistration:!0})],uJ);
_.k(uJ,"ytd-live-chat-frame",function(){if(ZAE!==void 0)return ZAE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ZAE=S},{mode:1});var GQO;var jH=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_modern_buttons");S.buttonOverrides={style:"call-to-action",type:"filled"};return S};
_.C(jH,_.W);jH.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=_.WV(this.data.backgroundColor)))};
jH.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var S=this.getFormattedStringLoggingDirectives(this.data.headline);S&&this.rendererBehavior.logExplicitClick(S)}};
jH.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var S=this.getFormattedStringLoggingDirectives(this.data.description);S&&this.rendererBehavior.logExplicitClick(S)}};
jH.prototype.getFormattedStringLoggingDirectives=function(S){return S&&S.runs&&S.runs.length>0&&S.runs[0]&&S.runs[0].loggingDirectives?S.runs[0].loggingDirectives:null};
jH.prototype.dataChanged=jH.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jH.prototype,"rendererBehavior",void 0);_.d([_.p(l71.YtMacroReplacementBehavior),_.P("design:type",Object)],jH.prototype,"macroReplacementBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jH.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],jH.prototype,"navigationEndpoint",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],jH.prototype,"enableColors",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],jH.prototype,"modern",void 0);_.d([_.Z(),_.P("design:type",Object)],jH.prototype,"buttonOverrides",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jH.prototype,"dataChanged",null);_.d([_.e({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],jH);
_.k(jH,"ytd-action-basic-immersive-content-renderer",function(){if(GQO!==void 0)return GQO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return GQO=S},{mode:1});var Wg0;var g6N;var lJ=function(){return _.W.apply(this,arguments)||this};
_.C(lJ,_.W);lJ.prototype.dataChanged=function(){var S;((S=this.data)==null?void 0:S.backgroundColor)!==void 0&&_.Or(this.hostElement,{"--bgu-color":_.WV(this.data.backgroundColor)})};
lJ.prototype.onImageTileClick=function(){var S;((S=this.data)==null?0:S.navigationEndpoint)&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var c;((c=this.data)==null?0:c.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.Rh.Object.defineProperties(lJ.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var S;if(((S=this.data)==null?void 0:S.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 S;return((S=this.data)==null?void 0:S.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;if(((S=this.data)==null?void 0:(c=S.detailsLine)==null?void 0:c.texts)!=null&&((Q=this.data)==null?void 0:Q.detailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.detailsLine.texts.map(function(U){return U.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;if(((S=this.data)==null?void 0:(c=S.optionalDetailsLine)==null?void 0:c.texts)!=null&&((Q=this.data)==null?void 0:Q.optionalDetailsLine.texts.length)>0){var f;return(f=this.data)==null?void 0:f.optionalDetailsLine.texts.map(function(U){return U.text}).join("")}return null}}});
lJ.prototype.dataChanged=lJ.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lJ.prototype,"rendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],lJ.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lJ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.backgroundColor"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],lJ.prototype,"hasBackgroundColor",null);
_.d([_.M("data.objectFit"),_.P("design:type",Object),_.P("design:paramtypes",[])],lJ.prototype,"getObjectFit",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.tileRenderingStyle"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],lJ.prototype,"hasTileMetadata",null);_.d([_.M("data.detailsLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],lJ.prototype,"getSecondaryDetails",null);
_.d([_.M("data.optionalDetailsLine"),_.P("design:type",Object),_.P("design:paramtypes",[])],lJ.prototype,"getOptionalDetails",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lJ.prototype,"dataChanged",null);_.d([_.e({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],lJ);
_.k(lJ,"ytd-image-tile-renderer",function(){if(g6N!==void 0)return g6N;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return g6N=S},{mode:1});var eGE;var YG=function(){return _.W.apply(this,arguments)||this};
_.C(YG,_.W);YG.prototype.getOpenLinkIcon=function(){return _.u("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
YG.prototype.onSitelinkTap=function(){_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.u("kevlar_command_handler_migration_killswitch"))_.FF(this.hostElement,this.data.clickCommands,this.hostElement);else for(var S=_.A(this.data.clickCommands),c=S.next();!c.done;c=S.next())this.ytComponentBehavior.resolveCommand(c.value)};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],YG.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],YG.prototype,"rendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],YG.prototype,"data",void 0);_.d([_.e({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],YG);
_.k(YG,"ytd-sitelink-renderer",function(){if(eGE!==void 0)return eGE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return eGE=S},{mode:1});var CG=function(){var S=_.W.apply(this,arguments)||this;S.paddingFix=_.u("enable_ads_web_ep_buenos_aires_and_padding_fix");return S};
_.C(CG,_.W);CG.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"}}}};
CG.prototype.dataChanged=function(){var S=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;S.ytMacroReplacementBehavior.sendServiceRequestAction([c])})};
CG.prototype.shouldHideFooter=function(S){return!(S&&_.u("use_ads_engagement_panel_desktop_footer_cta"))};
_.Rh.Object.defineProperties(CG.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:S.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(Q){var f;return(f=_.Y(Q,$2U))==null?void 0:f.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:S.imageTileRenderers)===void 0||((c=this.data)==null?void 0:c.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(Q){var f;return((f=_.Y(Q,$2U))==null?void 0:f.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
CG.prototype.dataChanged=CG.prototype.dataChanged;_.d([_.p(l71.YtMacroReplacementBehavior),_.P("design:type",Object)],CG.prototype,"ytMacroReplacementBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],CG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CG.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],CG.prototype,"paddingFix",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.imageTileRenderers"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CG.prototype,"removeBorderFromImageTiles",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.imageTileRenderers"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],CG.prototype,"useFooteredMetadataRenderingStyle",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CG.prototype,"dataChanged",null);_.d([_.e({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],CG);
_.k(CG,"ytd-action-engagement-panel-content-renderer",function(){if(Wg0!==void 0)return Wg0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Wg0=S},{mode:1});var kQZ;var rFT=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;S=_.EH("ad-grid-card-image-full-metadata-view-model");_.V8(S,function(){return c().interaction},Q);
_.cn(S,{visibilityCallback:function(f){var U,a=(U=c().interaction)==null?void 0:U.onFirstVisible;f&&a&&_.kz(a)},
showOption:_.yA});return _.B("ad-grid-card-image-full-metadata-view-model",{class:function(){var f;return((f=c().interaction)==null?0:f.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:S,"aria-label":function(){var f,U;return(f=c().interaction)==null?void 0:(U=f.accessibility)==null?void 0:U.label}},_.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.B(_.h8,{data:function(){return c().adImage}},{adImageViewModel:function(f){return _.B(_.IS,{data:f.data,
customCommandResolver:Q})}})),_.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.B(_.K,{cond:function(){return c().headline},
then:function(f){return _.B(_.mw,{text:f,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.B(_.K,{cond:function(){return c().detailsLine},
then:function(f){return _.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.B(_.h8,{data:f},{adDetailsLineViewModel:function(U){return _.B(_.f2,{data:U.data,customCommandResolver:Q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.B(_.K,{cond:function(){return c().secondaryDetailsLine},
then:function(f){return _.B("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.B(_.h8,{data:f},{adDetailsLineViewModel:function(U){return _.B(_.f2,{data:U.data,customCommandResolver:Q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"Ri");var dAE=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;S=_.EH("ad-grid-card-image-view-model");_.V8(S,function(){return c().interaction},Q);
_.cn(S,{visibilityCallback:function(f){var U,a=(U=c().interaction)==null?void 0:U.onFirstVisible;f&&a&&_.kz(a)},
showOption:_.yA});return _.B("ad-grid-card-image-view-model",{class:function(){var f;return((f=c().interaction)==null?0:f.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:S,"aria-label":function(){var f,U;return(f=c().interaction)==null?void 0:(U=f.accessibility)==null?void 0:U.label}},_.B(_.h8,{data:function(){return c().adImage}},{adImageViewModel:function(f){return _.B(_.IS,{data:f.data,
customCommandResolver:Q})}}),_.B("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.B(_.h8,{data:function(){return c().adCardBadge}},{adCardBadgeViewModel:_.E2z})))},"Si");var v6V=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;S=_.EH("ad-grid-card-text-view-model");_.V8(S,function(){return c().interaction},Q);
_.cn(S,{visibilityCallback:function(f){var U,a=(U=c().interaction)==null?void 0:U.onFirstVisible;f&&a&&_.kz(a)},
showOption:_.yA});return _.B("ad-grid-card-text-view-model",{class:function(){var f;return((f=c().interaction)==null?0:f.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:S,"aria-label":function(){var f,U;return(f=c().interaction)==null?void 0:(U=f.accessibility)==null?void 0:U.label}},_.B("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.B(_.K,{cond:function(){return c().title},
then:function(f){return _.B(_.mw,{text:f,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.B("div",{class:function(){return _.u("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.B(_.lW,{each:function(){var f;
return((f=c())==null?void 0:f.descriptions)||[]},
keyBy:"INDEX"},function(f){return _.B(_.mw,{text:f,className:function(){return _.u("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.B("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.B(_.h8,{data:function(){return c().moreInfoButton}},{adButtonViewModel:function(f){return _.B(_.mh,{data:f.data,
customCommandResolver:Q})}})))},"Ti");var PTE=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;var f=S.adGridCardCollectionStyle;S=_.EH("ad-grid-card-collection-view-model");_.cn(S,{visibilityCallback:function(U){var a,X=(a=c().interaction)==null?void 0:a.onFirstVisible;U&&X&&_.kz(X)},
showOption:_.yA});return _.B("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:S,style:function(){return"grid-template-columns: repeat("+sDU(f?f():c().style)+", minmax(0, 1fr));"}},_.B(_.h8,{data:function(){var U;
return(U=c())==null?void 0:U.gridCards}},{adGridCardImageViewModel:function(U){return _.B(dAE,{data:U.data,
customCommandResolver:Q})},
adGridCardImageFullMetadataViewModel:function(U){return _.B(rFT,{data:U.data,customCommandResolver:Q})},
adGridCardTextViewModel:function(U){return _.B(v6V,{data:U.data,customCommandResolver:Q})}}))},"Ui");_.f4(_.y_(function(S){var c=S.data;S=_.EH("panel-text-icon-image-tiles-button-layout-content-view-model");_.V8(S,function(){return c().interaction},MfG);
_.cn(S,{visibilityCallback:function(Q){var f,U=(f=c().interaction)==null?void 0:f.onFirstVisible;Q&&U&&_.kz(U)},
showOption:_.yA});return _.B("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:S},_.B("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.B(_.K,{cond:_.rYp("(min-width: "+((0,_.q4)()+_.GH)+"px)"),then:function(){return _.B(_.h8,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(Q){return _.B(PTE,{data:Q.data,
customCommandResolver:MfG})}})},
else:function(){return _.B(_.h8,{data:function(){return c().adGridCardCollection}},{adGridCardCollectionViewModel:function(Q){return _.B(PTE,{data:Q.data,
customCommandResolver:MfG,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.B("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.B(_.h8,{data:function(){return c().adButton}},{adButtonViewModel:function(Q){return _.B(_.mh,{data:Q.data,
customCommandResolver:MfG})}})))},"Vi"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;S=_.EH("panel-text-icon-text-grid-cards-sub-layout-content-view-model");_.V8(S,function(){return c().interaction},iQ0);
_.cn(S,{visibilityCallback:function(Q){var f,U=(f=c().interaction)==null?void 0:f.onFirstVisible;Q&&U&&_.kz(U)},
showOption:_.yA});return _.B("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:S},_.B("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.B(_.h8,{data:function(){if(_.rYp("(min-width: "+((0,_.q4)()+_.GH)+"px)")())var Q=c().adGridCardCollection;else{Q=Object.assign({},_.Y(c().adGridCardCollection,unN));var f;Q.gridCards!==void 0&&((f=Q.gridCards)==null?void 0:f.length)>1?Q.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":Q.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";Q={adGridCardCollectionViewModel:Q}}return Q}},{adGridCardCollectionViewModel:function(Q){return _.B(PTE,{data:Q.data,
customCommandResolver:iQ0})}})),_.B("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.B(_.h8,{data:function(){return c().adButton}},{adButtonViewModel:function(Q){return _.B(_.mh,{data:Q.data,
customCommandResolver:iQ0})}})))},"Wi"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.y$}});var Ho=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return S};
_.C(Ho,_.W);_.J=Ho.prototype;_.J.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"}}}};
_.J.attached=function(){this.getDataFromPlayerAndRender()};
_.J.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.J.getDataFromPlayerAndRender=function(){var S=this,c=_.S9(this.hostElement);c&&c.getPlayerPromise().then(function(Q){S.getCachedDataAndListen(Q)})};
_.J.getCachedDataAndListen=function(S){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(S,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(S,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=S)};
_.J.resolveCachedActions=function(){var S=_.rC("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(S=S&&S())&&!_.Cn.isEmpty(S)&&this.sendUpdateEngagementPanelAction(S);(S=(S=_.rC("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&S())&&!_.Cn.isEmpty(S)&&this.sendChangeEngagementPanelVisibilityAction(S);(S=(S=_.rC("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&S())&&!_.Cn.isEmpty(S)&&this.sendScrollToEngagementPanelCommand(S)};
_.J.sendUpdateEngagementPanelAction=function(S){var c;_.XF(this.hostElement,"yt-update-engagement-panel-action",[(c=_.Cn.get(S,"action"))!=null?c:S])};
_.J.sendChangeEngagementPanelVisibilityAction=function(S){_.XF(this.hostElement,"yt-change-engagement-panel-visibility-action",[S])};
_.J.sendScrollToEngagementPanelCommand=function(S){_.XF(this.hostElement,"yt-scroll-to-engagement-panel-command",[S])};
_.J.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.u("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.i5(Error("jm"))};
Ho.prototype.dataChanged=Ho.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Ho.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Ho.prototype,"componentBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],Ho.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ho.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ho.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Ho.prototype,"player",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ho.prototype,"dataChanged",null);_.d([_.e({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],Ho);
_.k(Ho,"ytd-ads-engagement-panel-content-renderer",function(){if(kQZ!==void 0)return kQZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return kQZ=S},{mode:1});var LgZ;var Dy=function(){var S=_.W.apply(this,arguments)||this;S.player=null;S.JSC$20046_playerEvents=new Map;S.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return S};
_.C(Dy,_.W);_.J=Dy.prototype;_.J.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]]"}}}}}};
_.J.created=function(){this.player=null;this.JSC$20046_playerEvents=new Map;this.JSC$20046_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$20046_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20046_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20046_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.attached=function(){var S=this,c=_.S9();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));c&&c.getPlayerPromise().then(function(Q){S.setPlayer(Q);S.set("isPageLoad",!1)})};
_.J.setPlayer=function(S){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20046_playerEvents);this.set("player",S);S&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$20046_playerEvents),S.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.J.onLoopRangeChange=function(S){var c=_.fl().resolve(_.QS(_.oZ));if((!c||c.isOnWatch())&&this.hostElement.clientHeight){var Q;!S&&((Q=this.data)==null?0:Q.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.J.onVideoProgress=function(S){var c,Q,f=((c=this.player)==null?void 0:(Q=c.getPresentingPlayerType)==null?void 0:Q.call(c))===2;this.isAdPlaying!==f&&this.set("isAdPlaying",f);var U;if(!f&&(U=this.player)!=null&&U.getLoopRange()){Q=this.player.getLoopRange();c=Q.startTimeMs;Q=Q.endTimeMs;f=this.player.getProgressState(1).seekableStart;var a;c<f*1E3&&((a=this.data)==null?0:a.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
S=Q<S*1E3;var X;((X=this.player)==null?0:X.getLoopRange())&&S&&this.player.seekTo(c/1E3)}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onYtDeleteClipEngagementPanelCommand=function(S){_.Y(S,ZuT).command&&this.ytComponentBehavior.resolveCommand(_.Y(S,ZuT).command)};
_.Rh.Object.defineProperties(Dy.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.voteCount)||_.LK("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Dy.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Dy.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Dy.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],Dy.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Dy.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Dy.prototype,"isAdPlaying",void 0);_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],Dy.prototype,"isPageLoad",void 0);_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],Dy.prototype,"isDarkTheme",void 0);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dy.prototype,"voteCount",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dy.prototype,"channelEndpoint",null);_.d([_.M("channelEndpoint"),_.P("design:type",Object),_.P("design:paramtypes",[])],Dy.prototype,"channelHref",null);_.d([_.e({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Dy);
_.k(Dy,"ytd-clip-attribution-renderer",function(){if(LgZ!==void 0)return LgZ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return LgZ=S},{mode:1});var E6U;var pG=function(){var S=_.W.apply(this,arguments)||this;S.player=null;S.JSC$20051_playerEvents=new Map;return S};
_.C(pG,_.W);_.J=pG.prototype;_.J.created=function(){this.player=null;this.JSC$20051_playerEvents=new Map;this.JSC$20051_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$20051_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$20051_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.J.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.J.attached=function(){var S=this,c=_.S9();c&&c.getPlayerPromise().then(function(Q){S.setPlayer(Q);S.set("isPageLoad",!1)})};
_.J.setPlayer=function(S){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$20051_playerEvents);this.set("player",S);if(S){this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$20051_playerEvents);var c;(S==null?void 0:(c=S.getPresentingPlayerType)==null?void 0:c.call(S))===2&&this.playerAdStartHandler()}};
_.J.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.J.onVideoProgress=function(){var S,c,Q=((S=this.player)==null?void 0:(c=S.getPresentingPlayerType)==null?void 0:c.call(S))===2;this.isAdPlaying!==Q&&this.set("isAdPlaying",Q)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],pG.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pG.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],pG.prototype,"isAdPlaying",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],pG.prototype,"isPageLoad",void 0);_.d([_.e({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],pG);
_.k(pG,"ytd-clip-section-footer-renderer",function(){if(E6U!==void 0)return E6U;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return E6U=S},{mode:1});var tiV;var ViO;var hX=function(){return _.W.apply(this,arguments)||this};
_.C(hX,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hX.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hX.prototype,"data",void 0);_.d([_.e({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],hX);
_.k(hX,"ytd-clip-ad-state-renderer",function(){if(ViO!==void 0)return ViO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ViO=S},{mode:1});var RGN;var qw=function(){var S=_.W.apply(this,arguments)||this;S.value="";S.valid=!1;S.userChangedValue=!1;S.disabled=!1;S.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return S};
_.C(qw,_.W);_.J=qw.prototype;_.J.detached=function(){this.userChangedValue=!1};
_.J.handleKeyDown=function(S){if(_.Bg)var c=13;else _.qNc&&_.Ir?c=13:c=13;S.keyCode===c&&S.preventDefault()};
_.J.handleInput=function(){var S=_.Ur(this.hostElement).querySelector("#title");if(S){var c=(S.value||"").replace(/\r|\n/g," ");this.set("value",c);S.value=c;this.valid=S.validate();this.userChangedValue=!0}};
_.J.handleBlur=function(){this.valid=_.Ur(this.hostElement).querySelector("#title").validate()};
_.J.onValueChanged=function(){_.Az(this.hostElement,"title-changed",{title:this.value})};
_.J.onValidChanged=function(){_.Az(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.J.setInput=function(S,c){var Q=_.Ur(this.hostElement).querySelector("#title");Q&&(Q.value=S,this.handleInput(),c&&(Q.invalid=!1,this.valid=!0))};
_.J.onClipCreationDisable=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable=function(){this.set("disabled",!1)};
_.J.onClipCreationVisibilityChange=function(S){var c=this;S.visible?requestAnimationFrame(function(){var Q;((Q=_.Ur(c.hostElement).querySelector("#title"))==null?void 0:Q.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
qw.prototype.onValidChanged=qw.prototype.onValidChanged;qw.prototype.onValueChanged=qw.prototype.onValueChanged;qw.prototype.handleBlur=qw.prototype.handleBlur;qw.prototype.handleInput=qw.prototype.handleInput;qw.prototype.handleKeyDown=qw.prototype.handleKeyDown;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],qw.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],qw.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],qw.prototype,"value",void 0);_.d([_.Z(),_.P("design:type",Object)],qw.prototype,"valid",void 0);_.d([_.Z(),_.P("design:type",Object)],qw.prototype,"userChangedValue",void 0);_.d([_.Z(),_.P("design:type",Object)],qw.prototype,"disabled",void 0);_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],qw.prototype,"handleKeyDown",null);
_.d([_.FV("input"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qw.prototype,"handleInput",null);_.d([_.FV("blur"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qw.prototype,"handleBlur",null);_.d([_.B0("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qw.prototype,"onValueChanged",null);
_.d([_.B0("valid"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qw.prototype,"onValidChanged",null);_.d([_.e({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],qw);
_.k(qw,"ytd-clip-creation-text-input-renderer",function(){if(RGN!==void 0)return RGN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return RGN=S},{mode:1});var yF8;var o6Z;var mAV;var Ss8;var cV1;var T8=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};S.pendingStoryboardImages_={};S.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];S.tickLabelInterval=30;S.mediumTickInterval=5;S.largeTickInterval=15;S.aboveRulerHeight=32;S.rulerHeight=50;S.smallTickHeight=4;S.mediumTickHeight=8;S.largeTickHeight=16;S.mediaListeners_=
{};return S};
_.C(T8,_.W);_.J=T8.prototype;_.J.attached=function(){var S=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(c){c=_.A(["screen and (min-resolution: "+c+")","screen and (max-resolution: "+c+")"]);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=window.matchMedia(Q);f&&(S.mediaListeners_[Q]=S.updatePixelRatio_.bind(S),f.addEventListener?f.addEventListener("change",S.mediaListeners_[Q]):f.addListener?f.addListener(S.mediaListeners_[Q]):delete S.mediaListeners_[Q])}})};
_.J.detached=function(){this.setPlayer(null);for(var S=_.A(Object.keys(this.mediaListeners_)),c=S.next();!c.done;c=S.next()){var Q=c.value;c=this.mediaListeners_[Q];(Q=window.matchMedia(Q))&&(Q.removeEventListener?Q.removeEventListener("change",c):Q.removeListener&&Q.removeListener(c))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.J.onVisibilityChangedAction_=function(S){var c=this;S.visible&&!this.player_&&(S=_.S9())&&S.getPlayerPromise().then(function(Q){c.setPlayer(Q)})};
_.J.setPlayer=function(S){S&&this.set("player_",S)};
_.J.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.J.setUpCanvas_=function(){var S=this.rulerWidth,c=this.devicePixelRatio_,Q=this.visible;this.set("canvasReady_",!1);if(Q&&c!==0){Q=this.aboveRulerHeight+this.rulerHeight;var f=_.Ur(this.hostElement).querySelector("#ticks");f.width=S*c;f.height=Q*c;f.style.width=S+"px";f.style.height=Q+"px";f.getContext("2d").scale(c,c);this.set("canvasReady_",!0)}};
_.J.drawRuler_=function(S,c,Q,f,U,a,X,z,x,I,n,b){S&&Q&&c&&(S=_.Ur(this.hostElement).querySelector("#ticks"),c=S.getContext("2d"),c.clearRect(0,0,S.width,S.height),c.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),c.lineWidth=2,c.beginPath(),c.moveTo(0,this.aboveRulerHeight),c.lineTo(S.width,this.aboveRulerHeight),c.moveTo(0,S.height),c.lineTo(S.width,S.height),c.stroke(),this.drawRulerTicks_(S,a,U,f),this.drawStoryboardImages_(S,Q,a,U,f),c.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
c.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(X-a,f,!1),this.rulerHeight),Q=this.timeToPixels_(z-a,f,!1),c.fillRect(Q,this.aboveRulerHeight,S.width-Q,this.rulerHeight),this.drawSpeedLines_(S,a,b))};
_.J.drawRulerTicks_=function(S,c,Q,f){var U=S.getContext("2d");U.save();U.lineWidth=1;for(var a=Math.floor(Math.max(0,c-this.tickLabelInterval));a<c+Q;a++){U.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var X=(a-c)*f;U.beginPath();U.moveTo(X,S.height);var z=this.smallTickHeight;a%this.largeTickInterval===0?z=this.largeTickHeight:a%this.mediumTickInterval===0&&(z=this.mediumTickHeight);U.lineTo(X,S.height-z);U.stroke();a%this.tickLabelInterval===0&&(U.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),U.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),U.fillText(hi(a),X+4,12),U.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),U.moveTo(X,0),U.lineTo(X,this.aboveRulerHeight),U.stroke())}U.restore()};
_.J.percentToHex_=function(S){S=Math.round(S*255).toString(16);S.length<2&&(S="0"+S);return S};
_.J.drawSpeedLines_=function(S,c,Q){var f=S.getContext("2d");f.save();var U=Math.min(25,Math.abs(Q)-15)/25,a=S.width*.3*U,X=S.width*-.3,z=S.width*1.3,x=this.aboveRulerHeight;S=S.height;var I=Math.round(4*U),n=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");n.length<7&&(n="#"+n.substring(1,4).repeat(2));var b=this.percentToHex_(.5+U/2);b=n+b;n+="00";if(U>0)for(U=0;U<I;U++){var N=X+Math.random()*(z-X),l=x+Math.random()*(S-x),H=a+c%a,q=f.createLinearGradient(N,l,N+H,l);
Q<0?(q.addColorStop(0,b),q.addColorStop(.4,b),q.addColorStop(.9,n)):(q.addColorStop(.1,n),q.addColorStop(.6,b),q.addColorStop(1,b));f.strokeStyle=q;f.lineWidth=1;f.beginPath();f.moveTo(N,l);f.lineTo(N+H,l);f.stroke()}f.restore()};
_.J.getStoryboardForTime_=function(S,c,Q){Q===void 0&&(Q=c.getNumberOfStoryboardLevels()-1);S=c.getStoryboardFrameIndex(S,Q);return c.getStoryboardFrame(S,Q)};
_.J.drawStoryboardImages_=function(S,c,Q,f,U){if(!this.disabled){S=S.getContext("2d");var a=this.getStoryboardForTime_(0,c);if(a){var X=a.width/a.columns;a=a.height/a.rows;var z=X/a,x=this.rulerHeight*z;x=this.tickLabelInterval*(z<this.tickLabelInterval*U/this.rulerHeight?1/Math.floor(this.tickLabelInterval*U/x):Math.round(x/(this.tickLabelInterval*U)));var I=x*U,n=this.rulerHeight,b=I/this.rulerHeight,N=Math.floor(Math.max(0,Q-x));for(N-=N%x;N<Q+f;N+=x){var l=this.getStoryboardForTime_(N,c),H=this.getPreloadedStoryboard_(l.url);
if(H){var q=(N-Q)*U,w=this.aboveRulerHeight,g=l.column*X,r=l.row*a;if(z<b){var E=n/(I/z);l=X;E*=a;r+=(a-E)/2}else l=I/(n*z)*X,E=a,g+=(X-l)/2;S.drawImage(H,g,r,l,E,q,w,I,n)}else this.fetchStoryboardImage_(l)}}}};
_.J.getPreloadedStoryboard_=function(S){return this.storyboardImages_.find(function(c){if(c.src==S)return!0;var Q=c.src.indexOf(S);return Q!=-1&&Q==c.src.length-S.length})};
_.J.fetchStoryboardImage_=function(S){var c=this,Q=this.getPreloadedStoryboard_(S.url),f=this.pendingStoryboardImages_[S.url];Q||f!==void 0||(Q=new Promise(function(U){var a=new Image(S.width,S.height);a.src=S.url;a.onload=function(){U(a)};
a.onerror=function(){U(null)}}),this.pendingStoryboardImages_[S.url]=Q,Q.then(function(U){U&&c.push("storyboardImages_",U);
return U}).finally(function(){delete c.pendingStoryboardImages_[S.url]}))};
_.J.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.J.timeToPixels_=function(S,c,Q){S*=c;return Q===void 0||Q?S+"px":S};
_.J.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
T8.prototype.drawRuler_=T8.prototype.drawRuler_;T8.prototype.setUpCanvas_=T8.prototype.setUpCanvas_;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],T8.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],T8.prototype,"ytRendererBehavior",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],T8.prototype,"start",void 0);_.d([_.Z({value:30}),_.P("design:type",Number)],T8.prototype,"end",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],T8.prototype,"visible",void 0);_.d([_.Z(),_.P("design:type",Object)],T8.prototype,"player_",void 0);_.d([_.Z(),_.P("design:type",Number)],T8.prototype,"tickSpacing",void 0);_.d([_.Z(),_.P("design:type",Number)],T8.prototype,"windowSizeSec",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],T8.prototype,"rulerWidth",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],T8.prototype,"rulerShift",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],T8.prototype,"canvasReady_",void 0);_.d([_.Z({value:function(){return[]}}),
_.P("design:type",Array)],T8.prototype,"storyboardImages_",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],T8.prototype,"disabled",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],T8.prototype,"forceRender_",void 0);_.d([_.Z({value:1}),_.P("design:type",Number)],T8.prototype,"devicePixelRatio_",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],T8.prototype,"windowSpeed",void 0);
_.d([_.B0("visible","devicePixelRatio_","rulerWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],T8.prototype,"setUpCanvas_",null);
_.d([_.B0("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.P("design:returntype")],T8.prototype,"drawRuler_",null);_.d([_.wM({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],T8);
_.k(T8,"yt-clip-creation-scrubber-canvas",function(){if(cV1===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);cV1=S}S=cV1;return S},
{mode:2});var QU8;var fDZ;var wZ=function(){var S=_.W.apply(this,arguments)||this;S.start=0;S.end=30;S.visible=!1;S.draggingLeft_=!1;S.draggingRight_=!1;S.draggingRuler_=!1;S.draggingWindow_=!1;S.seekableStart=0;S.seekableEnd=0;S.rulerWidth_=0;S.rulerShift_=0;S.windowSlideSpeed=0;S.disabled=!1;S.initialized=!1;S.durationAccessibilityLabel="";S.activeLoopRange_=!1;S.rulerDragMouseStart_=0;S.rulerDragRulerStart_=0;S.rulerDragStartTime_=0;S.rulerDragEndTime_=0;S.dragMouseLastX_=0;S.scrollInterval_=null;S.scrubberVe_=null;S.boundHandlers_=
{};S.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return S};
_.C(wZ,_.W);_.J=wZ.prototype;
_.J.created=function(){var S=this;this.JSC$20064_playerEvents=new Map;this.JSC$20064_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$20064_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$20064_playerEvents.set("onStateChange",this.onStateChange_);var c={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(c).forEach(function(Q){S.boundHandlers_[Q]=c[Q].bind(S)})};
_.J.attached=function(){this.activeLoopRange_=!1;_.Ur(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Ur(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.qo(156731)};
_.J.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.Ur(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.Ur(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.J.onVisibilityChangedAction_=function(S){var c=this;S.visible&&!this.player_&&(S=_.S9())&&S.getPlayerPromise().then(function(Q){c.setPlayer(Q)})};
_.J.setPlayer=function(S){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20064_playerEvents);S&&(this.set("player_",S),this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$20064_playerEvents))};
_.J.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.J.beginHandleDrag_=function(S){this.disabled||(S.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=S.clientX,S.target===_.Ur(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():S.target===_.Ur(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.J.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.J.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.J.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.J.beginRulerDrag_=function(S){this.disabled||(S.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=S.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.J.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.J.beginWindowScroll_=function(){var S=this;this.scrollInterval_=setInterval(function(){var c=S.windowSlideSpeed;if(c=_.PL1(S.start,S.boundedRulerStartLimit_())?c-.1:_.PL1(S.end,S.boundedRulerEndLimit_())?c+.1:0){var Q=S.capRulerOffset_(S.rulerShift_+c);Q==S.rulerShift_?c=0:(S.set("rulerShift_",Q),_.Az(S.hostElement,"set-fixed-length-range",{start:S.start+c,duration:S.end-S.start}))}S.set("windowSlideSpeed",c)},33)};
_.J.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.J.endDrag_=function(){this.logClick();var S=void 0;this.draggingRight_?S=this.end-1:this.draggingLeft_&&(S=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,S);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))};
_.J.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.J.updateRulerSize_=function(){this.set("rulerWidth_",_.Ur(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.J.handleMouseDrag_=function(S){S.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(S):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(S):this.draggingWindow_&&this.handleWindowDrag_(S))};
_.J.handleRulerDrag_=function(S){S=this.pixelsToTime_(S.clientX-this.rulerDragMouseStart_);S=this.capRulerOffset_(this.rulerDragRulerStart_-S);this.set("rulerShift_",S);var c=this.rulerDragStartTime_-(this.rulerDragRulerStart_-S);_.Az(this.hostElement,"set-fixed-length-range",{start:c,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-S)-c})};
_.J.handleWindowDrag_=function(S){var c=S.clientX-this.dragMouseLastX_;this.dragMouseLastX_=S.clientX;S=this.pixelsToTime_(c);_.Az(this.hostElement,"set-fixed-length-range",{start:this.start+S,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.capRulerOffset_=function(S){var c=this.seekableStart-this.pixelsToTime_(16),Q=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(c,S),Q)};
_.J.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.J.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.J.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.J.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.J.handleWindowHandleDrag_=function(S){var c=S.clientX-this.dragMouseLastX_;this.dragMouseLastX_=S.clientX;S=this.pixelsToTime_(c);if(this.draggingLeft_){var Q=this.start+S;var f=this.end}else this.draggingRight_&&(Q=this.start,f=this.end+S);_.Az(this.hostElement,"set-range",{start:Q,end:f,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.J.onVideoProgress_=function(S){this.disabled||(S=this.timeToPixels_(S-this.rulerShift_,this.tickSpacing_),_.Ur(this.hostElement).querySelector("#playhead").style.transform="translateX("+S+")")};
_.J.onClipCreationDisable_=function(){this.endDrag_()};
_.J.timeToPixels_=function(S,c,Q){S*=c;return Q===void 0||Q?S+"px":S};
_.J.pixelsToTime_=function(S){return S/this.tickSpacing_};
_.J.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.centerRuler_=function(S,c,Q){this.set("rulerShift_",this.capRulerOffset_(S+(c-S)/2-Q/2))};
_.J.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.J.updateLoopRange_=function(S,c,Q,f,U,a,X){S&&(c&&f&&!Q?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(S.pauseVideo(),S.seekTo(U,!1,void 0,void 0,50)):this.draggingRight_?(S.pauseVideo(),S.seekTo(a-.1,!1,void 0,void 0,50)):(X!==void 0?S.seekTo(X,!0,void 0,void 0,50):(c=S.getCurrentTime(),c<U||c>a?S.seekTo(U,!0,void 0,void 0,50):S.seekTo(c,!0,void 0,void 0,50)),S.playVideo()),S.setLoopRange({startTimeMs:U*1E3,endTimeMs:a*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(S.getCurrentTime())):
this.activeLoopRange_&&(S.setLoopRange(null),this.activeLoopRange_=!1))};
_.J.updateHandles_=function(){_.Ur(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.Ur(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.J.updateRuler_=function(){var S=this.end,c=this.start,Q=this.draggableStartLimit_(),f=this.draggableEndLimit_();(c<Q-.001||S>f+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.J.computeDurationLabel_=function(S,c){return S?S.replace("$clip_length",parseFloat(c).toFixed(1)):""};
_.J.computeDuration_=function(S,c){return this.isValidTime_(S)&&this.isValidTime_(c)&&S<c?c-S:0};
_.J.isValidTime_=function(S){return isNaN(parseFloat(S))||S<0?!1:this.player_?S>=this.seekableStart&&S<=this.seekableEnd:!0};
_.J.computeWindowSizeSec_=function(S,c,Q){return Math.min((S||12E4)/1E3,Q-c)};
_.J.computeTickSpacing_=function(S,c){return c?c/S:1};
_.J.onDragStateChanged_=function(){_.Az(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.J.centerRangeOnTime_=function(S){var c=this.duration;S=GbU(S-c/2,c,this.seekableStart,this.seekableEnd);_.Az(this.hostElement,"set-fixed-length-range",{start:S.start,duration:S.end-S.start})};
_.J.nearlyLessThan_=function(S,c,Q){return S+(Q===void 0?1E-6:Q)<c};
_.J.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var S=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(S,this.start)||this.nearlyLessThan_(this.end,S))&&this.centerRangeOnTime_(S)}};
_.J.onStateChange_=function(S){this.visible&&!this.disabled&&S==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.J.computeDragState_=function(S,c,Q,f){return S?"left":c?"right":Q?"ruler":f?"window":"none"};
_.J.logClick=function(){var S=_.wN(),c=_.T$();S&&c&&this.scrubberVe_&&(_.u("combine_ve_grafts")?_.Oc(_.Kv(),this.scrubberVe_,c):_.dS(S,c,this.scrubberVe_),_.tz(S,this.scrubberVe_))};
wZ.prototype.onDragStateChanged_=wZ.prototype.onDragStateChanged_;wZ.prototype.updateRuler_=wZ.prototype.updateRuler_;wZ.prototype.updateHandles_=wZ.prototype.updateHandles_;wZ.prototype.onUpdateLoopRange=wZ.prototype.onUpdateLoopRange;wZ.prototype.onInitializedChanged_=wZ.prototype.onInitializedChanged_;wZ.prototype.onVisibleChanged_=wZ.prototype.onVisibleChanged_;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],wZ.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",Object)],wZ.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"start",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"end",void 0);_.d([_.Z({computed:"computeDuration_(start, end)"}),_.P("design:type",Number)],wZ.prototype,"duration",void 0);
_.d([_.Z(),_.P("design:type",String)],wZ.prototype,"lengthTemplate",void 0);_.d([_.Z({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.P("design:type",String)],wZ.prototype,"durationLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"visible",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"player_",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"draggingLeft_",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"draggingRight_",void 0);
_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"draggingRuler_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Object)],wZ.prototype,"draggingWindow_",void 0);_.d([_.Z({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.P("design:type",Number)],wZ.prototype,"tickSpacing_",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"seekableStart",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"seekableEnd",void 0);
_.d([_.Z(),_.P("design:type",Number)],wZ.prototype,"windowSizeMs",void 0);_.d([_.Z({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.P("design:type",Number)],wZ.prototype,"windowSizeSec_",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"rulerWidth_",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"rulerShift_",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"windowSlideSpeed",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],wZ.prototype,"disabled",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"initialized",void 0);_.d([_.Z(),_.P("design:type",Object)],wZ.prototype,"durationAccessibilityLabel",void 0);_.d([_.Z({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.P("design:type",String)],wZ.prototype,"dragState",void 0);
_.d([_.B0("visible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onVisibleChanged_",null);_.d([_.B0("initialized"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onInitializedChanged_",null);_.d([_.B0("player_","visible","disabled","initialized","start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onUpdateLoopRange",null);
_.d([_.B0("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"updateHandles_",null);_.d([_.B0("start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"updateRuler_",null);
_.d([_.B0("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wZ.prototype,"onDragStateChanged_",null);_.d([_.wM({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],wZ);
_.k(wZ,"yt-clip-creation-scrubber-view",function(){if(fDZ===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;QU8===void 0&&(QU8=document.createElement("template"));var f=QU8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);fDZ=S}S=fDZ;return S},{mode:2});var sA=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};S.startHighlightTimeout=0;S.endHighlightTimeout=0;return S};
_.C(sA,_.W);_.J=sA.prototype;_.J.attached=function(){var S=this;this.startInput.addEventListener("input",function(c){return S.handleStartInput_(c)});
this.endInput.addEventListener("input",function(c){return S.handleEndInput_(c)});
this.startInput.addEventListener("focusout",function(c){return S.handleStartBlur_(c)});
this.endInput.addEventListener("focusout",function(c){return S.handleEndBlur_(c)})};
_.J.setPlayer=function(S){this.set("player_",S)};
_.J.onSetFixedLengthRange_=function(S){var c=S.detail;S=c.start;var Q=c.duration,f=c.startLimit;c=c.endLimit;f||(f=this.seekableStart_);c||(c=this.seekableEnd_);S=GbU(S,Q,f,c);this.start=S.start;this.end=S.end};
_.J.onSetRange_=function(S){var c=S.detail;S=c.start;var Q=c.end,f=c.startLimit;c=c.endLimit;f||(f=this.seekableStart_);c||(c=this.seekableEnd_);if(S=WHV(S,Q,f,c,this.minLengthSec,this.maxLengthSec))this.start=S.start,this.end=S.end};
_.J.updateInputs_=function(){var S=this.end,c=this.start;this.startInput.focused||(this.startInput.value=hi(c,!0));this.endInput.focused||(this.endInput.value=hi(S,!0))};
_.J.handleStartInput_=function(S){S=ZQT(S.target.value);if(S===null)this.set("startValid",!1);else{var c=this.end,Q=WHV(S,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);Q?(this.set("endWillUpdate",Q.end!==c),this.set("startValid",Q.start===S)):this.set("startValid",!1)}};
_.J.handleEndInput_=function(S){S=ZQT(S.target.value);if(S===null)this.set("endValid",!1);else{var c=this.start,Q=gB1(this.start,S,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);Q?(this.set("startWillUpdate",Q.start!==c),this.set("endValid",Q.end===S)):this.set("endValid",!1)}};
_.J.handleStartBlur_=function(S){S=ZQT(S.target.value);S===null?this.startInput.value=hi(this.start,!0):this.forceUpdateInputs_(WHV(S,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.handleEndBlur_=function(S){S=ZQT(S.target.value);S===null?this.endInput.value=hi(this.end,!0):this.forceUpdateInputs_(gB1(this.start,S,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.J.forceUpdateInputs_=function(S){S&&(this.start=S.start,this.end=S.end);this.startInput.value=hi(this.start,!0);this.endInput.value=hi(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.J.initializeClipRange_=function(){var S=this.seekableEnd_,c=this.seekableStart_,Q=this.visible_,f=this.player_;if(!f||!Q||c===null||!S)this.set("initialized",!1);else if(!this.initialized){var U=f.getCurrentTime(),a=this.getDefaultLengthSec_();Q=f.getVideoData();var X=f.getPlayerState()==1,z=Q.isLive;a=Math.min(a,S-c);U=Math.max(0,U);S=z?gB1(U-a,U,c,S,this.minLengthSec,this.maxLengthSec):X?GbU(U-a/2,a,c,S):GbU(U,a,c,S);this.start=S.start;this.end=S.end;this.set("initialized",!0);Q.isLive&&f.seekTo(S.start);
this.startInput.value=hi(this.start,!0);this.endInput.value=hi(this.end,!0)}};
_.J.onStartChanged_=function(){var S=this;_.Az(this.hostElement,"start-changed",{start:this.start});var c;isNaN((c=this.oldStart)!=null?c:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){S.set("highlightStart",!1);S.startHighlightTimeout=0;S.oldStart=S.start},3E3))};
_.J.onEndChanged_=function(){var S=this;_.Az(this.hostElement,"end-changed",{end:this.end});var c;isNaN((c=this.oldEnd)!=null?c:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){S.set("highlightEnd",!1);S.endHighlightTimeout=0;S.oldEnd=S.end},3E3))};
_.J.onVisibilityChangedAction_=function(S){var c=this;this.set("visible_",S.visible);this.visible_&&!this.player_&&(S=_.S9())&&S.getPlayerPromise().then(function(Q){c.setPlayer(Q)})};
_.J.computeMinLengthSec_=function(S){return S/1E3||5};
_.J.computeMaxLengthSec_=function(S){return S/1E3||60};
_.J.computeDefaultLengthSec_=function(S){return S/1E3};
_.J.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.J.computeSeekableStart_=function(S,c){return S&&c?S.getProgressState(1).seekableStart:0};
_.J.computeSeekableEnd_=function(S,c){return S&&c?S.getProgressState(1).seekableEnd:0};
_.J.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.J.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.J.onDragState_=function(S){this.set("highlightStart",S.detail.startChanging);this.set("highlightEnd",S.detail.endChanging)};
sA.prototype.onDragState_=sA.prototype.onDragState_;sA.prototype.onEndChanged_=sA.prototype.onEndChanged_;sA.prototype.onStartChanged_=sA.prototype.onStartChanged_;sA.prototype.initializeClipRange_=sA.prototype.initializeClipRange_;sA.prototype.updateInputs_=sA.prototype.updateInputs_;sA.prototype.onSetRange_=sA.prototype.onSetRange_;sA.prototype.onSetFixedLengthRange_=sA.prototype.onSetFixedLengthRange_;
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],sA.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sA.prototype,"data",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],sA.prototype,"start",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],sA.prototype,"startValid",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],sA.prototype,"startWillUpdate",void 0);_.d([_.Z({value:30}),_.P("design:type",Number)],sA.prototype,"end",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],sA.prototype,"endValid",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],sA.prototype,"endWillUpdate",void 0);_.d([_.Z({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.P("design:type",Number)],sA.prototype,"minLengthSec",void 0);
_.d([_.Z({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.P("design:type",Number)],sA.prototype,"maxLengthSec",void 0);_.d([_.Z({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.P("design:type",Number)],sA.prototype,"defaultLengthSec",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],sA.prototype,"visible_",void 0);_.d([_.Z(),_.P("design:type",Object)],sA.prototype,"player_",void 0);
_.d([_.Z({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.P("design:type",Number)],sA.prototype,"seekableStart_",void 0);_.d([_.Z({computed:"computeSeekableEnd_(player_, visible_)"}),_.P("design:type",Number)],sA.prototype,"seekableEnd_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],sA.prototype,"initialized",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],sA.prototype,"disabled",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],sA.prototype,"highlightStart",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],sA.prototype,"highlightEnd",void 0);_.d([_.nU("#start"),_.P("design:type",HTMLInputElement)],sA.prototype,"startInput",void 0);_.d([_.nU("#end"),_.P("design:type",HTMLInputElement)],sA.prototype,"endInput",void 0);
_.d([_.FV("set-fixed-length-range"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],sA.prototype,"onSetFixedLengthRange_",null);_.d([_.FV("set-range"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],sA.prototype,"onSetRange_",null);_.d([_.B0("start","end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sA.prototype,"updateInputs_",null);
_.d([_.B0("player_","visible_","seekableStart_","seekableEnd_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sA.prototype,"initializeClipRange_",null);_.d([_.B0("start"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sA.prototype,"onStartChanged_",null);_.d([_.B0("end"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sA.prototype,"onEndChanged_",null);
_.d([_.FV("clips-drag-state"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],sA.prototype,"onDragState_",null);_.d([_.wM({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],sA);
_.k(sA,"yt-clip-creation-scrubber-renderer",function(){if(Ss8===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;mAV===void 0&&(mAV=document.createElement("template"));var f=mAV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Ss8=S}S=Ss8;return S},{mode:2});var Mw=function(){var S=_.W.apply(this,arguments)||this;S.player_=null;S.JSC$20078_playerEvents=new Map;S.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return S};
_.C(Mw,_.W);_.J=Mw.prototype;_.J.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"}}}};
_.J.created=function(){this.JSC$20078_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$20078_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$20078_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$20078_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.J.detached=function(){this.setPlayer(null)};
_.J.onVisibilityChangedAction_=function(S){var c=this,Q;if((Q=this.data)==null?0:Q.externalVideoId){var f;this.videoId=(f=this.data)==null?void 0:f.externalVideoId}this.getPlayer().then(function(U){if(S.visible)c.returnTime=U.getCurrentTime(),c.isAtLiveHead=U.getProgressState().isAtLiveHead;else{var a=c.returnTime;c.isAtLiveHead&&(a=Number.POSITIVE_INFINITY);U.seekTo(a,void 0,void 0,void 0,51)}})};
_.J.getPlayer=function(){var S=this;if(!this.player_){var c=_.S9();if(c)return c.getPlayerPromise().then(function(Q){S.setPlayer(Q);return Q})}return Promise.resolve(this.player_)};
_.J.setPlayer=function(S){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$20078_playerEvents);if(S){this.player_=S;var c;((c=this.data)==null?0:c.externalVideoId)||this.set("videoId",S.getVideoData().video_id||"");var Q;(S==null?void 0:(Q=S.getPresentingPlayerType)==null?void 0:Q.call(S))===2&&(this.set("isAdPlaying",!0),_.XF(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(S,this.JSC$20078_playerEvents)}};
_.J.ready=function(){_.Ur(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.J.onTitleChanged_=function(S){this.set("titleValue",S.detail.title)};
_.J.onStartChanged_=function(S){this.set("start",S.detail.start)};
_.J.onEndChanged_=function(S){this.set("end",S.detail.end)};
_.J.onTitleValidChanged_=function(S){this.set("titleValid",S.detail.valid)};
_.J.onStartValidChanged_=function(S){this.set("startValid",S.detail.valid)};
_.J.onEndValidChanged_=function(S){this.set("endValid",S.detail.valid)};
_.J.onVideoDataChange_=function(){var S;if((S=this.data)==null||!S.externalVideoId){var c;this.set("videoId",((c=this.player_)==null?void 0:c.getVideoData().video_id)||"")}};
_.J.computeFormValid_=function(S,c,Q,f){return!!(S&&c&&Q&&f)};
_.J.computeCancelButton_=function(S,c,Q){return S&&_.Y(S,_.GF)?{buttonRenderer:Object.assign({},_.Y(S,_.GF),{isDisabled:c||Q})}:null};
_.J.computeSubmitButton_=function(S,c,Q){return S&&_.Y(S,_.GF)?{buttonRenderer:Object.assign({},_.Y(S,_.GF),{command:void 0,isDisabled:!this.formValid||c||Q})}:null};
_.J.computeSubmitCommand_=function(S){return S||null};
_.J.onSubmit_=function(S){var c=this;S.stopPropagation();S.preventDefault();this.submitCommand_&&(S={},S.comment_text=this.titleValue,S.clip_external_video_id=this.videoId,S.clip_offset_ms=parseInt(this.start*1E3,10),S.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.xt(this.hostElement,[this.submitCommand_,S]).then(function(){c.set("isLoading_",!1)},function(){c.set("isLoading_",!1)}))};
_.J.playerAdStartHandler_=function(){_.XF(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.J.playerAdEndHandler_=function(){_.XF(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.J.onVideoProgress_=function(){var S=this;this.getPlayer().then(function(c){var Q,f=(c==null?void 0:(Q=c.getPresentingPlayerType)==null?void 0:Q.call(c))===2;S.isAdPlaying!==f&&(f?S.playerAdStartHandler_():S.playerAdEndHandler_())})};
Mw.prototype.onEndValidChanged_=Mw.prototype.onEndValidChanged_;Mw.prototype.onStartValidChanged_=Mw.prototype.onStartValidChanged_;Mw.prototype.onTitleValidChanged_=Mw.prototype.onTitleValidChanged_;Mw.prototype.onEndChanged_=Mw.prototype.onEndChanged_;Mw.prototype.onStartChanged_=Mw.prototype.onStartChanged_;Mw.prototype.onTitleChanged_=Mw.prototype.onTitleChanged_;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Mw.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",Object)],Mw.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Mw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Mw.prototype,"data",void 0);_.d([_.Z({value:""}),_.P("design:type",String)],Mw.prototype,"titleValue",void 0);
_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Mw.prototype,"titleValid",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Mw.prototype,"start",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],Mw.prototype,"startValid",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Mw.prototype,"end",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],Mw.prototype,"endValid",void 0);_.d([_.Z({value:""}),_.P("design:type",String)],Mw.prototype,"videoId",void 0);
_.d([_.Z({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.P("design:type",Boolean)],Mw.prototype,"formValid",void 0);_.d([_.Z({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.P("design:type",Object)],Mw.prototype,"submitButton_",void 0);_.d([_.Z({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.P("design:type",Object)],Mw.prototype,"submitCommand_",void 0);
_.d([_.Z({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.P("design:type",Object)],Mw.prototype,"cancelButton_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Mw.prototype,"isLoading_",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],Mw.prototype,"isAdPlaying",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Mw.prototype,"returnTime",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Mw.prototype,"isAtLiveHead",void 0);
_.d([_.FV("title-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mw.prototype,"onTitleChanged_",null);_.d([_.FV("start-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mw.prototype,"onStartChanged_",null);_.d([_.FV("end-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mw.prototype,"onEndChanged_",null);
_.d([_.FV("title-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mw.prototype,"onTitleValidChanged_",null);_.d([_.FV("start-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mw.prototype,"onStartValidChanged_",null);_.d([_.FV("end-valid-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mw.prototype,"onEndValidChanged_",null);
_.d([_.wM({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],Mw);
_.k(Mw,"yt-clip-creation-renderer",function(){if(o6Z===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;yF8===void 0&&(yF8=document.createElement("template"));var f=yF8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);o6Z=S}S=o6Z;return S},{mode:2});var iJ=function(){return _.W.apply(this,arguments)||this};
_.C(iJ,_.W);iJ.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"}}}};
iJ.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(S){return S.hasOwnProperty("clipCreationRenderer")})&&_.XF(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
iJ.prototype.onPanelContentVisibleChanged=iJ.prototype.onPanelContentVisibleChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],iJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iJ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Ex.YtVisibilityBehavior),_.P("design:type",Object)],iJ.prototype,"ytVisibilityBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],iJ.prototype,"ytdReduxBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],iJ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],iJ.prototype,"panelContentVisible",void 0);_.d([_.B0("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iJ.prototype,"onPanelContentVisibleChanged",null);_.d([_.e({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],iJ);
_.k(iJ,"ytd-clip-section-renderer",function(){if(tiV!==void 0)return tiV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tiV=S},{mode:1});var UyO;var Zy=function(){return _.W.apply(this,arguments)||this};
_.C(Zy,_.W);_.J=Zy.prototype;
_.J.onKeyDown=function(S){if(this.snippetElements.length!==0&&(S=S.keyCode,S===38||S===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);S===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.Zv(this.highlightedIndex,-1,this.snippetElements.length);S=this.snippetElements.length;var c=this.highlightedIndex%S;this.highlightedIndex=c*S<0?c+S:c;S=this.snippetElements[this.highlightedIndex];this.highlightSnippet(S);this.ensureVisible(S)}};
_.J.onKeyUp=function(S){var c=this;NGZ(S)&&(S.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.Mq.cancelJob(this.inputTimerId),this.inputTimerId=_.Mq.addLowPriorityJob(function(){c.typedValue&&(c.fetchSnippets(c.typedValue),c.logInputGesture(c.data))},1E3))};
_.J.onClick=function(S){(S=_.Nde(S.target,null,"snippet-item"))&&this.selectSnippet(S)};
_.J.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.J.ready=function(){var S=this;this.inputElement.addEventListener("focus",function(){S.snippetsWrapper.style.removeProperty("display")})};
_.J.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.J.getSourceTimelines=function(){if(!this.data)return[];var S=[];if(this.data.searchInVideoSources)for(var c=_.A(this.data.searchInVideoSources),Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q==="SEARCH_IN_VIDEO_SOURCE_ASR"?S.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):Q==="SEARCH_IN_VIDEO_SOURCE_OCR"&&S.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return S};
_.J.fetchSnippets=function(S){var c=_.XF(this.hostElement,"yt-get-current-video-id-action")[0],Q=this.getSourceTimelines();S={getSearchInVideoCommand:{externalVideoId:c,query:S!=null?S:"",sourceTimelines:Q},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})};
_.J.filterSnippets=function(S,c){var Q=this;if(c){this.filteredSnippets=(0,_.Cn.unsafeClone)(S);var f=RegExp(_.k1Z(c),"i");this.filteredSnippets=this.filteredSnippets.filter(function(X){return f.test(Q.ytRendererBehavior.getSimpleString(X.snippet))});
S=_.A(this.filteredSnippets);for(var U=S.next();!U.done;U=S.next()){U=U.value;var a=this.ytRendererBehavior.getSimpleString(U.snippet);U.snippet={runs:[{text:a.substring(0,a.toLowerCase().indexOf(c))},{text:a.substring(a.toLowerCase().indexOf(c),a.toLowerCase().indexOf(c)+c.length),bold:!0},{text:a.substring(a.toLowerCase().indexOf(c)+c.length,a.length)}]}}}else this.filteredSnippets=S};
_.J.onUpdateSearchInVideoResults=function(S){if(!(this.snippets.length>0)){var c,Q,f;if((f=(c=_.Y(S,qGN))==null?void 0:(Q=c.results)==null?void 0:Q.length)!=null&&f){var U;this.filteredSnippets=this.snippets=((U=_.Y(S,qGN))==null?void 0:U.results).map(function(a){var X,z,x;return{startMs:a==null?void 0:(X=a.searchInVideoResultRenderer)==null?void 0:X.startMs,startTimeText:a==null?void 0:(z=a.searchInVideoResultRenderer)==null?void 0:z.startTimeText,snippet:a==null?void 0:(x=a.searchInVideoResultRenderer)==
null?void 0:x.snippet}})}}};
_.J.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};
_.J.highlightSnippet=function(S){S.classList.add("highlighted")};
_.J.removeSnippetHighlight=function(S){S.classList.remove("highlighted")};
_.J.selectSnippet=function(S){this.typedValue=String(S.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(S);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.J.ensureVisible=function(S){var c=this.snippetsWrapper.scrollTop,Q=c+this.snippetsWrapper.clientHeight,f=S.offsetTop-this.snippetsWrapper.offsetTop;S=f+S.clientHeight;f<c?this.snippetsWrapper.scrollTop-=c-f:S>Q&&(this.snippetsWrapper.scrollTop+=S-Q)};
_.J.seekPlayer=function(S){var c,Q;return _.O(function(f){if(f.nextAddress==1){if(!S)return f.jumpTo(0);c=Number(S.dataset.startOffset);return _.F(f,_.cK().getPlayerPromise(),3)}Q=f.yieldResult;Q.seekTo(c/1E3,!0);Q.wakeUpControls();_.IN(f)})};
_.J.logInputGesture=function(S){var c=_.wN();c&&(S==null?0:S.trackingParams)&&_.Vw(c,_.Yz(S.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.J.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("typed-value-changed",this.typedValue))};
_.J.updateTypedValueFromBinding=function(S){this.typedValue=S.currentTarget.value};
Zy.prototype.typedValueChangedForBinding=Zy.prototype.typedValueChangedForBinding;Zy.prototype.dataChanged=Zy.prototype.dataChanged;Zy.prototype.panelContentVisibleChanged=Zy.prototype.panelContentVisibleChanged;Zy.prototype.onClick=Zy.prototype.onClick;Zy.prototype.onKeyUp=Zy.prototype.onKeyUp;Zy.prototype.onKeyDown=Zy.prototype.onKeyDown;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Zy.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Zy.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Zy.prototype,"data",void 0);_.d([_.Z({value:[]}),_.P("design:type",Array)],Zy.prototype,"snippets",void 0);_.d([_.Z({value:[]}),_.P("design:type",Array)],Zy.prototype,"filteredSnippets",void 0);_.d([_.Z({value:[]}),_.P("design:type",Array)],Zy.prototype,"snippetElements",void 0);
_.d([_.nU("#siv-input"),_.P("design:type",HTMLElement)],Zy.prototype,"inputElement",void 0);_.d([_.nU("#siv-snippets-wrapper"),_.P("design:type",HTMLElement)],Zy.prototype,"snippetsWrapper",void 0);_.d([_.Z(),_.P("design:type",String)],Zy.prototype,"typedValue",void 0);_.d([_.Z({value:-1}),_.P("design:type",Number)],Zy.prototype,"highlightedIndex",void 0);_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[_.$5]),_.P("design:returntype")],Zy.prototype,"onKeyDown",null);
_.d([_.FV("keyup"),_.P("design:type",Function),_.P("design:paramtypes",[_.$5]),_.P("design:returntype")],Zy.prototype,"onKeyUp",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Zy.prototype,"onClick",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Zy.prototype,"panelContentVisible",void 0);
_.d([_.B0("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zy.prototype,"panelContentVisibleChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zy.prototype,"dataChanged",null);_.d([_.B0("typedValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Zy.prototype,"typedValueChangedForBinding",null);
_.d([_.e({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],Zy);
_.k(Zy,"ytd-search-in-video-renderer",function(){if(UyO!==void 0)return UyO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return UyO=S},{mode:1});var JVZ;var G8=function(){return _.W.apply(this,arguments)||this};
_.C(G8,_.W);G8.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
G8.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]]"}}}}}};
G8.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var S,c,Q,f,U=(c=_.Y((S=this.data)==null?void 0:S.onClickCommand,_.lA))==null?void 0:(Q=c.item)==null?void 0:(f=Q.notificationTextRenderer)==null?void 0:f.successResponseText;U&&_.Oer(this.hostElement,U)}};
_.Rh.Object.defineProperties(G8.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return this.isProductPlaceholder&&((S=this.data)==null?void 0:(c=S.hiddenProductOptions)==null?void 0:c.showDropCountdown)&&!!((Q=this.data)==null?0:(f=Q.hiddenProductOptions)==null?0:f.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var S;return!this.isProductPlaceholder&&!((S=this.data)==null?0:S.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null?0:S.priceReplacementText)&&!((c=this.data)==null||!c.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],G8.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],G8.prototype,"componentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],G8.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],G8.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],G8.prototype,"useCenterLayoutContainer",null);_.d([_.Z({computed:"computeButtonOverride(data)"}),_.P("design:type",Object)],G8.prototype,"buttonOverride",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],G8.prototype,"isProductPlaceholder",null);
_.d([_.M("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],G8.prototype,"showDropCountdown",null);_.d([_.M("isProductPlaceholder","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],G8.prototype,"showBrandName",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],G8.prototype,"showPriceReplacementText",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],G8.prototype,"showPrice",null);
_.d([_.M("isProductPlaceholder"),_.P("design:type",Object),_.P("design:paramtypes",[])],G8.prototype,"showMetadata",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],G8);
_.k(G8,"ytd-product-list-item-renderer",function(){if(JVZ!==void 0)return JVZ;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return JVZ=S},{mode:1});var aDN;var Wo=function(){return _.W.apply(this,arguments)||this};
_.C(Wo,_.W);Wo.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
Wo.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
Wo.prototype.panelContentVisibleChanged=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return S.playerApi?Q.jumpTo(2):_.F(Q,_.cK().getPlayerPromise(),3);Q.nextAddress!=2&&(S.playerApi=Q.yieldResult);(c=S.playerApi)==null||c.productsInVideoVisibilityUpdated(!!S.panelContentVisible);_.IN(Q)})};
Wo.prototype.panelContentVisibleChanged=Wo.prototype.panelContentVisibleChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Wo.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Wo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Wo.prototype,"panelContentVisible",void 0);_.d([_.Z(),_.P("design:type",Object)],Wo.prototype,"data",void 0);
_.d([_.B0("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],Wo.prototype,"panelContentVisibleChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],Wo);
_.k(Wo,"ytd-product-list-renderer",function(){if(aDN!==void 0)return aDN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return aDN=S},{mode:1});var AVO;var gZ=function(){var S=_.W.apply(this,arguments)||this;S.hideTimestamps=!!_.Bb("hide-transcript-timestamps");S.currentCueIndex=-1;S.flatCues=[];S.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};S.TEST_ONLY={getFlatCues:function(){return S.flatCues}};
return S};
_.C(gZ,_.W);_.J=gZ.prototype;_.J.hideTimestampsChanged=function(){_.F6("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.dataChanged=function(){var S;if((S=this.data)!=null&&S.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;S=_.A(this.data.cueGroups);for(var c=S.next();!c.done;c=S.next()){c=_.A(_.Y(c.value,TGE).cues);for(var Q=c.next();!Q.done;Q=c.next())this.flatCues.push(Number(_.Y(Q.value,wvE).startOffsetMs))}}};
_.J.onYtPlayerTimeChanged=function(S){if(!(S<0)){for(var c=this.currentCueIndex,Q=c;;){var f=Q>=0?this.flatCues[Q]/1E3:-1;if(S+.5<f)--Q;else if(f=Q+1<this.flatCues.length?this.flatCues[Q+1]/1E3:Infinity,S+.5>f)Q+=1;else break}Q!==c&&(c>=0&&((S=this.getCueElement(c))&&S.classList.remove("active"),(c=this.getCueGroupElement(c))&&c.classList.remove("active")),(c=this.getCueElement(Q))&&c.classList.add("active"),(c=this.getCueGroupElement(Q))&&c.classList.add("active"),this.currentCueIndex=Q,this.isHovered||
this.scrollElementToTop(Q))}};
_.J.scrollElementToTop=function(S){S=this.getCueElement(S>=3?S-3:0);this.hostElement.scrollTop=Math.min(S.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.getCueElement=function(S){return _.Ur(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[S]+'"]')};
_.J.getCueGroupElement=function(S){return(S=this.getCueElement(S))&&S.parentElement?S.parentElement.parentElement:null};
_.J.onTap=function(S){var c=_.VI(S);S.target.classList.contains("cue")&&this.seekCueElement(c)};
_.J.onKeyPress=function(S){S.keyCode==13&&(S=_.Nde(S.target,null,"cue"))&&this.seekCueElement(S)};
_.J.seekCueElement=function(S){S=Number(S.getAttribute("start-offset"));_.XF(this.hostElement,"yt-transcript-player-seek",[S/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
gZ.prototype.onMouseLeave=gZ.prototype.onMouseLeave;gZ.prototype.onMouseEnter=gZ.prototype.onMouseEnter;gZ.prototype.onKeyPress=gZ.prototype.onKeyPress;gZ.prototype.onTap=gZ.prototype.onTap;gZ.prototype.dataChanged=gZ.prototype.dataChanged;gZ.prototype.hideTimestampsChanged=gZ.prototype.hideTimestampsChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],gZ.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gZ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gZ.prototype,"hideTimestamps",void 0);_.d([_.Z(),_.P("design:type",Boolean)],gZ.prototype,"isHovered",void 0);_.d([_.B0("hideTimestamps"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gZ.prototype,"hideTimestampsChanged",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gZ.prototype,"dataChanged",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],gZ.prototype,"onTap",null);_.d([_.FV("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],gZ.prototype,"onKeyPress",null);
_.d([_.FV("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gZ.prototype,"onMouseEnter",null);_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gZ.prototype,"onMouseLeave",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],gZ);
_.k(gZ,"ytd-transcript-body-renderer",function(){if(AVO!==void 0)return AVO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return AVO=S},{mode:1});var XjE;var eH=function(){var S=_.W.apply(this,arguments)||this;S.darkerPanels=_.u("web_watch_darker_panels");return S};
_.C(eH,_.W);eH.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],eH.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],eH.prototype,"darkerPanels",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],eH);
_.k(eH,"ytd-transcript-footer-renderer",function(){if(XjE!==void 0)return XjE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return XjE=S},{mode:1});var OHZ;var zZp;var kG=function(){var S=_.W.apply(this,arguments)||this;S.systemIcons=_.u("kevlar_system_icons");S.showClearButton=!1;return S};
_.C(kG,_.W);_.J=kG.prototype;_.J.handleInput=function(S){var c=this;S.target.value.length?_.e$(this,"ytdTranscriptSearchBoxSearch",function(){c.emitSearchEvent(S)},500):(_.CXo(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=S.target.value.length>0};
_.J.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.J.handleClick=function(){var S,c=(S=this.data)==null?void 0:S.trackingParams;c&&_.F2(_.Kv(),c)};
_.J.handleClear=function(){_.CXo(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var S,c,Q=(c=_.Y((S=this.data)==null?void 0:S.clearButton,_.GF))==null?void 0:c.trackingParams;Q&&_.F2(_.Kv(),Q);this.clear()};
_.J.emitSearchEvent=function(S){_.Az(this.hostElement,"yt-transcript-search-box-search",{query:S.target.value});var c,Q;(S=(Q=_.Y((c=this.data)==null?void 0:c.searchButton,_.GF))==null?void 0:Q.trackingParams)&&_.F2(_.Kv(),S)};
_.J.emitClearEvent=function(){_.Az(this.hostElement,"yt-transcript-search-box-clear")};
_.Rh.Object.defineProperties(kG.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.Ur(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],kG.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],kG.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],kG.prototype,"systemIcons",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],kG);
_.k(kG,"ytd-transcript-search-box-renderer",function(){if(zZp!==void 0)return zZp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return zZp=S},{mode:1});var xyg;var FKg;var rZ=function(){return _.W.apply(this,arguments)||this};
_.C(rZ,_.W);rZ.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var S,c;this.sectionHeaderAriaLabel=(S=this.data)==null?void 0:(c=S.accessibility)==null?void 0:c.accessibilityData.label}};
rZ.prototype.fireSelectedEvent=function(S){_.Az(this.hostElement,"ytd-transcript-section-header",{startMs:S})};
rZ.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
rZ.prototype.handleKeyPress=function(S){this.data&&S.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.Rh.Object.defineProperties(rZ.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=(S=this.data)==null?void 0:S.enableTappableTranscriptHeader)!=null?c:!1}}});
rZ.prototype.dataChanged=rZ.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],rZ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],rZ.prototype,"sectionHeaderAriaLabel",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],rZ.prototype,"enableTappableTranscriptHeader",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rZ.prototype,"dataChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],rZ);
_.k(rZ,"ytd-transcript-section-header-renderer",function(){if(FKg!==void 0)return FKg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return FKg=S},{mode:1});var Bup;var IDE;var dZ=function(){var S=_.W.apply(this,arguments)||this;S.isEditMode=!1;S.touchCaptionsEnabled=!1;S.deleteCaptionCorrectionPopupCommand=null;S.voteCaptionCorrectionPopupCommand=null;S.roundedContainer=!0;S.mouseOver=!1;S.textChanged=!1;S.messages={suggest_correction:_.K8("suggest_correction",void 0,"Edit caption"),suggested_caption:_.K8("suggested_caption",void 0,"Suggested caption"),submit_correction:_.K8("submit_correction",void 0,"Submit for review"),cancel_correction:_.K8("cancel_correction",
void 0,"Cancel"),replay_segment:_.K8("replay_segment",void 0,"Re-play segment"),delete_correction:_.K8("delete_correction",void 0,"Delete correction")};S.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return S};
_.C(dZ,_.W);_.J=dZ.prototype;_.J.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)};
_.J.handleDelete=function(S){if(this.deleteCaptionCorrectionPopupCommand){var c=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);c&&this.ytdOpenPopupBehavior.openPopup(c);S.stopPropagation()}};
_.J.handleSubmit=function(S){if(this.data&&this.data.submitCaptionCorrectionCommand&&(S.stopPropagation(),this.textChanged)){var c;S=(c=_.Y(this.data.submitCaptionCorrectionCommand,_.qaz))==null?void 0:c.params;c=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:S,correctionText:String(this.ironTextAreaElement.value),originalText:_.Em(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(c);this.isEditMode=!1}};
_.J.handleUpdateSegmentText=function(S){(S=_.Y(S,VcB))&&S.targetId&&this.data&&S.targetId===this.data.targetId&&(S.userCorrection&&(this.editedText=S.userCorrection),S.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.Em(this.data.snippet)),S.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=S.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=S.voteCaptionCorrectionPopupCommand?
S.voteCaptionCorrectionPopupCommand:null,S.accessibility&&(this.segmentAriaLabel=S.accessibility.accessibilityData.label))};
_.J.handleCancel=function(S){this.isEditMode=!1;S.stopPropagation();this.logClientVe(159409)};
_.J.handleEditSegmentCommand=function(S){(S=_.Y(S,tcU))&&S.targetId&&this.data&&S.targetId===this.data.targetId&&this.handleEdit()};
_.J.handleEditButtonClick=function(S){this.data&&(this.handleEdit(),S.stopPropagation())};
_.J.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var S;(S=this.ironTextAreaElement.textarea)==null||S.focus();this.logClientVe(159407)}};
_.J.handleMouseEnter=function(){this.mouseOver=!0};
_.J.handleMouseLeave=function(){this.mouseOver=!1};
_.J.handleReplay=function(S){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),S.stopPropagation(),this.logClientVe(159408))};
_.J.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()))};
_.J.handleKeypress=function(S){this.data&&(this.isEditMode?S.stopPropagation():this.isEnterPress(S)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(S)&&this.logClientVe(138758))};
_.J.handleTextboxClick=function(S){S.stopPropagation()};
_.J.handleTextboxKeydown=function(S){this.isControlEnterPress(S)?this.handleSubmit(S):S.key==="Escape"&&this.handleCancel(S)};
_.J.handleTextboxKeyup=function(){this.textChanged=_.Em(this.latestText)!==String(this.ironTextAreaElement.value)};
_.J.fireSelectedEvent=function(S){_.Az(this.hostElement,"yt-transcript-segment-selected",{startMs:S})};
_.J.fireReplayEvent=function(S,c){_.Az(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(S-100,0),endMs:c})};
_.J.fireEditEvent=function(S,c){_.Az(this.hostElement,"yt-transcript-segment-edit",{startMs:S,endMs:c})};
_.J.isEnterPress=function(S){return S.key==="Enter"||S.code==="Enter"||S.code==="NumpadEnter"||S.keyCode===13?!0:!1};
_.J.isControlEnterPress=function(S){var c=S.key==="Enter"||S.code==="Enter"||S.code==="NumpadEnter"||S.keyCode===13;return(S.ctrlKey||S.metaKey)&&c};
_.J.isCopyPress=function(S){var c=S.ctrlKey;return S.key==="c"&&c};
_.J.logClick=function(){var S,c=(S=this.data)==null?void 0:S.trackingParams;c&&_.F2(_.Kv(),c)};
_.J.logClientVe=function(S){_.xA(_.Kv(),_.qo(S))};
_.Rh.Object.defineProperties(dZ.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}}});
dZ.prototype.handleMouseLeave=dZ.prototype.handleMouseLeave;dZ.prototype.handleMouseEnter=dZ.prototype.handleMouseEnter;dZ.prototype.dataChanged=dZ.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],dZ.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],dZ.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],dZ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dZ.prototype,"isEditMode",void 0);_.d([_.Z(),_.P("design:type",Object)],dZ.prototype,"touchCaptionsEnabled",void 0);_.d([_.Z(),_.P("design:type",Object)],dZ.prototype,"editedText",void 0);_.d([_.Z(),_.P("design:type",Object)],dZ.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.d([_.Z(),_.P("design:type",Object)],dZ.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.d([_.Z(),_.P("design:type",String)],dZ.prototype,"segmentAriaLabel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dZ.prototype,"roundedContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dZ.prototype,"mouseOver",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],dZ.prototype,"textChanged",void 0);_.d([_.Z(),_.P("design:type",Object)],dZ.prototype,"messages",void 0);
_.d([_.nU("#suggestion"),_.P("design:type",Object)],dZ.prototype,"ironTextAreaElement",void 0);_.d([_.M("data","editedText"),_.P("design:type",Object),_.P("design:paramtypes",[])],dZ.prototype,"latestText",null);_.d([_.M("touchCaptionsEnabled","isEditMode"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],dZ.prototype,"enableEditButton",null);
_.d([_.M("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],dZ.prototype,"enableUndoButton",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dZ.prototype,"dataChanged",null);_.d([_.FV("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dZ.prototype,"handleMouseEnter",null);
_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dZ.prototype,"handleMouseLeave",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],dZ);
_.k(dZ,"ytd-transcript-segment-renderer",function(){if(IDE!==void 0)return IDE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return IDE=S},{mode:1});var vo=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};S.isError=!1;S.darkerPanels=_.u("web_watch_darker_panels");S.useParentMaxHeight=_.u("web_watch_transscript_use_parent_max_height");S.segmentOffsets=[];S.segmentIndex=-1;return S};
_.C(vo,_.W);_.J=vo.prototype;_.J.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"}}}}};
_.J.segmentsChanged=function(){this.updateOffsets()};
_.J.onYtPlayerTimeChanged=function(S){for(var c=this.segmentIndex,Q=c;;){if(Q>=0){var f=this.segmentOffsets[Q].start;var U=this.segmentOffsets[Q].isAutoScrollable}else f=-1,U=!0;var a=S+.5;if(!U){f=Q+1<this.segmentOffsets.length?this.segmentOffsets[Q+1].start:Infinity;if(a>=f){Q+=1;continue}Q=-1;break}if(a<f)f=Q-1>=0&&this.segmentOffsets[Q-1].isAutoScrollable,U=Q===0||f?1:2,Q-=U;else if(U=Q+1<this.segmentOffsets.length&&this.segmentOffsets[Q+1].isAutoScrollable?1:2,f=Q+U<this.segmentOffsets.length?
this.segmentOffsets[Q+U].start:Infinity,a>f)Q+=U;else{if(Q<0)break;Q<this.segmentOffsets.length&&a>this.segmentOffsets[Q].end&&(Q=-1);break}}if(c!==Q){if(c>=0){var X;(X=this.getSegmentElement(c))==null||X.classList.remove("active")}this.segmentIndex=Q;if(!(Q<0)){var z;(z=this.getSegmentElement(Q))==null||z.classList.add("active");this.isHovered||this.scrollElementToTop(Q)}}};
_.J.handleSegmentEdit=function(S){S.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=S.target,_.XF(this.hostElement,"yt-transcript-player-edit",[S.detail.startMs/1E3,S.detail.endMs/1E3]))};
_.J.handleSegmentSelected=function(S){_.XF(this.hostElement,"yt-transcript-player-seek",[S.detail.startMs/1E3])};
_.J.handleSegmentReplay=function(S){_.XF(this.hostElement,"yt-transcript-player-replay",[S.detail.startMs/1E3,S.detail.endMs/1E3])};
_.J.handleSectionHeaderSelected=function(S){_.XF(this.hostElement,"yt-transcript-player-seek",[S.detail.startMs/1E3])};
_.J.onMouseEnter=function(){this.isHovered=!0};
_.J.onMouseLeave=function(){this.isHovered=!1};
_.J.onRetryButtonClick=function(){_.Az(this.hostElement,"transcript-retry-button-click")};
_.J.getSegmentElement=function(S){return _.Ur(this.hostElement).querySelector(":nth-child("+(S+1)+")")};
_.J.scrollElementToTop=function(S){S=this.getSegmentElement(S>=2?S-2:0);this.hostElement.scrollTop=Math.min(S.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.J.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(S){var c,Q=(c=S.transcriptSegmentRenderer)!=null?c:S.transcriptSectionHeaderRenderer;return{start:Number(Q.startMs)/1E3,end:Number(Q.endMs)/1E3,isAutoScrollable:S.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.J.clearHighlightedSegments=function(){var S=_.Ur(this.hostElement);S=_.A(S.querySelectorAll("ytd-transcript-segment-renderer"));for(var c=S.next();!c.done;c=S.next())c.value.classList.remove("active")};
_.Rh.Object.defineProperties(vo.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:S.searchResultSegments)||((c=this.data)==null?void 0:c.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
vo.prototype.onMouseLeave=vo.prototype.onMouseLeave;vo.prototype.onMouseEnter=vo.prototype.onMouseEnter;vo.prototype.handleSectionHeaderSelected=vo.prototype.handleSectionHeaderSelected;vo.prototype.handleSegmentReplay=vo.prototype.handleSegmentReplay;vo.prototype.handleSegmentSelected=vo.prototype.handleSegmentSelected;vo.prototype.handleSegmentEdit=vo.prototype.handleSegmentEdit;vo.prototype.segmentsChanged=vo.prototype.segmentsChanged;
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],vo.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vo.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vo.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],vo.prototype,"isError",void 0);
_.d([_.Z(),_.P("design:type",Object)],vo.prototype,"noResultLabel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],vo.prototype,"darkerPanels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],vo.prototype,"useParentMaxHeight",void 0);_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],vo.prototype,"segments",null);
_.d([_.M("segments","noResultLabel"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vo.prototype,"displayNoResults",null);_.d([_.B0("segments"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vo.prototype,"segmentsChanged",null);_.d([_.FV("yt-transcript-segment-edit"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vo.prototype,"handleSegmentEdit",null);
_.d([_.FV("yt-transcript-segment-selected"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vo.prototype,"handleSegmentSelected",null);_.d([_.FV("yt-transcript-segment-replay"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vo.prototype,"handleSegmentReplay",null);
_.d([_.FV("ytd-transcript-section-header"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vo.prototype,"handleSectionHeaderSelected",null);_.d([_.FV("mouseenter"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vo.prototype,"onMouseEnter",null);_.d([_.FV("mouseleave"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vo.prototype,"onMouseLeave",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],vo);
_.k(vo,"ytd-transcript-segment-list-renderer",function(){if(Bup!==void 0)return Bup;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Bup=S},{mode:1});var Po=function(){var S=_.W.apply(this,arguments)||this;S.hideTimestamps=!!_.Bb("hide-transcript-timestamps");S.isLoadingTranscripts=!1;S.darkerPanels=_.u("web_watch_darker_panels");S.isError=!1;S.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return S};
_.C(Po,_.W);_.J=Po.prototype;_.J.headerChanged=function(){var S,c;this.baseGetTranscriptsCommand=(c=_.Y((S=this.data)==null?void 0:S.header,RgN))==null?void 0:c.onTextChangeCommand};
_.J.bodyChanged=function(){var S=this.getBodyRenderer();S&&(S.initialSegments&&(this.initialTranscriptsRenderer=S),S.noResultLabel&&(this.noResultLabel=S.noResultLabel),S.retryLabel&&(this.retryLabel=S.retryLabel))};
_.J.detached=function(){this.clearSearchBoxText()};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.J.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"}}}};
_.J.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.J.fireSearch=function(S){var c=this;if(S){var Q=S.detail.query;if(this.baseGetTranscriptsCommand){var f;S=(f=_.Y(this.baseGetTranscriptsCommand,_.I$d))==null?void 0:f.params;var U;f=_.Y((U=this.data)==null?void 0:U.footer,scp);var a;if((U=(a=_.Y(f==null?void 0:f.languageMenu,Pf0))==null?void 0:a.subMenuItems)&&U.length>0&&(a=U.find(function(x){return x.selected}))){var X,z;
S=(X=a.continuation)==null?void 0:(z=X.reloadContinuationData)==null?void 0:z.continuation}X=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:S,searchQuery:Q}});this.ytComponentBehavior.resolveCommand(X,{commandController:{onServerError:function(){c.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});nfE(this.ytContinuationHandlerBehavior,function(){return Q===c.getCurrentSearchBoxText()})}}};
_.J.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.J.onRetryButtonClick=function(){this.isError=!1;var S={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:S}))};
_.J.hideTimestampsChanged=function(){_.F6("hide-transcript-timestamps",this.hideTimestamps)};
_.J.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.J.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.J.handleSignalActionCopyTranscript=function(){var S=this,c=this.getBodyRenderer();c&&(c=((c==null?void 0:c.searchResultSegments)||(c==null?void 0:c.initialSegments)||[]).map(function(Q){return _.Y(Q,ofV)}).filter(function(Q){return!!Q}).map(function(Q){return{snippet:Q.snippet||{runs:[{text:""}]},
startTimeText:Q.startTimeText||{simpleText:""}}}).map(function(Q){var f=(Q.snippet.runs||[]).reduce(function(U,a){return U+a.text},"");
return S.hideTimestamps?f:Q.startTimeText.simpleText+" "+f}).join("\n"),this.copyToClipboard(c))};
_.J.copyToClipboard=function(S){navigator.clipboard&&navigator.clipboard.writeText(S)};
_.J.getCurrentSearchBoxText=function(){var S;return(S=this.searchBox)==null?void 0:S.value};
_.J.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.J.getBodyRenderer=function(){var S;return _.Y((S=this.data)==null?void 0:S.body,ysE)};
_.J.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.Rh.Object.defineProperties(Po.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.Ur(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
Po.prototype.hideTimestampsChanged=Po.prototype.hideTimestampsChanged;Po.prototype.searchCleared=Po.prototype.searchCleared;Po.prototype.fireSearch=Po.prototype.fireSearch;Po.prototype.onReloadContinuationFinish=Po.prototype.onReloadContinuationFinish;Po.prototype.bodyChanged=Po.prototype.bodyChanged;Po.prototype.headerChanged=Po.prototype.headerChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Po.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Po.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],Po.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Po.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Po.prototype,"hideTimestamps",void 0);
_.d([_.Z(),_.P("design:type",Object)],Po.prototype,"isLoadingTranscripts",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Po.prototype,"darkerPanels",void 0);_.d([_.Z(),_.P("design:type",Object)],Po.prototype,"isError",void 0);_.d([_.B0("data.header"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Po.prototype,"headerChanged",null);
_.d([_.$n("data.body"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Po.prototype,"bodyChanged",null);_.d([_.FV("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Po.prototype,"onReloadContinuationFinish",null);_.d([_.FV("yt-transcript-search-box-search"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Po.prototype,"fireSearch",null);
_.d([_.FV("yt-transcript-search-box-clear"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Po.prototype,"searchCleared",null);_.d([_.B0("hideTimestamps"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Po.prototype,"hideTimestampsChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],Po);
_.k(Po,"ytd-transcript-search-panel-renderer",function(){if(xyg!==void 0)return xyg;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return xyg=S},{mode:1});var LG=function(){var S=_.W.apply(this,arguments)||this;S.player=null;S.playerPollJobId=0;return S};
_.C(LG,_.W);_.J=LG.prototype;_.J.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.J.onLoadReloadContinuation=function(S){_.u("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:S.target.data.continuation}}):(S={clickTrackingParams:S.target.data.clickTrackingParams,getTranscriptEndpoint:{params:S.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}}))};
_.J.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"}}}};
_.J.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.J.attached=function(){this.updatePlayerListening()};
_.J.detached=function(){this.updatePlayerListening()};
_.J.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.J.startPlayerListening=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return(c=_.S9())?_.F(Q,c.getPlayerPromise(),2):Q.return();S.player=Q.yieldResult;S.playerPollJobId=_.Mq.addLowPriorityJob(function(){S.getPlayerVideoProgress()},1E3);
S.player.addEventListener("onCueRangeEnter",function(f){S.onCueRangeEnter(f)});
S.player.addEventListener("onCueRangeExit",function(f){S.onCueRangeExit(f)});
S.player.addEventListener("onStateChange",function(f){S.onPlayerStateChange(f)});
S.player.addEventListener("SEEK_TO",function(f){S.onPlayerSeek(f)});
_.IN(Q)})};
_.J.getPlayerVideoProgress=function(){var S=this;_.Mq.cancelJob(this.playerPollJobId);if(this.player){var c=this.player.getCurrentTime();_.XF(this.hostElement,"yt-player-time-changed",[c])}this.playerPollJobId=_.Mq.addLowPriorityJob(function(){S.getPlayerVideoProgress()},1E3)};
_.J.stopPlayerListening=function(){this.player=null;_.Mq.cancelJob(this.playerPollJobId)};
_.J.onPlayerStateChange=function(S){S===2&&this.removePendingCue()};
_.J.onPlayerSeek=function(S){var c;if(c=this.pendingReplayCueId)c=this.pendingReplayCueId,c=S===(_.u("web_transcript_cue_id_killswitch")?Number(c):Number(c.split("_")[1]));c||this.removePendingCue()};
_.J.onCueRangeEnter=function(S){kbT(S)&&(this.pendingReplayCueId=S)};
_.J.onCueRangeExit=function(S){kbT(S)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.J.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.J.onYtTranscriptPlayerSeek=function(S){this.player&&this.player.seekTo(S,!0)};
_.J.onYtTranscriptPlayerReplay=function(S,c){this.player&&(this.player.addCueRange(ePG(S),S,c),this.player.seekTo(S,!0),this.player.playVideo())};
_.J.onYtTranscriptPlayerEdit=function(S,c){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(ePG(S),S,c),this.player.seekTo(S,!0))};
LG.prototype.onLoadReloadContinuation=LG.prototype.onLoadReloadContinuation;LG.prototype.panelContentVisibleChanged=LG.prototype.panelContentVisibleChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],LG.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],LG.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],LG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LG.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],LG.prototype,"panelContentVisible",void 0);_.d([_.B0("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],LG.prototype,"panelContentVisibleChanged",null);
_.d([_.FV("yt-load-reload-continuation"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],LG.prototype,"onLoadReloadContinuation",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],LG);
_.k(LG,"ytd-transcript-renderer",function(){if(OHZ!==void 0)return OHZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return OHZ=S},{mode:1});var niT;var bHU;var EA=function(){return _.W.apply(this,arguments)||this};
_.C(EA,_.W);EA.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.FF(this.hostElement,[this.data.clickCommand],this.hostElement))};
EA.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.q4)()+_.GH)+"px)"};
EA.prototype.updateShouldHideFromBinding=function(S){this.shouldHide=S.detail.value};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],EA.prototype,"rendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],EA.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],EA.prototype,"shouldHide",void 0);_.d([_.e({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],EA);
_.k(EA,"ytd-ad-engagement-panel-banner-renderer",function(){if(bHU!==void 0)return bHU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return bHU=S},{mode:_.A2("kevlar_poly_si_batch_j070")?1:2});var Nug;var tX=function(){var S=_.W.apply(this,arguments)||this;S.modernPanels=_.u("kevlar_watch_modern_panels");S.buttonUpdate=_.u("web_modern_buttons");S.adsSemanticText=_.u("enable_ads_web_ep_buenos_aires_and_padding_fix");return S};
_.C(tX,_.W);tX.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.d([_.Z(),_.P("design:type",Object)],tX.prototype,"data",void 0);_.d([_.Z({computed:"computeHideDefaultAdBadge(data)"}),_.P("design:type",Boolean)],tX.prototype,"hideDefaultAdBadge",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tX.prototype,"modernPanels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tX.prototype,"buttonUpdate",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tX.prototype,"adsSemanticText",void 0);
_.d([_.e({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],tX);
_.k(tX,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(Nug!==void 0)return Nug;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Nug=S},{mode:1});var KKT;var Vj=function(){var S=_.W.apply(this,arguments)||this;S.darkerPanels=_.u("web_watch_darker_panels");S.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");S.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");S.modernPanels=_.u("kevlar_watch_modern_panels");S.headerClickListener=function(c){S.onHeaderClick(c)};
S.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return S};
_.C(Vj,_.W);_.J=Vj.prototype;_.J.computeAdsInfoButton=function(){if(_.u("web_modern_buttons")){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.subtitleComplex,Mcg))==null?void 0:c.adInfoRenderer}};
_.J.updateHeaderClickListener=function(){var S,c,Q;((S=this.data)==null?0:S.navigationEndpoint)||((c=this.data)==null?0:c.onClickCommand)||_.Y((Q=this.data)==null?void 0:Q.visibilityButton,_.WA)?this.headerElement.addEventListener("click",this.headerClickListener):this.headerElement.removeEventListener("click",this.headerClickListener)};
_.J.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}}}}}};
_.J.collapsedChanged=function(){var S;(S=this.data)!=null&&S.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.u("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.J.focus=function(S){this.titleElement&&_.Vk(this.titleElement,S)};
_.J.computeTitleAriaLabel=function(S){var c=[];if(S.title){var Q,f;c.push(this.ytRendererBehavior.getSimpleString(S.title)||((Q=S.title.accessibility)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label))}S.contextualInfo&&c.push(this.ytRendererBehavior.getSimpleString(S.contextualInfo));return c.join(" ")};
_.J.onHeaderClick=function(S){this.shouldTriggerHeaderClick(S)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.FF(this.hostElement,[this.data.onClickCommand],this.hostElement)):(S=this.getVisibilityToggleButton())&&S.click())};
_.J.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var S=_.Y(this.data.visibilityButton,_.GF)||_.Y(this.data.visibilityButton,_.WA);S&&this.ytRendererBehavior.logExplicitClick(S)}};
_.J.getVisibilityToggleButton=function(){var S=_.Ur(this.hostElement).querySelector("#visibility-button").firstElementChild;return(S==null?void 0:S.is)==="ytd-toggle-button-renderer"?S:null};
_.J.shouldTriggerHeaderClick=function(S){return!_.RZ(_.t4(S),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.J.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(S){S=_.Y(S,_.CfB);this.targetId&&(S==null?void 0:S.targetId)===this.targetId&&(S=S.navigationButton)&&this.set("data.navigationButton",S)};
_.Rh.Object.defineProperties(Vj.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var S;return!!(((S=this.entity)==null?0:S.isActionButtonHidden)||this.hideActionButton)}}});
Vj.prototype.collapsedChanged=Vj.prototype.collapsedChanged;Vj.prototype.updateHeaderClickListener=Vj.prototype.updateHeaderClickListener;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Vj.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Vj.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Vj.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],Vj.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Vj.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],Vj.prototype,"targetId",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Vj.prototype,"collapsed",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Vj.prototype,"hideActionButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Vj.prototype,"shortsPanel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Vj.prototype,"liveChatEngagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Vj.prototype,"darkerPanels",void 0);_.d([_.nU("#title"),_.P("design:type",HTMLElement)],Vj.prototype,"titleElement",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],Vj.prototype,"headerElement",void 0);_.d([_.Z({computed:"computeAdsInfoButton(data)"}),_.P("design:type",Object)],Vj.prototype,"adsInfoButton",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Vj.prototype,"enableSqueezebackPanels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Vj.prototype,"enableAnchoredPanel",void 0);_.d([_.Z({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(S,c){return _.FT(S.entities,"engagementPanelTitleHeaderEntity",c)}}),
_.P("design:type",Object)],Vj.prototype,"entity",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Vj.prototype,"modernPanels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("targetId"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vj.prototype,"adsSemanticText",null);_.d([_.B0("data","data.navigationEndpoint","data.onClickCommand"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vj.prototype,"updateHeaderClickListener",null);
_.d([_.$n("collapsed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vj.prototype,"collapsedChanged",null);_.d([_.M("entity","hideActionButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Vj.prototype,"isActionButtonHidden",null);_.d([_.e({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],Vj);
_.k(Vj,"ytd-engagement-panel-title-header-renderer",function(){if(KKT!==void 0)return KKT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return KKT=S},{mode:1});var $yV;var Ro=function(){return _.W.apply(this,arguments)||this};
_.C(Ro,_.W);Ro.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ro.prototype,"data",void 0);_.d([_.e({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Ro);
_.k(Ro,"ytd-macro-markers-info-item-renderer",function(){if($yV!==void 0)return $yV;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return $yV=S},{mode:1});var ueg;var Ys2=function(S,c,Q,f,U,a){_.C9.call(this);var X=this;this.JSC$20180_containerElement=S;this.hostElement=c;this.supportedSyncItems=Q;this.syncEntityKey=f;this.options=U;this.renderLazyListItems=a;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;jUN(this);lDE(this);this.JSC$20180_scrollAnimation=new _.ML(function(z){S.scrollTop=z});
_.F5(this,this.JSC$20180_scrollAnimation);this.addOnDisposeCallback(function(){X.exitBrowsingMode(!1);X.activeItem&&X.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.C(Ys2,_.C9);var jUN=function(S){var c=_.Kt(_.fl().resolve(_.kR),function(Q){return Q.entities.markersEngagementPanelSyncEntity||{}},function(Q,f){var U;
Q[S.syncEntityKey]!==f[S.syncEntityKey]&&((U=Q[S.syncEntityKey])==null?void 0:U.activeItemIndex)!==void 0&&S.updatePanelActiveItem(Q[S.syncEntityKey].activeItemIndex)});
S.unsubscribeFromTimedMarkersListSyncEntity=c;S.addOnDisposeCallback(c);CI8(S)},CI8=function(S){var c=_.fl().resolve(_.kR);
c=_.Ywr(c.getState(),S.syncEntityKey);(c==null?void 0:c.activeItemIndex)!==void 0&&(c=S.getItemByIndex(c.activeItemIndex))&&S.setActiveItem(c)},lDE=function(S){var c=new _.S0(S.onScroll,50,S);
_.F5(S,c);var Q=function(){c.fire()};
S.JSC$20180_containerElement.addEventListener("scroll",Q);S.addOnDisposeCallback(function(){S.JSC$20180_containerElement.removeEventListener("scroll",Q)})};
_.J=Ys2.prototype;
_.J.updatePanelActiveItem=function(S){var c=this.getItemByIndex(S);if(c){if(this.setActiveItem(c),this.contentVisible)if(this.browsingMode){var Q;((Q=this.options)==null?void 0:Q.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(S=HHO(this),c.offsetTop<this.JSC$20180_containerElement.clientHeight+this.JSC$20180_containerElement.scrollTop&&S&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));DyU(this)}else this.scrollToItem(c)}else _.i5(new _.Yr("Could not find "+this.supportedSyncItems+
" sync child to set active.",S,this.JSC$20180_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.J.getItemByIndex=function(S){var c;(c=this.renderLazyListItems)==null||c.call(this,S);c=this.JSC$20180_containerElement.querySelectorAll(this.supportedSyncItems);if(c.length>S)return c[S]};
_.J.setActiveItem=function(S){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));S.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=S};
_.J.scrollToItem=function(S){S=this.getScrollPositionForItem(S);this.JSC$20180_containerElement.scrollTop!==S&&this.JSC$20180_scrollAnimation.start(this.JSC$20180_containerElement.scrollTop,S,300)};
_.J.getScrollPositionForItem=function(S){if(this.JSC$20180_containerElement.querySelectorAll(this.supportedSyncItems)[0]===S)return 0;var c,Q=((c=this.options)==null?0:c.percentOffset)?this.JSC$20180_containerElement.clientHeight*this.options.percentOffset:0;S=_.wb(S).y+this.JSC$20180_containerElement.scrollTop-(_.wb(this.JSC$20180_containerElement).y+Q);return Math.max(0,Math.min(S,this.JSC$20180_containerElement.scrollHeight-this.JSC$20180_containerElement.offsetHeight))};
_.J.onScroll=function(){this.activeItemBelowSyncPosition=HHO(this);if(this.activeItem&&!this.JSC$20180_scrollAnimation.isAnimating()&&Math.abs(this.JSC$20180_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var S;switch((S=this.options)==null?void 0:S.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!pj8(this));DyU(this);break;default:this.enterBrowsingMode(!0)}}};
_.J.enterBrowsingMode=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1){if(c.browsingMode)return U.return();c.browsingMode=!0;S&&c.hostElement.classList.add("browsing-mode");c.playerExitBrowsingModeListener=function(){c.exitBrowsingMode(!1)};
return _.F(U,_.Oe(),2)}Q=U.yieldResult;(f=Q)==null||f.addEventListener("SEEK_TO",c.playerExitBrowsingModeListener);_.IN(U)})};
_.J.exitBrowsingMode=function(S){S=S===void 0?!0:S;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),S&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.J.removePlayerSeekListener=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1)return S.playerExitBrowsingModeListener?_.F(f,_.Oe(),3):f.jumpTo(0);c=f.yieldResult;(Q=c)==null||Q.removeEventListener("SEEK_TO",S.playerExitBrowsingModeListener);S.playerExitBrowsingModeListener=void 0;_.IN(f)})};
var DyU=function(S){var c;((c=S.options)==null?void 0:c.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(pj8(S)?S.hostElement.classList.remove("browsing-mode"):S.activeItem&&S.hostElement.classList.add("browsing-mode"))},HHO=function(S){if(!S.activeItem)return!1;
var c,Q=((c=S.options)==null?0:c.percentOffset)?S.JSC$20180_containerElement.clientHeight*S.options.percentOffset:0;return S.activeItem.offsetTop>=S.JSC$20180_containerElement.scrollTop+Q},pj8=function(S){if(!S.activeItem)return!1;
var c=S.activeItem.offsetTop+14<=S.JSC$20180_containerElement.scrollTop+S.JSC$20180_containerElement.clientHeight;return S.activeItem.offsetTop+S.activeItem.clientHeight-14>=S.JSC$20180_containerElement.scrollTop&&c};
Ys2.prototype.panelContentVisibleChanged=function(S){(this.contentVisible=S)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var hZ1=function(S,c){S.syncEntityKey=c;var Q;(Q=S.unsubscribeFromTimedMarkersListSyncEntity)==null||Q.call(S);jUN(S)},qsN=function(S,c){S.options=c};var yj=function(){var S=_.W.apply(this,arguments)||this;S.browsingMode=!1;S.modern=_.u("web_button_rework");S.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return S};
_.C(yj,_.W);_.J=yj.prototype;_.J.activeItemChanged=function(){if(!_.u("synced_panel_scrolling_controller")){var S;((S=this.syncEntity)==null?void 0:S.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.J.created=function(){var S=this;_.u("synced_panel_scrolling_controller")||(this.JSC$20184_scrollAnimation=new _.ML(function(c){S.contents.scrollTop=c}),this.boundExitBrowsingMode=function(){S.exitBrowsingMode(!1)})};
_.J.detached=function(){if(_.u("synced_panel_scrolling_controller")){var S;(S=this.scrollController)==null||S.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.J.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"}}}};
_.J.dataChanged=function(){var S=this;_.u("synced_panel_scrolling_controller")?_.tO(this,function(){if(S.scrollController){var c;(c=S.scrollController)==null||c.exitBrowsingMode(!1);var Q,f,U;(f=S.scrollController)==null||hZ1(f,(U=(Q=S.data)==null?void 0:Q.syncModelEntityKey)!=null?U:"default-macro-markers-list-renderer-entity-key");var a,X,z;(z=S.scrollController)==null||qsN(z,{percentOffset:(a=S.data)==null?void 0:a.selectedItemAlignmentPercentOffset,floatingPillType:(X=S.data)==null?void 0:X.floatingPillType})}else{var x,
I,n,b;S.scrollController=new Ys2(S.contents,S.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(b=(x=S.data)==null?void 0:x.syncModelEntityKey)!=null?b:"default-macro-markers-list-renderer-entity-key",{percentOffset:(I=S.data)==null?void 0:I.selectedItemAlignmentPercentOffset,floatingPillType:(n=S.data)==null?void 0:n.floatingPillType},function(N){S.renderLazyListItems(N)})}S.scrollController.panelContentVisibleChanged(!!S.panelContentVisible)}):this.exitBrowsingMode()};
_.J.computeButtonShape=function(){var S=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){S.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.J.computeSyncEnabled=function(S){return!(S==null||!S.syncButtonLabel)};
_.J.renderLazyListItems=function(S){for(var c=this.contents.children,Q=0,f=0;f<c.length;f++){var U=void 0;(U=c[f].ytLazyListBehavior)==null||U.fillRemainingListItems();var a=void 0,X=void 0;U=_.Y((a=this.data)==null?void 0:(X=a.contents)==null?void 0:X[f],_.nNl);X=a=void 0;if((a=U)==null?0:(X=a.contents)==null?0:X.length)Q+=U.contents.length;if(Q>=S)break}};
_.J.getItemByIndex=function(S){this.renderLazyListItems(S);var c=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(c.length>S)return c[S]};
_.J.setActiveItem=function(S){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);S.active!==void 0&&(S.active=!0);this.currentActiveItem=S};
_.J.handleSetActivePanelItemAction=function(S){if((S=_.Y(S,D28))&&this.panelTargetId===S.panelTargetId){S=S.itemIndex;if(_.u("synced_panel_scrolling_controller")){var c,Q;var f=(Q=(c=this.data)==null?void 0:c.syncModelEntityKey)!=null?Q:"default-macro-markers-list-renderer-entity-key"}else{var U;f=(U=this.data)==null?void 0:U.syncModelEntityKey}if(f){var a;((a=this.syncEntity)==null?void 0:a.activeItemIndex)!==S&&this.ytdReduxBehavior.dispatch(_.Ns("markersEngagementPanelSyncEntity",f,{key:f,activeItemIndex:S}))}else this.updatePanelActiveItem(S)}};
_.J.updatePanelActiveItem=function(S){var c=this.getItemByIndex(S);c?(this.setActiveItem(c),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(c)):_.i5(new _.Yr("Could not find ytd-macro-markers-list-renderer sync child to set active.",S,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.J.scrollToItem=function(S){S=this.getScrollPositionForItem(S);this.contents.scrollTop!==S&&this.JSC$20184_scrollAnimation.start(this.contents.scrollTop,S,300)};
_.J.getScrollPositionForItem=function(S){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===S)return 0;S=_.wb(S).y+this.contents.scrollTop-_.wb(this.contents).y-this.getStickyHeaderHeight(S);return Math.min(S,this.contents.scrollHeight-this.contents.offsetHeight)};
_.J.getStickyHeaderHeight=function(S){if(S.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var c,Q,f;return(f=(c=S.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(Q=c.header)==null?void 0:Q.offsetHeight)!=null?f:0}return 0};
_.J.onScroll=function(){_.u("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$20184_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.J.enterBrowsingMode=function(){var S=this;return _.O(function(c){if(c.nextAddress==1){if(S.browsingMode)return c.return();S.browsingMode=!0;return _.F(c,_.cK().getPlayerPromise(),2)}S.player=c.yieldResult;S.player.addEventListener("SEEK_TO",S.boundExitBrowsingMode);_.IN(c)})};
_.J.exitBrowsingMode=function(S){this.browsingMode&&(this.browsingMode=!1,(S===void 0||S)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.J.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.J.onSyncClick=function(){if(_.u("synced_panel_scrolling_controller")){var S;(S=this.scrollController)==null||S.exitBrowsingMode()}else this.exitBrowsingMode()};
_.J.panelContentVisibleChanged=function(){if(_.u("synced_panel_scrolling_controller")){var S;(S=this.scrollController)==null||S.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
yj.prototype.panelContentVisibleChanged=yj.prototype.panelContentVisibleChanged;yj.prototype.dataChanged=yj.prototype.dataChanged;yj.prototype.activeItemChanged=yj.prototype.activeItemChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],yj.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yj.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],yj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],yj.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yj.prototype,"data",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],yj.prototype,"useCustomColors",void 0);_.d([_.Z({computed:"computeSyncEnabled(data)"}),_.P("design:type",Boolean)],yj.prototype,"syncEnabled",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],yj.prototype,"panelTargetId",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],yj.prototype,"panelContentVisible",void 0);_.d([_.nU("#contents"),_.P("design:type",HTMLElement)],yj.prototype,"contents",void 0);_.d([_.nU("#sync-container"),_.P("design:type",HTMLElement)],yj.prototype,"syncContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yj.prototype,"browsingMode",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],yj.prototype,"modern",void 0);_.d([_.Z({selectorArgs:["data.syncModelEntityKey"],selector:_.Ywr}),_.P("design:type",Object)],yj.prototype,"syncEntity",void 0);_.d([_.B0("syncEntity.activeItemIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yj.prototype,"activeItemChanged",null);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yj.prototype,"dataChanged",null);_.d([_.B0("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yj.prototype,"panelContentVisibleChanged",null);_.d([_.e({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],yj);
_.k(yj,"ytd-macro-markers-list-renderer",function(){if(ueg!==void 0)return ueg;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ueg=S},{mode:1});var TuB;var oo=function(){return _.W.apply(this,arguments)||this};
_.C(oo,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],oo.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],oo.prototype,"data",void 0);_.d([_.e({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],oo);
_.k(oo,"ytd-error-corrections-section-item-renderer",function(){if(TuB!==void 0)return TuB;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return TuB=S},{mode:1});var wj2;var mD=function(){return _.W.apply(this,arguments)||this};
_.C(mD,_.W);mD.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],mD.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],mD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mD.prototype,"data",void 0);_.d([_.e({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],mD);
_.k(mD,"ytd-error-corrections-section-renderer",function(){if(wj2!==void 0)return wj2;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return wj2=S},{mode:1});var sUV;var SO=function(){return _.W.apply(this,arguments)||this};
_.C(SO,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],SO.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],SO.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],SO.prototype,"data",void 0);_.d([_.e({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],SO);
_.k(SO,"ytd-topic-link-renderer",function(){if(sUV!==void 0)return sUV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return sUV=S},{mode:1});var MaZ;var cP=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("kevlar_modern_sd_v2");S.modernLockupV2=_.u("modernize_structured_description_playlist_lockups_v2");S.modernTypography=_.u("web_modern_typography");return S};
_.C(cP,_.W);cP.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cP.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cP.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cP.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],cP.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],cP.prototype,"modernLockupV2",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],cP.prototype,"modernTypography",void 0);_.d([_.e({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],cP);
_.k(cP,"ytd-video-description-course-section-renderer",function(){if(MaZ!==void 0)return MaZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return MaZ=S},{mode:1});var iHU;var QJ=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("kevlar_modern_sd_v2");S.modernTypography=_.u("web_modern_typography");return S};
_.C(QJ,_.W);QJ.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],QJ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],QJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],QJ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],QJ.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],QJ.prototype,"modernTypography",void 0);
_.d([_.e({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],QJ);
_.k(QJ,"ytd-video-description-files-section-renderer",function(){if(iHU!==void 0)return iHU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return iHU=S},{mode:1});var ZHO;var fr=function(){return _.W.apply(this,arguments)||this};
_.C(fr,_.W);fr.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],fr.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],fr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],fr.prototype,"data",void 0);_.d([_.e({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],fr);
_.k(fr,"ytd-video-description-gaming-section-renderer",function(){if(ZHO!==void 0)return ZHO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ZHO=S},{mode:1});var Gd8;var Uo=function(){var S=_.W.apply(this,arguments)||this;S.isExpanded=!1;return S};
_.C(Uo,_.W);Uo.prototype.computeHasDefaultMetadataEndpoint=function(S){var c;S=S==null?void 0:(c=S.defaultMetadata)==null?void 0:c.runs;return!(!S||S.length!==1||!S[0].navigationEndpoint)};
Uo.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.Rh.Object.defineProperties(Uo.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Uo.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Uo.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Uo.prototype,"isExpanded",void 0);_.d([_.Z({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Uo.prototype,"hasDefaultMetadataEndpoint",void 0);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uo.prototype,"isExpandable",null);_.d([_.M("data","isExpandable","isExpanded"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Uo.prototype,"showExpandedMetadata",null);_.d([_.e({is:"ytd-info-row-renderer",disableElementRegistration:!0})],Uo);
_.k(Uo,"ytd-info-row-renderer",function(){if(Gd8!==void 0)return Gd8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Gd8=S},{mode:1});var WKZ;var JC=function(){var S=_.W.apply(this,arguments)||this;S.currentIndex=0;S.supportComponentResize=!0;S.modern=_.u("kevlar_modern_sd_v2");S.JSC$20210_lastScrollContainerWidth=NaN;return S};
_.C(JC,_.W);_.J=JC.prototype;
_.J.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"}}}};
_.J.getItemsPath=function(){return"videoLockups"};
_.J.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.J.onIronResize=function(){this.updateVideoLockupStyles()};
_.J.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.J.updateVideoLockupStyles=function(){var S;this.JSC$20210_scrollContainer!==void 0&&(S=this.videoLockups)!=null&&S.length&&(S=this.JSC$20210_scrollContainer.clientWidth,S!==this.JSC$20210_lastScrollContainerWidth&&(this.JSC$20210_lastScrollContainerWidth=S,_.Or(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(S*.8,415)+"px"}),_.Az(this.hostElement,"iron-resize")))};
_.Rh.Object.defineProperties(JC.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var S=[],c;if((c=this.data)==null||!c.carouselLockups)return S;c=_.A(this.data.carouselLockups);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0;((f=_.Y(Q,QVE))==null?0:f.videoLockup)&&S.push(_.Y(Q,QVE).videoLockup)}return S}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.videoLockups)==null||!S.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var S=[],c;if((c=this.data)==null||!c.carouselLockups)return S;var Q;return(Q=_.Y(this.data.carouselLockups[this.scrollCount],QVE))==null?void 0:Q.infoRows}}});
JC.prototype.dataChanged=JC.prototype.dataChanged;JC.prototype.onIronResize=JC.prototype.onIronResize;JC.prototype.hiddenChanged=JC.prototype.hiddenChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],JC.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],JC.prototype,"componentBehavior",void 0);_.d([_.p(_.QW.YtdHorizontalListBehavior),_.P("design:type",Object)],JC.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],JC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],JC.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],JC.prototype,"inlineStructuredDescription",void 0);_.d([_.Z({value:2}),_.P("design:type",Number)],JC.prototype,"initialCount",void 0);_.d([_.Z(),_.P("design:type",Object)],JC.prototype,"currentIndex",void 0);
_.d([_.Z(),_.P("design:type",Number)],JC.prototype,"scrollCount",void 0);_.d([_.Z(),_.P("design:type",Object)],JC.prototype,"supportComponentResize",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],JC.prototype,"contentHidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],JC.prototype,"modern",void 0);_.d([_.nU("#scroll-container"),_.P("design:type",HTMLDivElement)],JC.prototype,"JSC$20210_scrollContainer",void 0);
_.d([_.B0("contentHidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JC.prototype,"hiddenChanged",null);_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],JC.prototype,"videoLockups",null);_.d([_.M("videoLockups"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],JC.prototype,"hasVideoLockups",null);
_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JC.prototype,"onIronResize",null);_.d([_.M("data","scrollCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],JC.prototype,"infoRows",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JC.prototype,"dataChanged",null);_.d([_.e({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],JC);
_.k(JC,"ytd-video-description-music-section-renderer",function(){if(WKZ!==void 0)return WKZ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return WKZ=S},{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var giT;var aw=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("kevlar_modern_sd_v2");S.modernTypography=_.u("web_modern_typography");return S};
_.C(aw,_.W);aw.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],aw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],aw.prototype,"ytRendererBehavior",void 0);_.d([_.Z({}),_.P("design:type",Object)],aw.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],aw.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],aw.prototype,"modernTypography",void 0);
_.d([_.e({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],aw);
_.k(aw,"ytd-video-description-transcript-section-renderer",function(){if(giT!==void 0)return giT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return giT=S},{mode:1});var eZT;_.f4(_.y_(function(S){var c=_.b9(_.suH,function(){return S.data().firstProviderLinkStatusEntityKey}),Q=_.b9(_.suH,function(){return S.data().secondProviderLinkStatusEntityKey}),f=function(){var U,a;
return((U=c())==null?void 0:U.linked)||((a=Q())==null?void 0:a.linked)};
return _.B("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.B(_.mw,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return S.data().sectionTitle}}),_.B(_.mw,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return f()?S.data().connectedMessage:S.data().notConnectedMessage}}),_.B(_.K,{cond:f,
then:function(){return _.B(_.h8,{data:function(){return S.data().connectedButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.B(_.K,{cond:function(){return!f()},
then:function(){return _.B(_.h8,{data:function(){return S.data().notConnectedButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"Xi"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;return _.B("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.B("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.B(_.mw,{text:function(){return c().sectionTitle}})),_.B("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.B(_.mw,{text:function(){return c().bodyHeader}})),_.B("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.B(_.mw,{text:function(){return c().bodyText}})),_.B(_.K,
{cond:function(){return c().attributionText},
then:function(){return _.B("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.B(_.mw,{text:function(){return c().attributionText}}))}}))},"Yi"),"how-this-was-made-section-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){return _.B("yt-video-description-youchat-section-view-model",{class:_.n4("ytVideoDescriptionYouchatSectionViewModelHost")},_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.B(_.mw,{text:function(){return S.data().sectionTitle}})),_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.B(_.mw,{text:function(){return S.data().subHeaderText}})),_.B("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.B(_.Ze,{data:function(){return _.Y(S.data().primaryButton,
_.Ya)}})))},"Zi"),"yt-video-description-youchat-section-view-model",{props:{data:_.y$}});var AC=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return S};
_.C(AC,_.W);_.J=AC.prototype;
_.J.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}}}}}};
_.J.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.J.dataChanged=function(){var S,c;this.hasDescriptionOnly=!(((S=this.data)==null?void 0:(c=S.items)==null?void 0:c.length)!==1||!_.Y(this.data.items[0],fKG))};
_.J.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.J.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.J.autoFocusDescription=function(){var S;((S=_.fl().resolve(_.QS(_.zy)))==null?0:S.isKeyBoardInUse())&&this.description&&_.RR(this.description)};
_.J.resize=function(){if(_.u("kevlar_disable_sd_resize"))this.JSC$20218_cardList&&_.Az(this.JSC$20218_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.Az(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.Az(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.J.scrollToSection=function(S){if(S=this.getSectionElement(S))_.XF(this.hostElement,"yt-scroll-to-watch-element",[S]),S.focus()};
_.J.getSectionElement=function(S){switch(S){case "infocards-item-section":var c;return(c=this.infocardsSection)!=null?c:null;case "transcript-item-section":var Q;return(Q=this.transcriptSection)!=null?Q:null;case "how-this-was-made-section-item-section":var f;return(f=this.howThisWasMadeSection)!=null?f:null;case "files-item-section":var U;return(U=this.filesSection)!=null?U:null;default:return null}};
_.J.handleSetActiveItemAction=function(S){var c=_.Y(S,D28),Q=c&&(c==null?void 0:c.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20218_cardList;if(c&&Q){S=this.currentActiveChapter;var f=this.currentActiveProblem;c=Q==null?void 0:Q.getItemByIndex(c.itemIndex);var U=Q=!0;c&&(c.active=!0,c.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(Q=S!==c,U=!1,this.currentActiveChapter=c):(c==null?void 0:c.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(Q=!1,U=f!==c,this.currentActiveProblem=c));S&&Q&&(S.active=!1);f&&U&&(f.active=!1)}};
_.Rh.Object.defineProperties(AC.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.u("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
AC.prototype.onYtExpanderMoreTapped=AC.prototype.onYtExpanderMoreTapped;AC.prototype.onHiddenChanged=AC.prototype.onHiddenChanged;AC.prototype.dataChanged=AC.prototype.dataChanged;AC.prototype.panelContentVisibleChanged=AC.prototype.panelContentVisibleChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],AC.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],AC.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.w9),_.P("design:type",Object)],AC.prototype,"ironResizableBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],AC.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],AC.prototype,"panelContentVisible",void 0);_.d([_.Z(),_.P("design:type",Boolean)],AC.prototype,"hasDescriptionOnly",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],AC.prototype,"inlineStructuredDescription",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],AC.prototype,"hidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],AC.prototype,"shortsPanel",void 0);_.d([_.Z(),_.P("design:type",Object)],AC.prototype,"videoSummary",void 0);_.d([_.Z(),_.P("design:type",Object)],AC.prototype,"merchShelf",void 0);
_.d([_.M("videoSummary"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],AC.prototype,"showVideoSummary",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],AC.prototype,"engagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],AC.prototype,"watchWhileSdp",void 0);_.d([_.nU("ytd-expandable-video-description-body-renderer"),_.P("design:type",Object)],AC.prototype,"description",void 0);
_.d([_.nU("ytd-horizontal-card-list-renderer"),_.P("design:type",Object)],AC.prototype,"JSC$20218_cardList",void 0);_.d([_.nU("ytd-horizontal-card-list-renderer[center-items]"),_.P("design:type",Object)],AC.prototype,"problemWalkthroughCardList",void 0);_.d([_.nU("ytd-shelf-renderer"),_.P("design:type",Object)],AC.prototype,"shelfSection",void 0);_.d([_.nU("ytd-video-description-music-section-renderer"),_.P("design:type",Object)],AC.prototype,"musicMetadataSection",void 0);
_.d([_.nU("ytd-video-description-infocards-section-renderer"),_.P("design:type",Object)],AC.prototype,"infocardsSection",void 0);_.d([_.nU("ytd-video-description-transcript-section-renderer"),_.P("design:type",Object)],AC.prototype,"transcriptSection",void 0);_.d([_.nU("how-this-was-made-section-view-model"),_.P("design:type",Object)],AC.prototype,"howThisWasMadeSection",void 0);_.d([_.nU("ytd-video-description-files-section-renderer"),_.P("design:type",Object)],AC.prototype,"filesSection",void 0);
_.d([_.B0("panelContentVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AC.prototype,"panelContentVisibleChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AC.prototype,"dataChanged",null);_.d([_.B0("hidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AC.prototype,"onHiddenChanged",null);
_.d([_.FV("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AC.prototype,"onYtExpanderMoreTapped",null);_.d([_.e({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],AC);
_.k(AC,"ytd-structured-description-content-renderer",function(){if(eZT!==void 0)return eZT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return eZT=S},{mode:2});var kdN;var rVZ;var XX=function(){return _.W.apply(this,arguments)||this};
_.C(XX,_.W);XX.prototype.computeAriaLabel=function(S){var c,Q;return(S==null?void 0:(c=S.accessibility)==null?void 0:(Q=c.accessibilityData)==null?void 0:Q.label)||_.K8("LOADING",void 0,"Loading")};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],XX.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],XX.prototype,"data",void 0);_.d([_.Z({computed:"computeAriaLabel(data)"}),_.P("design:type",String)],XX.prototype,"ariaLabel",void 0);_.d([_.wM({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],XX);
_.k(XX,"yt-content-loading-renderer",function(){if(rVZ===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;kdN===void 0&&(kdN=document.createElement("template"));var f=kdN;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);rVZ=S}S=rVZ;return S},{mode:_.A2("kevlar_poly_si_batch_j043")?1:2});_.f4(_.y_(function(S){var c=_.A(_.ny(!1,void 0,"WbYeXc")),Q=c.next().value,f=c.next().value;c=_.A(_.ny(!1,void 0,"msXkzc"));var U=c.next().value,a=c.next().value;_.wC(function(){var x=_.Y(S.data().collaboratePlaylistCollaborationSetting,LBN);x&&f(x.switchedOnByDefault);var I=_.Y(S.data().allowNewCollaboratorsPlaylistCollaborationSetting,LBN);I&&a(I.switchedOnByDefault);if(!x&&!I||!x&&S.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")f(!0),a(!0)});
var X=function(x){f(x);a(x);var I=S.data().playlistCollaborationEntityKey||"";var n=_.P0().getState();(n=_.FT(n.entities,"playlistCollaborationEntity",I))&&(n==null?void 0:n.isCollaborative)===x||_.P0().dispatch(_.Ns("playlistCollaborationEntity",I,Object.assign({},n,{isCollaborative:x})))},z=function(x){a(x)};
return _.B("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.B("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.B(_.h8,{data:function(){return S.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(x){return _.B(_.Bud,{data:x.data,
onSwitch:X})}})),_.B(_.K,{cond:Q,
then:function(){return _.B("div",null,_.B("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.B(_.h8,{data:function(){return S.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(x){return _.B(_.Bud,{data:x.data,
onSwitch:z,overrideDisabled:!1})}})),_.B(_.K,{cond:U,
then:function(){return _.B("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.B(_.h8,{data:function(){return S.data().copyLinkButton}},{buttonViewModel:_.Ze}))}}),_.B("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.B(_.h8,{data:function(){return S.data().playlistCollaborators}},{contentListItemViewModel:_.cE1})))}}))},"$i"),"playlist-collaboration-view-model",{props:{data:_.y$}});var dyG=_.y_(function(S){var c=S.data;var Q=S.customCommandResolver;return _.B(_.ak,null,_.B("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.B(_.h8,{data:function(){return c().adAvatar}},{adAvatarViewModel:function(f){return _.B(_.mNd,{data:f.data,
customCommandResolver:Q})}})),_.B("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.B(_.K,{cond:function(){return c().headline},
then:function(f){return _.B(_.mw,{text:f,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.B("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.B(_.h8,{data:function(){return c().adBadge}},{adBadgeViewModel:function(f){return _.B(_.Q3,{data:f.data,
hasDot:function(){return c().primaryDetailsLine!==void 0},
customCommandResolver:Q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.B(_.h8,{data:function(){return c().primaryDetailsLine}},{adDetailsLineViewModel:function(f){return _.B(_.f2,{data:f.data,
customCommandResolver:Q,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"aj"),vi1=_.y_(function(S){var c=S.data;
var Q=S.customCommandResolver;S=_.EH("ad-avatar-lockup-view-model");_.V8(S,function(){return c().interaction},Q);
_.cn(S,{visibilityCallback:function(f){var U,a=(U=c().interaction)==null?void 0:U.onFirstVisible;f&&a&&_.kz(a)},
showOption:_.yA});return _.B("ad-avatar-lockup-view-model",{class:function(){var f;return((f=c().interaction)==null?0:f.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:S,"aria-label":function(){var f,U;return(f=c().interaction)==null?void 0:(U=f.accessibility)==null?void 0:U.label}},_.B(_.DJ,null,_.B(_.YC,{when:function(){return c().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.B(dyG,{data:c,
customCommandResolver:Q})}),_.B(_.HY,null,function(){return null})))},"bj");_.f4(_.y_(function(S){var c=S.data;var Q=S.panelContentVisibility;S=_.EH("panel-ad-header-image-lockup-view-model");_.V8(S,function(){return c().interaction},rY1);
_.cn(S,{visibilityCallback:function(U){var a,X=(a=c().interaction)==null?void 0:a.onFirstVisible;U&&X&&_.kz(X)},
showOption:_.yA});_.Go(function(){var U,a;if(a=_.rC("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var X;a=(X=a())==null?void 0:X.onLayoutVisibleCallback}else a=null;(U=a)==null||U()});
var f=function(){return Q()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.B("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:S},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.B(_.K,{cond:_.rYp("(min-width: "+((0,_.q4)()+_.GH)+"px) or (max-width: 600px)"),then:function(){return _.B(_.h8,{data:function(){return c().adImage}},{adImageViewModel:function(U){return _.B(_.IS,{data:U.data,
targetHeight:80,customCommandResolver:rY1})}})}})),_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.B(_.h8,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(U){return _.B(vi1,{data:U.data,
customCommandResolver:rY1})}})),_.B(_.K,{cond:f,
then:function(){return _.B(_.h8,{data:function(){return c().adButton}},{adButtonViewModel:function(U){return _.B(_.mh,{data:U.data,
customCommandResolver:rY1})}})},
else:function(){return _.B(_.h8,{data:function(){return c().menu}},{buttonViewModel:_.Ze})}}),_.B("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.B(_.h8,{data:function(){var U=_.Y(c().toggleButton,_.CS);
return{toggleButtonViewModel:Object.assign({},U,{isTogglingDisabled:!0,isToggled:f()})}}},{toggleButtonViewModel:_.qs})))))},"cj"),"panel-ad-header-image-lockup-view-model",{props:{data:_.y$,
panelContentVisibility:_.y$}});_.f4(_.y_(function(S){var c=function(){return _.Y(S.data().inputComposerViewModel,EfZ)},Q=function(){var H;
return((H=c())==null?void 0:H.youchatPendingResponseEntityKey)||""},f=_.b9(_.juV,Q),U=function(){var H;
return!((H=f())==null||!H.isPendingResponse)},a=_.A(_.ny(!0,void 0,"DR0q1d")),X=a.next().value,z=a.next().value,x=function(){return c().sectionTargetId||"youchat_messages_section"};
a=_.tc("yt-chat-input-view-model");var I=_.EH("textarea"),n=_.b9(Tq8,"chat_input_view_model_state"),b=w6T(),N=function(){var H;return!((H=n())==null||!H.value)};
_.wC(function(){var H;if(!N()&&((H=c())==null?0:H.welcomeFeatureContinuation)){H={continuationCommand:{token:c().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};var q,w=String(Math.floor(((q=_.zI())==null?void 0:q.getCurrentTime())||0)*1E3);q={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),playerOffsetMs:w}};_.WI(H,{form:{formData:q}});b(!0)}var g=x(),r;(r=_.fl().resolve(_.QS(_.CM)))==null||r.addEventListener("yt-navigate-start",function(){_.HK.remove(g);b(!1)},
{once:!0})});
var l=function(){var H,q,w,g,r,E,v,t,V;return _.O(function(AZ){H=I.value.value;I.value.value="";dW2(I.value);q=vB0(x(),H);_.WI(q);w=_.li8(Q());_.kz(((g=c())==null?void 0:g.onSubmitCommand)||{});w(!0);E=String(Math.floor(((r=_.zI())==null?void 0:r.getCurrentTime())||0)*1E3);t={continuationCommand:{token:(v=c())==null?void 0:v.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};V={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:H,playerOffsetMs:E}};_.WI(t,{form:{formData:V},
commandController:{onSuccess:function(){w(!1)},
onServerError:function(){var IH=x();_.WI({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:IH}}]}}});w(!1)}}});
_.IN(AZ)})};
return _.B("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:a},_.B("div",{class:"chatInputViewModelChatInputWrapper"},_.B("form",{class:"chatInputViewModelChatInputForm"},_.B("textarea",{class:"chatInputViewModelChatInput",el:I,"on:keydown":_.$d(function(H){var q=U()||!1;dW2(I.value);q||H.key!=="Enter"||H.shiftKey||(H.preventDefault(),l());return!1}),
"on:keyup":_.$d(function(){z(I.value.value.length===0);return!1}),
placeholder:function(){var H,q;var w=_.Y((q=c())==null?void 0:q.inputFormField,YG0);return w==null?void 0:(H=w.contentProperties)==null?void 0:H.placeholderText},
rows:1}),_.B(_.Ze,{data:function(){return _.Y(S.data().sendButton,_.Ya)},
onClick:function(H){H.preventDefault();l();z(I.value.value.length===0)},
buttonOverrides:function(){return{disabled:X()||U()}}})),_.B(_.mw,{className:"chatInputViewModelChatDisclaimer",
text:function(){var H;return(H=_.Y(S.data().disclaimer,_.bLe))==null?void 0:H.text}})))},"dj"),"yt-chat-input-view-model",{props:{data:_.y$}});var PIg=["engagement-panel-clip-create","engagement-panel-clip-view"],LKN=0,Oo=function(){var S=_.W.apply(this,arguments)||this;var c;S.headerData=(c=S.data)==null?void 0:c.header;S.darkerPanels=_.u("web_watch_darker_panels");S.matchContentTheme=_.u("web_watch_panel_content_match_theme");S.disableAutoFill=!1;S.isFullscreen=!1;S.isTheaterMode=!1;S.modernPanels=_.u("kevlar_watch_modern_panels");S.liveChatReplyPanel=!1;S.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");S.disableBackdropFilter=
_.u("web_disable_backdrop_filter");S.trackEngagementPanelVisibility=_.u("web_watch_track_engagement_panel_visibility");S.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 S};
_.C(Oo,_.W);_.J=Oo.prototype;
_.J.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(S){var c;
return(S==null?void 0:(c=S.webComponentHint)==null?void 0:c.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"}}}};
_.J.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var S;if((S=this.hostElement.parentElement)==null?0:S.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.J.detached=function(){this.updateTheaterDisablement()};
_.J.showPanel=function(){var S=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.Mq.addJob(function(){S.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.J.maybeScrollToItemSection=function(S){var c=this,Q,f=S==null?void 0:(Q=S.sectionListEngagementPanelExtras)==null?void 0:Q.scrollToItemSectionIdentifier;f&&_.Mq.addJob(function(){var U;(U=c.sectionListRendererElement)==null||U.scrollToItemSection(f)},8)};
_.J.hidePanel=function(){var S=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.Mq.addJob(function(){S.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.J.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.J.updatePanel=function(S,c,Q,f){var U=this;if((S=S==null?void 0:S.engagementPanelSectionListRenderer)||f){if(S){f=S.header;var a=S.content,X=S.footer;(S=S.targetId)&&this.set("data.targetId",S);f&&this.set("data.header",f);a&&this.set("data.content",a);X&&this.set("data.footer",X)}else f&&(S=f.content,a=f.secondaryHeaderContent,(f=f.targetId)&&this.set("data.targetId",f),S&&this.set("data.content",S),a&&(this.secondaryHeaderData=a));this.updateChildVisibilityProperties();if(c){var z;_.u("kevlar_update_panel_focus_scroll_killswitch")||
(z={preventScroll:!0});this.focus(z)}_.tO(this,function(){_.Az(U.hostElement,"yt-refit");U.maybeScrollToItemSection(Q)})}};
_.J.computeHeaderData=function(){var S,c=(0,_.Cn.unsafeClone)((S=this.data)==null?void 0:S.header);if(c){S=new _.L(Object.keys(c)[0]);var Q=_.Y(c,S),f=_.Y(this.secondaryHeaderData,S);f&&_.wH(c,S,Object.assign({},f,Q))}return c};
_.J.getReloadContinuation=function(){var S,c,Q,f=_.A(((S=this.data)==null?void 0:(c=S.content)==null?void 0:(Q=c.sectionListRenderer)==null?void 0:Q.continuations)||[]);for(S=f.next();!S.done;S=f.next())if(S=S.value,S.reloadContinuationData)return S.reloadContinuationData.continuation};
_.J.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var S;((S=this.data)==null?0:S.targetId)&&(S=this.contentElement.firstElementChild)&&S.setAttribute("panel-target-id",this.data.targetId)};
_.J.forwardPopupClosedToFlowRootRenderer=function(){var S=_.Ur(this.hostElement).querySelector("ytd-flow-root-renderer");if(S)S.onPopupClosed()};
_.J.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));var S;if(!PIg.includes((S=this.theaterDisablementPanelIdentifier)!=null?S:""))if(S=_.u("web_watch_imax_theater_mode")&&this.isTheaterMode,S=_.u("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||S,_.u("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||
this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"||S){var c;this.visibility=(c=this.data)==null?void 0:c.visibility;var Q;this.trackEngagementPanelVisibility&&((Q=this.data)==null?void 0:Q.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var f,U,a,X;this.contentEmpty=!!(((f=this.data)==null?0:(U=f.content)==null?0:U.structuredDescriptionContentRenderer)&&Object.keys((a=this.data)==null?void 0:(X=a.content)==null?void 0:
X.structuredDescriptionContentRenderer).length===0);(c=_.fl().resolve(_.YF))&&c.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",this.visibility=this.data.visibility};
_.J.isTheaterModeChanged=function(){_.u("web_watch_imax_theater_mode")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.J.isFullscreenChanged=function(){_.u("web_watch_close_eps_on_fullscreen")&&(this.liveChatEngagementPanel||this.hidePanel())};
_.J.focus=function(S){if(this.header)this.header.focus(S);else{var c;(c=_.Ur(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||c.focus(S)}};
_.J.visibilityChanged=function(){if(!_.u("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var S=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",Q=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",f=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",U=f||!this.lastVisibility,a,X,z=(a=this.data)==null?void 0:(X=a.identifier)==null?void 0:X.tag,
x;if(((x=this.data)==null?0:x.onShowCommands)&&S&&U)_.FF(this.hostElement,this.data.onShowCommands,this.hostElement),z&&_.V5().dispatch(_.aB({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:z}}));else{var I;((I=this.data)==null?0:I.onHideCommands)&&c&&Q&&(_.FF(this.hostElement,this.data.onHideCommands,this.hostElement),z&&_.V5().dispatch(_.aB({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:z}})))}S&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*LKN++));_.u("kevlar_watch_focus_on_engagement_panels")&&
S&&f&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.J.notifyVisibilityChanged=function(S){var c;_.Oz(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,S,(c=this.data)==null?void 0:c.targetId])};
_.J.updateTheaterDisablement=function(){if(!_.u("kevlar_watch_theater_disablement_killswitch")){var S=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&PIg.includes(S)&&!_.u("watch_next_grid_ignore_disallowed_panels")){var c=_.WK(_.V5().getState()),Q=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";S!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():Q?(this.originalTheaterState===void 0&&(this.originalTheaterState=c,this.theaterDisablementPanelIdentifier=
S),c&&_.XF(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.J.clearTheaterDisablement=function(){_.XF(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.J.updateChildVisibilityProperties=function(){this.hostElement||_.u("kevlar_panel_property_init_killswitch")||this._enableProperties();var S=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=S);var c,Q=(c=this.headerElement)==null?void 0:c.firstElementChild;if(Q&&!this.adHeaderImageLockupViewModel){c=S==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";Q.collapsed=c;Q=_.Ur(Q).querySelector("#visibility-button");if(!Q)return;(Q=Q.firstElementChild)&&
Q.polymerController.is==="ytd-toggle-button-renderer"&&Q.polymerController.data.isToggled!==c&&Q.polymerController.set("data.isToggled",c)}var f;if(c=(f=this.contentElement)==null?void 0:f.firstElementChild)if(S&&S!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")c.removeAttribute("panel-content-visible");else{c.setAttribute("panel-content-visible","");var U;(U=c.markDirty)==null||U.call(c)}};
_.J.onYtChangeEngagementPanelVisibilityAction=function(S){var c=this,Q,f=(Q=this.data)==null?void 0:Q.targetId,U,a,X;Q=((U=this.data)==null?void 0:(a=U.identifier)==null?void 0:a.tag)||((X=this.data)==null?void 0:X.panelIdentifier);var z=_.Y(S,_.YYd),x;S=f&&(z==null?void 0:z.targetId)===f||Q&&(z==null?void 0:(x=z.panelIdentifier)==null?void 0:x.tag)===Q;this.dialog&&S&&(z==null?void 0:z.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(f==="engagement-panel-comments-section"?_.XF(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.XF(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",Q]));!_.u("kevlar_use_engagement_panel_management_component")&&S&&(f=z.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&!f?_.Mq.addJob(function(){c.visibility=z.visibility},2,this.hideDelayMs):this.visibility=z.visibility,z.visibility&&this.notifyVisibilityChanged(z.visibility))};
_.J.onYtScrollToEngagementPanelCommand=function(S){var c,Q=(c=this.data)==null?void 0:c.targetId,f,U,a;c=((f=this.data)==null?void 0:(U=f.identifier)==null?void 0:U.tag)||((a=this.data)==null?void 0:a.panelIdentifier);S=_.Y(S,_.iWe);var X;(Q&&(S==null?void 0:S.targetId)===Q||c&&(S==null?void 0:(X=S.panelIdentifier)==null?void 0:X.tag)===c)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.XF(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.J.attachVEs=function(S){var c,Q;(S==null?0:(c=S.content)==null?0:(Q=c.productListRenderer)==null?0:Q.trackingParams)&&_.Kv().graftServerVe(S.content.productListRenderer.trackingParams);var f,U;(S==null?0:(f=S.content)==null?0:(U=f.transcriptRenderer)==null?0:U.trackingParams)&&_.Kv().graftServerVe(S.content.transcriptRenderer.trackingParams)};
_.J.onYtUpdateEngagementPanelAction=function(S){var c,Q=(c=this.data)==null?void 0:c.targetId;S=_.Y(S,hgV);Q&&(S==null?void 0:S.targetId)===Q&&(this.updatePanel({engagementPanelSectionListRenderer:{header:S==null?void 0:S.header,content:S==null?void 0:S.content}},!1),this.attachVEs(S))};
_.J.onYtShowEngagementPanelScrimAction=function(S){var c,Q=(c=this.data)==null?void 0:c.targetId;S=_.Y(S,pvG);Q&&(S==null?void 0:S.engagementPanelTargetId)===Q&&(this.scrimmed=!0)};
_.J.onYtHideEngagementPanelScrimAction=function(S){var c,Q=(c=this.data)==null?void 0:c.targetId;S=_.Y(S,HuO);Q&&(S==null?void 0:S.engagementPanelTargetId)===Q&&(this.scrimmed=!1)};
_.J.getIdentifier=function(){var S,c,Q;return((S=this.data)==null?void 0:S.panelIdentifier)||((c=this.data)==null?void 0:(Q=c.identifier)==null?void 0:Q.tag)};
_.J.getSurface=function(){var S,c;return(S=this.data)==null?void 0:(c=S.identifier)==null?void 0:c.surface};
_.Rh.Object.defineProperties(Oo.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var S=this.getIdentifier();return S==="engagement-panel-youchat"||S==="PAyouchat"}}});
Oo.prototype.visibilityChanged=Oo.prototype.visibilityChanged;Oo.prototype.isFullscreenChanged=Oo.prototype.isFullscreenChanged;Oo.prototype.isTheaterModeChanged=Oo.prototype.isTheaterModeChanged;Oo.prototype.dataChanged=Oo.prototype.dataChanged;Oo.prototype.forwardPopupClosedToFlowRootRenderer=Oo.prototype.forwardPopupClosedToFlowRootRenderer;Oo.prototype.onYtRendererstamperFinished=Oo.prototype.onYtRendererstamperFinished;
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Oo.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Oo.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Oo.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],Oo.prototype,"ytEventForwardingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Oo.prototype,"data",void 0);
_.d([_.Z({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.P("design:type",Object)],Oo.prototype,"headerData",void 0);_.d([_.Z(),_.P("design:type",Object)],Oo.prototype,"secondaryHeaderData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"visibility",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oo.prototype,"contentEmpty",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oo.prototype,"scrimmed",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oo.prototype,"dialog",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oo.prototype,"dropdown",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"darkerPanels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"matchContentTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],Oo.prototype,"disableAutoFill",void 0);
_.d([_.Z({reflectToAttribute:!0,value:_.u("optimal_reading_width_comments_ep")}),_.P("design:type",Boolean)],Oo.prototype,"optimalReadingWidthComments",void 0);_.d([_.Z(),_.P("design:type",Number)],Oo.prototype,"hideDelayMs",void 0);_.d([_.Z({selector:_.gJ,reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"isFullscreen",void 0);_.d([_.Z({selector:_.WK,reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"isTheaterMode",void 0);
_.d([_.Z(),_.P("design:type",Number)],Oo.prototype,"showDelayMs",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.targetId"),_.P("design:type",Object),_.P("design:paramtypes",[])],Oo.prototype,"targetId",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Oo.prototype,"webSize",null);_.d([_.Z(),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Oo.prototype,"hideFooterBorder",null);
_.d([_.Z(),_.P("design:type",Object)],Oo.prototype,"isWatch",void 0);_.d([_.Z(),_.P("design:type",Object)],Oo.prototype,"originalTheaterState",void 0);_.d([_.Z(),_.P("design:type",Object)],Oo.prototype,"theaterDisablementPanelIdentifier",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"modernPanels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oo.prototype,"isWatchWhilePanel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oo.prototype,"shortsPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Oo.prototype,"liveChatEngagementPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"liveChatReplyPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"enableAnchoredPanel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Oo.prototype,"disableBackdropFilter",void 0);_.d([_.Z(),_.P("design:type",Object)],Oo.prototype,"trackEngagementPanelVisibility",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],Oo.prototype,"headerElement",void 0);_.d([_.nU("#header > *"),_.P("design:type",HTMLElement)],Oo.prototype,"header",void 0);_.d([_.nU("ytd-section-list-renderer"),_.P("design:type",Object)],Oo.prototype,"sectionListRendererElement",void 0);
_.d([_.nU("panel-ad-header-image-lockup-view-model"),_.P("design:type",HTMLElement)],Oo.prototype,"adHeaderImageLockupViewModel",void 0);_.d([_.nU("#content"),_.P("design:type",HTMLElement)],Oo.prototype,"contentElement",void 0);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oo.prototype,"onYtRendererstamperFinished",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oo.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.d([_.$n("data","isFullscreen","isTheaterMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oo.prototype,"dataChanged",null);_.d([_.B0("isTheaterMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oo.prototype,"isTheaterModeChanged",null);
_.d([_.B0("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oo.prototype,"isFullscreenChanged",null);_.d([_.B0("visibility"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Oo.prototype,"visibilityChanged",null);_.d([_.e({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],Oo);
_.k(Oo,"ytd-engagement-panel-section-list-renderer",function(){if(niT!==void 0)return niT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return niT=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var Ei8;var zi=function(){var S=_.W.apply(this,arguments)||this;S.lastRenderedPanelIds=new Set;S.visiblePanels=[];S.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return S};
_.C(zi,_.W);_.J=zi.prototype;_.J.dataChanged=function(){if(this.data){for(var S=[],c=_.A(this.data),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0,U=void 0,a=(f=Q)==null?void 0:(U=f.engagementPanelSectionListRenderer)==null?void 0:U.visibility;U=f=void 0;((f=Q)==null?0:(U=f.engagementPanelSectionListRenderer)==null?0:U.targetId)&&a!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&S.push(Q)}this.visiblePanels=S}else this.visiblePanels=[]};
_.J.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}}};
_.J.withoutVisiblePanelById=function(S){return this.visiblePanels.filter(function(c){var Q;return((Q=c.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)!==S})};
_.J.onYtChangeEngagementPanelVisibilityAction=function(S){var c=this,Q=_.Y(S,_.YYd);if(this.data&&(Q==null?0:Q.targetId)&&(Q==null?0:Q.visibility)){var f,U=(f=this.data.find(function(X){var z;return((z=X.engagementPanelSectionListRenderer)==null?void 0:z.targetId)===Q.targetId}))==null?void 0:f.engagementPanelSectionListRenderer;
if(U){var a=this.withoutVisiblePanelById(Q.targetId);Q.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(S=this.data.find(function(X){var z;return((z=X.engagementPanelSectionListRenderer)==null?void 0:z.targetId)===Q.targetId}))&&(a=[S].concat(_.Hs(a)));
this.hideDelayMs&&Q.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&a.length===0?_.Mq.addJob(function(){U.visibility=Q.visibility;c.visiblePanels=a},10,this.hideDelayMs):(U.visibility=Q.visibility,this.visiblePanels=a);
_.Oz(this.hostElement,"yt-engagement-panels-visible-changed",[a])}}};
_.J.onRendererstamperFinished=function(){var S=new Set(this.visiblePanels.map(function(c){var Q;return(Q=c.engagementPanelSectionListRenderer)==null?void 0:Q.targetId}));
this.handlePanelVisibilityChange(S,this.lastRenderedPanelIds);this.lastRenderedPanelIds=S};
_.J.handlePanelVisibilityChange=function(S,c){S=S===void 0?new Set:S;c=c===void 0?new Set:c;if(this.data)for(var Q=_.A(this.data),f=Q.next();!f.done;f=Q.next()){f=f.value;var U=void 0,a=void 0,X=(U=f)==null?void 0:(a=U.engagementPanelSectionListRenderer)==null?void 0:a.targetId;if(X&&(U=c.has(X),a=S.has(X),X=void 0,!U&&a?(a=U=void 0,X=(U=f)==null?void 0:(a=U.engagementPanelSectionListRenderer)==null?void 0:a.onShowCommands):U&&!a&&(a=U=void 0,X=(U=f)==null?void 0:(a=U.engagementPanelSectionListRenderer)==
null?void 0:a.onHideCommands),X))for(f=_.A(X),X=f.next();!X.done;X=f.next())this.ytComponentBehavior.resolveCommand(X.value)}};
zi.prototype.onRendererstamperFinished=zi.prototype.onRendererstamperFinished;zi.prototype.dataChanged=zi.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],zi.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],zi.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zi.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],zi.prototype,"lastRenderedPanelIds",void 0);_.d([_.Z(),_.P("design:type",Number)],zi.prototype,"hideDelayMs",void 0);_.d([_.Z(),_.P("design:type",Array)],zi.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Array)],zi.prototype,"visiblePanels",void 0);_.d([_.Z(),_.P("design:type",Boolean)],zi.prototype,"isWatchWhilePanel",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zi.prototype,"dataChanged",null);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zi.prototype,"onRendererstamperFinished",null);_.d([_.e({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],zi);
_.k(zi,"ytd-watch-engagement-panels",function(){if(Ei8!==void 0)return Ei8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Ei8=S},{mode:1});var tag;var xj=function(){return _.W.apply(this,arguments)||this};
_.C(xj,_.W);xj.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.kD(_.Ur(this.hostElement).querySelector("#text"),_.wcp(_.ize,this.data.companionLegalText))};
xj.prototype.computeAutoScrollEnabled=function(S,c){return S&&!c};
xj.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
xj.prototype.onToggleTap=function(){this.expanded=!this.expanded};
xj.prototype.expandedChanged=xj.prototype.expandedChanged;xj.prototype.dataChanged=xj.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xj.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.kuE),_.P("design:type",Object)],xj.prototype,"ytdAutoScrollBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],xj.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],xj.prototype,"expanded",void 0);
_.d([_.Z({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.P("design:type",Boolean)],xj.prototype,"autoScrollEnabled",void 0);_.d([_.Z(),_.P("design:type",String)],xj.prototype,"expanderIcon",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xj.prototype,"dataChanged",null);
_.d([_.B0("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xj.prototype,"expandedChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],xj);
_.k(xj,"ytd-companion-legal-text-renderer",function(){if(tag!==void 0)return tag;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tag=S},{mode:1});var VaE;var FX=function(){var S=_.W.apply(this,arguments)||this;S.buttonUpdate=_.u("web_modern_buttons");S.kevlarWatchGrid=_.u("kevlar_watch_grid");S.centerAlignDescription=_.u("action_companion_center_align_description");S.truncateDomain=_.u("action_companion_truncate_domain");return S};
_.C(FX,_.W);_.J=FX.prototype;_.J.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.J.getOnLayoutVisibleCallback=function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
_.J.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",FX.JSC$20265_DEFAULT_AD_BADGE_RENDERER);var S=this.getOnLayoutVisibleCallback();S&&S()}};
_.J.getButtonRenderer=function(S){return S.actionButton&&_.Y(S.actionButton,_.GF)?(delete _.Y(S.actionButton,_.GF).navigationEndpoint,_.Y(S.actionButton,_.GF)):{}};
_.J.onClick=function(S){var c=this;if((!_.u("web_modern_buttons")||!_.RZ(_.t4(S),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){S=_.S9();var Q=this.getLayoutId();S&&Q&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?S.getPlayerPromise().then(function(f){(new _.HM(f)).executeCommand(c.data.navigationEndpoint,Q)}):_.u("kevlar_companion_resolve_command_killswitch")?_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.XF(this.hostElement,"yt-companion-ad-clicked",["action-companion",Q])}};
_.Rh.Object.defineProperties(FX.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?0:(c=S.detailsLine)==null?0:(Q=c.adRating)==null?0:Q.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 S,c,Q,f;return((S=this.data)==null?0:(c=S.detailsLine)==null?0:(Q=c.adRating)==null?0:(f=Q.ratingIcon)==null?0:f.iconType)?_.xz(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return((S=this.data)==null?0:(c=S.detailsLine)==null?0:(Q=c.texts)==null?0:(f=Q[0])==null?0:f.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 S,c;return((S=this.data)==null?0:(c=S.description)==null?0:c.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var S=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return S?S.indexOf("/default_banner")!==-1:!0}}});
FX.prototype.onClick=FX.prototype.onClick;FX.prototype.dataChanged=FX.prototype.dataChanged;FX.JSC$20265_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.K8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],FX.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],FX.prototype,"rendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],FX.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],FX.prototype,"buttonUpdate",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],FX.prototype,"kevlarWatchGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],FX.prototype,"centerAlignDescription",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],FX.prototype,"truncateDomain",void 0);
_.d([_.Z({computed:"computeButtonOverride(buttonUpdate)"}),_.P("design:type",Object)],FX.prototype,"buttonOverride",void 0);_.d([_.M("data.detailsLine.adRating.ratingText"),_.P("design:type",Object),_.P("design:paramtypes",[])],FX.prototype,"getRating",null);_.d([_.M("getRating"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FX.prototype,"computeRatingHidden",null);
_.d([_.M("data.detailsLine.adRating.ratingIcon.iconType"),_.P("design:type",Object),_.P("design:paramtypes",[])],FX.prototype,"iconType",null);_.d([_.M("data.detailsLine.texts.0.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],FX.prototype,"getDetailsLine",null);_.d([_.M("getDetailsLine"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FX.prototype,"computeDetailsLineHidden",null);
_.d([_.M("data.description.text"),_.P("design:type",Object),_.P("design:paramtypes",[])],FX.prototype,"getDescriptionText",null);_.d([_.M("getDescriptionText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FX.prototype,"computeDescriptionTextHidden",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],FX.prototype,"interactionLoggingClientData",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],FX.prototype,"hideBanner",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],FX.prototype,"dataChanged",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],FX.prototype,"onClick",null);_.d([_.e({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],FX);
_.k(FX,"ytd-action-companion-ad-renderer",function(){if(VaE!==void 0)return VaE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return VaE=S},{mode:_.A2("kevlar_poly_si_batch_j067")?1:2});var RZE;var yVT;var BP=function(){var S=_.W.apply(this,arguments)||this;S.buttonUpdate=_.u("web_modern_buttons");S.hideLegacyBanner=_.u("enable_dsa_one_click_ata_translators_infeed_elements");S.adInfoButtonStyle="mono";S.adInfoButtonType="text";S.noDotAdBadge=!0;return S};
_.C(BP,_.W);_.J=BP.prototype;_.J.getOnLayoutVisibleCallback=function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
_.J.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 S=this.data.image.thumbnail.thumbnails[0];this.imageSrc=S.url?_.jS(S.url):void 0;this.imageWidth=S.width||0;this.imageHeight=S.height||0}this.data.clickthroughEndpoint&&_.Y(this.data.clickthroughEndpoint,_.rQ)&&(S=_.Y(this.data.clickthroughEndpoint,_.rQ).url,_.u("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
S||"":S?(S=_.jS(S),this.clickThroughUrl=_.nc(S)):this.clickThroughUrl=void 0);(S=this.getOnLayoutVisibleCallback())&&S()}};
_.J.onClick=function(S){_.RZ(_.t4(S),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(S)};
_.J.handleClick=function(){var S=this;this.data&&this.data.clickthroughEndpoint&&(_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(c){S.macroReplacementBehavior.sendServiceRequestAction([c])}),_.XF(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.J.onLoad=function(){_.Oz(this.hostElement,"yt-refit-popups-action")};
_.Rh.Object.defineProperties(BP.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.interactionLoggingClientData:null}}});
BP.prototype.onLoad=BP.prototype.onLoad;BP.prototype.onClick=BP.prototype.onClick;BP.prototype.dataChanged=BP.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BP.prototype,"rendererBehavior",void 0);_.d([_.p(l71.YtMacroReplacementBehavior),_.P("design:type",Object)],BP.prototype,"macroReplacementBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BP.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BP.prototype,"buttonUpdate",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BP.prototype,"hideLegacyBanner",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BP.prototype,"adInfoButtonStyle",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BP.prototype,"adInfoButtonType",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],BP.prototype,"macros",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],BP.prototype,"interactionLoggingClientData",null);_.d([_.Z(),_.P("design:type",String)],BP.prototype,"clickThroughUrl",void 0);_.d([_.Z(),_.P("design:type",_.FK)],BP.prototype,"imageSrc",void 0);_.d([_.Z(),_.P("design:type",Number)],BP.prototype,"imageWidth",void 0);_.d([_.Z(),_.P("design:type",Number)],BP.prototype,"imageHeight",void 0);_.d([_.Z(),_.P("design:type",Object)],BP.prototype,"noDotAdBadge",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BP.prototype,"dataChanged",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],BP.prototype,"onClick",null);_.d([_.FV("load"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],BP.prototype,"onLoad",null);_.d([_.e({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],BP);
_.k(BP,"ytd-image-companion-renderer",function(){if(yVT!==void 0)return yVT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return yVT=S},{mode:_.A2("kevlar_poly_si_batch_j067")?1:2});var oiE;var Iw=function(){return _.W.apply(this,arguments)||this};
_.C(Iw,_.W);_.J=Iw.prototype;_.J.dataChanged=function(){this.set("data.adBadge",Iw.JSC$20274_DEFAULT_AD_BADGE_RENDERER);if(this.data){var S=this.getOnLayoutVisibleCallback();S&&S()}};
_.J.getOnLayoutVisibleCallback=function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.onLayoutVisibleCallback:null};
_.J.getLayoutId=function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.layoutId:null};
_.J.onCompanionClicked=function(S){this.data&&(S.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.XF(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.J.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var S=_.S9(),c=this.getLayoutId(),Q=this.data.clickToAdvSiteEndpoint;S&&c&&_.u("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?S.getPlayerPromise().then(function(f){(new _.HM(f)).executeCommand(Q,c)}):_.Az(this.hostElement,"yt-navigate",{endpoint:Q})}};
_.J.sendTrackingPings=function(S){if(S&&S.length!==0&&S[0].loggingUrls&&(S=S[0].loggingUrls.map(this.getBaseUrl)))for(var c=0;c<S.length;c++)_.vt(S[c])};
_.J.getBaseUrl=function(S){return S.baseUrl||""};
_.Rh.Object.defineProperties(Iw.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var S=_.rC("yt.www.ads.eventcache.getLastCompanionData");return S?(S=S())&&S.interactionLoggingClientData:null}}});
Iw.prototype.onCompanionClicked=Iw.prototype.onCompanionClicked;Iw.prototype.dataChanged=Iw.prototype.dataChanged;Iw.JSC$20274_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.K8("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Iw.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Iw.prototype,"data",void 0);_.d([_.nU("#title"),_.P("design:type",HTMLElement)],Iw.prototype,"shopTitle",void 0);
_.d([_.$n("data.impressionEndpoints"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Iw.prototype,"dataChanged",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Iw.prototype,"interactionLoggingClientData",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Iw.prototype,"onCompanionClicked",null);
_.d([_.e({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Iw);
_.k(Iw,"ytd-shopping-companion-renderer",function(){if(oiE!==void 0)return oiE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return oiE=S},{mode:1});_.f4(_.y_(function(S){var c=S.data;var Q=_.EH("banner-image-layout-view-model");_.V8(Q,function(){return c().interaction},Php);
_.cn(Q,{visibilityCallback:function(f){var U,a=(U=c().interaction)==null?void 0:U.onFirstVisible;f&&a&&_.kz(a)},
showOption:_.yA});_.Go(function(){var f,U;U=(U=_.rC("yt.www.ads.eventcache.getLastCompanionData"))?(U=U())&&U.onLayoutVisibleCallback:null;(f=U)==null||f()});
return _.B("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":_.$d(function(){_.Oz(Q.value,"yt-refit-popups-action")}),
el:Q,"aria-label":function(){var f,U;return(f=c().interaction)==null?void 0:(U=f.accessibility)==null?void 0:U.label}},_.B("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.B(_.h8,{data:function(){return c().adImage}},{adImageViewModel:function(f){return _.B(_.IS,{data:f.data,
targetHeight:80,customCommandResolver:Php})}})),_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.B(_.h8,{data:function(){return c().adBadge}},{adBadgeViewModel:function(f){return _.B(_.Q3,{data:f.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.B("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.B(_.h8,{data:function(){return c().menu}},{buttonViewModel:_.Ze}))))},"ej"),"banner-image-layout-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;S=_.EH("top-banner-image-text-icon-buttoned-layout-view-model");_.V8(S,function(){return c().interaction},LH1);
_.cn(S,{visibilityCallback:function(Q){var f,U=(f=c().interaction)==null?void 0:f.onFirstVisible;Q&&U&&_.kz(U)},
showOption:_.yA});_.Go(function(){var Q,f;f=(f=_.rC("yt.www.ads.eventcache.getLastCompanionData"))?(f=f())&&f.onLayoutVisibleCallback:null;(Q=f)==null||Q()});
return _.B("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:S},_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.B(_.h8,{data:function(){return c().adImage}},{adImageViewModel:function(Q){return _.B(_.IS,{data:Q.data,
targetHeight:80,customCommandResolver:LH1})}})),_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.B(_.h8,{data:function(){return c().adAvatarLockup}},{adAvatarLockupViewModel:function(Q){return _.B(vi1,{data:Q.data,
customCommandResolver:LH1})}})),_.B(_.h8,{data:function(){return c().adButton}},{adButtonViewModel:function(Q){return _.B(_.mh,{data:Q.data,
customCommandResolver:LH1})}}),_.B("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.B(_.h8,{data:function(){return c().menu}},{buttonViewModel:_.Ze}))))},"fj"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.y$}});var my2={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"},nr=function(){var S=_.W.apply(this,arguments)||this;S.updateCompanionDataJobId=0;S.contentVideoId=null;S.player=null;S.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return S};
_.C(nr,_.W);_.J=nr.prototype;_.J.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:my2}}};
_.J.attached=function(){var S=this,c=_.S9();c&&c.getPlayerPromise().then(function(Q){S.getCachedDataAndListen(Q)})};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.J.updateRendererStamper=function(){var S={};if(this.data)for(var c in my2)if(this.data[c]){S[c]=this.data[c];break}if(this.oneofRenderer!=void 0||Object.keys(S).length)this.oneofRenderer=S};
_.J.getCachedDataAndListen=function(S){var c=this.retrieveCachedCompanionData();c&&Object.keys(c).length&&this.receiveCompanionData(c);this.ytPlayerListenerBehavior.listenToPlayerEvent(S,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=S};
_.J.retrieveCachedCompanionData=function(){return _.QY.yt&&_.QY.yt.www&&_.QY.yt.www.ads&&_.QY.yt.www.ads.eventcache&&_.QY.yt.www.ads.eventcache.getLastCompanionData?_.QY.yt.www.ads.eventcache.getLastCompanionData():null};
_.J.receiveCompanionData=function(S){S&&Object.keys(S).length?(this.contentVideoId=S.contentVideoId,this.setCompanionData(S)):this.setCompanionData(S)};
_.J.setCompanionData=function(S){this.cancelPendingCompanionAdJobs();if(S){this.updateCompanionDataJobId=0;for(var c in my2)my2.hasOwnProperty(c)&&(this.data[c]=void 0);S.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",S.shoppingCompanionCarouselRenderer):S.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",S.imageCompanionAdRenderer):S.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",S.actionCompanionAdRenderer),_.Oz(this.hostElement,
"yt-hide-unlimited-offer-module"),_.Oz(this.hostElement,"yt-hide-tvfilm-offer-module")):S.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",S.bannerImageLayoutViewModel):S.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",S.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.J.dataChanged=function(){var S=this,c=_.S9();c?c.getPlayerPromise().then(function(Q){S.contentVideoId&&Q.getVideoUrl().includes("v="+S.contentVideoId)||(S.cancelPendingCompanionAdJobs(),S.updateRendererStamper())}):_.dC(Error("km"))};
_.J.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.Mq.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.J.handleCompanionAdClicked=function(S,c){this.player.onAdUxClicked(S,c);this.player.pauseVideo()};
nr.prototype.dataChanged=nr.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],nr.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],nr.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nr.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nr.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],nr.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nr.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],nr.prototype,"oneofRenderer",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nr.prototype,"dataChanged",null);_.d([_.e({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],nr);
_.k(nr,"ytd-companion-slot-renderer",function(){if(RZE!==void 0)return RZE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return RZE=S},{mode:_.A2("kevlar_poly_si_batch_j067")?
1:2});var SUg;var b6=function(){return _.W.apply(this,arguments)||this};
_.C(b6,_.W);b6.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
b6.prototype.dataChanged=b6.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],b6.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],b6.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],b6.prototype,"companionSlotData",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],b6.prototype,"dataChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],b6);
_.k(b6,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(SUg!==void 0)return SUg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return SUg=S},{mode:1});var c92;var NT=function(){var S=_.W.apply(this,arguments)||this;S.skinnyMode=!1;S.COMPACT_EVENT_COUNT=4;S.onShelfToggleButtonTap=function(){S.logTap(S.data);S.showingMore=!S.showingMore};
S.onShelfToggleButtonFocus=function(){S.showingMore||(S.logTap(S.data),S.showingMore=!0,_.tO(S,function(){var c=S.COMPACT_EVENT_COUNT-1,Q;(Q=_.Ur(S.hostElement).querySelector("#event-"+c))==null||Q.focus()}))};
return S};
_.C(NT,_.W);_.J=NT.prototype;_.J.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.J.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.J.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.xn(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.xn(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.xn(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.xn(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.xn(this.infoTooltip,this.infoTooltip.hide))};
_.J.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.xn(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.xn(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.xn(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.xn(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.xn(this.infoTooltip,this.infoTooltip.hide))};
_.J.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)};
_.J.onShowingMoreChanged=function(){var S;this.showingMoreChanged((S=this.showingMore)!=null?S:!1)};
_.J.showingMoreChanged=function(S){var c=this.get("data.events")||[];this.set("restEvents",c.slice(1,S?c.length:this.COMPACT_EVENT_COUNT).map(function(Q){return Q.ticketEventRenderer}));
c.slice(0,S?c.length:this.COMPACT_EVENT_COUNT).forEach(function(Q){var f=_.wN();Q=Q.ticketEventRenderer.trackingParams;_.T$()&&f&&Q&&(Q=_.Yz(Q),f&&_.P2(f,Q))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.J.computeAriaLabel=function(S){return S.subtitle1+", "+S.subtitle2};
_.J.logTap=function(S){_.T$()&&this.ytRendererBehavior.logExplicitClick(S)};
_.J.isKeyboardAction=function(S){return this.get("detail.x",S)===0&&this.get("detail.y",S)===0};
_.J.onFirstEventTap=function(S){S.target&&this.handleTap(S.target,this.firstEvent,this.isKeyboardAction(S))};
_.J.onTicketLinkTap=function(S){S.target&&this.handleTap(S.target,S.model.item,this.isKeyboardAction(S))};
_.J.handleTap=function(S,c,Q){if(c.buttonCommand)if(c.hasMultipleOffers)Object.assign(_.Y(c.buttonCommand,_.pk),{properties:{source:Q?"keyboard":"tap"}}),this.logTap(c),this.popupPositionTarget=S,_.FF(this.hostElement,[c.buttonCommand],this.hostElement);else{var f;if((f=_.Y(c.buttonCommand,_.rQ))==null?0:f.url)this.logTap(c),_.sy(window,_.Y(c.buttonCommand,_.rQ).url)}};
NT.prototype.onShowingMoreChanged=NT.prototype.onShowingMoreChanged;NT.prototype.dataChanged=NT.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],NT.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],NT.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],NT.prototype,"firstEvent",void 0);_.d([_.Z(),_.P("design:type",Object)],NT.prototype,"restEvents",void 0);_.d([_.Z(),_.P("design:type",String)],NT.prototype,"imageUrl",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],NT.prototype,"showingMore",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],NT.prototype,"canShowMore",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],NT.prototype,"skinnyMode",void 0);_.d([_.Z(),_.P("design:type",HTMLElement)],NT.prototype,"popupPositionTarget",void 0);_.d([_.nU("#banner-info-tooltip"),_.P("design:type",Object)],NT.prototype,"infoTooltip",void 0);
_.d([_.nU("#info-container"),_.P("design:type",HTMLElement)],NT.prototype,"infoContainer",void 0);_.d([_.nU("#shelf-toggler"),_.P("design:type",HTMLElement)],NT.prototype,"shelfToggleButton",void 0);_.d([_.nU("#separator"),_.P("design:type",HTMLDivElement)],NT.prototype,"separator",void 0);_.d([_.Z(),_.P("design:type",String)],NT.prototype,"shelfTogglerLabelText",void 0);_.d([_.Z(),_.P("design:type",String)],NT.prototype,"shelfTogglerIcon",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NT.prototype,"dataChanged",null);_.d([_.$n("showingMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],NT.prototype,"onShowingMoreChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],NT);
_.k(NT,"ytd-ticket-shelf-renderer",function(){if(c92!==void 0)return c92;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return c92=S},{mode:1});var Q_B;var flp;var Kr=function(){return _.W.apply(this,arguments)||this};
_.C(Kr,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Kr.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Kr.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Kr);
_.k(Kr,"ytd-comments-entry-point-message-renderer",function(){if(flp!==void 0)return flp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return flp=S},{mode:1});var Ut2;var u6=function(){return _.W.apply(this,arguments)||this};
_.C(u6,_.W);_.Rh.Object.defineProperties(u6.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.teaserAvatar)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],u6.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],u6.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],u6.prototype,"hasAvatar",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],u6);
_.k(u6,"ytd-comments-entry-point-teaser-renderer",function(){if(Ut2!==void 0)return Ut2;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Ut2=S},{mode:1});var J9O;var jO=function(){return _.W.apply(this,arguments)||this};
_.C(jO,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jO.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jO.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],jO);
_.k(jO,"ytd-comments-simplebox-renderer",function(){if(J9O!==void 0)return J9O;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return J9O=S},{mode:1});var l6=function(){var S=_.W.apply(this,arguments)||this;S.fullHeight=!_.u("comment_teaser_full_height_kill_switch")&&_.u("kevlar_watch_grid");return S};
_.C(l6,_.W);l6.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"}}}};
l6.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
l6.prototype.onTap=function(){var S=this.tapCommand;S&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(S))};
l6.prototype.onKeyUp=function(S){if(S.keyCode===13)this.onTap()};
_.Rh.Object.defineProperties(l6.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.onTap)return this.data.onTap;var c,Q;if(((c=this.data)==null?0:c.teaserContent)||((Q=this.data)==null?0:Q.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)!=null&&S.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
l6.prototype.onKeyUp=l6.prototype.onKeyUp;l6.prototype.onTap=l6.prototype.onTap;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],l6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],l6.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],l6.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],l6.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],l6.prototype,"fullHeight",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l6.prototype,"tapCommand",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l6.prototype,"simpleboxPlaceholder",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l6.prototype,"hasSimpleboxPlaceholder",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l6.prototype,"simpleboxAvatar",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l6.prototype,"teaserContent",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l6.prototype,"hasTeaserContent",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l6.prototype,"teaserAvatar",null);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l6.prototype,"hasTeaserAvatar",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l6.prototype,"messageText",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],l6.prototype,"contentRenderer",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l6.prototype,"hasContents",null);
_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],l6.prototype,"hasContentRenderer",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],l6.prototype,"onTap",null);_.d([_.FV("keypress"),_.P("design:type",Function),_.P("design:paramtypes",[_.$5]),_.P("design:returntype")],l6.prototype,"onKeyUp",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],l6);
_.k(l6,"ytd-comments-entry-point-header-renderer",function(){if(Q_B!==void 0)return Q_B;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Q_B=S},{mode:1});var alE;_.u("web_enable_sink_animated_rolling_character_and_number")?_.f4(_.Kid,"yt-animated-rolling-number",{props:{numberText:_.y$,numberValue:_.y$,heightPx:_.y$,fontSizeMultiplier:_.y$,shouldAnimate:_.y$,forceRollUp:_.y$}}):_.xd(_.Nzp,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var A9V=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),XT0={numberText:"",heightPx:2*A9V,shouldAnimate:!1},Yj=function(){var S=_.W.apply(this,arguments)||this;S.usingAnimatedComponents=!0;S.wasDetailed=!1;S.JSC$20311_browserSupportsAnimation=_.u("web_supports_animations_api");S.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};S.detailed=!1;S.shouldAnimate=!1;S.viewCountProps=XT0;S.dateTextProps=
XT0;S.metadataBadgesInDescription=_.u("web_metadata_badges_in_description");return S};
_.C(Yj,_.W);_.J=Yj.prototype;_.J.resetAnimationState=function(){this.shouldAnimate=!1};
_.J.updateDynamicMetadata=function(){if(this.JSC$20311_browserSupportsAnimation){if(!this.detailed){var S,c,Q,f;var U=(S=this.videoPrimaryInfoRenderer)==null?void 0:(c=S.viewCount)==null?void 0:(Q=c.videoViewCountRenderer)==null?void 0:(f=Q.extraShortViewCount)==null?void 0:f.simpleText;var a,X,z,x;var I=(a=this.videoPrimaryInfoRenderer)==null?void 0:(X=a.viewCount)==null?void 0:(z=X.videoViewCountRenderer)==null?void 0:(x=z.shortViewCount)==null?void 0:x.simpleText}if(!I){var n,b,N,l;U=(n=this.videoPrimaryInfoRenderer)==
null?void 0:(b=n.viewCount)==null?void 0:(N=b.videoViewCountRenderer)==null?void 0:(l=N.unlabeledViewCountValue)==null?void 0:l.simpleText;var H,q,w,g;I=(H=this.videoPrimaryInfoRenderer)==null?void 0:(q=H.viewCount)==null?void 0:(w=q.videoViewCountRenderer)==null?void 0:(g=w.viewCount)==null?void 0:g.simpleText}var r,E,v;S=Number((r=this.videoPrimaryInfoRenderer)==null?void 0:(E=r.viewCount)==null?void 0:(v=E.videoViewCountRenderer)==null?void 0:v.originalViewCount);var t,V;r=(t=this.videoPrimaryInfoRenderer)==
null?void 0:(V=t.relativeDateText)==null?void 0:V.simpleText;var AZ;t=!((AZ=this.videoPrimaryInfoRenderer)==null||!AZ.relativeDateText);if(U&&I&&S&&(r||!t)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;AZ=I.split(new RegExp("("+U+")"));U=oB1(AZ[0]);var IH;I={numberText:(IH=AZ[1])!=null?IH:"",numberValue:S,heightPx:2*A9V,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Nr;IH=((Nr=AZ[2])!=null?Nr:"")+"  ";this.setViewCount(I,U,oB1(IH));
if(!this.detailed&&t){U=r.split(/(\d+)/);Nr=oB1(U[0]);var Hc;IH={numberText:(Hc=U[1])!=null?Hc:"",heightPx:2*A9V,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var qr;Hc=((qr=U[2])!=null?qr:"")+"  ";this.setDateText(IH,Nr,oB1(Hc))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.J.setViewCount=function(S,c,Q){_.Em(c)!==_.Em(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=c);this.viewCountProps.numberText!==(S==null?void 0:S.numberText)&&(this.viewCountProps=S||XT0);_.Em(Q)!==_.Em(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=Q)};
_.J.setDateText=function(S,c,Q){_.Em(c)!==_.Em(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=c);this.dateTextProps.numberText!==(S==null?void 0:S.numberText)&&(this.dateTextProps=S||XT0);_.Em(Q)!==_.Em(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=Q)};
_.J.onYtUpdateViewershipAction=function(S){this.videoPrimaryInfoRenderer&&(_.Y(S,cRO).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.Y(S,cRO).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.Y(S,cRO).viewCount)))};
_.J.onYtUpdateDateTextAction=function(S){if(this.videoPrimaryInfoRenderer){S=_.Y(S,_.m2G).dateText;this.shouldAnimate=!0;var c;((c=this.videoPrimaryInfoRenderer)==null?0:c.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",S):this.set("videoPrimaryInfoRenderer.dateText",S)}};
_.Rh.Object.defineProperties(Yj.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return yYB(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.Em(yYB(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
showDescriptionInfoTooltip:{configurable:!0,enumerable:!0,get:function(){return!this.detailed}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Em(this.viewCountPreNumberText),this.viewCountProps.numberText,_.Em(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.Em(this.dateTextPreNumberText),this.dateTextProps.numberText,_.Em(this.dateTextPostNumberText)].join("")}}});
Yj.prototype.updateDynamicMetadata=Yj.prototype.updateDynamicMetadata;Yj.prototype.resetAnimationState=Yj.prototype.resetAnimationState;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Yj.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Yj.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Yj.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Yj.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Yj.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"detailed",void 0);_.d([_.Z(),_.P("design:type",Object)],Yj.prototype,"shouldAnimate",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"viewCountPreNumberText",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"viewCountProps",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"viewCountPostNumberText",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"dateTextPreNumberText",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"dateTextProps",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"dateTextPostNumberText",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Yj.prototype,"metadataBadgesInDescription",void 0);_.d([_.M("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.P("design:type",Object),_.P("design:paramtypes",[])],Yj.prototype,"infoText",null);
_.d([_.M("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.P("design:type",String),_.P("design:paramtypes",[])],Yj.prototype,"descriptionInfoTooltipText",null);_.d([_.M("detailed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Yj.prototype,"showDescriptionInfoTooltip",null);
_.d([_.M("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.P("design:type",String),_.P("design:paramtypes",[])],Yj.prototype,"animatedViewCountAccessibilityLabel",null);_.d([_.M("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.P("design:type",String),_.P("design:paramtypes",[])],Yj.prototype,"animatedDateTextAccessibilityLabel",null);
_.d([_.B0("videoPrimaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yj.prototype,"resetAnimationState",null);_.d([_.B0("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yj.prototype,"updateDynamicMetadata",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-watch-info-text"})],Yj);
_.k(Yj,"ytd-watch-info-text",function(){if(alE!==void 0)return alE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return alE=S},{mode:1});var OFg;var z$V=_.y_(function(S){var c=S.data;var Q=S.setTapCommand;_.To(function(){var f=_.Gv(c().onTap);Q(f)},"X4onJd");
return _.B("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.B(_.h8,{data:function(){return c().avatar}},{avatarViewModel:_.p3}),_.B("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.B("span",null,function(){return c().simpleboxText})))},"gj");var xt2=_.y_(function(S){return _.B("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.B(_.K,{cond:function(){return _.Y(S.data().avatar,_.Ee)},
then:function(c){return _.B(_.p3,{data:c,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.B("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.B(_.mw,{text:function(){return S.data().teaserText}})))},"hj");var F4O=_.y_(function(S){var c=S.data;var Q=S.setTapCommand;_.To(function(){var f=_.Gv(c().onTap);Q(f)},"PmAol");
return _.B("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.B(_.h8,{data:function(){return c().teasers}},{commentsEntryPointTeaserViewModel:xt2}))},"ij");var Bmp=_.y_(function(S){var c=S.data;var Q=S.setTapCommand;_.To(function(){var f=_.Gv(c().onTap);Q(f)},"Nh3Hjd");
return _.B("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.B(_.mw,{text:function(){return c().messageText}}))},"jj");var Ilp=_.y_(function(S){var c=S.data;var Q=S.setTapCommand;var f=S.isDisabled;_.To(function(){var U=(f==null?0:f())?void 0:_.Gv(c().onTap);Q(U)},"omeiWe");
return _.B("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.B(_.C4,{icon:function(){return c().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.B(_.K,{cond:function(){return c().image},
then:function(U){return _.B(_.RW,{data:U,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.B(_.mw,{text:function(){return c().text},
className:function(){return c().image||c().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.B(_.h8,{data:function(){return c().button}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:f==null?void 0:f()}}})}}))},"kj");var nTZ=_.y_(function(S){var c=S.data;var Q=S.itemIndex;var f=S.selectedIndex;var U=S.indexUpdatedCallback;var a=S.observer;S=S.title;var X=_.EH("yt-carousel-item-view-model",function(b){_.u("web_metadata_carousel_elref_bugfix")&&a&&a().observe(b)}),z=function(b){Q()===f()&&U(b)},x=_.Gs(hPp),I=_.Gs(qKZ),n=function(){var b,N,l;
return((b=c())==null?void 0:b.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!x()||((N=c())==null?void 0:N.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&I().includes("PAposts_by_host")||((l=c())==null?void 0:l.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&I().includes("PAyouchat")};
_.wC(function(){_.u("web_metadata_carousel_elref_bugfix")||a&&a().observe(X.value)});
return _.B("yt-carousel-item-view-model",{el:X,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":S},_.B(_.h8,{data:function(){var b,N;return(N=(b=_.Y(c().carouselItem,laV))==null?void 0:b.textCarousel)!=null?N:c().carouselItem}},{textCarouselItemViewModel:function(b){return _.B(Ilp,{data:b.data,
setTapCommand:z,isDisabled:n})},
commentTeaserCarouselItemViewModel:function(b){return _.B(F4O,{data:b.data,setTapCommand:z})},
commentInputBoxCarouselItemViewModel:function(b){return _.B(z$V,{data:b.data,setTapCommand:z})},
commentsEntryPointMessageViewModel:function(b){return _.B(Bmp,{data:b.data,setTapCommand:z})}}))},"lj");var bFp=_.y_(function(S){var c=S.numDots;var Q=S.activeIndex;return _.B("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.B(_.lW,{each:function(){return Array.from({length:c()})},
keyBy:"INDEX"},function(f,U){return _.B("div",{class:function(){var a={};return _.No("ytCarouselDotsShapeDot",(a.ytCarouselDotsShapeDotActive=U===Q(),a))}})}))},"mj");var NmT=_.y_(function(S){var c=S.data;var Q=S.handleCarouselNavigation;var f=S.numItems;var U=S.selectedIndex;var a=function(){return{disabled:U()===0}},X=function(){return{disabled:U()===f()-1}};
return _.B("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.B("div",null,_.B("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return c().title}),_.B(_.K,{cond:function(){return c().subtitle},
then:function(z){return _.B("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return c().subtitleAccessibilityText}},z)}})),_.B(_.K,{cond:function(){return f()>1},
then:function(){return _.B("div",{class:"ytCarouselTitleViewModelNavigation"},_.B(bFp,{numDots:f,activeIndex:U}),_.B(_.K,{cond:function(){return c().previousButton},
then:function(z){return _.B(_.h8,{data:z},{buttonViewModel:function(x){return _.B(_.Ze,{data:x.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return Q(-1)},
buttonOverrides:a})}})}}),_.B(_.K,{cond:function(){return c().nextButton},
then:function(z){return _.B(_.h8,{data:z},{buttonViewModel:function(x){return _.B(_.Ze,{data:x.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return Q(1)},
buttonOverrides:X})}})}}))}}))},"nj");_.f4(_.y_(function(S){var c=S.data;var Q,f=_.EH("yt-video-metadata-carousel-view-model"),U=_.EH("div",function(t){if(_.u("web_metadata_carousel_elref_bugfix")){var V=function(){var AZ=t.offsetWidth*q(),IH=24*(q()-1);N(AZ+IH)};
V();window.ResizeObserver&&(Q=new ResizeObserver(V),Q.observe(t))}}),a=_.WY("HTML_DIR")==="rtl",X=!1,z=0,x=0;
S=_.A(_.ny(0,void 0,"f4aYxe"));var I=S.next().value,n=S.next().value;S=_.A(_.ny(0,void 0,"kU9O9"));var b=S.next().value,N=S.next().value;S=_.A(_.ny(!1,void 0,"GqphDd"));var l=S.next().value,H=S.next().value,q=function(){var t,V,AZ;return(AZ=(t=c())==null?void 0:(V=t.carouselTitles)==null?void 0:V.length)!=null?AZ:0},w=function(){U.value&&U.value.scrollLeft!==z&&n((a?U.value.scrollLeft<z:U.value.scrollLeft>z)?Math.min(I()+1,q()-1):Math.max(I()-1,0))},g;
window.IntersectionObserver&&(g=new IntersectionObserver(function(t){t=_.A(t);for(var V=t.next();!V.done;V=t.next())if(V.value.isIntersecting){if(X){X=!1;break}w()}else n(x)},{threshold:.2}));
_.To(function(){if(U.value){var t=(a?-1:1)*(b()/q()+12)*(l()&&g?x:I());typeof U.value.scrollTo==="function"?U.value.scrollTo({left:t,behavior:"smooth"}):U.value.scrollLeft=t;z=t;x=l()&&g?x:I()}},"ZP1VMb");
var r,E=function(t){r=t};
_.wC(function(){if(!_.u("web_metadata_carousel_elref_bugfix")){var t=function(){var AZ=U.value.offsetWidth*q(),IH=24*(q()-1);N(AZ+IH)};
t();if(window.ResizeObserver){var V=new ResizeObserver(t);V.observe(U.value);_.wX(function(){V.disconnect();g&&g.disconnect()})}}});
_.wX(function(){if(_.u("web_metadata_carousel_elref_bugfix")){var t;(t=Q)==null||t.disconnect();var V;(V=g)==null||V.disconnect()}});
var v=function(t){t=I()+t;t>=0&&t<q()&&(X=!0,n(t))};
return _.B("yt-video-metadata-carousel-view-model",{class:"ytVideoMetadataCarouselViewModelHost",el:f,"on:click":_.$d(function(t){if(_.dJ(_.rJ(t),f.value,["BUTTON".toString()])||!r)return!1;_.fl().resolve(_.U8).resolveCommand(r,{forceClickLogging:!0});return!1}),
"on:touchstart":_.$d(function(){H(!0);return!1}),
"on:touchend":_.$d(function(){g||w();H(!1);return!1}),
hidden:function(){var t,V;return!((t=c())==null?0:(V=t.carouselItems)==null?0:V.length)}},_.B("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.B(_.K,{cond:function(){return c().carouselTitles},
then:function(t){return _.B(_.h8,{data:function(){return t()[l()&&g?x:I()]}},{carouselTitleViewModel:function(V){return _.B(NmT,{data:V.data,
handleCarouselNavigation:v,numItems:q,selectedIndex:I})}})}})),_.B("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:U},_.B("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+b()+"px;"}},_.B(_.K,{cond:function(){return c().carouselItems},
then:function(t){return _.B(_.lW,{each:t},function(V,AZ){return _.B(_.h8,{data:function(){return V}},{carouselItemViewModel:function(IH){return _.B(nTZ,{data:IH.data,
itemIndex:AZ,selectedIndex:I,indexUpdatedCallback:E,observer:g,title:function(){a:{var Nr=AZ();var Hc,qr=(Hc=c())==null?void 0:Hc.carouselTitles;if(qr&&(Nr=qr[Nr])){var wp;Nr=(wp=_.Y(Nr,jcU))==null?void 0:wp.title;break a}Nr=void 0}return Nr}})}})})}}))))},"oj"),"yt-video-metadata-carousel-view-model",{props:{data:_.y$}});var K4U=_.u("web_action_buttons_update_owner_width")?32:12,Cr=function(){var S=_.W.apply(this,arguments)||this;S.metadataBadgesInDescription=_.u("web_metadata_badges_in_description");S.descriptionCollapsed=!0;S.useFadedScrimDescription=_.u("kevlar_enable_faded_scrim_on_description");S.skinnyMode=!1;S.playlist=!1;S.isDark=document.documentElement.hasAttribute("dark");S.disableVideoOwnerOnTap=_.u("swatchie_video_owner_on_tap_ks");S.swatcherooDelayLoad=_.u("swatcheroo_enable_ghost_cards");S.primaryMenuWidth=
0;S.videoId="";S.titleHeadlineXs=_.u("web_watch_typography_title_headline_xs");S.titleHeadlineS=_.u("web_watch_typography_title_headline_s");S.titleHeadlineM=_.u("web_watch_typography_title_headline_m");S.titleHashtagBlackLinkified=_.u("web_title_hashtag_black_linkified");S.titleHashtagGreyLinkified=_.u("web_title_hashtag_grey_linkified");S.actionButtonsUpdateOwnerWidth=_.u("web_action_buttons_update_owner_width");S.shouldForceIconOnly=!1;S.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};S.isFullscreen=!1;S.isTheaterMode=!1;return S};
_.C(Cr,_.W);_.J=Cr.prototype;_.J.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.J.updateOwnerAndDescriptionPosition=function(){_.u("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.iy(this.bottomRowElement,this.ownerElement)):(_.iy(this.bottomRowElement,this.descriptionElement),_.iy(this.topRowElement,this.ownerElement)))};
_.J.titleOnTap=function(S){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||this.handleExpandDescriptionCommands()}};
_.J.videoOwnerOnTap=function(S){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.J.detached=function(){var S=this,c;return _.O(function(Q){(c=S.resizeObserver)==null||c.disconnect();_.IN(Q)})};
_.J.maybeAttachResizeObserver=function(){var S=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.S0(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){S.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.J.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var S=this.hostElement.clientWidth,c=Math.max(this.largerItemWrap?400:350,S/2-K4U);if(_.u("web_action_buttons_update_owner_width")){var Q;c=(((Q=document.getElementById("owner"))==null?void 0:Q.clientWidth)||0)+K4U}this.actionsOnSeparateLine=this.primaryMenuWidth>S-c?!0:!1}};
_.J.stripAttributedDescription=function(S){return{content:S.content.replace(/[\r\n]{2,}/g,"\n")}};
_.J.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("web_modern_buttons")},properties:{topLevelIconsOnly:"[[skinnyMode]]"}}},events:!0},"videoSecondaryInfoRenderer.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:{component:"ytd-subscribe-button-renderer",
params:{withCount:!0,showTextWhileAnimating:_.u("web_action_buttons_minimize_subscribe")},properties:{forceIconOnly:"[[shouldForceIconOnly]]"}},subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},commentsEntryPointHeaderRenderer:{id:"comment-teaser",mapping:{commentsEntryPointHeaderRenderer:"ytd-comments-entry-point-header-renderer"}},videoMetadataCarousel:{id:"teaser-carousel",mapping:{videoMetadataCarouselViewModel:"yt-video-metadata-carousel-view-model"}},
infoPanelBelowMetadata:{id:"middle-row",mapping:{infoPanelContentRenderer:"ytd-info-panel-content-renderer"}}}};
_.J.videoPrimaryInfoRendererChanged=function(){var S;if((S=this.videoPrimaryInfoRenderer)==null?0:S.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.J.videoSecondaryInfoRendererChanged=function(){var S,c;(c=(S=this.descriptionInlineExpander).collapse)==null||c.call(S);this.descriptionExpandClientVe=_.qo(110509);this.descriptionCollapseClientVe=_.qo(110510);S=_.wN();c=_.T$();S&&c&&(_.u("combine_ve_grafts")?(_.Oc(_.Kv(),this.descriptionExpandClientVe,c),_.Oc(_.Kv(),this.descriptionCollapseClientVe,c)):_.v2(S,c,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.J.structuredDescriptionContentRendererChanged=function(){_.u("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.J.updateTopLevelIconsOnly=function(){var S=this;_.u("top_level_update_killswitch")||this.menu&&_.Mq.addLowPriorityJob(function(){S.menu.topLevelIconsOnly=S.skinnyMode},_.a6("swathceroo_delay_flexible_menu_update",100))};
_.J.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.u("web_action_buttons_minimize_subscribe")};
_.J.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.J.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.J.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.J.onYtTextInlineExpanderExpandedChanged=function(){if(!_.u("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var S,c;(c=(S=this.structuredDescriptionContentRendererElement).resize)==null||c.call(S)}};
_.J.onRenderStamperFinished=function(S){(S==null?void 0:S.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.J.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.J.onYtExpanderLessTapped=function(){var S,c=(S=this.videoSecondaryInfoRenderer)==null?void 0:S.showLessCommand;c&&this.ytComponentBehavior.resolveCommand(c)};
_.J.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.J.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.J.onDescriptionClick=function(S){if(!_.RZ(_.t4(S)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var c;((c=window.getSelection())==null?0:c.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.u("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.J.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.J.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.J.logCollapseClick=function(){var S=_.wN();S&&this.descriptionCollapseClientVe&&_.tz(S,this.descriptionCollapseClientVe)};
_.J.logExpandClick=function(){var S=_.wN();S&&this.descriptionExpandClientVe&&_.tz(S,this.descriptionExpandClientVe)};
_.J.collapseDescription=function(){this.descriptionCollapsed=!0};
_.J.scrollToTopOfContainer=function(){_.XF(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.J.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.J.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.J.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.J.resize=function(){if(this.descriptionInlineExpander){var S,c;(c=(S=this.descriptionInlineExpander).resize)==null||c.call(S)}else _.i5(new _.Yr("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var Q;(Q=this.menu)==null||Q.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.u("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.J.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var S,c,Q,f,U=_.u("web_action_buttons_update_owner_width")?(Q=(S=_.Ur(this.menu).querySelector("#button-shape"))==null?void 0:S.clientWidth)!=null?Q:0:(f=(c=_.Ur(this.menu).querySelector("#button"))==null?void 0:c.clientWidth)!=null?f:0,a,X;S=((X=(a=_.Ur(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:a.clientWidth)!=null?X:0)+8+U;var z,x;U=(x=(z=_.Ur(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:z.children.length)!=null?x:2;S<=8*U||(this.primaryMenuWidth=S)}};
_.J.onYtUpdateTitleAction=function(S){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.Y(S,SO0).title)};
_.J.onYtUpdateDescriptionAction=function(S){if(S=_.Y(S,_.ik_)){var c,Q=!((c=this.videoSecondaryInfoRenderer)==null||!c.attributedDescription);S.isEmpty||!S.description&&!S.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):S.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",S.attributedDescription):S.description&&(Q?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.sX(S.description)):this.set("videoSecondaryInfoRenderer.description",S.description))}};
_.J.onYtDarkModeToggledAction=function(S){this.isDark=S};
_.J.registerPanel=function(){if(!_.u("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var S=_.u("web_watch_imax_theater_mode")&&this.isTheaterMode;S=_.u("web_watch_enable_fs_squeezeback_panels")&&this.isFullscreen||S;var c=_.fl().resolve(_.YF);c&&!S&&c.registerPanel("engagement-panel-structured-description",this)}};
_.J.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.J.showPanel=function(S){this.expandDescription();var c=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;c.resize();var Q,f=S==null?void 0:(Q=S.sectionListEngagementPanelExtras)==null?void 0:Q.scrollToItemSectionIdentifier;f?_.Mq.addJob(function(){c==null||c.scrollToSection(f)},8):this.scrollToTopOfContainer()};
_.J.isVisible=function(){return!this.descriptionCollapsed};
_.J.getReloadContinuation=function(){};
_.J.hidePanel=function(){};
_.J.updatePanel=function(){};
_.Rh.Object.defineProperties(Cr.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.structuredDescriptionContentRenderer)!=null&&S.items){var c;S=_.A((c=this.structuredDescriptionContentRenderer)==null?void 0:c.items);for(c=S.next();!c.done;c=S.next())if(c=_.Y(c.value,_.MVh))return c}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.videoPrimaryInfoRenderer)==null?0:S.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return!!((S=this.videoSecondaryInfoRenderer)==null?0:(c=S.owner)==null?0:(Q=c.videoOwnerRenderer)==null?0:Q.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.u("swatchie_sd_new_line_strip_ks")){var S,c;if((S=this.videoSecondaryInfoRenderer)==null?0:(c=S.attributedDescription)==null?0:c.content){var Q,f;return(f=this.stripAttributedDescription((Q=this.videoSecondaryInfoRenderer)==null?void 0:Q.attributedDescription))!=null?f:{runs:[]}}}var U,a,X,z;return(z=(X=(U=this.videoSecondaryInfoRenderer)==null?void 0:U.description)!=null?X:(a=this.videoSecondaryInfoRenderer)==null?
void 0:a.attributedDescription)!=null?z:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=(S=this.videoSecondaryInfoRenderer)==null?void 0:S.headerRuns)!=null?c:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.commentsEntryPointHeaderRenderer)==null||!S.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.videoMetadataCarousel)==null||!S.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.a6("swatchie_desc_lines",3):this.hasTeaserCarousel?_.a6("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=Object.assign({},(S=this.videoSecondaryInfoRenderer)==null?void 0:(c=S.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(Q&&Q.rows&&Q.collapsedItemCount!==void 0&&!(Q.rows.length<=Q.collapsedItemCount))return Q.rows=Q.rows.slice(Q.collapsedItemCount),Q.collapsedItemCount=0,Q}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var S,c,Q=Object.assign({},(S=this.videoSecondaryInfoRenderer)==null?void 0:(c=S.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer);if(Q&&Q.rows&&Q.collapsedItemCount!==void 0)return Q.rows=Q.rows.slice(0,Q.collapsedItemCount),Q.collapsedItemCount=Q.rows.length,Q}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var S,c;return!!((S=this.structuredDescriptionContentRenderer)==null?0:(c=S.items)==null?0:c.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 S;return(S=this.videoSecondaryInfoRenderer)==null?void 0:S.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.videoSecondaryInfoRenderer)==null?0:(c=S.owner)==null?0:(Q=c.videoOwnerRenderer)==null?0:Q.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return!!((S=this.videoPrimaryInfoRenderer)==null?0:(c=S.videoActions)==null?0:(Q=c.menuRenderer)==null?0:(f=Q.flexibleItems)==null?0:f.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.EX(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.EX(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var S=this;if(_.u("web_title_hashtag_grey_delinkified")){var c,Q=_.Cn.unsafeClone((c=this.videoPrimaryInfoRenderer)==null?void 0:c.title);(c=Q==null?void 0:Q.runs)&&c.forEach(function(f){if(f==null?0:f.navigationEndpoint)f.textColor=4284506208,S.isDark&&(f.textColor=4289374890)});
return Q}return(Q=this.videoPrimaryInfoRenderer)==null?void 0:Q.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.u("web_title_hashtag_black_delinkified")||_.u("web_title_hashtag_grey_delinkified")}}});
Cr.prototype.resetDescriptionState=Cr.prototype.resetDescriptionState;Cr.prototype.registerPanel=Cr.prototype.registerPanel;Cr.prototype.onYtExpanderLessTapped=Cr.prototype.onYtExpanderLessTapped;Cr.prototype.onYtExpanderMoreTapped=Cr.prototype.onYtExpanderMoreTapped;Cr.prototype.onRenderStamperFinished=Cr.prototype.onRenderStamperFinished;Cr.prototype.onYtTextInlineExpanderExpandedChanged=Cr.prototype.onYtTextInlineExpanderExpandedChanged;Cr.prototype.onYtTextInlineExpanderCollapseClicked=Cr.prototype.onYtTextInlineExpanderCollapseClicked;
Cr.prototype.onYtTextInlineExpanderExpandClicked=Cr.prototype.onYtTextInlineExpanderExpandClicked;Cr.prototype.moveActionsElement=Cr.prototype.moveActionsElement;Cr.prototype.updateShouldForceIconOnly=Cr.prototype.updateShouldForceIconOnly;Cr.prototype.updateTopLevelIconsOnly=Cr.prototype.updateTopLevelIconsOnly;Cr.prototype.structuredDescriptionContentRendererChanged=Cr.prototype.structuredDescriptionContentRendererChanged;Cr.prototype.videoSecondaryInfoRendererChanged=Cr.prototype.videoSecondaryInfoRendererChanged;
Cr.prototype.videoPrimaryInfoRendererChanged=Cr.prototype.videoPrimaryInfoRendererChanged;Cr.prototype.maybeUpdateActionsOnSeparateLine=Cr.prototype.maybeUpdateActionsOnSeparateLine;Cr.prototype.updateOwnerAndDescriptionPosition=Cr.prototype.updateOwnerAndDescriptionPosition;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Cr.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Cr.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Cr.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Cr.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Cr.prototype,"ytdReduxBehavior",void 0);_.d([_.nU("#above-the-fold"),_.P("design:type",HTMLElement)],Cr.prototype,"aboveTheFoldContainer",void 0);_.d([_.nU("#menu ytd-menu-renderer"),_.P("design:type",Object)],Cr.prototype,"menu",void 0);
_.d([_.nU("#description-inline-expander"),_.P("design:type",Object)],Cr.prototype,"descriptionInlineExpander",void 0);_.d([_.nU("#faded-structured-description"),_.P("design:type",Object)],Cr.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.d([_.nU("#structured-description"),_.P("design:type",Object)],Cr.prototype,"structuredDescriptionContentRendererElement",void 0);_.d([_.nU("#title"),_.P("design:type",HTMLElement)],Cr.prototype,"titleElement",void 0);
_.d([_.nU("#description"),_.P("design:type",HTMLElement)],Cr.prototype,"descriptionElement",void 0);_.d([_.nU("#description-interaction"),_.P("design:type",Object)],Cr.prototype,"descriptionInteraction",void 0);_.d([_.nU("#owner"),_.P("design:type",HTMLElement)],Cr.prototype,"ownerElement",void 0);_.d([_.nU("#top-row"),_.P("design:type",HTMLElement)],Cr.prototype,"topRowElement",void 0);_.d([_.nU("#bottom-row"),_.P("design:type",HTMLElement)],Cr.prototype,"bottomRowElement",void 0);
_.d([_.nU("#actions"),_.P("design:type",HTMLElement)],Cr.prototype,"actionsElement",void 0);_.d([_.nU("#bottom-actions"),_.P("design:type",HTMLElement)],Cr.prototype,"bottomActionsElement",void 0);_.d([_.nU("#ytd-watch-info-text"),_.P("design:type",Object)],Cr.prototype,"watchInfoTextElement",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"videoPrimaryInfoRenderer",void 0);
_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"videoSecondaryInfoRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"commentsEntryPointHeaderRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"videoMetadataCarousel",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"structuredDescriptionContentRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"videoSummary",void 0);
_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"merchShelf",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"infoPanelBelowMetadata",void 0);_.d([_.M("structuredDescriptionContentRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"productShelf",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"metadataBadgesInDescription",void 0);
_.d([_.M("videoPrimaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"shouldHideBadges",null);_.d([_.M("productShelf","descriptionCollapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Cr.prototype,"shouldShowProductShelf",null);_.d([_.Z(),_.P("design:type",Boolean)],Cr.prototype,"isWatchFlexy",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"descriptionCollapsed",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Cr.prototype,"useFadedScrimDescription",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"skinnyMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("videoSecondaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"largerItemWrap",null);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"playlist",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"clarifyBox",void 0);
_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"playerAds",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Cr.prototype,"isDark",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Cr.prototype,"actionsOnSeparateLine",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"disableVideoOwnerOnTap",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"swatcherooDelayLoad",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],Cr.prototype,"suppressTopLevelMetadataRows",void 0);_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"primaryMenuWidth",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"videoId",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"titleHeadlineXs",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"titleHeadlineS",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"titleHeadlineM",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"titleHashtagBlackLinkified",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"titleHashtagGreyLinkified",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.d([_.Z(),_.P("design:type",Object)],Cr.prototype,"shouldForceIconOnly",void 0);_.d([_.$n("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"updateOwnerAndDescriptionPosition",null);_.d([_.$n("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.d([_.M("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"descriptionText",null);_.d([_.M("videoSecondaryInfoRenderer.headerRuns"),_.P("design:type",Array),_.P("design:paramtypes",[])],Cr.prototype,"headerRuns",null);_.d([_.Z({value:!1}),_.M("commentsEntryPointHeaderRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"hasTeaser",null);
_.d([_.Z({value:!1,reflectToAttribute:!0}),_.M("videoMetadataCarousel"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"hasTeaserCarousel",null);_.d([_.Z({value:3}),_.M("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"descriptionMaxLines",null);_.d([_.M("videoSecondaryInfoRenderer.metadataRowContainer"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"collapsibleMetadataRows",null);
_.d([_.M("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"alwaysVisibleMetadataRows",null);_.d([_.M("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Cr.prototype,"hasInlineStructuredDescription",null);
_.d([_.M("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Cr.prototype,"showInlineStructuredDescription",null);_.d([_.M("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"descriptionExpandCommand",null);
_.d([_.M("videoSecondaryInfoRenderer.owner"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"videoOwnerCommand",null);_.d([_.Z({reflectToAttribute:!0}),_.M("videoPrimaryInfoRenderer.videoActions"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Cr.prototype,"flexMenuEnabled",null);_.d([_.Z({selector:_.gJ,reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"isFullscreen",void 0);
_.d([_.Z({selector:_.WK,reflectToAttribute:!0}),_.P("design:type",Object)],Cr.prototype,"isTheaterMode",void 0);_.d([_.M("descriptionText","useFadedScrimDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Cr.prototype,"showAttributedStringDescription",null);_.d([_.M("descriptionText","useFadedScrimDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Cr.prototype,"showFormattedStringDescription",null);
_.d([_.M("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Cr.prototype,"showFadedStructuredDescription",null);_.d([_.$n("videoPrimaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"videoPrimaryInfoRendererChanged",null);_.d([_.M("videoPrimaryInfoRenderer.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"videoTitle",null);
_.d([_.M("videoPrimaryInfoRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cr.prototype,"noEndpoints",null);_.d([_.$n("videoSecondaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"videoSecondaryInfoRendererChanged",null);
_.d([_.B0("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"structuredDescriptionContentRendererChanged",null);_.d([_.B0("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"updateTopLevelIconsOnly",null);
_.d([_.B0("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"updateShouldForceIconOnly",null);_.d([_.B0("skinnyMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"moveActionsElement",null);_.d([_.FV("yt-text-inline-expander-expand-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"onYtTextInlineExpanderExpandClicked",null);
_.d([_.FV("yt-text-inline-expander-collapse-clicked"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"onYtTextInlineExpanderCollapseClicked",null);_.d([_.FV("yt-text-inline-expander-expanded-changed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"onYtTextInlineExpanderExpandedChanged",null);
_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],Cr.prototype,"onRenderStamperFinished",null);_.d([_.FV("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"onYtExpanderMoreTapped",null);_.d([_.FV("yt-expander-less-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"onYtExpanderLessTapped",null);
_.d([_.B0("videoPrimaryInfoRenderer","hasInlineStructuredDescription","isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"registerPanel",null);_.d([_.B0("videoSecondaryInfoRenderer"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Cr.prototype,"resetDescriptionState",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-watch-metadata"})],Cr);
_.k(Cr,"ytd-watch-metadata",function(){if(OFg!==void 0)return OFg;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return OFg=S},{mode:2});_.Dtg=function(S){_.C9.call(this);this.JSC$20333_watchApi=S;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;$t2(this);uGO(this);j_N(this);ll1(this);YUp(this);CqE(this);HF8(this)};
_.C(_.Dtg,_.C9);var j_N=function(S){var c=function(){_.u("kevlar_is_pupi_enabled")||HP(S)};
S.JSC$20333_watchApi.getRoot().addEventListener("yt-player-updated",c);S.addOnDisposeCallback(function(){S.JSC$20333_watchApi.getRoot().removeEventListener("yt-player-updated",c)})},YUp=function(S){if(_.u("kevlar_endscreen_auto_theater_mode")){var c=S.JSC$20333_watchApi.subscribeToActiveChanged(function(){pTE(S)},!1);
S.addOnDisposeCallback(c)}},$t2=function(S){var c,Q,f,U,a;
_.O(function(X){if(X.nextAddress==1)return _.F(X,S.JSC$20333_watchApi.playerApi,2);c=X.yieldResult;Q=function(z){z=!!z;D1(S)&&(z=z?2:1,_.oJ.getInstance().setState(z,!0,!1))};
f=function(z){z&&_.p62(_.V5().getState())&&(_.XF(S.JSC$20333_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),S.temporaryTheaterMode=!0)};
U=function(z){_.u("kevlar_player_update_autonav_on_new_data")&&z.type==="newdata"&&(_.u("kevlar_is_pupi_enabled")||HP(S))};
a=function(z){S.onPlayerStateChange(z)};
_.u("kevlar_endscreen_auto_theater_mode")&&c.addEventListener("onAutonavCancelled",f);c.addEventListener("onAutonavChangeRequest",Q);c.addEventListener("onVideoDataChange",U);c.addEventListener("onStateChange",a);S.addOnDisposeCallback(function(){c.removeEventListener("onAutonavChangeRequest",Q);c.removeEventListener("onVideoDataChange",U);c.removeEventListener("onStateChange",a);_.u("kevlar_endscreen_auto_theater_mode")&&c.removeEventListener("onAutonavCancelled",f)});
_.IN(X)})},uGO=function(S){S.JSC$20333_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){S.autonavCancelledBySignal=!0;
_.u("kevlar_is_pupi_enabled")||HP(S)});
S.JSC$20333_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(c,Q,f){Q&&HP(S,f)});
S.JSC$20333_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){D1(S)&&_.oJ.getInstance().setState(2,!0,!0)});
S.JSC$20333_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){D1(S)&&_.oJ.getInstance().setState(1,!0,!0)});
S.addOnDisposeCallback(function(){S.JSC$20333_watchApi.unregisterActionHandler("yt-signal-action-cancel-autonav");S.JSC$20333_watchApi.unregisterActionHandler("yt-autonav-state-changed-action");S.JSC$20333_watchApi.unregisterActionHandler("yt-enable-autoplay-command");S.JSC$20333_watchApi.unregisterActionHandler("yt-disable-autoplay-command")})},ll1=function(S){var c=S.JSC$20333_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){HF8(S)}),Q=S.JSC$20333_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",
function(){CqE(S)});
S.addOnDisposeCallback(function(){S.JSC$20333_watchApi.unsubscribeByKey(c);S.JSC$20333_watchApi.unsubscribeByKey(Q)})},HF8=function(S){S.autonavCancelledBySignal=!1;
_.u("kevlar_is_pupi_enabled")||HP(S)},CqE=function(S){var c=S.JSC$20333_watchApi.getWatchNextResponse(),Q,f;
var U=(c=(f=_.Y(c==null?void 0:(U=c.playerOverlays)==null?void 0:(Q=U.playerOverlayRenderer)==null?void 0:Q.autonavToggle,_.GFp))==null?void 0:f.enabled)?2:1;_.u("kevlar_is_pupi_enabled")?_.oJ.getInstance().setState(U,!1,!1):HP(S);_.u("web_persist_server_autonav_state_on_client")&&typeof c==="boolean"&&_.jzc(U===2)},D1=function(S){if(S.autonavCancelledBySignal)return!1;
var c,Q,f,U;return!!((c=S.JSC$20333_watchApi.getWatchNextResponse())==null?0:(Q=c.contents)==null?0:(f=Q.twoColumnWatchNextResults)==null?0:(U=f.autoplay)==null?0:U.autoplay)};
_.Dtg.prototype.onPlayerStateChange=function(S){if(S===0){S=!_.oJ.getInstance().isAutoplaySetExplicitly();var c=this.JSC$20333_watchApi.getWatchNextResponse(),Q,f,U,a;c=_.Y(c==null?void 0:(Q=c.contents)==null?void 0:(f=Q.twoColumnWatchNextResults)==null?void 0:(U=f.autoplay)==null?void 0:(a=U.autoplay)==null?void 0:a.autoplayExplicitChoiceDialogRenderer,_.a2l);D1(this)&&S&&c&&_.BI.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:c},popupType:"DIALOG"}})}else pTE(this)};
var pTE=function(S){S.temporaryTheaterMode&&(S.temporaryTheaterMode=!1,_.XF(S.JSC$20333_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},HP=function(S,c){c=c===void 0?!1:c;
var Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20333_watchApi.playerApi,2);Q=f.yieldResult;D1(S)?Q.setAutonavState(_.oJ.getInstance().getState(),c):Q.setAutonavState(1,c);_.IN(f)})};var h$V={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"};_.Tm1=function(S){_.C9.call(this);var c=this;this.JSC$20338_watchApi=S;var Q=this.JSC$20338_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){qUE(c)});
this.addOnDisposeCallback(function(){c.JSC$20338_watchApi.unsubscribeByKey(Q)});
qUE(this)};
_.C(_.Tm1,_.C9);var qUE=function(S){var c=S.JSC$20338_watchApi.getPlayerResponse(),Q=S.JSC$20338_watchApi.getWatchNextResponse();if(!_.aDx(c==null?void 0:c.playabilityStatus,Q==null?void 0:Q.playerOverlays)){var f;var U=c==null?void 0:(f=c.playabilityStatus)==null?void 0:f.errorScreen}S.JSC$20338_watchApi.provideRenderingData("ERROR_SCREEN",U)};var wTE=_.y_(function(S){var c=S.data;var Q=_.Gs(_.gJ);S={};return _.B("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost","on:click":_.$d(function(){var f=c().onTap;f&&_.fl().resolve(_.U8).resolveCommand(f)}),
role:"button"},_.B("h2",{class:_.n4("ytPlayerOverlayVideoDetailsRendererTitle",(S.ytPlayerOverlayVideoDetailsRendererTitleCompact=function(){return!Q()},S))},_.B(_.mw,{text:function(){return c().title}})),_.B("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.B(_.mw,{text:function(){return c().subtitle}})))},"pj");var pr={LIKE:"LIKE_DELHI_PLAYER",DISLIKE:"DISLIKE_DELHI_PLAYER",SHARE:"SHARE_DELHI_PLAYER",COMMENT:"COMMENT_DELHI_PLAYER",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP_DELHI_PLAYER"},s_0=_.y_(function(S){var c=S.data;var Q=_.Gs(_.gJ);S={};return _.B("yt-player-quick-action-buttons",{class:_.n4("ytPlayerQuickActionButtonsHost",(S.ytPlayerQuickActionButtonsHostTheaterMode=function(){return!Q()},S))},_.B(_.lW,{each:function(){var f=c(),U=Q();
f=JSON.parse(JSON.stringify(f));for(var a=_.u("web_watch_action_bar_resize_buttons"),X=_.u("delhi_modern_web_player_icons")&&!_.u("enable_web_delhi_icons"),z=_.A(f),x=z.next();!x.done;x=z.next()){var I=x.value,n=void 0;x=_.Y((n=_.Y(I,_.wJ))==null?void 0:n.toggleButtonViewModel,_.CS);var b=void 0;n=_.Y((b=_.Y(I,_.se))==null?void 0:b.toggleButtonViewModel,_.CS);I=_.Y(I,_.Ya);x?(n=_.Y(x.defaultButtonViewModel,_.Ya),x=_.Y(x.toggledButtonViewModel,_.Ya),n&&(X&&n.iconName&&(n.iconName=pr[n.iconName]),!U&&
a&&(n.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),x&&(X&&x.iconName&&(x.iconName=pr[x.iconName]),!U&&a&&(x.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):n?(x=_.Y(n.defaultButtonViewModel,_.Ya),n=_.Y(n.toggledButtonViewModel,_.Ya),x&&(X&&x.iconName&&(x.iconName=pr[x.iconName]),!U&&a&&(x.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT")),n&&(X&&n.iconName&&(n.iconName=pr[n.iconName]),!U&&a&&(n.buttonSize="BUTTON_VIEW_MODEL_SIZE_DEFAULT"))):I&&(X&&I.iconName&&(I.iconName=pr[I.iconName]),!U&&a&&(I.buttonSize=
"BUTTON_VIEW_MODEL_SIZE_DEFAULT"))}return f}},function(f){return _.B(_.h8,{data:function(){return f}},{buttonViewModel:_.Ze,
likeButtonViewModel:function(U){return _.B(_.TT,{data:U.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.q0})}))},"qj");_.iFN=function(S){_.C9.call(this);var c=this;this.JSC$20342_watchApi=S;S=_.A(_.ny({},void 0,"ufFdVc"));this.quickActionsViewModel=S.next().value;this.setQuickActionsViewModel=S.next().value;S=_.A(_.ny({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=S.next().value;this.setPlayerOverlayVideoDetailsRenderer=S.next().value;var Q=this.JSC$20342_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MvV(c)});
this.addOnDisposeCallback(function(){c.JSC$20342_watchApi.unsubscribeByKey(Q)});
MvV(this)};
_.C(_.iFN,_.C9);
var MvV=function(S){var c,Q,f,U,a,X,z,x,I,n,b,N,l,H;_.O(function(q){if(q.nextAddress==1)return _.F(q,S.JSC$20342_watchApi.playerApi,2);c=q.yieldResult;Q=S.JSC$20342_watchApi.getWatchNextResponse();a=(f=Q)==null?void 0:(U=f.playerOverlays)==null?void 0:U.playerOverlayRenderer;z=_.Y((X=a)==null?void 0:X.fullscreenQuickActionsBar,_.kgJ);(I=(x=S).setQuickActionsViewModel)==null||I.call(x,z||{});z&&ZFT(S,c);N=(n=a)==null?void 0:(b=n.videoDetails)==null?void 0:b.playerOverlayVideoDetailsRenderer;(H=(l=
S).setPlayerOverlayVideoDetailsRenderer)==null||H.call(l,N||{});N&&Gq2(S,c);_.IN(q)})},ZFT=function(S,c){if(!S.quickActionButtonsContainer){S.quickActionButtonsContainer=document.createElement("div");
c.setFullscreenQuickActions(S.quickActionButtonsContainer);var Q=function(){return S.quickActionsViewModel().quickActionButtons||[]},f=_.hS(S.quickActionButtonsContainer,function(){return _.B(s_0,{data:Q})});
S.addOnDisposeCallback(function(){c.setFullscreenQuickActions(void 0);f()})}},Gq2=function(S,c){if(!S.playerOverlayVideoDetailsRendererContainer){S.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
c.setPlayerOverlayVideoDetailsRenderer(S.playerOverlayVideoDetailsRendererContainer);var Q=_.hS(S.playerOverlayVideoDetailsRendererContainer,function(){return _.B(wTE,{data:S.playerOverlayVideoDetailsRenderer})});
S.addOnDisposeCallback(function(){c.setPlayerOverlayVideoDetailsRenderer(void 0);Q()})}};_.hC=function(S){_.C9.call(this);var c=this;this.JSC$20347_watchApi=S;this.JSC$20347_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;S=_.Kt(_.V5(),_.gJ,function(Q){c.onFullscreenChanged(Q)});
this.addOnDisposeCallback(S);S=_.Kt(_.V5(),_.D_,function(Q){c.onWatchScroll(Q)});
this.addOnDisposeCallback(S);_.u("kevlar_watch_while_v2")&&(S=_.Kt(_.V5(),_.sm,function(Q){W4N(c,Q)}),this.addOnDisposeCallback(S));
gTg(this);e$E(this);kq2();this.onWatchScroll(_.D_(_.V5().getState()));_.gC("START_IN_FULL_WINDOW_MODE")&&this.JSC$20347_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.C(_.hC,_.C9);var gTg=function(S){S.JSC$20347_watchApi.registerActionHandler("yt-fullscreen-change-action",function(c){var Q=S.JSC$20347_watchApi.isActive();c&&!Q||_.V5().dispatch(_.aB({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!c}}))});
S.addOnDisposeCallback(function(){S.JSC$20347_watchApi.unregisterActionHandler("yt-fullscreen-change-action")})},e$E=function(S){var c,Q;
_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20347_watchApi.playerApi,2);c=f.yieldResult;Q=function(){S.onFullerscreenEduClicked()};
c.addEventListener("onFullerscreenEduClicked",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onFullerscreenEduClicked",Q)});
_.IN(f)})};
_.hC.prototype.onFullscreenChanged=function(S){var c=this,Q;return _.O(function(f){if(f.nextAddress==1)return c.isFullscreen=!!_.f8(),_.F(f,c.JSC$20347_watchApi.playerApi,2);Q=f.yieldResult;c.JSC$20347_miniplayerActive||Q.setFauxFullscreen(c.isFullscreen);if(S&&(c.JSC$20347_watchApi.focusOnPlayer(),!c.fullerscreenEduButtonShownThisPlayback)){c.fullerscreenEduButtonShownThisPlayback=!0;var U=_.Bb("yt-fullerscreen-edu-button-shown-count")||0;_.F6("yt-fullerscreen-edu-button-shown-count",U+1,31536E3);
c.updateFullerscreenEduButtonSubtleModeState()}_.IN(f)})};
var W4N=function(S,c){var Q;_.O(function(f){if(f.nextAddress==1)return S.JSC$20347_miniplayerActive=c,_.F(f,S.JSC$20347_watchApi.playerApi,2);Q=f.yieldResult;Q.setFauxFullscreen(!S.JSC$20347_miniplayerActive&&S.isFullscreen);_.IN(f)})};
_.hC.prototype.onWatchScroll=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1)return _.u("external_fullscreen_with_edu")?_.F(U,c.JSC$20347_watchApi.playerApi,2):U.return();Q=U.yieldResult;f=S<=0;c.shouldShowFullerscreenEdu!==f&&(c.shouldShowFullerscreenEdu=f,Q.updateFullerscreenEduButtonVisibility(!c.shouldShowFullerscreenEdu));_.IN(U)})};
_.hC.prototype.onFullerscreenEduClicked=function(){this.JSC$20347_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var S=_.Bb("yt-fullerscreen-edu-button-click-count")||0;_.F6("yt-fullerscreen-edu-button-click-count",S+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
_.hC.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var S=this,c,Q,f,U,a,X;return _.O(function(z){if(z.nextAddress==1)return c=_.Bb("yt-fullerscreen-edu-button-click-count")||0,Q=_.Bb("yt-fullerscreen-edu-button-shown-count")||0,f=_.a6("external_fullscreen_button_click_threshold"),U=_.a6("external_fullscreen_button_shown_threshold"),a=c>=f||Q>=U,_.F(z,S.JSC$20347_watchApi.playerApi,2);X=z.yieldResult;X.updateFullerscreenEduButtonSubtleModeState(a);_.IN(z)})};
_.hC.prototype.disposeInternal=function(){_.C9.prototype.disposeInternal.call(this);var S=_.f8();_.u("kevlar_exit_fullscreen_leaving_watch")&&S&&_.Uz(S)};
var kq2=function(){if(_.u("web_watch_add_viewport_meta_tag")){var S=document.querySelector("meta[name=viewport]"),c=document.head;c&&!S&&(S=document.createElement("meta"),S.name="viewport",S.content="width=device-width, initial-scale=1.0, viewport-fit=cover",c.appendChild(S))}};_.qT=function(S){_.C9.call(this);var c=this;this.JSC$20351_watchApi=S;this.jobId=0;this.pendingRequestId=void 0;var Q=this.JSC$20351_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){r9V(c)});
this.addOnDisposeCallback(function(){c.JSC$20351_watchApi.unsubscribeByKey(Q)});
r9V(this)};
_.C(_.qT,_.C9);var dtB=function(S){_.Mq.cancelJob(S.jobId);S.pendingRequestId=void 0},r9V=function(S){dtB(S);
var c=mWp(S.JSC$20351_watchApi.getWatchNextResponse());if(c){var Q=250,f,U=(f=_.Y(c,_.d9i))==null?void 0:f.initialDelayMs;_.u("web_watch_updated_metadata_server_initial_delay")&&U&&(Q=U);S.jobId=_.Mq.addLowPriorityJob(function(){return S.fetchUpdatedMetadata(c)},Q)}};
_.qT.prototype.fetchUpdatedMetadata=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g;return _.O(function(r){switch(r.nextAddress){case 1:c&&(f={continuation:c});if(!_.u("web_get_updated_metadata_fantasy_panel_continuation_params")){r.jumpTo(2);break}U=_.fl().resolve(_.YF);a="PAsports_fantasy";return _.F(r,U.isVisible(a,!0),3);case 3:r.yieldResult&&(I=(z=(X=U).getUpdatePanelContinuationData)==null?void 0:(x=z.call(X,a))==null?void 0:x.updatePanelContinuationRequest)&&(f||(f={}),f.clientParams=
{panelContinuationParams:{panelContinuation:I}});case 2:n=_.fl().resolve(_.M6);if(!n)return _.sH(Error("lm")),r.return();b={};Q.pendingRequestId=b;return _.F(r,_.P3(n,S,f),4);case 4:N=r.yieldResult;if(b!==Q.pendingRequestId)return r.return();q=(l=N)==null?void 0:(H=l.continuation)==null?void 0:H.timedContinuationData;((w=q)==null?0:w.continuation)&&((g=q)==null?0:g.timeoutMs)&&(Q.jobId=_.Mq.addLowPriorityJob(function(){return Q.fetchUpdatedMetadata(S,q.continuation)},q.timeoutMs));
_.IN(r)}})};
_.qT.prototype.disposeInternal=function(){_.C9.prototype.disposeInternal.call(this);dtB(this)};var vT8=_.y_(function(S){var c=_.$d(function(){var f=S.data().videoId;if(S.active())f=_.Q5(f),_.fl().resolve(_.U8).resolveCommand(f);else{var U=S.playerApi(),a=U.getAvailableAudioTracks(),X,z,x=(X=S.sourceVideoConfig().audioTracks)==null?void 0:(z=X.find(function(I){return I.isDefaultForSource}))==null?void 0:z.id;
if(a=a.find(function(I){return I.getLanguageInfo().getId()===x}))U.setAudioTrack(a,!0),U.setCompositeParam({activeVideoId:f}),S.setActiveSourceId(f)}}),Q={};
return _.B("ytw-composite-source-video-overlay",{class:_.n4("ytwCompositeSourceVideoOverlayHost",(Q.ytwCompositeSourceVideoOverlayActive=S.active,Q.ytwCompositeSourceVideoOverlayInteracting=S.interacting,Q)),style:_.Yd({left:function(){var f;return((f=S.data().topLeftCornerX)!=null?f:0)*100+"%"},
top:function(){var f;return((f=S.data().topLeftCornerY)!=null?f:0)*100+"%"},
width:function(){var f;return((f=S.data().width)!=null?f:0)*100+"%"},
height:function(){var f;return((f=S.data().height)!=null?f:0)*100+"%"}}),
"on:click":c},_.B("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"rj");var PqE=_.y_(function(S){var c=_.A(_.l8(function(){var X,z=(X=S.data().sources)==null?void 0:X.find(function(x){return x.isActive});
if(z)return z.videoId})),Q=c.next().value,f=c.next().value;
c=_.A(_.ny(!1,void 0,"WI4BUb"));var U=c.next().value,a=c.next().value;return _.B("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":_.$d(function(){a(!0)}),
"on:mouseout":_.$d(function(){a(!1)})},_.B(_.K,{cond:function(){return S.data().sources},
then:function(X){return _.B(_.lW,{each:X},function(z){return _.B(vT8,{data:z,active:function(){return z.videoId===Q()},
setActiveSourceId:f,interacting:U,playerApi:S.playerApi,sourceVideoConfig:function(){return SGB(S.compositeVideoConfig(),z.videoId)}})})}}))},"sj");_.tvU=function(S){_.C9.call(this);this.JSC$20367_watchApi=S;S=_.A(_.ny({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=S.next().value;this.setCompositeVideoOverlayRenderer=S.next().value;S=_.A(_.ny({},void 0,"U5hcq"));this.compositeVideoConfig=S.next().value;this.setCompositeVideoConfig=S.next().value;L48(this);ETp(this)};
_.C(_.tvU,_.C9);var L48=function(S){var c=S.JSC$20367_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){ETp(S)});
S.addOnDisposeCallback(function(){S.JSC$20367_watchApi.unsubscribeByKey(c)})},VvT=function(S){var c;
return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.JSC$20367_watchApi.playerApi,2);c=Q.yieldResult;c.setCompositeVideoOverlayRendererComponent(S.container);_.IN(Q)})},R$g=function(S){var c;
return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.JSC$20367_watchApi.playerApi,2);c=Q.yieldResult;c.setCompositeVideoOverlayRendererComponent(void 0);_.IN(Q)})},y9T=function(S){var c,Q;
return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20367_watchApi.playerApi,2);c=f.yieldResult;S.container=document.createElement("div");Q=_.hS(S.container,function(){return _.B(PqE,{data:S.compositeVideoOverlayRenderer,compositeVideoConfig:S.compositeVideoConfig,playerApi:c})});
S.addOnDisposeCallback(Q);_.IN(f)})},ETp=function(S){var c,Q,f,U,a,X,z,x;
_.O(function(I){return I.nextAddress==1?(c=S.JSC$20367_watchApi.getPlayerResponse(),a=_.Y((Q=c)==null?void 0:(f=Q.overlay)==null?void 0:(U=f.playerControlsOverlayRenderer)==null?void 0:U.compositeVideoOverlay,vfT),x=(X=c)==null?void 0:(z=X.playerConfig)==null?void 0:z.compositeVideoConfig,a&&S.setCompositeVideoOverlayRenderer(a),x&&S.setCompositeVideoConfig(x),a&&x?S.container?I.jumpTo(6):_.F(I,y9T(S),6):oTp(S)?_.F(I,R$g(S),0):I.jumpTo(0)):oTp(S)?I.jumpTo(0):_.F(I,VvT(S),0)})},oTp=function(S){var c;
return!((c=S.container)==null||!c.parentElement)};
_.tvU.prototype.disposeInternal=function(){oTp(this)&&R$g(this);_.C9.prototype.disposeInternal.call(this)};_.fFG=function(S){_.C9.call(this);var c=this;this.JSC$20373_watchApi=S;var Q=this.JSC$20373_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var f=c.JSC$20373_watchApi.getPlayerResponse();if(f){var U,a;if(f=_.Y((U=f.endscreen)==null?void 0:(a=U.endscreenRenderer)==null?void 0:a.hideButton,_.CS)){var X;(X=c.setEndscreenHideButton)==null||X.call(c,f);mtE(c)}}});
this.addOnDisposeCallback(function(){c.JSC$20373_watchApi.unsubscribeByKey(Q)});
S=_.A(_.ny({},void 0,"PPHRb"));this.endscreenHideButton=S.next().value;this.setEndscreenHideButton=S.next().value;Sv8(this);cuE(this);QbZ(this)};
_.C(_.fFG,_.C9);var mtE=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return S.creatorEndscreenHideButtonContainer?f.return():_.F(f,S.JSC$20373_watchApi.playerApi,2);c=f.yieldResult;S.creatorEndscreenHideButtonContainer=document.createElement("div");_.Va(S.creatorEndscreenHideButtonContainer,!1);c.setCreatorEndscreenHideButton(S.creatorEndscreenHideButtonContainer);Q=_.hS(S.creatorEndscreenHideButtonContainer,function(){return _.B(_.qs,{data:S.endscreenHideButton,useOutlinedIcon:!0})});
S.addOnDisposeCallback(function(){Q();c.setCreatorEndscreenHideButton(void 0)});
_.IN(f)})},Sv8=function(S){var c,Q;
_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20373_watchApi.playerApi,2);c=f.yieldResult;Q=function(){S.creatorEndscreenHideButtonContainer&&_.Va(S.creatorEndscreenHideButtonContainer,!0)};
c.addEventListener("endscreenelementshown",Q);S.addOnDisposeCallback(function(){c.removeEventListener("endscreenelementshown",Q)});
_.IN(f)})},cuE=function(S){var c=function(){S.creatorEndscreenHideButtonContainer&&_.Va(S.creatorEndscreenHideButtonContainer,!1)},Q=S.JSC$20373_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",c),f=S.JSC$20373_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",c);
S.addOnDisposeCallback(function(){S.JSC$20373_watchApi.unsubscribeByKey(Q);S.JSC$20373_watchApi.unsubscribeByKey(f)})},QbZ=function(S){S.JSC$20373_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(c){var Q=_.Y(c,WBp);
S.JSC$20373_watchApi.playerApi.then(function(f){f==null||f.setCreatorEndscreenVisibility(!!Q.hide)})});
S.addOnDisposeCallback(function(){S.JSC$20373_watchApi.unregisterActionHandler("yt-change-creator-endscreen-visibility-command")})};_.JuE=function(S){_.C9.call(this);this.JSC$20379_watchApi=S;UCT(this)};
_.C(_.JuE,_.C9);var UCT=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20379_watchApi.playerApi,2);c=f.yieldResult;Q=function(U){_.V5().dispatch(_.aB({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:U}}))};
c.addEventListener("onRetroModeChanged",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onRetroModeChanged",Q)});
_.IN(f)})};var w0=0,TH=0,sf=0;var aFO;aFO=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]);_.Ti=function(S){_.C9.call(this);this.JSC$20392_watchApi=S;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;AuV(this)};
_.C(_.Ti,_.C9);
var AuV=function(S){var c,Q,f;_.O(function(U){if(U.nextAddress==1)return _.F(U,S.JSC$20392_watchApi.playerApi,2);c=U.yieldResult;if(S.isDisposed())return U.return();S.sessionStorage=_.w_2("yt-sleep-timer");S.sessionStorage||_.i5(new _.Yr("SessionStorage for Sleep Timer is undefined."));((Q=S.sessionStorage)==null?void 0:Q.get("yt-sleep-timer"))==="true"&&(zg0(),(f=S.sessionStorage)==null||f.remove("yt-sleep-timer"),c.syncVolume());XUV(S,c);O7B(S,c);z4Z(S,c);_.IN(U)})},XUV=function(S,c){var Q=function(I){S.onSleepTimerSettingsChanged(I,
c)},f=function(I){S.onPlayerStateChange(I,c)},U=function(){S.onLoopChange(c)},a=function(){S.onCloseMiniplayer(c)},X=function(){aaE(c,(0,_.Qk)(),x2Z(c),S.selectedOption==="End of video",c.getPlayerState()!==1)},z=function(){S.onSeekComplete(c)},x=function(){_.Mq.cancelJob(TH);
var I=c.getCurrentTime()>=c.getDuration(),n=S.selectedOption==="End of video"||S.selectedOption==="End of playlist"&&!faU(S.playlistId);I&&n&&xCE(S,c)};
c.addEventListener("onSleepTimerSettingsChanged",Q);c.addEventListener("onLoopChange",U);c.addEventListener("onLoopRangeChange",U);c.addEventListener("onStateChange",f);c.addEventListener("onCloseMiniplayer",a);c.addEventListener("onSleepTimerFeatureAvailable",X);c.addEventListener("SEEK_COMPLETE",z);c.addEventListener("onAdStart",x);S.addOnDisposeCallback(function(){c.removeEventListener("onSleepTimerSettingsChanged",Q);c.removeEventListener("onLoopChange",U);c.removeEventListener("onLoopRangeChange",
U);c.removeEventListener("onStateChange",f);c.removeEventListener("onCloseMiniplayer",a);c.removeEventListener("onSleepTimerFeatureAvailable",X);c.removeEventListener("SEEK_COMPLETE",z);c.removeEventListener("onAdStart",x)})},O7B=function(S,c){var Q=S.JSC$20392_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var f=c.getVideoData().video_id,U,a=(U=cs1(S.JSC$20392_watchApi))==null?void 0:U.playlistId;
S.pauseAutonavPlayback&&(c.pauseVideo(),c.syncVolume(),S.pauseAutonavPlayback=!1);if(S.selectedOption==="End of video"&&f!==S.videoId)ws(S,c);else{if(S.selectedOption==="End of playlist"){U=faU(S.playlistId);if(a!==S.playlistId){ws(S,c);break a}U?U&&FX0(S,c):B7O(S,c)}S.videoId=f;S.playlistId=a}}});
S.addOnDisposeCallback(function(){S.JSC$20392_watchApi.unsubscribeByKey(Q)})},z4Z=function(S,c){var Q=_.fl().resolve(_.kR),f=_.Kt(Q,_.IwM,function(a){a&&S.selectedOption!=="Off"&&ws(S,c)}),U=S.JSC$20392_watchApi.subscribeToActiveChanged(function(a){var X,z;
return _.O(function(x){if(x.nextAddress==1)return _.F(x,_.bn().navigationFinishPromise,2);X=!_.oJz();z=_.fl().resolve(_.ra).isMiniplayerActive();a||!qv(S.selectedOption)||z||X||ws(S,c);_.IN(x)})},!1);
Q=_.Kt(Q,function(a){return a.entities.playlistLoopStateEntity||{}},function(a){a=a===void 0?{}:a;
var X=QcO(S.JSC$20392_watchApi);if(X){var z;((z=a[X])==null?void 0:z.state)==="PLAYLIST_LOOP_STATE_ALL"&&qv(S.selectedOption)&&ws(S,c)}});
S.addOnDisposeCallback(f);S.addOnDisposeCallback(Q);S.addOnDisposeCallback(U)};
_.Ti.prototype.onSleepTimerSettingsChanged=function(S,c){switch(S){case "Off":this.selectedOption!=="Off"&&ws(this,c);break;case "End of video":case "End of playlist":IFZ(this,S,c);break;default:IFZ(this,S,c,aFO.get(S))}};
_.Ti.prototype.onLoopChange=function(S){(S.getLoopVideo()||S.getLoopRange())&&qv(this.selectedOption)&&ws(this,S)};
_.Ti.prototype.onCloseMiniplayer=function(S){qv(this.selectedOption)&&ws(this,S)};
var IFZ=function(S,c,Q,f){neV(S,Q);S.selectedOption=c;S.videoId=Q.getVideoData().video_id;S.playlistId="";var U;(U=S.sessionStorage)==null||U.set("yt-sleep-timer","true");S.adjustmentsCount++;aaE(Q,(0,_.Qk)(),x2Z(Q),S.selectedOption==="End of video");if(S.selectedOption==="End of video")B7O(S,Q),b7G(S,Q);else if(S.selectedOption==="End of playlist"){b7G(S,Q);var a,X;S.playlistId=(X=(a=cs1(S.JSC$20392_watchApi))==null?void 0:a.playlistId)!=null?X:"";faU(S.playlistId)||B7O(S,Q)}else f&&(S.presetFadeSchedulerId=
_.u9(_.Mq,function(){Xv2(Q,15E3)},f-15E3),S.presetPauseSchedulerId=_.u9(_.Mq,function(){xCE(S,Q)},f),AsN(Q,(0,_.Qk)(),f))},xCE=function(S,c){if(S.JSC$20392_watchApi.isActive()){var Q={dismissDialogEndpoint:{}};
var f={commandExecutorCommand:{commands:[Q,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};Q={buttonViewModel:{title:_.K8("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:Q}}};f={buttonViewModel:{title:_.K8("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:f}}};var U={dialogHeaderViewModel:{headline:{content:_.K8("SLEEP_TIMER_ENDED_TITLE")}}},
a={basicContentViewModel:{paragraphs:[{text:{content:_.K8("SLEEP_TIMER_ENDED_TEXT")}}]}};Q={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:U,content:a,footer:{panelFooterViewModel:{primaryButton:Q,secondaryButton:f,shouldHideDivider:!0}}}}}}};_.fl().resolve(_.U8).resolveCommand(Q,{form:{element:S}})}else zg0();N7V(S,!1);KX8(S,c);c.pauseVideo();_.oJ.getInstance().getState()===2&&c.getPlayerState()===5&&(S.pauseAutonavPlayback=!0)},ws=function(S,c){N7V(S,!0);
KX8(S,c);zg0()},KX8=function(S,c){neV(S,c);
S.selectedOption="Off";S.videoId="";S.playlistId="";S.adjustmentsCount=0;var Q;(Q=S.sessionStorage)==null||Q.remove("yt-sleep-timer");_.Mq.cancelJob(w0);c.resetSleepTimerMenuSettings()},N7V=function(S,c){c={timer_length_adjustment_times_during_session:S.adjustmentsCount-1,
is_session_cancelled:c};switch(S.selectedOption){case "Off":c.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":c.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:c.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",c.option_duration_in_minutes=aFO.get(S.selectedOption)/6E4}_.Te("sleepTimerSessionFinishEvent",c)};
_.Ti.prototype.onPlayerStateChange=function(S,c){S===1?aaE(c,(0,_.Qk)(),x2Z(c),this.selectedOption==="End of video"):S===0?(_.Mq.cancelJob(TH),c.setVideoTimeLeft(Jsp(0,0))):S===2&&_.Mq.cancelJob(TH);this.selectedOption==="End of video"?S===0?xCE(this,c):S===2&&Ou1(c):this.selectedOption!=="End of playlist"||faU(this.playlistId)||(S===0?xCE(this,c):S===2&&Ou1(c))};
_.Ti.prototype.onSeekComplete=function(S){S.getPlayerState()===2&&aaE(S,(0,_.Qk)(),x2Z(S),this.selectedOption==="End of video",!0)};
_.Ti.prototype.onCueRangeEnter=function(S,c){S==="sleep-timer-fade-audio"&&Xv2(c,(c.getDuration()-c.getProgressState().current)*1E3)};
_.Ti.prototype.onCueRangeExit=function(S,c){S==="sleep-timer-fade-audio"&&c.getPlayerState()!==0&&Ou1(c,!0)};
var B7O=function(S,c){c.addCueRange("sleep-timer-fade-audio",c.getDuration()-15,c.getDuration());c.addEventListener("onCueRangeEnter",function(Q){S.onCueRangeEnter(Q,c)});
c.addEventListener("onCueRangeExit",function(Q){S.onCueRangeExit(Q,c)})},FX0=function(S,c){c.removeCueRange("sleep-timer-fade-audio");
c.removeEventListener("onCueRangeEnter",function(Q){S.onCueRangeEnter(Q,c)});
c.removeEventListener("onCueRangeExit",function(Q){S.onCueRangeExit(Q,c)})},neV=function(S,c){qv(S.selectedOption)?FX0(S,c):(_.Mq.cancelJob(S.presetPauseSchedulerId),_.Mq.cancelJob(S.presetFadeSchedulerId),S.presetPauseSchedulerId=0,S.presetFadeSchedulerId=0);
Ou1(c,!0)},b7G=function(S,c){c.setLoop(!1);
c.setLoopVideo(!1);c.setLoopRange(null);(S=QcO(S.JSC$20392_watchApi))&&_.fl().resolve(_.kR).dispatch(_.Ns("playlistLoopStateEntity",S,{key:S,state:"PLAYLIST_LOOP_STATE_NONE"}))};_.lFp=function(S){_.C9.call(this);this.JSC$20395_watchApi=S;$CU(this);uYE(this);jb0(this);S=S.getRoot();if(S.is==="ytd-watch-flexy"||S.is==="ytd-watch-grid")S.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.YKp();_.u("web_watch_log_theater_mode_cookie_state")&&_.Kl.get("wide","0")==="1"&&_.Lso("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.C(_.lFp,_.C9);var $CU=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20395_watchApi.playerApi,2);c=f.yieldResult;Q=function(U){YvT(S,!!U)};
c.addEventListener("SIZE_CLICKED",Q);S.addOnDisposeCallback(function(){c.removeEventListener("SIZE_CLICKED",Q)});
_.IN(f)})},uYE=function(S){S.JSC$20395_watchApi.registerActionHandler("yt-toggle-theater-mode",function(c,Q){YvT(S,c,Q===void 0?!0:Q)});
S.addOnDisposeCallback(function(){S.JSC$20395_watchApi.unregisterActionHandler("yt-toggle-theater-mode")})};
_.lFp.prototype.getState=function(){return _.WK(_.V5().getState())};
var YvT=function(S,c,Q){Q=Q===void 0?!0:Q;var f,U,a,X=_.u("enable_player_resize_transition")&&!!S.JSC$20395_watchApi.getWatchNextResponse()&&!((f=S.JSC$20395_watchApi.getWatchNextResponse())==null?0:(U=f.contents)==null?0:(a=U.twoColumnWatchNextResults)==null?0:a.conversationBar);_.sng(function(){_.V5().dispatch(_.aB({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:c}}));_.u("theater_mode_scroll_to_top_killswitch")||S.JSC$20395_watchApi.scrollWatchTo(0,!1);_.f8()&&_.u("external_fullscreen")&&_.Uz(document.documentElement);
jb0(S);Q&&_.$r("wide",c?"1":"0",-1);_.XF(S.JSC$20395_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);S.JSC$20395_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:c});c&&_.YKp()},{shouldWrap:X})},jb0=function(S){var c;
_.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.JSC$20395_watchApi.playerApi,2);c=Q.yieldResult;c.setSizeStyle(!0,S.getState());_.IN(Q)})};var DCE=function(S){_.C9.call(this);var c=this;this.playerApi=S;this.timeToPanelSyncKeyMap={};var Q;if(S==null?0:(Q=S.isReady)==null?0:Q.call(S)){Q=_.Kt(_.fl().resolve(_.kR),function(U){return U.entities.timedMarkersListSyncEntity||{}},function(U,a){U=U===void 0?{}:U;
a=a===void 0?{}:a;for(var X=_.A(Object.keys(a)),z=X.next();!z.done;z=X.next())z=z.value,U[z]!==a[z]&&CPZ(c,a[z]);a=_.A(Object.keys(U));for(X=a.next();!X.done;X=a.next())X=X.value,z=U[X],c.timeToPanelSyncKeyMap[X]&&H7p(c,z)});
this.addOnDisposeCallback(Q);var f=function(U){c.onCueRangeEnter(U)};
S.addEventListener("onCueRangeEnter",f);this.addOnDisposeCallback(function(){var U;(U=S.removeEventListener)==null||U.call(S,"onCueRangeEnter",f)})}};
_.C(DCE,_.C9);
var H7p=function(S,c){var Q,f;if((Q=S.playerApi)==null?0:(f=Q.isReady)==null?0:f.call(Q)){var U;if((Q=c==null?void 0:(U=c.timedListData)==null?void 0:U.sections)&&c!=null&&c.key)for(U=_.A(Q),Q=U.next();!Q.done;Q=U.next())if(Q=Q.value,Q.timedSyncDataList&&Q.sectionId)for(f=0;f<Q.timedSyncDataList.length;f++){var a=Q.timedSyncDataList[f];a.syncItemId&&S.playerApi.addCueRange(Q.sectionId+"_"+c.key+"_"+a.syncItemId,Number(a.videoTimeMs)/1E3,f===Q.timedSyncDataList.length-1?0x8000000000000:Number(Q.timedSyncDataList[f+
1].videoTimeMs)/1E3)}}},CPZ=function(S,c){var Q,f;
if((Q=S.playerApi)==null?0:(f=Q.isReady)==null?0:f.call(Q)){var U;if((Q=c==null?void 0:(U=c.timedListData)==null?void 0:U.sections)&&c!=null&&c.key)for(U=_.A(Q),Q=U.next();!Q.done;Q=U.next())if(Q=Q.value,Q.timedSyncDataList&&Q.sectionId){f=_.A(Q.timedSyncDataList);for(var a=f.next();!a.done;a=f.next())a=a.value,a.syncItemId&&S.playerApi.removeCueRange(Q.sectionId+"_"+c.key+"_"+a.syncItemId)}}};
DCE.prototype.onCueRangeEnter=function(S){for(var c=_.A(Object.keys(this.timeToPanelSyncKeyMap)),Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=_.A(S.split("_"+Q+"_")),U=f.next().value;f=f.next().value;if(U&&f){S=_.fl().resolve(_.kR);c=this.timeToPanelSyncKeyMap[Q];var a=_.Ywr(S.getState(),c);Q=pUp(Q,U,f);if(Q===-1)break;Q={activeSyncId:f,activeItemIndex:Q,activeSectionInfo:{sectionIdentifier:U}};a?S.dispatch(_.TI("markersEngagementPanelSyncEntity",c,Q)):S.dispatch(_.Ns("markersEngagementPanelSyncEntity",
c,Object.assign({},{key:c},Q)));break}}};
var pUp=function(S,c,Q){var f=_.fl().resolve(_.kR),U,a;S=(U=$WB(f.getState(),S))==null?void 0:(a=U.timedListData)==null?void 0:a.sections;if(!S)return-1;U=0;a=_.A(S);for(S=a.next();!S.done;S=a.next()){S=S.value;f=S.timedSyncDataList||[];if(S.sectionId===c)return c=f.findIndex(function(X){return X.syncItemId===Q}),c===-1?c:U+c;
U+=f.length}return-1};_.T7O=function(S){_.C9.call(this);var c=this;this.JSC$20407_watchApi=S;this.unresolvedCommands=[];this.JSC$20407_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(Q){h4p(c,Q)});
this.addOnDisposeCallback(function(){c.JSC$20407_watchApi.unregisterActionHandler("yt-update-timed-markers-sync-observer-command")});
qvg(this)};
_.C(_.T7O,_.C9);var qvg=function(S){var c;_.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.JSC$20407_watchApi.playerApi,2);c=Q.yieldResult;if(S.isDisposed())return Q.return();S.timedSyncObserver=new DCE(c);S.unresolvedCommands.length&&(S.unresolvedCommands.forEach(function(f){return h4p(S,f)}),S.unresolvedCommands=[]);
_.F5(S,S.timedSyncObserver);_.IN(Q)})},h4p=function(S,c){if(S.timedSyncObserver){var Q=_.Y(c,egB);
if(Q&&Q.timedSyncEntityKey&&Q.panelSyncEntityKey){S=S.timedSyncObserver;c=Q.timedSyncEntityKey;var f=Q.panelSyncEntityKey;Q=!!Q.isEnabled;Q=Q===void 0?!0:Q;var U=_.fl().resolve(_.kR);U=$WB(U.getState(),c);Q?S.timeToPanelSyncKeyMap[c]||(S.timeToPanelSyncKeyMap[c]=f,H7p(S,U)):(delete S.timeToPanelSyncKeyMap[c],CPZ(S,U))}}else S.unresolvedCommands.push(c)};var wU2=_.y_(function(S){var c=S.data,Q=S.maybeLogSmartSkipClientData,f=_.EH("ytw-timely-action-view-model");_.LS(f,function(){return c().rendererContext},{onTap:function(n,b){b({disableClickTracking:!0})}});
var U=null,a=null,X=_.u("web_enable_auto_focus_for_timely_action_button"),z=function(){U=document.activeElement},x=function(){c().smartSkipMetadata&&(U=document.activeElement,_.Qup(function(){return a}))},I=function(n){if(c().smartSkipMetadata&&(!n||n.key!=="Enter")){U&&U.isConnected&&(_.Qup(function(){return U}),U=null);
var b;(b=a)==null||b.blur()}};
S=_.$d(function(){Q==null||Q(!0,c());return!1});
_.cn(f,{visibilityCallback:function(n){if(X)n?a&&c().smartSkipMetadata&&(x(),document.addEventListener("focusin",z)):(document.removeEventListener("focusin",z),I());else if(n&&_.u("web_ephemeral_actions")){n=_.vK(c().rendererContext);var b=Number(c().maxVisibleDurationMilliseconds),N,l=(N=_.Y(c().rendererContext,_.jT))==null?void 0:N.label;n&&b&&l&&(N={label:l,command:n,durationMs:b},_.fl().resolve(_.Fj).enqueue(N))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.qR(function(){if(X){var n;if((a=(n=f.value)==null?void 0:n.querySelector("button"))&&c().smartSkipMetadata){var b;(b=f.value)==null||b.addEventListener("keydown",I)}}});
_.wX(function(){X&&(a&&c().smartSkipMetadata&&a.removeEventListener("keydown",I),document.removeEventListener("focusin",z),I())});
return _.B("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:f,"on:click":S},_.B(_.h8,{data:function(){return c().content}},{buttonViewModel:_.Ze}))},"tj");var sb1=_.y_(function(S){var c=S.data,Q=S.playerApi,f=_.fl().resolve(_.ZG_);S=_.A(_.l8(function(){c()}));
var U=S.next().value,a=S.next().value,X=function(){return BG2(c(),U())},z=function(I,n){var b,N,l=(b=_.Y(n==null?void 0:n.rendererContext,_.$z))==null?void 0:(N=b.loggingDirectives)==null?void 0:N.trackingParams;
if((n=n==null?void 0:n.smartSkipMetadata)&&n.loggingData&&(N=n.loggingData,n=N.algorithmId,b=N.startMilliseconds,N=N.endMilliseconds,n&&b!==void 0&&N!==void 0)){var H,q;I={smartSkipData:Object.assign({},{versionName:n,startMediaTimeMs:b,endMediaTimeMs:N},I&&{userInteractionMediaTimeMs:(Math.floor(((H=_.S9())==null?void 0:(q=H.getPlayer())==null?void 0:q.getCurrentTime())||0)*1E3).toString()})};H=_.wN();var w;l&&(w=_.Yz(l));H&&w&&_.yw(H,w,I)}},x=function(I,n){var b=BG2(c(),I);
if(b){var N=_.Y(b,Mv),l;if(l=n)l=Q(),b=_.Y(b,Mv),l=b!=null&&b.smartSkipMetadata?!(l==null?0:l.isSameMarkerTypeVisible((b==null?void 0:b.smartSkipMetadata.markerKey)||"")):!0;if(l){var H,q;(N==null?0:(H=N.smartSkipMetadata)==null?0:(q=H.loggingData)==null?0:q.isCounterfactual)||(z(!1,N),a(I))}else n||U()!==I||a(void 0)}};
_.To(function(){var I=c().timelyActions;if(I){I=_.A(I);for(var n=I.next();!n.done;n=I.next()){n=_.Y(n.value,Mv);var b=void 0;(b=n)!=null&&b.cueRangeId&&f.timelyActionsMap.set(n.cueRangeId,x)}_.wX(function(){f.timelyActionsMap.clear()})}},"Z1Qwtc");
return _.B("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.B(_.h8,{data:X},{timelyActionViewModel:function(I){return _.B(wU2,{data:I.data,maybeLogSmartSkipClientData:function(){z(!0,_.Y(X(),Mv))}})}}))},"uj");_.i7g=function(S){_.C9.call(this);this.JSC$20419_watchApi=S;S=_.A(_.ny({},void 0,"pLDp2"));this.timelyActionsOverlay=S.next().value;this.setTimelyActionsOverlay=S.next().value;MQZ(this)};
_.C(_.i7g,_.C9);var MQZ=function(S){var c,Q,f,U;_.O(function(a){if(a.nextAddress==1)return Z7N(S),GtG(S),S.timelyActionsContainer=document.createElement("div"),_.F(a,S.JSC$20419_watchApi.playerApi,2);c=a.yieldResult;(f=(Q=c).insertTimelyActionUi)==null||f.call(Q,S.timelyActionsContainer);U=_.hS(S.timelyActionsContainer,function(){return _.B(sb1,{data:S.timelyActionsOverlay,playerApi:c})});
S.addOnDisposeCallback(U);_.IN(a)})},GtG=function(S){var c=S.JSC$20419_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){Z7N(S)});
S.addOnDisposeCallback(function(){S.JSC$20419_watchApi.unsubscribeByKey(c)})},Z7N=function(S){var c=S.JSC$20419_watchApi.getWatchNextResponse();
if(c){var Q,f;if(c=_.Y((Q=c.playerOverlays)==null?void 0:(f=Q.playerOverlayRenderer)==null?void 0:f.timelyActionsOverlayViewModel,kYp)){var U;(U=S.setTimelyActionsOverlay)==null||U.call(S,c)}}};_.geE=function(S){_.C9.call(this);this.JSC$20423_watchApi=S;WXE(this)};
_.C(_.geE,_.C9);var WXE=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20423_watchApi.playerApi,2);c=f.yieldResult;Q=function(U){_.BI.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.Y(U,_.E2N)},popupType:"TOAST"}})};
c.addEventListener("onYtShowToast",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onYtShowToast",Q)});
_.IN(f)})};var e4Z,dCg,ktN,ruG,EeU,PPB,LX1,VQ8,R4G;e4Z=!1;_.veG=function(S){_.C9.call(this);this.JSC$20426_watchApi=S;this.fullscreen=this.theater=!1;ktN(this);ruG(this);dCg(this)};
_.C(_.veG,_.C9);dCg=function(S){var c,Q,f;_.O(function(U){if(U.nextAddress==1)return _.F(U,S.JSC$20426_watchApi.playerApi,2);c=U.yieldResult;if(S.isDisposed())return U.return();Q=S.JSC$20426_watchApi.getElement("CINEMATICS");if(!Q)return U.return();S.JSC$20426_cinematicController=new _.Ji(Q,c);_.F5(S,S.JSC$20426_cinematicController);_.nPN(S.JSC$20426_cinematicController);PPB(S,_.Fyo());f=S.JSC$20426_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(a){LX1(S,a)});
S.addOnDisposeCallback(function(){S.JSC$20426_watchApi.unsubscribeByKey(f)});
EeU(S);LX1(S,S.JSC$20426_cinematicController.isAllowed());_.tQU(S,S.fullscreen,S.theater);VQ8(S);_.IN(U)})};
ktN=function(S){var c=S.JSC$20426_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){EeU(S)});
S.addOnDisposeCallback(function(){S.JSC$20426_watchApi.unsubscribeByKey(c)})};
ruG=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20426_watchApi.playerApi,2);c=f.yieldResult;Q=function(U){PPB(S,U)};
c.addEventListener("cinematicSettingsToggleChange",Q);S.addOnDisposeCallback(function(){c.removeEventListener("cinematicSettingsToggleChange",Q)});
_.IN(f)})};
EeU=function(S){var c=S.JSC$20426_watchApi.getWatchNextResponse(),Q;c=_.Y(c==null?void 0:(Q=c.pageVisualEffects)==null?void 0:Q[0],_.lP);var f;(f=S.JSC$20426_cinematicController)==null||_.NIp(f,c)};
PPB=function(S,c){var Q;(Q=S.JSC$20426_cinematicController)==null||_.bY1(Q,c);R4G(S)};
LX1=function(S,c){var Q;_.O(function(f){if(f.nextAddress==1)return _.u("kevlar_watch_cinematics_invisible")&&(c=!1),_.F(f,S.JSC$20426_watchApi.playerApi,2);Q=f.yieldResult;Q.updateCinematicSettings(c);R4G(S);_.IN(f)})};
VQ8=function(S){var c=_.jL();if(_.u("kevlar_measure_ambient_mode_idle")&&!c.getFlag(192)&&!e4Z){e4Z=!0;var Q=_.HG(_.Mq,function(){_.fl().resolve(_.qdg).start(1E4)},5E3);
S.addOnDisposeCallback(function(){_.Mq.cancelJob(Q);_.fl().resolve(_.qdg).stop()})}};
_.tQU=function(S,c,Q){S.fullscreen=c;S.theater=Q;var f;(f=S.JSC$20426_cinematicController)==null||f.setFullscreen(S.fullscreen,S.theater);if(_.u("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(S.theater||S.fullscreen){var U;(U=S.JSC$20426_cinematicController)==null||_.KTG(U)}else if((S=S.JSC$20426_cinematicController)!=null){var a;(a=S.currentCinematicEffect)==null||a.pause()}};
R4G=function(S){if(_.u("web_cinematic_theater_mode")||_.u("web_cinematic_fullscreen")){var c;S.JSC$20426_watchApi.getRoot().toggleCinematicsActive(!((c=S.JSC$20426_cinematicController)==null||!c.isEnabled()))}};_.SNE=function(S){_.C9.call(this);var c=this;this.JSC$20429_watchApi=S;this.commentsReady=!1;this.setCommentsJobId=0;S=_.Kt(_.V5(),_.D_,function(){yuU(c)});
this.addOnDisposeCallback(S);var Q=this.JSC$20429_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){oeT(c)}),f=this.JSC$20429_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){oeT(c)});
this.addOnDisposeCallback(function(){c.JSC$20429_watchApi.unsubscribeByKey(Q);c.JSC$20429_watchApi.unsubscribeByKey(f)});
var U=function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&mCG(c,"false")};
this.JSC$20429_watchApi.getRoot().addEventListener("yt-page-data-will-update",U);this.addOnDisposeCallback(function(){c.JSC$20429_watchApi.getRoot().removeEventListener("yt-page-data-will-update",U)});
oeT(this)};
_.C(_.SNE,_.C9);var oeT=function(S){S.commentsReady=!1;_.Mq.cancelJob(S.setCommentsJobId);S.setCommentsJobId=_.HG(_.Mq,function(){yuU(S)},1E3)},yuU=function(S){if(!S.commentsReady){_.i2("cmi");
_.Mq.cancelJob(S.setCommentsJobId);var c,Q,f,U,a=(c=S.JSC$20429_watchApi.getWatchNextResponse())==null?void 0:(Q=c.contents)==null?void 0:(f=Q.twoColumnWatchNextResults)==null?void 0:(U=f.results)==null?void 0:U.results.contents;c=void 0;if(a&&a.length)for(a=_.A(a),Q=a.next();!Q.done;Q=a.next())if(Q=Q.value,U=f=void 0,((f=Q)==null?void 0:(U=f.itemSectionRenderer)==null?void 0:U.sectionIdentifier)==="comment-item-section"){_.u("web_watch_provide_undefined_comments")?c=Q.itemSectionRenderer:S.JSC$20429_watchApi.provideRenderingData("COMMENTS",
Q.itemSectionRenderer);mCG(S,"true");break}_.u("web_watch_provide_undefined_comments")&&S.JSC$20429_watchApi.provideRenderingData("COMMENTS",c);S.commentsReady=!0;S.JSC$20429_watchApi.dispatchEvent("yt-watch-comments-ready")}},mCG=function(S,c){var Q;
(Q=S.JSC$20429_watchApi.getElement("COMMENTS"))==null||Q.setAttribute("canScheduleJobs",c)};_.Z1=function(S){_.C9.call(this);var c=this;this.JSC$20432_watchApi=S;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.u("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.u("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.u("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.a6("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)cIp(this);
else{var Q=this.JSC$20432_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){so(c);MT(c)}),f=this.JSC$20432_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){i6(c);
MT(c)});
this.JSC$20432_watchApi.getRoot().is==="ytd-watch-grid"&&_.u("swatcheroo_pbs_load_grid")&&(QdV(this),ft8(this));this.addOnDisposeCallback(function(){c.JSC$20432_watchApi.unsubscribeByKey(Q);c.JSC$20432_watchApi.unsubscribeByKey(f);_.Mq.cancelJob(c.provideRichGridJobId)});
so(this);i6(this)}};
_.C(_.Z1,_.C9);var cIp=function(S){var c=S.JSC$20432_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){S.providePlayerJobId=_.pS(_.Mq,function(){so(S);MT(S)},S.provideAllDataDelayMs)}),Q=S.JSC$20432_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){S.provideWatchNextJobId=_.pS(_.Mq,function(){i6(S);
MT(S)},S.provideAllDataDelayMs)}),f=S.JSC$20432_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){S.provideWatchNextJobId=_.pS(_.Mq,function(){i6(S);
MT(S)},S.provideAllDataDelayMs)});
S.JSC$20432_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.HG(_.Mq,function(){so(S);i6(S);MT(S)},100)});
S.JSC$20432_watchApi.addPageDisposeJob(function(){_.Mq.cancelJob(S.provideWatchNextJobId);_.Mq.cancelJob(S.providePlayerJobId)});
S.addOnDisposeCallback(function(){S.JSC$20432_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");S.JSC$20432_watchApi.unsubscribeByKey(c);S.JSC$20432_watchApi.unsubscribeByKey(Q);S.JSC$20432_watchApi.unsubscribeByKey(f);_.Mq.cancelJob(S.providePlayerJobId);_.Mq.cancelJob(S.provideWatchNextJobId)});
so(S);i6(S)},so=function(S){var c=S.JSC$20432_watchApi.getPlayerResponse(),Q,f,U=(f=c==null?void 0:(Q=c.playabilityStatus)==null?void 0:Q.messageRenderers)!=null?f:[],a,X;
c=(X=c==null?void 0:(a=c.playabilityStatus)==null?void 0:a.messages)!=null?X:[];a=_.A(c);for(X=a.next();!X.done;X=a.next())U.push({alertRenderer:{text:_.LK(X.value),type:"WARNING"}});S.JSC$20432_watchApi.provideRenderingData("ALERTS",U)},i6=function(S){var c=[],Q,f,U,a=S.JSC$20432_watchApi.getWatchNextResponse(),X,z,x,I,n=a==null?void 0:(X=a.contents)==null?void 0:(z=X.twoColumnWatchNextResults)==null?void 0:(x=z.results)==null?void 0:(I=x.results)==null?void 0:I.contents;
if(n)for(X=_.A(n),z=X.next();!z.done;z=X.next())if(z=z.value,z.videoPrimaryInfoRenderer)var b=z;else if(z.videoSecondaryInfoRenderer){var N=z;I=x=void 0;z=Object.assign({},(x=z.videoSecondaryInfoRenderer)==null?void 0:(I=x.metadataRowContainer)==null?void 0:I.metadataRowContainerRenderer);if(z.rows&&z.collapsedItemCount!==void 0){z.rows=z.rows.slice(0,z.collapsedItemCount).filter(function(t$){return!!t$.richMetadataRowRenderer});
z.collapsedItemCount=z.rows.length;var l={metadataRowContainerRenderer:z}}}else if(z.merchandiseShelfRenderer)var H=z;else if(z.ticketShelfRenderer)var q=z;else if(z.expandableMetadataRenderer)var w=z;else if(z.itemSectionRenderer)if(x=z.itemSectionRenderer.contents,I=void 0,S.directlyProvideComments&&((I=z.itemSectionRenderer)==null?void 0:I.sectionIdentifier)==="comment-item-section")_.i2("cmi"),S.JSC$20432_watchApi.provideRenderingData("COMMENTS",z.itemSectionRenderer);else if(x)for(z=_.A(x),x=
z.next();!x.done;x=z.next())if(x=x.value,x.commentsEntryPointHeaderRenderer)var g=x;else if(x.clarificationRenderer||x.infoPanelContainerRenderer||x.infoPanelContentRenderer||x.emergencyOneboxRenderer){c.push(x);var r=r||!!N}else x.limitedStateMessageRenderer?f=x:x.videoMetadataCarouselViewModel&&(U=x);if(_.u("web_watch_merch_in_sd_when_ticket_shelf_present")&&H&&q){var E=H;H=void 0}if(S.provideWatchNextSecondaryResults){var v,t,V;S.JSC$20432_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
a==null?void 0:(v=a.contents)==null?void 0:(t=v.twoColumnWatchNextResults)==null?void 0:(V=t.secondaryResults)==null?void 0:V.secondaryResults)}if(S.JSC$20432_watchApi.getRoot().is==="ytd-watch-grid"){var AZ,IH;S.JSC$20432_watchApi.provideRenderingData("LIVE_CHAT",a==null?void 0:(AZ=a.contents)==null?void 0:(IH=AZ.twoColumnWatchNextResults)==null?void 0:IH.conversationBar)}var Nr,Hc,qr,wp;(v=a==null?void 0:(Nr=a.contents)==null?void 0:(Hc=Nr.twoColumnWatchNextResults)==null?void 0:(qr=Hc.secondaryResults)==
null?void 0:(wp=qr.secondaryResults)==null?void 0:wp.offerModule)&&(v.donationShelfRenderer||v.donationUnavailableRenderer)&&S.JSC$20432_watchApi.getRoot().is!=="ytd-watch-grid"&&(Q=v);Nr=S.JSC$20432_watchApi.getPlayerResponse();if(!Nr||!_.aDx(Nr.playabilityStatus,a==null?void 0:a.playerOverlays)){var Pc;if(a==null?0:(Pc=a.contents)==null?0:Pc.singleColumnWatchNextResults){var ex,yd;var op=a==null?void 0:(ex=a.contents.singleColumnWatchNextResults.results)==null?void 0:(yd=ex.results)==null?void 0:
yd.contents}else{var DT,B_,zJ,Qp;Pc=!!(n==null?0:(DT=n[0])==null?0:(B_=DT.itemSectionRenderer)==null?0:(zJ=B_.contents)==null?0:(Qp=zJ[0])==null?0:Qp.backgroundPromoRenderer);var xl,xZ;DT=!!(a==null?0:(xl=a.contents)==null?0:(xZ=xl.twoColumnWatchNextResults)==null?0:xZ.secondaryResults);Pc&&!DT&&(op=n)}}n=c[0];xl=c[1];r&&c.length===1&&(xl=n,n=void 0);S.JSC$20432_watchApi.provideRenderingData("PRIMARY_INFO",b);S.JSC$20432_watchApi.provideRenderingData("SECONDARY_INFO",N);S.JSC$20432_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",
g);S.JSC$20432_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",U);S.JSC$20432_watchApi.provideRenderingData("CLARIFICATION",n);S.JSC$20432_watchApi.provideRenderingData("RICH_METADATA",l);S.JSC$20432_watchApi.provideRenderingData("MERCH_SHELF",H);_.u("web_watch_merch_in_sd_when_ticket_shelf_present")&&S.JSC$20432_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",E);S.JSC$20432_watchApi.provideRenderingData("TICKET_SHELF",q);S.JSC$20432_watchApi.provideRenderingData("LIMITED_STATE",f);S.JSC$20432_watchApi.getRoot().is!==
"ytd-watch-grid"&&S.JSC$20432_watchApi.provideRenderingData("DONATION_SHELF",Q);S.JSC$20432_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",op);S.JSC$20432_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",xl);S.JSC$20432_watchApi.provideRenderingData("EXPANDABLE_METADATA",w);if(S.swatcherooProvideAllDataOnScheduledJob){var hj,OT,uu,sd,LT,Ci;b=a==null?void 0:(hj=a.contents)==null?void 0:(OT=hj.twoColumnWatchNextResults)==null?void 0:(uu=OT.secondaryResults)==null?void 0:(sd=uu.secondaryResults)==
null?void 0:(LT=sd.results)==null?void 0:(Ci=LT[0])==null?void 0:Ci.richGridRenderer;S.JSC$20432_watchApi.provideRenderingData("RICH_GRID_RENDERER",b)}};
_.Z1.prototype.hasCompanionAds=function(S){var c,Q;return(Q=S==null?void 0:(c=S.adPlacements)==null?void 0:c.some(function(f){var U,a,X,z;return(f==null?void 0:(U=f.adPlacementRenderer)==null?void 0:(a=U.renderer)==null?void 0:a.actionCompanionAdRenderer)||(f==null?void 0:(X=f.adPlacementRenderer)==null?void 0:(z=X.renderer)==null?void 0:z.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?Q:!1};
var MT=function(S){if(!_.u("swaterdoo_ps_wn_handle_ks")){S.swatcherooProvideAllDataOnScheduledJob||ft8(S,3E3);var c=S.JSC$20432_watchApi.getPlayerResponse(),Q,f,U,a,X,z=(Q=S.JSC$20432_watchApi.getWatchNextResponse())==null?void 0:(f=Q.contents)==null?void 0:(U=f.twoColumnWatchNextResults)==null?void 0:(a=U.secondaryResults)==null?void 0:(X=a.secondaryResults)==null?void 0:X.offerModule;c=S.hasCompanionAds(c);var x,I;Q=(z==null?void 0:(x=z.tvfilmOfferModuleRenderer)==null?void 0:x.clientShouldSuppressIfCompanionAdDisplayed)||
(z==null?void 0:(I=z.unlimitedOfferModuleRenderer)==null?void 0:I.suppressIfCompanionAds);x=c&&Q;S.JSC$20432_watchApi.getRoot().is==="ytd-watch-grid"&&S.JSC$20432_watchApi.provideRenderingData("OFFER_MODULE",x?void 0:z)}},ft8=function(S,c){_.u("swatcheroo_pbs_load_grid")&&(S.provideRichGridJobId&&_.Mq.cancelJob(S.provideRichGridJobId),S.provideRichGridJobId=_.pS(_.Mq,function(){S.provideRichGridJobId=0;
var Q,f,U,a,X,z,x,I=(Q=S.JSC$20432_watchApi.getWatchNextResponse())==null?void 0:(f=Q.contents)==null?void 0:(U=f.twoColumnWatchNextResults)==null?void 0:(a=U.secondaryResults)==null?void 0:(X=a.secondaryResults)==null?void 0:(z=X.results)==null?void 0:(x=z[0])==null?void 0:x.richGridRenderer;I&&S.JSC$20432_watchApi.provideRenderingData("RICH_GRID_RENDERER",I)},c))},QdV=function(S){var c,Q;
_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20432_watchApi.playerApi,2);c=f.yieldResult;Q=function(){S.onPlaybackStart()};
c.addEventListener("onPlaybackStartExternal",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onPlaybackStartExternal",Q)});
_.IN(f)})};
_.Z1.prototype.onPlaybackStart=function(){ft8(this)};_.JIO=function(S){_.C9.call(this);var c=this;this.JSC$20442_watchApi=S;S.playerApi.then(function(Q){c.player=Q});
this.gestures=new _.OA(this.JSC$20442_watchApi.getRoot(),S.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(_.HQZ(_.V5().getState())&&_.D_(_.V5().getState())<=0)if(_.gJ(_.V5().getState())){var Q;(Q=c.player)==null||Q.toggleFullscreen()}else _.XF(c.JSC$20442_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
Ulg(this)};
_.C(_.JIO,_.C9);var Ulg=function(S){var c=_.Kt(_.V5(),_.gJ,function(Q){S.onFullscreenChanged(Q)});
S.addOnDisposeCallback(c);c=_.Kt(_.V5(),_.D_,function(Q){S.gestures&&(Q>0?S.gestures.detach():S.gestures.attach())});
S.addOnDisposeCallback(c)};
_.JIO.prototype.onFullscreenChanged=function(S){this.gestures&&this.gestures.update(S)};_.AI2=function(S){_.C9.call(this);var c=this;this.JSC$20445_watchApi=S;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
this.addOnDisposeCallback(S.subscribeToActiveChanged(function(Q){c.onActiveChanged(Q)}));
atT(this)};
_.C(_.AI2,_.C9);var XQE=function(S){if(_.u("swatcheroo_page_dispose_all_watch_data"))S.pageDisposalDataTypes=Object.values(h$V).filter(function(Q){return Q!=="PLAYLIST"});
else if(_.u("swatcheroo_page_dispose_rich_grid")){var c;(c=S.pageDisposalDataTypes)==null||c.push("RICH_GRID_RENDERER")}},atT=function(S){_.u("swatcheroo_enable_ghost_cards")&&(XQE(S),S.JSC$20445_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.Mq.cancelJob(S.clearDataJobId);
S.clearDataJobId=0}),S.runPageDisposeJob=function(){var c=_.fl().resolve(_.oZ).getDestinationPageType()==="watch";
S.clearDataJobId=_.pS(_.Mq,S.runClearDataJob,c?0:_.a6("web_watch_delay_page_dispose_ms",1E4))},S.runClearDataJob=function(){O_1(S)},S.runOnYtNavigateAwayFinish=function(){S.clearDataJobId&&(_.Mq.cancelJob(S.clearDataJobId),S.clearDataJobId=0,O_1(S))},document.addEventListener("yt-navigate-finish",S.runOnYtNavigateAwayFinish),S.JSC$20445_watchApi.addPageDisposeJob(S.runPageDisposeJob),S.addOnDisposeCallback(function(){S.JSC$20445_watchApi.removePageDisposeJob(S.runPageDisposeJob);
S.JSC$20445_watchApi.unregisterActionHandler("yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",S.runOnYtNavigateAwayFinish)}))},O_1=function(S){S.pageDisposalDataTypes.forEach(function(c){S.JSC$20445_watchApi.provideRenderingData(c,void 0)});
S.clearDataJobId=0};
_.AI2.prototype.onActiveChanged=function(S){S&&((S=document.querySelector("#watch-page-skeleton"))&&_.K9(S),z9E(this),document.body.removeAttribute("no-y-overflow"),_.gC("IS_SHELL_LOAD")&&_.Bwg())};
var z9E=function(S){_.O(function(c){if(c.nextAddress==1)return _.F(c,S.JSC$20445_watchApi.playerApi,2);_.RC();_.IN(c)})};var xl2;xl2=_.u("kevlar_watch_while_counterfactual")?0:.25;_.Gi=function(S){_.C9.call(this);this.JSC$20448_watchApi=S;this.JSC$20448_watchWhileEnabled=_.u("kevlar_watch_while_v2");this.pipEnabled=_.u("web_enable_pip_on_miniplayer");FbO(this);ByU(this);ItG(this)};
_.C(_.Gi,_.C9);var FbO=function(S){S.JSC$20448_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){nEZ(S)});
S.addOnDisposeCallback(function(){S.JSC$20448_watchApi.unregisterActionHandler("yt-activate-miniplayer-from-watch-action")})},ByU=function(S){var c,Q;
_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20448_watchApi.playerApi,2);c=f.yieldResult;Q=function(){nEZ(S)};
c.addEventListener("onCollapseMiniplayer",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onCollapseMiniplayer",Q)});
_.IN(f)})},ItG=function(S){var c=S.JSC$20448_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&c&&S.JSC$20448_watchWhileEnabled&&(S.playerIntersectionObserver=new IntersectionObserver(function(Q){S.handleIntersect(Q)},{threshold:[xl2]}),S.playerIntersectionObserver.observe(c),S.addOnDisposeCallback(function(){var Q;
(Q=S.playerIntersectionObserver)==null||Q.disconnect()}))},nEZ=function(S){var c,Q,f;
_.O(function(U){if(U.nextAddress==1){c=_.fl().resolve(_.oZ);Q=c.data;f=_.bFY(Q.response,Q.playerResponse);_.bn().miniplayerButtonActivation=!0;if(S.pipEnabled)return _.bn().watchPipActivation=!0,U.jumpTo(2);_.fl().resolve(_.ra).collapse();return _.F(U,_.bn().navigationFinishPromise,2)}if(U.nextAddress!=4)return _.bn().currentEndpoint=f.watchEndpoint||null,_.F(U,_.fl().resolve(_.ra).activate(S.JSC$20448_watchApi.getElement("PLAYER"),f,Q),4);_.bn().userActivation=!0;_.IN(U)})};
_.Gi.prototype.handleIntersect=function(S){b_g(this,S[S.length-1])};
var b_g=function(S,c){S.watchWhileJobId&&_.Mq.cancelJob(S.watchWhileJobId);S.watchWhileJobId=_.Mq.addLowPriorityJob(function(){var Q,f;return _.O(function(U){if(U.nextAddress==1)return S.watchWhileJobId=void 0,Q=_.fl().resolve(_.ra),c.intersectionRatio>xl2?Q.isMiniplayerActive()?_.F(U,Q.deactivate(),0):U.jumpTo(0):(f=!Q.isMiniplayerActive())?_.F(U,NyB(S),5):U.jumpTo(4);U.nextAddress!=4&&(f=U.yieldResult);if(!f)return U.jumpTo(0);_.bn().watchWhileActivation=!0;return _.F(U,KbZ(S),0)})},100)},NyB=function(S){return _.O(function(c){return c.nextAddress==
1?_.u("kevlar_watch_while_paused")?c.return(!0):_.F(c,S.isPlayerPlaying(),2):c.return(c.yieldResult)})};
_.Gi.prototype.isPlayerPlaying=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.JSC$20448_watchApi.playerApi,2);c=Q.yieldResult;return Q.return(c.getPlayerStateObject().isPlaying)})};
var KbZ=function(S){var c,Q;return _.O(function(f){c=_.fl().resolve(_.oZ).data;Q=_.bFY(c.response,c.playerResponse);_.bn().currentEndpoint=Q.watchEndpoint||null;return _.F(f,_.fl().resolve(_.ra).activate(S.JSC$20448_watchApi.getElement("PLAYER"),Q,c),0)})};_.jdE=function(S){_.C9.call(this);this.JSC$20452_watchApi=S;$lp(this);uIE(this)};
_.C(_.jdE,_.C9);var uIE=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20452_watchApi.playerApi,2);c=f.yieldResult;Q=function(U){var a;U.sessionData&&U.sessionData.itct&&(a=U.sessionData.itct);var X=U.watchEndpoint;if(X&&U.sessionData&&U.sessionData.autonav)X=_.W_H(X,a);else{var z;X=_.Q5(U.videoId,(z=U.listId)!=null?z:void 0,a)}a={endpoint:X};U.sessionData&&(a.tempData=U.sessionData);S.JSC$20452_watchApi.dispatchEvent("yt-navigate",a)};
c.addEventListener("onPlayVideo",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onPlayVideo",Q)});
_.IN(f)})},$lp=function(S){var c=function(Q){S.onYtNavigate(Q)};
S.JSC$20452_watchApi.getRoot().addEventListener("yt-navigate",c);S.addOnDisposeCallback(function(){S.JSC$20452_watchApi.getRoot().removeEventListener("yt-navigate",c)})};
_.jdE.prototype.onYtNavigate=function(S){var c=this,Q,f,U,a,X,z,x,I,n;return _.O(function(b){if(b.nextAddress==1){if(!((Q=S.detail)==null?0:(f=Q.endpoint)==null?0:f.watchEndpoint))return b.return();U=S.detail.endpoint.watchEndpoint;a=c.JSC$20452_watchApi.getWatchNextResponse();z=_.Y((X=a)==null?void 0:X.currentVideoEndpoint,_.tG);if(!z)return b.return();if(U.videoId!==z.videoId||U.playlistId&&U.playlistId!==z.playlistId||typeof U.startTimeSeconds!=="number")return b.jumpTo(0);S.stopPropagation();
(x=_.u("kevlar_watch_while_v2")&&!_.u("kevlar_watch_while_counterfactual"))&&_.fl().resolve(_.ra).isMiniplayerActive()||c.JSC$20452_watchApi.scrollWatchTo(0,!0);return _.F(b,c.JSC$20452_watchApi.playerApi,3)}I=b.yieldResult;n=U.startTimeSeconds;I.seekTo(n,void 0,void 0,void 0,84);I.wakeUpControls();n<I.getDuration()&&I.playVideo();_.IN(b)})};_.YN8=function(S){_.C9.call(this);var c=this;this.JSC$20455_watchApi=S;var Q=this.JSC$20455_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){ltO(c)});
this.addOnDisposeCallback(function(){c.JSC$20455_watchApi.unsubscribeByKey(Q)});
ltO(this)};
_.C(_.YN8,_.C9);var ltO=function(S){var c=S.JSC$20455_watchApi.getWatchNextResponse();if(c){var Q,f=[].concat(_.Hs((Q=c==null?void 0:c.engagementPanels)!=null?Q:[]));f.unshift.apply(f,_.Hs(Ctp(c)));S.JSC$20455_watchApi.provideRenderingData("ENGAGEMENT_PANELS",f)}},H_N=function(S){var c,Q,f,U=(c=S.engagementPanels)==null?void 0:(Q=c.find(function(l){var H;
return((H=l.engagementPanelSectionListRenderer)==null?void 0:H.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(f=Q.engagementPanelSectionListRenderer.content)==null?void 0:f.structuredDescriptionContentRenderer,a;
if(_.Y(U==null?void 0:(a=U.items)==null?void 0:a.find(function(l){return!!_.Y(l,Up8)}),Up8))return!0;
var X,z,x,I;if(S=(((X=S.contents)==null?void 0:(z=X.twoColumnWatchNextResults)==null?void 0:(x=z.results)==null?void 0:(I=x.results)==null?void 0:I.contents)||[]).find(function(l){return l.videoPrimaryInfoRenderer})){var n,b,N;
return(((n=S.videoPrimaryInfoRenderer)==null?void 0:(b=n.videoActions)==null?void 0:(N=b.menuRenderer)==null?void 0:N.flexibleItems)||[]).some(function(l){l=_.Y(l,_.XEJ);if(!l)return!1;var H,q;l=(H=l.topLevelButton)==null?void 0:(q=H.buttonViewModel)==null?void 0:q.onTap;if(!l)return!1;H=_.Gv(l);if(!H)return!1;var w;return((w=_.Y(H,_.M7))==null?void 0:w.panelIdentifier)==="PAyouchat"})}return!1},Ctp=function(S){var c=[];
if(!_.u("web_watch_inject_placeholder_fantasy_panel_killswitch")){var Q,f,U,a=(Q=S.engagementPanels)==null?void 0:(f=Q.find(function(z){var x;return((x=z.engagementPanelSectionListRenderer)==null?void 0:x.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(U=f.engagementPanelSectionListRenderer.content)==null?void 0:U.structuredDescriptionContentRenderer,X;
_.Y(a==null?void 0:(X=a.items)==null?void 0:X.find(function(z){return!!_.Y(z,iuO)}),iuO)&&(Q=_.E4z("PAsports_fantasy"),Q.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(Q))}H_N(S)&&(S=_.E4z("PAyouchat"),S.engagementPanelSectionListRenderer.targetId="PAyouchat",S.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",c.push(S));
return c};_.pQp=function(S){_.C9.call(this);this.JSC$20458_watchApi=S;DlN(this)};
_.C(_.pQp,_.C9);var DlN=function(S){S.JSC$20458_watchApi.registerActionHandler("yt-loop-command",function(c){h90(S,c)});
S.JSC$20458_watchApi.registerActionHandler("yt-repeat-chapter-command",function(c){qN8(S,c)});
S.addOnDisposeCallback(function(){S.JSC$20458_watchApi.unregisterActionHandler("yt-loop-command");S.JSC$20458_watchApi.unregisterActionHandler("yt-repeat-chapter-command")})},h90=function(S,c){var Q;
_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20458_watchApi.playerApi,2);Q=f.yieldResult;_.Y(c,GYB).loop?(Q.setLoopRange({startTimeMs:Number(_.Y(c,GYB).startTimeMs),endTimeMs:Number(_.Y(c,GYB).endTimeMs),postId:_.Y(c,GYB).postId,type:"clips"}),Q.playVideo()):Q.setLoopRange(null);_.IN(f)})},qN8=function(S,c){var Q,f;
_.O(function(U){if(U.nextAddress==1)return _.F(U,S.JSC$20458_watchApi.playerApi,2);Q=U.yieldResult;f=_.Y(c,rsZ).repeat;f==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(Q.setLoopRange({startTimeMs:Number(_.Y(c,rsZ).startTimeMs),endTimeMs:Number(_.Y(c,rsZ).endTimeMs),type:"repeatChapter"}),Q.playVideo()):f==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&Q.setLoopRange(null);_.IN(U)})};_.wQ1=function(S){_.C9.call(this);this.JSC$20463_watchApi=S;TyZ(this)};
_.C(_.wQ1,_.C9);var TyZ=function(S){S.JSC$20463_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(c){sdU(S,c)});
S.addOnDisposeCallback(function(){S.JSC$20463_watchApi.unregisterActionHandler("yt-watch-player-overflow-menu-command")})},sdU=function(S,c){var Q,f,U,a,X,z,x,I,n,b,N;
_.O(function(l){if(l.nextAddress==1)return _.F(l,S.JSC$20463_watchApi.playerApi,2);Q=l.yieldResult;if(a=(U=(f=_.Y(c,d2E))==null?void 0:f.highlightedMenuItemKey)!=null?U:"")(z=(X=Q).highlightSettingsMenuItem)==null||z.call(X,a);if(n=(I=(x=_.Y(c,d2E))==null?void 0:x.openMenuItemKey)!=null?I:"")(N=(b=Q).openSettingsMenuItem)==null||N.call(b,n);_.IN(l)})};var M_Z=_.xy("/youtube/app/watch/player_state","playerStateEntity");_.Z_g=function(S){_.C9.call(this);this.JSC$20466_watchApi=S;i_O(this)};
_.C(_.Z_g,_.C9);var GnZ=function(S){switch(S){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"}},i_O=function(S){var c,Q;
_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20466_watchApi.playerApi,2);c=f.yieldResult;Q=function(U){S.onPlayerStateChange(U)};
c.addEventListener("onStateChange",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onStateChange",Q)});
_.IN(f)})};
_.Z_g.prototype.onPlayerStateChange=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,c.JSC$20466_watchApi.playerApi,2);Q=U.yieldResult;f=Q.getVideoData().video_id;_.P0().dispatch(_.Ns("playerStateEntity",M_Z,{key:M_Z,playerState:GnZ(S),videoId:f}));_.IN(U)})};_.gEZ=function(S){_.C9.call(this);var c=this;this.JSC$20470_watchApi=S;this.enableExternalPlaylistPanelInPlayer=_.u("delhi_web_player_use_external_playlist_panel");_.fl().resolve(_.G7).setPlayer(this.JSC$20470_watchApi.getElement("PLAYER"));S=this.JSC$20470_watchApi.subscribeToActiveChanged(function(Q){c.onActiveChanged(Q)});
this.addOnDisposeCallback(S);Wb2(this)};
_.C(_.gEZ,_.C9);var Wb2=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return S.enableExternalPlaylistPanelInPlayer?_.F(f,S.JSC$20470_watchApi.playerApi,2):f.return();c=f.yieldResult;Q=function(){if(S.playlistPanelElement)S.playlistPanelElement.onToggleExpanded()};
c.addEventListener("onToggleExternalPlaylistPanel",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onToggleExternalPlaylistPanel",Q)});
_.IN(f)})};
_.gEZ.prototype.onActiveChanged=function(S){var c=this,Q=_.fl().resolve(_.G7),f=function(){e9T(c)};
S?(this.playlistPanelElement=this.JSC$20470_watchApi.getElement("PLAYLIST_PANEL"))?(Q.setPlaylistComponent(this.playlistPanelElement),Q.addEventListener("yt-playlist-data-updated",f),this.addOnDisposeCallback(function(){Q.removeEventListener("yt-playlist-data-updated",f)}),e9T(this)):_.dC(Error("mm")):(Q.removeEventListener("yt-playlist-data-updated",f),Q.cancelVideoSkip())};
var e9T=function(S){var c=_.fl().resolve(_.G7);S.JSC$20470_watchApi.provideRenderingData("PLAYLIST",c.getPlaylistData())};_.WP=function(S){_.C9.call(this);var c=this;this.JSC$20473_watchApi=S;this.onPageScroll=function(){c.scrollThrottle.fire();c.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.S0(this.onThrottledScroll,200,this);_.F5(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.S0(this.onMastheadThrottledScroll,50,this);_.F5(this,this.mastheadScrollThrottle);this.animation=new _.ML(function(Q){c.JSC$20473_watchApi.getRoot().setScrollTop(Q)});
S=_.Kt(_.V5(),_.gJ,function(){c.onFullscreenChanged()});
this.addOnDisposeCallback(S);kn1(this);rIB(this);this.onThrottledScroll()};
_.C(_.WP,_.C9);
_.WP.prototype.onFullscreenChanged=function(){var S=this,c=this.JSC$20473_watchApi.getRoot();!this.pageScrollElement&&c.pageScrollElement?(this.pageScrollElement=c.pageScrollElement,c.pageScrollElement.addEventListener("scroll",this.onPageScroll),this.addOnDisposeCallback(function(){S.pageScrollElement&&S.pageScrollElement.removeEventListener("scroll",S.onPageScroll)})):this.pageScrollElement&&!c.pageScrollElement&&(this.pageScrollElement.removeEventListener("scroll",this.onPageScroll),this.pageScrollElement=
void 0)};
var kn1=function(S){window.addEventListener("scroll",S.onPageScroll);S.addOnDisposeCallback(function(){window.removeEventListener("scroll",S.onPageScroll)})},rIB=function(S){S.JSC$20473_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(c){a:{var Q;
if(Q=S.JSC$20473_watchApi.getRoot().contains(c)&&!S.animation.isAnimating()){Q=c.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var f,U,a=(c==null?void 0:(f=c.parentElement)==null?void 0:(U=f.parentElement)==null?void 0:U.id)==="fixed-secondary";Q=!(Q&&a)}if(Q){if(_.u("kevlar_watch_scroll_manager_absolute_offset_killswitch"))f=c.offsetTop;else for(f=0,U=c;U!==null;)f+=U.offsetTop,f-=U.scrollTop,U=U.offsetParent;U=f;f=U-24;c=U+c.offsetHeight+24;U=S.JSC$20473_watchApi.getRoot().getPageScrollingElement();
Q=S.JSC$20473_watchApi.getRoot().getScrollTop();a=Q+U.clientHeight-56;if(f<Q+56)c=f-56;else if(c>a)c-=U.clientHeight;else break a;S.scrollWatchTo(Math.max(0,c),!0)}}});
S.addOnDisposeCallback(function(){S.JSC$20473_watchApi.unregisterActionHandler("yt-scroll-to-watch-element")})};
_.WP.prototype.onThrottledScroll=function(){var S=_.V5(),c=S.dispatch,Q=this.JSC$20473_watchApi.getRoot().getScrollTop();c.call(S,_.aB({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:Q}}))};
_.WP.prototype.onMastheadThrottledScroll=function(){this.JSC$20473_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20473_watchApi.getRoot().getScrollTop())};
_.WP.prototype.scrollWatchTo=function(S,c){(c===void 0?0:c)?this.animation.start(this.JSC$20473_watchApi.getRoot().getScrollTop(),Math.max(0,S),500):this.JSC$20473_watchApi.getRoot().setScrollTop(S)};_.PtV=function(S){_.C9.call(this);var c=this;this.JSC$20476_watchApi=S;var Q=this.JSC$20476_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){dl8(c)}),f=this.JSC$20476_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){vEE(c)});
this.addOnDisposeCallback(function(){c.JSC$20476_watchApi.unsubscribeByKey(Q);c.JSC$20476_watchApi.unsubscribeByKey(f)});
dl8(this);vEE(this)};
_.C(_.PtV,_.C9);
var dl8=function(S){var c,Q,f,U=(f=(c=S.JSC$20476_watchApi.getPlayerResponse())==null?void 0:(Q=c.videoDetails)==null?void 0:Q.title)!=null?f:"";S.JSC$20476_watchApi.dispatchEvent("yt-update-title",U)},vEE=function(S){var c,Q,f,U,a,X,z,x=(z=((X=(c=S.JSC$20476_watchApi.getWatchNextResponse())==null?void 0:(Q=c.contents)==null?void 0:(f=Q.twoColumnWatchNextResults)==null?void 0:(U=f.results)==null?void 0:(a=U.results)==null?void 0:a.contents)!=null?X:[]).find(function(I){return!!I.videoPrimaryInfoRenderer}))==null?
void 0:z.videoPrimaryInfoRenderer;
(c=_.Em(x==null?void 0:x.title))&&S.JSC$20476_watchApi.dispatchEvent("yt-update-title",c)};_.EE8=function(S){_.C9.call(this);this.JSC$20479_watchApi=S;LbZ(this)};
_.C(_.EE8,_.C9);var LbZ=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$20479_watchApi.playerApi,2);c=f.yieldResult;Q=function(){S.onYpcContentRequest()};
c.addEventListener("onYpcContentRequest",Q);S.addOnDisposeCallback(function(){c.removeEventListener("onYpcContentRequest",Q)});
_.IN(f)})};
_.EE8.prototype.onYpcContentRequest=function(){var S,c,Q,f,U,a=(S=this.JSC$20479_watchApi.getWatchNextResponse())==null?void 0:(c=S.contents)==null?void 0:(Q=c.twoColumnWatchNextResults)==null?void 0:(f=Q.secondaryResults)==null?void 0:(U=f.secondaryResults)==null?void 0:U.offerModule,X,z,x,I;S=(I=(x=(z=(X=a==null?void 0:a.episodeOfferModuleRenderer)!=null?X:a==null?void 0:a.movieOfferModuleRenderer)!=null?z:a==null?void 0:a.unlimitedOfferModuleRenderer)!=null?x:a==null?void 0:a.liveOfferModuleRenderer)!=
null?I:a==null?void 0:a.tvfilmOfferModuleRenderer;var n,b,N;a=(N=a==null?void 0:(n=a.tvfilmOfferModuleRenderer)==null?void 0:(b=n.actionButtons)==null?void 0:b.length)!=null?N:0;b=Math.max(a-1,0);var l,H,q;n=(q=S==null?void 0:(l=S.offerButton)==null?void 0:l.buttonRenderer)!=null?q:S==null?void 0:(H=S.actionButtons)==null?void 0:H[b].buttonRenderer;var w,g;(l=(g=(w=n==null?void 0:n.navigationEndpoint)!=null?w:n==null?void 0:n.serviceEndpoint)!=null?g:n==null?void 0:n.command)&&_.BI.instance.resolveCommand(l)};
}catch(e){_._DumpException(e)}
try{
var fh8,S8G,oC0;_.mR1=function(){var S=_.Cn.clone(ySE),c;return(new _.n1(function(Q,f){S.onSuccess=function(U){_.i$p(U)?Q(new oC0(U)):f(new _.LC("Request failed, status="+_.O8(U),"net.badstatus",U))};
S.onError=function(U){f(new _.LC("Unknown request error","net.unknown",U))};
S.onTimeout=function(U){f(new _.LC("Request timed out","net.timeout",U))};
c=_.I6("//googleads.g.doubleclick.net/pagead/id",S)})).thenCatch(function(Q){if(Q instanceof _.EI){var f;
(f=c)==null||f.abort()}return _.pv(Q)})};
_.clp=function(S){a:{var c="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(c="EMBEDDED_PLAYER_MODE_PFL");var Q=S.raw_embedded_player_response;if(!Q&&(S=S.embedded_player_response))try{Q=JSON.parse(S)}catch(U){break a}if(Q)b:for(var f in S8G)if(S8G[f]==Q.embeddedPlayerMode){c=S8G[f];break b}}return c==="EMBEDDED_PLAYER_MODE_PFL"};
_.Q6V=function(){if(_.u("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("pf");if(!_.QzZ())return Error("qf");var S=_.WY("PLAYER_VARS",{});if(_.Cn.get(S,"privembed",!1)=="1")return Error("rf");if(_.clp(S))return Error("sf")};
fh8=function(S){switch(S){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:_.OZ(S,"unknown result type")}};
_.Uxp=function(S,c,Q){c=_.yKH[c];Q={detected:S===0,source:c.oYP,detectionResult:fh8(S),contentCpn:Q};_.Te("biscottiBasedDetection",Q);_.d0J.increment(c.oYP,S);c.bj2!==void 0&&_.G_("CATSTAT",_.VEY(S,c))};
_.EB=function(S,c){var Q={};Q.key=S;Q.value=c;return _.T4Y().then(function(f){return new Promise(function(U,a){try{var X=f.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(Q);X.onsuccess=function(){U()};
X.onerror=function(){a()}}catch(z){a(z)}})})};
_.ah0=function(){var S=_.a6("user_engagement_experiments_rate_limit_ms"),c=Jlg.get("last-user-engagement-exp-trigger-timestamp");return!c||(0,_.Qk)()>=c+S?(Jlg.set("last-user-engagement-exp-trigger-timestamp",(0,_.Qk)()),!0):!1};
_.tE=function(S,c,Q,f,U){c=c===void 0?null:c;Q=Q===void 0?null:Q;f=f===void 0?null:f;U=U===void 0?null:U;S={youThereEventType:S};Q&&(S.lactThresholdMs=Q.lactThresholdMs,S.mediaPosSec=Q.promptDelaySec,S.lactServerRequestMs=Q.lactServerRequestMs,S.triggerReason=Q.triggerReason);U!=null&&(S.renderingMediaPosSec=Math.round(U));c||(c=_.wN());c&&(S.clientScreenNonce=c);f&&(S.clientPlaybackNonce=f);_.Te("youThere",S)};
S8G={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"};oC0=function(S){this.xhr=S};
_.LC=function(S,c,Q){_.Sx.call(this,S+", errorCode="+c);this.errorCode=c;this.xhr=Q;this.name="PromiseAjaxError"};
_.C(_.LC,_.Sx);var ySE={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var Jlg=new _.ge("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.sN8=function(S){return _.aB({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:S})};
}catch(e){_._DumpException(e)}
try{
var rs,Uv0,a_p,Ai1,XNU,OVE,xvN,$vB,u3E,j$E,zig,Ji8,nw1,I_Z,Cy8;_.f_E=function(){var S=window.location.hash;S.charAt(0)==="#"&&(S=S.charAt(1)==="!"?S.substring(2):S.substring(1));return _.Lb(S)};
rs=function(S,c,Q){var f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,c(),2);f=U.yieldResult;Q(f,S);_.IN(U)})};
Uv0=function(){return _.O(function(S){return S.nextAddress==1?_.F(S,(_.Q6V()!==void 0?_.pv(Error("tf")):_.mR1()).then(function(){return 1},function(c){if(c.message==="Biscotti id is disabled")return 3;
_.i5("Failed fetching bid");return 0}),2):S.return(S.yieldResult)})};
a_p=function(){var S=_.mM("ZW4tZW1iZWQtcGxheWVyI3VuMnA0dm5xcTAwdnl0LWhhdg=="),c=_.mM("aHQ0czdpZnJhbWUjaDN5MGtqMQ==");return document.querySelector(c+Ji8+S)?0:1};
Ai1=function(){return _.ZMY(_.PL)};
XNU=function(){return _.G3H()===0?0:_.WnT()};
OVE=function(){return _.duM(_.Uuo([["player-ads",["ytd-merch-shelf-renderer","ytp-featured-product"],null]]))};
xvN=function(){return _.pbR(zig)};
_.FRG=function(S){_.O(function(c){switch(c.nextAddress){case 1:return _.F(c,rs("b.f_",Uv0,S),2);case 2:return _.F(c,rs("j.s_",_.HMz,S),3);case 3:return _.F(c,rs("r.s_",_.lMx,S),4);case 4:return _.F(c,rs("e.h_",xvN,S),5);case 5:if(!_.u("ab_det_sc_inj")){c.jumpTo(6);break}return _.F(c,rs("s.i_",_.MET,S),6);case 6:if(_.u("ab_deg_unex_thr")){c.jumpTo(8);break}return _.F(c,rs("a.o_",_.wbp,S),8);case 8:if(_.u("ks_get_o_pp")){c.jumpTo(10);break}return _.F(c,rs("g.o_",_.TcZ,S),10);case 10:if(_.u("ks_det_gpbl")){c.jumpTo(12);
break}return _.F(c,rs("p.i_",_.qxo,S),12);case 12:return _.F(c,rs("f.i_",_.xur,S),14);case 14:return _.F(c,rs("a.b_",_.u6p,S),15);case 15:return _.F(c,rs("p.m_",_.IMY,S),16);case 16:if(!_.u("ab_det_el_h_v2")){c.jumpTo(17);break}return _.F(c,rs("n.h_",OVE,S),17);case 17:return _.F(c,rs("o.p_",Ai1,S),19);case 19:return _.F(c,rs("e.i_",a_p,S),20);case 20:if(_.u("ab_det_apm"))return _.F(c,rs("o.a_",XNU,S),0);c.jumpTo(0)}})};
_.B0p=function(S,c){S={videoId:S};c&&(S.playlistId=c);return S};
_.bVG=function(){if(_.QzZ()){var S=_.WY("PLAYER_VARS",{});if(_.Cn.get(S,"privembed",!1)!="1"&&!_.clp(S)){var c=function(){I_Z=!0;"google_ad_status"in window?_.G_("DCLKSTAT",1):_.G_("DCLKSTAT",2)};
try{_.kU("//static.doubleclick.net/instream/ad_status.js",c)}catch(Q){}nw1.push(_.Mq.addLowPriorityJob(function(){if(!(I_Z||"google_ad_status"in window)){try{_.t1x("//static.doubleclick.net/instream/ad_status.js",c)}catch(Q){}I_Z=!0;_.G_("DCLKSTAT",3)}},5E3))}}};
_.ds=function(S,c,Q){Q=Q===void 0?!1:Q;var f=Math.max(S.width,_.aKN);if(_.u("kevlar_watch_feed_big_thumbs")&&S.width>=1550-_.q4()&&S.height>=800)f-=_.Ffg;else if(S.width>=_.GH){var U=_.AR2+_.XBZ+_.Z_;_.u("kevlar_watch_feed_big_thumbs")&&(U=_.xpZ);f-=U}else f-=_.AR2;f=Math.min(f,_.OB2);U=240;Q&&(U=380);c<.5624||(!_.u("kevlar_watch_flexy_disable_small_window_sizing")&&(S.height<630&&S.width>=657||S.height>=630&&S.width>=_.GH&&S.width<1327)?U=360:!_.u("kevlar_watch_flexy_disable_large_window_sizing")&&
S.height>=630&&S.width>=1327&&(U=480));var a=Math.min(f*c,S.height-(56+_.JRB+_.zXE));a=Math.max(a,U);c<1?f=a/c:S.width>=_.GH&&(f=_.ds(S,.5625,Q).width);return new _.xh(Math.round(f),Math.round(a))};
_.N0V=function(S){var c=0;S.indexOf("h")!=-1&&(S=S.split("h"),c=S[0]*60*60,S=S[1]);S.indexOf("m")!=-1&&(S=S.split("m"),c=S[0]*60+c,S=S[1]);S.indexOf("s")!=-1?(S=S.split("s"),c=S[0]*1+c):c=S*1+c;return c};
_.KRg=function(){_.a6("service_worker_push_logged_out_prompt_watches")!=-1&&_.ms("WatchCount").then(function(S){S>=100||_.EB("WatchCount",S+1)})};
$vB=function(S){var c=S.externalVideoId||"";return c?S.isShortsEligible?"https://www.youtube.com/shorts/"+c:"https://www.youtube.com/watch?v="+c:""};
u3E=function(S){var c=[];S.viewCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:S.viewCount});S.likeCount&&c.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:S.likeCount});return c};
j$E=function(S){var c,Q,f={"@context":"https://schema.org","@type":"VideoObject",description:_.Em(S.description),duration:"PT"+(S.lengthSeconds||"0")+"S",embedUrl:S.embed?S.embed.iframeUrl:"",name:_.Em(S.title),thumbnailUrl:((c=S.thumbnail)==null?void 0:(Q=c.thumbnails)==null?void 0:Q.map(function(n){return n&&n.url||""}))||[],
uploadDate:S.publishDate};_.u("mweb_video_schema_id_killswitch")||(f["@id"]=$vB(S));c=u3E(S);c.length&&(f.interactionStatistic=c);S.category&&(f.genre=S.category);S.ownerChannelName&&(f.author=S.ownerChannelName);S.liveBroadcastDetails&&(f.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:S.liveBroadcastDetails.startTimestamp,endDate:S.liveBroadcastDetails.endTimestamp}]);if(S.learningResource){S=S.learningResource;f["@type"]=["VideoObject","LearningResource"];var U;if((U=S.learningResourceType)==
null?0:U.length)f.learningResourceType=S.learningResourceType[0];var a;if((a=S.educationalAlignment)==null?0:a.length)f.educationalAlignment={"@type":"AlignmentObject",targetName:S.educationalAlignment[0]};var X;if((X=S.educationalLevel)==null?0:X.length){U=S.educationalLevel[0];var z;if((z=S.educationalLevelCountry)==null?0:z.length)U+=" ("+S.educationalLevelCountry+")";f.educationalLevel=U}var x,I;if(((x=S.learningResourceType)==null?0:x.length)&&S.learningResourceType[0]==="Problem walkthrough"&&
((I=S.problemDescriptions)==null?0:I.length))for(f.hasPart=[],z=_.A(S.problemDescriptions),x=z.next();!x.done;x=z.next())U=x.value,x=U.problemDescriptionText,I=U.startOffset,U=U.url,x&&I!==void 0&&U&&f.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:x,text:x,startOffset:I,url:U})}return f};
_.l_8=function(S){return _.aB({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:S}})};
zig=[[["dDBwcmltYXJ5IzlqbXM3ZnFmOGM=",null,null],[null,["I2Ztenl1b2cwNXlveXRkLXR3by1jb2x1bW4tYnJvd3NlLXJlc3VsdHMtcmVuZGVyZXI=","ZSNvcGdjYnk1a3p3OTVzdHlsZS1zY29w"],null],["ZCNzNTZlZGJubjdoNGJtYXN0aGVhZC1h",["LWdyaWQtcmVuZGVyZXIjYnNxOTk2NXIwdmVkeXRkLXJpY2g="],null],[null,["LWdyaWQtcmVuZGVyZXIjdGFnNHcwdzhhaHd4eXRkLXJpY2g=","ZSNjZTQ0NXBjMnRicjlzdHlsZS1zY29w"],null],[null,["bW8tcmVuZGVyZXIjY3JqNnQ5NmppMnZieXRkLWJhbm5lci1wcm8=","ZSNrd3dlaXl6N3htanJzdHlsZS1zY29w"],null],[null,["YWQtc2xvdC1yZW5kZXJlciMzazBxM2hnZHRvczF5dGQt"],
null]],[["YWRzI25wZWtkbTZ3NDkxc3BsYXllci0=",null,null]]];Ji8="#";nw1=[];I_Z=!1;_.YfU=["engagement-panel-ads"];Cy8=new _.L("updateSentimentBarStateCommand");_.HVE=new _.L("showSurveyCommand");_.vP=new _.L("changeMarkersVisibilityCommand");var pNT,hi1,s$0,wN0,T0N,PP;_.DvU=function(S,c){this.playerProvider_=S;this.actionSenderElement_=c;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.DvU.prototype.reset=function(){pNT(this);this.isUserPredictedAbsent_=!1};
pNT=function(S,c){!S.youThereData_||S.showWarningJob_||c!==void 0&&c||(_.tE("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.wN(),S.youThereData_,S.clientPlaybackNonce_),_.wQ());_.Mq.cancelJob(S.showWarningJob_);S.showWarningJob_=0;_.Mq.cancelJob(S.showBlockingWarningJob_);S.showBlockingWarningJob_=0;_.Mq.cancelJob(S.pausePlaybackJob_);S.pausePlaybackJob_=0;S.youThereData_=null;S.clientPlaybackNonce_=void 0;S.inYouThereFlow_=!1};
_.qfV=function(S,c){var Q,f,U;_.O(function(a){if(a.nextAddress==1)return S.reset(),_.F(a,S.playerProvider_().getPlayerPromise(),2);Q=a.yieldResult;S.clientPlaybackNonce_=Q.getVideoData().cpn;S.youThereData_=c.configData.youThereData;if(!S.youThereData_)return a.return();if(S.youThereData_.triggerReason&&S.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.ah0())return _.tE("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.wN(),S.youThereData_,S.clientPlaybackNonce_),a.return();f=S.youThereData_.promptDelaySec;
U=Q.getCurrentTime();S.showWarningJob_=_.Mq.addLowPriorityJob(function(){return _.O(function(X){S.showWarningJob_=0;return _.F(X,hi1(S),0)})},Math.max(f-U,0)*1E3);
_.IN(a)})};
hi1=function(S){var c,Q,f,U,a,X;return _.O(function(z){if(z.nextAddress==1)return _.F(z,S.playerProvider_().getPlayerPromise(),2);if(z.nextAddress!=3)return c=z.yieldResult,Q=c.getCurrentTime(),_.F(z,T0N(S),3);f=z.yieldResult;if(!f||!S.youThereData_)return z.return();if(_.u("check_user_lact_at_prompt_shown_time_on_web")&&(U=parseInt(S.youThereData_.lactThresholdMs,10),_.f1()<U))return _.tE("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.wN(),S.youThereData_,S.clientPlaybackNonce_),z.return();if(S.youThereData_.playbackPauseDelayMs<=
0)return wN0(S),z.return();!_.u("external_fullscreen")&&(a=_.f8())&&(S.ignoreFullscreenExitUserActivity_=!0,_.Mq.addLowPriorityJob(function(){S.ignoreFullscreenExitUserActivity_=!1},2E3),_.Uz(a));
S.youThereData_.showToastWarningPrompt&&(PP(S,S.youThereData_.showWarningActions),S.inYouThereFlow_=!0,_.tE("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.wN(),S.youThereData_,S.clientPlaybackNonce_,Q),_.tE("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.wN(),S.youThereData_,S.clientPlaybackNonce_,Q));X=0;S.youThereData_.blockingPromptDelayMs&&(X=S.youThereData_.blockingPromptDelayMs);S.showBlockingWarningJob_=_.Mq.addLowPriorityJob(function(){return _.O(function(x){S.showBlockingWarningJob_=0;return _.F(x,
s$0(S),0)})},X);
_.IN(z)})};
s$0=function(S){var c,Q,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,T0N(S),2);c=U.yieldResult;if(!S.youThereData_)return U.return();c&&(S.youThereData_.showBlockingWarningAction&&(_.tE("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.wN(),S.youThereData_,S.clientPlaybackNonce_),(Q=_.Y(S.youThereData_.showBlockingWarningAction,_.II))?PP(S,Q.commands):PP(S,[S.youThereData_.showBlockingWarningAction]),S.inYouThereFlow_=!0),f=S.youThereData_.playbackPauseDelayMs,S.pausePlaybackJob_=
_.Mq.addLowPriorityJob(function(){return _.O(function(a){S.pausePlaybackJob_=0;return _.F(a,wN0(S),0)})},f));
_.IN(U)})};
wN0=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,T0N(S),2);c=Q.yieldResult;if(!S.youThereData_)return Q.return();c&&(_.tE("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.wN(),S.youThereData_,S.clientPlaybackNonce_),PP(S,S.youThereData_.showPausedActions),S.inYouThereFlow_=!0);_.IN(Q)})};
_.DvU.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var S=_.Y(this.youThereData_.userActiveDuringFlowAction,_.II);S?PP(this,S.commands):PP(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.tE("YOU_THERE_EVENT_TYPE_LACT_RESET",_.wN(),this.youThereData_,this.clientPlaybackNonce_),_.wQ());pNT(this,!0)}_.M2V(this,!1)};
_.iV0=function(S){_.tE("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.wN(),S.youThereData_,S.clientPlaybackNonce_)};
T0N=function(S){var c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.playerProvider_().getPlayerPromise(),2);c=f.yieldResult;Q=c.getPlayerState();return f.return(Q==-1||Q==1||Q==3)})};
_.M2V=function(S,c){var Q;_.O(function(f){if(f.nextAddress==1){if(S.isUserPredictedAbsent_==c)return f.jumpTo(0);S.isUserPredictedAbsent_=c;return _.F(f,S.playerProvider_().getPlayerPromise(),3)}Q=f.yieldResult;Q.setUserEngagement(c);c&&_.tE("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.wN(),S.youThereData_,S.clientPlaybackNonce_);_.IN(f)})};
PP=function(S,c){if(_.u("handle_service_request_actions")||_.u("kevlar_youthere_service_endpoint_actions_killswitch"))_.FF(S.actionSenderElement_,c,S.actionSenderElement_);else{c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())Q=Q.value,Q.commandMetadata&&Q.commandMetadata.webCommandMetadata&&Q.commandMetadata.webCommandMetadata.sendPost?_.xt(S.actionSenderElement_,[Q]):_.FF(S.actionSenderElement_,[Q],S.actionSenderElement_)}};var ZVU;var GHT;var Lr=function(){var S=_.W.apply(this,arguments)||this;S.systemIcons=_.u("kevlar_system_icons");S.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return S};
_.C(Lr,_.W);Lr.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var S=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(S=this.data.percentIfLiked||0,this.activated=!0):(S=this.data.percentIfIndifferent||0,this.activated=!1);_.Ur(this.hostElement).querySelector("#like-bar").style.width=S+"%"}};
Lr.prototype.handleUpdateSentimentBarStateCommand=function(S){this.data&&this.set("data.likeStatus",_.Y(S,Cy8).likeStatus)};
Lr.prototype.observeLikeStatus=Lr.prototype.observeLikeStatus;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Lr.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Lr.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Lr.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Lr.prototype,"activated",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Lr.prototype,"systemIcons",void 0);_.d([_.B0("data.likeStatus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lr.prototype,"observeLikeStatus",null);_.d([_.e({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],Lr);
_.k(Lr,"ytd-sentiment-bar-renderer",function(){if(GHT!==void 0)return GHT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return GHT=S},{mode:1});var WRE;var Eo=function(){var S=_.W.apply(this,arguments)||this;S.small=!0;return S};
_.C(Eo,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Eo.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Eo.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Eo.prototype,"small",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Eo);
_.k(Eo,"ytd-video-view-count-renderer",function(){if(WRE!==void 0)return WRE;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return WRE=S},{mode:_.A2("kevlar_poly_si_batch_j080")?1:2});var tC=function(){var S=_.W.apply(this,arguments)||this;S.infoFormattedStrings=[];S.wrapVideoActions=_.u("kevar_watch_wrap_video_actions");S.hideSentimentBar=_.u("kevlar_watch_hide_sentiment_bar");S.actionMap={};return S};
_.C(tC,_.W);_.J=tC.prototype;_.J.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.J.dataChanged=function(){_.u("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.J.computeInfoFormattedStrings=function(S){if(!S)return[];var c=[];S.dateText&&c.push(S.dateText);S.stationName&&c.push(S.stationName);S.rating&&c.push(S.rating);S.startEndTimeTemplate&&S.startTimeUtcMillis&&S.endTimeUtcMillis&&c.push(_.LK(_.ChB(_.Em(S.startEndTimeTemplate),Number(S.startTimeUtcMillis),Number(S.endTimeUtcMillis))));S.upNextProgramText&&c.push(S.upNextProgramText);return c};
_.J.scheduleInitialUpdatedMetadataRequest=function(){var S,c=(S=this.data)==null?void 0:S.updatedMetadataEndpoint;if(c){var Q;S=Number((Q=_.Y(c,_.d9i))==null?void 0:Q.initialDelayMs);Q=isNaN(S)?250:S;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),Q)}};
_.J.setSentimentBarWidth=function(){var S=this;_.tO(this,function(){var c=_.Ur(S.hostElement).querySelector("ytd-menu-renderer");if(c){c=c.topLevelButtons;for(var Q=0,f=0;f<c.length;f++){var U=c[f],a=S.get("toggleButtonSupportedData.toggleButtonIdData.id",U.data);if(a==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||a==="TOGGLE_BUTTON_ID_TYPE_LIKE")Q+=U.clientWidth+8;else break}Q&&(S.sentiment.style.width=Q-8+" px")}})};
_.J.fetchUpdatedMetadata=function(S){var c;S&&(c={continuation:S});var Q;(S=(Q=this.data)==null?void 0:Q.updatedMetadataEndpoint)&&_.fl().resolve(_.U8).resolveCommand(S,{form:Object.assign({},c,{element:this.hostElement})})};
_.J.onYtServiceRequestSent=function(S,c){c.endpoint&&_.Y(c.endpoint,_.LD)&&(this.hasUpdateSentimentBarStateCommands()&&!_.u("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.Y(c.endpoint,_.LD).status),this.setSentimentBarWidth())};
_.J.hasUpdateSentimentBarStateCommands=function(){var S,c,Q,f,U=(f=(S=this.data)==null?void 0:(c=S.videoActions)==null?void 0:(Q=c.menuRenderer)==null?void 0:Q.topLevelButtons)!=null?f:[];S=_.A(U);for(c=S.next();!c.done;c=S.next()){c=c.value;U=f=Q=void 0;var a=(Q=c.toggleButtonRenderer)==null?void 0:(f=Q.toggleButtonSupportedData)==null?void 0:(U=f.toggleButtonIdData)==null?void 0:U.id;if(a==="TOGGLE_BUTTON_ID_TYPE_LIKE"||a==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){f=Q=void 0;c=(f=_.Y((Q=c.toggleButtonRenderer)==
null?void 0:Q.defaultServiceEndpoint,_.II))==null?void 0:f.commands;if(!c)break;c=_.A(c);for(Q=c.next();!Q.done;Q=c.next())if(_.Y(Q.value,Cy8))return!0}}return!1};
_.J.onYtServiceRequestCompleted=function(S,c){var Q;(S=(Q=c.data)==null?void 0:Q.loggingDirectives)&&_.q3c(_.Kv(),S);this.get("continuation.timedContinuationData",c.data)&&this.data&&this.data.updatedMetadataEndpoint&&(c=c.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,c.continuation),c.timeoutMs))};
_.J.computeHasDateText=function(S){return!!S&&!!S.dateText};
_.Rh.Object.defineProperties(tC.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return!((f=(S=this.data)==null?void 0:(c=S.videoActions)==null?void 0:(Q=c.menuRenderer)==null?void 0:Q.flexibleItems)==null||!f.length)}}});
tC.prototype.onYtServiceRequestCompleted=tC.prototype.onYtServiceRequestCompleted;tC.prototype.onYtServiceRequestSent=tC.prototype.onYtServiceRequestSent;tC.prototype.dataChanged=tC.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],tC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tC.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.Qv.YtTaskEmitterBehavior),_.P("design:type",Object)],tC.prototype,"ytTaskEmitterBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tC.prototype,"data",void 0);_.d([_.Z({computed:"computeInfoFormattedStrings(data)"}),_.P("design:type",Array)],tC.prototype,"infoFormattedStrings",void 0);
_.d([_.Z({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],tC.prototype,"hasDateText",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"wrapVideoActions",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],tC.prototype,"hideSentimentBar",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],tC.prototype,"flexMenuEnabled",null);
_.d([_.nU("#sentiment"),_.P("design:type",Object)],tC.prototype,"sentiment",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],tC.prototype,"dataChanged",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],tC.prototype,"onYtServiceRequestSent",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],tC.prototype,"onYtServiceRequestCompleted",null);
_.k(tC,"ytd-video-primary-info-renderer",function(){if(ZVU===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);ZVU=S}S=ZVU;return S},{mode:1});var gwN;var VJ=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return S};
_.C(VJ,_.W);_.J=VJ.prototype;_.J.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"}}}};
_.J.dataChanged=function(){var S;this.descriptionToggled=!((S=this.data)==null||!S.defaultExpanded);var c;this.collapsed=this.descriptionAlwaysCollapsed||!((c=this.data)==null?0:c.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.qo(110509);this.showLessClientVe=_.qo(110510);S=_.wN();c=_.T$();S&&c&&_.v2(S,c,[this.showMoreClientVe,this.showLessClientVe])};
_.J.onYtExpanderMoreTapped=function(){var S,c=(S=this.data)==null?void 0:S.showMoreCommand;c&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(c);(S=_.wN())&&this.showMoreClientVe&&_.tz(S,this.showMoreClientVe)};
_.J.onYtExpanderLessTapped=function(){var S=_.wN();S&&this.showLessClientVe&&_.tz(S,this.showLessClientVe);var c;(S=(c=this.data)==null?void 0:c.showLessCommand)&&this.componentBehavior.resolveCommand(S)};
_.J.handleUpdateDateTextAction=function(S){this.data&&this.data.dateText&&this.set("data.dateText",_.Y(S,_.m2G).dateText)};
_.J.handleUpdateDescriptionAction=function(S){if(S=_.Y(S,_.ik_))S.isEmpty||!S.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.sX(S.description)):this.set("data.description",S.description)};
_.J.onYtChangeEngagementPanelVisibilityAction=function(S){if(_.u("web_structured_description_show_more")||_.u("web_engagement_panel_open_description")){var c,Q=(c=_.Y(S,_.YYd))==null?void 0:c.targetId,f;S=((f=_.Y(S,_.YYd))==null?void 0:f.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";Q==="engagement-panel-structured-description"&&S&&(this.descriptionToggled=!0)}};
_.J.updateCollapsedFromBinding=function(S){this.collapsed=S.detail.value};
_.J.updateDescriptionToggledFromBinding=function(S){this.descriptionToggled=S.detail.value};
_.J.updateCanCollapseFromBinding=function(S){this.canCollapse=S.detail.value};
_.Rh.Object.defineProperties(VJ.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.metadataRowContainer)==null?void 0:c.metadataRowContainerRenderer;return!!Q&&!!Q.rows&&Q.rows.length>Q.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.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}}});
VJ.prototype.onYtExpanderLessTapped=VJ.prototype.onYtExpanderLessTapped;VJ.prototype.onYtExpanderMoreTapped=VJ.prototype.onYtExpanderMoreTapped;VJ.prototype.dataChanged=VJ.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],VJ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VJ.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VJ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],VJ.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VJ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],VJ.prototype,"collapsed",void 0);_.d([_.Z(),_.P("design:type",Boolean)],VJ.prototype,"descriptionToggled",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],VJ.prototype,"canCollapse",void 0);_.d([_.Z(),_.P("design:type",Object)],VJ.prototype,"subscribeButtonData",void 0);_.d([_.Z(),_.P("design:type",Number)],VJ.prototype,"descriptionCollapsedHeight",void 0);_.d([_.Z(),_.P("design:type",Object)],VJ.prototype,"structuredDescriptionContentRenderer",void 0);_.d([_.Z({value:function(){return _.u("web_watch_description_always_collapsed")}}),
_.P("design:type",Boolean)],VJ.prototype,"descriptionAlwaysCollapsed",void 0);_.d([_.nU("#description"),_.P("design:type",HTMLDivElement)],VJ.prototype,"description",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VJ.prototype,"dataChanged",null);_.d([_.FV("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VJ.prototype,"onYtExpanderMoreTapped",null);
_.d([_.FV("yt-expander-less-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VJ.prototype,"onYtExpanderLessTapped",null);_.d([_.M("data.metadataRowContainer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VJ.prototype,"metadataCollapsible",null);_.d([_.M("data","structuredDescriptionContentRenderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VJ.prototype,"hasInlineStructuredDescription",null);
_.d([_.M("data.attributedDescription"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VJ.prototype,"hasAttributedDescription",null);_.d([_.M("hasInlineStructuredDescription","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VJ.prototype,"loadStructuredDescription",null);_.d([_.M("data","structuredDescriptionContentRenderer","collapsed"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VJ.prototype,"showInlineStructuredDescription",null);
_.d([_.M("data","hasInlineStructuredDescription","metadataCollapsible"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VJ.prototype,"descriptionAlwaysCollapsible",null);
_.k(VJ,"ytd-video-secondary-info-renderer",function(){if(gwN===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);gwN=S}S=gwN;return S},{mode:2});var eiT;var Rw=function(){return _.W.apply(this,arguments)||this};
_.C(Rw,_.W);Rw.prototype.configureRendererStamper=function(){return{"data.scrollUpButton":{id:"scroll-up",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.u("web_modern_buttons"),forceIconButton:!_.u("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
Rw.prototype.activate=function(S){S.appendTo(this.player);S.getPlayerPromise().then(function(c){c.setMinimized(!0)});
this.active=!0};
Rw.prototype.deactivate=function(){var S=this.player.firstElementChild;S.getPlayerPromise().then(function(c){c.setMinimized(!1)});
this.active=!1;return S};
Rw.prototype.onScrollUpTap=function(){var S=_.fl().resolve(_.oZ).getCurrentPage();S&&S.setScrollTop(0)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Rw.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Rw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Rw.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Rw.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Rw.prototype,"active",void 0);
_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.P("design:type",Boolean)],Rw.prototype,"darkLaunch",void 0);_.d([_.nU("#player"),_.P("design:type",HTMLDivElement)],Rw.prototype,"player",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],Rw);
_.k(Rw,"ytd-miniplayer-bar-renderer",function(){if(eiT!==void 0)return eiT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return eiT=S},{mode:1});_.f4(_.y_(function(S){var c=_.EH("script");_.To(function(){var Q;if(Q=JSON)Q=j$E(S.data()),Q=_.GR(JSON.stringify(Q).replace(/</g,"\\u003C"));var f=S.data(),U=_.Em(f.title).trim().length===0,a=!f.publishDate||f.publishDate.trim().length===0,X,z,x,I,n=!((X=f.thumbnail)==null?0:(z=X.thumbnails)==null?0:z.length)||!((x=f.thumbnail)==null?0:x.thumbnails[0].url)||((I=f.thumbnail)==null?void 0:I.thumbnails[0].url.trim().length)===0;c.value&&Q&&!(U||a||n)&&_.g_(c.value,Q)},"I9AhLd");
return _.B("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.B("script",{el:c,type:"application/ld+json"}))},"vj"),"player-microformat-renderer",{props:{data:_.Qn}});
}catch(e){_._DumpException(e)}
try{
var Sfp;_.t_E=function(S){return S.watch.watchWindowSize};
_.V_0=function(S){return _.aB({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:S}})};
Sfp=function(S){_.C9.call(this);var c=this;this.JSC$20483_watchApi=S;S=_.Kt(_.V5(),_.R_R,function(){R9T(c)});
this.addOnDisposeCallback(S);S=_.Kt(_.V5(),_.t_E,function(){R9T(c)});
this.addOnDisposeCallback(S);yI1(this);oEU(this);mlG()};
_.C(Sfp,_.C9);var yI1=function(S){var c=function(f){_.V5().dispatch(_.KB2(f.matches))},Q=window.matchMedia("(max-width: "+(999+_.q4())+"px)");
Q.addListener(c);S.addOnDisposeCallback(function(){Q.removeListener(c)});
c(Q)},oEU=function(S){S.JSC$20483_watchApi.registerActionHandler("yt-window-resized",function(){mlG()});
S.addOnDisposeCallback(function(){S.JSC$20483_watchApi.unregisterActionHandler("yt-window-resized")})},mlG=function(){var S=_.jm();
_.V5().dispatch(_.aB({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:S.width,height:S.height}}}))},R9T=function(S){var c;
_.O(function(Q){if(Q.nextAddress==1)return _.F(Q,S.JSC$20483_watchApi.playerApi,2);c=Q.yieldResult;c.setSize(NaN,NaN);_.IN(Q)})};_.gs=function(S){_.R4.call(this);var c=this;this.rootElement=S;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(Q){c.initOrDisposeActiveModules(Q)}));
this.onAttached()};
_.C(_.gs,_.R4);_.J=_.gs.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(S){return this.rootElement.getElement(S)};
_.J.setPlayerResponse=function(S){this.playerResponse=S;this.publish("PLAYER_RESPONSE_UPDATED",S)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(S){this.watchNextResponse===S?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=S,this.publish("WATCH_NEXT_RESPONSE_UPDATED",S))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(S,c){var Q=this;if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.vG(_.dQ.getInstance(),(f[S]=c,f),this.getRoot())}else this.actionHandlers.has(S)||(this.actionHandlers.set(S,[]),f={},_.vG(_.dQ.getInstance(),(f[S]=function(){var U=_.YD.apply(0,arguments);return(Q.actionHandlers.get(S)||[]).map(function(a){return a.apply(null,_.Hs(U))})},f),this.getRoot())),this.actionHandlers.get(S).push(c)};
_.J.unregisterActionHandler=function(S){if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.PG(_.dQ.getInstance(),(c[S]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(S))?(c.pop(),c.length===0&&(c={},_.PG(_.dQ.getInstance(),(c[S]=!0,c),this.getRoot()),this.actionHandlers.delete(S))):_.i5(new _.Yr("Attempted to unregister an action handler which is not registered.",S))};
_.J.addPageDisposeJob=function(S){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Lz(this.rootElement.pageDisposeJobs,S)};
_.J.removePageDisposeJob=function(S){this.rootElement.pageDisposeJobs&&_.tZ(this.rootElement.pageDisposeJobs,S)};
_.J.dispatchEvent=function(S,c){_.Az(this.rootElement,S,c)};
_.J.provideRenderingData=function(S,c){this.rootElement.provideRenderingData(S,c)};
_.J.scrollWatchTo=function(S,c){var Q;(Q=this.watchScrollManager)==null||Q.scrollWatchTo(S,c)};
_.J.focusOnPlayer=function(){var S=this.getElement("PLAYER");_.tO(S,function(){if(S&&S.firstElementChild){var c=S.querySelector(".html5-video-player");c&&(_.ov(_.fl().resolve(_.wj)),c.focus())}else _.i5(Error("nm"))})};
_.J.updateCinematicFullscreenConfig=function(){var S=!!this.rootElement.theater,c=!!this.rootElement.fullscreen,Q;(Q=this.watchCinematicManager)==null||_.tQU(Q,c,S)};
_.J.subscribeToActiveChanged=function(S,c){c=c===void 0?!0:c;var Q=_.Kt(_.V5(),_.HQZ,function(f){S(f)});
c&&S(_.HQZ(_.V5().getState()));return Q};
_.J.isActive=function(){return _.HQZ(_.V5().getState())};
_.J.onAttached=function(){var S=_.u("external_fullscreen");_.u("use_unified_flag_accessor")&&(S=_.fl().resolve(_.xH2).retriever.getFlag(_.Qqs));(S||_.gC("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var ciN=function(S){return S.getRoot().is==="ytd-watch-flexy"||S.getRoot().is==="ytd-watch-grid"},eO=function(S){return S.getRoot().is==="ytd-watch-fixie"};
_.gs.prototype.initPersistentModules=function(){if(eO(this)||ciN(this)&&_.u("kevlar_watch_flexy_theater_manager")){var S=new _.lFp(this);_.F5(this,S)}S=new _.AI2(this);_.F5(this,S);S=new _.hC(this);_.F5(this,S);S=new _.Z1(this);_.F5(this,S);S=new _.Z_g(this);_.F5(this,S);S=new _.Ti(this);_.F5(this,S);if(eO(this)||ciN(this)&&_.u("kevlar_watch_flexy_playlist_manager"))S=new _.gEZ(this),_.F5(this,S)};
_.gs.prototype.initOrDisposeActiveModules=function(S){S?(this.watchScrollManager=new _.WP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.jdE(this)),this.activeModules.push(new _.Dtg(this)),eO(this)&&this.activeModules.push(new Sfp(this)),this.activeModules.push(new _.PtV(this)),this.activeModules.push(new _.Gi(this)),(eO(this)||_.u("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new _.Tm1(this)),this.activeModules.push(new _.pQp(this)),
(eO(this)||_.u("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new _.EE8(this)),(eO(this)||_.u("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new _.geE(this)),_.u("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.veG(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.u("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.wQ1(this)),_.u("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.JIO(this)),
S=_.u("swatcheroo_directly_provide_comments")&&this.getRoot().is==="ytd-watch-grid",_.u("kevlar_watch_flexy_comments_manager")&&!S&&this.activeModules.push(new _.SNE(this)),_.u("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.qT(this)),this.activeModules.push(new _.T7O(this)),this.activeModules.push(new _.YN8(this)),_.u("web_enable_timely_actions")&&this.activeModules.push(new _.i7g(this)),_.u("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.fFG(this)),
_.u("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.tvU(this)),_.u("web_fullscreen_components")&&this.activeModules.push(new _.iFN(this)),_.u("web_player_rtr_ctrls")&&this.activeModules.push(new _.JuE(this))):(_.oq(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.gs.prototype.disposeInternal=function(){_.R4.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Rh.Object.defineProperties(_.gs.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var n$2,C7,bCG,Nwp,$Np,u8O,K3N,j48;n$2=function(){var S=_.Yt();S.info||(S.info={});return S.info};
C7=function(S){return Math.round(_.p8()+S)};
bCG=function(){var S;if(_.u("csi_use_performance_navigation_timing")){var c,Q,f,U=_.D5==null?void 0:(S=_.D5.getEntriesByType)==null?void 0:(c=S.call(_.D5,"navigation"))==null?void 0:(Q=c[0])==null?void 0:(f=Q.toJSON)==null?void 0:f.call(Q);U?(U.requestStart=C7(U.requestStart),U.responseEnd=C7(U.responseEnd),U.redirectStart=C7(U.redirectStart),U.redirectEnd=C7(U.redirectEnd),U.domainLookupEnd=C7(U.domainLookupEnd),U.connectStart=C7(U.connectStart),U.connectEnd=C7(U.connectEnd),U.responseStart=C7(U.responseStart),
U.secureConnectionStart=C7(U.secureConnectionStart),U.domainLookupStart=C7(U.domainLookupStart),U.isPerformanceNavigationTiming=!0,S=U):S=_.D5.timing}else S=_.u("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.D5.timing)):_.D5.timing;return S};
Nwp=function(){if(_.D5.getEntriesByType){var S=_.D5.getEntriesByType("paint");if(S=_.Wc(S,function(Q){return Q.name==="first-paint"}))return C7(S.startTime)}var c;
_.u("csi_use_performance_navigation_timing")?c=_.D5.getEntriesByType("first-paint")[0].startTime:c=_.D5.timing.msFirstPaint;return c?Math.max(0,c):0};
$Np=function(){var S=window.location.protocol,c=_.D5.getEntriesByType("resource");c=_.z1(c,function(Q){return Q.name.indexOf(S+"//fonts.gstatic.com/s/")===0});
(c=K3N(c,function(Q,f){return f.duration>Q.duration?f:Q}))&&c.startTime>0&&c.responseEnd>0&&(_.hz("wffs",C7(c.startTime)),_.hz("wffe",C7(c.responseEnd)))};
u8O=function(S,c){S=document.querySelector(S);if(!S)return!1;var Q="",f=S.nodeName;f==="SCRIPT"?(Q=S.src,Q||(Q=S.getAttribute("data-timing-href"))&&(Q=window.location.protocol+Q)):f==="LINK"&&(Q=S.href);_.Mg(document)&&S.setAttribute("nonce",_.Mg(document));return Q?(S=_.D5.getEntriesByName(Q))&&S[0]&&(S=S[0],Q=_.p8(),_.hz("rsf_"+c,Q+Math.round(S.fetchStart)),_.hz("rse_"+c,Q+Math.round(S.responseEnd)),S.transferSize!==void 0&&S.transferSize===0)?!0:!1:!1};
_.HU=function(S,c){_.kC(function(){_.H2("").info.actionType=S;c&&_.G_("TIMING_AFT_KEYS",c);_.G_("TIMING_ACTION",S);var Q=_.EmM(_.WY("TIMING_INFO",{}));Object.keys(Q).length>0&&_.qD(Q);Q={isNavigation:!0,actionType:_.MVo(_.WY("TIMING_ACTION"))};var f=_.WY("PREVIOUS_ACTION");f&&(Q.previousAction=_.MVo(f));if(f=_.WY("CLIENT_PROTOCOL"))Q.httpProtocol=f;if(f=_.WY("CLIENT_TRANSPORT"))Q.transportProtocol=f;(f=_.wN())&&f!=="UNDEFINED_CSN"&&(Q.clientScreenNonce=f);f=_.LtT();if(f===1||f===-1)Q.isVisible=!0;
f=_.HfM().loadType==="cold";var U=n$2();f||(f=U.yt_lt==="cold");if(f){Q.loadType="cold";f=n$2();U=bCG();var a=_.p8(),X=_.WY("CSI_START_TIMESTAMP_MILLIS",0);X>0&&!_.u("embeds_web_enable_csi_start_override_killswitch")&&(a=X);a&&(_.hz("srt",U.responseStart),f.prerender!==1&&_.gmY(a));f=Nwp();f>0&&_.hz("fpt",f);f=bCG();f.isPerformanceNavigationTiming&&_.qD({performanceNavigationTiming:!0},void 0);_.hz("nreqs",f.requestStart,void 0);_.hz("nress",f.responseStart,void 0);_.hz("nrese",f.responseEnd,void 0);
f.redirectEnd-f.redirectStart>0&&(_.hz("nrs",f.redirectStart,void 0),_.hz("nre",f.redirectEnd,void 0));f.domainLookupEnd-f.domainLookupStart>0&&(_.hz("ndnss",f.domainLookupStart,void 0),_.hz("ndnse",f.domainLookupEnd,void 0));f.connectEnd-f.connectStart>0&&(_.hz("ntcps",f.connectStart,void 0),_.hz("ntcpe",f.connectEnd,void 0));f.secureConnectionStart>=_.p8()&&f.connectEnd-f.secureConnectionStart>0&&(_.hz("nstcps",f.secureConnectionStart,void 0),_.hz("ntcpe",f.connectEnd,void 0));_.D5&&"getEntriesByType"in
_.D5&&$Np();f=[];if(document.querySelector&&_.D5&&_.D5.getEntriesByName)for(var z in j48)j48.hasOwnProperty(z)&&(U=j48[z],u8O(z,U)&&f.push(U));if(f.length>0)for(Q.resourceInfo=[],z=_.A(f),f=z.next();!f.done;f=z.next())Q.resourceInfo.push({resourceCache:f.value})}_.qD(Q);Q=_.C8();Q.preLoggedGelInfos||(Q.preLoggedGelInfos=[]);z=Q.preLoggedGelInfos;Q=_.pmo();f=void 0;for(U=0;U<z.length;U++)if(a=z[U],a.loadType){f=a.loadType;break}if(_.HfM().loadType==="cold"&&(Q.loadType==="cold"||f==="cold")){f=_.DIZ();
U=_.C8();U=U.gelTicks?U.gelTicks:U.gelTicks={};for(var x in f)if(!(x in U))if(typeof f[x]==="number")_.hz(x,_.TZ(x));else if(_.u("log_repeated_ytcsi_ticks"))for(a=_.A(f[x]),X=a.next();!X.done;X=a.next())X=X.value,_.hz(x.slice(1),X);x={};f=!1;z=_.A(z);for(U=z.next();!U.done;U=z.next())f=U.value,_.Zq(Q,f),_.Zq(x,f),f=!0;f&&_.qD(x)}_.ymr(!0);x=_.WY("TIMING_ACTION");_.rC("ytglobal.timingready_")&&x&&_.A1Z()&&_.R7x()&&_.vmZ()})()};
K3N=function(S,c){return Array.prototype.reduce.call(S,c,{duration:0})};
j48={'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 lSU={};lSU.YtVisibilityRootBehavior=[_.Gmd.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.yN(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.WY("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var S=_.WY("INNERTUBE_CLIENT_NAME")!=="WEB";_.u("kevlar_use_vimio_behavior")&&S&&_.imd()}}];_.DF={};_.DF.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(S){S.detail.contextProvider=this;S.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
lSU.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.L4();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(S){var c=this;this.pageCount+=1;_.u("kevlar_use_vimio_behavior")&&(_.WY("INNERTUBE_CLIENT_NAME")==="WEB"?_.Mq.addJob(function(){c.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(S)},
loadPage_:function(S){this.data=S},
ytPageBehaviorActiveObserver_:function(S){var c=this;_.u("kevlar_use_vimio_behavior")&&(S?_.WY("INNERTUBE_CLIENT_NAME")==="WEB"?_.Mq.addJob(function(){c.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(S){if(!this.setScrollTopJobId_){var c=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){c.setScrollTopJobId_=0;var Q=_.fl().resolve(_.QS(_.wj));Q&&_.ov(Q);this.getPageScrollingElement().scrollTop=S}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.D$(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var IS0;var Ye=function(){var S=_.W.apply(this,arguments)||this;S.playerListenerConfig=null;S.actionMap={"yt-show-watch-page-survey":"openSurvey"};return S};
_.C(Ye,_.W);_.J=Ye.prototype;_.J.dataChanged=function(){var S=this,c=_.S9();c&&c.getPlayerPromise().then(function(f){S.maybeRemovePlayerListeners(f)});
var Q=this.data&&this.data.survey;Q&&((Q=(Q=Q.singleOptionSurveyRenderer||Q.checkboxSurveyRenderer||Q.multiStageSurveyRenderer)&&Q.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(c,Q):this.openSurvey())};
_.J.triggerWatchPageSurvey=function(S,c){var Q=this,f,U,a,X,z,x,I,n,b;return _.O(function(N){if(N.nextAddress==1)return S?_.F(N,S.getPlayerPromise(),2):N.return();Q.player=N.yieldResult;if(!Q.player)return N.return();f={};U=_.A(c);for(a=U.next();!a.done;a=U.next())X=a.value,z=_.A(Q.createEventListenerPair(X)),x=z.next().value,I=z.next().value,n=x,b=I,n&&b&&(f[n]=b,Q.ytPlayerListenerBehavior.listenToPlayerEvent(Q.player,n,b));Q.playerListenerConfig=f;_.IN(N)})};
_.J.createEventListenerPair=function(S){var c=S.playbackEventTrigger;return c?this.handlePlaybackTrigger(c):(S=S.watchTimeTrigger)?this.handleWatchTimeTrigger(S):[void 0,void 0]};
_.J.handleWatchTimeTrigger=function(S){var c=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var Q=S.videoWatchFraction,f=S.watchTimeSec;return f&&Q?["onVideoProgress",function(){c.player&&c.isWatchTimeConditionMet(c.player,Q,f)&&c.showSurvey()}]:[void 0,
void 0]};
_.J.isWatchTimeConditionMet=function(S,c,Q){var f=S.getProgressState(),U=f.current-this.lastKnownPlaybackPosition;U<5&&(this.accumulatedMediaTime+=U);this.lastKnownPlaybackPosition=f.current;f=Math.round(this.accumulatedMediaTime/f.duration*1E3)/1E3;return S.getPresentingPlayerType&&S.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>Q||f>c)};
_.J.handlePlaybackTrigger=function(S){var c=this;S=S.playbackEvent;if(S==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var Q="onStateChange";var f=function(U){U===0&&c.showSurvey()}}else S==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(Q="onVideoProgress",f=function(U){c.player&&c.player.getPresentingPlayerType&&c.player.getPresentingPlayerType()===1&&U&&c.showSurvey()}):S==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(Q="onAdEnd",f=this.showSurvey);
return[Q,f]};
_.J.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.J.openSurvey=function(){var S=this,c=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.sN8(!!c));_.Mq.addJob(function(){S.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:c}})},0,0)};
_.J.maybeRemovePlayerListeners=function(S){if(this.playerListenerConfig){for(var c=_.A(Object.keys(this.playerListenerConfig)),Q=c.next();!Q.done;Q=c.next())Q=Q.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(S,Q,this.playerListenerConfig[Q]);this.playerListenerConfig=null}};
Ye.prototype.dataChanged=Ye.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],Ye.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],Ye.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Ye.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],Ye.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ye.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Ye.prototype,"playerListenerConfig",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Ye.prototype,"lastKnownPlaybackPosition",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],Ye.prototype,"accumulatedMediaTime",void 0);_.d([_.Z(),_.P("design:type",Object)],Ye.prototype,"player",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ye.prototype,"dataChanged",null);_.d([_.e({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Ye);
_.k(Ye,"ytd-survey-trigger-renderer",function(){if(IS0!==void 0)return IS0;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return IS0=S},{mode:1});
}catch(e){_._DumpException(e)}
try{
var AYE=new _.L("promotedSparklesWebRenderer");var X62=new _.L("relatedChipCommand");var OQg;var zPN;var Nv=function(){return _.W.apply(this,arguments)||this};
_.C(Nv,_.W);Nv.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Nv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Nv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Nv.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],Nv);
_.k(Nv,"ytd-compact-tvfilm-entry-point-renderer",function(){if(zPN!==void 0)return zPN;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return zPN=S},{mode:1});var xWG;var FHZ;var Bq1;var KV=function(){return _.W.apply(this,arguments)||this};
_.C(KV,_.W);KV.prototype.ready=function(){this.initializeDefs()};
KV.prototype.initializeDefs=function(){var S=this.meta.byKey("yt-icons"),c=_.Ur(S).querySelector("#star"),Q=_.Ur(S).querySelector("#star_half");S=_.Ur(S).querySelector("#star_border");c&&this.defs.appendChild(c.cloneNode(!0));Q&&this.defs.appendChild(Q.cloneNode(!0));S&&this.defs.appendChild(S.cloneNode(!0))};
KV.prototype.percentChanged=function(){for(var S=this.rating;S.firstChild;)S.removeChild(S.firstChild);var c=Math.round(this.percent/10);S=Math.floor(c/2);c%=2;var Q=5-S-c;this.appendStars("star",S,0);this.appendStars("star_half",c,S);this.appendStars("star_border",Q,S+c)};
KV.prototype.appendStars=function(S,c,Q){for(var f=0;f<c;f++){var U=(18+this.spacing)*(f+Q),a=document.createElementNS("http://www.w3.org/2000/svg","use");_.M6N(a,"#"+S);a.setAttribute("x",""+U);a.setAttribute("y","0");this.rating.appendChild(a)}};
KV.prototype.percentChanged=KV.prototype.percentChanged;_.d([_.nU("#defs"),_.P("design:type",HTMLElement)],KV.prototype,"defs",void 0);_.d([_.nU("#rating"),_.P("design:type",HTMLElement)],KV.prototype,"rating",void 0);_.d([_.Z(),_.P("design:type",Number)],KV.prototype,"percent",void 0);_.d([_.Z({value:6}),_.P("design:type",Number)],KV.prototype,"spacing",void 0);_.d([_.Z({value:_.lK.create("iron-meta",{type:"iconset"})}),_.P("design:type",_.pO)],KV.prototype,"meta",void 0);
_.d([_.B0("percent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KV.prototype,"percentChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-ratings"})],KV);
_.k(KV,"ytd-ratings",function(){if(Bq1!==void 0)return Bq1;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Bq1=S},{mode:1});var $w=function(){return _.W.apply(this,arguments)||this};
_.C($w,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$w.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$w.prototype,"data",void 0);_.d([_.e({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],$w);
_.k($w,"ytd-offer-review-renderer",function(){if(FHZ!==void 0)return FHZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return FHZ=S},{mode:1});var uy=function(){var S=_.W.apply(this,arguments)||this;S.badges=[{textBadge:{label:_.LK("CC")}}];return S};
_.C(uy,_.W);_.J=uy.prototype;_.J.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.J.dataChanged=function(){var S=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(S&&S.commandMetadata&&_.Y(S.commandMetadata,_.hp)&&_.Y(S.commandMetadata,_.hp).fireAutomatically)_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}});else{var c;S&&((c=_.Y(S,_.hp))==null?0:c.fireAutomatically)&&_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})}};
_.J.isEmptyContent=function(S){return this.isStorefrontEntryPointEmpty(S)&&this.shouldHideOfferModule(S)};
_.J.isStorefrontEntryPointEmpty=function(S){return!S||!S.storefrontEntryPoint};
_.J.shouldHideOfferModule=function(S){return!!S.hideVideoDetails};
_.J.isOfferModuleNavigationInactive=function(S){return!S.navigationEndpoint&&!S.serviceEndpoint};
_.J.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
uy.prototype.dataChanged=uy.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uy.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],uy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uy.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.P("design:type",Boolean)],uy.prototype,"hidden",void 0);
_.d([_.Z(),_.P("design:type",Object)],uy.prototype,"badges",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uy.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],uy);
_.k(uy,"ytd-movie-offer-module-renderer",function(){if(xWG!==void 0)return xWG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return xWG=S},{mode:1});var IoO;var j2=function(){return _.W.apply(this,arguments)||this};
_.C(j2,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],j2.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],j2.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],j2);
_.k(j2,"ytd-media-masthead-renderer",function(){if(IoO!==void 0)return IoO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return IoO=S},{mode:1});var nBg;_.f4(_.kdz,"course-metadata-view-model",{props:{data:_.Qn,isOverlay:_.Qn}});var ly=function(){var S=_.W.apply(this,arguments)||this;S.isMetadataVisible=!1;S.modernPanels=_.u("kevlar_watch_modern_panels");S.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return S};
_.C(ly,_.W);_.J=ly.prototype;
_.J.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"}}}}};
_.J.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.J.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.J.expanderChanged=function(){var S;if((S=this.data)==null?0:S.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.J.isExpandButtonToggled=function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.expandMetadataButton,_.CS))==null?void 0:c.isToggled};
_.J.onVisibilityButtonClick=function(){var S;if((S=this.data)==null?0:S.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.J.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
ly.prototype.expanderChanged=ly.prototype.expanderChanged;ly.prototype.dataChanged=ly.prototype.dataChanged;ly.prototype.descriptionChanged=ly.prototype.descriptionChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ly.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ly.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p([_.AN.YtActionHandlerBehavior]),_.P("design:type",Object)],ly.prototype,"actionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],ly.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],ly.prototype,"isMetadataVisible",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ly.prototype,"modernPanels",void 0);_.d([_.nU("#expander"),_.P("design:type",Object)],ly.prototype,"expander",void 0);_.d([_.B0("data.description"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ly.prototype,"descriptionChanged",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ly.prototype,"dataChanged",null);_.d([_.B0("isMetadataVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ly.prototype,"expanderChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],ly);
_.k(ly,"ytd-tvfilm-offer-module-renderer",function(){if(nBg!==void 0)return nBg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return nBg=S},{mode:2});var bQG;var Yw=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return S};
_.C(Yw,_.W);Yw.prototype.dataChanged=function(){this.hostElement.hidden=!1};
Yw.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
Yw.prototype.onThumbnailTap=function(S){this.data&&this.data.serviceEndpoint&&(_.fl().resolve(_.U8).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),S.stopPropagation())};
Yw.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
Yw.prototype.dataChanged=Yw.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Yw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Yw.prototype,"rendererBehaviors",void 0);_.d([_.p([_.AN.YtActionHandlerBehavior]),_.P("design:type",Object)],Yw.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Yw.prototype,"data",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yw.prototype,"dataChanged",null);_.d([_.e({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],Yw);
_.k(Yw,"ytd-unlimited-offer-module-renderer",function(){if(bQG!==void 0)return bQG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return bQG=S},{mode:1});var Nqg;var KHV;var CV=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return S};
_.C(CV,_.W);CV.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
CV.prototype.handleRelatedChipCommand=function(S){S=_.Y(S,X62);var c=S.contents;c?_.Oz(this.hostElement,"yt-item-section-replace-action",[c,S.targetSectionIdentifier]):_.Oz(this.hostElement,"yt-item-section-continuation-action",[S.continuationData,S.targetSectionIdentifier])};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],CV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CV.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],CV.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CV.prototype,"data",void 0);_.d([_.wM({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],CV);
_.k(CV,"yt-related-chip-cloud-renderer",function(){if(KHV===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;Nqg===void 0&&(Nqg=document.createElement("template"));var f=Nqg;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);KHV=S}S=KHV;return S},{mode:2});var HN=function(){var S=_.W.apply(this,arguments)||this;S.isTwoColumns=!0;S.hideOfferModules=!1;S.watchFeedBigThumbs=_.u("kevlar_watch_feed_big_thumbs");S.watchNextGridHideChips=_.u("kevlar_watch_grid_hide_chips");S.eligibleToSwitchToGrid=_.u("web_watch_eligible_to_switch_to_grid");S.disableShortsShelfHeightOverride=_.u("web_shorts_wn_shelf_ratio_tuning");S.isWatchNextGrid=!1;S.reuseComponents=!_.u("kevlar_watch_grid");S.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return S};
_.C(HN,_.W);_.J=HN.prototype;
_.J.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:!_.u("web_watch_grid_resize_on_observer_init_killswitch")}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[showButton]]"}}}},"data.continuations":{id:"continuations",
mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]"}}},renderPriority:0}}};
_.J.getItemsPath=function(){return"data.results"};
_.J.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.J.created=function(){this.ytLazyListBehavior.initialCount=1};
_.J.ready=function(){_.Or(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%"})};
_.J.resultsChanged=function(){if(this.data&&this.data.results){for(var S=this.data.results,c=null,Q=null,f=0;f<S.length;f++)S[f].relatedChipCloudRenderer?c=S[f].relatedChipCloudRenderer:S[f].itemSectionRenderer&&(Q=S[f].itemSectionRenderer);if(c&&Q)for(this.set("data.continuations",[]),S=_.Y(c.content,_.xYJ).chips,c=0;c<S.length;c++)if(f=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",S[c]),f.loadCached||!f.contents){f.contents=Q.contents;break}}};
_.J.dataChanged=function(){var S=this,c;if((c=this.data)!=null&&c.results&&this.hasAllowedInstreamAd(this.playerData)){if(c=this.data.results.filter(function(z){return!!z.promotedSparklesWebRenderer})){for(var Q=0;Q<c.length;Q++){var f=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",c[Q]);
if(f)for(var U=0;U<f.length;U++)f[U]&&f[U].baseUrl&&_.vt(f[U].baseUrl)}this.set("data.results",this.data.results.filter(function(z){return!z.promotedSparklesWebRenderer}))}if(c=this.data.results.filter(function(z){return!!S.getSparklesAd(z)})){c=_.A(c);
for(U=c.next();!U.done;U=c.next())if(f=Q=void 0,U=(Q=this.getSparklesAd(U.value))==null?void 0:(f=Q.errorCommand)==null?void 0:f.loggingUrls)for(Q=_.A(U),f=Q.next();!f.done;f=Q.next())(f=f.value)&&f.baseUrl&&_.vt(f.baseUrl);var a,X;this.set("data.results",(a=this.data)==null?void 0:(X=a.results)==null?void 0:X.filter(function(z){return!z.adSlotRenderer}))}}};
_.J.getSparklesAd=function(S){var c,Q;S=_.Y((c=S.adSlotRenderer)==null?void 0:(Q=c.fulfillmentContent)==null?void 0:Q.fulfilledLayout,_.w$J);return _.Y(S==null?void 0:S.renderingContent,AYE)};
_.J.hasAllowedInstreamAd=function(S){S=this.get("adPlacements",S)||[];for(var c=0;c<S.length;c++){var Q=this.get("adPlacementRenderer.config.adPlacementConfig",S[c]);if(Q&&Q.suppressDisplayAd)return!0}return!1};
_.J.computeHideUnlimitedOfferModule=function(S,c){return S&&S.offerModule&&c&&S.offerModule.unlimitedOfferModuleRenderer&&S.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(c)?!0:!1};
_.J.hideUnlimitedOfferModuleChanged=function(){var S=_.Ur(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");S&&(S.hidden=this.hideUnlimitedOfferModule)};
_.J.updateLockupContainerTypes=function(S){if(this.eligibleToSwitchToGrid){var c;(c=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||c.forEach(function(Q){Q.containerType=S})}};
_.J.computeHideTvfilmOfferModule=function(S,c){var Q,f;return!!((S==null?0:(Q=S.offerModule)==null?0:(f=Q.tvfilmOfferModuleRenderer)==null?0:f.clientShouldSuppressIfCompanionAdDisplayed)&&c&&this.hasCompanionAds(c))};
_.J.hideTvfilmOfferModuleChanged=function(){var S=_.Ur(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");S&&(S.hidden=this.hideTvfilmOfferModule)};
_.J.hasCompanionAds=function(S){S=this.get("adPlacements",S)||[];for(var c=0;c<S.length;c++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",S[c]))return!0;var Q=void 0,f=void 0,U=void 0;if(!_.u("web_watch_top_banner_companion_check_killswitch")&&((Q=S[c])==null?0:(f=Q.adPlacementRenderer)==null?0:(U=f.renderer)==null?0:U.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.J.hasSuppressedResults=function(S){return S==null?!0:S.filter(function(c){return!c.continuationItemRenderer&&!c.compactPromotedVideoRenderer&&!c.promotedSparklesWebRenderer}).length===0};
_.J.computeShowButton=function(S,c){return this.isWatchNextGrid?S:S||this.hasSuppressedResults(c)};
_.J.showButtonChanged=function(){if(this.isWatchNextGrid){var S=_.Ur(this.hostElement).querySelector("ytd-rich-grid-renderer");S&&this.showButton!==null&&(S.continuationShowButton=this.showButton)}else{S=_.Ur(this.hostElement).querySelector("yt-next-continuation");var c=_.Ur(this.hostElement).querySelector("ytd-continuation-item-renderer"),Q=_.Ur(this.hostElement).querySelector("ytd-item-section-renderer");S&&(S.showButton=this.showButton);c&&(c.showButton=this.showButton);Q&&(Q.continuationShowButton=
this.showButton)}};
_.J.continuationTap=function(S){var c;if(((c=this.data)==null?void 0:c.continuations)!=null&&S.target.tagName==="TP-YT-PAPER-BUTTON")for(S=this.data.continuations,c=0;c<S.length;c++)S[c].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(S[c].nextContinuationData||{})};
_.J.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("shown-items-changed",this.shownItems))};
_.Rh.Object.defineProperties(HN.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
containsLockups:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.shownItems)==null||!S.some(function(c){return!!c.lockupViewModel||c.compactVideoRenderer}))}}});
HN.prototype.shownItemsChangedForBinding=HN.prototype.shownItemsChangedForBinding;HN.prototype.showButtonChanged=HN.prototype.showButtonChanged;HN.prototype.hideTvfilmOfferModuleChanged=HN.prototype.hideTvfilmOfferModuleChanged;HN.prototype.updateLockupContainerTypes=HN.prototype.updateLockupContainerTypes;HN.prototype.hideUnlimitedOfferModuleChanged=HN.prototype.hideUnlimitedOfferModuleChanged;HN.prototype.dataChanged=HN.prototype.dataChanged;HN.prototype.resultsChanged=HN.prototype.resultsChanged;
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],HN.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],HN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],HN.prototype,"ytLazyListBehavior",void 0);_.d([_.p(_.vM.YtNextContinuationBehavior),_.P("design:type",Object)],HN.prototype,"ytNextContinuationBehavior",void 0);
_.d([_.p(_.di),_.P("design:type",Object)],HN.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],HN.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],HN.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],HN.prototype,"playerData",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],HN.prototype,"autoFill",void 0);_.d([_.Z({value:60}),_.P("design:type",Number)],HN.prototype,"targetFramerate",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HN.prototype,"isTwoColumns",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HN.prototype,"hideOfferModules",void 0);_.d([_.Z(),_.P("design:type",Object)],HN.prototype,"shownItems",void 0);_.d([_.Z({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.P("design:type",Boolean)],HN.prototype,"hideUnlimitedOfferModule",void 0);
_.d([_.Z({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.P("design:type",Boolean)],HN.prototype,"hideTvfilmOfferModule",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HN.prototype,"watchFeedBigThumbs",void 0);_.d([_.Z(),_.P("design:type",Object)],HN.prototype,"watchNextGridHideChips",void 0);_.d([_.Z(),_.P("design:type",Object)],HN.prototype,"eligibleToSwitchToGrid",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HN.prototype,"disableShortsShelfHeightOverride",void 0);_.d([_.Z({selector:_.e9,reflectToAttribute:!0}),_.P("design:type",Object)],HN.prototype,"isGridViewEnabled",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],HN.prototype,"showMoreButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HN.prototype,"isWatchNextGrid",void 0);
_.d([_.Z({computed:"computeShowButton(showMoreButton, data.results)"}),_.P("design:type",Boolean)],HN.prototype,"showButton",void 0);_.d([_.$n("data.results.*"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HN.prototype,"resultsChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HN.prototype,"dataChanged",null);
_.d([_.B0("hideUnlimitedOfferModule"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HN.prototype,"hideUnlimitedOfferModuleChanged",null);_.d([_.M("isGridViewEnabled","containsLockups","data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Number),_.P("design:paramtypes",[])],HN.prototype,"lockupContainerType",null);
_.d([_.B0("lockupContainerType","data"),_.P("design:type",Function),_.P("design:paramtypes",[Number]),_.P("design:returntype")],HN.prototype,"updateLockupContainerTypes",null);_.d([_.B0("hideTvfilmOfferModule"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HN.prototype,"hideTvfilmOfferModuleChanged",null);_.d([_.B0("showButton"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HN.prototype,"showButtonChanged",null);
_.d([_.B0("shownItems"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HN.prototype,"shownItemsChangedForBinding",null);_.d([_.M("shownItems"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],HN.prototype,"containsLockups",null);
_.k(HN,"ytd-watch-next-secondary-results-renderer",function(){if(OQg===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);OQg=S}S=OQg;return S},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.kH1={};
_.kH1.YtdWatchBehavior=[_.m.YtRendererBehavior,_.vC.YtPlayerListenerBehavior,_.aQ.YtRendererstamperBehavior,_.AN.YtActionHandlerBehavior,_.DF.YtPageBehavior,_.Km.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 _.gC("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.u("web_watch_provide_secondary_results_renderer")}},
enableFullBleedSingleColumnDefaultPlayer:{type:Boolean,value:function(){return _.u("full_bleed_single_column_default_player")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.gC("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 _.u("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.u("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,
computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded,liveChatPresentAndExpanded, playlistPanelExpanded, fullscreen, theater)"},
richItemMinWidth:{type:Number,value:function(){return _.a6("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.a6("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.u("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.u("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.u("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater, 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 _.u("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.u("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.u("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var S={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:_.s3(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.s3(["aa","eocs"])},alerts:{id:"alerts",mapping:{alertRenderer:"yt-alert-renderer",alertWithButtonRenderer:"ytd-alert-with-button-renderer"}},"data.contents.twoColumnWatchNextResults.miniplayerBar":{id:"miniplayer-bar",mapping:{miniplayerBarRenderer:"ytd-miniplayer-bar-renderer"}},
microformat:{id:"microformat",mapping:{playerMicroformatRenderer:"player-microformat-renderer"}},singleColumn:{id:"single-column-container",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}};this.is!=="ytd-watch-grid"||_.u("swa_prov_panels_ks")?S.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:(S.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}},S.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return S},
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 S=this;this.watchController=void 0;this.pageDisposeJobs=[function(){S.showMetadataPlaceholder_()},
function(){_.u("web_watch_dont_clear_comments")||S.clearComments_()},
function(){S.clearPlayerAds_()},
function(){S.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.is==="ytd-watch-grid"&&(this.visiblePanelIdentifiers_=new Set);this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.u("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.u("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.DvU(function(){return _.mZ(S)},this.hostElement);
this.pageDisposeJobs.push(function(){S.youThereManager_.reset()});
_.u("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){S.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.O$;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",this.onAdStateChange_);this.playerEvents_.set("onStateChange",
this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;this.watchMetadata=void 0;_.u("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]=
"setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.u("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.xn(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(S){S&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:S}),S.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(S){_.u("kevlar_watch_flexy_theater_manager")&&(this.theater=S,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(S){!_.u("kevlar_watch_while_v2")&&!_.u("web_watch_pip")||S||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(S){this.active!==void 0&&(this.fullscreen=S,_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(S){this.active!==void 0&&(_.Az(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(S>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(S){this.initCsi_();this.updatePageData_(S)},
updatePageData_:function(S){var c=this;if(S)if(this.data===S){this.onPageLoadWithSameData_();var Q;(Q=this.watchController)==null||Q.setWatchNextResponse(this.data)}else this.data=S;this.playlist&&_.sz({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.i2("nw");this.loading=!1;_.HG(_.Mq,function(){c.initDclkstatus_();var f,U=((f=c.player)==null?void 0:f.getVideoData().cpn)||"";_.FRG(function(a,X){_.Uxp(a,X,U)})})},
onPageLoadWithSameData_:function(){_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var S=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!S);this.set("loadingData.playlistLoading",S&&S!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),S=this.watchNextSkeletonEl_.firstElementChild;S;)S.classList.remove("hidden"),S=S.nextElementSibling;if(_.u("kevlar_watch_frame0_loading_state")){var c,Q,f;S=(c=this.loadingData)==null?void 0:(Q=c.endpoint)==null?void 0:(f=Q.watchEndpoint)==null?void 0:f.videoId;var U;S&&(U="https://i.ytimg.com/vi/"+S+"/frame0.jpg");_.Ur(this.hostElement).querySelector("#player").style.backgroundImage=U?"url("+U+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var S=_.Ur(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&S&&(S.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,Q;(Q=(c=this.watchMetadata).updateSentimentBarWidth)==
null||Q.call(c);var f,U;(U=(f=this.watchMetadata).resize)==null||U.call(f)}_.u("kevlar_watch_frame0_loading_state")&&(_.Ur(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(S){var c=_.Ur(this.hostElement).querySelector(S);c?_.Jz(c,!1):_.i5(new _.Yr("Overscroll monitor not found for component: ",S))},
removeSplitScrollMouseTrap:function(S){var c=_.Ur(this.hostElement).querySelector(S);c?_.aI(c):_.i5(new _.Yr("Disposal component for  overscroll monitoring not found: ",S))},
onLoadingChanged_:function(S){S?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(S){var c=this;S?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Mq.addLowPriorityJob(function(){c.onWindowResized_(_.jm(!0))})},
updateTheaterModeState_:function(S){if(!_.u("kevlar_watch_flexy_theater_manager")){S=S||this.fullWindowMode_;if(this.theater!==void 0||S)this.theater=S;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();S&&_.YKp()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var S=this.theater||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer;_.u("external_fullscreen")&&this.fullscreen&&(S=!0);S=S?_.Ur(this.hostElement).querySelector("#player-full-bleed-container"):_.Ur(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),Q=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip");c.parentElement!==S&&(Q&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.mZ(this).appendTo(S,
c),S.appendChild(_.Ur(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var S=this;return _.O(function(c){if(c.nextAddress==1)return _.F(c,_.fl().resolve(_.ra).deactivate(),2);S.updatePlayerLocation();_.IN(c)})},
updateCinematicsLocation:function(){var S=this.getElement("CINEMATICS");if(S){var c=this.getCinematicsLocationContainer();S.parentElement!==c&&c.appendChild(S);var Q;(Q=this.watchController)==null||Q.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Ur(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Ur(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(S,c){var Q=document.documentElement.hasAttribute("dark"),f=Q&&_.u("web_cinematic_theater_mode"),U=Q&&_.u("web_cinematic_fullscreen");Q=!Q&&this.cinematicLightTheme;return S&&f||c&&U||(c||S)&&Q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var S=this,c;(c=this.watchController)==null||c.setWatchNextResponse(this.data);_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.fl().resolve(_.G7).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());if(this.is==="ytd-watch-grid")if(this.liveChatCollapsed=!0,this.visiblePanelIdentifiers_.clear(),
this.engagementPanelExpanded=!1,_.u("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.Mq.addLowPriorityJob(function(){_.Oz(S.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.u("web_watch_start_chat_in_theater_mode")){var Q,f,U;if((Q=this.data)==null?0:(f=Q.contents)==null?0:(U=f.twoColumnWatchNextResults)==null?0:U.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var a,X;((a=this.data)==null?0:(X=a.contents)==null?0:X.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(S){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);S&&S.playabilityStatus&&(c=this.isVideoPlayable_(S.playabilityStatus,this.getPlayerOverlays_(this.data)),S=this.isLiveStreamOffline_(S.playabilityStatus),c&&!S||_.tO(this,function(){_.i2("pbu")}));
this.setPlayerAds_();_.Oz(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(S,c){if((_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"))&&this.playerData&&c)return this.playerData.videoDetails},
watchPageActiveChanged_:function(S){_.V5().dispatch(_.V_0(this.active));S?this.activate_():this.deactivate_()},
attached:function(){var S=this;this.watchController=new _.gs(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.u("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.mZ(this);_.u("kevlar_disable_prepare_player")||
c.preparePlayer();_.u("kevlar_watch_flexy_playlist_manager")||_.fl().resolve(_.G7).setPlayer(c);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.q4()+"px"};this.is==="ytd-watch-grid"&&(c["--ytd-watch-flexy-sidebar-width"]=_.XBZ+"px",c["--ytd-watch-grid-horizontal-page-margins"]=_.Z_+"px",c["--ytd-watch-grid-columns-top-margins"]=_.JRB+"px",c["--ytd-watch-grid-min-player-height-medium"]="360px");!_.a6("kv_pl_mx_sz_ks")&&
_.a6("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.OB2+"px");_.a6("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.zXE+"px");this.safeUpdateStyles(c);_.u("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.OA(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return S.onPlayerTouchPanDown_()}}));
this.watchMetadata=_.Ur(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])")},
updatePageMediaQueries:function(){var S=_.q4(),c=_.GH+S,Q=c;this.fixedPanels&&(c+=_.XBZ);var f=657+S;S=1327+S;_.Ur(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Ur(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(S+"px)");_.Ur(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(S+"px)");
_.Ur(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+Q+"px)"},
calculateCurrentPlayerSize_:function(){var S=_.Ur(this.hostElement).querySelector("#miniplayer-bar").firstChild,c=this.squeezeback&&!_.u("web_watch_squeezeback_player_size_killswitch");return S&&S.active||this.theater||_.u("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||c||!this.active||!this.windowSize_||this.enableFullBleedSingleColumnDefaultPlayer&&this.fullBleedPlayer?new _.xh(NaN,NaN):_.ds(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||
this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ds(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.yN(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var S=this;this.onWindowResized_(_.jm());_.u("browse_skeleton_removal_on_watch_killswitch")||_.gC("IS_SHELL_LOAD")&&_.Bwg();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.mZ(this);c.addEventListener("yt-player-updated",_.xn(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(Q){S.playerApiReady_(Q)});
_.u("kevlar_watch_flexy_playlist_manager")||(c=_.fl().resolve(_.G7),_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.xn(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Ur(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.xn(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Mq.addLowPriorityJob(function(){_.Az(S.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.mZ(this).removeEventListener("yt-player-updated",_.xn(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.u("kevlar_watch_flexy_playlist_manager")){var S=_.fl().resolve(_.G7);_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&S.removeEventListener("yt-navigate",_.xn(this,this.onYtNavigate_));
S.cancelVideoSkip();S.removeEventListener("yt-playlist-data-updated",_.xn(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Az(this.hostElement,"yt-autonav-pause-player",!1);S=_.f8();_.u("kevlar_exit_fullscreen_leaving_watch")&&S&&_.Uz(S)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(S){this.player&&this.player.updateVideoData({rvs:S.rvs})},
getPageContents:function(S){return S&&S.contents&&S.contents.twoColumnWatchNextResults&&S.contents.twoColumnWatchNextResults.results&&S.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(S){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S)},
onRetrieveLocation_:function(S,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);S.stopPropagation()},
onSubscriptionChanged_:function(S,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.HU("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Ur(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Ur(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(S){this.player=S;this.setPlayerState(S.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.u("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.u("kevlar_unified_player")||_.u("kevlar_player_new_bootstrap_adoption"))&&_.RC()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(S,c){c=c===void 0?!0:c;_.f8()&&_.u("external_fullscreen")&&_.Uz(document.documentElement);this.theaterRequested_=S;c&&_.$r("wide",S?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.XF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Az(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(S){_.ZE(S,typeof this.player),this.player&&_.ZE(S,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var S;((S=this.player)==null?0:S.isFullscreen())?this.player.toggleFullscreen():_.XF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(S,c){return this.loading?c:!!Object.keys(S).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(S){if(S){S=_.A(S);for(var c=S.next();!c.done;c=S.next())c=c.value,c.youThereRenderer&&_.qfV(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(S){return S||{}},
userEngagementConfigDataChanged_:function(S){if(S)if(S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.f1()<S.lowEngagementThresholdMs||_.M2V(c,!0)}else S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.XF(this.hostElement,"yt-autonav-pause-user-engagement",[S])},
isPlayerUnavailable_:function(S,c,Q){return!!S&&!this.isVideoPlayable_(S,Q)&&!c},
getPlayerOverlays_:function(S){return(S==null?void 0:S.playerOverlays)||null},
isVideoPlayable_:function(S,c){if(!S)return!1;var Q=S.status==="OK"||S.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",S)||this.get("errorScreen.ypcTrailerRenderer",S);S=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",S);var U;c=c==null?void 0:(U=c.playerOverlayRenderer)==null?void 0:U.gatedActionsOverlayRenderer;return!!Q||!!f||!!S||!!c},
hasWatchNextResponseErrorRenderer:function(S){var c=this.getPageContents(S),Q,f,U,a,X;return!(S==null?0:(Q=S.contents)==null?0:(f=Q.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((U=c[0])==null?0:(a=U.itemSectionRenderer)==null?0:(X=a.contents[0])==null?0:X.backgroundPromoRenderer)},
isLiveStreamOffline_:function(S){return S?S.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(S,c,Q){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),U=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];U=_.u("web_no_skip_video_on_verification_checks")?(S==null?void 0:S.status)&&U.includes(S.status):S&&S.status==="AGE_CHECK_REQUIRED";var a=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",S);a==void 0&&(a=!0);!Q||this.isVideoPlayable_(S,this.getPlayerOverlays_(c))||
f||U||!a||_.fl().resolve(_.G7).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.KRg()},
onPlayerFeedbackStartRequest_:function(S){_.XF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:S}])},
onPlayerFeedbackArticleRequest_:function(S){_.XF(this.hostElement,"yt-help-dialog-requested",[S])},
onPlayerYpcContentRequest_:function(){var S,c,Q,f,U,a,X,z,x=((S=this.data)==null?NaN:(c=S.contents)==null?NaN:(Q=c.twoColumnWatchNextResults)==null?NaN:(f=Q.secondaryResults)==null?NaN:(U=f.secondaryResults)==null?NaN:(a=U.offerModule)==null?NaN:(X=a.tvfilmOfferModuleRenderer)==null?NaN:(z=X.actionButtons)==null?NaN:z.length)-1;S=[".offerButton.buttonRenderer.",".actionButtons."+(x>=0?x:0)+".buttonRenderer."];c=_.A(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(Q=c.next();!Q.done;Q=c.next())for(Q=Q.value,f=_.A(S),U=f.next();!U.done;U=f.next())if(U="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+Q+U.value,U=this.get(U+"navigationEndpoint",this.data)||this.get(U+"serviceEndpoint",this.data)||this.get(U+"command",this.data)){_.IW(U,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(S){_.Az(this.hostElement,"yt-autonav-pause-player",S)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(S){S()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Az(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(S)},
setPlayerState:function(S){_.V5().dispatch(_.Vre(S))},
onPlayerSubscribe_:function(S){_.XF(this.hostElement,"yt-player-subscribe",[S])},
onPlayerUnsubscribe_:function(S){_.XF(this.hostElement,"yt-player-unsubscribe",[S])},
onPlayerAdYtShowToast_:function(S){_.XF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:S.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(S){if(S)return S},
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(S){return!_.u("web_watch_move_summary_to_sd")&&!!S},
computeWatchMetadataRefresh:function(){return _.u("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.u("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var S,c,Q,f;this.watchNextSecondaryResults=(S=this.data)==null?void 0:(c=S.contents)==null?void 0:(Q=c.twoColumnWatchNextResults)==null?void 0:(f=Q.secondaryResults)==null?void 0:f.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.u("swatcheroo_pbs_load_grid")&&!_.u("swatcheroo_provide_all_data_on_scheduled_job")){_.Mq.cancelJob(this.setRichGridJobId_);var S,c,Q,f,U,a,X;this.setRichGridRendererData((S=this.data)==null?void 0:(c=S.contents)==null?void 0:(Q=c.twoColumnWatchNextResults)==null?void 0:(f=Q.secondaryResults)==null?void 0:(U=f.secondaryResults)==null?void 0:(a=U.results)==null?void 0:(X=a[0])==null?
void 0:X.richGridRenderer)}},
setRichGridRendererData:function(S){this.richGridRendererData=S},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var S,c=(S=this.data)==null?void 0:S.engagementPanels;if(c==null?0:c.length){S=null;c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0;if(((f=Q.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){S=Q;break}}var U,a,X;S=(U=S)==null?void 0:(a=U.engagementPanelSectionListRenderer)==null?void 0:(X=a.content)==null?void 0:X.structuredDescriptionContentRenderer;if(S==null?0:S.items){U=
[];a=_.A(S.items);for(X=a.next();!X.done;X=a.next()){X=X.value;if(!_.u("sd_horizontal_list_show_nav_killswitch")){var z=f=Q=c=S=void 0,x=void 0,I=(S=X.horizontalCardListRenderer)==null?void 0:(c=S.header)==null?void 0:(Q=c.richListHeaderRenderer)==null?void 0:(f=Q.navigationButton)==null?void 0:(z=f.buttonRenderer)==null?void 0:(x=z.command)==null?void 0:x.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(n){return!_.Y(n,_.CfB)}))}X.expandableVideoDescriptionBodyRenderer||
X.videoDescriptionHeaderRenderer||U.push(X)}return{items:U}}}},
constructWarning_:function(S){return{text:_.LK(S),type:"WARNING"}},
isPlaShelfEnabled_:function(S){if((this.get("adPlacements",S)||[]).length)return!0;S=this.get("playerAds",S)||[];return!(!S.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",S[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var S=this;_.Az(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.u("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.mZ(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonVisibility(S.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Az(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var S=this;this.commentsReady=!1;_.Mq.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.HG(_.Mq,function(){S.setComments_()},1E3)},
setComments_:function(){if(!_.u("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.i2("cmi");_.Mq.cancelJob(this.setCommentsJobId_);var S=this.getPageContents(this.data);if(S&&S.length){S=_.A(S);for(var c=S.next();!c.done;c=S.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Az(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.i2("cmc")},
doRemoveComments_:function(){this.comments={};_.u("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Mq.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Mq.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(S,c){var Q=_.Y(c.endpoint,_.tG);Q&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||Q.videoId!==c.videoId||Q.playlistId&&Q.playlistId!==c.playlistId||Q.index!==void 0&&Q.index!==c.index||typeof Q.startTimeSeconds!=="number"||(S.stopPropagation(),this.setScrollTop(0),_.mZ(this).getPlayerPromise().then(function(f){var U=Q.startTimeSeconds;f.seekTo(U);f.wakeUpControls();U<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var S=_.f_E();"t"in S&&(S=_.N0V(S.t),this.player.seekTo(S,!0))},
updateTitleFromWatchNext:function(S){S=this.getPageContents(S);var c,Q;(S=_.Em(S==null?void 0:(c=S[0])==null?void 0:(Q=c.videoPrimaryInfoRenderer)==null?void 0:Q.title))&&_.Az(this.hostElement,"yt-update-title",S)},
updateTitle_:function(S){S=this.get("videoDetails.title",S)||"";_.Az(this.hostElement,"yt-update-title",S)},
syncWithRemoteVideo_:function(S,c,Q){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===Q&&(Q=f.list,_.u("polymer_enable_mdx_queue")&&Q&&Q.startsWith("RQ")&&(Q=void 0),f.video_id!==S||Q!=c)){var U;_.u("kevlar_player_watch_endpoint_navigation")?U=_.W_H(_.B0p(S,c)):U=this.buildWatchEndpoint_(S,c);_.Az(this.hostElement,"yt-navigate",{endpoint:U,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(S,c,Q){return _.Q5(S,c,Q)},
initDclkstatus_:function(){_.bVG()},
attachWatchPageSkeleton_:function(){var S=document.querySelector("#watch-page-skeleton");if(S){var c=S.querySelector("#primary-info"),Q=S.querySelector("#secondary-info"),f=S.querySelector("#related");c&&_.Ur(this.hostElement).querySelector("#info-skeleton").appendChild(c);Q&&_.Ur(this.hostElement).querySelector("#meta-skeleton").appendChild(Q);f&&(_.Ur(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.K9(S)}},
handlePlayerUpdated_:function(){_.mZ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(S,c){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof c!=="undefined"){var Q=this.watchNextSkeletonEl_.children,f=S&&S.indexSplices.length?S.indexSplices[0].index:0;S=Math.min(this.watchNextShownItems.length,Q.length);c||(f=0,S=Q.length);for(c=f;c<S;c++)Q[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(S){_.u("external_fullscreen")||_.XF(this.hostElement,"yt-player-fullscreen",[S.fullscreen])},
onFullscreenChange_:function(S){this.fullscreen=S;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.mZ(this);c.getPlayerPromise().then(function(Q){Q.setFauxFullscreen(!!_.f8())});
this.updateFullBleedElementLocations();S&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(S,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(S){return S},
computeShouldShowMerchShelf:function(S,c){return c&&!!S},
computeResponseHasComments:function(S){var c,Q,f,U,a;return!!(S==null?0:(c=S.contents)==null?0:(Q=c.twoColumnWatchNextResults)==null?0:(f=Q.results)==null?0:(U=f.results)==null?0:(a=U.contents)==null?0:a.some(function(X){var z;return(X==null?void 0:(z=X.itemSectionRenderer)==null?void 0:z.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(S,c,Q,f){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&f?!1:!!S&&!!Object.keys(S).length&&!c},
identity:_.gp,onWindowResized_:function(S){this.windowSize_=S;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate());_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(S){var c=this;S&&S.type!=="dataloaded"&&S.type!=="dataupdated"||_.mZ(this).getPlayerPromise().then(function(Q){var f=Q.getPlayerState();f!==5&&f!==0&&(Q=1/Q.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==Q&&(c.videoHeightToWidthRatio_=Q))})},
schedulePlayerSizeUpdate_:function(S){var c=this,Q=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"),f=function(){if(c.watchMetadata){var U,a;(a=(U=c.watchMetadata).resize)==null||a.call(U)}_.mZ(c).getPlayerPromise().then(function(X){if(_.u("kevlar_set_internal_player_size")){if(!Q||!c.isMiniplayerActive()){var z=c.calculateCurrentPlayerSize_();X.setInternalSize(z.width,z.height)}}else X.setSize(NaN,NaN);_.u("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
S?f():_.pS(_.Mq,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(S){this.set("data.survey",S.detail)},
onYtShowSurveyCommand_:function(S){this.set("data.survey",_.Y(S,_.HVE).survey)},
onDownloadedVideoDeleted:function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1){if(!c.active||(Q=c.playerData)==null||!Q.offlineState||c.videoId!==S)return U.return();(f=c.player)==null||f.stopVideo();_.bn().navigatingAwayFromWatchDeletedVideo=!0;_.IW(_.MAR,c.hostElement);return _.F(U,_.bn().navigationFinishPromise,2)}_.bn().navigatingAwayFromWatchDeletedVideo=!1;_.IN(U)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var S;this.theater?S=_.Zv(.5625*this.windowSize_.width,480,this.windowSize_.height-185):S=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==S&&(this.watchWhileScrollThreshold_=S,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var S=_.Ur(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&S){var c=this.windowSize_.height>=624,Q=this.active?this.getScrollTop():0;!S.active&&c&&Q>=this.watchWhileScrollThreshold_?(S.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):S.active&&(!c||Q<this.watchWhileScrollThreshold_&&!_.f8())&&(S.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var S=_.Ur(this.hostElement).querySelector("#secondary-inner");if(S){var c=_.Ur(this.hostElement).querySelector("#below"),Q=_.Ur(this.hostElement).querySelector("#secondary"),f=_.Ur(this.hostElement).querySelector("#comments");f&&Q&&c&&(this.defaultTwoColumnLayout?(S.appendChild(f),Q.appendChild(S)):(c.appendChild(f),_.iy(c,S)))}}},
isTwoColumnsChanged_:function(S,c){if(S!==!0||c!==void 0)if(this.enableFullBleedSingleColumnDefaultPlayer&&this.updateFullBleedElementLocations(),this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(S=_.Ur(this.hostElement).querySelector("#secondary-inner"))){c=_.Ur(this.hostElement).querySelector("#below");var Q=_.Ur(this.hostElement).querySelector("#secondary"),f=_.Ur(this.hostElement).querySelector("#comments");f&&Q&&c&&(this.isTwoColumns_?(S.appendChild(f),Q.appendChild(S)):(c.appendChild(f),
_.iy(c,S)))}}else{S=!_.u("web_watch_enable_fs_squeezeback_panels")||!(this.fullscreen||this.iMaxTheaterMode&&this.theater);c=_.Ur(this.hostElement).querySelector("#panels");var U=_.Ur(this.hostElement).querySelector("#alerts");Q=_.Ur(this.hostElement).querySelector("#playlist");f=_.Ur(this.hostElement).querySelector("#related");var a=_.Ur(this.hostElement).querySelector("#donation-shelf"),X=_.Ur(this.hostElement).querySelector("#comments");this.isTwoColumns_?(U=_.Ur(this.hostElement).querySelector("#secondary-inner"),
S&&(U.appendChild(c),U.appendChild(Q)),U.appendChild(a),U.appendChild(f)):(S&&(_.wO(c,U),_.wO(Q,U)),_.wO(a,U),X&&_.wO(f,X));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.u("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&!_.u("web_watch_enable_fs_squeezeback_panels")&&_.u("web_watch_theater_chat")){var S=_.Ur(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.u("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?(c=_.Ur(this.hostElement).querySelector("#columns"),(S==null?void 0:S.parentElement)!==c&&c.append(S),this.fixedPanels=!0):(this.fixedPanels=
!1,c=_.Ur(this.hostElement).querySelector("#playlist"),S&&c?_.sR(S,c):_.i5(new _.Yr("Missing element when updating chat location",{"chatContainer defined":!!S,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(S,c){return _.u("sw_metadata_vis_toggle_ks")?!0:!!S||!!c},
computeForceDarkPanelTheme:function(S){return _.u("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&S:!1},
safeUpdateStyles:function(S){try{_.Or(this.hostElement,S)}catch(c){_.i5(c)}},
videoHeightToWidthRatioChanged_:function(S,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(S){this.videoHeightToWidthRatio_=1/S},
computeIsVerticalVideo_:function(S){return S>=1},
computeIsFourThreeToSixteenNineVideo_:function(S){return S<=.7501&&S>=.5624},
computeIsExtraWideVideo_:function(S){return S<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.mZ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.mZ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.iV0(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(S){var c=_.Bb(S)||0;_.F6(S,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var S=_.Bb("yt-fullerscreen-edu-button-click-count")||0,c=_.Bb("yt-fullerscreen-edu-button-shown-count")||0,Q=_.a6("external_fullscreen_button_shown_threshold"),f=S>=_.a6("external_fullscreen_button_click_threshold")||c>=Q;_.mZ(this).getPlayerPromise().then(function(U){U.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(S,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.fl().resolve(_.G7).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var S=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.Mq.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.Mq.addLowPriorityJob(function(){S.fullHeightPanelPositionUpdateJobId=0;var c=_.Ur(S.hostElement).querySelector("#secondary"),Q=_.Ur(S.hostElement).querySelector("#fixed-secondary");c=c.getBoundingClientRect();var f=c.width;S.swatcherooSqueezeback&&
(f+=_.Z_);if(S.swatcherooSqueezeback){var U=_.Ur(S.hostElement).querySelector("#squeezeback-constraining-container");U.style.width=f+"px";U.style.flex="0 0 "+f+"px"}Q.style.width=f+"px";Q.style.left=c.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var S=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.Mq.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.Mq.addLowPriorityJob(function(){S.panelMaxHeightUpdateJob_=0;var c;!S.isTwoColumns_||S.theater||S.fullscreen?c=460:c=S.calculateNormalPlayerSize_().height;var Q=c+"px";_.u("live_chat_taller_height")&&!S.theater&&(Q="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.u("live_chat_medium_height")&&!S.theater&&(Q="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.u("live_chat_scaled_height")&&!S.theater&&(Q="calc(100vh - var(--ytd-toolbar-height) - 238px)");S.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":Q,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})}))},
onYtShowEngagementPanelScrimAction_:function(S){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",S)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.FF(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(S){var c=_.Ur(this.hostElement).querySelector("#engagement-panel-scrim");S?c.addEventListener("tap",_.xn(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.xn(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(S){if(this.hostElement.contains(S)&&!this.scrollToAnimation_.isAnimating()){var c=S.offsetTop-24;S=S.offsetTop+S.offsetHeight+24;var Q=this.getPageScrollingElement(),f=this.getScrollTop(),U=f+Q.clientHeight-56;if(c<f+56)c-=56;else if(S>U)c=S-Q.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var S=this.hostElement.querySelector("#comments");if(S&&!this.scrollToAnimation_.isAnimating()){S=S.offsetTop-56-24;if(_.u("kevlar_comment_teaser_scroll_to_midpoint")&&(S-=_.B5().height/3,S<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtEngagementPanelVisibleChanged:function(S,c,Q){if(this.active&&this.trackEngagementPanelVisibility&&!_.YfU.includes(Q)){if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"){if(this.swatcherooBinaryLayout||this.squeezeback){this.onSetPlaylistCollapsed(!0);_.Oz(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]);var f=_.fl().resolve(_.YF);this.visiblePanelIdentifiers_.forEach(function(U){U!==Q&&f.hidePanel(U)})}this.visiblePanelIdentifiers_.add(Q)}c!==
"ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(Q);
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0}},
computeLegacyMetadataClass:function(S){return S?"":"watch-active-metadata"},
computeNewMetadataClass:function(S){return S?"watch-active-metadata":""},
computeFullBleedPlayer:function(S,c,Q){return S||c||this.enableFullBleedSingleColumnDefaultPlayer&&!Q},
computeDefaultLayout:function(S){return!S},
computeDefaultTwoColumnLayout:function(S,c){return!S&&c},
updatePanelsLocation:function(){if(_.u("web_watch_enable_fs_squeezeback_panels")){var S=_.Ur(this.hostElement).querySelector("#below"),c=_.Ur(this.hostElement).querySelector("#panels"),Q=_.Ur(this.hostElement).querySelector("#playlist"),f=_.Ur(this.hostElement).querySelector("#chat-container"),U=_.Ur(this.hostElement).querySelector("#panels-full-bleed-container"),a=_.Ur(this.hostElement).querySelector("#secondary-inner"),X=this.fullscreen||this.theater&&this.iMaxTheaterMode,z=this.theater&&!this.iMaxTheaterMode&&
this.liveChatPresentAndExpanded;this.fixedPanels=!1;X?(U.appendChild(c),U.appendChild(f),U.appendChild(Q)):this.isTwoColumns_?(z?(S=_.Ur(this.hostElement).querySelector("#columns"),(f==null?void 0:f.parentElement)!==S&&S.append(f),this.fixedPanels=!0):_.iy(a,f),_.iy(a,c),_.iy(a,Q)):(S.appendChild(c),S.appendChild(f),S.appendChild(Q))}},
swatcherooUpdatePanelsLocation:function(S,c,Q,f,U,a){if(this.is==="ytd-watch-grid"){c=S&&!c;this.swatcherooSplitScroll&&(c?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));Q=_.Ur(this.hostElement).querySelector("#panels");var X=_.Ur(this.hostElement).querySelector("#playlist"),z=_.Ur(this.hostElement).querySelector("#fixed-secondary"),x=_.Ur(this.hostElement).querySelector("#fixed-below"),
I=_.Ur(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),n=_.Ur(this.hostElement).querySelector("#chat-container");a&&(S?z.appendChild(Q):x.appendChild(Q));U?S?z.appendChild(n):x.appendChild(n):_.sR(n,I);f?S?z.appendChild(X):x.appendChild(X):_.sR(X,I);this.swatcherooSplitScroll&&(S=_.Ur(this.hostElement).querySelector("#secondary"),f=_.Ur(this.hostElement).querySelector("#columns"),U=_.Ur(this.hostElement).querySelector("#fixed-columns-secondary"),c?
U.appendChild(S):f.appendChild(S))}},
computeMetadataSkinnyMode:function(S,c,Q){return this.is!=="ytd-watch-grid"?!1:S?Q:c},
computeWatchWhilePanelsActive:function(S,c){return S||c},
computeNoBorderOnChat:function(S){return _.u("web_watch_theater_chat_no_border")&&S},
computeLiveChatPresentAndExpanded:function(S,c){return S&&!c},
computePanelExpanded:function(S,c,Q){return S||c||Q},
computeSqueezeback:function(S,c,Q,f){if(_.u("web_watch_enable_fs_squeezeback_panels")){var U=this.iMaxTheaterMode&&this.theater;return(S||c||Q)&&(f||U)}},
computeSwatcherooSqueezeback:function(S,c,Q){return this.is!=="ytd-watch-grid"||_.u("ww_squeezeback_killswitch")?!1:S&&c&&Q},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(S){_.mZ(this).getPlayerPromise().then(function(c){var Q;(Q=c.changeMarkerVisibility)==null||Q.call(c,_.Y(S,_.vP).isVisible||!1,_.Y(S,_.vP).entityKeys||[],_.Y(S,_.vP).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(S){this.liveChatCollapsed=S.detail;_.V5().dispatch(_.l_8(S.detail));if(!this.liveChatCollapsed&&this.squeezeback){var c=_.fl().resolve(_.YF);this.visiblePanelIdentifiers_.forEach(function(Q){c.hidePanel(Q)})}},
onSetPlaylistCollapsed:function(S){_.u("delhi_web_player_use_external_playlist_panel")&&(this.playlistPanelExpanded=this.playlist&&!S)},
provideRenderingData:function(S,c){switch(S){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=c;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=
c;break;case "DONATION_SHELF":this.donation=c;break;case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
c}},
toggleCinematicsActive:function(S){this.cinematicsActive=S},
isMiniplayerActive:function(){return _.fl().resolve(_.ra).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var Ol2;_.Al8=function(S){return S.shorts.isShortsActive};
_.XiU=function(S){if(!(0,_.f_M)(S))throw Error("H``"+String(S));};
_.zIG=function(S){return S.findIndex(function(c){return Ol2.indexOf(c.tagName)>-1})>-1};
_.xxp=function(S){return _.aB({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:S}})};
_.F5U=function(){var S=_.fl().resolve(_.us);_.WSH(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(S.isFullscreenEnabled()?_.Uz(document.documentElement):_.z7x(document.documentElement))};
Ol2=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.yU=new Map;_.yU.set(32,59972);_.yU.set(27,50765);_.yU.set(70,60102);_.yU.set(76,60221);_.yU.set(77,60222);_.yU.set(74,60223);_.yU.set(84,60224);_.yU.set(38,61941);_.yU.set(40,61942);_.yU.set(73,62521);_.yU.set(67,62522);_.yU.set(80,63390);_.yU.set(78,63397);_.yU.set(75,59972);_.yU.set(188,63385);_.yU.set(190,63384);_.yU.set(36,63387);
_.yU.set(35,63386);_.yU.set(37,63388);_.yU.set(39,63389);_.yU.set(79,63423);_.yU.set(87,63424);_.yU.set(107,63426);_.yU.set(109,63425);_.yU.set(65,63428);_.yU.set(83,63430);_.yU.set(68,63429);_.yU.set(221,63431);_.yU.set(219,63432);_.yU.set(97,63439);_.yU.set(98,63440);_.yU.set(99,63441);_.yU.set(100,63442);_.yU.set(101,63443);_.yU.set(102,63444);_.yU.set(103,63445);_.yU.set(104,63446);_.yU.set(105,63447);_.o4=new Map;_.o4.set(80,63390);_.o4.set(78,63397);_.o4.set(188,63400);_.o4.set(190,63401);
_.o4.set(191,60765);_.o4.set(13,247917);_.m3=new Map;_.Sk=new Map;
}catch(e){_._DumpException(e)}
try{
var XsG,xZp,FoE,B8G;_.UZg=function(S){return S.ui.guideIsVisibleButNotPersistent};
_.Jh1=function(S){return S.ui.tabGesturesIsActive};
_.aW1=function(){var S=_.Al("service_worker_scope");try{return navigator.serviceWorker.getRegistration(S)}catch(c){return Promise.reject(c)}};
_.Ahp=function(S){return!(!S||!S.pushManager)};
XsG=function(){return _.aW1().then(_.Ahp).catch(function(){return!1})};
_.ORN=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?XsG():Promise.resolve(!1)};
_.zUE=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
xZp=function(){var S,c,Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.F(f,_.HL.getInstance(),2);case 2:S=f.yieldResult;if(!S){c=void 0;f.jumpTo(3);break}return _.F(f,S.get("lmqf"),4);case 4:c=f.yieldResult;case 3:switch((Q=c)||(Q="SD"),Q){case "HD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return f.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
FoE=function(S){var c,Q,f;return _.O(function(U){if(U.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]&&!_.u("disable_av1_setting")){var a=window.localStorage["yt-player-av1-pref"];a=a==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":a==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else a="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(c=S===a)return U.jumpTo(2);f=Q=S;return _.F(U,xZp(),3)}U.nextAddress!=2&&(c=f===U.yieldResult);return U.return(c)})};var IWB;var np0=_.Hx.IronButtonState,bRZ=(0,_.j5)(HTMLElement);
_.DI({_template:function(){if(IWB!==void 0)return IWB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;B8G===void 0&&(B8G=document.createElement("template"));var f=B8G;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return IWB=S},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[np0,_.Y1,_.DV,_.q9],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(S){var c=(0,_.Nm)(this);c.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:S});c.shadowRoot.appendChild(S);return bRZ.prototype._attachDom.call(this,S)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var S=this.contentElement;S&&S.selectedItem&&this._setSelectedItem(S.selectedItem)},
get contentElement(){for(var S=_.YU(this.$.content).getDistributedNodes(),c=0,Q=S.length;c<Q;c++)if(S[c].nodeType===Node.ELEMENT_NODE)return S[c]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(S){this._setSelectedItem(S.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(S){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(S)===this&&this.open()},
_selectedItemChanged:function(S){var c="";S?c=S.label||S.getAttribute("label")||S.textContent.trim():c="";this.value=c;this._setSelectedItemLabel(c)},
_computeMenuVerticalOffset:function(S,c){return c?c:S?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var S=this.opened?"true":"false",c=this.contentElement;c&&c.setAttribute("aria-expanded",S)}});_.dg=new _.L("navigateAction");var N88=new _.L("formRenderer");var vp=function(){var S=_.N_.apply(this,arguments)||this;S.showInput=!1;return S};
_.C(vp,_.N_);_.J=vp.prototype;_.J.detached=function(){this.showInput&&window.removeEventListener("click",_.xn(this,this.closeOnOutsideClick_))};
_.J.stopPropagation_=function(S){this.showInput&&S.stopPropagation()};
_.J.closeOnOutsideClick_=function(S){this.closeOnOutsideClickCondition(S)&&(this.showInput=!1,window.removeEventListener("click",_.xn(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.J.closeOnOutsideClickCondition=function(){return!0};
_.J.closeOnOutsideClickHandler=function(){};
_.J.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.xn(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.J.openOnClickHandler=function(){};
_.J.showInputChanged=function(){};
_.J.setShowInput=function(S){this.showInput=S};
vp.prototype.setShowInput=vp.prototype.setShowInput;vp.prototype.showInputChanged=vp.prototype.showInputChanged;vp.prototype.openOnClickHandler=vp.prototype.openOnClickHandler;vp.prototype.openOnClick_=vp.prototype.openOnClick_;vp.prototype.closeOnOutsideClickHandler=vp.prototype.closeOnOutsideClickHandler;vp.prototype.closeOnOutsideClickCondition=vp.prototype.closeOnOutsideClickCondition;vp.prototype.closeOnOutsideClick_=vp.prototype.closeOnOutsideClick_;vp.prototype.stopPropagation_=vp.prototype.stopPropagation_;
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],vp.prototype,"showInput",void 0);_.d([_.FV("click"),_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],vp.prototype,"stopPropagation_",null);_.d([_.B0("showInput"),_.P("design:type",Function),_.P("design:paramtypes",[Boolean]),_.P("design:returntype")],vp.prototype,"showInputChanged",null);_.d([_.KU()],vp);_.KoN=[vp.prototype];var $Z2;var u11;var Pp=function(){return _.W.apply(this,arguments)||this};
_.C(Pp,_.W);_.J=Pp.prototype;_.J.computePreselectedOption=function(S,c){return c===this.itemSelected_?S:void 0};
_.J.dataChanged_=function(){var S=this;this.preselectedSubreason=this.itemSelected_=-1;var c;(c=this.data)!=null&&c.key&&_.tO(this,function(){var Q,f=Number((Q=S.data)==null?void 0:Q.key);!Number.isNaN(f)&&(S.itemSelected_=f,Q=(Q=(S.data.items||[])[f])&&Q.optionSelectableItemRenderer&&Q.optionSelectableItemRenderer.preselectedIndex)&&(S.preselectedSubreason=Q)})};
_.J.isSubReasonHidden_=function(S,c){return S!=c};
_.J.onTopItemSelected_=function(S,c){for(var Q=_.Ur(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),f=0,U=Q.length;f<U;f++)Q[f].select(0);_.XF(this.hostElement,"yt-report-form-update",[c.item.value]);S.stopPropagation()};
_.J.onItemSelected_=function(S,c){_.XF(this.hostElement,"yt-report-form-update",[c.item.value]);S.stopPropagation()};
_.J.getItem_=function(S){return S.serviceItem?S.serviceItem:S.navigationItem?S.navigationItem:S.optionSelectableItemRenderer?S.optionSelectableItemRenderer:null};
_.J.computeText_=function(S){return(S=this.getItem_(S))?this.ytRendererBehavior.getSimpleString(S.text):null};
_.J.validate=function(){return this.itemSelected_!==-1};
_.J.computeAriaLabel_=function(S){var c=_.Em(S.text);(S=S.accessibility&&S.accessibility.accessibilityData&&S.accessibility.accessibilityData.label)&&(c+=". "+S);return c};
_.J.computeItemSelected_=function(S){return S};
_.J.preventSelection_=function(S){S.stopPropagation();this.tooltipTapped=!0};
_.J.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.J.updateItemSelectedFromBinding=function(S){this.itemSelected_=S.detail.value};
_.J.save=function(){var S;this.validate()&&(S=this.data)!=null&&S.items&&(S=this.data.items[this.itemSelected_],S!=null&&S.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(S.optionSelectableItemRenderer.submitEndpoint)||_.xt(this.hostElement,[S.optionSelectableItemRenderer.submitEndpoint])))};
Pp.prototype.onPaperRippleTransitionEnd_=Pp.prototype.onPaperRippleTransitionEnd_;Pp.prototype.dataChanged_=Pp.prototype.dataChanged_;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Pp.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Pp.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Pp.prototype,"data",void 0);_.d([_.Z({value:-1}),_.P("design:type",Number)],Pp.prototype,"itemSelected_",void 0);
_.d([_.Z({computed:"computeItemSelected_(itemSelected_)"}),_.P("design:type",Number)],Pp.prototype,"value",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Pp.prototype,"restoreFocusOnClose",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],Pp.prototype,"tooltipTapped",void 0);_.d([_.Z({value:-1}),_.P("design:type",Number)],Pp.prototype,"preselectedSubreason",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pp.prototype,"dataChanged_",null);_.d([_.FV("transitionend"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Pp.prototype,"onPaperRippleTransitionEnd_",null);_.d([_.wM({is:"yt-options-renderer",disableElementRegistration:!0})],Pp);
_.k(Pp,"yt-options-renderer",function(){if(u11===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;$Z2===void 0&&($Z2=document.createElement("template"));var f=$Z2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);u11=S}S=u11;return S},{mode:2});var jNp;var lWT;var Y7G;var CiO;var HR1;var DZg;var Lp=function(){return _.W.apply(this,arguments)||this};
_.C(Lp,_.W);Lp.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
Lp.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
Lp.prototype.onTap=function(S){if(this.hostElement.classList.contains("selected")||_.zZ(this.hostElement,"yt-share-panel-can-select-contact-action"))S&&S.detail&&(S.detail.x||S.detail.y)&&_.Ur(this.hostElement).querySelector("#target").blur(),(S=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),S={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:S?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.XF(this.hostElement,"yt-share-panel-select-contact-action",[S])};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Lp.prototype,"ytRendererBehavior",void 0);_.d([_.Z({observer:"onDataChanged"}),_.P("design:type",Object)],Lp.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.P("design:type",String)],Lp.prototype,"componentTitle",void 0);_.d([_.nU("#thumbnail"),_.P("design:type",Object)],Lp.prototype,"thumbnail",void 0);_.d([_.wM({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],Lp);
_.k(Lp,"yt-enrolled-contact-renderer",function(){if(DZg===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;HR1===void 0&&(HR1=document.createElement("template"));var f=HR1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);DZg=S}S=DZg;return S},{mode:2});var ps1;var hUG;var E3=function(){return _.W.apply(this,arguments)||this};
_.C(E3,_.W);E3.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
E3.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
E3.prototype.onTap=function(S){if(this.hostElement.classList.contains("selected")||_.zZ(this.hostElement,"yt-share-panel-can-select-contact-action"))S&&S.detail&&(S.detail.x||S.detail.y)&&_.Ur(this.hostElement).querySelector("#target").blur(),(S=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),S={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:S?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.XF(this.hostElement,"yt-share-panel-select-contact-action",[S])};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],E3.prototype,"ytRendererBehavior",void 0);_.d([_.Z({observer:"onDataChanged"}),_.P("design:type",Object)],E3.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.P("design:type",String)],E3.prototype,"componentTitle",void 0);_.d([_.nU("#thumbnail"),_.P("design:type",Object)],E3.prototype,"thumbnail",void 0);_.d([_.wM({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],E3);
_.k(E3,"yt-suggested-contact-renderer",function(){if(hUG===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;ps1===void 0&&(ps1=document.createElement("template"));var f=ps1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);hUG=S}S=hUG;return S},{mode:2});var tD=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-share-panel-reset-action":"onReset"};return S};
_.C(tD,_.W);tD.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"}}}}}};
tD.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.XF(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
tD.prototype.onReset=function(){for(var S=_.Ur(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),c=S.length-1;c>=0;c--)S[c].classList.toggle("selected")};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],tD.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],tD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({observer:"onDataChanged"}),_.P("design:type",Object)],tD.prototype,"data",void 0);
_.d([_.wM({is:"yt-contact-section-renderer",disableElementRegistration:!0})],tD);
_.k(tD,"yt-contact-section-renderer",function(){if(CiO===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Y7G===void 0&&(Y7G=document.createElement("template"));var f=Y7G;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);CiO=S}S=CiO;return S},{mode:2});var VD=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return S};
_.C(VD,_.W);_.J=VD.prototype;_.J.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"}}}};
_.J.onYtRefreshFormCommand=function(S){var c;(S=_.Y((c=_.Y(S,_.srl))==null?void 0:c.formRenderer,N88))&&this.set("data",S)};
_.J.reset=function(){var S=_.Ur(this.hostElement).querySelector("#fields").children;S=_.A(S);for(var c=S.next();!c.done;c=S.next())c=c.value,c.reset&&c.reset()};
_.J.getForm=function(){var S={},c=_.Ur(this.hostElement).querySelector("#fields").children;c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;if(!Q.validate())return null;S[Q.data.key]=Q.value}return S};
_.J.submitFormFields=function(){if(this.fields)for(var S=_.A(this.fields),c=S.next();!c.done;c=S.next())c=c.value,c.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?c.save():c.nodeName==="YT-OPTIONS-RENDERER"&&c.save()};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],VD.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VD.prototype,"data",void 0);_.d([_.bw("#fields > *"),_.P("design:type",Array)],VD.prototype,"fields",void 0);
_.d([_.wM({is:"yt-form-renderer",disableElementRegistration:!0})],VD);
_.k(VD,"yt-form-renderer",function(){if(lWT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;jNp===void 0&&(jNp=document.createElement("template"));var f=jNp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);lWT=S}S=lWT;return S},{mode:2});var q7O;var Ru=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return S};
_.C(Ru,_.W);Ru.prototype.onCheckboxChange=function(S){this.data&&(S=(this.checked=_.VI(S).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})};
Ru.prototype.handleUpdateCheckboxCommand=function(S){(S=_.Y(S,_.Vpp))&&this.data&&this.data.id===S.id&&(this.set("data.disabled",S.disabled),this.set("data.title",S.title))};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Ru.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ru.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Ru.prototype,"checked",void 0);_.d([_.e({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],Ru);
_.k(Ru,"ytd-settings-checkbox-renderer",function(){if(q7O!==void 0)return q7O;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return q7O=S},{mode:1});var T8E;var yD=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return S};
_.C(yD,_.W);yD.prototype.dataChanged=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return S.radio.removeAttribute("checked"),!S.data||!S.data.id||S.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.zUE()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(c=S.data&&S.data.id)?_.F(Q,FoE(S.data.id),4):Q.jumpTo(3):(S.set("data.hidden",!0),Q.jumpTo(0));Q.nextAddress!=3&&(c=Q.yieldResult);c&&_.XF(S.hostElement,"yt-select-settings-radio-option",[S.data.id]);_.IN(Q)})};
yD.prototype.onButtonChanged=function(S){_.VI(S).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.XF(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
yD.prototype.onSelectOption=function(S){this.data&&this.data.id&&(this.data.id===S?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
yD.prototype.dataChanged=yD.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],yD.prototype,"ytActionHandlerBehavior",void 0);_.d([_.nU("#radio"),_.P("design:type",Object)],yD.prototype,"radio",void 0);_.d([_.Z(),_.P("design:type",Object)],yD.prototype,"data",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],yD.prototype,"dataChanged",null);_.d([_.e({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],yD);
_.k(yD,"ytd-settings-radio-option-renderer",function(){if(T8E!==void 0)return T8E;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return T8E=S},{mode:1});var wsU;var ou=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return S};
_.C(ou,_.W);
ou.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"}}}};
ou.prototype.handleUpdateTextCommand=function(S){(S=_.Y(S,_.RYd))&&this.data&&this.data.id===S.id&&this.set("data",S)};
ou.prototype.handleUpdateConnectedAppRendererCommand=function(S){if(_.Y(S,_.mJJ)&&this.data){var c,Q;if(S=(c=_.Y(S,_.mJJ))==null?void 0:(Q=c.newConnectedAppRenderer)==null?void 0:Q.connectedAppRenderer)this.data=S}};
ou.prototype.computeConnectedAppStyle=function(S){return S.style?S.style.toLowerCase().replace(/_/g,"-"):""};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ou.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ou.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ou.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.P("design:type",String)],ou.prototype,"connectedAppStyle",void 0);_.d([_.e({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],ou);
_.k(ou,"ytd-connected-app-renderer",function(){if(wsU!==void 0)return wsU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wsU=S},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.Mf("iuT5Oc");

_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("L3n37");
var t2E=function(S){return S.watch.isLearningJourneyActive},V2E=_.qo(115994),RiN=_.qo(115993),yiT=function(S,c,Q){var f=this;
var U=Q.dragDownAction;this.layer=0;this.JSC$20546_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.JSC$20546_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return f.dragDownAction()}}}};
this.fullscreen=!1;var a=_.Kv();_.z7(a,V2E,this.layer);_.z7(a,RiN,this.layer);this.dragDownAction=function(){U();_.rj(a,{visualElement:f.fullscreen?V2E:RiN})};
this.gesture=new _.xe(S,c,this.JSC$20546_watchConfig,"pandown");this.attach()};
yiT.prototype.attach=function(){this.gesture.attach()};
yiT.prototype.detach=function(){this.gesture.detach()};
yiT.prototype.update=function(S){this.fullscreen=S;this.gesture.config=S?this.JSC$20546_watchFullScreenConfig:this.JSC$20546_watchConfig};var owp=function(S){_.R4.call(this);var c=this;this.rootElement=S;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return c.activeModules}};
this.initPersistentModules();this.addOnDisposeCallback(this.subscribeToActiveChanged(function(Q){c.initOrDisposeActiveModules(Q)}));
this.onAttached()};
_.C(owp,_.R4);_.J=owp.prototype;_.J.getRoot=function(){return this.rootElement};
_.J.getElement=function(S){return this.rootElement.getElement(S)};
_.J.setPlayerResponse=function(S){this.playerResponse=S;this.publish("PLAYER_RESPONSE_UPDATED",S)};
_.J.getPlayerResponse=function(){return this.playerResponse};
_.J.setWatchNextResponse=function(S){this.watchNextResponse===S?this.publish("WATCH_NEXT_RESPONSE_RELOADED"):(this.watchNextResponse=S,this.publish("WATCH_NEXT_RESPONSE_UPDATED",S))};
_.J.getWatchNextResponse=function(){return this.watchNextResponse};
_.J.registerActionHandler=function(S,c){var Q=this;if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var f={};_.vG(_.dQ.getInstance(),(f[S]=c,f),this.getRoot())}else this.actionHandlers.has(S)||(this.actionHandlers.set(S,[]),f={},_.vG(_.dQ.getInstance(),(f[S]=function(){var U=_.YD.apply(0,arguments);return(Q.actionHandlers.get(S)||[]).map(function(a){return a.apply(null,_.Hs(U))})},f),this.getRoot())),this.actionHandlers.get(S).push(c)};
_.J.unregisterActionHandler=function(S){if(_.u("web_watch_controller_reg_multiple_handlers_killswitch")){var c={};_.PG(_.dQ.getInstance(),(c[S]=!0,c),this.getRoot())}else(c=this.actionHandlers.get(S))?(c.pop(),c.length===0&&(c={},_.PG(_.dQ.getInstance(),(c[S]=!0,c),this.getRoot()),this.actionHandlers.delete(S))):_.i5(new _.Yr("Attempted to unregister an action handler which is not registered.",S))};
_.J.addPageDisposeJob=function(S){this.rootElement.pageDisposeJobs||(this.rootElement.pageDisposeJobs=[]);_.Lz(this.rootElement.pageDisposeJobs,S)};
_.J.removePageDisposeJob=function(S){this.rootElement.pageDisposeJobs&&_.tZ(this.rootElement.pageDisposeJobs,S)};
_.J.dispatchEvent=function(S,c){_.Az(this.rootElement,S,c)};
_.J.provideRenderingData=function(S,c){this.rootElement.provideRenderingData(S,c)};
_.J.scrollWatchTo=function(S,c){var Q;(Q=this.watchScrollManager)==null||Q.scrollWatchTo(S,c)};
_.J.focusOnPlayer=function(){var S=this.getElement("PLAYER");_.tO(S,function(){if(S&&S.firstElementChild){var c=S.querySelector(".html5-video-player");c&&(_.ov(_.fl().resolve(_.wj)),c.focus())}else _.i5(Error("nm"))})};
_.J.updateCinematicFullscreenConfig=function(){var S=!!this.rootElement.theater,c=!!this.rootElement.fullscreen,Q;(Q=this.watchCinematicManager)==null||_.tQU(Q,c,S)};
_.J.subscribeToActiveChanged=function(S,c){c=c===void 0?!0:c;var Q=_.Kt(_.V5(),t2E,function(f){S(f)});
c&&S(t2E(_.V5().getState()));return Q};
_.J.isActive=function(){return t2E(_.V5().getState())};
_.J.onAttached=function(){var S=_.u("external_fullscreen");_.u("use_unified_flag_accessor")&&(S=_.fl().resolve(_.xH2).retriever.getFlag(_.Qqs));(S||_.gC("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
_.J.initPersistentModules=function(){if(_.u("kevlar_watch_flexy_theater_manager")){var S=new _.lFp(this);_.F5(this,S)}S=new _.AI2(this);_.F5(this,S);S=new _.hC(this);_.F5(this,S);S=new _.Z1(this);_.F5(this,S);S=new _.Z_g(this);_.F5(this,S);S=new _.Ti(this);_.F5(this,S);_.u("kevlar_watch_flexy_playlist_manager")&&(S=new _.gEZ(this),_.F5(this,S))};
_.J.initOrDisposeActiveModules=function(S){S?(this.watchScrollManager=new _.WP(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new _.jdE(this)),this.activeModules.push(new _.Dtg(this)),this.activeModules.push(new _.PtV(this)),this.activeModules.push(new _.Gi(this)),_.u("kevlar_watch_flexy_error_screen_data_provider")&&this.activeModules.push(new _.Tm1(this)),this.activeModules.push(new _.pQp(this)),_.u("kevlar_watch_flexy_ypc_manager")&&this.activeModules.push(new _.EE8(this)),
_.u("kevlar_watch_flexy_ads_manager")&&this.activeModules.push(new _.geE(this)),_.u("kevlar_watch_cinematics")&&(this.watchCinematicManager=new _.veG(this),this.activeModules.push(this.watchCinematicManager),this.updateCinematicFullscreenConfig()),_.u("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new _.wQ1(this)),_.u("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new _.JIO(this)),S=_.u("swatcheroo_directly_provide_comments")&&this.getRoot().is===
"ytd-watch-grid",_.u("kevlar_watch_flexy_comments_manager")&&!S&&this.activeModules.push(new _.SNE(this)),_.u("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new _.qT(this)),this.activeModules.push(new _.T7O(this)),this.activeModules.push(new _.YN8(this)),_.u("web_enable_timely_actions")&&this.activeModules.push(new _.i7g(this)),_.u("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new _.fFG(this)),_.u("web_watch_enable_multiview_manager")&&this.activeModules.push(new _.tvU(this)),
_.u("web_fullscreen_components")&&this.activeModules.push(new _.iFN(this)),_.u("web_player_rtr_ctrls")&&this.activeModules.push(new _.JuE(this))):(_.oq(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.J.disposeInternal=function(){_.R4.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.Rh.Object.defineProperties(owp.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});var mvp={},SAB=["learning-journey-engagement-panel","PAlearning_chat"];
mvp.YtdLearningJourneyWatchBehavior=[_.m.YtRendererBehavior,_.vC.YtPlayerListenerBehavior,_.aQ.YtRendererstamperBehavior,_.AN.YtActionHandlerBehavior,_.DF.YtPageBehavior,_.Km.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 _.gC("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.u("web_watch_provide_secondary_results_renderer")}},
fullscreen:{type:Boolean,reflectToAttribute:!0},playlist:{type:Boolean,reflectToAttribute:!0,computed:"hasPlaylist_(playlistData, loadingData.playlist)",observer:"secondaryColumnModulePresenceChanged_"},alerts:{type:Object,computed:"getAlerts_(playerData.playabilityStatus, alertsValue)"},alertsValue:{type:Object},microformat:{type:Object,computed:"getPlayerMicroformatRenderer_(playerData.microformat)"},commentsReady:{type:Boolean,observer:"commentsReadyChanged_"},theaterRequested_:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.gC("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},jsPanelHeight_:{type:Boolean,value:function(){return _.u("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.u("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
richItemMinWidth:{type:Number,value:function(){return _.a6("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.a6("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},
videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.u("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.u("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_fullerscreen_deprecation_ui")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_rounded_player_large")||_.u("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},trackEngagementPanelVisibility:{type:Boolean,
value:function(){return _.u("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.u("web_watch_show_comment_teaser")}},
fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_full_bleed_no_max_width_columns")}},
fixedPanels:{type:Boolean,reflectToAttribute:!0},panelsBesidePlayer:{type:Boolean,reflectToAttribute:!0},watchWhileWider:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.u("web_watch_while_panel_margin")}},
watchWhilePanelsActive:{type:Boolean,reflectToAttribute:!0,computed:"computeWatchWhilePanelsActive(fixedPanels, panelsBesidePlayer)"},noBorderOnChat:{type:Boolean,computed:"computeNoBorderOnChat(watchWhilePanelsActive)"},forceDarkPanelTheme:{type:Boolean,computed:"computeForceDarkPanelTheme(panelsBesidePlayer)"},hasMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeHasMetadata(videoPrimaryInfoRenderer)"},watchWhileWindowSizeSufficient:{type:Boolean,observer:"watchWhileWindowSizeSufficientChanged"},
thumbnailToWatchTransition:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);updateChatLocation(liveChatPresentAndExpanded);watchNextSecondaryResultsChanged(data)".split(";"),monitorScroll:!0,configureRendererStamper:function(){return{info:{id:"info-contents",
mapping:{videoPrimaryInfoRenderer:{component:"ytd-video-primary-info-renderer"}}},meta:{id:"meta-contents",mapping:{videoSecondaryInfoRenderer:{component:"ytd-video-secondary-info-renderer",properties:{structuredDescriptionContentRenderer:"[[inlineStructuredDescriptionData]]"}}}},ticket:{id:"ticket-shelf",mapping:{ticketShelfRenderer:{component:"ytd-ticket-shelf-renderer",properties:{skinnyMode:"[[isTwoColumns_]]"}}}},offerModule:{id:"offer-module",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",
properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"},movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},
tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},expandableMetadata:{id:"expandable-metadata",mapping:{expandableMetadataRenderer:{component:"ytd-expandable-metadata-renderer",params:{isWatch:!0}}}},donation:{id:"donation-shelf",mapping:{donationShelfRenderer:{component:"ytd-donation-shelf-renderer",properties:{isCollapsed:"[[shouldCollapseDonationShelf]]"}},donationUnavailableRenderer:{component:"ytd-donation-unavailable-renderer"}}},
clarifyBox:{id:"clarify-box",mapping:{clarificationRenderer:"ytd-clarification-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",infoPanelContentRenderer:"ytd-info-panel-content-renderer",emergencyOneboxRenderer:{component:"ytd-emergency-onebox-renderer",attributes:{"class":"watch"}}}},limitedState:{id:"limited-state",mapping:{limitedStateMessageRenderer:"ytd-limited-state-message-renderer"}},playerAds:{id:"player-ads",mapping:{playerLegacyDesktopWatchAdsRenderer:"ytd-player-legacy-desktop-watch-ads-renderer"},
initialRenderPriority:3,waitForSignal:_.s3(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.s3(["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 S=this;this.watchController=void 0;this.pageDisposeJobs=[function(){S.showMetadataPlaceholder_()},
function(){_.u("web_watch_dont_clear_comments")||S.clearComments_()},
function(){S.clearPlayerAds_()},
function(){S.resetAutonavCanceledForNewPlayback_()}];
this.player=this.playerContainerEl=this.playerEl=this.watchNextSkeletonEl_=null;this.onPlayingCallbacks_=[];this.clearPlayerAdsJobId_=this.setRichGridJobId_=this.setCommentsJobId_=0;this.showFullerscreenEdu_=!1;this.windowSize_=null;this.trackEngagementPanelVisibility&&(this.visiblePanelIdentifiers_=new Set);this.autonavCanceledSignal_=!1;_.u("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.u("web_watch_start_chat_in_theater_mode")&&(this.theaterEnabledForChat=!1);this.youThereManager_=
new _.DvU(function(){return _.mZ(S)},this.hostElement);
this.pageDisposeJobs.push(function(){S.youThereManager_.reset()});
_.u("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){S.resetFullerscreenEduButtonForNewPlayback_()}));
_.u("kevlar_watch_js_panel_height")&&(this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.O$;this.playerEvents_.set("onFeedbackStartRequest",this.onPlayerFeedbackStartRequest_);this.playerEvents_.set("onFeedbackArticleRequest",this.onPlayerFeedbackArticleRequest_);this.playerEvents_.set("onYpcContentRequest",this.onPlayerYpcContentRequest_);this.playerEvents_.set("onAutonavPauseRequest",this.onPlayerAutonavPauseRequest_);this.playerEvents_.set("onAdStateChange",
this.onAdStateChange_);this.playerEvents_.set("onStateChange",this.onPlayerStateChange_);this.playerEvents_.set("SUBSCRIBE",this.onPlayerSubscribe_);this.playerEvents_.set("UNSUBSCRIBE",this.onPlayerUnsubscribe_);this.playerEvents_.set("onYtShowToast",this.onPlayerAdYtShowToast_);this.playerEvents_.set("onFullscreenChange",this.onPlayerFullscreenChange_);this.playerEvents_.set("onVideoDataChange",this.onPlayerPresentingVideoDataChange_);this.engagementPanelScrimOnClickCommands_=null;_.u("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.u("kevlar_watch_flexy_theater_manager")||(this.actionMap["yt-toggle-theater-mode"]="setTheaterModeRequested",this.actionMap["yt-is-theater"]="isTheater_",this.playerEvents_.set("SIZE_CLICKED",this.setTheaterModeRequested));_.u("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.xn(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(S){S&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:S}),S.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(S){_.u("kevlar_watch_flexy_theater_manager")&&(this.theater=S,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.u("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(S){!_.u("kevlar_watch_while_v2")&&!_.u("web_watch_pip")||S||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(S){this.active!==void 0&&(this.fullscreen=S,_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(S){this.active!==void 0&&(_.Az(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.u("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(S>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(S){this.initCsi_();this.updatePageData_(S)},
updatePageData_:function(S){var c=this;if(S)if(this.data===S){this.onPageLoadWithSameData_();var Q;(Q=this.watchController)==null||Q.setWatchNextResponse(this.data)}else this.data=S;this.playlist&&_.sz({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.i2("nw");this.loading=!1;_.HG(_.Mq,function(){c.initDclkstatus_();var f,U=((f=c.player)==null?void 0:f.getVideoData().cpn)||"";_.FRG(function(a,X){_.Uxp(a,X,U)})})},
onPageLoadWithSameData_:function(){_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();this.setPlayerAds_()},
setLoadingState_:function(){this.hostElement.classList.remove("hide-skeleton");this.hostElement.classList.add("show-skeleton");this.setPlayerLoadingState_();this.hostElement.classList.add("loading");var S=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!S);this.set("loadingData.playlistLoading",S&&S!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),S=this.watchNextSkeletonEl_.firstElementChild;S;)S.classList.remove("hidden"),S=S.nextElementSibling;var c,Q,f;S=(c=this.loadingData)==null?void 0:(Q=c.endpoint)==null?void 0:(f=Q.watchEndpoint)==null?void 0:f.videoId;var U;S&&(U="https://i.ytimg.com/vi/"+S+"/frame0.jpg");_.Ur(this.hostElement).querySelector("#player").style.backgroundImage=U?"url("+U+")":""},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var S=_.Ur(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&S&&(S.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var c,Q;(Q=(c=this.watchMetadata).updateSentimentBarWidth)==
null||Q.call(c);var f,U;(U=(f=this.watchMetadata).resize)==null||U.call(f)}_.Ur(this.hostElement).querySelector("#player").style.backgroundImage=""},
addSplitScrollMouseTrap:function(S){var c=_.Ur(this.hostElement).querySelector(S);c?_.Jz(c,!1):_.i5(new _.Yr("Overscroll monitor not found for component: ",S))},
removeSplitScrollMouseTrap:function(S){var c=_.Ur(this.hostElement).querySelector(S);c?_.aI(c):_.i5(new _.Yr("Disposal component for  overscroll monitoring not found: ",S))},
onLoadingChanged_:function(S){S?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(S){var c=this;S?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.Mq.addLowPriorityJob(function(){c.onWindowResized_(_.jm(!0))})},
updateTheaterModeState_:function(S){if(!_.u("kevlar_watch_flexy_theater_manager")){S=S||this.fullWindowMode_;if(this.theater!==void 0||S)this.theater=S;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();S&&_.YKp()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var S=this.theater;_.u("external_fullscreen")&&this.fullscreen&&(S=!0);S=S?_.Ur(this.hostElement).querySelector("#player-full-bleed-container"):_.Ur(this.hostElement).querySelector("#player-container-inner");var c=this.getPlayerContainer(),Q=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip");c.parentElement!==S&&(Q&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.mZ(this).appendTo(S,c),S.appendChild(_.Ur(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var S=this;return _.O(function(c){if(c.nextAddress==1)return _.F(c,_.fl().resolve(_.ra).deactivate(),2);S.updatePlayerLocation();_.IN(c)})},
updateCinematicsLocation:function(){var S=this.getElement("CINEMATICS");if(S){var c=this.getCinematicsLocationContainer();S.parentElement!==c&&c.appendChild(S);var Q;(Q=this.watchController)==null||Q.updateCinematicFullscreenConfig()}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.Ur(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.Ur(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(S,c){var Q=document.documentElement.hasAttribute("dark"),f=Q&&_.u("web_cinematic_theater_mode"),U=Q&&_.u("web_cinematic_fullscreen");Q=!Q&&this.cinematicLightTheme;return S&&f||c&&U||(c||S)&&Q},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data);_.u("kevlar_watch_flexy_comments_manager")||this.initComments_();_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.fl().resolve(_.G7).cancelVideoSkip();this.showEngagementPanelScrim_=!1;this.trackEngagementPanelVisibility&&(this.engagementPanelExpanded=!1,this.visiblePanelIdentifiers_.clear());this.data&&this.updateCinematicsLocation();if(_.u("web_watch_start_chat_in_theater_mode")){var c,
Q,f;if((c=this.data)==null?0:(Q=c.contents)==null?0:(f=Q.twoColumnWatchNextResults)==null?0:f.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var U,a;((U=this.data)==null?0:(a=U.contents)==null?0:a.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=!1)}}},
playerDataChanged_:function(S){var c;(c=this.watchController)==null||c.setPlayerResponse(this.playerData);S&&S.playabilityStatus&&(c=this.isVideoPlayable_(S.playabilityStatus,this.getPlayerOverlays_(this.data)),S=this.isLiveStreamOffline_(S.playabilityStatus),c&&!S||_.tO(this,function(){_.i2("pbu")}));
this.setPlayerAds_();_.Oz(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(S){_.V5().dispatch(_.aB({type:"SET_IS_LEARNING_JOURNEY_ACTIVE",payload:{isLearningJourneyActive:this.active}}));S?this.activate_():this.deactivate_()},
attached:function(){var S=this;this.watchController=new owp(this.hostElement);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data);_.u("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var c=_.mZ(this);_.u("kevlar_disable_prepare_player")||c.preparePlayer();_.u("kevlar_watch_flexy_playlist_manager")||_.fl().resolve(_.G7).setPlayer(c);this.updatePageMediaQueries();c={"--ytd-watch-flexy-scrollbar-width":_.q4()+
"px"};!_.a6("kv_pl_mx_sz_ks")&&_.a6("kevlar_watch_max_player_width")&&(c["--ytd-watch-flexy-max-player-width-wide-screen"]=_.OB2+"px");_.a6("kevlar_watch_flexy_metadata_height")&&(c["--ytd-watch-flexy-space-below-player"]=_.zXE+"px");this.safeUpdateStyles(c);_.u("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new yiT(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return S.onPlayerTouchPanDown_()}}));
_.u("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.Ur(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var S=_.q4(),c=_.GH+S,Q=c;this.fixedPanels&&(c+=_.XBZ);var f=657+S;S=1327+S;_.Ur(this.hostElement).querySelector("#two-column-query").query="(min-width: "+c+"px)";_.Ur(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(f+"px), (min-height: 630px) and (min-width: ")+(c+"px) and (max-width: ")+(S+"px)");_.Ur(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(S+"px)");
_.Ur(this.hostElement).querySelector("#watch-while-query").query="(min-width: "+Q+"px)"},
calculateCurrentPlayerSize_:function(){var S=_.Ur(this.hostElement).querySelector("#miniplayer-bar").firstChild;return S&&S.active||this.theater||_.u("web_watch_fullscreen_panels")&&this.fullscreen||!this.active||!this.windowSize_?new _.xh(NaN,NaN):_.ds(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ds(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.yN(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var S=this;this.onWindowResized_(_.jm());_.u("browse_skeleton_removal_on_watch_killswitch")||_.gC("IS_SHELL_LOAD")&&_.Bwg();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var c=_.mZ(this);c.addEventListener("yt-player-updated",_.xn(this,this.onPlayerUpdated_));c.getPlayerPromise().then(function(Q){S.playerApiReady_(Q)});
_.u("kevlar_watch_flexy_playlist_manager")||(c=_.fl().resolve(_.G7),_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&c.addEventListener("yt-navigate",_.xn(this,this.onYtNavigate_)),c.setPlaylistComponent(_.Ur(this.hostElement).querySelector("#playlist")),c.addEventListener("yt-playlist-data-updated",_.xn(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.Mq.addLowPriorityJob(function(){_.Az(S.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.mZ(this).removeEventListener("yt-player-updated",_.xn(this,this.onPlayerUpdated_));if(!_.u("kevlar_watch_flexy_playlist_manager")){var S=_.fl().resolve(_.G7);_.u("kevlar_watch_observe_playlist_navigations_killswitch")&&S.removeEventListener("yt-navigate",_.xn(this,this.onYtNavigate_));S.cancelVideoSkip();S.removeEventListener("yt-playlist-data-updated",_.xn(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.u("kevlar_watch_while")&&
this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.Az(this.hostElement,"yt-autonav-pause-player",!1);S=_.f8();_.u("kevlar_exit_fullscreen_leaving_watch")&&S&&_.Uz(S)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(S){this.player&&this.player.updateVideoData({rvs:S.rvs})},
getPageContents:function(S){return S&&S.contents&&S.contents.twoColumnWatchNextResults&&S.contents.twoColumnWatchNextResults.results&&S.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(S){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",S)},
onRetrieveLocation_:function(S,c){c.hasComments?c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):c.locationRetrieved("/related_ajax",void 0);S.stopPropagation()},
onSubscriptionChanged_:function(S,c){this.player&&(c?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.HU("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.Ur(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.Ur(this.hostElement).querySelector("#ytd-plj-player"));return this.playerEl},
playerApiReady_:function(S){this.player=S;this.setPlayerState(S.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.u("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.u("kevlar_unified_player")||_.u("kevlar_player_new_bootstrap_adoption"))&&_.RC()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(S,c){c=c===void 0?!0:c;_.f8()&&_.u("external_fullscreen")&&_.Uz(document.documentElement);this.theaterRequested_=S;c&&_.$r("wide",S?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.XF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.Az(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(S){_.ZE(S,typeof this.player),this.player&&_.ZE(S,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var S;((S=this.player)==null?0:S.isFullscreen())?this.player.toggleFullscreen():_.XF(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(S,c){return this.loading?c:!!Object.keys(S).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(S){if(S){S=_.A(S);for(var c=S.next();!c.done;c=S.next())c=c.value,c.youThereRenderer&&_.qfV(this.youThereManager_,c.youThereRenderer)}},
setPlaylistData_:function(S){return S||{}},
userEngagementConfigDataChanged_:function(S){if(S)if(S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var c=this.youThereManager_;_.f1()<S.lowEngagementThresholdMs||_.M2V(c,!0)}else S.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.XF(this.hostElement,"yt-autonav-pause-user-engagement",[S])},
isPlayerUnavailable_:function(S,c,Q){return!!S&&!this.isVideoPlayable_(S,Q)&&!c},
getPlayerOverlays_:function(S){return(S==null?void 0:S.playerOverlays)||null},
isVideoPlayable_:function(S,c){if(!S)return!1;var Q=S.status==="OK"||S.status==="LIVE_STREAM_OFFLINE",f=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",S)||this.get("errorScreen.ypcTrailerRenderer",S);S=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",S);var U;c=c==null?void 0:(U=c.playerOverlayRenderer)==null?void 0:U.gatedActionsOverlayRenderer;return!!Q||!!f||!!S||!!c},
hasWatchNextResponseErrorRenderer:function(S){var c=this.getPageContents(S),Q,f,U,a,X;return!(S==null?0:(Q=S.contents)==null?0:(f=Q.twoColumnWatchNextResults)==null?0:f.secondaryResults)&&!!((U=c[0])==null?0:(a=U.itemSectionRenderer)==null?0:(X=a.contents[0])==null?0:X.backgroundPromoRenderer)},
isLiveStreamOffline_:function(S){return S?S.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(S,c,Q){var f=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",c),U=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];U=_.u("web_no_skip_video_on_verification_checks")?(S==null?void 0:S.status)&&U.includes(S.status):S&&S.status==="AGE_CHECK_REQUIRED";var a=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",S);a==void 0&&(a=!0);!Q||this.isVideoPlayable_(S,this.getPlayerOverlays_(c))||
f||U||!a||_.fl().resolve(_.G7).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.KRg()},
onPlayerFeedbackStartRequest_:function(S){_.XF(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:S}])},
onPlayerFeedbackArticleRequest_:function(S){_.XF(this.hostElement,"yt-help-dialog-requested",[S])},
onPlayerYpcContentRequest_:function(){var S,c,Q,f,U,a,X,z,x=((S=this.data)==null?NaN:(c=S.contents)==null?NaN:(Q=c.twoColumnWatchNextResults)==null?NaN:(f=Q.secondaryResults)==null?NaN:(U=f.secondaryResults)==null?NaN:(a=U.offerModule)==null?NaN:(X=a.tvfilmOfferModuleRenderer)==null?NaN:(z=X.actionButtons)==null?NaN:z.length)-1;S=[".offerButton.buttonRenderer.",".actionButtons."+(x>=0?x:0)+".buttonRenderer."];c=_.A(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(Q=c.next();!Q.done;Q=c.next())for(Q=Q.value,f=_.A(S),U=f.next();!U.done;U=f.next())if(U="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+Q+U.value,U=this.get(U+"navigationEndpoint",this.data)||this.get(U+"serviceEndpoint",this.data)||this.get(U+"command",this.data)){_.IW(U,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(S){_.Az(this.hostElement,"yt-autonav-pause-player",S)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(S){S()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(S){switch(S){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.Az(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(S)},
setPlayerState:function(S){_.V5().dispatch(_.Vre(S))},
onPlayerSubscribe_:function(S){_.XF(this.hostElement,"yt-player-subscribe",[S])},
onPlayerUnsubscribe_:function(S){_.XF(this.hostElement,"yt-player-unsubscribe",[S])},
onPlayerAdYtShowToast_:function(S){_.XF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:S.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(S){if(S)return S},
computeCommentsEntryPointHeaderRenderer:function(){if(this.commentTeaserEnabled)return this.defaultTwoColumnLayout?void 0:this.commentsEntryPointHeaderRendererValue},
computeShowExpandableMetadata:function(S){return!_.u("web_watch_move_summary_to_sd")&&!!S},
computeWatchMetadataRefresh:function(){return _.u("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(!this.useProviderForSecondaryResultsRenderer){var S,c,Q,f;this.watchNextSecondaryResults=(S=this.data)==null?void 0:(c=S.contents)==null?void 0:(Q=c.twoColumnWatchNextResults)==null?void 0:(f=Q.secondaryResults)==null?void 0:f.secondaryResults}},
setRichGridRendererData:function(S){this.richGridRendererData=S},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var S,c=(S=this.data)==null?void 0:S.engagementPanels;if(c==null?0:c.length){S=null;c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0;if(((f=Q.engagementPanelSectionListRenderer)==null?void 0:f.targetId)==="engagement-panel-structured-description"){S=Q;break}}var U,a,X;S=(U=S)==null?void 0:(a=U.engagementPanelSectionListRenderer)==null?void 0:(X=a.content)==null?void 0:X.structuredDescriptionContentRenderer;if(S==null?0:S.items){U=
[];a=_.A(S.items);for(X=a.next();!X.done;X=a.next()){X=X.value;if(!_.u("sd_horizontal_list_show_nav_killswitch")){var z=f=Q=c=S=void 0,x=void 0,I=(S=X.horizontalCardListRenderer)==null?void 0:(c=S.header)==null?void 0:(Q=c.richListHeaderRenderer)==null?void 0:(f=Q.navigationButton)==null?void 0:(z=f.buttonRenderer)==null?void 0:(x=z.command)==null?void 0:x.commandExecutorCommand;I&&I.commands&&(I.commands=I.commands.filter(function(n){return!_.Y(n,_.CfB)}))}X.expandableVideoDescriptionBodyRenderer||
X.videoDescriptionHeaderRenderer||U.push(X)}return{items:U}}}},
constructWarning_:function(S){return{text:_.LK(S),type:"WARNING"}},
isPlaShelfEnabled_:function(S){if((this.get("adPlacements",S)||[]).length)return!0;S=this.get("playerAds",S)||[];return!(!S.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",S[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var S=this;_.Az(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var c=this.getScrollTop()>0;this.gestures_&&(c?this.gestures_.detach():this.gestures_.attach());c!==this.showFullerscreenEdu_&&_.u("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=c,_.mZ(this).getPlayerPromise().then(function(Q){Q.updateFullerscreenEduButtonVisibility(S.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.Az(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var S=this;this.commentsReady=!1;_.Mq.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.HG(_.Mq,function(){S.setComments_()},1E3)},
setComments_:function(){if(!_.u("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.i2("cmi");_.Mq.cancelJob(this.setCommentsJobId_);var S=this.getPageContents(this.data);if(S&&S.length){S=_.A(S);for(var c=S.next();!c.done;c=S.next())if(c=c.value,this.get("itemSectionRenderer.sectionIdentifier",c)==="comment-item-section"){this.comments=c.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.Az(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.u("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.u("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.i2("cmc")},
doRemoveComments_:function(){this.comments={};_.u("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.Mq.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.Mq.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(S,c){var Q=_.Y(c.endpoint,_.tG);Q&&(!(c=this.get("data.currentVideoEndpoint.watchEndpoint"))||Q.videoId!==c.videoId||Q.playlistId&&Q.playlistId!==c.playlistId||Q.index!==void 0&&Q.index!==c.index||typeof Q.startTimeSeconds!=="number"||(S.stopPropagation(),this.setScrollTop(0),_.mZ(this).getPlayerPromise().then(function(f){var U=Q.startTimeSeconds;f.seekTo(U);f.wakeUpControls();U<f.getDuration()&&f.playVideo()})))},
updatePlayerStartTime_:function(){var S=_.f_E();"t"in S&&(S=_.N0V(S.t),this.player.seekTo(S,!0))},
updateTitleFromWatchNext:function(S){S=this.getPageContents(S);var c,Q;(S=_.Em(S==null?void 0:(c=S[0])==null?void 0:(Q=c.videoPrimaryInfoRenderer)==null?void 0:Q.title))&&_.Az(this.hostElement,"yt-update-title",S)},
updateTitle_:function(S){S=this.get("videoDetails.title",S)||"";_.Az(this.hostElement,"yt-update-title",S)},
syncWithRemoteVideo_:function(S,c,Q){if(this.active&&this.player){var f=this.player.getVideoData();if(f.video_id===Q&&(Q=f.list,_.u("polymer_enable_mdx_queue")&&Q&&Q.startsWith("RQ")&&(Q=void 0),f.video_id!==S||Q!=c)){var U;_.u("kevlar_player_watch_endpoint_navigation")?U=_.W_H(_.B0p(S,c)):U=this.buildWatchEndpoint_(S,c);_.Az(this.hostElement,"yt-navigate",{endpoint:U,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(S,c,Q){return _.Q5(S,c,Q)},
initDclkstatus_:function(){_.bVG()},
attachWatchPageSkeleton_:function(){var S=document.querySelector("#watch-page-skeleton");if(S){var c=S.querySelector("#primary-info"),Q=S.querySelector("#secondary-info"),f=S.querySelector("#related");c&&_.Ur(this.hostElement).querySelector("#info-skeleton").appendChild(c);Q&&_.Ur(this.hostElement).querySelector("#meta-skeleton").appendChild(Q);f&&(_.Ur(this.hostElement).querySelector("#related-skeleton").appendChild(f),this.watchNextSkeletonEl_=f);_.K9(S)}},
handlePlayerUpdated_:function(){_.mZ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(S,c){if(this.watchNextSkeletonEl_&&typeof c!=="undefined"){var Q=this.watchNextSkeletonEl_.children,f=S&&S.indexSplices.length?S.indexSplices[0].index:0;S=Math.min(this.watchNextShownItems.length,Q.length);c||(f=0,S=Q.length);for(c=f;c<S;c++)Q[c].classList.add("hidden")}},
onPlayerFullscreenChange_:function(S){_.u("external_fullscreen")||_.XF(this.hostElement,"yt-player-fullscreen",[S.fullscreen])},
onFullscreenChange_:function(S){this.fullscreen=S;this.gestures_&&this.gestures_.update(this.fullscreen);var c=_.mZ(this);c.getPlayerPromise().then(function(Q){Q.setFauxFullscreen(!!_.f8())});
this.updateFullBleedElementLocations();S&&(c.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(S,c){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!c},
computeIsDonationShelfCollapsed_:function(S){return S},
computeShouldShowMerchShelf:function(S,c){return c&&!!S},
computeResponseHasComments:function(S){var c,Q,f,U,a;return!!(S==null?0:(c=S.contents)==null?0:(Q=c.twoColumnWatchNextResults)==null?0:(f=Q.results)==null?0:(U=f.results)==null?0:(a=U.contents)==null?0:a.some(function(X){var z;return(X==null?void 0:(z=X.itemSectionRenderer)==null?void 0:z.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(S,c){this.responseHasComments=this.computeResponseHasComments(this.data);return!!S&&!!Object.keys(S).length&&!c},
identity:_.gp,onWindowResized_:function(S){this.windowSize_=S;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_());_.u("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(S){var c=this;S&&S.type!=="dataloaded"&&S.type!=="dataupdated"||_.mZ(this).getPlayerPromise().then(function(Q){var f=Q.getPlayerState();f!==5&&f!==0&&(Q=1/Q.getVideoAspectRatio(),c.videoHeightToWidthRatio_!==Q&&(c.videoHeightToWidthRatio_=Q))})},
schedulePlayerSizeUpdate_:function(S){var c=this,Q=_.u("kevlar_watch_while_v2")||_.u("web_watch_pip"),f=function(){if(c.watchMetadata){var U,a;(a=(U=c.watchMetadata).resize)==null||a.call(U)}_.mZ(c).getPlayerPromise().then(function(X){if(_.u("kevlar_set_internal_player_size")){if(!Q||!c.isMiniplayerActive()){var z=c.calculateCurrentPlayerSize_();X.setInternalSize(z.width,z.height)}}else X.setSize(NaN,NaN);_.u("kevlar_watch_while")&&c.updateWatchWhileScrollThreshold_()})};
S?f():_.pS(_.Mq,f)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(S){this.set("data.survey",S.detail)},
onYtShowSurveyCommand_:function(S){this.set("data.survey",_.Y(S,_.HVE).survey)},
onDownloadedVideoDeleted:function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1){if(!c.active||(Q=c.playerData)==null||!Q.offlineState||c.videoId!==S)return U.return();(f=c.player)==null||f.stopVideo();_.bn().navigatingAwayFromWatchDeletedVideo=!0;_.IW(_.MAR,c.hostElement);return _.F(U,_.bn().navigationFinishPromise,2)}_.bn().navigatingAwayFromWatchDeletedVideo=!1;_.IN(U)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var S;this.theater?S=_.Zv(.5625*this.windowSize_.width,480,this.windowSize_.height-185):S=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==S&&(this.watchWhileScrollThreshold_=S,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var S=_.Ur(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&S){var c=this.windowSize_.height>=624,Q=this.active?this.getScrollTop():0;!S.active&&c&&Q>=this.watchWhileScrollThreshold_?(S.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):S.active&&(!c||Q<this.watchWhileScrollThreshold_&&!_.f8())&&(S.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
isTwoColumnsChanged_:function(S,c){if(S!==!0||c!==void 0){S=!_.u("live_chat_over_engagement_panels");c=_.Ur(this.hostElement).querySelector("#chat-container");var Q=_.Ur(this.hostElement).querySelector("#plj-sidebar"),f=_.Ur(this.hostElement).querySelector("#panels"),U=_.Ur(this.hostElement).querySelector("#plj-panels"),a=_.Ur(this.hostElement).querySelector("#plj-playlist"),X=_.Ur(this.hostElement).querySelector("#alerts"),z=_.Ur(this.hostElement).querySelector("#playlist"),x=_.Ur(this.hostElement).querySelector("#related"),
I=_.Ur(this.hostElement).querySelector("#donation-shelf"),n=_.Ur(this.hostElement).querySelector("#comments");this.isTwoColumns_?(X=_.Ur(this.hostElement).querySelector("#secondary-inner"),X.appendChild(Q),Q.appendChild(a),a.appendChild(z),Q.appendChild(U),S&&X.appendChild(f),_.u("web_watch_theater_chat")||X.appendChild(c),S||X.appendChild(f),X.appendChild(I),X.appendChild(x)):(S&&_.wO(f,X),_.wO(z,X),_.u("web_watch_theater_chat")||_.wO(c,X),S||_.wO(f,X),_.wO(I,X),n&&(U&&_.wO(U,n),_.wO(x,n)));_.u("kevlar_watch_js_panel_height")&&
this.active&&this.schedulePanelMaxHeightUpdate_()}},
watchWhileWindowSizeSufficientChanged:function(){_.u("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(_.u("web_watch_theater_chat")){var S=_.Ur(this.hostElement).querySelector("#chat-container"),c=this.theater&&!this.fullscreen||_.u("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&c?_.u("web_watch_theater_chat_beside_player")?(c=_.Ur(this.hostElement).querySelector("#panels-full-bleed-container"),(S==null?void 0:S.parentElement)!==c&&c.append(S),this.panelsBesidePlayer=!0):_.u("web_watch_theater_fixed_chat")&&
(c=_.Ur(this.hostElement).querySelector("#columns"),(S==null?void 0:S.parentElement)!==c&&c.append(S),this.fixedPanels=!0):(_.u("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.u("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),c=_.Ur(this.hostElement).querySelector("#playlist"),S&&c?_.sR(S,c):_.i5(new _.Yr("Missing element when updating chat location",{"chatContainer defined":!!S,"playlist defined":!!c})));this.updatePageMediaQueries();this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(S,c){return _.u("sw_metadata_vis_toggle_ks")?!0:!!S||!!c},
computeForceDarkPanelTheme:function(S){return _.u("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&S:!1},
safeUpdateStyles:function(S){try{_.Or(this.hostElement,S)}catch(c){_.i5(c)}},
videoHeightToWidthRatioChanged_:function(S,c){c&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.u("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(S){this.videoHeightToWidthRatio_=1/S},
computeIsVerticalVideo_:function(S){return S>=1},
computeIsFourThreeToSixteenNineVideo_:function(S){return S<=.7501&&S>=.5624},
computeIsExtraWideVideo_:function(S){return S<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.mZ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.mZ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.iV0(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(S){var c=_.Bb(S)||0;_.F6(S,c+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var S=_.Bb("yt-fullerscreen-edu-button-click-count")||0,c=_.Bb("yt-fullerscreen-edu-button-shown-count")||0,Q=_.a6("external_fullscreen_button_shown_threshold"),f=S>=_.a6("external_fullscreen_button_click_threshold")||c>=Q;_.mZ(this).getPlayerPromise().then(function(U){U.updateFullerscreenEduButtonSubtleModeState(f)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(S,c){return c},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.fl().resolve(_.G7).getPlaylistData()||{}},
schedulePanelMaxHeightUpdate_:function(){var S=this;this.panelMaxHeightUpdateJob_&&_.Mq.cancelJob(this.panelMaxHeightUpdateJob_);this.panelMaxHeightUpdateJob_=_.Mq.addLowPriorityJob(function(){S.panelMaxHeightUpdateJob_=0;var c;!S.isTwoColumns_||S.theater||S.fullscreen?c=460:c=S.calculateNormalPlayerSize_().height;var Q=c+"px";_.u("live_chat_taller_height")&&!S.theater&&(Q="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");_.u("live_chat_medium_height")&&
!S.theater&&(Q="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.u("live_chat_scaled_height")&&!S.theater&&(Q="calc(100vh - var(--ytd-toolbar-height) - 238px)");S.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":c+"px","--ytd-watch-flexy-chat-max-height":Q,"--ytd-watch-flexy-structured-description-max-height":c+"px","--ytd-watch-flexy-comments-panel-max-height":c+"px","--ytd-comments-engagement-panel-content-height":c+"px"})})},
onYtShowEngagementPanelScrimAction_:function(S){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",S)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.FF(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(S){var c=_.Ur(this.hostElement).querySelector("#engagement-panel-scrim");S?c.addEventListener("tap",_.xn(this,this.onEngagementPanelScrimClick_)):c.removeEventListener("tap",_.xn(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(S){if(this.hostElement.contains(S)&&!this.scrollToAnimation_.isAnimating()){var c=S.offsetTop-24;S=S.offsetTop+S.offsetHeight+24;var Q=this.getPageScrollingElement(),f=this.getScrollTop(),U=f+Q.clientHeight-56;if(c<f+56)c-=56;else if(S>U)c=S-Q.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,c),500)}},
onYtSignalActionScrollToComments:function(){var S=this.hostElement.querySelector("#comments");if(S&&!this.scrollToAnimation_.isAnimating()){S=S.offsetTop-56-24;if(_.u("kevlar_comment_teaser_scroll_to_midpoint")&&(S-=_.B5().height/3,S<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,S),500)}},
onYtEngagementPanelVisibleChanged:function(S,c,Q){this.active&&this.trackEngagementPanelVisibility&&!_.YfU.includes(Q)&&(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.visiblePanelIdentifiers_.add(Q),c!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&c!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(Q),this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(S){return S?"":"watch-active-metadata"},
computeNewMetadataClass:function(S){return S?"watch-active-metadata":""},
computeFullBleedPlayer:function(S,c){return S||c},
computeDefaultLayout:function(S){return!S},
computeDefaultTwoColumnLayout:function(S,c){return!S&&c},
computeWatchWhilePanelsActive:function(S,c){return S||c},
computeNoBorderOnChat:function(S){return _.u("web_watch_theater_chat_no_border")&&S},
computeLiveChatPresentAndExpanded:function(S,c){return S&&!c},
computePanelExpanded:function(S,c,Q){return S||c||Q},
onChangeMarkersVisibility:function(S){_.mZ(this).getPlayerPromise().then(function(c){var Q;(Q=c.changeMarkerVisibility)==null||Q.call(c,_.Y(S,_.vP).isVisible||!1,_.Y(S,_.vP).entityKeys||[],_.Y(S,_.vP).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(S){this.liveChatCollapsed=S.detail;_.V5().dispatch(_.l_8(S.detail))},
provideRenderingData:function(S,c){switch(S){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=c;break;case "PRIMARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=c);this.videoPrimaryInfoRendererValue=c==null?void 0:c.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.u("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=c);this.videoSecondaryInfoRendererValue=c==null?void 0:c.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
c;break;case "CLARIFICATION":this.clarifyBoxValue=c;break;case "LIVE_CHAT":this.conversationBar=c;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=c;break;case "PLAYLIST":this.externalPlaylistData_=c!=null?c:{};break;case "MERCH_SHELF":this.merchShelfValue=c==null?void 0:c.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=c;break;case "OFFER_MODULE":this.offerModule=c;break;case "LIMITED_STATE":this.limitedStateValue=c;break;case "DONATION_SHELF":this.donation=c;break;
case "ALERTS":this.alertsValue=c;break;case "COMMENTS":this.comments=c;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=c;break;case "ENGAGEMENT_PANELS":this.engagementPanels=c;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=c;break;case "RICH_GRID_RENDERER":this.richGridRendererData=c;break;case "EXPANDABLE_METADATA":this.expandableMetadata=c;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=c}},
toggleCinematicsActive:function(S){this.cinematicsActive=S},
isMiniplayerActive:function(){return _.fl().resolve(_.ra).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(S){return SAB.map(function(c){return S.find(function(Q){var f;return(Q==null?void 0:(f=Q.engagementPanelSectionListRenderer)==null?void 0:f.targetId)===c})}).filter(function(c){return c!==void 0})},
getNonLearningJourneyEngagementPanels:function(S){return S.filter(function(c){var Q;return!SAB.includes((c==null?void 0:(Q=c.engagementPanelSectionListRenderer)==null?void 0:Q.targetId)||"")})}}];var cXg;var m0=function(){var S=_.W.apply(this,arguments)||this;S.flexy=!0;S.learningJourney=!0;S.roundedInfoPanel=!0;S.viewTransitionEnabled=_.u("enable_player_resize_transition");S.smallerChatMinHeight=_.u("live_chat_smaller_min_height");S.cinematicTheaterMode=_.u("web_cinematic_theater_mode");S.transparentTheaterMode=_.u("web_transparent_theater_mode");S.cinematicFullscreen=_.u("web_cinematic_fullscreen");S.useLargerMaxPlayerValue=_.u("kevlar_flexy_use_larger_player_value");S.cinematicFullscreenV2=_.u("web_cinematic_fullscreen_v2");
S.isDarkTheme=document.documentElement.hasAttribute("dark");S.theaterLargerPlayer=_.u("web_watch_theater_larger_player");S.defaultCollapsePlaylist=_.u("web_watch_default_collapse_playlist");return S};
_.C(m0,_.W);_.J=m0.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var S=this,c=function(){S.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(S){_.u("web_watch_update_narrow_width_killswitch")||_.V5().dispatch(_.KB2(!S.detail.value));this.ytdWatchBehavior.isTwoColumns_=S.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(S){this.ytdWatchBehavior.flexySmallWindow_=S.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(S){this.ytdWatchBehavior.flexyLargeWindow_=S.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(S){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=S.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(S){this.ytdWatchBehavior.watchNextCanShowMore=S.detail.value};
_.J.updateShownItemsFromBinding=function(S){S.detail.path?this.set(S.detail.path,S.detail.value):this.ytdWatchBehavior.watchNextShownItems=S.detail.value};
_.J.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20555_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20555_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Rh.Object.defineProperties(m0.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(S=_.Y(this.data.pageVisualEffects[c],_.lP))return c=void 0,(c=S.config)==null?void 0:c.enableInLightTheme;return!1}},
hasLearningJourneyPanels:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.learningJourneyEngagementPanels)==null?void 0:S.length)>0}},
backButtonData:{configurable:!0,enumerable:!0,get:function(){var S,c=(S=this.learningJourneyEngagementPanels)==null?void 0:S.find(function(N){var l;return(N==null?void 0:(l=N.engagementPanelSectionListRenderer)==null?void 0:l.panelIdentifier)==="learning-journey-engagement-panel"});
if(c){var Q,f,U,a,X,z,x,I,n;if(S=(I=((x=(X=((a=c==null?void 0:(Q=c.engagementPanelSectionListRenderer)==null?void 0:(f=Q.content)==null?void 0:(U=f.sectionListRenderer)==null?void 0:U.contents)!=null?a:[])[0])==null?void 0:(z=X.itemSectionRenderer)==null?void 0:z.contents)!=null?x:[])[0])==null?void 0:(n=I.accordionViewModel)==null?void 0:n.onTitleTap){var b=_.Gv(S);if(b)return{type:"filled",style:"mono",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){_.BI.instance.resolveCommand(b)}}}}}}});
_.Rh.Object.defineProperties(m0,{template:{configurable:!0,enumerable:!0,get:function(){if(cXg===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);cXg=S}S=cXg;return S}}});
m0.prototype.updateMiniplayerIsActiveValue=m0.prototype.updateMiniplayerIsActiveValue;m0.prototype.updateScrollTopValue=m0.prototype.updateScrollTopValue;m0.prototype.updateFullscreenValue=m0.prototype.updateFullscreenValue;m0.prototype.updateTheaterValue=m0.prototype.updateTheaterValue;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],m0.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],m0.prototype,"ytComponentBehavior",void 0);
_.d([_.p(mvp.YtdLearningJourneyWatchBehavior),_.P("design:type",Object)],m0.prototype,"ytdWatchBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],m0.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],m0.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],m0.prototype,"playerData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"flexy",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"learningJourney",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"roundedInfoPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"viewTransitionEnabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"smallerChatMinHeight",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"cinematicTheaterMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"transparentTheaterMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"cinematicFullscreen",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"useLargerMaxPlayerValue",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"cinematicFullscreenV2",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"isDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],m0.prototype,"theaterLargerPlayer",void 0);_.d([_.Z(),_.P("design:type",Object)],m0.prototype,"defaultCollapsePlaylist",void 0);_.d([_.Z({selector:_.WK}),_.P("design:type",Object)],m0.prototype,"theaterValue",void 0);
_.d([_.Z({selector:_.gJ}),_.P("design:type",Object)],m0.prototype,"fullscreenValue",void 0);_.d([_.Z({selector:_.D_}),_.P("design:type",Object)],m0.prototype,"scrollTopValue",void 0);_.d([_.Z({selector:_.sm}),_.P("design:type",Object)],m0.prototype,"miniplayerIsActiveValue",void 0);_.d([_.nU("#ytd-plj-player"),_.P("design:type",HTMLElement)],m0.prototype,"ytdPlayer",void 0);_.d([_.nU("#playlist"),_.P("design:type",HTMLElement)],m0.prototype,"JSC$20555_ytdPlaylistPanelRenderer",void 0);
_.d([_.VU("ytd-comments"),_.P("design:type",HTMLElement)],m0.prototype,"ytdComments",void 0);_.d([_.nU("#primary"),_.P("design:type",HTMLElement)],m0.prototype,"primary",void 0);_.d([_.nU("#secondary"),_.P("design:type",HTMLElement)],m0.prototype,"secondary",void 0);_.d([_.nU("#player-container"),_.P("design:type",HTMLElement)],m0.prototype,"playerContainer",void 0);_.d([_.nU("#cinematics"),_.P("design:type",HTMLElement)],m0.prototype,"JSC$20555_cinematics",void 0);
_.d([_.B0("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],m0.prototype,"updateTheaterValue",null);_.d([_.B0("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],m0.prototype,"updateFullscreenValue",null);_.d([_.B0("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],m0.prototype,"updateScrollTopValue",null);
_.d([_.B0("miniplayerIsActiveValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],m0.prototype,"updateMiniplayerIsActiveValue",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],m0.prototype,"cinematicLightTheme",null);_.d([_.Z({reflectToAttribute:!0}),_.M("learningJourneyEngagementPanels"),_.P("design:type",Object),_.P("design:paramtypes",[])],m0.prototype,"hasLearningJourneyPanels",null);
_.d([_.M("learningJourneyEngagementPanels"),_.P("design:type",Object),_.P("design:paramtypes",[])],m0.prototype,"backButtonData",null);_.d([_.e({is:"ytd-watch-learning-journey"})],m0);_.at.registerService(_.B7z,m0);
_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("Tm0L3c");
var dvG;var vw2;var Pyg=function(){return _.W.apply(this,arguments)||this};
_.C(Pyg,_.W);_.d([_.e({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],Pyg);
_.k(Pyg,"ytd-ghost-comments-renderer",function(){if(vw2===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);vw2=S}S=vw2;return S},{mode:1});var LR0;var EwO=function(){return _.W.apply(this,arguments)||this};
_.C(EwO,_.W);_.d([_.e({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],EwO);
_.k(EwO,"ytd-ghost-watch-metadata-renderer",function(){if(LR0===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);LR0=S}S=LR0;return S},{mode:1});var ow=function(){var S=_.W.apply(this,arguments)||this;S.ghostGridRenderer={rows:6};S.roundedInfoPanel=!0;S.hideOfferModules=!0;S.smallerChatMinHeight=_.u("live_chat_smaller_min_height");S.cinematicTheaterMode=_.u("web_cinematic_theater_mode");S.transparentTheaterMode=_.u("web_transparent_theater_mode");S.darkerPanels=_.u("web_watch_darker_panels");S.cinematicFullscreen=_.u("web_cinematic_fullscreen");S.cinematicFullscreenV2=_.u("web_cinematic_fullscreen_v2");S.isDarkTheme=document.documentElement.hasAttribute("dark");
return S};
_.C(ow,_.W);_.J=ow.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.J.ready=function(){var S=this,c=function(){S.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(S){this.ytdWatchBehavior.isTwoColumns_=S.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(S){this.ytdWatchBehavior.flexySmallWindow_=S.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(S){this.ytdWatchBehavior.flexyLargeWindow_=S.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(S){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=S.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(S){this.ytdWatchBehavior.watchNextCanShowMore=S.detail.value};
_.J.updateShownItemsFromBinding=function(S){_.u("swatcheroo_direct_use_rich_grid")||(S.detail.path?this.set(S.detail.path,S.detail.value):this.ytdWatchBehavior.watchNextShownItems=S.detail.value)};
_.J.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20543_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20543_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Rh.Object.defineProperties(ow.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(S=_.Y(this.data.pageVisualEffects[c],_.lP))return c=void 0,(c=S.config)==null?void 0:c.enableInLightTheme;return!1}}});
ow.prototype.updateMiniplayerIsActiveValue=ow.prototype.updateMiniplayerIsActiveValue;ow.prototype.updateScrollTopValue=ow.prototype.updateScrollTopValue;ow.prototype.updateFullscreenValue=ow.prototype.updateFullscreenValue;ow.prototype.updateTheaterValue=ow.prototype.updateTheaterValue;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ow.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ow.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.kH1.YtdWatchBehavior),_.P("design:type",Object)],ow.prototype,"ytdWatchBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],ow.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ow.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],ow.prototype,"ghostGridRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],ow.prototype,"playerData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"roundedInfoPanel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"hideOfferModules",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"smallerChatMinHeight",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"cinematicTheaterMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"transparentTheaterMode",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"darkerPanels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"cinematicFullscreen",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"cinematicFullscreenV2",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ow.prototype,"isDarkTheme",void 0);_.d([_.Z({selector:_.WK}),_.P("design:type",Object)],ow.prototype,"theaterValue",void 0);
_.d([_.Z({selector:_.gJ}),_.P("design:type",Object)],ow.prototype,"fullscreenValue",void 0);_.d([_.Z({selector:_.D_}),_.P("design:type",Object)],ow.prototype,"scrollTopValue",void 0);_.d([_.Z({selector:_.sm}),_.P("design:type",Object)],ow.prototype,"miniplayerIsActiveValue",void 0);_.d([_.nU("#ytd-player"),_.P("design:type",HTMLElement)],ow.prototype,"ytdPlayer",void 0);_.d([_.nU("#playlist"),_.P("design:type",HTMLElement)],ow.prototype,"JSC$20543_ytdPlaylistPanelRenderer",void 0);
_.d([_.nU("#ytd-comments"),_.P("design:type",HTMLElement)],ow.prototype,"ytdComments",void 0);_.d([_.nU("#primary"),_.P("design:type",HTMLElement)],ow.prototype,"primary",void 0);_.d([_.nU("#secondary"),_.P("design:type",HTMLElement)],ow.prototype,"secondary",void 0);_.d([_.nU("#player-container"),_.P("design:type",HTMLElement)],ow.prototype,"playerContainer",void 0);_.d([_.nU("#cinematics"),_.P("design:type",HTMLElement)],ow.prototype,"JSC$20543_cinematics",void 0);
_.d([_.B0("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ow.prototype,"updateTheaterValue",null);_.d([_.B0("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ow.prototype,"updateFullscreenValue",null);_.d([_.B0("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ow.prototype,"updateScrollTopValue",null);
_.d([_.B0("miniplayerIsActiveValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ow.prototype,"updateMiniplayerIsActiveValue",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ow.prototype,"cinematicLightTheme",null);
_.k(ow,"ytd-watch-grid",function(){if(dvG===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);dvG=S}S=dvG;return S},{mode:2});_.at.registerService(_.FXY,ow);
_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("CF909");
var riO;var yJ=function(){var S=_.W.apply(this,arguments)||this;S.flexy=!0;S.roundedInfoPanel=!0;S.viewTransitionEnabled=_.u("enable_player_resize_transition");S.smallerChatMinHeight=_.u("live_chat_smaller_min_height");S.cinematicTheaterMode=_.u("web_cinematic_theater_mode");S.transparentTheaterMode=_.u("web_transparent_theater_mode");S.cinematicFullscreen=_.u("web_cinematic_fullscreen");S.useLargerMaxPlayerValue=_.u("kevlar_flexy_use_larger_player_value");S.cinematicFullscreenV2=_.u("web_cinematic_fullscreen_v2");
S.isDarkTheme=document.documentElement.hasAttribute("dark");S.defaultCollapsePlaylist=_.u("web_watch_default_collapse_playlist");S.retroModeReduxValue=!1;return S};
_.C(yJ,_.W);_.J=yJ.prototype;_.J.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.J.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.J.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.J.updateRetroModeReduxValue=function(){_.u("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.J.ready=function(){var S=this,c=function(){S.onColumnScroll()};
this.primary.addEventListener("scroll",c);this.secondary.addEventListener("scroll",c)};
_.J.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.J.updateIsTwoColumnsFromBinding=function(S){_.u("web_watch_update_narrow_width_killswitch")||_.V5().dispatch(_.KB2(!S.detail.value));this.ytdWatchBehavior.isTwoColumns_=S.detail.value};
_.J.updateFlexySmallWindowFromBinding=function(S){this.ytdWatchBehavior.flexySmallWindow_=S.detail.value};
_.J.updateFlexyLargeWindowFromBinding=function(S){this.ytdWatchBehavior.flexyLargeWindow_=S.detail.value};
_.J.updateWatchWhileWindowSizeSufficientFromBinding=function(S){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=S.detail.value};
_.J.updateWatchNextCanShowMoreFromBinding=function(S){this.ytdWatchBehavior.watchNextCanShowMore=S.detail.value};
_.J.updateShownItemsFromBinding=function(S){S.detail.path?this.set(S.detail.path,S.detail.value):this.ytdWatchBehavior.watchNextShownItems=S.detail.value};
_.J.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20538_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20538_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.Rh.Object.defineProperties(yJ.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.pageVisualEffects)return!1;for(var c=0;c<this.data.pageVisualEffects.length;c++)if(S=_.Y(this.data.pageVisualEffects[c],_.lP))return c=void 0,(c=S.config)==null?void 0:c.enableInLightTheme;return!1}}});
_.Rh.Object.defineProperties(yJ,{template:{configurable:!0,enumerable:!0,get:function(){if(riO===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);riO=S}S=riO;return S}}});
yJ.prototype.updateRetroModeReduxValue=yJ.prototype.updateRetroModeReduxValue;yJ.prototype.updateScrollTopValue=yJ.prototype.updateScrollTopValue;yJ.prototype.updateFullscreenValue=yJ.prototype.updateFullscreenValue;yJ.prototype.updateTheaterValue=yJ.prototype.updateTheaterValue;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],yJ.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.kH1.YtdWatchBehavior),_.P("design:type",Object)],yJ.prototype,"ytdWatchBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],yJ.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yJ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],yJ.prototype,"playerData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"flexy",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"roundedInfoPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"viewTransitionEnabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"smallerChatMinHeight",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"cinematicTheaterMode",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"transparentTheaterMode",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"cinematicFullscreen",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"useLargerMaxPlayerValue",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"cinematicFullscreenV2",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],yJ.prototype,"isDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],yJ.prototype,"defaultCollapsePlaylist",void 0);_.d([_.Z({selector:_.WK}),_.P("design:type",Object)],yJ.prototype,"theaterValue",void 0);_.d([_.Z({selector:_.gJ}),_.P("design:type",Object)],yJ.prototype,"fullscreenValue",void 0);_.d([_.Z({selector:_.D_}),_.P("design:type",Object)],yJ.prototype,"scrollTopValue",void 0);
_.d([_.Z({selector:_.sm}),_.P("design:type",Object)],yJ.prototype,"miniplayerIsActive",void 0);_.d([_.Z({selector:function(S){return S.watch.isWatchRetroMode}}),
_.P("design:type",Object)],yJ.prototype,"retroModeReduxValue",void 0);_.d([_.VU("ytd-player"),_.P("design:type",HTMLElement)],yJ.prototype,"ytdPlayer",void 0);_.d([_.nU("#playlist"),_.P("design:type",HTMLElement)],yJ.prototype,"JSC$20538_ytdPlaylistPanelRenderer",void 0);_.d([_.VU("ytd-comments"),_.P("design:type",HTMLElement)],yJ.prototype,"ytdComments",void 0);_.d([_.nU("#primary"),_.P("design:type",HTMLElement)],yJ.prototype,"primary",void 0);
_.d([_.nU("#secondary"),_.P("design:type",HTMLElement)],yJ.prototype,"secondary",void 0);_.d([_.nU("#player-container"),_.P("design:type",HTMLElement)],yJ.prototype,"playerContainer",void 0);_.d([_.nU("#cinematics"),_.P("design:type",HTMLElement)],yJ.prototype,"JSC$20538_cinematics",void 0);_.d([_.B0("theaterValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yJ.prototype,"updateTheaterValue",null);
_.d([_.B0("fullscreenValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yJ.prototype,"updateFullscreenValue",null);_.d([_.B0("scrollTopValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yJ.prototype,"updateScrollTopValue",null);_.d([_.B0("retroModeReduxValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yJ.prototype,"updateRetroModeReduxValue",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],yJ.prototype,"cinematicLightTheme",null);_.d([_.e({is:"ytd-watch-flexy"})],yJ);_.at.registerService(_.xCM,yJ);
_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("nmfa2d");
var Q$0;var kj=function(){var S=_.W.apply(this,arguments)||this;S.hidden=!1;S.errorScreen=null;S.playlistData={};return S};
_.C(kj,_.W);_.J=kj.prototype;_.J.getPlayer=function(){return this.ytdPlayer};
_.J.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:_.s3(["aa","eocs"])}}};
_.J.onActiveChanged=function(){_.V5().dispatch(_.V_0(this.ytPageBehavior.active))};
_.J.playerDataChanged=function(){var S;(S=this.watchController)==null||S.setPlayerResponse(this.playerData)};
_.J.dataChanged=function(){var S;(S=this.watchController)==null||S.setWatchNextResponse(this.data)};
_.J.sizeChanged=function(){var S,c;(c=(S=this.metadata).resize)==null||c.call(S)};
_.J.attached=function(){this.watchController=new _.gs(this);this.playerData&&this.watchController.setPlayerResponse(this.playerData);this.data&&this.watchController.setWatchNextResponse(this.data)};
_.J.detached=function(){_.yN(this.watchController);this.watchController=void 0};
_.J.getPlayerContainer=function(){return this.playerContainer};
_.J.getElement=function(S){switch(S){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20490_playlistPanel}};
_.J.provideRenderingData=function(S,c){switch(S){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=c;break;case "ERROR_SCREEN":this.errorScreen=c!=null?c:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=c;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=c;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=c;break;case "RICH_METADATA":this.richMetadataRowContainer=c;break;case "CLARIFICATION":this.clarificationData=c;break;case "PLAYLIST":this.playlistData=
c!=null?c:{};break;case "MERCH_SHELF":this.merchShelf=c;break;case "TICKET_SHELF":this.ticketShelf=c;break;case "LIMITED_STATE":this.limitedState=c;break;case "DONATION_SHELF":this.donationShelf=c;break;case "ALERTS":this.alerts=c}};
_.Rh.Object.defineProperties(kj.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return!this.hidden&&!!((S=this.data)==null?0:(c=S.contents)==null?0:(Q=c.twoColumnWatchNextResults)==null?0:Q.conversationBar)}}});
kj.prototype.sizeChanged=kj.prototype.sizeChanged;kj.prototype.dataChanged=kj.prototype.dataChanged;kj.prototype.playerDataChanged=kj.prototype.playerDataChanged;kj.prototype.onActiveChanged=kj.prototype.onActiveChanged;_.d([_.p(_.DF.YtPageBehavior),_.P("design:type",Object)],kj.prototype,"ytPageBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],kj.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],kj.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],kj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],kj.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"playerData",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],kj.prototype,"hidden",void 0);_.d([_.nU("#ytd-player"),_.P("design:type",HTMLElement)],kj.prototype,"ytdPlayer",void 0);_.d([_.nU("#player-container"),_.P("design:type",HTMLElement)],kj.prototype,"playerContainer",void 0);_.d([_.nU("#metadata"),_.P("design:type",Object)],kj.prototype,"metadata",void 0);_.d([_.nU("#playlist"),_.P("design:type",HTMLElement)],kj.prototype,"JSC$20490_playlistPanel",void 0);
_.d([_.Z({selector:_.p62,reflectToAttribute:!0}),_.P("design:type",Object)],kj.prototype,"fixie",void 0);_.d([_.Z({selector:_.DWO,reflectToAttribute:!0}),_.P("design:type",Object)],kj.prototype,"singleColumn",void 0);_.d([_.Z({selector:function(S){return _.WK(S)&&!_.gJ(S)},
reflectToAttribute:!0}),_.P("design:type",Object)],kj.prototype,"theater",void 0);_.d([_.Z({selector:_.gJ,reflectToAttribute:!0}),_.P("design:type",Object)],kj.prototype,"fullscreen",void 0);_.d([_.Z({selector:_.t_E}),_.P("design:type",Object)],kj.prototype,"windowSize",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"singleColumnContents",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"errorScreen",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"playlistData",void 0);
_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"videoPrimaryInfoRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"videoSecondaryInfoRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"richMetadataRowContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"clarificationData",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"commentsEntryPointHeaderRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"ticketShelf",void 0);
_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"merchShelf",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"donationShelf",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"limitedState",void 0);_.d([_.Z(),_.P("design:type",Object)],kj.prototype,"alerts",void 0);_.d([_.M("playlistData"),_.P("design:type",Object),_.P("design:paramtypes",[])],kj.prototype,"hasPlaylistData",null);
_.d([_.M("data","hidden"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],kj.prototype,"hasChat",null);_.d([_.B0("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kj.prototype,"onActiveChanged",null);_.d([_.B0("playerData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kj.prototype,"playerDataChanged",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kj.prototype,"dataChanged",null);_.d([_.B0("windowSize","singleColumn"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],kj.prototype,"sizeChanged",null);
_.k(kj,"ytd-watch-fixie",function(){if(Q$0===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);Q$0=S}S=Q$0;return S},{mode:1});_.at.registerService(_.z4T,kj);
_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("xwEKAe");
var $8E=function(S){var c=_.jL();if(c.getFlag(202))c=c.getFlag(201);else{var Q;c=(S==null?void 0:(Q=S.config)==null?void 0:Q.settingOnByDefault)!==void 0?S.config.settingOnByDefault:!_.u("web_shorts_cinematics_disabled_by_default")}return c},usV=function(S){var c=_.jL();
_.l2(0,201,S);_.l2(0,202,!0);c.save()},jfZ=function(S){return(S=_.XDr(S))?_.zAY(S):0},l9G=function(S){return S.shorts.isSmallScreenSqueezeback},YkV=function(S){return S.shorts.isPlaybackStarted},D80=function(S){var c=_.DRc(2),Q=new Set;
_.wX(function(){return void Q.forEach(function(f){return void f()})});
return function(f){var U=_.cr(c);try{var a=C0E(HYE(S),f);Q.add(a);return function(){a();Q.delete(a)}}finally{_.cr(U)}}},pRT=function(S){var c=S.children;
var Q=S.root;_.qR(function(){var f=D80(Q)(c);_.wX(f)});
return document.createTextNode("")},C0E=function(S,c){var Q=h3p(S);
S=_.A(_.KZT(c,!0));c=S.next().value;var f=S.next().value;Q.append.apply(Q,_.Hs(c));return function(){f();Q.remove()}},HYE=function(S){if(typeof S==="string")return S=document.querySelector(S),_.XiU(S),S;
if(_.Xp(S)&&S.nodeType===Node.ELEMENT_NODE)return S;try{if(!S.__hasErrored){if(S.__count&&S.__count>1)throw _.pb.USE_ELEMENT_MULTIPLE_ASSIGNMENTS(_.V1);if(S.__value){if(_.V1!==_.V1){var c=S.__value.tagName.toLowerCase();if(c!==_.V1.toLowerCase())throw _.pb.USE_ELEMENT_UNEXPECTED_ELEMENT(_.V1,c);}}else throw _.pb.USE_ELEMENT_NOT_ASSIGNED(_.V1);}}catch(f){var Q;(Q=_.Uj.handleError)==null||Q.call.apply(Q,[_.Uj].concat(_.Hs(_.gX(f,c))))}finally{S.__count=0}return S.value},h3p=function(S){var c=document.createElementNS(S.namespaceURI,
S.namespaceURI==="http://www.w3.org/2000/svg"?"g":"div");
return S.appendChild(c)},qk1=function(S,c,Q,f){S=c-S;
Q=f-Q;return Math.sqrt(S*S+Q*Q)},TIE=function(S,c){S&&_.fl().resolve(_.U8).resolveCommand(S,{forceClickLogging:!0,
form:{element:c}})},wR2=function(S,c,Q,f){S=c-S;
Q=f-Q;return Math.sqrt(S*S+Q*Q)},sf0=function(S,c){S&&_.fl().resolve(_.U8).resolveCommand(S,{forceClickLogging:!0,
form:{element:c}})},MA2=function(S){S.unsubscribeFromStore=_.Kt(S.storeWithShorts,_.Al8,function(c){S.initOrDisposeActiveModules(c);
!c&&S.storeWithShorts.getState().shorts.isFullscreen&&(_.Uz(document.documentElement),S.storeWithShorts.dispatch(_.xxp(!1)))});
S.initOrDisposeActiveModules(_.Al8(S.storeWithShorts.getState()))},iY8=function(S){var c=_.fl().resolve(_.us);
c.rootElement=S;MA2(c)},ZYg=function(){return _.fl().resolve(_.us).dismissedIndices},GxT=function(S){return _.aB({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:S}})},WTE=function(S){return _.aB({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:S}})},a$=function(S){return _.aB({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:S}})};var Ai=function(S,c){if(S instanceof Ai)this.array_=S.array_;else{var Q;if(Q=_.yY(S))a:{for(var f=Q=0;f<S.length;f++){if(!_.yY(S[f])||Q>0&&S[f].length!=Q){Q=!1;break a}for(var U=0;U<S[f].length;U++)if(typeof S[f][U]!=="number"){Q=!1;break a}Q==0&&(Q=S[f].length)}Q=Q!=0}if(Q)this.array_=_.VY(S);else if(S instanceof _.xh)this.array_=gPE(S.height,S.width);else if(typeof S==="number"&&typeof c==="number"&&S>0&&c>0)this.array_=gPE(S,c);else throw Error("am");}this.size_=new _.xh(this.array_[0].length,
this.array_.length)},e31=function(S,c,Q){for(var f=0;f<S.getSize().height;f++)for(var U=0;U<S.getSize().width;U++)c.call(Q,S.array_[f][U],f,U,S)},kxE=function(S,c){var Q=new Ai(S.getSize());
e31(S,function(f,U,a){Q.array_[U][a]=c.call(void 0,f,U,a,S)});
return Q},gPE=function(S,c){for(var Q=[],f=0;f<S;f++){Q[f]=[];
for(var U=0;U<c;U++)Q[f][U]=0}return Q};
Ai.prototype.add=function(S){if(!_.LaE(this.size_,S.getSize()))throw Error("bm");return kxE(this,function(c,Q,f){return c+S.array_[Q][f]})};
Ai.prototype.equals=function(S,c){if(this.size_.width!=S.size_.width||this.size_.height!=S.size_.height)return!1;c=c||0;for(var Q=0;Q<this.size_.height;Q++)for(var f=0;f<this.size_.width;f++)if(!_.PL1(this.array_[Q][f],S.array_[Q][f],c))return!1;return!0};
Ai.prototype.getSize=function(){return this.size_};
var X3=function(S,c,Q){return c>=0&&c<S.size_.height&&Q>=0&&Q<S.size_.width?S.array_[c][Q]:null};
Ai.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var Of=function(S,c,Q,f){if(!(c>=0&&c<S.size_.height&&Q>=0&&Q<S.size_.width))throw Error("cm`"+c+"`"+Q+"`"+S.size_.height+"`"+S.size_.width);S.array_[c][Q]=f};
Ai.prototype.multiply=function(S){if(S instanceof Ai){if(this.size_.width!=S.getSize().height)throw Error("dm");return rfE(this,S)}if(typeof S==="number")return d8U(this,S);throw Error("em");};
var rfE=function(S,c){var Q=new Ai(S.size_.height,c.getSize().width);e31(Q,function(f,U,a){for(var X=f=0;X<this.size_.width;X++)f+=X3(this,U,X)*X3(c,X,a);Of(Q,U,a,f)},S);
return Q},d8U=function(S,c){return kxE(S,function(Q){return Q*c})};var vPp=new _.L("inlineSurveyRenderer");var P0T=new _.L("interstitialViewModel");var LTO=new _.L("reelNavigateCommand");var EPg=new _.L("reelNonVideoContentDismissalCommand");var tAg=new _.L("showReelsCommentsOverlayCommand");var VAV=new _.L("shortsSuggestedActionViewModel");var R3O=new _.L("videoInteractionPopUpRenderer");var yfT;var oPp;var m8T;var zH=function(){var S=_.W.apply(this,arguments)||this;S.ctaVisualElement=null;S.currentCsn=null;return S};
_.C(zH,_.W);_.J=zH.prototype;_.J.onDataChanged=function(){this.maybeLogShows()};
_.J.computeButtonShape=function(){var S=this;if(this.data)return{buttonText:_.Em(this.data.text),state:"active",onTap:function(){S.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.J.maybeCreateCtaVe=function(){var S;if((S=this.data)!=null&&S.badgeInteractionLogging){var c;if(S=(c=this.data.badgeInteractionLogging)==null?void 0:c.trackingParams)this.ctaVisualElement=_.Yz(S)}};
_.J.maybeLogClicks=function(){this.currentCsn=_.wN(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.tz(this.currentCsn,this.ctaVisualElement)};
_.J.maybeLogShows=function(){this.currentCsn=_.wN(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.L8(this.currentCsn,[this.ctaVisualElement])};
_.J.onTap=function(){var S;if((S=this.data)!=null&&S.onClickCommand){var c;this.ytComponentBehavior.resolveCommand((c=this.data)==null?void 0:c.onClickCommand);this.maybeLogClicks()}};
zH.prototype.onDataChanged=zH.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],zH.prototype,"ytComponentBehavior",void 0);_.d([_.Z({}),_.P("design:type",Object)],zH.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zH.prototype,"onDataChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],zH);
_.k(zH,"ytd-shopping-overlay-badge-renderer",function(){if(m8T!==void 0)return m8T;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return m8T=S},{mode:1});_.f4(_.MxV,"reel-sound-metadata-view-model",{props:{data:_.Qn,overlayDensity:_.Qn}});_.f4(_.uAT,"player-disclosure-view-model",{props:{data:_.y$}});_.f4(_.o2d,"pivot-button-view-model",{props:{data:_.Qn,className:_.Qn}});_.f4(_.maz,"reel-action-bar-view-model",{props:{data:_.y$,buttonShapeOverrideables:_.y$}});_.f4(_.y_(function(S){function c(){var IH,Nr,Hc,qr,wp=(Nr=_.Y((IH=E())==null?void 0:IH.command,_.lA))==null?void 0:(Hc=Nr.item)==null?void 0:(qr=Hc.notificationTextRenderer)==null?void 0:qr.successResponseText;if(wp)_.XF(f.value,"yt-open-popup-action",[_.y5(wp),f.value]);else if(v())TIE(v(),H.value);else{var Pc;TIE((Pc=E())==null?void 0:Pc.command,H.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var Q=S.data;var f=_.EH("yt-player-overlay-video-interactions");S=_.A(_.ny("0px",void 0,"O1N7Ce"));var U=S.next().value,a=S.next().value;S=_.A(_.ny("0px",void 0,"tTDBdb"));var X=S.next().value,z=S.next().value;S=_.A(_.ny(0,void 0,"fh8Zkc"));var x=S.next().value,I=S.next().value;S=_.A(_.ny(0,void 0,"CUjqGd"));var n=S.next().value,b=S.next().value,N=function(){var IH;if(((IH=_.zI())==null?void 0:IH.getPlayerState())!==-1){f.value.style.display="inherit";var Nr;(Nr=_.zI())==null||Nr.removeEventListener("onStateChange",
N)}l()},l=function(){var IH=document.querySelector("video");
if(IH){I(IH.getBoundingClientRect().width);b(IH.getBoundingClientRect().height);var Nr;a((IH==null?void 0:(Nr=IH.style)==null?void 0:Nr.left)||"0px");var Hc;z((IH==null?void 0:(Hc=IH.style)==null?void 0:Hc.top)||"0px")}};
_.To(function(){var IH,Nr,Hc;if(((IH=_.zI())==null?void 0:IH.getPlayerState())===-1&&Math.round(((Hc=(Nr=_.zI())==null?void 0:Nr.getVideoAspectRatio())!=null?Hc:0)*100)!==Math.round(x()/n()*100)){f.value.style.display="none";var qr,wp;b(x()/((wp=(qr=_.zI())==null?void 0:qr.getVideoAspectRatio())!=null?wp:1))}},"VB5m5");
_.qR(function(){var IH;(IH=_.zI())==null||IH.addEventListener("onStateChange",N);window.addEventListener("resize",l);l();var Nr,Hc,qr;if((qr=(Nr=Q())==null?void 0:(Hc=Nr.regions)==null?void 0:Hc[0])==null||!qr.transformationMatrix)throw Error("im");var wp;if((wp=Q())==null?0:wp.trackingParams){var Pc;_.Kv().graftServerVe((Pc=Q().trackingParams)!=null?Pc:"")}_.wX(function(){var ex;(ex=_.zI())==null||ex.removeEventListener("onStateChange",N);window.removeEventListener("resize",l)})});
var H=_.EH("svg"),q=_.A(_.ny(!1,void 0,"TPsTce"));S=q.next().value;var w=q.next().value,g=_.A(_.ny(!1,void 0,"Uz6CHf"));q=g.next().value;var r=g.next().value,E=function(){var IH;return _.Y((IH=Q())==null?void 0:IH.popUp,R3O)},v=function(){var IH;
return(IH=Q())==null?void 0:IH.command},t=function(){return _.Y(v(),_.KS)!==void 0};
g=_.$d(function(){c();return!1});
var V={},AZ={};return _.B("yt-player-overlay-video-interactions",{el:f},_.B("svg",{"on:mouseover":_.$d(function(){t()&&w(!0);r(!0);return!1}),
"on:mouseout":_.$d(function(){w(!1);r(!1);return!1}),
"on:keydown":_.$d(function(IH){IH.key==="Enter"&&c();return!1}),
"on:focus":_.$d(function(){t()&&w(!0);return!1}),
"on:blur":_.$d(function(){t()&&w(!1);return!1}),
el:H,tabindex:0,"aria-label":function(){var IH;return(IH=Q())==null?void 0:IH.a11yString},
id:"player-overlay-video-interaction-svg",class:_.n4("yt-player-overlay-video-interactions__interactions-svg",(V["yt-player-overlay-video-interactions__interactions-svg-hover"]=S,V),(AZ["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=q,AZ)),role:"button",style:function(){var IH,Nr,Hc,qr=(Hc=(IH=Q())==null?void 0:(Nr=IH.regions)==null?void 0:Nr[0].transformationMatrix)!=null?Hc:[];IH=x();Nr=n();Hc=[];for(var wp=0,Pc=-1;wp<qr.length;wp++)wp%3===0&&(Pc++,Hc[Pc]=[]),Hc[Pc].push(qr[wp]);
qr=new Ai(Hc);Hc=new Ai([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);Hc=qr.multiply(Hc);qr=new Ai([[0,0],[0,0],[0,0],[0,0]]);for(wp=0;wp<Hc.getSize().width;wp++){Pc=X3(Hc,0,wp);var ex=X3(Hc,1,wp);if(Pc===null||ex===null)throw Error("hm`"+(wp+1).toString());Of(qr,wp,0,Pc*IH);Of(qr,wp,1,ex*Nr)}IH=X3(qr,0,0);wp=X3(qr,1,0);Nr=X3(qr,0,1);Pc=X3(qr,1,1);if(IH===null||wp===null||Nr===null||Pc===null)throw Error("fm");Hc=qk1(IH,wp,Nr,Pc);ex=X3(qr,3,0);qr=X3(qr,3,1);if(ex===null||qr===null)throw Error("gm");qr=qk1(IH,
ex,Nr,qr);Pc=(Number((Pc*-1).toFixed(2))-Number((Nr*-1).toFixed(2)))/(Number(wp.toFixed(2))-Number(IH.toFixed(2)));ex=Math.atan(Pc)*180/Math.PI;wp=Pc===Number.POSITIVE_INFINITY?-90:Pc===Number.NEGATIVE_INFINITY?90:Object.is(Pc,-0)?180:Pc===0?0:Pc>0?ex*-1:IH<wp?ex*-1:Math.abs(ex)+180;return"left:calc("+IH+"px + "+U()+"); top:calc("+(Nr+"px + "+X()+"); width:")+(Hc+"px; height:")+(qr+"px; transform:rotate(")+(wp+"deg);")},
"on:click":g}))},"Mi"),"yt-player-overlay-video-interactions",{props:{data:_.y$}});_.f4(_.HhZ,"yt-reel-metapanel-view-model",{props:{data:_.y$,overlayDensity:_.y$}});var SKg=_.y_(function(S){var c=S.children;var Q=S.region;S=_.A(_.ny(void 0,void 0,"rwJZyc"));var f=S.next().value,U=S.next().value;S=_.A(_.ny("0px",void 0,"H14H5c"));var a=S.next().value,X=S.next().value;S=_.A(_.ny("0px",void 0,"Mn8Uvf"));var z=S.next().value,x=S.next().value;S=_.A(_.ny(0,void 0,"QQCIqc"));var I=S.next().value,n=S.next().value;S=_.A(_.ny(0,void 0,"HyEvh"));var b=S.next().value,N=S.next().value,l=function(){var E=f();if(E){var v;if(((v=_.zI())==null?void 0:v.getPlayerState())!==-1){E.style.display=
"inherit";var t;(t=_.zI())==null||t.removeEventListener("onStateChange",l)}q()}},H=function(){var E=document.querySelectorAll("video");
return Array.from(E).find(function(v){return v==null?void 0:v.style})},q=function(){var E=H();
if(E){n(E.getBoundingClientRect().width);N(E.getBoundingClientRect().height);var v;X((E==null?void 0:(v=E.style)==null?void 0:v.left)||"0px");var t;x((E==null?void 0:(t=E.style)==null?void 0:t.top)||"0px")}};
_.To(function(){var E=f();if(E){var v,t,V;if(((v=_.zI())==null?void 0:v.getPlayerState())===-1&&Math.round(((V=(t=_.zI())==null?void 0:t.getVideoAspectRatio())!=null?V:0)*100)!==Math.round(I()/b()*100)){E.style.display="none";var AZ,IH;N(I()/((IH=(AZ=_.zI())==null?void 0:AZ.getVideoAspectRatio())!=null?IH:1))}}},"RdGxIf");
var w=function(){q()},g;
_.qR(function(){q();var E;if(!(Q==null?0:(E=Q())==null?0:E.transformationMatrix))throw Error("im");var v;(v=_.zI())==null||v.addEventListener("onStateChange",l);if(window.ResizeObserver){if(E=H())g=new ResizeObserver(w),g.observe(E)}else window.addEventListener("resize",q);_.wX(function(){var t;(t=_.zI())==null||t.removeEventListener("onStateChange",l);g?g.disconnect():window.removeEventListener("resize",q)})});
var r=function(){var E,v,t=(v=Q==null?void 0:(E=Q())==null?void 0:E.transformationMatrix)!=null?v:[];E=I();v=b();for(var V=[],AZ=0,IH=-1;AZ<t.length;AZ++)AZ%3===0&&(IH++,V[IH]=[]),V[IH].push(t[AZ]);t=new Ai(V);V=new Ai([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);V=t.multiply(V);t=new Ai([[0,0],[0,0],[0,0],[0,0]]);for(AZ=0;AZ<V.getSize().width;AZ++){IH=X3(V,0,AZ);var Nr=X3(V,1,AZ);if(IH===null||Nr===null)throw Error("hm`"+(AZ+1).toString());Of(t,AZ,0,IH*E);Of(t,AZ,1,Nr*v)}E=X3(t,0,0);AZ=X3(t,1,0);v=X3(t,0,1);
IH=X3(t,1,1);if(E===null||AZ===null||v===null||IH===null)throw Error("fm");V=wR2(E,AZ,v,IH);Nr=X3(t,3,0);t=X3(t,3,1);if(Nr===null||t===null)throw Error("gm");t=wR2(E,Nr,v,t);IH=(Number((IH*-1).toFixed(2))-Number((v*-1).toFixed(2)))/(Number(AZ.toFixed(2))-Number(E.toFixed(2)));Nr=Math.atan(IH)*180/Math.PI;AZ=IH===Number.POSITIVE_INFINITY?-90:IH===Number.NEGATIVE_INFINITY?90:Object.is(IH,-0)?180:IH===0?0:IH>0?Nr*-1:E<AZ?Nr*-1:Math.abs(Nr)+180;return"left:calc("+E+"px + "+a()+"); top:calc("+(v+"px + "+
z()+"); width:")+(V+"px; height:")+(t+"px; transform:rotate(")+(AZ+"deg);")};
return _.B(pRT,{root:"#sticker-layer"},function(){return _.B("yt-overlay-sticker",{el:_.oW(U),style:r,class:"ytOverlayStickerHost"},c)})},"Ni");var cYG=_.y_(function(S){function c(){var l,H,q,w,g=(H=_.Y((l=x())==null?void 0:l.command,_.lA))==null?void 0:(q=H.item)==null?void 0:(w=q.notificationTextRenderer)==null?void 0:w.successResponseText;if(g)_.XF(f.value,"yt-open-popup-action",[_.y5(g),f.value]);else if(I())sf0(I(),f.value);else{var r;sf0((r=x())==null?void 0:r.command,f.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var Q=S.data;var f=_.EH("svg"),U=_.A(_.ny(!1,void 0,"T9Bq7b"));S=U.next().value;var a=U.next().value,X=_.A(_.ny(!1,void 0,"iMHq9c"));U=X.next().value;var z=X.next().value,x=function(){var l;return _.Y((l=Q())==null?void 0:l.popUp,R3O)},I=function(){var l;
return(l=Q())==null?void 0:l.command},n=function(){return _.Y(I(),_.KS)!==void 0};
X=_.$d(function(){c();return!1});
var b={},N={};return _.B("svg",{"on:mouseover":_.$d(function(){n()&&a(!0);z(!0);return!1}),
"on:mouseout":_.$d(function(){a(!1);z(!1);return!1}),
"on:keydown":_.$d(function(l){l.key==="Enter"&&c();return!1}),
"on:focus":_.$d(function(){n()&&a(!0);return!1}),
"on:blur":_.$d(function(){n()&&a(!1);return!1}),
el:f,tabindex:0,"aria-label":function(){var l;return(l=Q())==null?void 0:l.a11yString},
id:"player-overlay-video-interaction-svg",class:_.n4("ytPlayerOverlayInteractionInteractionsSvg",(b.ytPlayerOverlayInteractionInteractionsSvgHover=S,b),(N.ytPlayerOverlayInteractionInteractionsSvgHideOutline=U,N)),role:"button","on:click":X})},"Pi");_.f4(_.y_(function(S){var c=S.data;_.qR(function(){var Q;if((Q=c())==null?0:Q.trackingParams){var f;_.Kv().graftServerVe((f=c().trackingParams)!=null?f:"")}});
return _.B("yt-player-overlay-interaction",null,_.B(SKg,{region:function(){var Q,f;return(Q=c())==null?void 0:(f=Q.regions)==null?void 0:f[0]}},_.B(cYG,Object.assign({},S))))},"Oi"),"yt-player-overlay-interaction",{props:{data:_.y$}});var xw=function(){var S=_.W.apply(this,arguments)||this;S.showScrubber=!1;S.isWatchWhileMode=!1;S.enableRemixButton=_.u("web_enable_shorts_remix_handoff_ep");S.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");S.enableNewStickers=_.u("use_shorts_sticker_overlay_web");S.anchoredPanelActive=!1;S.enableLivingroomLayout=_.u("reels_enable_livingroom_layout");S.enablePlayerMetadataContainer=_.u("reels_web_enable_metadata_container");S.enableSqueezebackPanels=_.u("web_shorts_enable_squeezeback_panels");
S.useAspectRatio=_.u("web_use_aspect_ratio");S.isSqueezebackActive=!1;S.smallScreenSqueezeback=!1;S.isPlayerStarted=!1;S.overlayDensity=0;S.isOverlay=!1;S.isImmersive=!1;S.isImmersiveHorizontal=!1;S.isFullscreen=!1;S.onWindowResized=function(){var c;S.set("isImmersive",((c=window.getComputedStyle(S.hostElement))==null?void 0:c.getPropertyValue("--immersive-mode-on"))==="1");S.set("isImmersiveHorizontal",S.isImmersive&&S.enableLivingroomLayout&&!S.isWatchWhileMode)};
return S};
_.C(xw,_.W);_.J=xw.prototype;_.J.updateIsOverlay=function(S){this.isOverlay=S.detail.value};
_.J.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.u("web_enable_flexible_overlay")||_.u("web_enable_format_first")||_.u("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.J.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.J.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.J.computeActionBarButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",iconPosition:"icon-with-label",size:"L"}};
_.J.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.J.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.J.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.J.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",_.Al("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.Al("reels_action_justified_content")||"flex-start")};
_.J.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}}};
_.J.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.K8("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.K8("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.K8("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.K8("SHARE_LABEL",
void 0,"Share")}}});_.u("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.K8("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()};
_.J.setEmptyOverlayMetadata=function(){_.u("web_shorts_deflate_inactive_slides")&&(this.set("data.multiFormatLink",{reelMultiFormatLinkViewModel:void 0}),this.set("data.multimixAttributionLabel",void 0),this.set("data.suggestedAction",{shoppingOverlayRenderer:void 0,shortsSuggestedActionRenderer:void 0}),this.set("data.soundMetadata",{reelSoundMetadataViewModel:void 0}))};
_.Rh.Object.defineProperties(xw.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.infoPanel)}}});
xw.prototype.onIsActiveChanged=xw.prototype.onIsActiveChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],xw.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],xw.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],xw.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],xw.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],xw.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],xw.prototype,"isActive",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],xw.prototype,"hidden",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],xw.prototype,"useShortsIcon",void 0);_.d([_.Z({value:"left"}),_.P("design:type",String)],xw.prototype,"buttonTooltipPosition",void 0);
_.d([_.Z({value:_.u("reels_enable_livingroom_layout")?"top":"left"}),_.P("design:type",String)],xw.prototype,"likeButtonTooltipPosition",void 0);_.d([_.Z({value:"none"}),_.P("design:type",String)],xw.prototype,"textTransform",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"showScrubber",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"isWatchWhileMode",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.infoPanel"),_.P("design:type",Object),_.P("design:paramtypes",[])],xw.prototype,"hasInfoPanel",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"enableRemixButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"enableAnchoredPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"enableNewStickers",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"anchoredPanelActive",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"enableLivingroomLayout",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],xw.prototype,"enablePlayerMetadataContainer",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"enableSqueezebackPanels",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"useAspectRatio",void 0);_.d([_.Z({selector:_.G2Z,reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"isSqueezebackActive",void 0);_.d([_.Z({selector:l9G,reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"smallScreenSqueezeback",void 0);_.d([_.Z({selector:YkV}),_.P("design:type",Object)],xw.prototype,"isPlayerStarted",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"overlayDensity",void 0);_.d([_.Z(),_.P("design:type",Object)],xw.prototype,"isOverlay",void 0);_.d([_.Z({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.P("design:type",Boolean)],xw.prototype,"isShortsOverlay",void 0);_.d([_.Z(),_.P("design:type",Object)],xw.prototype,"isImmersive",void 0);_.d([_.Z(),_.P("design:type",Object)],xw.prototype,"isImmersiveHorizontal",void 0);
_.d([_.Z({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.P("design:type",Boolean)],xw.prototype,"isShortsImmersive",void 0);_.d([_.Z({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.P("design:type",Object)],xw.prototype,"buttonOverride",void 0);_.d([_.Z({computed:"computeActionBarButtonOverride(isOverlay, isWatchWhileMode)"}),_.P("design:type",Object)],xw.prototype,"actionBarButtonOverride",void 0);
_.d([_.Z({selector:_.KD,reflectToAttribute:!0}),_.P("design:type",Object)],xw.prototype,"isFullscreen",void 0);_.d([_.B0("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xw.prototype,"onIsActiveChanged",null);_.d([_.e({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],xw);
_.k(xw,"ytd-reel-player-overlay-renderer",function(){if(oPp!==void 0)return oPp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return oPp=S},{mode:1});var QDV;var F3=function(){var S=_.W.apply(this,arguments)||this;S.videoDuration=0;S.playedTime=0;S.isActive=!1;S.JSC$19752_playerEvents=new Map;return S};
_.C(F3,_.W);_.J=F3.prototype;_.J.created=function(){this.JSC$19752_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19752_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.J.attached=function(){this.getPlayerAndInitializeListeners()};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19752_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.xn(this,this.onPageChanged))};
_.J.getPlayerAndInitializeListeners=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return c=_.S9(),c?_.F(Q,c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.xn(S,S.onPageChanged)),Q.jumpTo(0));S.player=Q.yieldResult;S.initializePlayerListeners();_.IN(Q)})};
_.J.onPageChanged=function(S){var c=this;return _.O(function(Q){if(Q.nextAddress==1)return S.detail.newPageType!=="ytd-shorts"?Q.return():_.F(Q,_.cK().getPlayerPromise(),2);c.player=Q.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.xn(c,c.onPageChanged));_.IN(Q)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19752_playerEvents)};
_.J.onVideoDataChange=function(S){var c=this;return _.O(function(Q){if(!c.player||S.type!=="newdata")return Q.return();c.videoDuration=_.u("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(S.playertype).seekableEnd:c.player.getDuration(S.playertype);c.playedTime=0;_.IN(Q)})};
_.J.onVideoProgress=function(S){var c=this,Q,f;return _.O(function(U){if(!c.player)return U.return();Q=c.player.getPresentingPlayerType();f=c.player.getPlayerState();c.videoDuration=_.u("web_shorts_use_progress_state_for_gapless")?c.player.getProgressState(Q).seekableEnd:c.player.getDuration(Q);c.playedTime=f===0?c.videoDuration:S;_.IN(U)})};
_.J.getPercentPlayed=function(S,c){return S?_.Zv(c/S,0,1):0};
_.Rh.Object.defineProperties(F3.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 S="";return S=this.videoDuration&&this.playedTime?S+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):S+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],F3.prototype,"componentBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],F3.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],F3.prototype,"player",void 0);_.d([_.Z(),_.P("design:type",Object)],F3.prototype,"videoDuration",void 0);_.d([_.Z(),_.P("design:type",Object)],F3.prototype,"playedTime",void 0);_.d([_.Z(),_.P("design:type",Object)],F3.prototype,"isActive",void 0);
_.d([_.M("videoDuration","playedTime"),_.P("design:type",Number),_.P("design:paramtypes",[])],F3.prototype,"percentPlayed",null);_.d([_.M("videoDuration","playedTime"),_.P("design:type",Object),_.P("design:paramtypes",[])],F3.prototype,"percentPlayedStyle",null);_.d([_.M("videoDuration","isActive"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],F3.prototype,"hideProgressBar",null);
_.k(F3,"ytd-progress-bar-line",function(){if(QDV===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);QDV=S}S=QDV;return S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var foU;_.f4(_.fW2,"ytm-closed-captioning-button",{props:{captionIconType:_.y$,onClick:_.Qn,ariaLabel:_.y$,ariaPressed:_.y$,isOverlay:_.Qn,isModern:_.Qn}});_.f4(_.$V2,"desktop-shorts-volume-controls",{props:{orientation:_.y$}});var BN=function(){var S=_.W.apply(this,arguments)||this;S.playerState=null;S.isMuted=!1;S.shortsModernControlsEnabled=_.u("web_shorts_modern_controls");S.volumeControlsOrientationState=_.u("web_shorts_modern_controls")?"vertical_down":"horizontal_right";S.isOverlay=!0;S.captionIconType=-1;S.ariaLabel="";S.overlayDensity=0;S.JSC$19755_playerEvents=new Map;S.onClosedCaptionsButtonClick=function(){S.player&&_.Zi(S.player)&&(S.player.toggleSubtitles(),S.updateCaptionIconType())};
return S};
_.C(BN,_.W);_.J=BN.prototype;_.J.created=function(){this.JSC$19755_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19755_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange);this.shortsModernControlsEnabled&&this.JSC$19755_playerEvents.set("captionschanged",this.updateCaptionIconType)};
_.J.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.qo(28662);this.playPauseButtonClientVE=_.qo(36842);this.fullscreenButtonToggleOffClientVE=_.qo(222256);this.fullscreenButtonToggleOnClientVE=_.qo(222257);var S=_.wN(),c=_.T$();S&&c&&(_.u("combine_ve_grafts")?(_.Oc(_.Kv(),this.muteButtonClientVE,c),_.Oc(_.Kv(),this.playPauseButtonClientVE,c)):_.v2(S,c,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.J.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19755_playerEvents),this.player=null)};
_.J.updateCaptionIconType=function(){var S=-1,c=void 0,Q=_.K8("CLOSED_CAPTIONS_DISABLED");this.player&&_.Zi(this.player)&&(_.PoE(this.player)?(c=!0,Q=_.K8("CLOSED_CAPTIONS_ON"),S=1):(c=!1,Q=_.K8("CLOSED_CAPTIONS_OFF"),S=0));this.captionIconType=S;this.ariaPressedState=c;this.ariaLabel=Q};
_.J.getPlayerAndInitializeListeners=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return c=_.S9(),c?_.F(Q,c.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.xn(S,S.onPageChanged)),Q.jumpTo(0));S.player=Q.yieldResult;S.initializePlayerListeners();_.IN(Q)})};
_.J.onPageChanged=function(S){var c=this;return _.O(function(Q){if(Q.nextAddress==1)return S.detail.newPageType!=="ytd-shorts"?Q.return():_.F(Q,_.cK().getPlayerPromise(),2);c.player=Q.yieldResult;c.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.xn(c,c.onPageChanged));_.IN(Q)})};
_.J.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19755_playerEvents);this.shortsModernControlsEnabled&&this.updateCaptionIconType()};
_.J.onPlayerStateChange=function(S){this.playerState=S};
_.J.onPlayerVolumeChange=function(S){this.isMuted=S.muted};
_.J.onPlayPauseButtonClick=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,_.cK().getPlayerPromise(),2);c=f.yieldResult;(Q=_.wN())&&S.playPauseButtonClientVE&&_.tz(Q,S.playPauseButtonClientVE);c.getPlayerState()!==1?c.playVideo():c.pauseVideo();_.IN(f)})};
_.J.computePlayPauseIcon=function(S){return S===2||S===-1||S===5?_.u("web_shorts_modern_controls")?"PLAY_ARROW_DELHI_PLAYER_FILLED":"PLAY_ARROW_FILLED":_.u("web_shorts_modern_controls")?"PAUSE_DELHI_PLAYER_FILLED":_.u("enable_web_delhi_icons")?"PAUSE_FILLED":"miniplayer:shorts-pause"};
_.J.computeFullscreenLabel=function(S){return S?_.K8("FULLSCREEN_EXIT_LABEL"):_.K8("FULLSCREEN_ENTER_LABEL")};
_.J.computePlayPauseLabel=function(S){return S===1||S===3?_.K8("PLAYER_LABEL_PAUSE"):_.K8("PLAYER_LABEL_PLAY")};
_.J.onMuteButtonClick=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,_.cK().getPlayerPromise(),2);c=f.yieldResult;(Q=_.wN())&&S.muteButtonClientVE&&_.tz(Q,S.muteButtonClientVE);c.isMuted()?c.unMute(!0):c.mute(!0);_.IN(f)})};
_.J.computeMuteIcon=function(S){return S?"miniplayer:volume-off":"miniplayer:volume-up"};
_.J.computeMuteLabel=function(S){return S?_.K8("PLAYER_LABEL_UNMUTE"):_.K8("PLAYER_LABEL_MUTE")};
_.J.onFullscreenButtonClick=function(){var S=_.wN();S&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.tz(S,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.tz(S,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.F5U()};
_.Rh.Object.defineProperties(BN.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var S=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(){S.onPlayPauseButtonClick()},
disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"var(--yt-spec-static-overlay-additive-background)"}:{}}}},
fullscreenButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeFullscreenLabel(this.isFullscreen),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeFullscreenLabel(this.isFullscreen),disableBackdropFilter:this.shortsModernControlsEnabled,customColors:this.shortsModernControlsEnabled?{backgroundColor:"transparent"}:{}}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?_.u("web_shorts_modern_controls")?"player_full_exit_alt":_.u("enable_web_delhi_icons")?"player_full_exit":"screen_full_exit":_.u("web_shorts_modern_controls")?"player_full_enter_alt":_.u("enable_web_delhi_icons")?"SCREEN_FULLSCREEN":"screen_full"}}});
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],BN.prototype,"componentBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],BN.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],BN.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"player",void 0);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"playerState",void 0);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"isMuted",void 0);
_.d([_.Z({computed:"computePlayPauseIcon(playerState)"}),_.P("design:type",String)],BN.prototype,"playPauseIcon",void 0);_.d([_.Z({computed:"computeMuteIcon(isMuted)"}),_.P("design:type",String)],BN.prototype,"muteIcon",void 0);_.d([_.Z({selector:_.KD}),_.P("design:type",Boolean)],BN.prototype,"isFullscreen",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BN.prototype,"shortsModernControlsEnabled",void 0);
_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"volumeControlsOrientationState",void 0);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"isOverlay",void 0);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"captionIconType",void 0);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"ariaLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"ariaPressedState",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],BN.prototype,"overlayDensity",void 0);
_.d([_.M("playerState"),_.P("design:type",Object),_.P("design:paramtypes",[])],BN.prototype,"playPauseButtonData",null);_.d([_.M("isFullscreen"),_.P("design:type",Object),_.P("design:paramtypes",[])],BN.prototype,"fullscreenButtonData",null);_.d([_.Z(),_.P("design:type",Object)],BN.prototype,"onClosedCaptionsButtonClick",void 0);_.d([_.M("isFullscreen"),_.P("design:type",String),_.P("design:paramtypes",[])],BN.prototype,"fullscreenIcon",null);
_.k(BN,"ytd-shorts-player-controls",function(){if(foU===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);foU=S}S=foU;return S},{mode:1});var UWE;_.f4(_.Yf$,"yt-interstitial-view-model",{props:{data:_.y$}});var JYO=_.y_(function(S){var c=S.data;return _.B("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.B("h1",{class:"reelWatchBreakViewModelHostTitle"},_.B(_.mw,{text:function(){return c().title}})),_.B("h2",{class:"reelWatchBreakViewModelHostBody"},_.B(_.mw,{text:function(){return c().body},
isOverlay:!0})),_.B(_.h8,{data:function(){return c().buttons}},{buttonViewModel:function(Q,f){return _.B("div",{class:function(){return f()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.B(_.Ze,{data:Q.data}))}}))},"Qi");
JYO.idomCompat=!0;_.f4(JYO,"reel-watch-break-view-model",{props:{data:_.y$}});var I$=function(){return _.W.apply(this,arguments)||this};
_.C(I$,_.W);I$.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}}};
_.Rh.Object.defineProperties(I$.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.Y((S=this.data)==null?void 0:S.renderer,vPp)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var S;return!!_.Y((S=this.data)==null?void 0:S.renderer,P0T)}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],I$.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],I$.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],I$.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],I$.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.renderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I$.prototype,"isSurvey",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.renderer"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],I$.prototype,"isInterstitialViewModel",null);_.d([_.e({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],I$);
_.k(I$,"ytd-reel-non-video-content-renderer",function(){if(UWE!==void 0)return UWE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return UWE=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var aoN;_.f4(_.KEE,"desktop-shorts-player-controls",{});var nV=function(){var S=_.W.apply(this,arguments)||this;S.isPlayerPaused=!1;S.isPlayerStarted=!1;S.showPlayerControls=!1;S.showScrubber=!1;S.autoHideJobId=0;S.modern=_.u("web_button_rework");S.overlayType=_.Al("web_shorts_expanded_overlay_type");S.panelData=void 0;S.isWatchWhileMode=!1;S.hasError=!1;S.panelShowDelayMs=1;S.scrubberComponent={};S.isFullscreen=!1;S.shouldHideOverlay=!1;S.enableAnchoredPanel=_.u("desktop_shorts_v2_anchored_panel");S.enablePersistentAnchoredPanel=_.u("desktop_shorts_v2_persistent_anchored_panel");
S.hideWatchWhilePanel=_.u("web_shorts_hide_watch_while_panel");S.useAspectRatio=_.u("web_use_aspect_ratio");S.isPersistentPanelActive=!1;S.anchoredPanelActive=!1;S.isShortsPipActive=!1;S.smallScreenSqueezeback=!1;S.enableFlexibleOverlay=_.u("web_enable_flexible_overlay");S.overlayDensity=0;S.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};S.onWindowResized=function(){_.e$(S,
"calculateOverlayDensity",function(){S.calculateOverlayDensity()},100)};
return S};
_.C(nV,_.W);_.J=nV.prototype;_.J.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.J.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.J.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var S=_.fl().resolve(_.YF);this.isWatchWhileMode&&(_.u("web_enable_shorts_new_carousel")?_.Mq.addJob(function(){S.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):S.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.J.handleShowReelsCommentsOverlayCommand=function(S){S=_.Y(S,tAg);this.isActive&&(S==null?0:S.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))};
_.J.updateEngagementPanelVisibility=function(S,c){S&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:c?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:S}})};
_.J.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.J.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.fl().resolve(_.us).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.J.handleWatchWhilePanelScrimClick=function(){var S=_.fl().resolve(_.YF);this.activeWatchWhilePanel&&(S.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.J.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.J.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.u("web_enable_shorts_new_carousel")?0:void 0}}};
_.J.handlePlayerClick=function(S){var c=this,Q,f;if((f=(Q=window).matchMedia)!=null&&f.call(Q,"(any-pointer: coarse)").matches||!S)this.showPlayerControls=!0,_.Mq.cancelJob(this.autoHideJobId),this.autoHideJobId=_.HG(_.Mq,function(){c.showPlayerControls=!1},4E3)};
_.J.isFirstReel=function(){return this.index===0};
_.J.handleMouseenter=function(){_.Mq.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.J.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.J.handleScrubberEnter=function(){this.showScrubber=!0};
_.J.handleScrubberLeave=function(){this.showScrubber=!1};
_.J.maybeLogNonDefaultAspectRatio=function(){var S;(S=this.data)!=null&&S.thumbnail&&this.isActive&&.5625!==jfZ(this.data.thumbnail)&&_.Lso("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.J.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var S=document.querySelector("#shorts-container");if(S){S=S.offsetWidth/2-this.playerContainer.offsetWidth/2;S=S>=368?1:S>=72?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&S===1&&(S=0);this.isPersistentPanelActive&&(S=0);window.innerWidth<=599&&(S=2);this.overlayDensity=S;var c;(c=this.onOverlayDensityChanged)==null||c.call(this,this.index,this.overlayDensity)}}};
_.J.onOverlayDensityChange=function(){var S;(S=this.onOverlayDensityChanged)==null||S.call(this,this.index,this.overlayDensity);(S=_.Ur(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&S.set("overlayDensity",this.overlayDensity);if(S=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))S.overlayDensity=this.overlayDensity};
_.J.isVideoContent=function(S){_.fl().resolve(_.us);return!!_.Y(S,_.ll)};
_.J.isNonVideoContent=function(S){_.fl().resolve(_.us);return!!_.Y(S,_.iA)};
_.J.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.Rh.Object.defineProperties(nV.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var S,c;return _.u("web_enable_format_first")||((S=this.data)==null?void 0:S.adsOverlay)&&_.u("web_enable_format_first_ads_only")||((c=this.data)==null?void 0:c.reelPlayerOverlayRenderer)&&_.u("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 S;return!this.isActive||!this.isPlayerStarted||(S=this.data)!=null&&S.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var S;if(((S=this.data)==null?0:S.command)&&this.isVideoContent(this.data.command)){var c,Q;if(((c=this.data)==null?0:c.adsOverlay)&&Object.keys((Q=this.data)==null?void 0:Q.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var f,U;if(((f=this.data)==null?0:f.reelPlayerOverlayRenderer)&&Object.keys((U=this.data)==null?void 0:U.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
nV.prototype.onOverlayDensityChange=nV.prototype.onOverlayDensityChange;nV.prototype.calculateOverlayDensity=nV.prototype.calculateOverlayDensity;nV.prototype.maybeLogNonDefaultAspectRatio=nV.prototype.maybeLogNonDefaultAspectRatio;nV.prototype.onEngagementPanelsChanged=nV.prototype.onEngagementPanelsChanged;nV.prototype.onScrubberDataChange=nV.prototype.onScrubberDataChange;nV.prototype.updateShouldHideOverlay=nV.prototype.updateShouldHideOverlay;
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],nV.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],nV.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],nV.prototype,"index",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],nV.prototype,"isActive",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],nV.prototype,"isHiddenInDom",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"isPlayerPaused",void 0);_.d([_.Z({selector:YkV}),_.P("design:type",Object)],nV.prototype,"isPlayerStarted",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"showPlayerControls",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"showScrubber",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"autoHideJobId",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"overlayType",void 0);_.d([_.p(_.st),_.P("design:type",Object)],nV.prototype,"ytdReduxBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],nV.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"watchWhileEngagementPanels",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"panelData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"isWatchWhileMode",void 0);_.d([_.Z(),_.P("design:type",String)],nV.prototype,"activeWatchWhilePanel",void 0);
_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"hasError",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"panelShowDelayMs",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"scrubberComponent",void 0);_.d([_.Z({selector:_.KD,reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"isFullscreen",void 0);_.d([_.Z(),_.P("design:type",Object)],nV.prototype,"shouldHideOverlay",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"enableAnchoredPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"enablePersistentAnchoredPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"hideWatchWhilePanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"useAspectRatio",void 0);
_.d([_.Z({selector:_.G2Z,reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"isPersistentPanelActive",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"anchoredPanelActive",void 0);_.d([_.Z({selector:_.$u,reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"isShortsPipActive",void 0);_.d([_.Z({selector:l9G,reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"smallScreenSqueezeback",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"enableFormatFirst",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"enableFlexibleOverlay",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nV.prototype,"overlayDensity",void 0);_.d([_.Z(),_.P("design:type",Function)],nV.prototype,"onOverlayDensityChanged",void 0);
_.d([_.Z(),_.M("isActive","hasError"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"shouldRenderPlayerElements",null);_.d([_.Z(),_.M("isActive","isWatchWhileMode"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"watchWhileOrPersistentActive",null);_.d([_.B0("isActive","hasError","showingExpandedOverlay"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nV.prototype,"updateShouldHideOverlay",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("isActive","isPlayerStarted","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"shouldRenderScrubber",null);_.d([_.B0("shouldRenderScrubber"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nV.prototype,"onScrubberDataChange",null);_.d([_.M("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.P("design:type",Object),_.P("design:paramtypes",[])],nV.prototype,"overlayComponent",null);
_.d([_.B0("watchWhileEngagementPanels"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nV.prototype,"onEngagementPanelsChanged",null);_.d([_.nU("#player-container"),_.P("design:type",HTMLElement)],nV.prototype,"playerContainer",void 0);_.d([_.nU("#cinematic-container"),_.P("design:type",HTMLElement)],nV.prototype,"cinematicContainer",void 0);
_.d([_.B0("isPersistentPanelActive","data.thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nV.prototype,"maybeLogNonDefaultAspectRatio",null);_.d([_.B0("isPersistentPanelActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nV.prototype,"calculateOverlayDensity",null);_.d([_.B0("overlayDensity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nV.prototype,"onOverlayDensityChange",null);
_.d([_.e({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],nV);
_.k(nV,"ytd-reel-video-renderer",function(){if(aoN!==void 0)return aoN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return aoN=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var by=function(){var S=_.W.apply(this,arguments)||this;S.isPreviousPageShorts=!1;S.index=0;S.delayedActiveIndex=0;S.playablePreviousIndex=null;S.isPlayerPaused=!1;S.isPlayerStarted=!1;S.intersectionObserverThreshold=.6;S.fitToVisibleBounds=!1;S.pageSubtype="shorts";S.enablePreviousContinuation=_.u("shorts_in_playlists_web");S.shortsPipEnabled=_.u("web_shorts_pip");S.isDark=document.documentElement.hasAttribute("dark");S.shortsViewTransitions=_.u("web_shorts_view_transitions");S.isFullscreen=!1;S.isShortsPipActive=
!1;S.buttonOverride={iconPosition:"icon-only",size:"XL"};S.anchoredPanelActive=!1;S.isActive=!1;S.smallScreenPersistentPanel=!1;S.isPersistentPanelActive=!1;S.smallScreenSqueezeBack=!1;S.enableScrollIntoViewCenter=_.u("web_scroll_into_view_center");S.formatFirst=_.u("web_enable_format_first")||_.u("web_enable_format_first_ads_only")||_.u("web_enable_format_first_organic_only");S.enableFlexibleOverlay=_.u("web_enable_flexible_overlay");S.useAspectRatio=_.u("web_use_aspect_ratio");S.isShortsInitialized=
!1;S.hidePreviousButtonImmediately=!1;S.showPreviousButtonImmediately=!1;S.endOfNextContinuation=!1;S.currentPlayerIndex=0;S.nextReelVe=_.qo(56921);S.prevReelVe=_.qo(56922);S.loopToggleOffVe=_.qo(198013);S.loopToggleOnVe=_.qo(198014);S.ambientModeToggleVe=_.qo(227860);S.reelPlayerPausedStateRendererVe=_.qo(141313);S.storedPlaybackSpeed=null;S.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"};S.onOverlayDensityChanged=function(c,Q){var f;(f=S.getActiveReelVideo(c))==null||f.setAttribute("overlay-density",String(Q))};
return S};
_.C(by,_.W);_.J=by.prototype;
_.J.deflateInactivePreviousSlides=function(){var S=_.a6("web_shorts_deflate_inactive_slides_aggressive_distance");if(S>0&&this.shortsProcessedSequence&&this.activeIndex){S=this.activeIndex-S;for(var c=0;c<=S;c++){var Q=void 0;((Q=this.shortsProcessedSequence[c].reelPlayerOverlayRenderer)==null?0:Q.metapanel)&&this.set("shortsProcessedSequence."+c+".reelPlayerOverlayRenderer",{});Q=void 0;((Q=this.shortsProcessedSequence[c].adsOverlay)==null?0:Q.adSlotMetadata)&&this.set("shortsProcessedSequence."+c+
".adsOverlay",{})}}};
_.J.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.J.onResize=function(){var S=_.V5(),c=S.dispatch,Q=this.calculateIsSmallWidth();c.call(S,_.aB({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:Q}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.J.configureRendererStamper=function(){return{"data.overlay.reelPlayerOverlayRenderer.backNavigationButton":{id:"back-nav-button",mapping:{buttonRenderer:"ytd-button-renderer"},renderPriority:0},"data.watchStatus":{id:"offline-container",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer"},renderPriority:_.u("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0}}},renderPriority:0}}};
_.J.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var S=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,c=S,Q=0;S<250&&(c=S+this.shortsInnerContainer.clientWidth,Q=24);_.Or(this.hostElement,{"--ytd-shorts-header-width":c+"px","--ytd-shorts-top-spacing":Q+"px"})}};
_.J.isFirstShorts=function(S){return S?this.index===-S.length:this.index===0};
_.J.isActiveReel=function(S,c,Q){Q&&(c=this.calculatePrevIndex(c,Q));return S===c};
_.J.onFullscreenChange=function(){if(_.u("web_fullscreen_shorts")){var S;(S=this.getActiveReelVideo(this.activeIndex))==null||S.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.fl().resolve(_.ra).close(!0)}};
_.J.engagementPanelsChanged=function(){var S;this.watchWhileEngagementPanels=(S=this.data)==null?void 0:S.engagementPanels};
_.J.unregisterPanels=function(){var S=_.fl().resolve(_.YF);if(this.watchWhileEngagementPanels)for(var c=_.A(this.watchWhileEngagementPanels),Q=c.next();!Q.done;Q=c.next()){var f=void 0,U=void 0;Q=(f=Q.value.engagementPanelSectionListRenderer)==null?void 0:(U=f.identifier)==null?void 0:U.tag;S&&Q&&S.panelMap.delete(Q)}};
_.J.isVideoContent=function(S){return this.isVideoContentCommand(S==null?void 0:S.command)};
_.J.getActiveReelVideo=function(S){return _.Ur(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+S+'"]')};
_.J.calculatePrevIndex=function(S,c){return c?S-((c==null?void 0:c.length)||0):-1};
_.J.onKeydown=function(S){var c=_.t4(S)||[];if(!_.zIG(c))if(S.code==="ArrowUp")S.preventDefault(),this.handlePrevButtonClick();else if(S.code==="ArrowDown")S.preventDefault(),this.handleNextButtonClick();else if(S.code==="KeyM")this.toggleMuteUnmuteVideo();else if(S.code==="KeyK"||S.code==="Space")this.togglePlayPauseVideo();else if((S.code==="KeyA"||S.code==="ArrowLeft")&&_.u("web_shorts_keyboard_enable_seek_shortcuts")){var Q;(Q=this.player)==null||Q.seekBy(-5)}else if((S.code==="KeyD"||S.code===
"ArrowRight")&&_.u("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var f;(f=this.player)==null||f.seekBy(5)}};
_.J.onServiceRequestCompleted=function(S,c){S=c.data;S.continuationEndpoint&&S.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:S.entries,continuationEndpoint:S.continuationEndpoint}}):S.prevContinuationEndpoint&&S.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:S.prevEntries,prevContinuationEndpoint:S.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.J.handleEngagementPanelVisibilityChanged=function(S,c){var Q=_.fl().resolve(_.YF);if(S&&Q){var f,U=((f=S.identifier)==null?void 0:f.tag)||S.panelIdentifier||S.targetId;if(c==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==U){Q.hidePanel(this.activePanel);var a;this.activePanel=((a=S.identifier)==null?void 0:a.tag)||S.panelIdentifier}else this.isPersistentPanelActive=!0,_.V5().dispatch(GxT(!0)),this.anchoredPanelActive=!0,this.activePanel=U;else c==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===U&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.V5().dispatch(GxT(!1)))}};
_.J.handlePanelScrimClick=function(){var S=_.fl().resolve(_.YF);this.activePanel&&(S.hidePanel(this.activePanel),_.V5().dispatch(GxT(!1)))};
_.J.getShortsLoopSetting=function(){var S,c,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:return _.u("kevlar_shorts_auto_advance")?_.F(a,_.HL.getInstance(),2):a.return(!0);case 2:return(S=a.yieldResult)?_.F(a,S.get("sfvles"),3):a.return(!0);case 3:return Q=(c=a.yieldResult)!=null?c:!1,_.F(a,S.get("sfvle"),4);case 4:return U=(f=a.yieldResult)!=null?f:!0,Q?a.return(U):a.return(!0)}})};
_.J.handleSignalActionToggleLoopShortsOff=function(){var S=this,c,Q,f;return _.O(function(U){switch(U.nextAddress){case 1:if(!S.player)return U.return();S.player.setLoopVideo(!1);c=_.Kv();_.xA(c,S.loopToggleOffVe);return _.F(U,_.HL.getInstance(),2);case 2:return(Q=U.yieldResult)?_.F(U,Q.set("sfvle",!1),3):U.return();case 3:return _.F(U,Q.set("sfvles",!0),4);case 4:f=_.jL(),_.l2(0,203,!1),_.l2(0,204,!0),f.save(),_.IN(U)}})};
_.J.handleSignalActionToggleLoopShortsOn=function(){var S=this,c,Q,f;return _.O(function(U){switch(U.nextAddress){case 1:if(!S.player)return U.return();S.player.setLoopVideo(!0);c=_.Kv();_.xA(c,S.loopToggleOnVe);return _.F(U,_.HL.getInstance(),2);case 2:return(Q=U.yieldResult)?_.F(U,Q.set("sfvle",!0),3):U.return();case 3:return _.F(U,Q.set("sfvles",!0),4);case 4:f=_.jL(),_.l2(0,203,!0),_.l2(0,204,!0),f.save(),_.IN(U)}})};
_.J.handleSignalActionToggleCinematicShortsOn=function(){usV(!0);var S;(S=this.JSC$19779_cinematicController)==null||_.bY1(S,!0);_.xA(_.Kv(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.J.handleSignalActionToggleCinematicShortsOff=function(){usV(!1);var S;(S=this.JSC$19779_cinematicController)==null||_.bY1(S,!1);_.xA(_.Kv(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.J.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.J.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.J.unhideCurrentOverlay=function(){if(this.overlayContainer){var S=this.overlayContainer.querySelector("#experiment-overlay");S&&_.Mq.addLowPriorityJob(function(){S.style.display="unset"},100)}};
_.J.getCurrentShort=function(){if(this.currentEndpoint){var S=this.currentEndpoint;if(this.isNonVideoContentCommand(S)){var c=_.Y(S,_.iA);return{reelNonVideoContentRenderer:_.Y(c==null?void 0:c.renderer,_.SWh),command:S}}if(this.data){var Q;c=(Q=_.Y(this.currentEndpoint,_.ll))==null?void 0:Q.thumbnail;var f;Q=(f=this.data.overlay)==null?void 0:f.reelPlayerOverlayRenderer;_.fl().resolve(_.us);S=this.data;var U,a;f=(U=S.overlay)==null?void 0:(a=U.shortsAdsRenderer)==null?void 0:a.adSlots;if(f!==void 0)f.length===
0?(_.QV("Shorts ads returned no ad slots."),S=void 0):(f.length>1&&_.QV("Shorts ads has more than one ad slots."),S=_.Y(f[0],_.MPd));else{var X,z;S=_.Y((X=S.overlay)==null?void 0:(z=X.shortsAdsRenderer)==null?void 0:z.overlay,_.MPd)}X=S;S=Object.assign({},this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.Y(this.currentEndpoint,_.ll),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:Q,thumbnail:c,command:S,adsOverlay:X}}}};
_.J.created=function(){var S=this;this.scrollToVideoThrottle=new _.S0(function(c){var Q;(Q=S.getActiveReelVideo(c))==null||Q.scrollIntoView({behavior:"smooth",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.S0(function(c){var Q;(Q=S.getActiveReelVideo(c))==null||Q.scrollIntoView({behavior:"auto",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.J.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.J.attached=function(){var S=this;iY8(this);this.pageScrollElement=_.Ur(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.xn(this,this.processResetAction));_.u("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.u("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var c=S.getActiveReelVideo(S.activeIndex);
S.maybeCreateIntersectionObserver();c==null||c.scrollIntoView({behavior:"instant",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"});S.shortsContainer.style.overflowY="scroll"}))};
_.J.calculateSqueezebackPanelSize=function(){var S=this,c=window.innerWidth-456-(window.innerHeight-106)*.5625;_.Mq.addLowPriorityJob(function(){c<360?_.V5().dispatch(WTE(!0)):(S.hostElement.style.setProperty("--anchored-panel-width",Math.min(c,480)+"px"),_.V5().dispatch(WTE(!1)))})};
_.J.detached=function(){var S=_.fl().resolve(_.us);S.rootElement=void 0;var c;(c=S.unsubscribeFromStore)==null||c.call(S);S.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.xn(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.J.onResizeFinished=function(S,c){var Q=this,f=new ResizeObserver(function(){Q.shortsContainer.style.overflowY="hidden";_.Mq.addLowPriorityJob(function(){c()},100)});
f.observe(S);return f};
_.J.resetDocumentScrollTop=function(){var S,c;if((S=document)==null?0:(c=S.scrollingElement)==null?0:c.scrollTop)document.scrollingElement.scrollTop=0};
_.J.loadPage_=function(S){var c=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),S){var Q;if((Q=_.Y(this.currentEndpoint,_.ll))==null?0:Q.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=S;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){c.isPlayerStarted&&
(c.handleOnPlaybackCommand(),c.afterPlayerStarted=function(){})};
this.registerPanel(S)}};
_.J.afterPlayerStarted=function(){};
_.J.handleOnPlaybackCommand=function(){if(_.u("web_shorts_comment_stickers")&&this.isPlayerStarted){var S,c=(S=_.Y(this.currentEndpoint,_.ll))==null?void 0:S.onPlaybackCommand;c&&this.ytComponentBehavior.resolveCommand(c)}};
_.J.maybeCreateIntersectionObserver=function(){var S=this,c=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==c){this.intersectionObserverThreshold=c;var Q={rootMargin:"0px",threshold:c},f;(f=this.intersectionObserver)==null||f.disconnect();this.intersectionObserver=new IntersectionObserver(function(U){U=_.A(U);for(var a=U.next();!a.done;a=U.next())if(a=a.value,a.intersectionRatio>c){a=Number(a.target.id);if(isNaN(a))break;if(a===S.index)break;
_.fPR();S.loadVideo(a);_.GZ("r_vtc")}},Q);
this.observeShorts()}};
_.J.observeShorts=function(){var S=[].concat(_.Hs(_.Ur(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;var Q=void 0;(Q=this.intersectionObserver)==null||Q.observe(c)}};
_.J.initCsi=function(){_.HU("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var S={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"}},c,Q;if((c=this.playerData)==null?0:(Q=c.cacheMetadata)==null?0:Q.isCacheHit)S.isCacheHit=!0;var f;if(c=(f=_.Y(this.currentEndpoint,_.ll))==null?void 0:
f.prefetchTaskId)S.prefetchInfo={taskId:c};_.sz(S)};
_.J.isAd=function(){var S,c;return!!((S=_.Y(this.currentEndpoint,_.ll))==null?0:(c=S.adClientParams)==null?0:c.isAd)};
_.J.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.J.getPlayerContainer=function(){var S;return(S=_.Ur(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:S.playerContainer};
_.J.onPlayerStateChange=function(S){var c=this;this.isPlayerPaused=S===2;S!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?S===1&&this.index===0&&(this.isPlayerStarted||_.V5().dispatch(a$(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.V5().dispatch(a$(!0)));this.player&&!this.player.getLoopVideo()&&_.Mq.addLowPriorityJob(function(){c.getShortsLoopSetting().then(function(Q){var f;(f=c.player)==null||f.setLoopVideo(Q)})});
this.isPlayerPaused&&_.u("web_shorts_paused_state_logging")&&_.L8(_.wN(),[this.reelPlayerPausedStateRendererVe])};
_.J.isInBackground=function(){var S=window.document.visibilityState;return!(!S||S==="visible")};
_.J.isShortPlayable=function(){if(_.u("kevlar_playable_short_killswitch"))return!0;var S;return(S=this.playerData)!=null&&S.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.J.setNormalPlaybackSpeed=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.getPlayer().getPlayerPromise(),2);c=f.yieldResult;Q=c.getPlaybackRate();Q!==1&&(S.storedPlaybackSpeed=Q,c.setPlaybackRate(1));_.IN(f)})};
_.J.restorePlaybackSpeed=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1)return S.storedPlaybackSpeed===null?Q.jumpTo(0):_.F(Q,S.getPlayer().getPlayerPromise(),3);c=Q.yieldResult;c.setPlaybackRate(S.storedPlaybackSpeed);S.storedPlaybackSpeed=null;_.IN(Q)})};
_.J.playerDataChanged=function(){var S=this,c,Q,f,U,a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1){c=S.getPlayer();_.u("web_shorts_dynamic_intersection_observer_threshold")&&((Q=S.intersectionObserver)==null||Q.disconnect());if(S.playerData){if(((f=S.playerData.videoDetails)==null?void 0:f.videoId)!==((U=c.getPlayer())==null?void 0:U.getVideoData().video_id)){a={};if(X=_.Y(S.currentEndpoint,_.ll))a.watch_endpoint=X,X.endTimeSeconds&&(a.end=X.endTimeSeconds);c.loadVideoWithPlayerResponse(S.playerData,
a)}}else return n.return();return S.player?n.jumpTo(2):_.F(n,c.getPlayerPromise(),3)}n.nextAddress!=2&&(S.player=n.yieldResult,S.JSC$19779_playerStateChangeListener=S.onPlayerStateChange.bind(S),S.player.addEventListener("onStateChange",S.JSC$19779_playerStateChangeListener),_.u("kevlar_client_enable_shorts_player_bootstrap")&&_.RC(),S.scrollToVideoThrottle.fire(S.index),S.movePlayerToVideo(S.index),_.Mq.addLowPriorityJob(function(){S.getShortsLoopSetting().then(function(b){var N;(N=S.player)==null||
N.setLoopVideo(b)})}),_.eul.resolve(S.player),S.player.syncVolume(),S.getPlayer().focusOnPlayer());
_.Mq.addLowPriorityJob(function(){S.observeShorts()},100);
z=S.player.getPlayerState(S.player.getPresentingPlayerType());z!==1||S.isPlayerStarted||_.V5().dispatch(a$(!0));S.updateBackNavContainerWidth();x=_.Y(S.currentEndpoint,_.ll);((I=x)==null?0:I.startTimeSeconds)&&S.player.seekTo(x.startTimeSeconds);if(S.JSC$19779_cinematicController||S.cinematicsInitializeJobId)return n.return();S.cinematicsInitializeJobId=_.Mq.addLowPriorityJob(function(){S.initCinematicController();S.cinematicsInitializeJobId=void 0});
_.IN(n)})};
_.J.onShortUndoDismiss=function(){var S=this,c=ZYg().pop();c!==void 0&&(_.tO(this,function(){S.showCardWithIndex(c)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.J.onShortsDismiss=function(S){if(S=S.detail.reelDismissalActionRenderer)(S=_.Y(S.onDismissalCompletionRenderer,_.E2N))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:S}}}),this.scrollAndDismissCard()};
_.J.processReelNonVideoContentDismissalCommand=function(S){var c=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);S=_.Y(S,EPg);this.activeDimissalTimeout=setTimeout(function(){c.scrollAndDismissCard()},Number(S==null?void 0:S.delayMs))};
_.J.scrollAndDismissCard=function(){var S=this,c=this.index;ZYg().push(c);_.tO(this,function(){var Q=S.getPlayableNextIndex();Q!==null&&(Q=S.getActiveReelVideo(Q),S.hideCardWithIndex(c),Q==null||Q.scrollIntoView({behavior:"smooth",block:"nearest",inline:S.enableScrollIntoViewCenter?"center":"start"}))})};
_.J.hideCardWithIndex=function(S){if(S=this.getActiveReelVideo(S))S.hidden=!0};
_.J.showCardWithIndex=function(S){if(S=this.getActiveReelVideo(S))S.hidden=!1};
_.J.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.J.activeChanged=function(S){_.V5().dispatch(_.aB({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:S}}));if(S)document.addEventListener("keydown",_.xn(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var c;(c=this.player)==null||c.sendAbandonmentPing()}var Q;(Q=this.player)==null||Q.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.xn(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.J.graftClientVisualElements=function(){if(this.data){var S=_.Kv();_.gJT(S,_.B2({response:this.reelWatchSequenceResponse}));_.Oc(S,this.nextReelVe);_.Oc(S,this.prevReelVe);_.u("kevlar_shorts_auto_advance")&&(_.Oc(S,this.loopToggleOffVe),_.Oc(S,this.loopToggleOnVe));_.Oc(S,this.ambientModeToggleVe);_.L8(_.wN(),[this.nextReelVe,this.prevReelVe]);_.u("web_shorts_paused_state_logging")&&_.Oc(S,this.reelPlayerPausedStateRendererVe)}};
_.J.graftNvcRenderer=function(){var S,c,Q,f,U=this.index<0?(S=this.shortsProcessedPrevSequence)==null?void 0:(c=S[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:c.command:(Q=this.shortsProcessedSequence)==null?void 0:(f=Q[this.index])==null?void 0:f.command;if(U&&this.isNonVideoContentCommand(U)){S=_.Y(U,_.iA);var a,X;(S=(a=_.Y(S==null?void 0:S.renderer,_.SWh))==null?void 0:(X=a.loggingDirectives)==null?void 0:X.trackingParams)&&_.Kv().graftServerVe(S)}};
_.J.setActiveIndex=function(){_.fl().resolve(_.us).setActiveIndex(this.index)};
_.J.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.J.lazyUpdateMiniplayerData=function(){var S=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.Mq.addLowPriorityJob(function(){S.updateMiniplayerData();S.updateMiniplayerDataJobId=void 0}))};
_.J.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.Mq.cancelJob(this.updateMiniplayerDataJobId)};
_.J.updateMiniplayerData=function(){var S,c,Q,f=_.fl().resolve(_.ra),U={shortsData:this.getCurrentShort(),previousButtonDisabled:!((S=this.prevButtonData)==null||!S.isDisabled),nextButtonDisabled:!((c=this.nextButtonData)==null||!c.isDisabled),playabilityStatus:(Q=this.playerData)==null?void 0:Q.playabilityStatus};_.Cp(f,U)};
_.J.resetPlayerLocation=function(){var S=this.getPlayer();this.initialPlayerContainer&&S.appendTo(this.initialPlayerContainer,void 0,!0);this.shortsInnerContainer&&this.overlayContainer&&(this.shortsInnerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0)};
_.J.movePlayerToVideo=function(S,c){var Q=this;c=c===void 0?!0:c;var f=this.getActiveReelVideo(S),U=this.getPlayer();if(f){this.overlayContainer?f.appendChild(this.overlayContainer):(this.overlayContainer=_.Ur(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,f.appendChild(this.overlayContainer),this.isShortsMiniplayerActive()||U.appendTo(this.overlayContainer.playerContainer,void 0,!0));var a;(a=this.player)==null||a.setSize(NaN,NaN);this.isActive||_.HG(_.Mq,function(){Q.isActive=
!0});
U.style.visibility="visible";_.u("reels_web_disable_rtr_tick")||_.u("reels_web_use_pbs_first_shorts")&&S===0||_.i2("r_tr");this.currentPlayerIndex=S;f.appendChild(this.errorScreenContainer);var X;(X=this.JSC$19779_cinematicController)==null||_.KTG(X)}else c?_.Mq.addLowPriorityJob(function(){Q.movePlayerToVideo(Q.index,!1)}):Math.random()<=_.a6("web_shorts_error_logging_threshold")&&_.MP(new _.Yr("Trying to movePlayerToVideo with undefined container.",{firstAttempt:c,
index:S}))};
_.J.enableFormatFirst=function(S){return _.u("web_enable_format_first")||S.adsOverlay&&_.u("web_enable_format_first_ads_only")||S.reelPlayerOverlayRenderer&&_.u("web_enable_format_first_organic_only")};
_.J.getAspectRatio=function(S){if(S!=null&&S.thumbnail&&this.enableFormatFirst(S))return"--ytd-shorts-player-ratio: "+jfZ(S.thumbnail)};
_.J.getBackgroundImage=function(S){if(S!=null&&S.thumbnail)return(S=_.Ja(S.thumbnail.thumbnails))?'background-image:url("'+S+'");':"background-color:black;"};
_.J.onPersistentPanelActiveChanged=function(){var S=this.getCurrentShort();if(S&&this.enableFormatFirst(S)&&(S==null?0:S.thumbnail)&&jfZ(S.thumbnail)!==.5625){var c;(c=this.player)==null||c.setSize(NaN,NaN)}};
_.J.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.J.moveCinematicsToVideo=function(){var S=_.Ur(this.hostElement).querySelector("ytd-reel-video-renderer");(S==null?0:S.cinematicContainer)&&S.cinematicContainer!==this.shortsCinematicContainer.parentElement&&S.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.J.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.J.updatePrevButtonData=function(){var S=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(S){var c;this.prevButtonData=S=Object.assign({},S,{accessibility:{label:_.K8("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:S.isDisabled||this.index===-(((c=this.shortsProcessedPrevSequence)==null?void 0:c.length)||0),tooltip:this.isUpArrowHidden?"":_.K8("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=S=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.J.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.J.updateNextButtonData=function(){var S=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(S){var c;this.nextButtonData=S=Object.assign({},S,{accessibility:{label:_.K8("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:S.isDisabled||this.index===((c=this.shortsProcessedSequence)==null?void 0:c.length),tooltip:_.K8("NEXT_VIDEO_LABEL")||""})}};
_.J.getPlayablePreviousIndex=function(){for(var S,c=this.index-1;c>=-(((S=this.prevShortsSequence)==null?void 0:S.length)||0);c--)if(!ZYg().includes(c))return c;return null};
_.J.getIndexInSequence=function(S,c){return S.findIndex(function(Q){var f;return((f=_.Y(Q.command,_.ll))==null?void 0:f.videoId)===c})};
_.J.handlePrevButtonClick=function(S){var c=this,Q,f;return _.O(function(U){Q=c.getPlayablePreviousIndex();if(Q===null)return U.return();c.gestureType=((f=S)==null?void 0:f.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";Q===0&&(c.hidePreviousButtonImmediately=!0);if(c.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){c.transitionToVideoThrottle.fire(Q)}),U.return();
c.scrollToVideoThrottle.fire(Q);_.IN(U)})};
_.J.getPlayableNextIndex=function(){for(var S,c=this.index+1;c<(((S=this.shortsProcessedSequence)==null?void 0:S.length)||0);c++)if(!ZYg().includes(c))return c;return null};
_.J.handleNextButtonClick=function(S,c){var Q=this,f,U;return _.O(function(a){f=Q.getPlayableNextIndex();if(f===null)return a.return();f===1&&(Q.showPreviousButtonImmediately=!0);Q.gestureType=((U=S)==null?void 0:U.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";c&&(Q.gestureType=c);if(Q.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){Q.transitionToVideoThrottle.fire(f)}),a.return();
Q.scrollToVideoThrottle.fire(f);_.IN(a)})};
_.J.handleReelNavigateCommand=function(S,c,Q){(S=_.Y(S,LTO))&&c&&S.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(Q)};
_.J.loadVideo=function(S,c){c=c===void 0?!1:c;if(S!==this.currentPlayerIndex){_.V5().dispatch(a$(!1));if(this.isAd()&&!c){var Q;(Q=this.player)==null||Q.notifyShortsAdSwipeEvent()}if((c=this.JSC$19779_cinematicController)!=null){var f;(f=c.currentCinematicEffect)==null||f.pause()}if((f=this.JSC$19779_cinematicController)!=null){var U;(U=f.currentCinematicEffect)==null||U.clear()}f=S>this.index;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(f));
this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var a,X,z,x;U=S<0?(a=this.shortsProcessedPrevSequence)==null?void 0:(X=a[this.shortsProcessedPrevSequence.length+S])==null?void 0:X.command:(z=this.shortsProcessedSequence)==null?void 0:(x=z[S])==null?void 0:x.command;this.index=S;this.gestureType||(this.gestureType=f?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");
U&&this.isVideoContentCommand(U)&&(this.ytComponentBehavior.resolveCommand(U,{form:{createScreenConfig:{clickedVisualElement:f?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(U&&this.isNonVideoContentCommand(U)){this.currentEndpoint=U;this.data=void 0;a=_.Kv();X=_.Y(U,_.iA);var I,n;(X=(I=_.Y(X==null?void 0:X.renderer,_.SWh))==null?void 0:(n=I.screenLoggingData)==null?void 0:n.screenVeType)&&_.X2(a,X);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&
this.player.pauseVideo();(I=this.getActiveReelVideo(S))&&I.appendChild(this.overlayContainer)}var b,N;if(((b=this.reelWatchSequenceResponse)==null?0:b.continuationEndpoint)&&((N=this.reelWatchSequenceResponse)==null?0:N.entries)&&S===this.reelWatchSequenceResponse.entries.length-1){var l,H;b={contentPlaybackContext:_.HV({},(H=_.Y((l=this.currentEndpoint)==null?void 0:l.commandMetadata,_.Qw))==null?void 0:H.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,
{form:b})}var q,w,g;((q=this.reelWatchSequenceResponse)==null?0:q.prevContinuationEndpoint)&&S===-(((w=this.reelWatchSequenceResponse)==null?void 0:(g=w.prevEntries)==null?void 0:g.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.J.setMiniplayerPreview=function(S){S=(S===void 0?0:S)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var c,Q,f=_.fl().resolve(_.ra),U={shortsData:void 0,shortsPreviewThumbnail:S?(c=this.shortsProcessedSequence)==null?void 0:(Q=c[S])==null?void 0:Q.thumbnail:void 0};_.Cp(f,U)};
_.J.updateTitle=function(S){var c,Q;S=(S==null?0:S.adSlots)?"":(Q=S==null?void 0:(c=S.videoDetails)==null?void 0:c.title)!=null?Q:"";_.Az(this.hostElement,"yt-update-title",S)};
_.J.registerPanel=function(S){var c=_.fl().resolve(_.YF);if(c){S=_.A(S.engagementPanels||[]);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value;var f=Q.engagementPanelSectionListRenderer,U=void 0,a=void 0,X=void 0,z=void 0,x=((U=f)==null?void 0:U.targetId)||((a=f)==null?void 0:a.panelIdentifier)||((X=f)==null?void 0:(z=X.identifier)==null?void 0:z.tag);U=f=void 0;(U=(f=c).registerPanelContent)==null||U.call(f,x,Q)}}};
_.J.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;_.V5().dispatch(a$(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.V5().dispatch(GxT(!1));var S=_.fl().resolve(_.us);S.dismissedIndices=[];S.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.fl().resolve(_.ra).close(!0)};
_.J.processAppendReelWatchSequenceContinuationEntriesAction=function(S){var c=this,Q;(Q=this.intersectionObserver)==null||Q.disconnect();S=S.appendReelWatchSequenceContinuationEntriesAction;if(S==null?0:S.entries){var f;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Hs(((f=this.reelWatchSequenceResponse)==null?void 0:f.entries)||[]),_.Hs(S.entries)),continuationEndpoint:S.continuationEndpoint})}else if(S==null?0:S.prevEntries){var U;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Hs(((U=this.reelWatchSequenceResponse)==null?void 0:U.prevEntries)||[]),_.Hs(S.prevEntries)),prevContinuationEndpoint:S.prevContinuationEndpoint});_.Mq.addLowPriorityJob(function(){c.movePlayerToVideo(c.index);var a;(a=c.getActiveReelVideo(c.index))==null||a.scrollIntoView({block:"nearest",inline:c.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.Mq.addLowPriorityJob(function(){c.observeShorts()},100)};
_.J.processWatchSequence=function(S){var c=this;return S.map(function(Q){Q=Q.command;if(c.isVideoContentCommand(Q)){var f=_.Y(Q,_.ll);return{reelPlayerOverlayRenderer:_.Y(f==null?void 0:f.overlay,_.ckd),thumbnail:f.thumbnail,command:Q}}return c.isNonVideoContentCommand(Q)?(f=_.Y(Q,_.iA),{reelNonVideoContentRenderer:_.Y(f==null?void 0:f.renderer,_.SWh),command:Q}):{command:Q}})};
_.J.calculateIntersectionObserverThreshold=function(){if(!_.u("web_shorts_dynamic_intersection_observer_threshold"))return.6;var S=_.Ur(this.hostElement).querySelector("ytd-reel-video-renderer"),c=1;(S==null?0:S.offsetHeight)&&(S==null?0:S.offsetWidth)&&(c=Math.min(S.offsetHeight,this.shortsContainer.offsetHeight)/S.offsetHeight*(Math.min(S.offsetWidth,this.shortsContainer.offsetWidth)/S.offsetWidth));return Math.round(c*.6*10)/10};
_.J.isVideoContentCommand=function(S){_.fl().resolve(_.us);return!!_.Y(S,_.ll)};
_.J.isNonVideoContentCommand=function(S){_.fl().resolve(_.us);return!!_.Y(S,_.iA)};
_.J.initCinematicController=function(){var S=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19779_cinematicController=new _.Ji(this.shortsCinematicContainer,this.player);var c,Q=_.Y((c=this.data)==null?void 0:c.background,_.lP);_.NIp(this.JSC$19779_cinematicController,Q);_.bY1(this.JSC$19779_cinematicController,$8E(Q));_.nPN(this.JSC$19779_cinematicController);_.Mq.addLowPriorityJob(function(){S.moveCinematicsToVideo()})}};
_.J.handleMiniplayerNavigateShorts=function(S){S==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():S==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.J.handleSignalActionToggleShortsPictureInPicture=function(){if(_.fl().resolve(_.ra).pictureInPictureSupported()){var S=_.fl().resolve(_.us);if(_.u("web_shorts_pip")){var c=_.fl().resolve(_.ra);S.isShortsPipActive()?c.deactivate():c.isMiniplayerActive()||(_.bn().shortsPipActivation=!0,_.qC1(c))}}else(S=this.player)==null||S.togglePictureInPicture()};
_.Rh.Object.defineProperties(by.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.reelWatchSequenceResponse)!=null&&S.prevEntries)return this.processWatchSequence([].concat(_.Hs(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var S=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!S)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var c=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Hs(this.prevShortsSequence.slice(0,c)),[S],_.Hs(this.prevShortsSequence.slice(c+
1)))}c=this.index+this.shortsProcessedPrevSequence.length;S.thumbnail=this.shortsProcessedPrevSequence[c].thumbnail;return[].concat(_.Hs(this.shortsProcessedPrevSequence.slice(0,c)),[S],_.Hs(this.shortsProcessedPrevSequence.slice(c+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.reelWatchSequenceResponse)!=null&&S.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var S=this.getCurrentShort();if(!S||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[S];if(S==null||!S.reelNonVideoContentRenderer){var c=this.getIndexInSequence(this.shortsSequence,_.Y(this.currentEndpoint,_.ll).videoId);if(this.index===0&&c!==-1)return this.currentPlayerIndex=this.index=c,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Hs(this.shortsSequence.slice(0,this.index)),[S],_.Hs(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){S.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var Q,f,U,a;c=((f=_.Y((Q=this.shortsProcessedSequence[0])==null?void 0:Q.command,_.ll))==null?void 0:f.videoId)===((a=_.Y((U=this.shortsSequence[0])==null?void 0:U.command,_.ll))==null?void 0:a.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Hs(this.shortsProcessedSequence.slice(0,
this.index)),[S],_.Hs(this.shortsSequence.slice(c)))}return[S].concat(_.Hs(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var S=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;S&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(S)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 S,c;return this.index===((S=this.reelWatchSequenceResponse)==null?void 0:(c=S.entries)==null?void 0:c.length)}var Q;return!((Q=this.reelWatchSequenceResponse)==null?0:Q.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var S;(S=this.delayedActiveIndexUpdateDebouncer)==null||S.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return this.isShortPlayable()||((c=_.Y((S=this.data)==null?void 0:S.watchStatus,_.zkz))==null?void 0:(Q=c.style)==null?void 0:Q.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var S=this,c=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),Q;if((this.data||c)&&(((Q=this.data)==null?0:Q.engagementPanels)||this.isAd()||c)){c=!1;this.activePanel="shorts-comments-panel";var f;Q=_.A(((f=this.data)==null?void 0:f.engagementPanels)||[]);for(f=Q.next();!f.done;f=Q.next()){f=f.value.engagementPanelSectionListRenderer;var U=void 0,a=void 0,X=void 0,z=void 0;if((((U=f)==null?void 0:(a=U.identifier)==
null?void 0:a.tag)||((X=f)==null?void 0:X.targetId)||((z=f)==null?void 0:z.panelIdentifier))===this.activePanel){c=!0;break}}if(this.isPersistentPanelActive){var x=_.fl().resolve(_.YF);_.HG(_.Mq,function(){x.showPanel(S.activePanel,void 0,void 0,void 0,null)},100)}var I;
Q=[].concat(_.Hs(Object.values(((I=this.data)==null?void 0:I.engagementPanels)||{})));if(_.u("enable_preview_panel_for_shorts_search_suggested_action")){var n,b,N,l,H;((l=_.Y((n=this.data)==null?void 0:(b=n.overlay)==null?void 0:(N=b.reelPlayerOverlayRenderer)==null?void 0:N.metapanel,_.mSH))==null?void 0:(H=l.metadataItems)==null?void 0:H.find(function(q){var w,g;return((w=_.Y(q,VAV))==null?void 0:(g=w.icon)==null?void 0:g.iconType)==="SEARCH"}))!==void 0&&Q.push({engagementPanelSectionListRenderer:{identifier:{tag:"PAsearch_preview"},
targetId:"PAsearch_preview"}})}I=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);n=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);return I===void 0&&n===void 0||(I==null?0:I.isDisabled)||(n==null?void 0:n.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!c?(c=Q==null?void 0:Q.findIndex(function(q){var w,
g;return((w=q.engagementPanelSectionListRenderer)==null?void 0:(g=w.identifier)==null?void 0:g.tag)==="shorts-comments-panel"}),c===-1||c===void 0||Q!=null&&Q.splice(c,1),[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.K8("COMMENTS",void 0,"Comments")}]},
visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.K8("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:_.K8("COMMENTS_OFF",void 0,"Comments are turned off. ")},
{text:" "},{text:_.K8("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(_.Hs(Object.values(Q||
{})))):Q}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.shortsProcessedSequence)==null?void 0:S[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var S=this,c,Q,f;if((c=this.playerData)==null?0:(Q=c.playabilityStatus)==null?0:(f=Q.errorScreen)==null?0:f.playerInterstitialRenderer)return _.Mq.addLowPriorityJob(function(){S.movePlayerToVideo(S.index)}),this.playerData.playabilityStatus.errorScreen;
var U,a;return((U=this.data)==null?void 0:U.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((a=this.data)==null?0:a.watchStatus)&&_.Y(this.data.watchStatus,_.zCd)?(_.Mq.addLowPriorityJob(function(){S.movePlayerToVideo(S.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.Rh.Object.defineProperties(by,{template:{configurable:!0,enumerable:!0,get:function(){if(yfT===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);yfT=S}S=yfT;return S}}});
by.prototype.onNextButtonDataChange=by.prototype.onNextButtonDataChange;by.prototype.onPrevButtonDataChange=by.prototype.onPrevButtonDataChange;by.prototype.onPersistentPanelActiveChanged=by.prototype.onPersistentPanelActiveChanged;by.prototype.lazyUpdateMiniplayerData=by.prototype.lazyUpdateMiniplayerData;by.prototype.onShortsPipActiveChanged=by.prototype.onShortsPipActiveChanged;by.prototype.setActiveIndex=by.prototype.setActiveIndex;by.prototype.graftNvcRenderer=by.prototype.graftNvcRenderer;
by.prototype.graftClientVisualElements=by.prototype.graftClientVisualElements;by.prototype.onActiveChanged=by.prototype.onActiveChanged;by.prototype.onShortsDismiss=by.prototype.onShortsDismiss;by.prototype.onShortUndoDismiss=by.prototype.onShortUndoDismiss;by.prototype.playerDataChanged=by.prototype.playerDataChanged;by.prototype.afterPlayerStarted=by.prototype.afterPlayerStarted;by.prototype.unhideCurrentOverlay=by.prototype.unhideCurrentOverlay;by.prototype.onServiceRequestCompleted=by.prototype.onServiceRequestCompleted;
by.prototype.engagementPanelsChanged=by.prototype.engagementPanelsChanged;by.prototype.onFullscreenChange=by.prototype.onFullscreenChange;by.prototype.onResize=by.prototype.onResize;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],by.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.DF.YtPageBehavior),_.P("design:type",Object)],by.prototype,"ytPageBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],by.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.w9),_.P("design:type",Object)],by.prototype,"ironResizableBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],by.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],by.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],by.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],by.prototype,"ytdReduxBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],by.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"playerData",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"reelWatchSequenceResponse",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"cachedReelWatchSequenceResponse",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"currentEndpoint",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"nextButtonData",void 0);
_.d([_.Z(),_.P("design:type",Object)],by.prototype,"prevButtonData",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"isPreviousPageShorts",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"index",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"delayedActiveIndex",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"playablePreviousIndex",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"player",void 0);
_.d([_.Z(),_.P("design:type",Object)],by.prototype,"isPlayerPaused",void 0);_.d([_.Z({selector:YkV}),_.P("design:type",Object)],by.prototype,"isPlayerStarted",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"intersectionObserver",void 0);_.d([_.Z(),_.P("design:type",Number)],by.prototype,"cinematicsInitializeJobId",void 0);_.d([_.Z(),_.P("design:type",Number)],by.prototype,"updateMiniplayerDataJobId",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"fitToVisibleBounds",void 0);
_.d([_.Z(),_.P("design:type",Object)],by.prototype,"pageSubtype",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],by.prototype,"enablePreviousContinuation",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"shortsPipEnabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"isDark",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"shortsViewTransitions",void 0);
_.d([_.Z({selector:_.KD,reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"isFullscreen",void 0);_.d([_.Z({selector:_.$u,reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"isShortsPipActive",void 0);_.d([_.nU("#shorts-inner-container"),_.P("design:type",HTMLElement)],by.prototype,"shortsInnerContainer",void 0);_.d([_.nU("#back-nav-button ytd-button-renderer"),_.P("design:type",_.yv)],by.prototype,"backNavButton",void 0);
_.d([_.nU("#shorts-container"),_.P("design:type",HTMLElement)],by.prototype,"shortsContainer",void 0);_.d([_.VU("error-screen"),_.P("design:type",HTMLElement)],by.prototype,"errorScreenContainer",void 0);_.d([_.VU("player"),_.P("design:type",Object)],by.prototype,"playerElement",void 0);_.d([_.VU("shorts-cinematic-container"),_.P("design:type",HTMLElement)],by.prototype,"shortsCinematicContainer",void 0);
_.d([_.VU("initial-player-container"),_.P("design:type",HTMLElement)],by.prototype,"initialPlayerContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"buttonOverride",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"anchoredPanelActive",void 0);_.d([_.Z(),_.P("design:type",String)],by.prototype,"activePanel",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"isActive",void 0);
_.d([_.Z({selector:l9G,reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"smallScreenPersistentPanel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"isPersistentPanelActive",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"smallScreenSqueezeBack",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"enableScrollIntoViewCenter",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"formatFirst",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"enableFlexibleOverlay",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],by.prototype,"useAspectRatio",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"panelContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"overlayContainer",void 0);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"isShortsInitialized",void 0);
_.d([_.M("reelWatchSequenceResponse"),_.P("design:type",Object),_.P("design:paramtypes",[])],by.prototype,"prevShortsSequence",null);_.d([_.M("data","prevShortsSequence"),_.P("design:type",Object),_.P("design:paramtypes",[])],by.prototype,"shortsProcessedPrevSequence",null);_.d([_.M("reelWatchSequenceResponse"),_.P("design:type",Object),_.P("design:paramtypes",[])],by.prototype,"shortsSequence",null);
_.d([_.M("data","shortsSequence"),_.P("design:type",Object),_.P("design:paramtypes",[])],by.prototype,"shortsProcessedSequence",null);_.d([_.Z({reflectToAttribute:!0}),_.M("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],by.prototype,"isUpArrowHidden",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("reelWatchSequenceResponse","index","endOfNextContinuation"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],by.prototype,"isDownArrowHidden",null);_.d([_.Z(),_.M("index"),_.P("design:type",Number),_.P("design:paramtypes",[])],by.prototype,"activeIndex",null);_.d([_.M("isShortPlayable","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],by.prototype,"shouldRenderOfflineContent",null);
_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onResize",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],by.prototype,"anchoredEngagementPanels",null);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"watchWhileEngagementPanels",void 0);_.d([_.B0("isFullscreen"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onFullscreenChange",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"engagementPanelsChanged",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],by.prototype,"onServiceRequestCompleted",null);_.d([_.M("data","shortsSequence","index"),_.P("design:type",Object),_.P("design:paramtypes",[])],by.prototype,"activeReel",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"unhideCurrentOverlay",null);_.d([_.B0("isPlayerStarted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"afterPlayerStarted",null);_.d([_.M("playerData","reelWatchSequenceResponse","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],by.prototype,"errorScreen",null);
_.d([_.M("errorScreen"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],by.prototype,"hasError",null);_.d([_.B0("playerData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],by.prototype,"playerDataChanged",null);_.d([_.FV("yt-dismissible-item-undo-feedback"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onShortUndoDismiss",null);
_.d([_.FV("yt-disable-lockup-interaction"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],by.prototype,"onShortsDismiss",null);_.d([_.$n("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onActiveChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"graftClientVisualElements",null);
_.d([_.B0("currentPlayerIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"graftNvcRenderer",null);_.d([_.B0("index"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"setActiveIndex",null);_.d([_.B0("isShortsPipActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onShortsPipActiveChanged",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"lazyUpdateMiniplayerData",null);_.d([_.Z(),_.P("design:type",Object)],by.prototype,"onOverlayDensityChanged",void 0);_.d([_.B0("isPersistentPanelActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onPersistentPanelActiveChanged",null);
_.d([_.B0("index","data","isUpArrowHidden"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onPrevButtonDataChange",null);_.d([_.B0("index","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],by.prototype,"onNextButtonDataChange",null);_.d([_.e({is:"ytd-shorts"})],by);_.at.registerService(_.O7Z,by);
_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("JzFVk");
var u$1=function(S){return _.B("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},$a1(S.data.ctaButton,{buttonViewModel:{}}),_.B(_.mw,{text:S.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var js8;var lbV;var Ml=function(){return _.W.apply(this,arguments)||this};
_.C(Ml,_.W);Ml.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Ml.prototype.computeBlueBottomLink=function(S){return S};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ml.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ml.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ml.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon_(data.bottomIcon)"}),_.P("design:type",String)],Ml.prototype,"bottomIcon",void 0);
_.d([_.Z({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Ml.prototype,"enableBlueBottomLink",void 0);_.d([_.e({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],Ml);
_.k(Ml,"ytd-web-answer-renderer",function(){if(lbV!==void 0)return lbV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return lbV=S},{mode:_.A2("kevlar_poly_si_batch_j035")?1:2});var Y1N;var Zt=function(){var S=_.W.apply(this,arguments)||this;S.hasChipBar=!1;return S};
_.C(Zt,_.W);Zt.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}}};
Zt.prototype.computeHasChipBar=function(S){return!(S==null||!S.chipBar)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Zt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Zt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Zt.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.P("design:type",Object)],Zt.prototype,"hasChipBar",void 0);_.d([_.e({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Zt);
_.k(Zt,"ytd-search-header-renderer",function(){if(Y1N!==void 0)return Y1N;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Y1N=S},{mode:1});var CLG;var Gn=function(){return _.W.apply(this,arguments)||this};
_.C(Gn,_.W);Gn.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Gn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Gn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Gn.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-page-continuation"})],Gn);
_.k(Gn,"ytd-page-continuation",function(){if(CLG!==void 0)return CLG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return CLG=S},{mode:1});var HeN;var Da1;var pfg;var WQ=function(){return _.W.apply(this,arguments)||this};
_.C(WQ,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],WQ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],WQ.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],WQ);
_.k(WQ,"ytd-watch-card-one-vs-one-event",function(){if(pfg!==void 0)return pfg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return pfg=S},{mode:1});var gy=function(){return _.W.apply(this,arguments)||this};
_.C(gy,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gy.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gy.prototype,"data",void 0);_.d([_.e({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],gy);
_.k(gy,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(Da1!==void 0)return Da1;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Da1=S},{mode:1});var hFp;var e_=function(){return _.W.apply(this,arguments)||this};
_.C(e_,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],e_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],e_.prototype,"data",void 0);_.d([_.e({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],e_);
_.k(e_,"ytd-banner-and-box-hero-image-renderer",function(){if(hFp!==void 0)return hFp;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return hFp=S},{mode:1});var q1N;var kE=function(){var S=_.W.apply(this,arguments)||this;S.modern=_.u("web_modern_buttons");return S};
_.C(kE,_.W);kE.prototype.computeIcon=function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.icon)==null?void 0:c.iconType;if(Q)return _.xz(Q)};
kE.prototype.computeButtonShape=function(){var S;return{buttonText:_.Em((S=this.data)==null?void 0:S.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.Rh.Object.defineProperties(kE.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"}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],kE.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],kE.prototype,"modern",void 0);_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.M("data.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],kE.prototype,"buttonColor",null);
_.d([_.e({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],kE);
_.k(kE,"ytd-call-to-action-button-renderer",function(){if(q1N!==void 0)return q1N;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return q1N=S},{mode:1});var TnG;var ry=function(){return _.W.apply(this,arguments)||this};
_.C(ry,_.W);ry.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.Ur(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.U2(this.data.leftThumbnail.thumbnails,216)+")")};
ry.prototype.onLeftThumbnailChanged=ry.prototype.onLeftThumbnailChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ry.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ry.prototype,"data",void 0);_.d([_.B0("data.leftThumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ry.prototype,"onLeftThumbnailChanged",null);_.d([_.e({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],ry);
_.k(ry,"ytd-collage-hero-image-renderer",function(){if(TnG!==void 0)return TnG;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return TnG=S},{mode:1});var wf0;var dy=function(){return _.W.apply(this,arguments)||this};
_.C(dy,_.W);dy.prototype.computeStyle=function(S){return S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dy.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],dy.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.P("design:type",String)],dy.prototype,"componentStyle",void 0);_.d([_.e({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],dy);
_.k(dy,"ytd-single-hero-image-renderer",function(){if(wf0!==void 0)return wf0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wf0=S},{mode:1});var ssg;var vQ=function(){return _.W.apply(this,arguments)||this};
_.C(vQ,_.W);_.J=vQ.prototype;
_.J.configureRendererStamper=function(){return{"data.heroImage":{id:"hero-image",mapping:{bannerAndBoxHeroImageRenderer:"ytd-banner-and-box-hero-image-renderer",singleHeroImageRenderer:"ytd-single-hero-image-renderer",collageHeroImageRenderer:"ytd-collage-hero-image-renderer"}},"data.callToActionButton":{id:"call-to-action-button",mapping:{callToActionButtonRenderer:"ytd-call-to-action-button-renderer"}},"data.reminderButton":{id:"reminder-button",mapping:{toggleButtonRenderer:"ytd-toggle-button-renderer",upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer",
buttonRenderer:"ytd-button-renderer"}},"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayPlaybackStatusRenderer:"ytd-thumbnail-overlay-playback-status-renderer",thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayResumePlaybackRenderer:"ytd-thumbnail-overlay-resume-playback-renderer",thumbnailOverlaySidePanelRenderer:"ytd-thumbnail-overlay-side-panel-renderer",thumbnailOverlayTimeStatusRenderer:"ytd-thumbnail-overlay-time-status-renderer",thumbnailOverlayToggleButtonRenderer:"ytd-thumbnail-overlay-toggle-button-renderer"},
initialRenderPriority:_.u("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.J.computeSubtitle=function(S){if(this.data){var c;if(this.data.upcomingEventData){S=_.Em(S.subtitle);var Q=Number(this.data.upcomingEventData.startTime);isNaN(Q)||(c=_.LK(_.GI(S,Q)))}else c=S.subtitle;return c}};
_.J.onHeroTap=function(S){S.preventDefault();var c=this.data&&this.data.navigationEndpoint;!c||!_.RZ(_.t4(S),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.RZ(_.t4(S),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.u("kevlar_watchcard_hero_video_renderer_killswitch")?_.Az(this.hostElement,"yt-navigate",{navigationEndpoint:c}):this.ytComponentBehavior.resolveCommand(c))};
_.J.computeHeroTabIndex=function(S){return S&&S.simpleText?-1:0};
_.J.computeHeroRole=function(S){return S&&S.simpleText?"":"link"};
_.J.computeIsReminderButtonPresent=function(S){return!(!S||!S.reminderButton)};
_.J.computeHideBottomItems=function(S){return!(this.computeIsReminderButtonPresent(S)||S.subtitle)};
_.J.dataChanged=function(){var S=this.get("data.buttons.buttonRenderer.serviceEndpoint"),c;((c=_.Y(S==null?void 0:S.commandMetadata,_.hp))==null?0:c.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(S)};
vQ.prototype.dataChanged=vQ.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],vQ.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vQ.prototype,"data",void 0);
_.d([_.Z({computed:"computeSubtitle(data)"}),_.P("design:type",String)],vQ.prototype,"subtitle",void 0);_.d([_.Z({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],vQ.prototype,"isReminderButtonPresent",void 0);_.d([_.Z({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],vQ.prototype,"hideBottomItems",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vQ.prototype,"dataChanged",null);_.d([_.e({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],vQ);
_.k(vQ,"ytd-watch-card-hero-video-renderer",function(){if(ssg!==void 0)return ssg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ssg=S},{mode:1});var MUG;var PQ=function(){return _.W.apply(this,arguments)||this};
_.C(PQ,_.W);_.J=PQ.prototype;_.J.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"}}}};
_.J.computeTitleBadges=function(S){return S?[S]:[]};
_.J.computeHeaderStyle=function(S){return S?S.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.J.computeAvatarAriaLabel=function(S){if(S){var c,Q,f,U;return(U=(c=S.avatar)==null?void 0:(Q=c.accessibility)==null?void 0:(f=Q.accessibilityData)==null?void 0:f.label)!=null?U:_.Em(S==null?void 0:S.title)}};
_.J.computeAvatarHeight=function(S){return S==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.J.computeBadgeRowClass=function(S){return(S==null?0:S[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],PQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],PQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],PQ.prototype,"data",void 0);_.d([_.Z({computed:"computeTitleBadges(data.titleBadge)"}),_.P("design:type",Array)],PQ.prototype,"titleBadges",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.P("design:type",String)],PQ.prototype,"headerStyle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.P("design:type",String)],PQ.prototype,"badgeRowClass",void 0);_.d([_.e({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],PQ);
_.k(PQ,"ytd-watch-card-rich-header-renderer",function(){if(MUG!==void 0)return MUG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return MUG=S},{mode:1});var ieG;var ZeZ;var L_=function(){return _.W.apply(this,arguments)||this};
_.C(L_,_.W);L_.prototype.onMetadataTap=function(S){var c=this.data&&this.data.navigationEndpoint;c&&!_.RZ(_.t4(S),this.hostElement,["A".toString()])&&_.Az(this.hostElement,"yt-navigate",{endpoint:c})};
_.Rh.Object.defineProperties(L_.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 S;if(this.data.upcomingEventData){var c=_.Em(this.data.subtitle),Q=Number(this.data.upcomingEventData.startTime);isNaN(Q)||(S=_.LK(_.GI(c,Q)))}else S=this.data.subtitle;return S}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],L_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],L_.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data.style"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],L_.prototype,"isCondensed",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],L_.prototype,"subtitle",null);
_.d([_.e({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],L_);
_.k(L_,"ytd-watch-card-compact-video-renderer",function(){if(ZeZ!==void 0)return ZeZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ZeZ=S},{mode:1});var G2B;var EN=function(){return _.W.apply(this,arguments)||this};
_.C(EN,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],EN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],EN.prototype,"data",void 0);_.d([_.e({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],EN);
_.k(EN,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(G2B!==void 0)return G2B;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return G2B=S},{mode:1});var tI=function(){return _.W.apply(this,arguments)||this};
_.C(tI,_.W);tI.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}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],tI.prototype,"ytRendererStamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tI.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tI.prototype,"data",void 0);_.d([_.e({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],tI);
_.k(tI,"ytd-vertical-watch-card-list-renderer",function(){if(ieG!==void 0)return ieG;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ieG=S},{mode:1});var WaZ;var VF=function(){var S=_.W.apply(this,arguments)||this;S.ariaExpanded="false";return S};
_.C(VF,_.W);_.J=VF.prototype;_.J.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.J.dataChanged=function(){var S;this.currentSeasonIndex=((S=this.data)==null?void 0:S.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.J.computeEpisodesInfo=function(S,c,Q){if(S!==void 0&&c.length===S.length)return S[Q]};
_.J.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.J.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.J.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.J.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.J.getUppercaseSimpleString=function(S){return this.ytRendererBehavior.getSimpleString(S).toUpperCase()};
_.J.updateCurrentSeasonIndexFromBinding=function(S){this.currentSeasonIndex=S.detail.value};
VF.prototype.onIronOverlayClosed=VF.prototype.onIronOverlayClosed;VF.prototype.currentSeasonIndexChanged=VF.prototype.currentSeasonIndexChanged;VF.prototype.dataChanged=VF.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VF.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",String)],VF.prototype,"label",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],VF.prototype,"currentSeasonIndex",void 0);_.d([_.Z({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.P("design:type",Object)],VF.prototype,"episodesInfo",void 0);_.d([_.Z({value:"false"}),_.P("design:type",Object)],VF.prototype,"ariaExpanded",void 0);_.d([_.nU("#lists"),_.P("design:type",Object)],VF.prototype,"lists",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VF.prototype,"dataChanged",null);_.d([_.$n("currentSeasonIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VF.prototype,"currentSeasonIndexChanged",null);_.d([_.FV("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],VF.prototype,"onIronOverlayClosed",null);
_.d([_.e({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],VF);
_.k(VF,"ytd-watch-card-section-dropdown-renderer",function(){if(WaZ!==void 0)return WaZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return WaZ=S},{mode:1});var g2p;var Rd=function(){var S=_.W.apply(this,arguments)||this;S.isSearch=!1;return S};
_.C(Rd,_.W);Rd.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}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Rd.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Rd.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Rd.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Rd.prototype,"isSearch",void 0);_.d([_.e({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],Rd);
_.k(Rd,"ytd-watch-card-section-sequence-renderer",function(){if(g2p!==void 0)return g2p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return g2p=S},{mode:1});var $a1=_.l9({buttonViewModel:_.Ze});_.Qu(u$1);_.xd(u$1,"ytd-button-banner-view-model",{propNames:["data"]});var yF=function(){var S=_.W.apply(this,arguments)||this;S.isSearch=!1;return S};
_.C(yF,_.W);
yF.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"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yF.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],yF.prototype,"rounded",void 0);_.d([_.Z(),_.P("design:type",Object)],yF.prototype,"isSearch",void 0);
_.d([_.e({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],yF);
_.k(yF,"ytd-universal-watch-card-renderer",function(){if(HeN!==void 0)return HeN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return HeN=S},{mode:1});var eFN;_.f4(_.y_(function(S){var c=S.data;var Q;S=!((Q=_.fl().resolve(_.QS(_.Lv)))==null||!Q());Q={};return _.B("overview-message-view-model",{class:_.n4("ytwOverviewMessageViewModelHost",(Q.ytwOverviewMessageViewModelDarkBackground=S,Q.ytwOverviewMessageViewModelLightBackground=!S,Q))},_.B(_.K,{cond:function(){return c().primaryImage},
then:function(f){return _.B(_.RW,{data:f,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.B(_.K,{cond:function(){return c().primaryText},
then:function(){return _.B("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.B(_.mw,{text:function(){return c().primaryText}}))}}),_.B(_.K,{cond:function(){return c().secondaryText},
then:function(){return _.B("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.B(_.mw,{text:function(){return c().secondaryText}}))}}))},"Li"),"overview-message-view-model",{props:{data:_.y$}});_.xd(_.yVi,"ytd-overview-answer-view-model",{propNames:["data"]});var od=function(){return _.W.apply(this,arguments)||this};
_.C(od,_.W);od.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"}}}};
od.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],od.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],od.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],od.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],od.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],od.prototype,"isSearch",void 0);
_.d([_.e({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],od);
_.k(od,"ytd-secondary-search-container-renderer",function(){if(eFN!==void 0)return eFN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return eFN=S},{mode:1});var k2Z;var mb=function(){var S=_.W.apply(this,arguments)||this;S.renderSecondarySearchContainer=!1;S.isSearch=!1;S.isSearchDova=_.u("dova_on_search");return S};
_.C(mb,_.W);_.J=mb.prototype;_.J.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"}}}};
_.J.created=function(){var S=this;this.boundStampSecondarySearchContainerIfFits=function(){S.stampSecondarySearchContainerIfFits()};
_.G_("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.J.computeIsSearchFrictionPage=function(S){var c,Q,f,U,a;S=S==null?void 0:(c=S.primaryContents)==null?void 0:(Q=c.sectionListRenderer)==null?void 0:(f=Q.contents)==null?void 0:(U=f[0])==null?void 0:(a=U.itemSectionRenderer)==null?void 0:a.contents;if(!S)return!1;c=_.A(S);for(Q=c.next();!Q.done;Q=c.next())if(f=void 0,(f=Q.value)==null?0:f.searchFrictionViewModel)return!0;return!1};
_.J.computeShowSecondaryColumn=function(S,c){return!!(c&&c.secondaryContents&&S)};
_.J.activeChanged=function(){var S=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.xn(this,this.debounceStampSecondarySearchContainerIfFits)),_.gM(function(){S.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.xn(this,this.debounceStampSecondarySearchContainerIfFits))};
_.J.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.J.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.J.debounceStampSecondarySearchContainerIfFits=function(){_.e$(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.J.onRetrieveLocation=function(S,c){c.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);S.stopPropagation()};
_.J.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
mb.prototype.dataChanged=mb.prototype.dataChanged;mb.prototype.onRetrieveLocation=mb.prototype.onRetrieveLocation;mb.prototype.persistentGuideChanged=mb.prototype.persistentGuideChanged;mb.prototype.activeChanged=mb.prototype.activeChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],mb.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.w9),_.P("design:type",Object)],mb.prototype,"ironResizableBehavior",void 0);_.d([_.Z(),_.P("design:type",Boolean)],mb.prototype,"active",void 0);_.d([_.Z(),_.P("design:type",Object)],mb.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.u("enable_desktop_search_bigger_thumbs")}}),
_.P("design:type",Boolean)],mb.prototype,"useBiggerThumbs",void 0);_.d([_.Z({reflectToAttribute:!0,value:function(){return _.Al("desktop_search_bigger_thumbs_style")}}),
_.P("design:type",String)],mb.prototype,"biggerThumbsStyle",void 0);_.d([_.Z(),_.P("design:type",Object)],mb.prototype,"renderSecondarySearchContainer",void 0);_.d([_.Z({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.P("design:type",Boolean)],mb.prototype,"showSecondaryColumn",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.P("design:type",Boolean)],mb.prototype,"isSearchFrictionPage",void 0);
_.d([_.Z(),_.P("design:type",Object)],mb.prototype,"isSearch",void 0);_.d([_.Z(),_.P("design:type",Object)],mb.prototype,"isSearchDova",void 0);_.d([_.B0("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mb.prototype,"activeChanged",null);_.d([_.B0("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mb.prototype,"persistentGuideChanged",null);
_.d([_.FV("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],mb.prototype,"onRetrieveLocation",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mb.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],mb);
_.k(mb,"ytd-two-column-search-results-renderer",function(){if(k2Z!==void 0)return k2Z;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return k2Z=S},{mode:1});var S2=function(){var S=_.W.apply(this,arguments)||this;S.hasSearchHeader=!1;S.hasSecondaryContent=!1;S.hasBiggerThumbs=_.u("enable_desktop_search_bigger_thumbs");S.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return S};
_.C(S2,_.W);_.J=S2.prototype;_.J.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:_.s3(["aa","eocs"])}}};
_.J.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.J.loadPage_=function(S){this.initCsi();S&&(this.data=S,_.G_("REFINEMENTS_TUPLE",["FromSearchResponse",S.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.RR(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.J.initCsi=function(){_.HU("results",["ol","cpt"])};
_.J.updateTitle=function(){var S=_.v1(window.location.href,"q");S||(S=_.v1(window.location.href,"search_query"));_.Az(this.hostElement,"yt-update-title",S||"")};
_.J.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.J.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.u("web_srp_data_changed_terminate_imp_killswitch")||_.XF(this.hostElement,"yt-terminate-video-preview-action")};
_.J.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.J.computeHasSearchHeader=function(S){var c;S=S==null?void 0:(c=S.header)==null?void 0:c.searchHeaderRenderer;return!!S&&(!!S.searchFilterButton||!!S.chipBar)};
_.J.computeHasSecondaryContent=function(S){var c,Q;return!!(S==null?0:(c=S.contents)==null?0:(Q=c.twoColumnSearchResultsRenderer)==null?0:Q.secondaryContents)};
_.Rh.Object.defineProperties(S2,{template:{configurable:!0,enumerable:!0,get:function(){if(js8===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);js8=S}S=js8;return S}}});
S2.prototype.onReloadContinuationFinish=S2.prototype.onReloadContinuationFinish;S2.prototype.dataChanged=S2.prototype.dataChanged;_.d([_.p(_.DF.YtPageBehavior),_.P("design:type",Object)],S2.prototype,"ytPageBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],S2.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],S2.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],S2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],S2.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],S2.prototype,"data",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],S2.prototype,"monitorScroll",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],S2.prototype,"hasSearchHeader",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],S2.prototype,"hasSecondaryContent",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],S2.prototype,"hasBiggerThumbs",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S2.prototype,"dataChanged",null);
_.d([_.FV("yt-reload-continuation-finish"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S2.prototype,"onReloadContinuationFinish",null);_.d([_.e({is:"ytd-search"})],S2);_.at.registerService(_.XUp,S2);
_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("h8y2qb");
var YBG=function(S){if(S=_.XDr(S)){var c;(c=S.sources)!=null&&c[0]?(c=_.zAY(S),c=c<1?"VERTICAL":c>1?"HORIZONTAL":"SQUARE"):c=void 0;return c}},p7=function(S){_.Ym.call(this,"upload");
this.opts.query=S},HC0=function(S,c){return _.B(Cp2,{data:S,
onYtNavigate:c})},DNB=function(S,c){return _.FT(S.entities,"pageHeaderEntity",c)},hyU=function(S,c){return S.map(function(Q){if(Q.tabRenderer)return pzE(Q.tabRenderer);
if(Q.expandableTabRenderer&&c){var f=Q.expandableTabRenderer;return{customTabRenderable:function(){return c(f)}}}return{}})},pzE=function(S){return{identifier:S.tabIdentifier,
aTagConfig:_.gH({innertubeCommand:S.endpoint,forceNewState:!0}),title:S.title,selected:S.selected,disabled:S.unselectable,icon:S.icon}},qBU=function(S){return _.aB({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:S})},TwG=function(S){if(!_.Q8(document,"gtm-noscript")){var c=document.createElement("noscript");
c.id="gtm-noscript";c.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+S+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(c)}};_.Xa(p7,_.Ym);p7.prototype.JSC$8110_setLabel=function(S){p7.superClass_.JSC$8110_setLabel.call(this,S);return this};
p7.prototype.addUploadMetadata=function(S,c){p7.superClass_.addUploadMetadata.call(this,S,c);return this};var wz1=function(S){if(S!=="youtubebanner"&&S!=="youtube-channel-banner")throw Error("Xl");p7.call(this,S)};
_.C(wz1,p7);wz1.prototype.JSC$8110_setLabel=function(S){p7.prototype.JSC$8110_setLabel.call(this,S);return this};
wz1.prototype.addUploadMetadata=function(S,c){p7.prototype.addUploadMetadata.call(this,S,c);return this};var s4T=[_.w9,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(S){_.YU(S).path[0]!==this&&(this.resetLayout(),S.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var S=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.Ak(this._layoutDebouncer,_.Dc,S);_.Xg(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var S=this;requestAnimationFrame(function(){S.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(S){this.resizerShouldNotify(S)&&this._notifyDescendant(S)},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 M3E=[_.Kdl,{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(S,c){var Q=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[S];if(!Q)throw new ReferenceError(this._getUndefinedMsg(S));S=this._boundEffect(Q,c||{});S.setUp();return S},
_effectsChanged:function(S,c,Q){this._tearDownEffects();S&&Q&&(S.split(" ").forEach(function(f){var U;f!==""&&((U=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[f])?this._effects.push(this._boundEffect(U,c[f])):console.warn(this._getUndefinedMsg(f)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(S,c){c=c||{};var Q=parseFloat(c.startsAt||0),f=parseFloat(c.endsAt||1),U=f-Q,a=function(){};
f=Q===0&&f===1?S.run:function(X,z){S.run.call(this,Math.max(0,(X-Q)/U),z)};
return{setUp:S.setUp?S.setUp.bind(this,c):a,run:S.run?f.bind(this):a,tearDown:S.tearDown?S.tearDown.bind(this):a}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(S){S.setUp()!==!1&&this._effectsRunFn.push(S.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(S){S.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(S,c){this._effectsRunFn&&this._effectsRunFn.forEach(function(Q){Q(S,c)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var S=this._clampedScrollTop;this._updateScrollState(S);this.threshold>0&&this._setThresholdTriggered(S>=this.threshold)}},
_getDOMRef:function(S){console.warn("_getDOMRef","`"+S+"` is undefined")},
_getUndefinedMsg:function(S){return"Scroll effect `"+S+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+S+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Yl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(S){var c={};S=parseFloat(S.scalar);c.background=this._getDOMRef("background");c.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");c.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");c.deltaBg=c.backgroundFrontLayer.offsetHeight-c.background.offsetHeight;c.deltaBg===0?(isNaN(S)&&(S=.8),c.deltaBg=(this._dHeight||0)*S):(isNaN(S)&&(S=
1),c.deltaBg*=S);this._fxParallaxBackground=c},
run:function(S){var c=this._fxParallaxBackground;this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,S)+"px, 0px)",c.backgroundFrontLayer);c.backgroundRearLayer&&this.transform("translate3d(0px, "+c.deltaBg*Math.min(1,S)+"px, 0px)",c.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var iC1;var ZCZ;var GGE=function(){};
_.J=GGE.prototype;_.J._scrollTargetChanged=function(){};
_.J.scroll=function(){};
_.J._isValidScrollTarget=function(){};
_.J._toggleScrollListener=function(){};
_.J.toggleScrollListener=function(){};
_.J.createEffect=function(){};
_.J._effectsChanged=function(){};
_.J._layoutIfDirty=function(){};
_.J._boundEffect=function(){};
_.J._setUpEffect=function(){};
_.J._tearDownEffects=function(){};
_.J._runEffects=function(){};
_.J._scrollHandler=function(){};
_.J._scrollStateChanged=function(){};
_.J._getUndefinedMsg=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J._appResetLayoutHandler=function(){};
_.J.resetLayout=function(){};
_.J._notifyLayoutChanged=function(){};
_.J._notifyDescendantResize=function(){};
_.J._setThresholdTriggered=function(){};
GGE=_.DI({_template:function(){if(ZCZ!==void 0)return ZCZ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;iC1===void 0&&(iC1=document.createElement("template"));var f=iC1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return ZCZ=S},
is:"tp-yt-app-header",behaviors:[M3E,s4T],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 S=_.YU(this.$.slot).getDistributedNodes(),c=0,Q;Q=S[c];c++)if(Q.nodeType===Node.ELEMENT_NODE)if(Q.hasAttribute("sticky")){this._stickyElRef=Q;break}else this._stickyElRef||(this._stickyElRef=Q);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var S=this._clampedScrollTop,c=this._height===0||S===0,Q=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;c||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();c?this._updateScrollState(S,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=Q}},
_updateScrollState:function(S,c){if(this._height!==0){var Q=0,f=this._top;var U=this._maxHeaderTop;var a=S-this._lastScrollTop,X=Math.abs(a),z=S>this._lastScrollTop,x=performance.now();this._mayMove()&&(Q=this._clamp(this.reveals?f+a:S,0,U));S>=this._dHeight&&(Q=this.condenses&&!this.fixed?Math.max(this._dHeight,Q):Q,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&X<100){if(x-this._initTimestamp>300||this._wasScrollingDown!==z)this._initScrollTop=S,this._initTimestamp=x;S>=U&&
(Math.abs(this._initScrollTop-S)>30||X>10?(z&&S>=U?Q=U:!z&&S>=this._dHeight&&(Q=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((Q-f)/(a/(x-this._lastTimestamp)),0,300)+"ms"):Q=this._top)}U=this._dHeight===0?S>0?1:0:Q/this._dHeight;c||(this._lastScrollTop=S,this._top=Q,this._wasScrollingDown=z,this._lastTimestamp=x);if(c||U!==this._progress||f!==Q||S===0)this._progress=U,this._runEffects(U,Q),this._transformHeader(Q)}},
_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(S){this.translate3d(0,-S+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&S>=this._stickyElTop?Math.min(S,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(S,c,Q){return Math.min(Q,Math.max(c,S))},
_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),_.YU(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(S){switch(S){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.YU(this).querySelector("[main-title]");case "condensedTitle":return _.YU(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var W38;var g$V;_.DI({_template:function(){if(g$V!==void 0)return g$V;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;W38===void 0&&(W38=document.createElement("template"));var f=W38;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return g$V=S},
is:"tp-yt-app-header-layout",behaviors:[s4T],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.YU(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var S=this.header;if(this.isAttached&&S){this.$.wrapper.classList.remove("initializing");S.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)S.style.left=
"",S.style.right="";else{var c=this.getBoundingClientRect(),Q=document.documentElement.clientWidth-c.right;S.style.left=c.left+"px";S.style.right=Q+"px"}c=this.$.contentContainer.style;Q=S.offsetHeight;S.fixed&&!S.condenses&&this.hasScrollingRegion?(c.marginTop=Q+"px",c.paddingTop=""):(c.paddingTop=Q+"px",c.marginTop="")}}});var eyp=new _.L("replaceFeedContentAction");var kGE=new _.L("alertCommand");var rEV=new _.L("manageLabsStateCommand");var dNE=new _.L("inlineFormRenderer");var hu=new _.L("playlistSidebarPrimaryInfoRenderer");var v$E=new _.L("productDetailsThumbnailRenderer"),PpB=new _.L("productDetailsVariantRenderer"),L3E=new _.L("productDetailsVariantOptionRenderer"),E$2=new _.L("productDetailsOffersContainerRenderer"),t3g=new _.L("productDetailsOfferRenderer");var V3p=new _.L("shoppingFlaggingRenderer");var RyU=new _.L("playlistBylineRenderer");var yE0=new _.L("insertChannelTabCommand");var qC=function(){return _.N_.apply(this,arguments)||this};
_.C(qC,_.N_);_.J=qC.prototype;_.J.activeChanged=function(){if(this.active){var S=_.Ur(this.hostElement).querySelector("#header");S&&_.Az(S,"iron-resize");window.addEventListener("scroll",_.xn(this,this.onScroll))}else window.removeEventListener("scroll",_.xn(this,this.onScroll)),_.Az(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.J.guideVisibleChanged=function(){var S=_.Ur(this.hostElement).querySelector("#header");S&&_.Az(S,"iron-resize")};
_.J.onScroll=function(){var S=this;_.e$(this,"onScroll",function(){var c=_.Ur(S.hostElement).querySelector("#header");c&&c.polymerController&&(c=c.polymerController.getScrollState().progress===1?"standard":"seamed",_.Az(S.hostElement,"yt-request-panel-mode-change",{mode:c}))},10)};
_.J.tabsChanged=function(){if(this.tabs){for(var S=null,c=0,Q=this.tabs.length;c<Q;++c){var f=this.tabs[c].tabRenderer;if(f&&f.selected){S=c;break}}this.selected=S}};
_.J.onTabsActivate=function(S){_.Az(this.hostElement,"yt-navigate",{endpoint:this.tabs[S.detail.selected].tabRenderer.endpoint})};
qC.prototype.tabsChanged=qC.prototype.tabsChanged;qC.prototype.guideVisibleChanged=qC.prototype.guideVisibleChanged;qC.prototype.activeChanged=qC.prototype.activeChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qC.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],qC.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.Z(),_.P("design:type",Array)],qC.prototype,"tabs",void 0);
_.d([_.Z(),_.P("design:type",Object)],qC.prototype,"selected",void 0);_.d([_.Z(),_.P("design:type",Boolean)],qC.prototype,"active",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],qC.prototype,"disableHeaderFluidWidth",void 0);_.d([_.B0("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qC.prototype,"activeChanged",null);
_.d([_.B0("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qC.prototype,"guideVisibleChanged",null);_.d([_.B0("tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qC.prototype,"tabsChanged",null);_.d([_.KU()],qC);var o$N=[_.m.YtRendererBehavior,_.gL.YtdGuideStateAwareBehavior,qC.prototype];var mN1=2/3,S50=_.qo(130749),crE=function(S,c){var Q=this;this.element=S;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){Q.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:mN1,moveAction:function(f){Q.moveAction(f)},
triggerAction:function(){Q.element.isReloading=!0;_.rj(_.Kv(),{visualElement:S50});_.BI.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:Q.element}})}}}};
_.z7(_.Kv(),S50,this.layer);this.gesture=new _.xe(S,c,this.refreshConfig,"pan-down");this.attach()};
_.J=crE.prototype;_.J.attach=function(){this.gesture.attach()};
_.J.detach=function(){this.gesture.detach()};
_.J.reset=function(){this.element.close()};
_.J.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.J.moveAction=function(S){this.element.rotation=S*360};var QXV=_.qo(130750),Tt=function(S,c,Q,f,U){var a=this;this.element=S;this.parent=Q;this.channelHeader=f;this.ytdReduxDispatch=U;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){a.tabsStartAtInPx=a.channelHeader.clientHeight-48;var X;(X=a.selectedTab)!=null&&X.title&&(X=_.fl().resolve(_.QS(_.oZ)))&&(X=X.getCurrentPage(),a.lastVisitedTabScrollPosition=X.getScrollTop(),a.previousTab&&
((a.lastVisitedTabScrollPosition===void 0?0:a.lastVisitedTabScrollPosition<a.channelHeader.clientHeight-48)?a.scrollPositionForTabs.has(a.selectedTab.title)&&a.scrollPositionForTabs.delete(a.selectedTab.title):a.scrollPositionForTabs.set(a.selectedTab.title,X.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:fUO(),triggerAction:function(){a.navigate(a.previousTab)},
moveAction:function(X,z){a.moveAction(X,z)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-fUO(),triggerAction:function(){a.navigate(a.nextTab)},
moveAction:function(X,z){a.moveAction(X,z)}}}};
_.z7(_.Kv(),QXV,this.layer);this.gesture=new _.xe(S,c,this.tabConfig);this.attach()};
Tt.prototype.attach=function(){this.gesture.attach()};
Tt.prototype.detach=function(){this.gesture.detach()};
Tt.prototype.tabsChanged=function(S){if(S){var c=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next()){Q=Q.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=Q);var f=void 0;if((f=Q)==null?0:f.selected)this.previousTab=c,this.selectedTab=Q;c=Q}c=this.gesture;S=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}});
c.config=S;this.scrollPositionNeedsUpdate=!0}};
Tt.prototype.moveAction=function(S,c){if(!this.tabsElement){var Q;this.tabsElement=(Q=this.parent.header)==null?void 0:Q.tabsElement;c==="right"&&this.previousTab?_.Z3$(_.ls.instance,this.previousTab.endpoint,{},""):c==="left"&&this.nextTab&&_.Z3$(_.ls.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}Q=this.tabsElement._pos;c==="right"&&(S*=-1);this.tabsElement._positionBar(Q.width,Q.left*1+Q.width*S)};
var fUO=function(){var S,c;return(c=(S=_.fl().resolve(_.oZ).getCurrentPage())==null?void 0:S.clientWidth)!=null?c:0};
Tt.prototype.navigate=function(S){this.element.data=void 0;if(S=S==null?void 0:S.endpoint)this.ytdReduxDispatch(qBU(!0)),_.rj(_.Kv(),{visualElement:QXV}),_.BI.instance.resolveCommand({navigateAction:{endpoint:S}},{form:{element:this.element}})};var UMZ;var JrZ;var w7=function(){return _.W.apply(this,arguments)||this};
_.C(w7,_.W);w7.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],w7.prototype,"data",void 0);_.d([_.e({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],w7);
_.k(w7,"ytd-labs-edit-renderer",function(){if(JrZ!==void 0)return JrZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return JrZ=S},{mode:1});var aU2;var sv=function(){var S=_.W.apply(this,arguments)||this;S.dark=!1;S.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";S.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(sv,_.W);sv.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
sv.prototype.ready=function(){var S=document.documentElement.hasAttribute("dark");this.setBackgroundImage(S);this.dark=S};
sv.prototype.onDarkModeToggledAction=function(S){this.setBackgroundImage(S);this.dark=S};
sv.prototype.setBackgroundImage=function(S){_.Or(this.hostElement,{"--yt-labs-header-background":"url("+(S?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],sv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],sv.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sv.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],sv.prototype,"dark",void 0);
_.d([_.e({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],sv);
_.k(sv,"ytd-labs-header-renderer",function(){if(aU2!==void 0)return aU2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return aU2=S},{mode:1});var ArO;var MC=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return S};
_.C(MC,_.W);MC.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"}}}}}};
MC.prototype.onYtToggleButton=function(S){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",S.detail.toggled)};
MC.prototype.onManageLabsState=function(S){if(S=_.Y(S,rEV))S.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?S.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&S.labsItemId===this.data.labsItemId&&(S.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.XF(this.hostElement,"yt-check-labs-opted-in-state").some(function(c){return c})&&this.data.confirmationDialogCommand?_.FF(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.fl().resolve(_.U8).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&S.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.fl().resolve(_.U8).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
MC.prototype.onCheckLabsOptedInState=function(){var S=this.get("data.primaryButton.toggleButtonRenderer");return S?S.isToggled:!1};
_.Rh.Object.defineProperties(MC.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
MC.prototype.onYtToggleButton=MC.prototype.onYtToggleButton;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],MC.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],MC.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],MC.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],MC.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],MC.prototype,"itemStyle",null);_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],MC.prototype,"onYtToggleButton",null);_.d([_.e({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],MC);
_.k(MC,"ytd-labs-item-renderer",function(){if(ArO!==void 0)return ArO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ArO=S},{mode:1});var XOO;var OqE;var iP=function(){return _.W.apply(this,arguments)||this};
_.C(iP,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],iP.prototype,"data",void 0);_.d([_.e({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],iP);
_.k(iP,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(OqE!==void 0)return OqE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return OqE=S},{mode:1});var zaU;var ZF=function(){return _.W.apply(this,arguments)||this};
_.C(ZF,_.W);ZF.prototype.observeSuperchatChip=function(){if(this.data){var S={"--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)};_.Or(this.hostElement,S)}};
ZF.prototype.colorFromDecimal=function(S){return _.gh(Number(S||0))};
ZF.prototype.observeSuperchatChip=ZF.prototype.observeSuperchatChip;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ZF.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ZF.prototype,"observeSuperchatChip",null);_.d([_.e({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],ZF);
_.k(ZF,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(zaU!==void 0)return zaU;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return zaU=S},{mode:1});var Gt=function(){return _.W.apply(this,arguments)||this};
_.C(Gt,_.W);Gt.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"}}}};
_.Rh.Object.defineProperties(Gt.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.ig),_.P("design:type",Object)],Gt.prototype,"ytdDismissibleItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Gt.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Gt.prototype,"hideMessageBlock",null);
_.d([_.e({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Gt);
_.k(Gt,"ytd-live-chat-history-entry-renderer",function(){if(XOO!==void 0)return XOO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return XOO=S},{mode:1});var xMN;var WU=function(){return _.W.apply(this,arguments)||this};
_.C(WU,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],WU.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],WU.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],WU);
_.k(WU,"ytd-channel-options-renderer",function(){if(xMN!==void 0)return xMN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return xMN=S},{mode:1});var FNE;var g7=function(){return _.W.apply(this,arguments)||this};
_.C(g7,_.W);g7.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],g7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],g7.prototype,"data",void 0);_.d([_.e({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],g7);
_.k(g7,"ytd-settings-email-item-renderer",function(){if(FNE!==void 0)return FNE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return FNE=S},{mode:1});var BBT;var eQ=function(){return _.W.apply(this,arguments)||this};
_.C(eQ,_.W);eQ.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"}}}};
eQ.prototype.getExpansionIcon=function(S){return S?"COLLAPSE":"EXPAND"};
eQ.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.Rh.Object.defineProperties(eQ.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],eQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],eQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],eQ.prototype,"data",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],eQ.prototype,"expanded",void 0);_.d([_.M("expanded"),_.P("design:type",String),_.P("design:paramtypes",[])],eQ.prototype,"emailListExpanded",null);
_.d([_.nU("#options"),_.P("design:type",Object)],eQ.prototype,"options",void 0);_.d([_.e({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],eQ);
_.k(eQ,"ytd-settings-email-list-renderer",function(){if(BBT!==void 0)return BBT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return BBT=S},{mode:1});var IUZ;var ke=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return S};
_.C(ke,_.W);ke.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"}}}};
ke.prototype.handleSignalActionSubmitForm=function(){var S,c=(S=this.formRenderer)==null?void 0:S.getForm();c&&this.data.serviceEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},c,{element:this.hostElement})})};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ke.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ke.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ke.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ke.prototype,"data",void 0);_.d([_.nU("yt-form-renderer"),_.P("design:type",Object)],ke.prototype,"formRenderer",void 0);
_.d([_.e({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],ke);
_.k(ke,"ytd-settings-gaia-link-renderer",function(){if(IUZ!==void 0)return IUZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return IUZ=S},{mode:1});var n7V;var r7=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return S};
_.C(r7,_.W);r7.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.zUE()&&this.set("data.hidden",!1)};
r7.prototype.onSwitchReady=function(){var S=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.u("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.ORN().then(function(c){c&&(Notification.permission==="default"?S.set("data.hidden",!1):Notification.permission==="granted"&&_.ms("NotificationsDisabled").then(function(Q){Q||_.XF(S.hostElement,"yt-toggle-settings-switch",[S.data.id,!Q]);S.set("data.hidden",!1)}).catch(function(){}))})})};
r7.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}}}}};
r7.prototype.handleUpdateOptionsCommand=function(S){(S=_.Y(S,_.yPd))&&this.data&&this.data.id===S.id&&(this.set("data.hidden",S.hidden),S.text!==void 0&&this.set("data.text",S.text),S.clearOptions&&this.set("data.options",[]))};
r7.prototype.onSwitchReady=r7.prototype.onSwitchReady;r7.prototype.dataChanged=r7.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],r7.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],r7.prototype,"data",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],r7.prototype,"dataChanged",null);_.d([_.FV("yt-settings-switch-ready"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],r7.prototype,"onSwitchReady",null);_.d([_.e({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],r7);
_.k(r7,"ytd-settings-options-renderer",function(){if(n7V!==void 0)return n7V;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return n7V=S},{mode:1});var bqN;var d7=function(){return _.W.apply(this,arguments)||this};
_.C(d7,_.W);d7.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
d7.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
d7.prototype.onYtExpanderMoreTapped=d7.prototype.onYtExpanderMoreTapped;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],d7.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],d7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],d7.prototype,"data",void 0);
_.d([_.FV("yt-expander-more-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],d7.prototype,"onYtExpanderMoreTapped",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],d7);
_.k(d7,"ytd-product-details-description-renderer",function(){if(bqN!==void 0)return bqN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return bqN=S},{mode:1});var NBE;var vU=function(){var S=_.W.apply(this,arguments)||this;S.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";S.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";S.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";S.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return S};
_.C(vU,_.W);vU.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Rh.Object.defineProperties(vU.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:(c=S.offerData)==null?void 0:c.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?void 0:S.purchaseButtonRenderers)!==void 0&&((c=this.data)==null?void 0:c.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.formattedFromMerchantText)&&(!((c=this.data)==null||!c.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],vU.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vU.prototype,"data",void 0);
_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],vU.prototype,"shippingIcon",void 0);_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],vU.prototype,"shippingAddressIcon",void 0);_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],vU.prototype,"googleGuaranteeIcon",void 0);
_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?String:void 0}),_.P("design:type",Object)],vU.prototype,"returnPolicyIcon",void 0);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vU.prototype,"showAdditionalFees",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vU.prototype,"showMultiPurchaseButtons",null);
_.d([_.M("data","showMultiPurchaseButtons"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],vU.prototype,"showPurchaseData",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],vU);
_.k(vU,"ytd-product-details-hero-offer-renderer",function(){if(NBE!==void 0)return NBE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return NBE=S},{mode:1});var KNT;var $MO;var PU=function(){return _.W.apply(this,arguments)||this};
_.C(PU,_.W);_.J=PU.prototype;_.J.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.J.onKeyDown=function(S){S=S.keyCode;S!==13&&S!==32||this.handleSelection()};
_.J.onMouseEnterImage=function(){var S;((S=this.data)==null?void 0:S.thumbnailDetails)!==void 0&&_.Oz(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.J.onMouseLeaveImage=function(){_.Oz(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.J.handleSelection=function(){this.data&&_.Az(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.Rh.Object.defineProperties(PU.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.isSelected)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],PU.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],PU.prototype,"isSelected",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],PU);
_.k(PU,"ytd-product-details-thumbnail-renderer",function(){if($MO!==void 0)return $MO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return $MO=S},{mode:1});var L7=function(){var S=_.W.apply(this,arguments)||this;var c={};S.actionMap=(c["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",c["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",c);S.selectedThumbnailIndex=0;S.selectItem=function(Q){Q.target.onKeyDown(Q)};
return S};
_.C(L7,_.W);_.J=L7.prototype;_.J.handlePreviewImageSelect=function(S){this.hoverThumbnail=S};
_.J.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.J.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.J.onThumbnailSelected=function(S,c){this.selectedThumbnailIndex=c};
_.J.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.J.updateOffset=function(){var S=_.Ur(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-S));this.ytdHorizontalListBehavior.reposition_()};
_.Rh.Object.defineProperties(L7.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.imageRenderer){var c,Q;return((c=this.data)==null?void 0:(Q=c.imageRenderer)==null?void 0:Q.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var S;if((S=this.data)==null?0:S.imageRenderer){var c;return(c=_.Y(this.data.imageRenderer[this.selectedThumbnailIndex],v$E))==null?void 0:c.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var S=this,c,Q,f,U=(f=(c=this.data)==null?void 0:(Q=c.imageRenderer)==null?void 0:Q.map(function(a,X){return{productDetailsThumbnailRenderer:Object.assign({},_.Y(a,v$E),{index:X,isSelected:X===S.selectedThumbnailIndex})}}))!=null?f:[];
return Object.assign({},this.data,{imageRenderer:U})}}});
L7.prototype.updateOffset=L7.prototype.updateOffset;L7.prototype.dataChanged=L7.prototype.dataChanged;L7.prototype.onThumbnailSelected=L7.prototype.onThumbnailSelected;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],L7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],L7.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.QW.YtdHorizontalListBehavior),_.P("design:type",Object)],L7.prototype,"ytdHorizontalListBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],L7.prototype,"componentBehavior",void 0);_.d([_.p([_.AN.YtActionHandlerBehavior]),_.P("design:type",Object)],L7.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],L7.prototype,"data",void 0);_.d([_.Z({value:"$.items.children"}),_.P("design:type",String)],L7.prototype,"itemsPath",void 0);_.d([_.Z({value:3}),_.P("design:type",Number)],L7.prototype,"initialCount",void 0);
_.d([_.nU("#items"),_.P("design:type",Object)],L7.prototype,"items",void 0);_.d([_.Z(),_.P("design:type",Object)],L7.prototype,"selectedThumbnailIndex",void 0);_.d([_.Z(),_.P("design:type",Object)],L7.prototype,"hoverThumbnail",void 0);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],L7.prototype,"showThumbnails",null);
_.d([_.FV("ytd-product-details-thumbnail-renderer-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Number]),_.P("design:returntype")],L7.prototype,"onThumbnailSelected",null);_.d([_.M("data","selectedThumbnailIndex","hoverThumbnail"),_.P("design:type",Object),_.P("design:paramtypes",[])],L7.prototype,"thumbnailDetails",null);_.d([_.M("data","selectedThumbnailIndex"),_.P("design:type",Object),_.P("design:paramtypes",[])],L7.prototype,"populatedData",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L7.prototype,"dataChanged",null);_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],L7.prototype,"updateOffset",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],L7);
_.k(L7,"ytd-product-details-image-carousel-renderer",function(){if(KNT!==void 0)return KNT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return KNT=S},{mode:_.A2("kevlar_poly_si_batch_j079")?1:2});var uCV;var Ev=function(){return _.W.apply(this,arguments)||this};
_.C(Ev,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ev.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ev.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Ev.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ev.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],Ev);
_.k(Ev,"ytd-product-details-offer-renderer",function(){if(uCV!==void 0)return uCV;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return uCV=S},{mode:1});var jXg;var tu=function(){var S=_.W.apply(this,arguments)||this;S.isOffersHidden=!0;return S};
_.C(tu,_.W);tu.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var S,c=_.Y((S=this.data)==null?void 0:S.viewOffersButton,_.GF);c&&this.ytRendererBehavior.logExplicitClick(c)};
tu.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.Rh.Object.defineProperties(tu.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return(Q=_.Y((S=this.data)==null?void 0:(c=S.offers)==null?void 0:c[0],t3g))==null?void 0:(f=Q.offerData)==null?void 0:f.vendorLogoUrl}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tu.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],tu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],tu.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tu.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],tu.prototype,"isOffersHidden",void 0);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],tu.prototype,"firstOfferVendorLogoUrl",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],tu);
_.k(tu,"ytd-product-details-offers-container-renderer",function(){if(jXg!==void 0)return jXg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return jXg=S},{mode:1});var lU1;var Y58;var VK=function(){return _.W.apply(this,arguments)||this};
_.C(VK,_.W);VK.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
VK.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.Oz(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
VK.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.Oz(this,"ytd-product-details-variant-image-unselect")};
_.Rh.Object.defineProperties(VK.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 S;return((S=this.data)==null?void 0:S.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?void 0:S.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((c=this.data)==null?void 0:c.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((Q=this.data)==null?void 0:Q.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var S;if(((S=this.data)==null?void 0:S.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var S,c;return this.isUnavailable?(S=this.data)==null?void 0:S.variantOptionUnavailableAccessibilityLabel:(c=this.data)==null?void 0:c.variantOptionAccessibilityLabel}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VK.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],VK.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VK.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],VK.prototype,"displayType",void 0);
_.d([_.M("displayType","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VK.prototype,"isImageButton",null);_.d([_.M("displayType","data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VK.prototype,"isPillButton",null);_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VK.prototype,"isActive",null);
_.d([_.M("data"),_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean),_.P("design:paramtypes",[])],VK.prototype,"isUnavailable",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],VK.prototype,"thumbnailDetails",null);_.d([_.M("isUnavailable","data"),_.P("design:type",Object),_.P("design:paramtypes",[])],VK.prototype,"accessibilityLabel",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],VK);
_.k(VK,"ytd-product-details-variant-option-renderer",function(){if(Y58!==void 0)return Y58;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Y58=S},{mode:1});var CU0;var Rb=function(){var S=_.W.apply(this,arguments)||this;S.variantsExpanded=!1;S.hideShowMoreLessVariantButton=!0;S.initialized=!1;S.computeVariantsDebouncer=null;S.computeVariants=function(c){c=c===void 0?!1:c;S.variantsExpanded||S.showOptions()||!c||(S.variantsExpanded=!0);if(S.variantsExpanded){c=_.A(S.items.children);for(var Q=c.next();!Q.done;Q=c.next())Q.value.hidden=!1}S.initialized=!0};
return S};
_.C(Rb,_.W);_.J=Rb.prototype;_.J.ready=function(){var S=this;setTimeout(function(){S.computeVariants(!0)})};
_.J.showOptions=function(){for(var S=_.A(this.items.children),c=S.next();!c.done;c=S.next())c.value.hidden=!0;var Q=this.container.getBoundingClientRect().width,f=0,U=S=0;c=!1;for(var a=_.A(this.items.children),X=a.next();!X.done;X=a.next()){X=X.value;X.hidden=!1;var z=X.getBoundingClientRect().width;if(f+z<Q)f+=z;else if(++U<2)f=z;else break;S+=1;X.hasAttribute("is-active")&&(c=!0)}for(Q=S;Q<this.items.children.length;Q++)this.items.children[Q].hidden=!0;this.hideShowMoreLessVariantButton=S===this.items.children.length;
return c};
_.J.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.Ak(this.computeVariantsDebouncer,_.Vz.after(100),this.computeVariants)};
_.J.onShowMoreLessVariantsButtonClick=function(){var S;(S=this.data)!=null&&S.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.J.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.Rh.Object.defineProperties(Rb.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.variantOptionRenderers)==null?void 0:c.find(function(a){return _.Y(a,L3E).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),f,U;
return(U=(f=_.Y(Q,L3E))==null?void 0:f.name)!=null?U:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.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"}}}});
Rb.prototype.debouncedComputeVariants=Rb.prototype.debouncedComputeVariants;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Rb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Rb.prototype,"componentBehavior",void 0);_.d([_.p(_.w9),_.P("design:type",Object)],Rb.prototype,"ironResizableBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Rb.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Rb.prototype,"variantsExpanded",void 0);_.d([_.Z(),_.P("design:type",Object)],Rb.prototype,"hideShowMoreLessVariantButton",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Rb.prototype,"initialized",void 0);_.d([_.nU("#items"),_.P("design:type",HTMLDivElement)],Rb.prototype,"items",void 0);_.d([_.nU("#container"),_.P("design:type",HTMLDivElement)],Rb.prototype,"container",void 0);
_.d([_.nU("#more-variants-button"),_.P("design:type",HTMLElement)],Rb.prototype,"moreVariantsButton",void 0);_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Rb.prototype,"selectedOptionName",null);_.d([_.B0("data","variantsExpanded"),_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Rb.prototype,"debouncedComputeVariants",null);
_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],Rb.prototype,"displayType",null);_.d([_.M("displayType"),_.P("design:type",Object),_.P("design:paramtypes",[])],Rb.prototype,"variantItemsClassname",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Rb);
_.k(Rb,"ytd-product-details-variant-renderer",function(){if(CU0!==void 0)return CU0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return CU0=S},{mode:1});var yK=function(){return _.W.apply(this,arguments)||this};
_.C(yK,_.W);
yK.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"}}}};
_.Rh.Object.defineProperties(yK.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(c=_.Y((S=this.data)==null?void 0:S.offersContainerRenderer,E$2))==null?void 0:c.offers;return Q!==void 0&&(Q==null?void 0:Q.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 S,c,Q;return((Q=(S=this.data)==null?void 0:(c=S.variants)==null?void 0:c.map(function(f){var U,a;f=(a=(U=_.Y(f,PpB))==null?void 0:U.variantOptionRenderers)==null?void 0:a.find(function(z){var x;return((x=_.Y(z,L3E))==null?void 0:x.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var X;return(X=_.Y(f,L3E))==null?void 0:X.name}).filter(function(f){return typeof f==="string"}))!=null?Q:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f=(c=_.Y((S=this.data)==null?void 0:S.shoppingFlaggingRenderer,V3p))==null?void 0:(Q=c.reportButton)==null?void 0:Q.buttonRenderer;if(f)return{text:f.text,command:f.command,icon:{iconType:"FLAG"},accessibilityData:f.accessibilityData,trackingParams:f.trackingParams,loggingDirectives:f.loggingDirectives}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yK.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],yK.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],yK.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yK.prototype,"data",void 0);_.d([_.nU("#image-carousel-renderer"),_.P("design:type",Object)],yK.prototype,"imageCarouselRenderer",void 0);
_.d([_.nU("#hero-offer-renderer"),_.P("design:type",Object)],yK.prototype,"productDetailsHeroOfferRenderer",void 0);_.d([_.nU("#variants"),_.P("design:type",Object)],yK.prototype,"productDetailsVariantRenderer",void 0);_.d([_.nU("#offers"),_.P("design:type",Object)],yK.prototype,"productDetailsOffersContainerRenderer",void 0);_.d([_.nU("#description-renderer"),_.P("design:type",Object)],yK.prototype,"productDetailsDescriptionRenderer",void 0);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yK.prototype,"showPurchaseData",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yK.prototype,"showHeroOfferRenderer",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yK.prototype,"showBrandText",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yK.prototype,"showOffers",null);
_.d([_.M("showOffers","showPurchaseData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yK.prototype,"showBuySeparator",null);_.d([_.M("showOffers","showPurchaseData"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],yK.prototype,"showBuyCard",null);_.d([_.M("data"),_.P("design:type",String),_.P("design:paramtypes",[])],yK.prototype,"selectedVariantsText",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],yK.prototype,"shoppingReportingButtonData",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],yK);
_.k(yK,"ytd-product-details-renderer",function(){if(lU1!==void 0)return lU1;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return lU1=S},{mode:1});var HqE;var DM1;var pOG;var ob=function(){return _.W.apply(this,arguments)||this};
_.C(ob,_.W);ob.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Rh.Object.defineProperties(ob.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ob.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],ob.prototype,"formattedAmount",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ob.prototype,"ariaLabel",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.style"),_.P("design:type",String),_.P("design:paramtypes",[])],ob.prototype,"vcBalanceWidgetStyle",null);_.d([_.wM({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],ob);
_.k(ob,"yt-vc-balance-renderer",function(){if(pOG===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;DM1===void 0&&(DM1=document.createElement("template"));var f=DM1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);pOG=S}S=pOG;return S},{mode:2});_.i8("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var mX=function(){return _.W.apply(this,arguments)||this};
_.C(mX,_.W);_.Rh.Object.defineProperties(mX.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:""}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mX.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],mX.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mX.prototype,"data",void 0);_.d([_.Z({selectorArgs:["data.vcBalanceEntityKey"],selector:function(S,c){return _.FT(S.entities,"vcBalanceEntity",c)}}),
_.P("design:type",Object)],mX.prototype,"vcBalanceEntity",void 0);_.d([_.M("vcBalanceEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],mX.prototype,"formattedAmount",null);_.d([_.M("vcBalanceEntity"),_.P("design:type",String),_.P("design:paramtypes",[])],mX.prototype,"vcBalanceAriaLabel",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],mX);
_.k(mX,"ytd-vc-balance-renderer",function(){if(HqE!==void 0)return HqE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return HqE=S},{mode:1});var haZ;var S_=function(){var S=_.W.apply(this,arguments)||this;S.rotation=0;S.isReloading=!1;return S};
_.C(S_,_.W);S_.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
S_.prototype.reset=function(){this.hostElement.style.opacity=""};
S_.prototype.close=function(){var S=this;return _.O(function(c){if(c.nextAddress==1)return _.F(c,S.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);S.hostElement.style.opacity="0";_.IN(c)})};
S_.prototype.rotationChanged=S_.prototype.rotationChanged;_.d([_.Z(),_.P("design:type",Object)],S_.prototype,"rotation",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],S_.prototype,"isReloading",void 0);_.d([_.nU("#icon"),_.P("design:type",HTMLElement)],S_.prototype,"icon",void 0);_.d([_.B0("rotation"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],S_.prototype,"rotationChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-refresh"})],S_);
_.k(S_,"ytd-refresh",function(){if(haZ!==void 0)return haZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return haZ=S},{mode:1});var q5B;var cQ=function(){return _.W.apply(this,arguments)||this};
_.C(cQ,_.W);cQ.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"}}}};
cQ.prototype.dataChanged=function(){if(this.data){var S=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var c=_.U2(this.data.banner.thumbnails,this.hostElement.clientWidth);c&&(c.indexOf("//")===0&&(c="https:"+c),this.hasBannerArt=!0,_.Or(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+c+")"}))}this.hasBannerArt!==S&&_.Ur(this.hostElement).querySelector("#header").fire("iron-resize")}};
cQ.prototype.updateSelectedFromBinding=function(S){this.selected=S.detail.value};
cQ.prototype.dataChanged=cQ.prototype.dataChanged;_.d([_.p(o$N),_.P("design:type",Object)],cQ.prototype,"ytdTabbedHeaderBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.GK),_.P("design:type",Object)],cQ.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],cQ.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],cQ.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cQ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],cQ.prototype,"selected",void 0);_.d([_.Z(),_.P("design:type",Boolean)],cQ.prototype,"active",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],cQ.prototype,"hasBannerArt",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cQ.prototype,"dataChanged",null);_.d([_.e({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],cQ);
_.k(cQ,"ytd-interactive-tabbed-header-renderer",function(){if(q5B!==void 0)return q5B;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return q5B=S},{mode:1});var TBE;var QF=function(){return _.W.apply(this,arguments)||this};
_.C(QF,_.W);QF.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
QF.prototype.computeActionsAlignment=function(S){return(S==null?void 0:S.actionsAlignment)||""};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],QF.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.P("design:type",String)],QF.prototype,"actionsAlignment",void 0);_.d([_.e({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],QF);
_.k(QF,"ytd-page-footer-renderer",function(){if(TBE!==void 0)return TBE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return TBE=S},{mode:1});var wO8;var sXZ;var f_=function(){var S=_.W.apply(this,arguments)||this;S.isEditing=!1;S.useSlot=!1;S.isMultiline=!1;return S};
_.C(f_,_.W);_.J=f_.prototype;_.J.onKeydown=function(S){if(S.keyCode===13&&!this.isMultiline)this.onSave();else if(S.keyCode===27)this.onCancel()};
_.J.computeComponentStyle=function(S){return(S==null?0:S.style)?S.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.J.computeisMultiline=function(S){if(this.multilineOverride!==void 0)return this.multilineOverride;var c,Q;return!!(S==null?0:(c=S.formField)==null?0:(Q=c.textInputFormFieldRenderer)==null?0:Q.isMultiline)};
_.J.computeTextDisplayed=function(S,c){if(S)return S;if(c)return c};
_.J.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.J.onSave=function(){if(this.textForm.validate()){this.textForm.save();var S=this.textForm.value;if(S)this.set("data.textDisplayed",_.LK(S));else{var c;((c=this.data)==null?0:c.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.d4("inline-form-changed",this.data));this.isEditing=!1}};
_.J.onCancel=function(){var S=_.Em(this.data.textDisplayed);S===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(S);this.isEditing=!1};
f_.prototype.onKeydown=f_.prototype.onKeydown;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],f_.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],f_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],f_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],f_.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],f_.prototype,"isEditing",void 0);_.d([_.Z(),_.P("design:type",Object)],f_.prototype,"useSlot",void 0);_.d([_.Z(),_.P("design:type",Boolean)],f_.prototype,"multilineOverride",void 0);_.d([_.Z(),_.P("design:type",Boolean)],f_.prototype,"enableOverlayTheme",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.P("design:type",String)],f_.prototype,"componentStyle",void 0);
_.d([_.Z({computed:"computeisMultiline(data)"}),_.P("design:type",Object)],f_.prototype,"isMultiline",void 0);_.d([_.nU("#text-form"),_.P("design:type",Object)],f_.prototype,"textForm",void 0);_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],f_.prototype,"onKeydown",null);_.d([_.e({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],f_);
_.k(f_,"ytd-inline-form-renderer",function(){if(sXZ!==void 0)return sXZ;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return sXZ=S},{mode:1});var Mk2;var UN=function(){var S=_.W.apply(this,arguments)||this;S.previousSelectValue=void 0;S.selectedItemMessage=void 0;return S};
_.C(UN,_.W);UN.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
UN.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var S,c,Q,f,U=(S=this.data)==null?void 0:(c=S.dropdown)==null?void 0:(Q=c.dropdownRenderer)==null?void 0:(f=Q.entries)==null?void 0:f.map(function(z){return z.privacyDropdownItemRenderer});
S=_.A(U!=null?U:[]);for(c=S.next();!c.done;c=S.next())if((c=c.value)&&c.int32Value===this.selectedValue){this.selectedItemMessage=c.itemMessage;break}}else this.selectedItemMessage=void 0;var a;(a=this.onValueChanged)==null||a.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var X;(X=this.data)!=null&&X.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
UN.prototype.onValueChangedForSelectedValue=function(S){this.selectedValue=S.detail.value};
UN.prototype.selectedValueChanged=UN.prototype.selectedValueChanged;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],UN.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],UN.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],UN.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],UN.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],UN.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],UN.prototype,"theme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Number)],UN.prototype,"selectedValue",void 0);_.d([_.Z(),_.P("design:type",Function)],UN.prototype,"onValueChanged",void 0);
_.d([_.$n("selectedValue"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],UN.prototype,"selectedValueChanged",null);_.d([_.e({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],UN);
_.k(UN,"ytd-dropdown-form-field-renderer",function(){if(Mk2!==void 0)return Mk2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Mk2=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var iqT;var JI=function(){return _.W.apply(this,arguments)||this};
_.C(JI,_.W);_.Rh.Object.defineProperties(JI.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var S=[],c=_.A(this.data||[]),Q=c.next();!Q.done;Q=c.next())(Q=_.Y(Q.value,RyU))&&S.push(Q);return S}}});
_.d([_.Z(),_.P("design:type",Array)],JI.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],JI.prototype,"byline",null);_.d([_.e({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],JI);
_.k(JI,"ytd-playlist-byline-renderer",function(){if(iqT!==void 0)return iqT;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return iqT=S},{mode:1});var ZqV;var ad=function(){var S=_.W.apply(this,arguments)||this;S.rtlBullet=_.u("web_playlist_stats_rtl_bullet_icon_killswitch");S.modern=_.u("web_modern_buttons");S.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return S};
_.C(ad,_.W);_.J=ad.prototype;_.J.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"}}}}};
_.J.attached=function(){};
_.J.computeIsCustomThumbnail=function(S){return S?!!S.playlistCustomThumbnailRenderer:!1};
_.J.onYtNavigate=function(S,c){if(c&&c.actions&&c.actions.indexOf("shuffle")>-1){S=_.fl().resolve(_.G7);var Q=c.tempData||{};Q.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);c.tempData=Q;S.isShuffleNextPlaylist=!0}};
_.J.onUpdatePlaylistAction=function(S){var c;S=(c=_.Y(S,_.pgp))==null?void 0:c.updatedRenderer;if(c=_.Y(S,hu))this.data=c};
_.J.computeStyleType=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.J.computeThumbnailWidth=function(S){return S==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.J.computeHideThumbnailAria=function(S){if(S==null?0:S.thumbnailOverlays)for(var c=0;c<S.thumbnailOverlays.length;c++){var Q=void 0;if((Q=S.thumbnailOverlays[c])==null?0:Q.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
ad.prototype.onYtNavigate=ad.prototype.onYtNavigate;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ad.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ad.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ad.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ad.prototype,"ytComponentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],ad.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ad.prototype,"rtlBullet",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.P("design:type",String)],ad.prototype,"styleType",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.P("design:type",Number)],ad.prototype,"thumbnailWidth",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ad.prototype,"modern",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.P("design:type",Boolean)],ad.prototype,"isCustomThumbnail",void 0);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],ad.prototype,"onYtNavigate",null);_.d([_.e({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],ad);
_.k(ad,"ytd-playlist-sidebar-primary-info-renderer",function(){if(ZqV!==void 0)return ZqV;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ZqV=S},{mode:1});var G60;var AI=function(){return _.W.apply(this,arguments)||this};
_.C(AI,_.W);AI.prototype.computeOwnerVisibility=function(S){return!(!S.videoOwner&&!S.button)};
AI.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],AI.prototype,"data",void 0);_.d([_.e({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],AI);
_.k(AI,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(G60!==void 0)return G60;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return G60=S},{mode:1});var WNN;var XI=function(){var S=_.W.apply(this,arguments)||this;S.expanded=!1;S.isCompact=!1;return S};
_.C(XI,_.W);_.J=XI.prototype;_.J.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.J.dataChanged=function(){this.data&&_.kD(_.Ur(this.text),_.wcp(_.ize,_.Em(this.data.text||null)))};
_.J.computeAutoScrollEnabled=function(S,c){return S&&!c};
_.J.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.J.toggleOnTap=function(){this.expanded=!this.expanded};
XI.prototype.expandedChanged=XI.prototype.expandedChanged;XI.prototype.dataChanged=XI.prototype.dataChanged;_.d([_.p(_.kuE),_.P("design:type",Object)],XI.prototype,"ytdAutoScrollBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],XI.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],XI.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],XI.prototype,"expanded",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],XI.prototype,"isCompact",void 0);_.d([_.Z({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.P("design:type",Boolean)],XI.prototype,"autoScrollEnabled",void 0);_.d([_.nU("#text"),_.P("design:type",Object)],XI.prototype,"text",void 0);_.d([_.nU("#expander-icon"),_.P("design:type",Object)],XI.prototype,"expanderIcon",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XI.prototype,"dataChanged",null);_.d([_.B0("expanded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],XI.prototype,"expandedChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],XI);
_.k(XI,"ytd-channel-legal-info-renderer",function(){if(WNN!==void 0)return WNN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return WNN=S},{mode:1});var g7E;var eaN=_.K8("DOWNLOAD",{},"Download"),k6Z=_.K8("DOWNLOADING",{},"Downloading"),rr8=_.K8("DOWNLOADED",{},"Downloaded"),ON=function(){var S=_.W.apply(this,arguments)||this;S.downloadProgress=0;S.isDownloadComplete=!1;S.transferState="TRANSFER_STATE_UNKNOWN";return S};
_.C(ON,_.W);_.J=ON.prototype;_.J.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.J.dataChanged=function(){var S;(S=this.data)!=null&&S.tooltip||(S=_.Z8(_.V5().getState(),this.playlistId),this.updateButtonState(S))};
_.J.computePlaylistId=function(S){return S};
_.J.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.J.updateButtonState=function(S){if(this.data&&(this.data.tooltip!==k6Z||!_.jD(S))){this.isDownloadComplete=!1;switch(S){case "TRANSFER_STATE_UNKNOWN":S=eaN;var c="OFFLINE_DOWNLOAD";var Q="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":S=rr8;c="OFFLINE_PIN";Q="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":S=k6Z;c="OFFLINE_DOWNLOADING_ZERO";Q="ACTION_REMOVE_WITH_PROMPT";
break;default:S=eaN,c="OFFLINE_DOWNLOAD",Q="ACTION_ADD"}var f=Object.assign({},this.data);f.tooltip=S;f.accessibilityData={accessibilityData:{label:S}};f.icon={iconType:c};f.size="SIZE_DEFAULT";_.Y(f.command,_.Ii)&&(_.Y(f.command,_.Ii).action=Q);this.set("data",f)}};
_.J.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var S="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?S="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?S="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?S="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?S="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?S="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(S="OFFLINE_PIN",this.isDownloadComplete=!0);var c;S!==((c=this.data.icon)==null?void 0:c.iconType)&&(c=Object.assign({},this.data),c.tooltip=k6Z,c.accessibilityData={accessibilityData:{label:k6Z}},c.icon={iconType:S},_.Y(c.command,_.Ii)&&(_.Y(c.command,_.Ii).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",c))}};
ON.prototype.updateProgress=ON.prototype.updateProgress;ON.prototype.onTransferStateChanged=ON.prototype.onTransferStateChanged;ON.prototype.dataChanged=ON.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ON.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],ON.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ON.prototype,"forceIconButton",void 0);
_.d([_.Z({value:!0}),_.P("design:type",Boolean)],ON.prototype,"forceIconOnly",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ON.prototype,"overrides",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ON.prototype,"buttonTooltipPosition",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ON.prototype,"styleActionButton",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ON.prototype,"disableTextTransform",void 0);
_.d([_.Z({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.P("design:type",String)],ON.prototype,"playlistId",void 0);_.d([_.Z(),_.P("design:type",Object)],ON.prototype,"data",void 0);_.d([_.Z({selector:_.HkH,selectorArgs:["playlistId"]}),_.P("design:type",Object)],ON.prototype,"downloadProgress",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ON.prototype,"isDownloadComplete",void 0);
_.d([_.Z({selector:_.Z8,selectorArgs:["playlistId"]}),_.P("design:type",String)],ON.prototype,"transferState",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],ON.prototype,"showTooltips",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],ON.prototype,"sendCommandWhenDisabled",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ON.prototype,"disabled",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ON.prototype,"dataChanged",null);_.d([_.$n("transferState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ON.prototype,"onTransferStateChanged",null);_.d([_.$n("downloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ON.prototype,"updateProgress",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],ON);
_.k(ON,"ytd-download-playlist-button-renderer",function(){if(g7E!==void 0)return g7E;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return g7E=S},{mode:1});var dMT;_.f4(_.DNT,"thumbnail-overlay-button-view-model",{props:{data:_.y$,lockupExperiments:_.y$}});var zn=function(){var S=_.W.apply(this,arguments)||this;S.isSquare=!1;S.isVertical=!1;return S};
_.C(zn,_.W);zn.prototype.computeIsSquare=function(S){return S!=null&&S.thumbnail?YBG(S.thumbnail)==="SQUARE":!1};
zn.prototype.computeIsVertical=function(S){return S!=null&&S.thumbnail?YBG(S.thumbnail)==="VERTICAL":!1};
zn.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.P("design:type",Object)],zn.prototype,"isSquare",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.P("design:type",Object)],zn.prototype,"isVertical",void 0);
_.d([_.Z(),_.P("design:type",Object)],zn.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],zn);
_.k(zn,"ytd-hero-playlist-thumbnail-renderer",function(){if(dMT!==void 0)return dMT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return dMT=S},{mode:1});var xE=function(){var S=_.W.apply(this,arguments)||this;S.isDarkTheme=!1;S.isUltraWide=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return S};
_.C(xE,_.W);_.J=xE.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.fl();var S;(S=_.fl().resolve(_.QS(_.Pk)))!=null&&(S.headerElement=this.hostElement)};
_.J.detached=function(){var S;(S=_.fl().resolve(_.QS(_.Pk)))!=null&&(S.headerElement=void 0)};
_.J.onUpdateHeader=function(S){(S=S.detail)&&this.set("data",S)};
_.J.computeTextDisplayed=function(S){if(S)return S.textDisplayed?S.textDisplayed:S.placeholder};
_.J.gradientColorToLinearGradientStop=function(S){var c=this.isDarkTheme?S.darkThemeColor:S.lightThemeColor;return c?_.gh(c)+" "+((S==null?void 0:S.startLocation)||0)*100+"%":"transparent"};
_.J.onWindowResize=function(){var S;((S=this.data)==null?0:S.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.J.onIronResize=function(S){this.isUltraWide=!S.detail.value};
_.J.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.onUpdatePlaylistName=function(S){var c=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},S.detail.value));_.tO(this,function(){var Q;(Q=c.editableTitle)==null||Q.resize()})};
_.J.onUpdatePlaylistDescription=function(S){var c=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},S.detail.value));_.tO(this,function(){var Q;(Q=c.editableDescriptionInlineExpander)==null||Q.resize()})};
_.J.getCinematicData=function(S){return _.Y(S==null?void 0:S.cinematicContainer,_.lP)};
_.Rh.Object.defineProperties(xE.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 S,c=(S=this.getCinematicData(this.data))==null?void 0:S.config;return(S=this.isDarkTheme?c==null?void 0:c.darkThemeBackgroundColor:c==null?void 0:c.lightThemeBackgroundColor)?"background-color:"+_.WV(S)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var S;return _.Y((S=this.data)==null?void 0:S.descriptionForm,dNE)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var S=this,c,Q,f;return"background:linear-gradient(to bottom, "+(((f=(c=this.getCinematicData(this.data))==null?void 0:(Q=c.gradientColorConfig)==null?void 0:Q.map(function(U){return S.gradientColorToLinearGradientStop(U)}))==null?void 0:f.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var S;return _.Em((S=this.data)==null?void 0:S.descriptionTapText)}}});
xE.prototype.onUpdateHeader=xE.prototype.onUpdateHeader;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],xE.prototype,"actionHandlerBehavior",void 0);_.d([_.nU("#description-inline-expander"),_.P("design:type",Object)],xE.prototype,"descriptionInlineExpander",void 0);
_.d([_.nU("#editable-description-inline-expander"),_.P("design:type",Object)],xE.prototype,"editableDescriptionInlineExpander",void 0);_.d([_.Z(),_.P("design:type",Object)],xE.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],xE.prototype,"isUltraWide",void 0);_.d([_.nU("#editable-title-display"),_.P("design:type",Object)],xE.prototype,"editableTitle",void 0);_.d([_.M("isUltraWide"),_.P("design:type",Object),_.P("design:paramtypes",[])],xE.prototype,"maxDescriptionLines",null);
_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xE.prototype,"noCinematicData",null);_.d([_.FV("yt-new-playlist-header"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],xE.prototype,"onUpdateHeader",null);_.d([_.M("data","isDarkTheme"),_.P("design:type",Object),_.P("design:paramtypes",[])],xE.prototype,"backgroundStyle",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xE.prototype,"descriptionFormData",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xE.prototype,"getDropdownTheme",null);_.d([_.M("data","isDarkTheme"),_.P("design:type",String),_.P("design:paramtypes",[])],xE.prototype,"gradientStyle",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],xE.prototype,"descriptionTapText",null);
_.d([_.e({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],xE);
_.k(xE,"ytd-playlist-header-renderer",function(){if(wO8!==void 0)return wO8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wO8=S},{mode:_.A2("kevlar_poly_si_batch_j078")?1:2});var v7N;var PUU;var FI=function(){return _.W.apply(this,arguments)||this};
_.C(FI,_.W);FI.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],FI.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],FI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],FI.prototype,"data",void 0);_.d([_.e({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],FI);
_.k(FI,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(PUU!==void 0)return PUU;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return PUU=S},{mode:1});var BQ=function(){return _.W.apply(this,arguments)||this};
_.C(BQ,_.W);
BQ.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}}}}};
BQ.prototype.computeUsePremiumShowStyle=function(S){if(!S||!S.items)return!1;for(var c=0;c<S.items.length;c++)if(_.Y(S.items[c],hu)){var Q=void 0;return((Q=_.Y(S.items[c],hu))==null?void 0:Q.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],BQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BQ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.P("design:type",Boolean)],BQ.prototype,"usePremiumShowStyle",void 0);
_.d([_.e({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],BQ);
_.k(BQ,"ytd-playlist-sidebar-renderer",function(){if(v7N!==void 0)return v7N;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return v7N=S},{mode:1});var LNg;var E7g;var tkB=function(S,c,Q,f,U,a,X,z){this.minWidth=S;this.minHeight=c;this.recommendedWidth=Q;this.recommendedHeight=f;this.JSC$19534_maxFileSize=U;this.title=a;this.bannerGalleryTitle=X;this.channelId=z;this.picker_=null;S=_.jQz("yt-banner");c=S.addView;Q=(new wz1("youtubebanner")).addUploadMetadata("silo_id","19");Q.opts.ytMaxFileSize=this.JSC$19534_maxFileSize;f=this.recommendedHeight;Q.opts.ytRecWidth=this.recommendedWidth;Q.opts.ytRecHeight=f;c.call(S,Q);S.addView(new _.DA);c=S.addView;Q=new _.DA;
Q.opts.type="ytbanner";c.call(S,Q.JSC$8110_setLabel(this.bannerGalleryTitle));c=S.setTitle(this.title).setSize(1E3);c.urlParamMap_.set("thumbs","orig");Q=this.minWidth;f=this.minHeight;if(isNaN(Q)||isNaN(f))throw Error("lb`"+Q+"`"+f);c.urlParamMap_.set("minSize",Q+"x"+f);c.urlParamMap_.set("cropMode","ytcb");this.builder_=S};
tkB.prototype.open=function(){var S=this;return new _.n1(function(c,Q){_.Fme(S.builder_,function(f){f.action=="picked"?c(f):f.action=="cancel"&&Q(Error("Zl"))});
S.picker_&&S.picker_.dispose();S.picker_=S.builder_.build();S.picker_.setVisible(!0)})};
tkB.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var VkZ=function(S){this.channelId=S},RaV=function(S,c){var Q="";
c.viewToken&&(Q=c.viewToken[2].type);var f=c.docs[0];c=f.crop;S={channel_id:S.channelId,fife_url:f.thumbnails[0].url,photo_id:f.id,is_gallery_image:Q=="ytbanner"};c&&(S.crop_top=c.top,S.crop_right=c.right,S.crop_bottom=c.bottom,S.crop_left=c.left);return _.vfz("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:S})};var Id=function(){var S=_.W.apply(this,arguments)||this;S.ariaLabel=null;return S};
_.C(Id,_.W);_.J=Id.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.J.detached=function(){this.picker&&this.picker.dispose()};
_.J.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.J.computeAriaLabel=function(S){return S};
_.J.onTap=function(){var S=this,c;if((c=this.data)==null||!c.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new tkB(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 Q;(Q=this.picker)==null||Q.open().then(function(f){S.handleBannerPicked(f)},function(){})}};
_.J.handleBannerPicked=function(S){var c=this;this.uploader||(this.uploader=new VkZ(this.data.channelId||""));this.message=this.data.uploadingText;RaV(this.uploader,S).then(function(Q){c.handleBannerUploadSucceeded(Q)},function(Q){c.handleBannerUploadFailed(Q)})};
_.J.handleBannerUploadSucceeded=function(S){S&&S.errors?this.handleBannerUploadFailed(S):(_.Az(this.hostElement,"yt-banner-updated",S),this.message=null)};
_.J.handleBannerUploadFailed=function(S){this.message=S&&S.errors&&S.errors.length?S.errors[0]:null};
Id.prototype.dataChanged=Id.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Id.prototype,"componentBehavior",void 0);_.d([_.p(_.M9),_.P("design:type",Object)],Id.prototype,"ironButtonState",void 0);_.d([_.Z(),_.P("design:type",Object)],Id.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.P("design:type",Object)],Id.prototype,"ariaLabel",void 0);
_.d([_.Z(),_.P("design:type",Object)],Id.prototype,"message",void 0);_.d([_.Z(),_.P("design:type",Object)],Id.prototype,"picker",void 0);_.d([_.Z(),_.P("design:type",Object)],Id.prototype,"uploader",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Id.prototype,"dataChanged",null);_.d([_.e({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],Id);
_.k(Id,"ytd-channel-banner-editor-renderer",function(){if(E7g!==void 0)return E7g;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return E7g=S},{mode:1});var yrE;var o7E=_.oK(["#"]),n_=function(){return _.W.apply(this,arguments)||this};
_.C(n_,_.W);n_.prototype.computeHrefWithDefault=function(S){return this.ytComponentBehavior.computeHref_(S,!0)||_.Cc(o7E)};
n_.prototype.dataChanged=function(){var S=this.data;S&&S.targetId&&_.o9d(_.Hb(),S.targetId,this.moreIcon)};
n_.prototype.dataChanged=n_.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],n_.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],n_.prototype,"data",void 0);_.d([_.nU("#more-icon"),_.P("design:type",Object)],n_.prototype,"moreIcon",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],n_.prototype,"dataChanged",null);
_.d([_.e({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],n_);
_.k(n_,"ytd-channel-tagline-renderer",function(){if(yrE!==void 0)return yrE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return yrE=S},{mode:1});var mMU;var bt=function(){return _.W.apply(this,arguments)||this};
_.C(bt,_.W);_.J=bt.prototype;_.J.ready=function(){var S=this;_.Ur(this.hostElement).querySelector("#form").addEventListener("submit",function(c){S.onSubmit(c)})};
_.J.onDataChanged=function(){var S;((S=this.data)==null?0:S.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.J.onIconButtonKeydown=function(S){S.keyCode===13&&this.iconButton.click()};
_.J.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.J.openOnClickHandler=function(){this.input.focus()};
_.J.onSubmit=function(S){S.preventDefault();return!1};
_.J.submitOnEnterKeyUp=function(S){var c;if(S.keyCode===13&&((c=this.data)==null?0:c.expandedText)){S=this.data.endpoint;c=_.Cn.unsafeClone(S);var Q;((Q=_.Y(c==null?void 0:c.commandMetadata,_.Qw))==null?0:Q.url)?(_.Y(c.commandMetadata,_.Qw).url=_.WG(_.Y(c.commandMetadata,_.Qw).url,"query",this.data.expandedText),_.Y(c,_.KJ)&&(_.Y(c,_.KJ).query=this.data.expandedText),_.Az(this.hostElement,"yt-navigate",{endpoint:c,tempData:{disableCache:!0}})):(Q=new _.Yr("Error: Trying to navigate to an endpoint without url",
S),_.sH(Q))}};
_.J.updateDataExpandedTextFromBinding=function(S){this.set("data.expandedText",S.detail.value)};
_.Rh.Object.defineProperties(bt.prototype,{searchIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"search":"yt-icons:search"}}});
bt.prototype.onDataChanged=bt.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.KoN),_.P("design:type",Object)],bt.prototype,"ytdExpandableInputBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bt.prototype,"data",void 0);_.d([_.nU("#input"),_.P("design:type",Object)],bt.prototype,"input",void 0);_.d([_.nU("#icon-button"),_.P("design:type",HTMLElement)],bt.prototype,"iconButton",void 0);
_.d([_.Z(),_.P("design:type",String),_.P("design:paramtypes",[])],bt.prototype,"searchIcon",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bt.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],bt);
var Cp2=_.aW()(bt,"ytd-expandable-tab-renderer",function(){if(mMU===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);mMU=S}S=mMU;return S},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var S12;var Nl=function(){var S=_.W.apply(this,arguments)||this;S.avatarSize=80;S.ariaLabel=_.K8("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return S};
_.C(Nl,_.W);Nl.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
Nl.prototype.computeHref=function(S){var c;return((c=_.Y(S,_.rQ))==null?0:c.url)?this.componentBehavior.computeHref_(S):null};
Nl.prototype.onTap=function(){var S,c;(S=this.data)==null||!S.editAvatarServiceEndpoint||((c=_.Y(this.data.editAvatarServiceEndpoint,_.rQ))==null?0:c.url)||_.fl().resolve(_.U8).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.d([_.p(_.M9),_.P("design:type",Object)],Nl.prototype,"ironButtonState",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Nl.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Nl.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Nl.prototype,"avatarSize",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Nl.prototype,"ariaLabel",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],Nl);
_.k(Nl,"ytd-channel-avatar-editor",function(){if(S12!==void 0)return S12;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return S12=S},{mode:1});var cgE=_.y_(function(S){var c=S.data;var Q=S.noPadding;var f=S.enableBanner;var U=S.cinematicContainerTopbarOffset;var a=S.allowCinematicContainerOverflow;var X=S.displayAsSidebar;S=S.className;_.To(function(){c().tagManagerId&&(_.qu(c().tagManagerId,_.WY("GL")),TwG(c().tagManagerId))},"xVTVTe");
var z=_.b9(DNB,function(){return c().pageHeaderEntityKey});
return _.B("yt-page-header-renderer",{class:_.n4("page-header-renderer-wiz",S)},_.B(_.h8,{data:function(){var x;return((x=z())==null?0:x.header)?z().header:(X==null?0:X())&&c().sidebarContent?c().sidebarContent:c().content}},{pageHeaderViewModel:function(x){return _.B(_.LKz,{data:x.data,
noPadding:Q,enableBanner:f,cinematicContainerTopbarOffset:U,allowCinematicContainerOverflow:a,displayAsSidebar:function(){return(X==null?void 0:X())&&c().enableSidebarView}})}}))},"Ji");
cgE.idomCompat=!0;_.f4(cgE,"yt-page-header-renderer",{props:{data:_.y$,noPadding:_.y$,enableBanner:_.y$,cinematicContainerTopbarOffset:_.y$,allowCinematicContainerOverflow:_.y$,displayAsSidebar:_.y$,className:_.y$}});_.f4(_.vid,"yt-image-banner-view-model",{props:{data:_.y$,isPositionRelative:_.y$}});_.f4(_.XTl,"yt-tab-group-shape",{props:{shape:_.y$}});var K_=function(){var S=_.W.apply(this,arguments)||this;S.expandableCustomTabRenderable=function(c){return HC0(c,function(){return void S.onSearchNavigate()})};
S.isRichGrid=!1;S.isConstrainedList=!1;S.richGridMiniMode=!1;S.richGridStyle="RICH_GRID_STYLE_UNKNOWN";S.isRichGridShorts=!1;S.responsiveSizing="COMPACT";S.disableGridStateAware=!1;S.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return S};
_.C(K_,_.W);_.J=K_.prototype;_.J.computeHeaderDisabled=function(S,c){return c||!S||this.tabsHidden};
_.J.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.J.computeIsRichGridShorts=function(S){return S==="RICH_GRID_STYLE_SHORTS_GRID"||S==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.J.computeImageBannerViewModel=function(){var S,c;return _.Y((c=_.Y((S=this.data)==null?void 0:S.content,_.$B$))==null?void 0:c.banner,_.Iwu)};
_.J.computeHasCinematicContainer=function(){var S,c;return!((c=_.Y((S=this.data)==null?void 0:S.content,_.$B$))==null||!c.background)};
_.J.handleHeaderResize=function(){var S=_.Ur(this.hostElement).querySelector("#header");S&&_.Az(S,"iron-resize")};
_.J.handleInsertTabCommand=function(S){var c=_.Y(S,yE0);c&&(c.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(Q){return Q.tabRenderer&&Q.tabRenderer.tabIdentifier===c.tabIdentifier})||this.splice("tabs",c.tabIndex||-1,0,c.tab))};
_.J.handleRefreshChannelTabAction=function(S){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===S&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.J.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.Or(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.J.observerRichGridSlimItemsPerRow=function(){_.Or(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.J.updateCssVars=function(){this.richGridItemsPerRow&&_.Or(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.a6("rich_grid_max_item_width",500))+16)-16+"px"})};
_.J.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.Or(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.J.onDataChanged=function(){this.handleHeaderResize()};
_.J.onWindowResize=function(){this.handleHeaderResize()};
_.J.onFocusedChanged=function(S){(S=_.VI(S))&&S.is==="tp-yt-paper-tab"&&S.hasRipple()&&(S.getRipple().holdDown=!S.pointerDown&&S.focused)};
_.J.updateSelectedFromBinding=function(S){this.ytdTabbedHeaderBehavior.selected=S.detail.value};
_.J.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.Rh.Object.defineProperties(K_.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:hyU(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.imageBannerViewModel)==null?void 0:S.style)==="IMAGE_BANNER_STYLE_INSET"}}});
K_.prototype.onDataChanged=K_.prototype.onDataChanged;K_.prototype.updateCssVarsForResponsiveGrid=K_.prototype.updateCssVarsForResponsiveGrid;K_.prototype.updateCssVars=K_.prototype.updateCssVars;K_.prototype.observerRichGridSlimItemsPerRow=K_.prototype.observerRichGridSlimItemsPerRow;K_.prototype.observerRichGridItemsPerRow=K_.prototype.observerRichGridItemsPerRow;_.d([_.p(_.GK),_.P("design:type",Object)],K_.prototype,"ytdGridStateAwareBehavior",void 0);
_.d([_.p(o$N),_.P("design:type",Object)],K_.prototype,"ytdTabbedHeaderBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],K_.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],K_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],K_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],K_.prototype,"ytdReduxBehavior",void 0);_.d([_.nU("#tabs"),_.P("design:type",Object)],K_.prototype,"tabsElement",void 0);_.d([_.Z(),_.P("design:type",Array)],K_.prototype,"tabs",void 0);_.d([_.Z(),_.P("design:type",Object)],K_.prototype,"expandableCustomTabRenderable",void 0);_.d([_.M("tabs.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],K_.prototype,"tabGroupShape",null);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],K_.prototype,"isRichGrid",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],K_.prototype,"isConstrainedList",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Object)],K_.prototype,"richGridMiniMode",void 0);_.d([_.Z({selector:function(S){return S.ui.richGridStyle}}),
_.P("design:type",Object)],K_.prototype,"richGridStyle",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.P("design:type",Object)],K_.prototype,"isRichGridShorts",void 0);_.d([_.Z({selector:_.wP}),_.P("design:type",Number)],K_.prototype,"richGridItemsPerRow",void 0);_.d([_.Z({selector:function(S){return S.ui.richGridContainerWidth}}),
_.P("design:type",Number)],K_.prototype,"richGridContainerWidth",void 0);_.d([_.Z({selector:_.xBo}),_.P("design:type",Number)],K_.prototype,"richGridSlimItemsPerRow",void 0);_.d([_.Z(),_.P("design:type",Object)],K_.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],K_.prototype,"responsiveSizing",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],K_.prototype,"disableGridStateAware",void 0);
_.d([_.Z({computed:"computeImageBannerViewModel(data)"}),_.P("design:type",Object)],K_.prototype,"imageBannerViewModel",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.P("design:type",Boolean)],K_.prototype,"hasCinematicContainer",void 0);_.d([_.Z({selector:_.UZg,reflectToAttribute:!0}),_.P("design:type",Boolean)],K_.prototype,"guideIsVisibleButNotPersistent",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("imageBannerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],K_.prototype,"hasBanner",null);_.d([_.Z({reflectToAttribute:!0}),_.M("imageBannerViewModel"),_.P("design:type",Object),_.P("design:paramtypes",[])],K_.prototype,"hasInsetBanner",null);_.d([_.Z({computed:"computeTabsHidden(tabs)",value:!0}),_.P("design:type",Boolean)],K_.prototype,"tabsHidden",void 0);
_.d([_.B0("richGridItemsPerRow","isRichGrid"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K_.prototype,"observerRichGridItemsPerRow",null);_.d([_.B0("richGridSlimItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K_.prototype,"observerRichGridSlimItemsPerRow",null);
_.d([_.B0("richGridItemsPerRow","richGridMiniMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K_.prototype,"updateCssVars",null);_.d([_.B0("richGridContainerWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K_.prototype,"updateCssVarsForResponsiveGrid",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],K_.prototype,"onDataChanged",null);
_.d([_.e({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],K_);
_.k(K_,"ytd-tabbed-page-header",function(){if(LNg!==void 0)return LNg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return LNg=S},{mode:1});var QsV;var $E=function(){return _.W.apply(this,arguments)||this};
_.C($E,_.W);$E.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.Or(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.Rh.Object.defineProperties($E.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var S,c;return this.componentBehavior.computeIcon_(((c=_.Y((S=this.data)==null?void 0:S.badge,_.Xld))==null?void 0:c.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.badge,_.Xld))==null?void 0:c.label}}});
$E.prototype.observerRichGridItemsPerRow=$E.prototype.observerRichGridItemsPerRow;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],$E.prototype,"componentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],$E.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.Th}),_.P("design:type",Boolean)],$E.prototype,"richGridMiniMode",void 0);
_.d([_.Z({selector:_.wP}),_.P("design:type",Number)],$E.prototype,"richGridItemsPerRow",void 0);_.d([_.Z(),_.P("design:type",Object)],$E.prototype,"data",void 0);_.d([_.B0("richGridItemsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$E.prototype,"observerRichGridItemsPerRow",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],$E.prototype,"badgeIconName",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],$E.prototype,"badgeLabel",null);_.d([_.e({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],$E);
_.k($E,"ytd-member-hub-profile-renderer",function(){if(QsV!==void 0)return QsV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return QsV=S},{mode:1});var fbZ;var ut=function(){return _.W.apply(this,arguments)||this};
_.C(ut,_.W);ut.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ut.prototype,"data",void 0);_.d([_.e({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],ut);
_.k(ut,"ytd-settings-sidebar-renderer",function(){if(fbZ!==void 0)return fbZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return fbZ=S},{mode:1});var UaE;var j_=function(){var S=_.W.apply(this,arguments)||this;S.expandableCustomTabRenderable=function(c){return HC0(c,function(){return void S.onSearchNavigate()})};
return S};
_.C(j_,_.W);j_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
j_.prototype.onSearchNavigate=function(){this.selected=void 0};
j_.prototype.onTabsChange=function(){var S,c=(S=this.tabs)==null?void 0:S.findIndex(function(Q){var f;return Q==null?void 0:(f=Q.tabRenderer)==null?void 0:f.selected});
c!==void 0&&(this.selected=c)};
j_.prototype.onTabsActive=function(S){if(this.tabs!==void 0){var c,Q;(S=(c=this.tabs[S.detail.selected])==null?void 0:(Q=c.tabRenderer)==null?void 0:Q.endpoint)&&_.Az(this.hostElement,"yt-navigate",{endpoint:S})}};
_.Rh.Object.defineProperties(j_.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:hyU(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
j_.prototype.onTabsChange=j_.prototype.onTabsChange;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],j_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.GK),_.P("design:type",Object)],j_.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],j_.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],j_.prototype,"ytdGuideStateAwareBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],j_.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Array)],j_.prototype,"tabs",void 0);_.d([_.Z(),_.P("design:type",Number)],j_.prototype,"selected",void 0);_.d([_.M("tabs.*"),_.P("design:type",Object),_.P("design:paramtypes",[])],j_.prototype,"tabGroupShape",null);_.d([_.Z(),_.P("design:type",Object)],j_.prototype,"expandableCustomTabRenderable",void 0);
_.d([_.M("tabs"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],j_.prototype,"tabsEnabled",null);_.d([_.$n("tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],j_.prototype,"onTabsChange",null);_.d([_.e({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],j_);
_.k(j_,"ytd-topic-channel-details-renderer",function(){if(UaE!==void 0)return UaE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return UaE=S},{mode:1});var JgZ;var lt=function(){var S=_.W.apply(this,arguments)||this;S.disableGridStateAware=!1;return S};
_.C(lt,_.W);lt.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]]"}}}}}};
lt.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
lt.prototype.updateCssVars=function(){_.Or(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.a6("rich_grid_max_item_width",500))+16)-16+"px"})};
lt.prototype.updateCssVars=lt.prototype.updateCssVars;lt.prototype.activeChanged=lt.prototype.activeChanged;_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],lt.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],lt.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lt.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Array)],lt.prototype,"tabs",void 0);_.d([_.Z(),_.P("design:type",Boolean)],lt.prototype,"active",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lt.prototype,"disableGridStateAware",void 0);
_.d([_.Z({selector:_.wP}),_.P("design:type",Number)],lt.prototype,"richGridItemsPerRow",void 0);_.d([_.Z({selector:_.Th}),_.P("design:type",Boolean)],lt.prototype,"richGridMiniMode",void 0);_.d([_.nU("ytd-carousel-item-renderer"),_.P("design:type",Object)],lt.prototype,"carousel",void 0);_.d([_.B0("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lt.prototype,"activeChanged",null);
_.d([_.B0("richGridItemsPerRow","richGridMiniMode"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lt.prototype,"updateCssVars",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],lt);
_.k(lt,"ytd-carousel-header-renderer",function(){if(JgZ!==void 0)return JgZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return JgZ=S},{mode:1});var abV;var Agg=_.oK(["https://www.google-analytics.com/analytics.js"]),YE=function(){var S=_.W.apply(this,arguments)||this;S.scriptAnalyticsAdded=!1;return S};
_.C(YE,_.W);YE.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var S,c=(S=this.data)==null?void 0:S.tagManagerId;c&&(_.qu(c,_.WY("GL")),TwG(c))};
YE.prototype.sendGoogleAnalyticsPageview=function(S){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var Q=_.YD.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(Q)};
var c=window.ga;c("set","page",window.location.pathname);c.l=+new Date;c("set","forceSSL",!0);c("create",S,"'auto'");c("send","pageview")};
YE.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var S=_.Nf("SCRIPT");S.name="ga-analytics";var c=_.QN(Agg);_.eS(S,c);S.async=!0;_.Ur(this.hostElement).appendChild(S)};
YE.prototype.dataChanged=YE.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],YE.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],YE.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],YE);
_.k(YE,"ytd-channel-metadata-renderer",function(){if(abV!==void 0)return abV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return abV=S},{mode:1});var XfV;var OeG;var C_=function(){return _.W.apply(this,arguments)||this};
_.C(C_,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],C_.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],C_.prototype,"data",void 0);_.d([_.e({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],C_);
_.k(C_,"ytd-sub-feed-option-renderer",function(){if(OeG!==void 0)return OeG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return OeG=S},{mode:1});var zFU;var HQ=function(){return _.W.apply(this,arguments)||this};
_.C(HQ,_.W);HQ.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],HQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],HQ.prototype,"ytRendererStamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],HQ.prototype,"data",void 0);_.d([_.e({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],HQ);
_.k(HQ,"ytd-sub-feed-selector-renderer",function(){if(zFU!==void 0)return zFU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return zFU=S},{mode:1});var Dt=function(){return _.W.apply(this,arguments)||this};
_.C(Dt,_.W);
Dt.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}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Dt.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Dt.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Dt.prototype,"data",void 0);_.d([_.e({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],Dt);
_.k(Dt,"ytd-browse-feed-actions-renderer",function(){if(XfV!==void 0)return XfV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return XfV=S},{mode:1});var xaU;var Fa2;var p_=function(){return _.W.apply(this,arguments)||this};
_.C(p_,_.W);p_.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],p_.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],p_.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],p_.prototype,"data",void 0);_.d([_.e({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],p_);
_.k(p_,"ytd-mini-channel-renderer",function(){if(Fa2!==void 0)return Fa2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Fa2=S},{mode:1});var Bn0;var hI=function(){return _.W.apply(this,arguments)||this};
_.C(hI,_.W);hI.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hI.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],hI);
_.k(hI,"ytd-vertical-channel-section-renderer",function(){if(Bn0!==void 0)return Bn0;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Bn0=S},{mode:1});var ql=function(){return _.W.apply(this,arguments)||this};
_.C(ql,_.W);ql.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ql.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ql.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ql.prototype,"data",void 0);_.d([_.e({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],ql);
_.k(ql,"ytd-browse-secondary-contents-renderer",function(){if(xaU!==void 0)return xaU;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return xaU=S},{mode:1});var IbT;var Tn=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};S.notActive=!1;S.isConstrainedList=!1;return S};
_.C(Tn,_.W);_.J=Tn.prototype;
_.J.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(S){var c;return(S==null?void 0:(c=S.webComponentHint)==null?void 0:c.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}}}}};
_.J.getPath=function(S,c){var Q="data.tabs.#"+c+".";S.tabs[c].tabRenderer?Q+="tabRenderer.":S.tabs[c].expandableTabRenderer&&(Q+="expandableTabRenderer.");return Q+"content.sectionListRenderer"};
_.J.computeDisplayedContent=function(S){this.unlinkPaths("content");if(S&&S.tabs)for(var c=S.tabs.length,Q=0;Q<c;Q++){var f=S.tabs[Q].tabRenderer||S.tabs[Q].expandableTabRenderer;if(f.selected&&f.content)return this.linkPaths("content",this.getPath(S,Q)),f.content}return null};
_.J.computeHasSecondaryColumnData=function(S){return!!S&&!!S.secondaryContents};
_.J.onRetrieveLocation=function(S,c){c.locationRetrieved(c.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);S.stopPropagation()};
_.J.onYtServiceRequestSent=function(S,c){_.u("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.J.onYtServiceRequestCompleted=function(S,c){_.u("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(c)};
_.J.onReplaceFeedContentAction=function(S){if(!_.u("replace_feed_content_action_killswitch")&&!this.notActive){var c;(S=(c=_.Y(S,eyp))==null?void 0:c.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(S)}};
_.J.handleServiceRequestActions=function(S){if(S=S.actions){S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;var Q=void 0;((Q=_.Y(c,eyp))==null?0:Q.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.Y(c,eyp).items)}}};
Tn.prototype.onYtServiceRequestCompleted=Tn.prototype.onYtServiceRequestCompleted;Tn.prototype.onYtServiceRequestSent=Tn.prototype.onYtServiceRequestSent;Tn.prototype.onRetrieveLocation=Tn.prototype.onRetrieveLocation;_.d([_.p(_.GK),_.P("design:type",Object)],Tn.prototype,"ytdGridStateAwareBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Tn.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Tn.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Tn.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Tn.prototype,"data",void 0);_.d([_.Z({computed:"computeDisplayedContent(data)"}),_.P("design:type",Object)],Tn.prototype,"content",void 0);
_.d([_.Z({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Tn.prototype,"hasSecondaryColumnData",void 0);_.d([_.Z({value:function(){return window.outerHeight>1024?3:2}}),
_.P("design:type",Number)],Tn.prototype,"initialCount",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Tn.prototype,"pageSubtype",void 0);_.d([_.nU("ytd-section-list-renderer"),_.P("design:type",Object)],Tn.prototype,"listRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],Tn.prototype,"notActive",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Tn.prototype,"isConstrainedList",void 0);
_.d([_.Z(),_.P("design:type",String)],Tn.prototype,"responsiveSizing",void 0);_.d([_.FV("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],Tn.prototype,"onRetrieveLocation",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],Tn.prototype,"onYtServiceRequestSent",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],Tn.prototype,"onYtServiceRequestCompleted",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],Tn);
_.k(Tn,"ytd-two-column-browse-results-renderer",function(){if(IbT!==void 0)return IbT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return IbT=S},{mode:2});var n2Z;var be1;var wy=function(){var S=_.W.apply(this,arguments)||this;S.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"]);S.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"]);S.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return S};
_.C(wy,_.W);_.J=wy.prototype;_.J.attached=function(){this.requestElementsPerRow()};
_.J.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_]]"}}}}}};
_.J.onUpdateElementsPerRowAction=function(S){S&&this.elementsPerRow!==S&&(this.elementsPerRow=S)};
_.J.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.J.computeAlertStyle_=function(S){return S};
_.J.observerElementsPerRow=function(){this.elementsPerRow&&_.Or(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.J.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.J.requestElementsPerRow=function(){_.Az(this.hostElement,"yt-request-elements-per-row")};
wy.prototype.onIsVisibleChanged_=wy.prototype.onIsVisibleChanged_;wy.prototype.observerElementsPerRow=wy.prototype.observerElementsPerRow;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wy.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],wy.prototype,"actionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],wy.prototype,"data",void 0);_.d([_.Z({value:6,reflectToAttribute:!0}),_.P("design:type",Number)],wy.prototype,"elementsPerRow",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],wy.prototype,"wrapButtons",void 0);_.d([_.Z({value:_.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.P("design:type",Boolean)],wy.prototype,"isMusic",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.P("design:type",String)],wy.prototype,"alertStyle",void 0);_.d([_.Z({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.P("design:type",Function)],wy.prototype,"dismissBoundButtonTap_",void 0);_.d([_.Z({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.P("design:type",Function)],wy.prototype,"acceptBoundButtonTap_",void 0);_.d([_.B0("elementsPerRow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wy.prototype,"observerElementsPerRow",null);_.d([_.B0("data.isVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wy.prototype,"onIsVisibleChanged_",null);_.d([_.wM({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],wy);
_.k(wy,"yt-alert-with-actions-renderer",function(){if(be1===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;n2Z===void 0&&(n2Z=document.createElement("template"));var f=n2Z;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);be1=S}S=be1;return S},{mode:2});_.f4(_.y_(function(S){function c(N){var l={};return _.B(_.mw,{text:N,className:_.n4("ytPersonalGreetingViewModelHeadline",(l.ytPersonalGreetingViewModelHeadlineSmall=function(){return z()===48},l))})}
function Q(N,l){return _.B("span",{el:N,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},c(l))}
var f=_.EH("yt-personal-greeting-view-model"),U=_.EH("span"),a=_.EH("span"),X=function(){return S.data().canvasPromoData},z=function(){var N;
return(N=S.data().bannerHeight)!=null?N:56},x=_.uMc(f,{throttleMs:100}),I=_.uMc(U,{throttleMs:100}),n=_.uMc(a,{throttleMs:100}),b=function(){return I.width()-x.width()>1};
_.LS(f,function(){var N;return(N=S.data())==null?void 0:N.rendererContext},void 0,void 0,void 0,!0);
return _.B("yt-personal-greeting-view-model",{el:f,"aria-hidden":b,class:_.n4(S.className,"ytPersonalGreetingViewModelHost"),style:_.Yd({height:(0,_.Du)(function(){return b()?0:z()})})},_.B(_.K,{cond:function(){return S.data().avatar&&!(n.width()+(S.data().avatar?48:0)-x.width()>1)},
then:function(){return _.B(_.h8,{data:function(){return S.data().avatar}},{decoratedAvatarViewModel:function(N){return _.B(_.h7,{data:N.data,
className:_.n4("ytPersonalGreetingViewModelAvatar")})}})}}),_.B("h1",null,c(function(){var N;
return(X==null?void 0:(N=X())==null?void 0:N.headline)||(n.width()+(S.data().avatar?48:0)-x.width()>1?S.data().shorterGreeting:S.data().greeting)})),Q(a,function(){return S.data().greeting}),Q(U,function(){return S.data().shorterGreeting}))},"Ki"),"yt-personal-greeting-view-model",{props:{data:_.y$,
className:_.y$}});var sN=function(){var S=_.W.apply(this,arguments)||this;S.hidden=!1;S.isConstrainedList=!1;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.responsiveSizing="COMPACT";S.attachedPlayers=_.u("kevlar_channel_trailer_multi_attach")?[]:void 0;S.player=null;S.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return S};
_.C(sN,_.W);_.J=sN.prototype;
_.J.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}}}}};
_.J.created=function(){var S=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){S.disposeMastheadAd()}]};
_.J.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new crE(this.refresh,this.contents))};
_.J.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.J.activeChanged=function(){var S=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=S)};
_.J.tabsChanged=function(){var S=this,c,Q;if(this.pageSubtype==="channels"||_.u("kevlar_tab_gestures_for_tabbed_header_data")&&((c=this.data)==null?0:(Q=c.header)==null?0:Q.carouselHeaderRenderer))this.tabGestures=new Tt(this.contents,this.contents,this.hostElement,this.header,function(X){S.ytdReduxBehavior.dispatch(X)});
var f,U,a;c=(f=this.data)==null?void 0:(U=f.contents)==null?void 0:(a=U.twoColumnBrowseResultsRenderer)==null?void 0:a.tabs;this.tabGestures&&this.tabGestures.tabsChanged(c)};
_.J.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.J.engagementPanelsChanged=function(){var S=_.fl().resolve(_.YF);if(S){if(this.engagementPanels)for(var c=_.A(this.engagementPanels),Q=c.next();!Q.done;Q=c.next()){var f=void 0;(Q=(f=Q.value.identifier)==null?void 0:f.tag)&&S.panelMap.delete(Q)}this.engagementPanels=[];var U;c=_.A(((U=this.data)==null?void 0:U.panels)||[]);for(U=c.next();!U.done;U=c.next()){U=_.Y(U.value,_.sug);var a=Q=void 0,X=void 0,z=void 0;if(f=((Q=U)==null?void 0:Q.targetId)||((a=U)==null?void 0:a.panelIdentifier)||((X=U)==
null?void 0:(z=X.identifier)==null?void 0:z.tag))a=Q=void 0,(a=(Q=S).registerPanelContent)==null||a.call(Q,f,{engagementPanelSectionListRenderer:U}),this.engagementPanels.push(U)}}};
_.J.onStampFinished=function(){var S=this;_.tO(this,function(){if(S.tabGestures){var c=S.tabGestures;if(c.scrollPositionNeedsUpdate){var Q=_.fl().resolve(_.QS(_.oZ)),f;if((f=c.selectedTab)!=null&&f.title&&Q&&(f=Q.getCurrentPage())){if(c.scrollPositionForTabs.has(c.selectedTab.title)){var U,a;Q=(a=(U=Q.getCurrentPage())==null?void 0:U.clientHeight)!=null?a:0;U=c.scrollPositionForTabs.get(c.selectedTab.title);f.setScrollTop(U);Q>U+100&&(c.scrollPositionNeedsUpdate=!1)}else f.setScrollTop(Math.min(c.lastVisitedTabScrollPosition!==
void 0?c.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,c.tabsStartAtInPx)),c.scrollPositionNeedsUpdate=!1;c.ytdReduxDispatch(qBU(!1))}}}})};
_.J.loadPage_=function(S){this.initCsi();S&&(this.data=S);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.J.getTitle=function(S){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",S))return this.get("microformat.microformatDataRenderer.title",S);if(this.get("header.feedTabbedHeaderRenderer.title",S))return _.Em(this.get("header.feedTabbedHeaderRenderer.title",S));if(this.get("header.interactiveTabbedHeaderRenderer.title",S))return this.get("header.interactiveTabbedHeaderRenderer.title",S);if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
S))return _.Em(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",S));var c,Q;return _.u("enable_page_header_page_title")&&(S==null?0:(c=S.header)==null?0:(Q=c.pageHeaderRenderer)==null?0:Q.pageTitle)?S.header.pageHeaderRenderer.pageTitle:""};
_.J.updateTitle=function(S){_.Az(this.hostElement,"yt-update-title",this.getTitle(S))};
_.J.initCsi=function(){_.HU(this.pageSubtype||"browse",["ol","cpt"])};
_.J.getPlayer=function(){if(_.u("kevlar_channel_trailer_multi_attach")){for(var S=_.A(this.attachedPlayers),c=S.next();!c.done;c=S.next())if(c=c.value,c.isConnected||_.dF(this.hostElement,c))return c;return null}return this.player};
_.J.getPlayerContainer=function(){return null};
_.J.onPlayerAttached=function(S,c){_.u("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(c):this.player=c};
_.J.onPlayerDetached=function(S,c){_.u("kevlar_channel_trailer_multi_attach")?(S=this.attachedPlayers.indexOf(c),S<0||this.attachedPlayers.splice(S,1)):this.player=null};
_.J.getServiceTrackingParams=function(){var S,c;return((S=this.data)==null?void 0:(c=S.responseContext)==null?void 0:c.serviceTrackingParams)||[]};
_.J.setMastheadAd=function(S){S&&S.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=S&&S.mastheadAd};
_.J.dataChanged=function(){var S=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.Bwg();_.tO(this,function(){_.Oz(S.hostElement,"ytd-update-grid-state-action")})};
_.J.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.J.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var S=this.data.alerts;return S&&S.find(function(c){return!!c.alertWithActionsRenderer})}};
_.J.computeGreetingData=function(){if(this.data&&this.data.alerts){var S=this.data.alerts;return S&&S.find(function(c){return!!c.personalGreetingViewModel})}};
_.J.computeHasMemberHubProfileRenderer=function(S){var c;return!!(S==null?0:(c=S.header)==null?0:c.memberHubProfileRenderer)};
_.J.handleAlertCommand=function(S){this.get("alertCommand.alert.alertWithActionsRenderer",S)&&(S=_.Y(S,kGE),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",S.alert))};
_.J.handleYtPlaylistDeletionRedirect=function(S){S=this.get("playlistDeletionRedirectCommand.redirectEndpoint",S);_.Az(this.hostElement,"yt-navigate",{endpoint:S})};
_.J.computeFluidWidth=function(S,c,Q){if(c==="mini_app"||Q)return!0;var f,U,a;S=S==null?void 0:(f=S.contents)==null?void 0:(U=f.twoColumnBrowseResultsRenderer)==null?void 0:(a=U.tabs)==null?void 0:a.find(function(x){var I;return x==null?void 0:(I=x.tabRenderer)==null?void 0:I.selected});
if(!S)return!1;var X,z;return!!((X=S.tabRenderer)==null?0:(z=X.content)==null?0:z.richGridRenderer)&&!["channel","channels","playables"].includes(c)};
_.J.computeHeaderFluidWidth=function(S){return S==="hashtag-landing-page"};
_.J.computeHasSidebar=function(S){var c;return!!(S.sidebar||((c=S.header)==null?0:c.playlistHeaderRenderer))};
_.J.computeHasPageHeaderSidebar=function(S){var c,Q;return!!((c=S.header)==null?0:(Q=c.pageHeaderRenderer)==null?0:Q.enableSidebarView)};
_.J.computeUseUnifiedShowPageLayout=function(S){if(!S||this.pageSubtype!=="show"||!S.sidebar||!S.sidebar.playlistSidebarRenderer)return!1;S=S.sidebar.playlistSidebarRenderer;if(!S.items)return!1;for(var c=0;c<S.items.length;c++)if(_.Y(S.items[c],hu)){var Q=void 0;return((Q=_.Y(S.items[c],hu))==null?void 0:Q.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.J.computeIsConstrainedList=function(S){return _.u("web_enable_constrained_list_subscriptions_channels")&&S==="subscriptions-channels"};
_.J.computeResponsiveSizing=function(S){return S==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.Rh.Object.defineProperties(sN.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var S,c;return((S=this.data)==null?0:(c=S.header)==null?0:c.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var S,c;if(!((S=this.data)==null?0:(c=S.sidebar)==null?0:c.playlistSidebarRenderer))return!1;var Q;return(Q=this.data)!=null&&Q.header?!1:!0}}});
_.Rh.Object.defineProperties(sN,{template:{configurable:!0,enumerable:!0,get:function(){if(UMZ===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);UMZ=S}S=UMZ;return S}}});
sN.prototype.dataChanged=sN.prototype.dataChanged;sN.prototype.onPlayerDetached=sN.prototype.onPlayerDetached;sN.prototype.onPlayerAttached=sN.prototype.onPlayerAttached;sN.prototype.onStampFinished=sN.prototype.onStampFinished;sN.prototype.engagementPanelsChanged=sN.prototype.engagementPanelsChanged;sN.prototype.scrollAtTopChanged=sN.prototype.scrollAtTopChanged;sN.prototype.tabsChanged=sN.prototype.tabsChanged;sN.prototype.activeChanged=sN.prototype.activeChanged;
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],sN.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],sN.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],sN.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],sN.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.DF.YtPageBehavior),_.P("design:type",Object)],sN.prototype,"ytPageBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sN.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],sN.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],sN.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sN.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],sN.prototype,"hidden",void 0);
_.d([_.Z(),_.P("design:type",Object)],sN.prototype,"mastheadAdData",void 0);_.d([_.Z({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.P("design:type",Object)],sN.prototype,"alertBannerData",void 0);_.d([_.Z({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.P("design:type",Object)],sN.prototype,"greetingData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],sN.prototype,"pageSubtype",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.P("design:type",Boolean)],sN.prototype,"hasMemberHubProfileRenderer",void 0);_.d([_.Z({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],sN.prototype,"hasSidebar",void 0);_.d([_.Z({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],sN.prototype,"hasPageHeaderSidebar",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!0}),_.P("design:type",Boolean)],sN.prototype,"roundedContainer",void 0);_.d([_.Z({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],sN.prototype,"useUnifiedShowPageLayout",void 0);_.d([_.Z({computed:"computeIsConstrainedList(pageSubtype)"}),_.P("design:type",Object)],sN.prototype,"isConstrainedList",void 0);
_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sN.prototype,"usePlaylistHeaderRenderer",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],sN.prototype,"useOldPlaylistSidebarRenderer",null);_.d([_.Z({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.P("design:type",Boolean)],sN.prototype,"fluidWidth",void 0);_.d([_.Z({selector:function(S){return S.ui.scrollAtTop}}),
_.P("design:type",Boolean)],sN.prototype,"scrollAtTop",void 0);_.d([_.Z({selector:_.Jh1}),_.P("design:type",Boolean)],sN.prototype,"tabGesturesIsActive",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],sN.prototype,"darkerDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.P("design:type",Boolean)],sN.prototype,"disableHeaderFluidWidth",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.P("design:type",String)],sN.prototype,"responsiveSizing",void 0);_.d([_.nU("ytd-two-column-browse-results-renderer"),_.P("design:type",HTMLElement)],sN.prototype,"contents",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],sN.prototype,"header",void 0);_.d([_.nU("ytd-refresh"),_.P("design:type",Object)],sN.prototype,"refresh",void 0);
_.d([_.B0("active"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sN.prototype,"activeChanged",null);_.d([_.B0("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sN.prototype,"tabsChanged",null);_.d([_.B0("scrollAtTop"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sN.prototype,"scrollAtTopChanged",null);
_.d([_.Z(),_.P("design:type",Object)],sN.prototype,"engagementPanels",void 0);_.d([_.B0("data.panels"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sN.prototype,"engagementPanelsChanged",null);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sN.prototype,"onStampFinished",null);
_.d([_.FV("yt-player-attached"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Element]),_.P("design:returntype")],sN.prototype,"onPlayerAttached",null);_.d([_.FV("yt-player-detached"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Element]),_.P("design:returntype")],sN.prototype,"onPlayerDetached",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sN.prototype,"dataChanged",null);
_.d([_.e({is:"ytd-browse"})],sN);_.at.registerService(_.Aup,sN);
_.iG();
}catch(e){_._DumpException(e)}
try{
_.Mf("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 cO=function(S){if(!S)return"browse";var c=S.page,Q=S.url,f,U,a,X=(f=S.response)==null?void 0:(U=f.responseContext)==null?void 0:(a=U.webResponseContextExtensionData)==null?void 0:a.pageTheme;if(X)c=X.toLowerCase().replace(/_/g,"-");else if(c!=="watch"&&c!=="learning_journey_watch"){var z,x;if((c==="browse"||c==="settings")&&((z=S.response)==null?0:(x=z.sidebar)==null?0:x.settingsSidebarRenderer))c="WEB_PAGE_TYPE_SETTINGS";else{var I,n;c==="browse"&&((I=S.response)==null?0:(n=I.metadata)==null?
0:n.channelMetadataRenderer)?c="channel":Q&&(c=_.IM(Q)||c)}}return c},nrg=function(){var S=_.rC("yt.aba.att");
return S?S:_.mQ.instance!==void 0?_.mQ.instance.aSm.bind(_.mQ.instance):null},bl8=function(S,c){var Q;
return _.O(function(f){return(Q=nrg())?f.return(Q(S,c,6E4)):f.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},N5g=function(S,c,Q,f,U){c=c===void 0?[]:c;
U=U?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:U}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.fK(S),dialogMessages:c.map(function(a){return _.fK(a)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fK(Q),serviceEndpoint:U}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.fK(f)}}}}}},K5N=function(S){var c=!!_.r2().queueProxy;
var Q,f,U;S=S==null?void 0:(Q=S.response)==null?void 0:(f=Q.currentVideoEndpoint)==null?void 0:(U=f.watchEndpoint)==null?void 0:U.playlistId;return!(!c&&!S)},$xE=function(S,c){var Q=_.bn();
if(K5N(S))return Q.playlistWatchPageActivation=!0;switch(cO(c)){case "yts-products":return Q.productDetailsPageActivation=!0;case "mini_app":return Q.miniAppPageActivation=!0;case "playables":return Q.playablesDestPageActivation=!0;default:return!1}},uJ1=function(S,c,Q){for(var f=typeof S==="string"?S.split(""):S,U=S.length-1;U>=0;--U)U in f&&c.call(Q,f[U],U,S)},j6E=function(S,c){c=_.NpY(S,c);
c>=0&&_.ET(S,c)},lh1=function(S){return Array.prototype.concat.apply([],arguments)},Y80=function(S){var c=0;
c=c===void 0?0:c;if(!_.KT(S))throw _.Fh("uint64");var Q=typeof S;switch(c){case 512:switch(Q){case "string":return _.zsZ(S);case "bigint":return String((0,_.iE)(64,S));default:return _.X_p(S)}case 1024:switch(Q){case "string":return _.xHR(S);case "bigint":return _.Li((0,_.iE)(64,S));default:return _.OiM(S)}case 0:switch(Q){case "string":return _.zsZ(S);case "bigint":return _.Li((0,_.iE)(64,S));default:return _.A$r(S)}default:return _.OZ(c,"Unknown format requested type for int64")}},CBV=function(S){S!=
null&&(S=S.JSC$6856_value_||"",S=typeof S==="string"?S:new Uint8Array(S));
return S},Hlg=function(S){for(var c=_.YD.apply(1,arguments),Q=S[0],f=0;f<S.length-1;f++)Q+=String(c[f]),Q+=S[f+1];
c=document.implementation.createHTMLDocument("");f=c.createElement("style");c.head.appendChild(f);c=f.sheet;c.insertRule(Q,0);if(c.cssRules.length===1&&(Q=c.cssRules[0],Q instanceof CSSStyleRule))return new _.v7(Q.cssText.replace(/</g,"\\3C "))},DxV=function(S,c){if(/-[a-z]/.test(c))return null;
if(_.Rsu&&S.dataset){if(_.XcR()&&!(c in S.dataset))return null;S=S.dataset[c];return S===void 0?null:S}return S.getAttribute("data-"+_.nP(c))},hIE=function(){var S=pi8;
_.rC("yt.ads.biscotti.getId_")||_.m5("yt.ads.biscotti.getId_",S)},q8g=function(S){_.m5("yt.ads.biscotti.lastId_",S)},wi0=function(){var S={};
for(_.hl=new T5p(S.handleError===void 0?_.MP:S.handleError,S.logEvent===void 0?_.Te:S.logEvent);_.qx.length>0;)switch(S=_.qx.shift(),S.type){case "ERROR":_.hl.logError(S.payload);break;case "EVENT":_.hl.logEvent(S.eventType,S.payload)}},s60=function(S,c,Q){return _.gUp(function(f){return Q?f.userIdentifier!==void 0&&!S.includes(f.userIdentifier)&&Q.includes(f.publicName):f.userIdentifier!==void 0&&!S.includes(f.userIdentifier)},c)},MJG=function(S){var c,Q;
return _.O(function(f){if(f.nextAddress==1)return c=_.jJ("YtIdbMeta hasAnyMeta other"),_.F(f,_.gUp(function(U){return U.userIdentifier!==void 0&&U.userIdentifier!==c},S),2);
Q=f.yieldResult;return f.return(Q.length>0)})},ZlU=function(S,c){ilU||(ilU=_.Mq.addLowPriorityJob(function(){var Q,f,U,a,X;
return _.O(function(z){switch(z.nextAddress){case 1:return _.F(z,_.S8(),2);case 2:Q=z.yieldResult;if(!Q)return z.return();f=!0;_.X1(z,3);return _.F(z,s60(S,Q,c),5);case 5:U=z.yieldResult;if(!U.length){f=!1;z.jumpTo(6);break}a=U[0];return _.F(z,_.Ll(a.actualName),7);case 7:return _.F(z,_.VS(a.actualName,Q),6);case 6:_.Pi(z,4);break;case 3:X=_.Bs(z),_.TD(X),f=!1;case 4:_.Mq.cancelJob(ilU),ilU=0,f&&ZlU(S,c),_.IN(z)}})}))},GDO=function(){var S;
return _.O(function(c){return c.nextAddress==1?_.F(c,_.S8(),2):(S=c.yieldResult)?c.return(MJG(S)):c.return(!1)})},W5B=function(S){var c=100;
c=c===void 0?500:c;var Q,f,U,a,X,z;return _.O(function(x){return x.nextAddress==1?(Q=_.WY("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[Q,(0,_.Qk)()-2592E6],U=[Q,(0,_.Qk)()],a=IDBKeyRange.bound(f,U),_.F(x,_.x6T(S),2)):x.nextAddress!=3?(X=x.yieldResult,z=[],_.F(x,_.tl(X,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(I){z.length=0;return _.f6(I.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:a,direction:"prev"},function(n){if(n.getValue()&&z.length<c)return z.push(n.getValue()),
n.delete().then(function(){return n.continue()})})}),3)):x.return(z)})},grg=function(){var S;
return _.O(function(c){if(c.nextAddress==1)return _.F(c,_.S8(),2);S=c.yieldResult;if(!S||!_.lB()&&!_.u("nwl_init_require_datasync_id_killswitch")||!_.ThZ())return c.jumpTo(0);_.sMY=!0;_.wVc.isNwlInitialized=_.sMY;return _.F(c,_.Ac_().awaitInitialization(),0)})},QT=function(S,c){_.Vmz[S]=!0;
var Q=_.UH();Q&&Q.publish.apply(Q,arguments);_.Vmz[S]=!1},kDG=function(){if(_.DOr()&&!eIT){var S=function(Q){Q=Q.data;
if(Q.op==="serializedGelBatch"){var f=_.RfH.get(Q.key);f&&(_.onp(Q.serializedBatch,f.client,f.resolve,f.networklessOptions,f.isIsolated,f.useVSSEndpoint,f.dangerousLogToVisitorSession,f.requestsOutstanding),_.RfH.delete(Q.key))}},c=_.HKZ();
c&&(c.addEventListener("message",S),c.onerror=function(){_.RfH.clear()});
eIT=!0}},fq=function(){this.relativeTimeStart_=_.AP()},rl0=function(S,c){S!=null&&this.append.apply(this,arguments)},dxG=function(){return _.G$("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},vrV=function(S,c,Q){Q=Q===void 0?!1:Q;
var f,U,a,X,z;return _.O(function(x){switch(x.nextAddress){case 1:_.$r("SOCS",S,34128E3,"youtube.com",!0);if(_.bR)return U=fetch(c,{method:"POST",mode:_.Pd(c),credentials:_.vd(c),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),a=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Pd("/upgrade_visitor_cookie?eom=1"),credentials:_.vd("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.F(x,Promise.all([U,a]).then(function(I){return I[1]}),5);
fetch(c,{method:"POST",mode:_.Pd(c),credentials:_.vd(c),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.F(x,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Pd("/upgrade_visitor_cookie?eom=1"),credentials:_.vd("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:f=x.yieldResult;x.jumpTo(3);break;case 5:f=X=x.yieldResult;case 3:if(!f.ok)throw Error("of");return _.F(x,f.text(),7);case 7:z=x.yieldResult,
!z.includes('"state_switch":true')&&!Q||z.includes("skip_reload_for_test")||window.location.reload(),_.IN(x)}})},PBV=function(S){return _.O(function(c){return c.nextAddress==1?_.F(c,vrV(S.socsCookie,S.savePreferenceUrl,!0),2):c.return()})},L5V=function(S){return _.O(function(c){return c.nextAddress==1?_.F(c,vrV(S.socsCookie,S.savePreferenceUrl),2):c.return()})},tJV=function(S){S=S.xhr.responseText;
if(!_.UT(S,")]}'"))throw new U5;S=JSON.parse(S.substr(4));if((S.type||1)>1)throw new U5;S=S.id;q8g(S);Jr=_.Lk(S);ErU(18E5,2);return S},RI2=function(S,c){c=new VJG(c);
q8g("");Jr=_.T2d(c);S>0&&ErU(12E4,S-1);throw c;},ErU=function(S,c){_.zD(function(){_.mR1().then(tJV,function(Q){return RI2(c,Q)}).thenCatch(_.$q)},S)},pi8=function(){var S=_.Q6V();
if(S!==void 0)return _.pv(S);Jr||(Jr=_.mR1().then(tJV).thenCatch(function(c){return RI2(2,c)}));
return Jr},ylU=function(){var S=document;
return _.Wc(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(c){return"on"+c.toLowerCase()in S})},or1=function(S){S.addEventListener("click",function(c){var Q=c.target;
Q&&Q.getAttribute("href")&&(Q=Q.getAttribute("href"),_.sy(window,Q,"_blank"),c.preventDefault(),c.stopImmediatePropagation())})},mxp=function(S){var c,Q,f,U=(f=(Q=((c=S.mainDownloadsListEntity)!=null?c:{})[_.Jpx])==null?void 0:Q.refresh)!=null?f:"",a;
S=(a=S.refresh)==null?void 0:a[U];U=S!=null?S:{};return(U==null?0:U.refreshTime)?Number(U==null?void 0:U.refreshTime):0},SJ8=function(S,c){var Q=_.D8(S);
return c.every(function(f){var U;f=f==null?void 0:(U=f.playbackDataEntity)==null?void 0:U.key;if(!f)return!1;U=_.xy(_.XT(f).entityId,"mainVideoEntity");return!!Q[U]})},cBG=function(S){S=_.Yy(S.entities);
return _.rkY(S).length},QR2=function(S,c){if(c){var Q;
S=(Q=_.FT(S.entities,"downloadQualityPickerEntity",c))!=null?Q:void 0}else S=void 0;return S},JBT=function(){fzg||(_.Pq=_.cAx,fzg=new UqU);
return fzg},azg=function(S){var c=document.getElementsByTagName("ytd-enforcement-message-view-model");
c.length===0||getComputedStyle(c[0]).display==="none"?S(0,"p.h_"):S(1,"p.h_")},ABO=function(){aX=0;
var S=[_.jm(!0)];Ar&&_.Oz(Ar,"yt-window-resized",S)},XtN=function(){aX||(aX=_.Mq.addLowPriorityJob(ABO,200))},zJO=function(){XC=0;
O6E=_.yZh(document);var S=[O6E];Ar&&_.Oz(Ar,"yt-window-scrolled",S)},xqU=function(){XC||(XC=_.Mq.addLowPriorityJob(zJO,200))},BeV=function(S){S=S===void 0?null:S;
FOT.push(_.Se(window,"resize",XtN));FOT.push(_.Se(window,"scroll",xqU));S&&(Ar=S)},nMZ=function(){var S={isWide:_.Kl.get("wide","0")==="1"},c=_.jL();
if(c=c.getFlag(165)||c.getFlag(174))S.theme=_.pJ(!0);if(_.nJZ()){var Q=_.DO()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";S.systemTheme=Q}!c&&_.u("parent_tools_enable_app_settings")&&_.Ep(window.location.href).theme!==void 0&&(S.theme=_.pJ());if((c=O5)?!_.Cn.equals(c,S):S)c={currentValue:S},IzO&&(c.timeSinceLastSnapshotSecs=Math.round(((0,_.Qk)()-IzO)/1E3)),O5&&(c.previousValue=O5),_.Te("appSettingsCaptured",c),O5=S,IzO=(0,_.Qk)()},b68=function(S){_.O(function(c){if(c.nextAddress==1)return _.F(c,
S.delete("yt-appshell-assets"),2);
_.IN(c)})},Ne0=function(S){return _.E8((0,_.ALp)(),S)},$qN=function(){var S;
_.O(function(c){return c.nextAddress==1?_.F(c,z6.getInstance(),2):(S=c.yieldResult)?_.F(c,KO8(S),0):c.jumpTo(0)})},jR8=function(){var S;
_.O(function(c){return c.nextAddress==1?_.F(c,x7.getInstance(),2):(S=c.yieldResult)?_.F(c,uL0(S),0):c.jumpTo(0)})},lzO=function(S){b68(S);
$qN();jR8()},YJO=function(S){var c,Q;
return _.O(function(f){if(f.nextAddress==1)return _.F(f,_.WyY(S),2);if(c=f.yieldResult){var U;a:{if(c.headers&&(U=c.headers.get("date"))&&(U=Date.parse(U),!isNaN(U))){U=Math.round((0,_.Qk)()-U);break a}U=-1}Q=U;if(Q>-1)return f.return(Q)}return f.return(-1)})},CHE=function(){var S=_.QY.caches,c=_.gC("IS_SHELL_LOAD"),Q,f;
_.O(function(U){if(U.nextAddress==1)return Q=-1,c?_.F(U,YJO(S),3):(f=_.p8(),Q=Math.round((0,_.Qk)()-f),U.jumpTo(2));U.nextAddress!=2&&(Q=U.yieldResult);Q>=0&&Q<2147483648&&_.sz({appInstallDataAgeMs:Q});_.IN(U)})},H6T=function(S){var c=_.L9(_.QY.location.href),Q={};
"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(f){var U=c.JSC$8068_queryData_.getValues(f);if(U==null?0:U.length)Q[f]=U});
return _.fn(S,new Map(Object.entries(Q)))},Dqg=function(S){S=S.match(/(.*)::.*::.*/);
if(S!==null)return S[1]},pt0=function(S){if(_.QvZ()){var c=Object.keys(window.localStorage);
c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=Dqg(Q);f===void 0||S.includes(f)||self.localStorage.removeItem(Q)}}},hJT=function(){if(!_.QvZ())return!1;
var S=_.jJ(),c=Object.keys(window.localStorage);c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())if(Q=Dqg(Q.value),Q!==void 0&&Q!==S)return!0;return!1},qJ0=function(S){return _.EB("NotificationsDisabled",S)},TeO=function(){return Notification.permission!="granted"?Promise.resolve():_.aW1().then(function(S){return S?S.pushManager.getSubscription().then(function(c){if(c)return Promise.resolve();
c={userVisibleOnly:!0,applicationServerKey:_.Od("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return S.pushManager.subscribe(c).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},wtO=function(S){return _.aW1().then(function(c){if(!c||!c.active)return Promise.reject(new _.Yr("serviceworker.postMessage",S,c));
try{return c.active.postMessage(S),Promise.resolve()}catch(Q){return Promise.reject(Q)}})},sRN=function(){wtO({type:"notifications_register",
data:_.WY("ID_TOKEN")})},M8Z=function(){if(!_.gC("LOGGED_IN"))return Promise.resolve(!1);
var S=_.Al("service_worker_push_force_notification_prompt_tag");return S?_.ms("PromptTags").then(function(c){if(!c)return!0;var Q=[];try{Q=JSON.parse(c)}catch(f){return!1}return Q&&Q.indexOf(S)==-1}):Promise.resolve(!1)},i6E=function(){var S=_.a6("service_worker_push_prompt_delay_microseconds");
return S?_.ms("PromptTime").then(function(c){return Promise.resolve(Date.now()-S>(c||0))}):Promise.resolve(!0)},Z6p=function(){var S=_.a6("service_worker_push_logged_out_prompt_watches");
return S==-1?Promise.resolve(!1):_.ms("WatchCount").then(function(c){return c>=S})},GfN=function(){var S=_.Q8(document,"yt-push-prompt-modal-bg");
S&&_.K9(S)},WO2=function(){return _.a6("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.ms("PromptCount").then(function(S){S||(S=0);
return Promise.resolve(S<_.a6("service_worker_push_prompt_cap"))})},gME=function(S){return _.gC("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.gC("LOGGED_IN")&&(S===void 0?0:S)?M8Z().then(function(c){if(c)return!0;
c=[WO2(),i6E()];_.gC("LOGGED_IN")||c.push(Z6p());return Promise.all(c).then(function(Q){return Q.every(function(f){return f})})}):Promise.resolve(!1)},eJE=function(){_.ms("PromptCount").then(function(S){return _.EB("PromptCount",S+1)}).then(function(){return _.EB("PromptTime",Date.now())}).then(function(){var S=_.Al("service_worker_push_force_notification_prompt_tag");
if(S)return _.ms("PromptTags").then(function(c){var Q=[];if(c)try{Q=JSON.parse(c)}catch(f){return!1}Q||(Q=[]);Q.push(S);return _.EB("PromptTags",JSON.stringify(Q))})})},rB1=function(){kfZ||GfN()},dqT=function(S){S.style.zIndex=2147483648;
S.style.pointerEvents="auto";S.style.backgroundColor="rgba(0, 0, 0, 0.6)";S.style.width="100%";S.style.height="100vh";S.style.position="absolute";S.style.top="0";S.style.left="0";S.style.border="none"},vMV=function(){var S=_.Q8(document,"yt-push-prompt-modal-bg");
kfZ=_.u("service_worker_push_prompt_modal_ignore_click");S?dqT(S):(S=_.px("div",{id:"yt-push-prompt-modal-bg"}),dqT(S),document.body.appendChild(S),_.Plz(document,"click",rB1))},PHp=function(){var S=arguments;
_.u("service_worker_push_prompt_modal_enable")&&vMV();return Notification.requestPermission().then(function(c){GfN();var Q=document.getElementById("ticker");Q&&(Q.className=Q.classList.remove("show"));if(c=="granted")return TeO().then(function(){qJ0(!1);sRN();return Promise.resolve(!0)});
c=="denied"&&sRN();return Promise.resolve(!1)}).catch(function(){GfN();
return Promise.reject.apply(Promise,_.Hs(S))})},LON=function(S){S=S===void 0?!1:S;
var c=_.ulH().client;if(c&&c.browserVersion){var Q=c.browserVersion,f=c.browserName=="CHROME"&&_.nz(Q,"50.0.0")<0;c=c.browserName=="OPERA"&&_.nz(Q,"42.0.0")<0;if(f||c)return Promise.resolve()}return _.ORN().then(function(U){if(!U)return Promise.resolve();U=TeO().then(function(){return wtO({type:"notifications_check_registration",data:_.WY("ID_TOKEN")})});
return Notification.permission!="default"?U.catch(function(){}):U.then(function(){return gME(S)}).then(function(a){if(a)return eJE(),PHp().then(function(){})}).catch(function(){})})},EM2=function(S){return _.Ahp(S)?LON():Promise.resolve()},t8E=function(S){var c=S.installing||S.waiting;
return S.active||!c?Promise.resolve(S):new Promise(function(Q){var f=function(U){U=U.target;if(U.state==="activated"||U.state==="redundant")c.removeEventListener("statechange",f),Q(S)};
c.addEventListener("statechange",f)})},V8V=function(){var S=new _.i0z("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.IK(S,{mainAppWeb:_.vV()});var c=_.CXh;_.u("service_worker_forward_exp_params")&&(c=H6T(c));try{var Q=_.l4Y(c).catch(function(){_.nj(S,"FAILURE");return new Promise(function(){})});
_.u("service_worker_push_enabled")&&Q.then(function(f){_.nj(S,"SUCCESS");return f}).then(t8E).then(EM2)}catch(f){if(_.nj(S,"FAILURE"),f.name!=="SecurityError")throw f;
}},RJg=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&V8V()},yBp=function(S,c){var Q={};
c&&(Q.serializedYpcFamilyCreateLoggingParams=c);_.Te(S,Q);_.wQ()},oME=function(S,c){var Q={};
Q.serializedYpcRefundFlowLoggingParams=c;S&&(Q.eventType=S);_.Te("ypcRefundFlowEvent",Q);_.wQ()},mq0=function(S){S&&_.Cgz("transactionFlowSucceeded",S)},SHG=function(S){S&&_.wg("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",S,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},cc8=function(S){var c,Q,f,U,a,X,z;
_.O(function(x){if(x.nextAddress==1)return _.F(x,_.AnY(),2);if(x.nextAddress!=3){if(!x.yieldResult)return x.return(!1);c=[];return _.F(x,_.O2.keys(),3)}Q=x.yieldResult;f=_.A(Q);for(U=f.next();!U.done;U=f.next())a=U.value,X=_.Jnp(a),z=X.datasyncId,!z||S.includes(z)||c.push(_.O2.delete(a));return x.return(Promise.all(c).then(function(I){return I.some(function(n){return n})}))})},QTE=function(){var S,c,Q,f,U,a,X;
return _.O(function(z){if(z.nextAddress==1)return _.F(z,_.AnY(),2);if(z.nextAddress!=3){if(!z.yieldResult)return z.return(!1);S=_.jJ("cache contains other");return _.F(z,_.O2.keys(),3)}c=z.yieldResult;Q=_.A(c);for(f=Q.next();!f.done;f=Q.next())if(U=f.value,a=_.Jnp(U),(X=a.datasyncId)&&X!==S)return z.return(!0);return z.return(!1)})},fEV=function(){var S=_.fl().resolve(_.QS(_.K_l));
return S?S.getCurrentTime():0},UP8=function(){var S,c,Q,f,U,a,X,z,x,I,n,b,N,l;
return _.O(function(H){switch(H.nextAddress){case 1:S={},c=_.QGc(),Q=_.A(Object.entries(c)),f=Q.next();case 4:if(f.done){H.jumpTo(3);break}U=f.value;a=_.A(U);X=a.next().value;z=a.next().value;x=X;I=z;if(!I){H.jumpTo(5);break}return _.F(H,I(),8);case 8:S[x]=H.yieldResult;case 5:f=Q.next();H.jumpTo(4);break;case 2:n=_.A(void 0),b=n.next();case 9:if(b.done){H.jumpTo(3);break}N=b.value;l=c[N];if(!l){H.jumpTo(10);break}return _.F(H,l(),13);case 13:S[N]=H.yieldResult;case 10:b=n.next();H.jumpTo(9);break;
case 3:return H.return(S)}})},JcO=function(){var S;
_.O(function(c){if(c.nextAddress==1)return _.F(c,UP8(),2);S=c.yieldResult;return _.F(c,navigator.clipboard.writeText(JSON.stringify(S,null,2)),0)})},aEZ=function(S,c){return _.FT(S.entities,"superThanksSelectedTierEntity",c)},Ac8=function(S){var c;
return(c=S.sharedUi)==null?void 0:c.currentPageType},XGN=function(S,c){return{popup:{searchSuggestionReportDialog:{searchQuery:S,
title:_.K8("SBOX_INAPPROPRIATE_TITLE"),suggestions:c,categoryLabel:_.K8("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.K8("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.K8("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.K8("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.K8("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.K8("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.K8("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.K8("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.K8("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.K8("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},O1U=function(S){var c,Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E;
return _.O(function(v){switch(v.nextAddress){case 1:return _.F(v,_.nK(),2);case 2:return(c=v.yieldResult)?_.F(v,_.Mir(c),3):v.return();case 3:Q=v.yieldResult;if(!Q)return v.return();U=((f=Q.offlineVideos)==null?void 0:f.length)||0;X=((a=Q.offlinePlaylists)==null?void 0:a.length)||0;if(U===0&&X===0)return v.return();z=0;if(Q.offlineVideos)for(x=_.A(Q.offlineVideos),I=x.next();!I.done;I=x.next())n=I.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===n.videoState&&(z+=1);S.offline_videos_count=U.toString();_.u("kevlar_log_offline_current_network_type_ks")||
(S.offline_current_network_type=(b=_.F1T())!=null?b:"CONN_INVALID");_.u("kevlar_log_updated_time_for_smart_downloads")&&(N=_.V5().getState().entities,l=_.qO(N),H=mxp(N),S.offline_smart_downloads_last_sync_time_ms=l.toString(),S.offline_smart_downloads_next_sync_time_ms=H.toString());S.offline_videos_playable=z.toString();S.offline_playlists_count=X.toString();if(!_.u("woffle_used_state_report")){v.jumpTo(4);break}Q.offlineVideos&&(q=Q.offlineVideos.reduce(function(t,V){V.downloadedBytes&&(t+=Number(V.downloadedBytes));
return t},0).toString())&&(S.offline_used_disk_space_bytes=q);
if(!((w=navigator)==null?0:(g=w.storage)==null?0:g.estimate)){v.jumpTo(4);break}return _.F(v,navigator.storage.estimate(),6);case 6:r=v.yieldResult,S.offline_free_disk_space_bytes=(((E=r)==null?void 0:E.quota)||0).toString();case 4:S.offline_client_state=JSON.stringify(Q),_.IN(v)}})},z0G=function(S){S=S.match(/(.*)::.*::.*/);
if(S!==null)return S[1]},xP0=function(S){if(_.giz()){var c=Object.keys(window.sessionStorage);
c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=z0G(Q);f===void 0||S.includes(f)||self.sessionStorage.removeItem(Q)}}},FYg=function(){if(!_.giz())return!1;
var S=_.jJ(),c=Object.keys(window.sessionStorage);c=_.A(c);for(var Q=c.next();!Q.done;Q=c.next())if(Q=z0G(Q.value),Q!==void 0&&Q!==S)return!0;return!1},FC=function(S,c,Q){(_.u("desktop_keyboard_shortcut_usage_log")||Q&&_.u("web_shorts_keyboard_shortcut_usage_log"))&&(c?_.o4.get(S):_.yU.get(S))&&(S=c?_.Sk.get(S):_.m3.get(S))&&_.tz(_.wN(),S)},BQZ=function(){var S,c;
return typeof CSS!=="undefined"&&((c=(S=CSS).supports)==null?void 0:c.call(S,"selector(:has(*))"))},IE2=function(S){return S.visibility!=="hidden"&&S.display!=="none"},b1O=function(S){if(BQZ()||S.tagName!=="DETAILS"?!S.matches(nLU):S.querySelector("summary")!==null)return-1;
S=S.getAttribute("tabindex")||"0";return Number(S)},NQU=function(S){return S.some(function(c){return b1O(c)>0})},KYE=function(S){if(S.textContent)return!0;
if(S instanceof HTMLInputElement){if(!S.labels)return!1;S=_.A(S.labels);for(var c=S.next();!c.done;c=S.next())if(c.value.textContent)return!0}return!1},$P1=function(S){return S.sort(function(c,Q){return b1O(Q)-b1O(c)})},ucg=function(S){S=Array.from(S.querySelectorAll(nLU)).filter(function(c){return(IE2(c.style)?IE2(window.getComputedStyle(c)):!1)&&KYE(c)});
return NQU(S)?$P1(S):S},jTV=function(S){S=ucg(S);
S.length>0&&S[0].focus()},lEO=function(S,c){c.stack&&(S.stack+="\n"+c.stack);
return S},H1g=function(S){var c=BO(S,"Content-Type");
if(!c)return null;c=c.toLowerCase();if(c.startsWith("application/json"))return c.startsWith("application/json+protobuf")?new YHG:new _.a7;if(c.startsWith("application/x-protobuf")){S=BO(S,"Content-Transfer-Encoding");if(!S)return new IX;if(S.toLowerCase()=="base64")return new C51}return null},i1U=function(S,c,Q,f){var U=new DPB(function(z,x){return pGB.has(x)?z.sentinel==="gal"&&z.event!==void 0:!1},function(z){z.event?(z=h08(z.event),z=!z||qHB(f,z)?!0:_.YH(S.lastEvent,nq,2,bU)?!_.YH(z,NM,1,bU)&&
!_.YH(z,nq,2,bU):!_.YH(z,NM,1,bU)&&!_.YH(z,nq,3,bU)):z=!0;
return z});
Q=_.fn(S.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",TQ2(Q)]]));if(S.nestedOrigins!==void 0)for(var a=_.A(S.nestedOrigins),X=a.next();!X.done;X=a.next())Q=_.fn(Q,new Map([["origin",X.value]]));return wGB(U,Q,c).then(function(z){z=sTO(z.event);if(_.YH(z,NM,1,bU)){var x,I=(x=_.Wg(z,NM,1,bU))==null?void 0:_.iR(x,2);I&&f.JSC$17170_logErrorEvent(MeN(I));x=_.Wg(z,NM,1,bU);_.iR(x,2)===4?(z=_.Wg(z,NM,1,bU),z={statusCode:11,statusMessage:_.MJ(z,
3)}):(z=_.Wg(z,NM,1,bU),z={statusCode:12,statusMessage:_.MJ(z,3)});return z}_.YH(z,nq,3,bU)?(z=_.Wg(z,nq,3,bU),z={statusCode:1,consentLanguageKeys:_.MJ(z,2)}):z={statusCode:1};return z}).catch(function(z){return z.errorCode!==void 0?{statusCode:z.errorCode,
statusMessage:z.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},gL8=function(S){var c={};
if(S===void 0||S===null)return c;S.getToken()!==void 0&&Z1p(S.getToken())&&Z1p(S.getToken()).length>0&&(c.scopes=new Set(Z1p(S.getToken())));S.getToken()!==void 0&&Ge0(S.getToken())&&Ge0(S.getToken()).length>0&&(c.capabilities=new Set(Ge0(S.getToken())));_.MJ(S,3)!==void 0&&(c.consistencyKey=_.MJ(S,3));S.getName()!==void 0&&S.getName()!==""&&(c.linkName=S.getName());_.lR(S,WYE,4)&&(S=_.JB(S,WYE,4),S=Object.assign({},_.MJ(S,1)&&{userId:_.MJ(S,1)},_.MJ(S,2)&&{displayName:_.MJ(S,2)},_.MJ(S,3)&&{email:_.MJ(S,
3)},_.MJ(S,5)&&{username:_.MJ(S,5)},_.MJ(S,4)&&{profilePicture:_.MJ(S,4)}),c.profile=S);return c},e0g=function(S,c){var Q=S.flowParams;
return{serviceId:Q.serviceId,sessionId:Q.sessionId,currentFlow:S.currentFlow,googleScopesString:c,linkingSessionSerialized:S.session.serialize(),consentLanguageKeys:Q.consentLanguageKeys,callerState:S.callerState,dynamicUrlParameters:Q.dynamicUrlParameters,partnerConfigMinReadTimestamp:Q.partnerConfigMinReadTimestamp}},P5E=function(S){var c=S.googleScopes!==void 0?Array.from(S.googleScopes).join(","):"";
keE(e0g(S,c));c=rc0(S);return c===null?Promise.resolve(dPE):c.start().then(function(Q){var f,U=(f=Q.link)==null?void 0:f.consistencyKey;return Q.statusCode===1&&S.googleScopes!==void 0&&S.googleScopes.size>0&&U!==void 0?(f=S.flowParams,vLV(f.serviceId,f.sessionId,S.googleScopes,U,f.galService,S.config,Q)):Q})},LY0=function(S){var c=rc0(S);
return c===null?Promise.resolve(Kq({statusCode:7,statusMessage:"Failed to create flow object"},S.callerState)):c.complete().then(function(Q){var f,U=(f=Q.link)==null?void 0:f.consistencyKey;return Q.statusCode===1&&S.googleScopes!==void 0&&S.googleScopes.size>0&&U!==void 0?(f=S.flowParams,vLV(f.serviceId,f.sessionId,S.googleScopes,U,f.galService,S.config,Q)):Kq(Q,S.callerState)},function(Q){return Kq({statusCode:12,
statusMessage:"Failed to complete the flow: "+Q.message},S.callerState)})},vLV=function(S,c,Q,f,U,a,X){return ELE(U,{serviceId:S,
sessionId:c,googleScopes:Q,consistencyKey:f}).then(function(){return X},function(z){return U.deleteLink({serviceId:S,
sessionId:c,accountLinkingEntryPoint:a.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+z.message}},function(x){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+x.message}})})},rc0=function(S){switch(S.currentFlow){case 1:var c=S.flowParams;
S=_.JB(S.session,te8,1);return $7.createOAuthFlow(c,S);case 2:case 3:return c=S.flowParams,S=_.JB(S.session,VeZ,6),uU.createStreamlinedFlow(c,S);default:return null}},R0G=function(S,c){S===2&&(S=3);
var Q=0;jk.indexOf(S)!==-1&&(Q=jk.indexOf(S)+1);for(S=Q;S<jk.length;S++)if(c.has(jk[S]))return jk[S]},mP0=function(S){var c=S.serviceId;
var Q=S.sessionId;var f=S.config;var U=S.galService;var a=S.capabilities;var X=S.scopes;var z=S.loginHint;var x=S.callerState;var I=S.consentLanguageKeys;var n=S.linkName;var b=S.dynamicUrlParameters;var N=S.partnerConfigMinReadTimestamp;S=f.dataUsageNoticeConfig?f.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return U.startLinkingSession({serviceId:c,sessionId:Q,capabilities:a,scopes:X,loginHint:z,callerState:x,supportedFlows:yc0(f.supportedFlows),completionUrl:f.completionUrl,accountLinkingEntryPoint:f.accountLinkingEntryPoint,
consentLanguageKeys:I,dataUsageNoticeConfig:S,linkName:n,dynamicUrlParameters:b,partnerConfigMinReadTimestamp:N}).then(function(l){return new oLg(c,Q,f,U,l,void 0,x,I,b,N)})},UmE=function(S,c,Q){a:{var f=new SP2;
if(f.storage!==null)try{var U=f.storage.get("SAVED_SESSION");if(U===void 0){var a=null;break a}if(U.serviceId===S){a=U;break a}}catch(X){}a=null}if(a===null)return Promise.resolve({statusCode:2});cOZ(S);f=QhZ(a.linkingSessionSerialized);return fmE(new oLg(S,a.sessionId,c,Q,f,a.googleScopesString!==""&&a.googleScopesString!==void 0?new Set(a.googleScopesString.split(",")):void 0,a.callerState,a.consentLanguageKeys,a.dynamicUrlParameters,a.partnerConfigMinReadTimestamp),a.currentFlow,a.consentLanguageKeys)},
keE=function(S){var c=new SP2;
c.storage!==null&&c.storage.set("SAVED_SESSION",S)},cOZ=function(S){var c=new SP2;
if(c.storage!==null){var Q=c.storage.get("SAVED_SESSION");Q!==void 0&&Q.serviceId===S&&c.storage.remove("SAVED_SESSION")}},yc0=function(S){var c=new Set;
S=_.A(S);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q!==1&&JOZ.has(Q)&&c.add(JOZ.get(Q));return c},Kq=function(S,c){c!==void 0&&(S.callerState=c);
return S},am1=function(S){switch(S){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},O$G=function(S){return new AO2(S,new Xng(S))},FGE=function(S,c){c=c===void 0?!1:c;
var Q=document.createElement("div");S&&(Q.style.transform="scaleX(-1)");Q.style.backgroundColor=c?"rgba(138,180,248,.24)":"#e8f0fe";Q.style.height="4px";Q.style.overflow="hidden";Q.style.position="absolute";Q.style.top="0";Q.style.width="100%";Q.style.zIndex="1500";Q.setAttribute("aria-label","Loading");Q.setAttribute("aria-live","polite");S=document.createElement("style");S.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  }";
Q.appendChild(S);S=zb1();S.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";S.style.left="-145.166611%";var f=xm0(c);f.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";S.appendChild(f);Q.appendChild(S);S=zb1();S.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";S.style.left="-54.888891%";c=xm0(c);c.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
S.appendChild(c);Q.appendChild(S);return Q},zb1=function(){var S=document.createElement("div");
S.style.height="100%";S.style.position="absolute";S.style.transformOrigin="top left";S.style.width="100%";return S},xm0=function(S){var c=document.createElement("span");
c.style.borderTop=S?"4px solid #669df6":"4px solid #4285f4";c.style.display="inline-block";c.style.position="absolute";c.style.width="100%";return c},BKg=function(S){return S==null?void 0:_.fBz(S).valueOf()},NKE=function(S){var c=document.body,Q=!1,f=function(){Q||(Q=!0,ImG(U,a),setTimeout(function(){c.removeChild(a);
c.removeChild(U)},150))},U=nQZ(S,getComputedStyle(c).direction==="rtl",f),a=b$g(f);
ImG(U,a);c.appendChild(a);c.appendChild(U);window.requestAnimationFrame(function(){a.style.opacity="1";U.style.opacity="1";U.style.transform="translate(-50%, -50%) scale(1)";U.children[0].focus()})},nQZ=function(S,c,Q){var f=document.createElement("div");
f.style.position="fixed";f.style.alignItems="center";f.style.backgroundColor=S?"rgb(32, 33, 36)":"white";f.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";f.style.display="flex";f.style.flexDirection="column";f.style.justifyContent="center";f.style.left="50%";f.style.top="50%";f.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";f.style.zIndex="2002";document.body.clientWidth>=660?(f.style.borderRadius="8px",f.style.minHeight="220px",
f.style.maxHeight="90%",f.style.maxWidth="90%",f.style.minWidth="540px"):(f.style.height="100%",f.style.width="100%");f.setAttribute("aria-label","Error");f.setAttribute("aria-modal","true");f.setAttribute("role","alertdialog");f.addEventListener("keydown",function(a){a.key==="Escape"&&Q()});
c=KGT(S,c,Q);f.appendChild($mB(c));f.appendChild(c);var U=document.createElement("img");U.src=S?"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";U.style.height="72px";U.style.width="72px";U.style.color="#9aa0a6";U.setAttribute("alt","");f.appendChild(U);U=document.createElement("h1");U.textContent="Something went wrong.  Try again.";
U.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";U.style.lineHeight="24px";U.style.fontSize="16px";U.style.textAlign="center";U.style.letterSpacing="0.1px";U.style.color=S?"rgb(232,234,237)":"#3c4043";f.appendChild(U);f.appendChild($mB(c));return f},KGT=function(S,c,Q){var f=document.createElement("button");
f.style.backgroundColor="transparent";f.style.border="none";f.style.borderRadius="50%";f.style.cursor="pointer";f.style.outline="none";f.style.padding="12px";f.setAttribute("aria-label","Close dialog");f.style.position="absolute";f.style.top="0";c?f.style.right="0":f.style.left="0";f.addEventListener("focus",function(){f.style.backgroundColor=S?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
f.addEventListener("blur",function(){f.style.backgroundColor="transparent"});
f.addEventListener("mouseenter",function(){f.style.backgroundColor=S?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
f.addEventListener("mouseleave",function(){f.style.backgroundColor="transparent"});
f.addEventListener("click",Q);f.addEventListener("keydown",function(U){U.key!=="Enter"&&U.key!=="Space"||Q()});
c=document.createElement("img");c.src=S?"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";c.style.display="block";c.style.height="24px";c.style.width="24px";c.setAttribute("alt","");f.appendChild(c);return f},$mB=function(S){var c=document.createElement("div");
c.setAttribute("tabindex","0");c.setAttribute("aria-hidden","true");c.addEventListener("focus",function(){return void S.focus()});
return c},b$g=function(S){var c=document.createElement("div");
c.style.backgroundColor="rgba(32,33,36,0.6)";c.style.bottom="0";c.style.left="0";c.style.position="fixed";c.style.right="0";c.style.top="0";c.style.transition=" opacity 150 ms linear";c.style.zIndex="2001";c.addEventListener("click",S);return c},ImG=function(S,c){c.style.opacity="0";
S.style.opacity="0";S.style.transform="translate(-50%, -50%) scale(0.8)"},umT=function(S,c){S.sandbox&&S.sandbox.add&&(S.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),S.sandbox.add("allow-downloads"));
S.src=c},lU=function(S){jh2.call(this,S)},Y7=function(S,c){c=c===void 0?!1:c;
this.parsedImageUrl_=null;S instanceof lmN||(YP2==void 0&&(YP2=new COp),S=YP2.parse(S.toString(),c));S=this.parsedImageUrl_=S;S.JSC$17382_parsedOptions_==void 0&&((c=S.getOptions())||(c=""),S.JSC$17382_parsedOptions_=(new H$E).parse(c));jh2.call(this,S.JSC$17382_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;S=this.parsedImageUrl_;c=S.uri_.JSC$8068_port_;this.JSC$17384_domain_=S.uri_.JSC$8068_domain_+(c?":"+c:"");this.JSC$17384_query_=this.parsedImageUrl_.uri_.JSC$8068_queryData_.toString()},
Dmg=function(S){this.mode=4;
this.data=S;this.parsedData=[];S=0;for(var c=this.data.length;S<c;S++){var Q=[],f=this.data.charCodeAt(S);f>65536?(Q[0]=240|(f&1835008)>>>18,Q[1]=128|(f&258048)>>>12,Q[2]=128|(f&4032)>>>6,Q[3]=128|f&63):f>2048?(Q[0]=224|(f&61440)>>>12,Q[1]=128|(f&4032)>>>6,Q[2]=128|f&63):f>128?(Q[0]=192|(f&1984)>>>6,Q[1]=128|f&63):Q[0]=f;this.parsedData.push(Q)}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))},pnE=function(S){this.typeNumber=0;
this.errorCorrectLevel=S===void 0?2:S;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Cq=function(S,c){if(S.length==void 0)throw Error("uk`"+S.length+"`"+c);
for(var Q=0;Q<S.length&&S[Q]==0;)Q++;this.num=Array(S.length-Q+c);for(c=0;c<S.length-Q;c++)this.num[c]=S[c+Q]},hbp=function(S,c){this.totalCount=S;
this.dataCount=c},qPG=function(){this.buffer=[];
this.length=0},TKZ=function(){var S=!1;
if(_.Fpo()){S=_.bM();var c="";_.nYH()?(c=/Windows (?:NT|Phone) ([0-9.]+)/,c=(S=c.exec(S))?S[1]:"0.0"):_.iM()?(c=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,c=(S=c.exec(S))&&S[1].replace(/_/g,".")):_.IZz()?(c=/Mac OS X ([0-9_.]+)/,c=(S=c.exec(S))?S[1].replace(/_/g,"."):"10"):_.xY(_.bM(),"KaiOS")?(c=/(?:KaiOS)\/(\S+)/i,c=(S=c.exec(S))&&S[1]):_.Fpo()?(c=/Android\s+([^\);]+)(\)|;)/,c=(S=c.exec(S))&&S[1]):_.bzz()&&(c=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,c=(S=c.exec(S))&&S[1]);S=c||""}return S},GLT=function(S,
c){this.JSC$17407__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(c)for(var Q in c)this.JSC$17407__htOption[Q]=c[Q];this.JSC$17407__htOption.useSVG&&(wn0=sh8);this.JSC$17407__android=TKZ();this.JSC$17407__el=S;this._oQRCode=null;this._oDrawing=new wn0(this.JSC$17407__el,this.JSC$17407__htOption);this.JSC$17407__htOption.text&&(S=this.JSC$17407__htOption.text,this._oQRCode=new pnE(this.JSC$17407__htOption.correctLevel),MRT(this._oQRCode,S),c=this._oQRCode,i$V(c,!1,Z$U(c)),this.JSC$17407__el.title=
S,this._oDrawing.draw(this._oQRCode),this.makeImage())},WGU=function(S,c,Q,f,U){S.save();
var a=new Path2D;a.roundRect(c,Q,f*7,f*7,f*2);a.roundRect(c+f,Q+f,f*5,f*5,f*1.3);a.roundRect(c+2*f,Q+2*f,f*3,f*3,f);S.clip(a,"evenodd");S.fillStyle=U;S.fillRect(0,0,S.canvas.width,S.canvas.height);S.restore()},HO=function(S,c){if(typeof S!=="function")throw Error("xk");
return _.QY.setTimeout(function(){S()},c)},DU=function(){},eb1=function(S,c,Q,f,U){(new DU).debug("TestLoadImageWithRetries: "+U);
if(f==0)Q(!1);else{var a=U||0;f--;gQZ(S,c,function(X){X?Q(!0):_.QY.setTimeout(function(){eb1(S,c,Q,f,a)},a)})}},gQZ=function(S,c,Q){var f=new DU;
f.debug("TestLoadImage: loading "+S);var U=new Image;U.onload=function(){try{f.debug("TestLoadImage: loaded"),kLg(U),Q(!0)}catch(a){}};
U.onerror=function(){try{f.debug("TestLoadImage: error"),kLg(U),Q(!1)}catch(a){}};
U.onabort=function(){try{f.debug("TestLoadImage: abort"),kLg(U),Q(!1)}catch(a){}};
U.ontimeout=function(){try{f.debug("TestLoadImage: timeout"),kLg(U),Q(!1)}catch(a){}};
_.QY.setTimeout(function(){if(U.ontimeout)U.ontimeout()},c);
U.src=S},kLg=function(S){S.onload=null;
S.onerror=null;S.onabort=null;S.ontimeout=null},rOE=function(){this.front_=[];
this.back_=[]},dmE=function(S,c){_.C9.call(this);
this.delay_=new _.D3(this.JSC$17533_onTick_,0,this);_.F5(this,this.delay_);this.JSC$17531_interval_=5E3;this.nextTickTime_=0;if(typeof S==="function")c&&(S=(0,_.H1)(S,c));else if(S&&typeof S.handleEvent==="function")S=(0,_.H1)(S.handleEvent,S);else throw Error("Da");this.JSC$17533_listener_=S},pq=function(S,c,Q,f,U,a,X,z,x,I,n,b,N,l){Q=Q===void 0?!1:Q;
f=f===void 0?function(){return""}:f;
U=U===void 0?!1:U;a=a===void 0?!1:a;X=X===void 0?!1:X;z=z===void 0?function(){return _.B2({})}:z;
x=x===void 0?!1:x;n=n===void 0?!1:n;b=b===void 0?!1:b;N=N===void 0?!1:N;l=l===void 0?!1:l;this.JSC$17534_pathPrefix_=S;this.defaultQueryParams_=c;this.pubsub_=new _.bB;this.reconnectTimer_=new dmE(this.safeReconnect_,this);this.JSC$17534_channel_=null;this.JSC$17534_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17534_pendingMessages_=[];this.enableAsyncTest_=Q;this.JSC$17534_getXsrfToken_=f;this.useAsyncBrowserChannelHandler_=a;this.getAuthorizationHeader_=
z;this.getAuthorizationHeaderSync_=I;this.enableCachedUpdateAuthorizationHeader_=X;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.B2();this.enableLoungeTokenRefresh_=U;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=x;this.disableMdxAuthForNonPlaybackMessages_=n;this.disableMdxAuthForAdMessages_=b;this.enableMdxAuthForConnectionOnly_=N;this.disableMdxAuthForShortsMessages_=l;this.JSC$17534_channelOpenedCounter=new vQg;this.JSC$17534_channelClosedCounter=new POT;this.channelMessageSentCounter=
new LGB;this.JSC$17534_channelMessageReceivedCounter=new EQ2;this.JSC$17534_channelErrorCounter=new tRO;this.pendingMapsOnClosedCounter=new VRp;this.undeliveredMapsOnClosedCounter=new RbE},hr=function(S){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;S=S||document.location.href;var c=Number(_.Rk(S)[4]||null)||"";c&&(this.port=":"+c);this.domain=_.ok(S)||"";S=_.bM();S.search("MSIE")>=0&&_.nz(S.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},qM=function(S){S=S||{};
this.name=S.name||"";this.id=S.id||S.screenId||"";this.token=S.token||S.loungeToken||"";this.uuid=S.uuid||S.dialId||"";this.idType=S.screenIdType||"normal"},yO8=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(S){var c=Math.random()*16|0;
return(S=="x"?c:c&3|8).toString(16)})},oQ0=function(S){return _.D0(S,function(c){return{key:c.id,
name:c.name}})},mmN=function(S,c){return _.Wc(S,function(Q){return Q||c?!Q!=!c?!1:Q.id==c.id:!0})},wB=function(S,c){return _.Wc(S,function(Q){return T6(Q,c)})},UEZ=function(){var S=SMV(),c=cG2();
if(QY2()){var Q=S,f=_.jHZ(Q,c);f<0&&_.uoc(Q,-(f+1),0,c)}S=fqZ(S);if(S.length==0)try{_.XdY("remote_sid")}catch(U){}else try{_.$r("remote_sid",S.join(","),-1)}catch(U){}},SMV=function(){var S=_.Bb("yt-remote-connected-devices")||[];
S.sort(_.Ud);return S},fqZ=function(S){if(S.length==0)return[];
var c=S[0].indexOf("#"),Q=c==-1?S[0]:S[0].substring(0,c);return _.D0(S,function(f,U){return U==0?f:f.substring(Q.length)})},JGE=function(S){_.F6("yt-remote-connected-devices",S,86400)},cG2=function(){if(aq0)return aq0;
var S=_.Bb("yt-remote-device-id");S||(S=yO8(),_.F6("yt-remote-device-id",S,31536E3));for(var c=SMV(),Q=1,f=S;_.dp(c,f);)Q++,f=S+"#"+Q;return aq0=f},AGE=function(){return _.Bb("yt-remote-session-browser-channel")},QY2=function(){return _.Bb("yt-remote-session-screen-id")},zzU=function(S){S.length>5&&(S=S.slice(S.length-5));
var c=_.D0(Xd0(),function(f){return f.loungeToken}),Q=_.D0(S,function(f){return f.loungeToken});
_.mcp(Q,function(f){return!_.dp(c,f)})&&OP0();
_.F6("yt-remote-local-screens",S,31536E3)},Xd0=function(){return _.Bb("yt-remote-local-screens")||[]},OP0=function(){_.F6("yt-remote-lounge-token-expiration",!0,86400)},s5=function(S){S||(_.It("yt-remote-session-screen-id"),_.It("yt-remote-session-video-id"));
UEZ();S=SMV();_.tZ(S,cG2());JGE(S)},F1Z=function(){xEZ();
return MM?!!MM.get("yt-remote-use-staging-server"):!1},xEZ=function(){if(!MM){var S=_.NNT();
S&&(MM=new _.Cl(S))}},bPV=function(S,c,Q,f,U){Q=Q===void 0?function(){return""}:Q;
var a=function(){return new pq(iU(S,"/bc"),c,!1,Q,f)};
return _.u("enable_mdx_web_channel_desktop")?new BNO(function(){return new Iqp(iU(S,"/wc"),c,Q)}):new nUZ(a,U)},uuO=function(){var S=NNZ;
K1N();ZU.push(S);$ET()},G6=function(S,c){K1N();
var Q=jYB(S,String(c));ZU.length==0?lqT(Q):($ET(),_.PY(ZU,function(f){f(Q)}))},WO=function(S){G6("CP",S)},K1N=function(){ZU||(ZU=_.rC("yt.mdx.remote.debug.handlers_")||[],_.m5("yt.mdx.remote.debug.handlers_",ZU))},lqT=function(S){var c=(gB+1)%50;
gB=c;YME[c]=S;Cx2||(Cx2=c==49)},$ET=function(){var S=ZU;
if(YME[0]){var c=Cx2?gB:-1,Q={};do Q={record$jscomp$13:void 0},c=(c+1)%50,Q.record$jscomp$13=YME[c],_.PY(S,function(f){return function(U){U(f.record$jscomp$13)}}(Q));
while(c!=gB);YME=Array(50);gB=-1;Cx2=!1}},jYB=function(S,c){var Q=(Date.now()-HPO)/1E3;
Q.toFixed&&(Q=Q.toFixed(3));var f=[];f.push("[",Q+"s","] ");f.push("[","yt.mdx.remote","] ");f.push(S+": "+c,"\n");return f.join("")},ek=function(S){_.R4.call(this);
this.JSC$17558_logName_=S;this.screens=[]},rB=function(S){ek.call(this,"LocalScreenService");
this.JSC$17565_http_=S;this.loungeTokenRefreshTimer_=NaN;k7(this);this.info("Initializing with "+DEE(this.screens))},dB=function(S,c){c=c===void 0?!1:c;
ek.call(this,"ScreenService");this.JSC$17571_http_=S;this.disableAutomaticScreenCache_=c;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};pdZ(this)},vO=function(S,c,Q){_.R4.call(this);
this.JSC$17575_logName_=Q;this.JSC$17575_screenService_=S;this.receiver_=c;this.screen_=null},dE0=function(S,c,Q){Q.disableCastApi?PO("Cannot initialize because disabled by Mdx config."):hzp()?qM2(S,Q)&&(TNg(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?wdB(c):(window.__onGCastApiAvailable=function(f,U){f?wdB(c):(Lq("Failed to load cast API: "+U),sYN(!1),TNg(!1),_.It("yt-remote-cast-available"),_.It("yt-remote-cast-receiver"),MBZ(),c(!1))},Q.loadCastApiSetupScript?_.kU("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?iPV()>=60&&ZPp():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?G$p():iPV()>=89?W1U():(gU1(),ezZ(k$O.map(rG0))))):PO("Cannot initialize because not running Chrome")},MBZ=function(){PO("dispose");
var S=E5();S&&S.dispose();_.m5("yt.mdx.remote.cloudview.instance_",null);vUB(!1);_.RMz(PxV);PxV.length=0},L1O=function(){return!!_.Bb("yt-remote-cast-installed")},EUV=function(){var S=_.Bb("yt-remote-cast-receiver");
return S?S.friendlyName:null},tB1=function(){PO("clearCurrentReceiver");
_.It("yt-remote-cast-receiver")},VBp=function(){return L1O()?E5()?E5().getCastSession():(Lq("getCastSelector: Cast is not initialized."),null):(Lq("getCastSelector: Cast API is not installed!"),null)},yGg=function(S,c){RzZ()?E5().setConnectedScreenStatus(S,c):Lq("setConnectedScreenStatus called before ready.")},hzp=function(){var S=_.bM().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.NJ||S},qM2=function(S,c){var Q=!1;
E5()||(S=new tr(S,c),S.subscribe("yt-remote-cast2-availability-change",function(f){_.F6("yt-remote-cast-available",f);QT("yt-remote-cast2-availability-change",f)}),S.subscribe("yt-remote-cast2-receiver-selected",function(f){PO("onReceiverSelected: "+f.friendlyName);
_.F6("yt-remote-cast-receiver",f);QT("yt-remote-cast2-receiver-selected",f)}),S.subscribe("yt-remote-cast2-receiver-resumed",function(f){PO("onReceiverResumed: "+f.friendlyName);
_.F6("yt-remote-cast-receiver",f);QT("yt-remote-cast2-receiver-resumed",f)}),S.subscribe("yt-remote-cast2-session-change",function(f){PO("onSessionChange: "+oUp(f));
f||_.It("yt-remote-cast-receiver");QT("yt-remote-cast2-session-change",f)}),_.m5("yt.mdx.remote.cloudview.instance_",S),Q=!0);
PO("cloudview.createSingleton_: "+Q);return Q},E5=function(){return _.rC("yt.mdx.remote.cloudview.instance_")},wdB=function(S){sYN(!0);
TNg(!1);E5().init(!1,function(c){c?(vUB(!0),_.y4Y("yt-remote-cast2-api-ready")):(Lq("Failed to initialize cast API."),sYN(!1),_.It("yt-remote-cast-available"),_.It("yt-remote-cast-receiver"),MBZ());S(c)})},PO=function(S){G6("cloudview",S)},Lq=function(S){G6("cloudview",S)},sYN=function(S){PO("setCastInstalled_ "+S);
_.F6("yt-remote-cast-installed",S)},RzZ=function(){return!!_.rC("yt.mdx.remote.cloudview.apiReady_")},vUB=function(S){PO("setApiReady_ "+S);
_.m5("yt.mdx.remote.cloudview.apiReady_",S)},TNg=function(S){_.m5("yt.mdx.remote.cloudview.initializing_",S)},VT=function(S){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(S)},mEZ=function(){var S,c;
return _.O(function(Q){if(Q.nextAddress==1)return(_.MmH()||_.u("use_new_nwl"))&&_.q_Y().isNetworkAvailable()?_.F(Q,_.S8(),2):Q.return();if(Q.nextAddress!=3)return(S=Q.yieldResult)?_.F(Q,W5B(S),3):Q.return();c=Q.yieldResult;if(!c.length)return Q.return();c.forEach(function(f){var U={timestamp:f.timestamp};f=f.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:f.appShellAssetLoadReport,options:U}:f.clientError?{payloadName:"clientError",payload:f.clientError,options:U}:void 0;f&&
_.Te(f.payloadName,f.payload,f.options)});
c.length===100&&_.Mq.addLowPriorityJob(mEZ);_.IN(Q)})},Sz2=function(S){if(S.playerResponse){if(S=S.playerResponse,S.messages&&S.messages.length>0&&(S=S.messages.find(function(c){return!(!c||!c.mealbarPromoRenderer)}))&&S.mealbarPromoRenderer)return S.mealbarPromoRenderer}else if(S.response&&(S=S.response)&&S.overlay&&S.overlay.mealbarPromoRenderer)return S.overlay.mealbarPromoRenderer},czE=function(S){if(S.response){var c=S.response;
if(c&&c.overlay&&c.overlay.tooltipRenderer)return c.overlay.tooltipRenderer}if(S.playerResponse&&(S=S.playerResponse,S.messages&&S.messages.length>0&&(S=S.messages.find(function(Q){return!(!Q||!Q.tooltipRenderer)}))&&S.tooltipRenderer))return S.tooltipRenderer},f5E=function(S){if(!QIV&&(S=S||_.WY("ZWIEBACK_PING_URLS"))&&S.length){QIV=!0;
for(var c=0;c<S.length;c++)_.vt(S[c])}},Jzg=function(S){if(_.Cn.get(_.WY("PLAYER_VARS",{}),"privembed",!1)!="1"){S&&hIE();
try{UD0().then(function(){},function(){}),_.zD(Jzg,18E5)}catch(c){_.eG(c)}}},a51=function(){var S=_.jL(),c=S.getFlag(119),Q=window.devicePixelRatio>1;
document.body&&_.vH(document.body,"exp-invert-logo")&&(Q&&!_.vH(document.body,"inverted-hdpi")?_.yX(document.body,"inverted-hdpi"):!Q&&_.vH(document.body,"inverted-hdpi")&&_.VX(document.body,"inverted-hdpi"));c!=Q&&(_.l2(0,119,Q),S.save())},AzV=function(S){return S.filter(function(c){return"ypcGetCartEndpoint"in c||"ypcFixInstrumentEndpoint"in c})},X21=function(S){return S.filter(function(c){return!_.Y(c,_.ICh)})},zWB=function(S){S=_.A(S);
for(var c=S.next(),Q={};!c.done;Q={setter$jscomp$6:void 0},c=S.next()){var f=c.value;c=f.params;f=f.service;c&&f&&(Q.setter$jscomp$6=O82[f],Q.setter$jscomp$6&&c.forEach(function(U){return function(a){var X=a.key;a=a.value;X&&a&&(0,U.setter$jscomp$6)(X,a)}}(Q)))}},Fq2=function(S,c){var Q,f,U,a,X,z,x;
_.O(function(I){switch(I.nextAddress){case 1:Q=_.TW.getInstance();f=_.BI.instance;U=_.dj.instance;if(!U)return xD8(S,f,c),I.return();_.X1(I,2);S.onLoadingCommand&&f.resolveCommand(S.onLoadingCommand);return _.F(I,Q.getCurrentPositionFromGeolocation(),4);case 4:a=I.yieldResult;if(!S.resolveLocationCommand){I.jumpTo(5);break}X=Q.createLocationInfo(a);return _.F(I,_.P3(U,S.resolveLocationCommand,{locationInfo:X}),6);case 6:z=I.yieldResult;if(!z||"error"in z&&z.error||z.errorMetadata)return xD8(S,f,c),
I.return();var n;if(z==null?0:(n=z.onResponseReceivedActions)==null?0:n.length){n=_.A(z.onResponseReceivedActions);for(var b=n.next();!b.done;b=n.next())f.resolveCommand(b.value)}(_.Y(S.onSuccessCommand,_.tG)||_.Y(S.onSuccessCommand,_.KJ))&&_.Az(c.hostElement,"yt-navigate",{endpoint:S.onSuccessCommand,reload:!0});case 5:_.Pi(I,0);break;case 2:x=_.Bs(I);if(x instanceof GeolocationPositionError&&x.code===GeolocationPositionError.PERMISSION_DENIED)return S.onDeniedCommand&&f.resolveCommand(S.onDeniedCommand),
I.return();xD8(S,f,c);_.IN(I)}})},xD8=function(S,c,Q){S.onFailureCommand&&(c.resolveCommand(S.onFailureCommand),_.XF(Q.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},I50=function(S,c){var Q=_.Y(S,_.hY_);
if(Q&&c){S=Q.videoIds||[Q.videoId];var f;c=(f=_.Az(c,"yt-lockup-requested",{videoIds:S}).detail)==null?void 0:f.returnValue;var U;Q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?U=c?c:S.map(function(a){return{videoId:a,navigationEndpoint:Q.videoCommand}}):c&&(U=c);
U&&(f=U.map(function(a){var X=Object,z=X.assign;var x=a.navigationEndpoint;if(!_.Y(x,_.ll)){var I=_.Y(x,_.tG);if(I){if(delete I.index,delete I.playlistId,I=_.Y(x==null?void 0:x.commandMetadata,_.Qw),I==null?0:I.url){var n=I.url;n=_.c2(n,"list");n=_.c2(n,"index");I.url=n}}else x=void 0}return z.call(X,{},a,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:x})}),BSB(f,Q))}},nt0=function(S){var c=_.r2();
if(S=_.Y(S,_.qYe))S.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&c.clearQueue(),S.closeMiniplayer&&_.fl().resolve(_.ra).close(!0)},NS2=function(S){b8O(_.r2(),S)},Kq1=function(S){var c;
(S=(c=_.Y(S,_.DJd))==null?void 0:c.setVideoIds)&&S.forEach(function(Q){_.pud(_.r2(),Q)})},uF0=function(S){$DB(_.r2(),S)},jIp=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(S){return!1}},l5N=function(){var S,c;
return(c=(S=window).matchMedia)==null?void 0:c.call(S,"(prefers-reduced-motion: reduce)").matches},YzG=function(S){var c=_.fl().resolve(_.QS(_.AD));
if(c){var Q={beforeTransition:function(){S.style.viewTransitionName="miniplayer-page-transition"},
afterTransition:function(){S.style.viewTransitionName=""}};
RX(c,"slide",Q);RX(c,"zoom",Q)}},C2B=function(S,c,Q){return{horizontalAlignment:S.x+Q.width/2<c.width/2?"west":"east",
verticalAlignment:S.y+Q.height/2<c.height/2?"north":"south"}},p2p=function(S,c,Q,f,U){U=U===void 0?new _.pn(0,0):U;
return H81(DD8(S,c,Q,f),U)},DD8=function(S,c,Q,f){return new _.pn(S==="west"?16:Q.width-f.width-16,c==="north"?16:Q.height-f.height-16)},hWO=function(S,c){var Q=0;
S&&(Q+=76);c&&(Q+=285);return Q},qzE=function(S){var c=["h",
"m","s"],Q=_.VY(c);Q.reverse();var f={};S=(S.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(X){var z=(X.match(/[hms]/)||[""])[0];return z?(f[z]=parseInt(X.match(/\d+/)[0],10),!1):!0});
for(S.reverse();S.length&&Q.length;){var U=Q.shift();U in f||(f[U]=parseInt(S.shift(),10))}if(S.length||f.s>59||f.m>59||f.h>9)return null;var a="";c.forEach(function(X){f[X]&&(a+=""+f[X]+X)});
return a||null},TSZ=function(S){S=S.data;
return _.B("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.B("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.B(_.RW,{data:{thumbnails:[{url:S.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.B("div",{class:"profile-badge-view-model-wiz__content"},_.B("div",{class:"profile-badge-view-model-wiz__badge-description"},S.badgeDesc),S.badgeSubtitle?_.B("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},S.badgeSubtitle):null))},w20=function(S){S=
S.data;
var c=_.EH("yt-comment-interaction-view-model");_.xNz(c,S.rendererContext);return _.B("yt-comment-interaction-view-model",{el:c,class:"yt-comment-interaction-view-model-wiz"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":S.onTapA11yLabel,"on:keydown":_.JEz(),tabindex:0},_.B("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},S.headerPrefix,' "',S.videoTitle),_.B("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.B("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.B("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},S.commentContent),_.B("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.B(_.RW,{data:{thumbnails:[{url:S.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},MLO=function(S){S=S.data;
return _.B("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},sI2(S.avatar),_.B("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},S.channelName))},Z8B=function(S){S=S.data;
var c;return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},S.commentsInteractionTitle)),(c=S.comments)==null?void 0:c.map(function(Q){return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},i8N(Q))}))},GZE=function(S){S=S.data;
var c=_.gH({elementsCommand:S.subscriptionsAccessButtonCommand}),Q=_.EH("a");_.rEp(Q,_.Gv(S.subscriptionsAccessButtonCommand));var f;return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B("a",{el:Q,"on:click":_.$d(function(U){if(c==null?0:c.onclick)c.onclick(U);return!1}),
class:"yt-profile-info-view-model-wiz__another-header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},S.sharedSubscriptionsTitle),_.B("div",null,i8N(S.subscriptionsAccessButton)))),_.B("div",{class:"yt-profile-info-view-model-wiz__subs"},(f=S.sharedSubscriptions)==null?void 0:f.slice(0,5).map(function(U){return _.B("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",i8N(U))})))},WqE=function(S){S=S.data;
var c;return _.B("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.B("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.B("h2",{class:"yt-profile-info-view-model-wiz__section-title"},S.sharedSubscriptionsTitle)),_.B("div",{class:"yt-profile-info-view-model-wiz__subs"},(c=S.sharedSubscriptions)==null?void 0:c.slice(0,5).map(function(Q){return _.B("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",i8N(Q))})))},gtp=function(S){S=S.data;
return _.B("div",{class:"yt-profile-info-view-model-wiz__activity"},[S.profileBadgeInfoYtWide,S.profileBadgeInfoChannelWide].map(function(c){var Q,f,U,a,X;return c?_.B(_.ak,null,_.B("div",{class:"yt-profile-info-view-model-wiz__header"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-title"},c==null?void 0:c.profileSectionTitle),_.B("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},c==null?void 0:(Q=c.commentBadge)==
null?void 0:Q.commentDesc),(c==null?0:(f=c.commentBadge)==null?0:f.blackHeartDesc)?_.B("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.B("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.B(_.RW,{data:{thumbnails:[{url:c==null?void 0:(U=c.commentBadge)==null?void 0:U.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.B("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},c==null?void 0:(a=
c.commentBadge)==null?void 0:a.blackHeartDesc))),_.B("div",{class:"yt-profile-info-view-model-wiz__badge"},c==null?void 0:(X=c.badges)==null?void 0:X.map(function(z){return _.B(TSZ,{data:z})}))):null}))},eWZ=function(S){S=S.data;
return _.B("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.B(gtp,{data:S}),S.comments?_.B(Z8B,{data:S}):null,S.sharedSubscriptionsTitle?S.subscriptionsAccessButtonCommand?_.B(GZE,{data:S}):_.B(WqE,{data:S}):null)},rzZ=function(S){var c=S.data;
S=c?kZp(c.profileIdentityInfo):void 0;c=c?kZp(c.profileInfo):void 0;return _.B("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},S,c)},dDO=function(S,c){var Q=_.Oj$(c,{},S,!0);
return new Promise(function(f,U){Q.listenOnce("n",function(){U(Error("il`"+Q.JSC$25952_getErrorDescription()))});
Q.listenOnce("l",function(){var a=Q.getResponseCode();if(a!==200)U(Error("jl`"+c+"`"+S.type+"`"+S.size+"`"+a));else try{f(JSON.parse(Q.getResponseText()).encryptedBlobId)}catch(X){U(X)}});
Q.run()})},vtg=function(S){return S.substring(S.indexOf(":")+1,S.indexOf(";"))},P2T=function(S){return new Promise(function(c,Q){var f=new FileReader;
f.onloadend=function(){try{var U=new Uint8Array(f.result);U.length<8&&Q(void 0);var a=U.subarray(0,8);U="";for(var X=0;X<a.length;X++)U+=("0"+a[X].toString(16)).substr(-2);U.startsWith("ffd8ff")?c("image/jpeg"):U.startsWith("47494638")?c("image/gif"):U.startsWith("89504e470d0a1a0a")?c("image/png"):U.startsWith("424d")?c("image/bmp"):c(void 0)}catch(z){Q(z)}};
f.onerror=Q;f.readAsArrayBuffer(S)})},Lqg=function(S){return new Promise(function(c,Q){var f=new Image;
f.crossOrigin="anonymous";f.onload=function(){var U=document.createElement("canvas");U.width=f.naturalWidth;U.height=f.naturalHeight;var a=U.getContext("2d");if(!a)throw Error("kl");a.drawImage(f,0,0);a=vtg(S);U.toBlob(function(X){X?c(X):Q()},a)};
f.src=S})},tLE=function(S,c){var Q;
if(((Q=_.Y(S,_.ll))==null?void 0:Q.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var f;_.Az((f=c.hostElement)!=null?f:c,"yt-shorts-reset");_.wez(_.fl().resolve(_.us),S).then(function(a){Etp(a,c,S)})}else{var U;
_.xt((U=c.hostElement)!=null?U:c,[S]).then(function(a){a&&Etp(a.data,c,S)})}},Etp=function(S,c,Q){if(S){var f=_.Y(S.replacementEndpoint,_.ll);
if(f){S.sequenceContinuation&&(f.sequenceParams=S.sequenceContinuation);var U;_.Az((U=c.hostElement)!=null?U:c,"yt-navigate",{endpoint:S.replacementEndpoint})}else if((S==null?void 0:S.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(S==null?0:S.watchStatus)&&_.Y(S.watchStatus,_.zCd)){var a;_.Az((a=c.hostElement)!=null?a:c,"yt-navigate",{endpoint:Q})}}},VL2=function(S){var c=_.fl().resolve(_.kR),Q=Ac8(c.getState())||"";
c=_.t3H(c.getState())||"";Q=Q==="ytd-browse"&&c==="home";return _.u("web_guide_entry_enable_cache_for_non_home_pages")?(S=(S==null?void 0:S.navigationEndpoint)&&_.nJ(S.navigationEndpoint)==="home",{disableCache:Q&&S}):{disableCache:Q}},RW1=function(S){if(!S)return!1;
try{if(S.host&&S.host.tagName==="YT-FORMATTED-STRING"&&S.host.id==="contenteditable-textarea"||S.nodeType===Node.ELEMENT_NODE&&S.tagName==="YTD-COMMENT-INPUT")return!0}catch(c){return!1}return RW1(S.parentNode)},yT=function(S){return S?S.tagName==="A"&&S.href&&S.classList.contains("yt-simple-endpoint"):!1},yzO=function(S){return S?S.tagName==="IMG"&&S.classList.contains("emoji"):!1},otT=function(S,c,Q){if(!S)return null;
var f=yT(S);if(f&&Q)return c=S.pathname.substring(S.pathname.indexOf("/channel/")+9),document.createTextNode("@"+c);if(f&&!Q)return document.createTextNode("");if(yzO(S))return Q=S.alt,S=S.dataset.emojiId,!S&&c&&(c=_.j0(c,Q))&&c.isCustomEmoji&&(S=c.emojiId),S?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+S+">"):document.createTextNode(Q);f=S.cloneNode(!1);for(var U=0;U<S.childNodes.length;++U){var a=otT(S.childNodes[U],c,Q);a&&f.appendChild(a)}return f},oX=function(S){return S?yT(S)?S:oX(S.lastChild):
null},mDE=function(S){return S?yT(S)?S:mDE(S.firstChild):null},Sm2=function(S){if(!S)return null;
for(var c=S.previousSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.previousSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.previousSibling;else break;(c=oX(c))?S=c:S=(S=S.parentNode)?oX(S.previousElementSibling):null;return S},cb8=function(S){if(!S)return null;
for(var c=S.nextSibling;c;)if(c.nodeType===Node.ELEMENT_NODE&&c.nodeName==="BR")c=c.nextSibling;else if(c.nodeType===Node.TEXT_NODE&&/\s+/.test(c.textContent))c=c.nextSibling;else break;return(c=mDE(c))?c:cb8(S.parentNode)},QB1=function(S){var c=_.Yu(),Q=c.JSC$9293_getStartNode();
if(!RW1(Q.parentNode))return null;c=c.JSC$9293_getStartOffset();if(Q.nodeType===Node.TEXT_NODE){var f=_.Mk(Q,yT);if(f){if(S&&c===0||!S&&c===Q.length)return f}else{if(S&&c===Q.length)return!Q||Q.nodeName==="BR"||Q.nextElementSibling&&_.CD(Q.nextElementSibling,"display")==="block"?null:mDE(Q.nextElementSibling);if(!S&&c===0)return Q?oX(Q.previousElementSibling):null}}if(Q.nodeType===Node.ELEMENT_NODE)if(S){if(0<=c&&c<Q.childNodes.length)return mDE(Q.childNodes[c])}else if(0<c&&c<=Q.childNodes.length)return oX(Q.childNodes[c-
1]);return null},f8g=function(S,c,Q){if(!S)return null;
if(S.nodeType===Node.TEXT_NODE)if(Q){var f=Sm2(S);if(f&&!/^\s+\S/.test(S.wholeText.substr(0,c)))return f}else if((f=cb8(S))&&!/\S\s+/.test(S.wholeText.substr(c,S.wholeText.length)))return f;return S.nodeType===Node.ELEMENT_NODE?Q?Sm2(S.childNodes[c]):cb8(S.childNodes[c]):f8g(S.parentNode,c,Q)},UOU=function(S){if(S.hasChildNodes())switch(S.tagName){case "DIV":case "A":case "SPAN":var c="";
for(S=S.firstChild;S;S=S.nextSibling)c+=UOU(S);return c;default:return""}else switch(S.nodeType){case 3:return S.textContent;default:return""}},JbE=function(S){S=S.data;
return _.B("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.B("div",null,_.B(_.mw,{text:S.title})),S.subtitle?_.B("div",{class:"ytd-menu-title-renderer__subtitle"},_.B(_.mw,{text:S.subtitle})):null)},a80=function(S){switch(S){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"}},AbV=function(S){return S.map(function(c){return{settingsRadioOptionRenderer:{title:_.Jb(c.name),
asideText:_.Jb(c.approximateSize),id:a80(c.format)}}})},OKT=function(S){if(S&&S.length!==0)return S.filter(Xq0()).map(function(c){return{settingsRadioOptionRenderer:{title:c.name,
asideText:c.approximateSize,id:a80(c.formatType)}}})},mN=function(S){if(S)return S.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},zrE=function(S,c){S=new Set(S!=null?S:[]);
if(S.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(S.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(S.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(S.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(S.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM";if(c)return"YOUTUBE_ENTITY_TYPE_DEFAULT"},xOU=function(S){var c=S.indexOf("(");
return c!==-1?S.substring(c+1,S.length-1):S},FMZ=function(S){switch(S){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},I8p=function(S,c,Q,f,U,a){var X=_.Cn.clone(BPV);
X.locale=_.WY("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;X.report={description:U||"<empty>"};U=_.WY("SBOX_SETTINGS",{});c=c.join(",");var z=Date.now();S={choice_cc:f,choice_id_cc:Q,choices_sc:c,gl:U.REQUEST_DOMAIN,hl:U.REQUEST_LANGUAGE,query:S,time:z};a&&(S.choice_additional_comment_cc=a);_.nsJ(X,S)},nyZ=function(S){var c=new Map;
c.set("authuser",_.WY("SESSION_INDEX","0"));return _.fn(S,c)},NP0=function(S){var c;
return _.O(function(Q){switch(Q.nextAddress){case 1:if(!S||!bK8(S))return Q.return(null);c=null;switch(_.WY("INNERTUBE_CLIENT_NAME")){case "WEB":return Q.jumpTo(2);case "WEB_REMIX":c=S.getPlayer()}Q.jumpTo(3);break;case 2:return _.F(Q,S.getPlayerPromise(),4);case 4:c=Q.yieldResult;Q.jumpTo(3);break;case 3:return Q.return(c)}})},bK8=function(S){return["ytd-player",
"ytmusic-player"].includes(String(S.tagName||"").toLowerCase())},KMZ=function(S){S=Math.round(S);
return S%2?S-1:S},$O8=function(S){S=Math.round(S);
return S%2===0?S-1:S},uTU=function(S){var c,Q,f;
if(S=(c=S.createPlaylistDialogFormSchema)==null?void 0:(Q=c.fieldSchemas)==null?void 0:(f=Q.title)==null?void 0:f.validationSchema)for(c=[S.syncStep,S.asyncStep].filter(function(U){return U!==void 0}),c=_.A(c),Q=c.next();!Q.done;Q=c.next()){Q=Q.value.rules;
if(!Q)break;Q=_.A(Q);for(Q=Q.next();!Q.done;Q=Q.next())return _.Y(Q.value,_.CNE)}},l8T=function(S){var c,Q,f;
if(S=(c=S.createPlaylistDialogFormSchema)==null?void 0:(Q=c.fieldSchemas)==null?void 0:(f=Q.visibility)==null?void 0:f.validationSchema)for(c=[S.syncStep,S.asyncStep].filter(function(U){return U!==void 0}),c=_.A(c),Q=c.next();!Q.done;Q=c.next()){Q=Q.value.rules;
if(!Q)break;Q=_.A(Q);for(f=Q.next();!f.done;f=Q.next())if(f=_.Y(f.value,jBU))return c=void 0,(c=f.translations)==null?void 0:c.visibilityNotValidErrorMessage}},Ymg=function(){var S,c;
return(c=(S=_.fl().resolve(_.QS(_.Lv)))==null?void 0:S())!=null?c:!1},CZE=function(S){var c=21;
if(!S)return c;c+=S.headerTitle?27:0;c+=S.headerTitle&&S.hasHeaderActionHeader?4:0;return c+=S.headerTitle&&S.headerSubtitle?16:0},HKU=function(S){var c=0;
if(!S)return c;c+=S.hasFooterPrimaryButton||S.hasFooterSecondaryButton?48:0;c+=S.footerTrailingLabel||S.footerLeadingLabel?30:0;return c+=S.hasFooterPrimaryButton||S.hasFooterSecondaryButton||!S.footerTrailingLabel&&!S.footerLeadingLabel?0:12},DOG=function(S){var c=new _.bB,Q=S;
return{subscribe:function(f){c.subscribe("changed",f)},
dispatch:function(f,U){var a=Q;f==="Touch Start"?Q=Object.assign({},a,{isAnimating:!1,initialY:U.event.touches[0].clientY}):f==="Touch Move"?(f=Math.min(U.fullContentWrapperHeight,U.contentHeightMap[U.contentWrapperId]+CZE(U.header)-HKU(U.footer)),Q=Object.assign({},a,{currentY:Math.max(U.contentScrollable?-1*(a.initialY-24):0,U.event.touches[0].clientY-a.initialY),maxHeightForContentWrapper:Math.min(f,Math.max(0,(a.isFullScreen?f:U.contentWrapperHeight)-a.currentY))})):Q=f==="Snap To Full Screen"?
Object.assign({},a,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:U.maxHeight}):f==="Snap To Neutral Position"?Object.assign({},a,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:U.maxHeight}):f==="Close Sheet"?Object.assign({},a,{isAnimating:!0,currentY:U.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:U.maxHeight}):a;c.publish("changed",Q)}}},pqT=function(S){return _.$d(function(c){S(c);
return!1})},hr0=function(){_.fl().resolve(_.CE).closeSheet()},qmp=function(S){var c,Q,f,U,a,X,z,x,I,n,b;
return{headerTitle:(c=S.headerTitle)==null?void 0:c.call(S),headerSubtitle:(Q=S.headerSubtitle)==null?void 0:Q.call(S),headerActionHeader:S.headerActionHeader,footerPrimaryButton:S.footerPrimaryButton,footerSecondaryButton:S.footerSecondaryButton,footerButtonType:(f=S.footerButtonType)==null?void 0:f.call(S),footerLeadingLabel:(U=S.footerLeadingLabel)==null?void 0:U.call(S),footerTrailingLabel:(a=S.footerTrailingLabel)==null?void 0:a.call(S),shouldShowIcons:(X=S.shouldShowIcons)==null?void 0:X.call(S),
skipContentClick:(z=S.skipContentClick)==null?void 0:z.call(S),additionalClassName:(x=S.additionalClassName)==null?void 0:x.call(S),onClosedCallback:S.onClosedCallback,focusOnClose:(I=S.focusOnClose)==null?void 0:I.call(S),isDisabled:(n=S.isDisabled)==null?void 0:n.call(S),disabledCommand:(b=S.disabledCommand)==null?void 0:b.call(S),headerFn:S.headerFn,contentFn:S.contentFn,footerFn:S.footerFn,hasHeaderFn:S.hasHeaderFn(),hasContentFn:S.hasContentFn(),hasFooterFn:S.hasFooterFn(),hasFooterPrimaryButton:S.hasFooterPrimaryButton(),
hasFooterSecondaryButton:S.hasFooterSecondaryButton(),hasHeaderActionHeader:S.hasHeaderActionHeader()}},TPN=function(S){switch(S){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""}},wqE=function(S){switch(S){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""}},sBE=function(S){switch(S){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""}},MDp=function(S,c,Q){c.forEach(function(f){_.F2(_.fl().resolve(_.Dp),f)});
_.XF(S,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",Q])},WM8=function(S,c,Q,f){var U=_.Y(Q,_.rx).commandLifeCycleConfig;
U&&U.onStartCommand&&_.FF(S,[U.onStartCommand],c);_.tW(c);var a=_.dj.instance;a&&_.v3(a,Q)?_.P3(a,Q,f).then(function(X){if(!X||(X==null?0:X.error))return X=_.Y(Q,_.rx).serializedTransactionFlowLoggingParams,_.VV(c),_.pv(new SU("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",X));_.VV(c);return{data:X}}).then(function(X){_.VV(c);
iKN(X.data);var z=X.data.command;z&&_.FF(S,[z],c);z=ZK8(Q,X.data);if(!z){var x=X.data;X=!1;if(x&&x.command&&_.Y(x.command,_.II)){var I;x=((I=_.Y(x.command,_.II))==null?void 0:I.commands)||[];for(I=0;I<x.length;I++)if(_.Y(x[I],_.ypJ)){X=!0;break}}X||_.T3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!z&&U&&U.onSuccessCommand?_.FF(S,[U.onSuccessCommand],c):z&&U&&U.onFailureCommand&&_.FF(S,[U.onFailureCommand],c)},function(){_.VV(c);
U&&U.onFailureCommand&&_.FF(S,[U.onFailureCommand],c);GhG(Q)}):_.sH(Error("Bl"),"ERROR")},gyB=function(S,c,Q){var f=[c];
Q&&f.push(Q);return _.xt(S,f).then(function(U){var a=_.Y(c,_.rx).serializedTransactionFlowLoggingParams,X=U.data,z=ZK8(c,X);z?U=_.pv(new SU(z,a)):iKN(X);return U},function(){var U=_.Y(c,_.rx).serializedTransactionFlowLoggingParams;
GhG(c);return _.pv(new SU("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",U))})},ZK8=function(S,c){S=_.Y(S,_.rx).serializedTransactionFlowLoggingParams;
var Q=null;switch(c.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":Q="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":Q="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":Q="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}Q?_.LJ(Q,S):mq0(S);return Q},GhG=function(S){_.LJ("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.Y(S,_.rx).serializedTransactionFlowLoggingParams)},
iKN=function(S){if(S.trackingParams){var c=_.wN(),Q=_.T$();
c&&Q&&_.dS(c,Q,_.Yz(S.trackingParams))}},erB=function(S,c,Q){var f=_.dj.instance,U=_.a7z(_.WY("YPC_MB_URL")),a=(new _.UAo).init(),X=_.JFc(),z=_.Y(Q,_.Ecs).languageCode;
z===void 0?_.sH(Error("Fi"),"ERROR"):_.Dg([a,U]).then(function(){var x={ctk:payments.business.integration.ClientTokenFactory.createClientToken(z,X)};f&&_.v3(f,Q)?_.P3(f,Q,x).then(function(I){return{data:I}}).then(function(I){_.Az(c,"yt-service-request-completed",I);
I.code!=="ERROR"&&(I=I.data.command)&&_.FF(S,[I],c)}):_.sH(Error("Bl"),"ERROR")})},dOp=function(S,c,Q,f){var U=_.dj.instance;
U&&_.v3(U,Q)?_.P3(U,Q,f).then(function(a){return{data:a}}).then(function(a){khV(S,c,Q,a)},function(){rbG(Q)}):(U=_.fl().resolve(_.QS(_.s_)))&&U.requestDataForServiceEndpoint(Q,f).then(function(a){khV(S,c,Q,a)},function(){rbG(Q)})},khV=function(S,c,Q,f){_.Az(c,"yt-service-request-completed",f);
if(f.code&&f.code=="ERROR")rbG(Q);else{(f=f.data.commands)&&_.FF(S,f,c);var U;(S=(U=_.Y(Q,_.mBJ))==null?void 0:U.serializedYpcPauseFlowLoggingParams)&&S&&_.wg("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",S)}},rbG=function(S){var c;
(S=(c=_.Y(S,_.mBJ))==null?void 0:c.serializedYpcPauseFlowLoggingParams)&&S&&_.wg("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",S,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},LMZ=function(S,c,Q){var f=_.dj.instance;
f&&_.v3(f,Q)?_.P3(f,Q).then(function(U){return{data:U}}).then(function(U){vy2(S,c,Q,U)},function(){PZE(Q)}):(f=_.fl().resolve(_.QS(_.s_)))&&f.requestDataForServiceEndpoint(Q).then(function(U){vy2(S,c,Q,U)},function(){PZE(Q)})},vy2=function(S,c,Q,f){_.Az(c,"yt-service-request-completed",f);
f.code&&f.code=="ERROR"?PZE(Q):((f=f.data.commands)&&_.FF(S,f,c),(S=_.Y(Q,_.Sci).serializedYpcResumeFlowLoggingParams)&&S&&_.wg("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",S))},PZE=function(S){(S=_.Y(S,_.Sci).serializedYpcResumeFlowLoggingParams)&&S&&_.wg("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",S,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},Ey0=function(S){S=S===void 0?{}:S;
_.fl().resolve(_.bVH).showFeedbackDialog(S.customProductData,S.feedbackContent,S.onFeedbackSubmitted,S.bucket)},tD2=function(S){S=S===void 0?{}:S;
_.fl().resolve(_.bVH).showHelpDialog(S.helpContext,S.articleId,S.productData)},VD2=function(){tD2()},RrU=function(){Ey0()},oyE=function(S,c,Q){var f,U,a,X,z,x,I;
return _.O(function(n){switch(n.nextAddress){case 1:f=_.Y(S,ybZ);if((U=f)==null?0:U.productId){x={productId:f.productId,bucket:f.bucket,enableAnonymousFeedback:(z=f.enableAnonymousFeedback)!=null?z:!0,allowNonLoggedInFeedback:!0};I={feedbackChoice:Q.feedbackChoice};if(!_.u("web_collect_offline_state")){n.jumpTo(8);break}_.X1(n,9);return _.F(n,O1U(I),11)}X={bucket:(a=f)==null?void 0:a.bucket};if(!_.u("web_collect_offline_state")){n.jumpTo(4);break}X.customProductData={};_.X1(n,5);return _.F(n,O1U(X.customProductData),
7);case 7:_.Pi(n,4);break;case 5:_.Bs(n);case 4:Ey0(X);n.jumpTo(0);break;case 11:_.Pi(n,8);break;case 9:_.Bs(n);case 8:_.ysM(I),_.Rgx("GFEEDBACK",I),f.productId==="5295751"&&(I.client_attestation=Number(_.WY("CATSTAT",0))),f.productId==="5295751"&&(I.client_time=Date.now()/1E3/3600),f.productId==="5295751"&&(I.original_playback_id=_.gFT||""),_.nsJ(x,I),_.IN(n)}})},mOT=function(S){if(S=_.Y(S,_.kPp)){var c={bucket:S.bucketIdentifier};
S.additionalDatas&&(c.customProductData={},S.additionalDatas.forEach(function(Q){if(Q=Q.userFeedbackEndpointProductSpecificValueData)c.customProductData[Q.key]=Q.value}));
Ey0(c)}},S_8=function(S){var c=_.dQ.getInstance();
var Q=_.K8("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var f=_.K8("DELETE",void 0,"Delete"),U=_.K8("CANCEL",void 0,"Cancel");Q=N5g(Q,void 0,f,U,{signal:"DELETE_ALL_DOWNLOADS"});_.i4(c,[{openPopupAction:Q}],S)},QMN=function(){return _.O(function(S){return S.nextAddress==1?_.F(S,_.fl().resolve(_.oE),2):_.F(S,c4N(),0)})},fO0=function(S){var c,Q;
return _.O(function(f){return f.nextAddress==1?(Q=(c=_.Y(S,_.ee))==null?void 0:c.targetId)?_.F(f,_.fl().resolve(_.oE),3):f.jumpTo(0):_.F(f,_.fl().resolve(_.yC).deleteVideo(Q),0)})},J41=function(S){var c,Q;
return _.O(function(f){return f.nextAddress==1?(Q=(c=_.Y(S,_.ee))==null?void 0:c.targetId)?_.F(f,_.fl().resolve(_.oE),3):f.jumpTo(0):_.F(f,U6g(_.fl().resolve(_.yC),Q),0)})},A4E=function(S){var c,Q;
return _.O(function(f){return(Q=(c=_.Y(S,_.ee))==null?void 0:c.targetId)?_.F(f,aOB(Q),0):f.jumpTo(0)})},OJ0=function(){_.u("kevlar_woffle_refresh_dl_load_killswitch")||XVB()},x6Z=function(){_.u("kevlar_woffle")&&_.q6.instance&&zM0()},BhE=function(S){var c;
if((c=_.Y(S,_.BK))==null||!c.videoId)return!1;FS0(_.fl().resolve(_.yC),_.Y(S,_.BK),S.clickTrackingParams);return!0},nk1=function(S){var c;
if((c=_.Y(S,_.Ii))==null||!c.playlistId)return!1;IOZ(_.fl().resolve(_.yC),_.Y(S,_.Ii),S.clickTrackingParams);return!0},NhB=function(S){var c=_.Y(S,_.Pcd);
(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(c==null?void 0:c.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||bJp(_.fl().resolve(_.yC),_.Y(S,_.Pcd))},$6E=function(S){S=_.Y(S,_.Kud);
var c;(S==null?0:(c=S.actions)==null?0:c.length)&&KSB(S)},lO2=function(S){var c,Q;
return _.O(function(f){c=_.Y(S,uUG);return(Q=c)!=null&&Q.localWatchHistoryCommandType?_.F(f,jME(c),0):f.return()})},Y_1=function(S){setTimeout(function(){requestAnimationFrame(S)},80)},ClB=function(S){return Object.entries(S).map(function(c){return c.join(":")}).join(";")},D6E=function(S){var c,Q,f;
_.O(function(U){if(U.nextAddress==1)return _.F(U,HJ8(),2);c=U.yieldResult;Q=_.BI.instance;switch(c){case "granted":f=S.getLocationCommand;break;case "denied":f=S.openDeniedDialogAction;break;case "prompt":f=S.openCollectionDialogAction;break;default:f=S.openCollectionDialogAction}f&&Q.resolveCommand(f);_.IN(U)})},HJ8=function(){var S,c;
return _.O(function(Q){if(Q.nextAddress==1)return S="prompt",navigator.permissions?_.F(Q,navigator.permissions.query({name:"geolocation"}),3):Q.jumpTo(2);Q.nextAddress!=2&&(c=Q.yieldResult,S=c.state);return Q.return(S)})},hMG=function(){_.O(function(S){return _.F(S,_.pV2(),0)})},q_0=function(){var S,c,Q;
return _.O(function(f){if(f.nextAddress==1)return S=_.fl().resolve(_.M6),S?_.F(f,_.P3(S,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.i5(Error("El")),f.return(void 0));if(c=f.yieldResult){if(c.errorMetadata)return _.i5(Error("Fl`"+c.errorMetadata.status+"`"+c.error)),f.return(void 0);Q=c.datasyncIds;_.bGp=Q.length;return f.return(Q)}_.i5(Error("Gl"));return f.return(void 0)})},ThU=function(){q_0().then(function(S){S&&(ZlU(S),cc8(S),pt0(S),xP0(S))})},wV8=function(S){_.Mq.addLowPriorityJob(function(){var c,
Q,f,U,a;
return _.O(function(X){switch(X.nextAddress){case 1:if(_.u("ytidb_clear_optimizations_killswitch")){X.jumpTo(2);break}c=_.jJ("clear");if(c.startsWith("V")&&c.endsWith("||")){var z=[c];ZlU(z);cc8(z);pt0(z);xP0(z);return X.return()}Q=hJT();f=FYg();return _.F(X,QTE(),3);case 3:return U=X.yieldResult,_.F(X,GDO(),4);case 4:if(a=X.yieldResult,!(Q||f||U||a))return X.return();case 2:S.isNetworkAvailable()?ThU():S.listenOnce("publicytnetworkstatus-online",ThU),_.IN(X)}})})},cf=function(S){S={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.LK(S)}}}};_.BI.instance&&_.BI.instance.resolveCommand(S)},sM0=function(S){if(S){var c=_.Kv();
_.X2(c,3854,void 0,{layer:0,parentLayer:4});switch(S){case 1:var Q=238708;break;case 2:Q=238715;break;case 3:Q=238710;break;case 6:Q=238709}Q&&(S=_.NK(c,{veType:Q}))&&_.xA(c,S)}},Mmg=function(S){if(S){var c=_.Kv();
_.X2(c,3854,void 0,{layer:0,parentLayer:4});switch(S){case 1:var Q=238714;break;case 2:Q=238711;break;case 8:Q=238709;break;case 7:Q=238713;break;case 3:case 4:case 5:Q=238712}Q&&(S=_.NK(c,{veType:Q}))&&_.xA(c,S)}},iJg=function(S){switch(S.latencyType){case 0:_.MD("consent_primitive_flow");
_.i2("cpit",S.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.i2("cpist",S.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.i2("cprtif",S.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.i2("cprtli",S.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.i2("cprt",S.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.i2("cpdt",S.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.i2("cpjct",S.timestampEpochMillis,"consent_primitive_flow")}},
PlO=function(S,c){var Q,f,U,a,X,z,x,I,n,b,N,l,H,q,w,g,r,E,v,t;
return _.O(function(V){switch(V.nextAddress){case 1:_.X1(V,2);(f=(Q=_.Y(S,ZJG))==null?void 0:Q.serializedConsentRequest)||(f=(U=_.Y(S,GWO))==null?void 0:U.serializedConsentRequest);f&&(a=WSg(_.Od(f)));if(a===void 0)return V.return();X=gk2(a);X.latencyCallback=iJg;c&&eM1(X,function(){c.then(function(AZ){AZ.pauseVideo();(new kWB).increment()})});
return((z=_.Y(S,ZJG))==null?void 0:z.consentAction)==="CONSENT_ACTION_PREWARM"||((x=_.Y(S,GWO))==null?void 0:x.consentAction)==="CONSENT_ACTION_PREWARM"?_.F(V,r40(X),5):_.F(V,d61(X),6);case 6:I=V.yieldResult;n=_.Dx(I,Ql);if(n===1){if(((b=_.Wg(I,fe,1,Ql))==null?void 0:_.iR(b,1))===1||((N=_.Wg(I,fe,1,Ql))==null?void 0:_.iR(N,1))===2||((l=_.Wg(I,fe,1,Ql))==null?void 0:_.iR(l,1))===3)_.Y(S,GWO)?cf(_.K8("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
cf(_.K8("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));sM0((H=_.Wg(I,fe,1,Ql))==null?void 0:_.iR(H,1),_.St(I,vkZ,3,_.c1()))}else n===2?(((q=U1(I))==null?void 0:_.iR(q,1))===5?_.Y(S,GWO)?cf(_.K8("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):cf(_.K8("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((w=U1(I))==null?void 0:_.iR(w,1))===1||((g=U1(I))==null?void 0:_.iR(g,1))===4?cf(_.K8("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((r=U1(I))==null?void 0:_.iR(r,1))===7&&((E=a)==null?void 0:(v=_.JB(E,Jg,4))==null?void 0:_.iR(v,4))!==1&&cf(_.K8("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),Mmg((t=U1(I))==null?void 0:_.iR(t,1))):cf(_.K8("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));V.jumpTo(5);break;case 5:_.Pi(V,0);break;case 2:_.Bs(V),cf(_.K8("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.IN(V)}})},EkT=function(){if(!LSB.has("Worker")){LSB.set("Worker",
!0);
var S={api:"BROWSER_API_WEB_WORKER"};S.available="Worker"in window?!0:!1;_.Te("apiTest",S)}},tm2=function(S){return typeof S==="undefined"?"-1":String(Math.ceil(S/1048576))},ok0=function(S,c){VmT(new RMO(_.Y(c,y40).addToken,_.Y(c,y40).commonToken)).then(function(){_.Az(S,"yt-invoke-instrument-manager-action-completed")},function(Q){_.Az(S,"yt-invoke-instrument-manager-action-error",Q)})},m6Z=function(S){return _.dr(S)},SrV=function(S){var c=1;
S=S.split(":");for(var Q=[];c>0&&S.length;)Q.push(S.shift()),c--;S.length&&Q.push(S.join(":"));return Q},cqE=function(S,c){c=S.aspectRatio()<=c.aspectRatio()?c.width/S.width:c.height/S.height;
S.scale(c)},Q1Z=function(S,c){c=S.aspectRatio()>c.aspectRatio()?c.width/S.width:c.height/S.height;
return S.scale(c)},fIT=function(S){var c=new _.x5;
return _.gr(c,11,S)},U_E=function(S){var c={};
S=S.getAllResponseHeaders().split("\r\n");for(var Q=0;Q<S.length;Q++)if(!_.Xo(S[Q])){var f=SrV(S[Q]),U=f[0];f=f[1];if(typeof f==="string"){f=f.trim();var a=c[U]||[];c[U]=a;a.push(f)}}return _.Cn.map(c,function(X){return X.join(", ")})},BO=function(S,c){return S.JSC$7833_xhr_?S.JSC$7833_xhr_.getResponseHeader(c):null},as=function(S,c,Q){Array.isArray(Q)||(Q=[String(Q)]);
_.RKd(S.JSC$8068_queryData_,c,Q);return S},zM0=function(){var S=_.q6.instance;
_.O(function(c){return S.deferredInstallPrompt?_.F(c,S.deferredInstallPrompt.prompt(),0):c.jumpTo(0)})},Jq8=function(S,c,Q){if(_.yY(S))_.PY(S,c,Q);
else for(S=_.azp(S);;){var f=S.next();if(f.done)break;c.call(Q,f.value,void 0,S)}},aI8={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}"]},QW2,fcT,UKE,J2Z,acg,A21,XI8,Ovp,zoN,aOB,U6g,c4N,xKB,Fd8,BHE,IcU,nzO,bvp,IOZ,FS0,NHg,Kd0,$K0,XVB,bJp,uBU,KSB,jWV,jME,lc1,YX2,C72,HvB,RX,DKp,pI0,hoO,qXV,
THB,wIB,sWO,MwE,ivB,b8O,BSB,ZvE,F$,Bf,Is,ne,GvN,WdU,gz2,eoB,kv2,r2E,dKO,vzE,P7Z,LdE;aI8={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 AqB=function(S,c){var Q=[];Jq8(c,function(f){try{var U=_.JG.prototype.getWrapper.call(this,f,!0)}catch(a){if(a=="Storage: Invalid value was encountered")return;throw a;}U===void 0?Q.push(f):_.JBi(U)&&Q.push(f)},S);
return Q},X0T=function(S,c){AqB(S,c).forEach(function(Q){_.JG.prototype.remove.call(this,Q)},S)},OUE=function(S){var c=_.vx;
c._minimumZ=Math.max(c._minimumZ,S)},zfU=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],x_g=function(S,c){_.yN(S.jX);S.jX=c},FvE=function(S,c,Q,f){S.setState(5);
var U=!!S.wRm&&zfU.includes(_.ok(S.wRm)||"");try{var a=new _.Zg({program:c,globalName:Q,bW:{disable:!_.u("att_web_record_metrics")||!_.u("att_skip_metrics_for_cookieless_domains_ks")&&U,h9:"aGIf"}});a.mJc.then(function(){S.setState(6);f&&f(c)});
x_g(S,a)}catch(X){S.setState(7),X instanceof Error&&_.i5(X)}},BM8=function(S,c,Q,f,U,a){var X=X===void 0?"trayride":X;
Q?(S.setState(2),_.kU(Q,function(){if(window[X])FvE(S,f,X,U);else{S.setState(3);var z=_.V1x(Q),x=document.getElementById(z);x&&(_.m6T(z),x.parentNode.removeChild(x));_.i5(new _.Yr("BL:ULB",Q))}},a)):c?(a=_.Nf("SCRIPT"),c instanceof _.ZQ?_.g_(a,c):a.textContent=c,a.nonce=_.Mg(document),document.head.appendChild(a),document.head.removeChild(a),window[X]?FvE(S,f,X,U):(S.setState(4),_.i5(new _.Yr("BL:ULBJ")))):_.i5(new _.Yr("BL:ULV"))},IIO=function(){this.state=1;
this.jX=null;this.wRm=void 0};
_.J=IIO.prototype;_.J.initialize=function(S,c,Q,f){this.wRm=f;if(S.program){var U;f=(U=S.interpreterUrl)!=null?U:null;if(S.interpreterSafeScript)U=_.jBZ(S.interpreterSafeScript);else{var a;U=(a=S.interpreterScript)!=null?a:null}S.interpreterSafeUrl&&(f=_.iH(S.interpreterSafeUrl).toString());BM8(this,U,f,S.program,c,Q)}else _.i5(Error("mf"))};
_.J.isInitialized=function(){return!!this.jX};
_.J.getState=function(){return this.state};
_.J.isLoading=function(){return this.state===2};
_.J.invoke=function(S){S=S===void 0?{}:S;var c;this.jX?c=_.Wcd(this.jX,{rD:S}):c=null;return c};
_.J.dispose=function(){x_g(this,null);this.setState(8)};
_.J.setState=function(S){this.state=S};
var nnB=function(S,c){return S.jX.snapshot(c)},bUN=function(S,c){var Q=_.a6("botguard_async_snapshot_timeout_ms",3E3);
c=c===void 0?{}:c;Q=Q===void 0?3E3:Q;return S.jX?new Promise(function(f,U){var a=!1,X=_.Mq.addJob(function(){a=!0;U(Error("nf"))},1,Q);
S.jX?nnB(S,{rD:c}).then(function(z){_.Mq.cancelJob(X);a||f(z)}).catch(function(z){_.Mq.cancelJob(X);
a||U(z)}):(_.Mq.cancelJob(X),f(null))}):Promise.resolve(null)},NMN=["att/log"],KvE;
KvE={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var $_2={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},uV1=function(S,c){return _.KK(S,{mode:"readwrite",enableRetries:!0},function(Q){return _.DYp(Q,c,"settingEntity")})},j1U=function(S,c,Q){return _.KK(S,{mode:"readonly",
enableRetries:!0},function(f){return _.Ytd(f,c,Q)})},lIO=function(S){if(!S.storage)return!1;
a:{if(S.storage){try{var c=S.storage.get("TLPQtimestamp")}catch(Q){}S=Number(c);if(!isNaN(S))break a}S=void 0}return S?Date.now()-S<864E5:!1},Yr1=function(S){if(S.storage){try{var c=S.storage.get("TLPQindex")}catch(Q){}S=Number(c);
if(!isNaN(S))return S}},CwN=function(S,c){S.queueProxy&&c.forEach(function(Q){if(Q.videoId&&Q.trackingParams&&S.queueProxy instanceof _.sc){var f=_.wN();
S.queueProxy.attributionData.set(Q.videoId,{enqueueingVe:_.Yz(Q.trackingParams).getAsJson(),enqueueingCsn:f?f:void 0,clientEnqueueingTimeMs:Math.floor((0,_.Qk)()).toString()})}})},HUU=function(S){var c=_.frp(S);
c!=S.currentSnapState_&&(S.currentSnapState_=c,S.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},Ag=function(S){this.JSC$11095_networkManager_=S;
this.partCallbacks_=[]};
Ag.prototype.getCacheKeyForEndpoint=function(S){return _.ANH(S,!1)};
Ag.prototype.onPartsCallback_=function(S){this.partCallbacks_.forEach(function(c){S&&c(S)})};
var X$=function(S,c,Q){Ag.call(this,S);this.player_=c;this.autoplayData_=Q};
_.C(X$,Ag);X$.prototype.getCacheKeyForEndpoint=function(S){return _.ANH(S,!!this.autoplayData_)};
X$.prototype.getTempData=function(S,c){c=c.timeBeforeNextVideo;S={itct:S.clickTrackingParams,lact:_.f1(),pbis:c,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(S.autonav=1);return S};
X$.prototype.getXhrParams=function(S){return Object.assign({pbj:"prefetch"},S)};
X$.prototype.getParams=function(S){S={frags:S.fragmentsRequested.join(",")};_.u("kevlar_droppable_prefetchable_requests")&&(S.prefetch=1);return S};
var D_Z=function(S){S.playerEvents_.forEach(function(c){S.player.removeEventListener(c.eventName,c.callback)});
S.playerEvents_.length=0},O1=function(S,c,Q){this.player=S;
this.JSC$11105_taskManager=c;this.prefetchDelay=Q;this.completionResolver_=null;this.playerEvents_=[]};
O1.prototype.start=function(){var S=this;this.completionResolver_=_.L4();_.p0(this.completionResolver_.promise,function(){D_Z(S);S.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var p0O=function(S,c,Q){S.player.addEventListener(c,Q);S.playerEvents_.push({eventName:c,callback:Q})},hfg={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},qrZ={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},TMg=function(S,c,Q){O1.call(this,S,c,Q);this.cueId_="playbackTrigger-"+Math.random()};
_.C(TMg,O1);
TMg.prototype.prepareTrigger=function(S){var c=this,Q=this.player.getDuration(),f=this.player.getVideoData(),U=f.isLive&&f.hasProgressBarBoundaries;if(U&&f.progressBarEndPositionUtcTimeMillis){var a=f.progressBarEndPositionUtcTimeMillis/1E3;isNaN(a)||(Q=a)}var X=0;this.prefetchDelay>=0?U?f.progressBarStartPositionUtcTimeMillis&&(f=f.progressBarStartPositionUtcTimeMillis/1E3,isNaN(f)||(X=f+this.prefetchDelay)):X=this.prefetchDelay:X=Q+this.prefetchDelay;U?this.player.addUtcCueRange(this.cueId_,X,Q):
this.player.addCueRange(this.cueId_,X,Q);_.p0(S.promise,function(){c.player.removeCueRange(c.cueId_)});
p0O(this,"onCueRangeEnter",function(z){z==c.cueId_&&S.resolve(Q-X)})};
var w0O=function(S,c){S.fragmentConfiguration_[c].requiredKeys.every(function(Q){return!!S.prefetchedData_[Q]})&&(S.validatedFragments_.push(c),c=S.missingFragments_.indexOf(c),c!==-1&&S.missingFragments_.splice(c,1))},s11=function(S){S.prefetchedFragments_.forEach(function(c){w0O(S,c)})},M$8=function(S,c,Q){this.pageFragments_=S;
this.prefetchedFragments_=c;this.fragmentConfiguration_=qrZ;this.prefetchedData_=Q;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;s11(this)},iUT=function(){},ZU1=function(S){this.JSC$11119_playlistManager_=S};
_.C(ZU1,iUT);ZU1.prototype.getPrefetchEndpoint=function(){return this.JSC$11119_playlistManager_.getAutoplayEndpoint()};
var G4V=function(S){this.autonavEndpoints_=S};
_.C(G4V,iUT);G4V.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var Wv1=function(S,c,Q,f,U){this.autonavEndpoints=S;this.foregroundTrigger=c;this.backgroundTrigger=Q;this.pageType=f;this.isInPlaylist=U},gn8=function(S,c){if(S.webPrefetchData&&S.webPrefetchData.navigationEndpoints&&S.webPrefetchData.navigationEndpoints.length){S=S.webPrefetchData.navigationEndpoints;
var Q=_.Y(S[0],_.tG);if(Q.watchEndpointSupportedPrefetchConfig&&Q.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var f=Q.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;Q=f.playbackRelativeSecondsPrefetchCondition;Q=typeof Q==="number"&&Math.abs(Q)<c.videoDuration?Q:void 0;f=f.countdownUiRelativeSecondsPrefetchCondition;f=typeof f!=="number"||_.u("prefetch_job_config_cleanup_ks")&&c.inPlaylist?void 0:f;if(typeof f==="number")return new Wv1(S,c.makeUpNextTrigger(f),c.makePlaybackTrigger(f),
"watch",c.inPlaylist);if(typeof Q==="number")return new Wv1(S,c.makePlaybackTrigger(Q),null,"watch",c.inPlaylist)}}},efU=function(S){return S.prefetchJobConfig_.backgroundTrigger?_.kC(_.LtT)()==0?S.prefetchJobConfig_.backgroundTrigger:S.prefetchJobConfig_.foregroundTrigger:S.prefetchJobConfig_.foregroundTrigger},k40=function(S){_.lS(document,"visibilitychange",S.onVisibilityChange_,!1,S)},z2=function(S){Ag.call(this,S)};
_.C(z2,Ag);z2.prototype.getCacheKeyForEndpoint=function(S){return Ag.prototype.getCacheKeyForEndpoint.call(this,S)};
z2.prototype.getTempData=function(){return{}};
z2.prototype.getXhrParams=function(S){return S};
z2.prototype.getParams=function(){return{}};
var rq8=function(S,c,Q){var f=S.prefetchDelay*1E3;if(Math.abs(f)>c)Q.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var U=f,a=c-f;f<0&&(U=c+f,a=Math.abs(f));var X=S.JSC$11105_taskManager.addJob(function(){Q.resolve(a/1E3)},10,U);
Q.promise.thenCatch(function(){S.JSC$11105_taskManager.cancelJob(X)})}},d_2=function(S,c,Q){O1.call(this,S,c,Q)};
_.C(d_2,O1);d_2.prototype.prepareTrigger=function(S){var c=this;p0O(this,"onAutonavCoundownStarted",function(Q){rq8(c,Q,S)})};
var vn2=function(S){S.pendingPrefetchJob_&&(S.pendingPrefetchJob_.cancel(),S.pendingPrefetchJob_=null)},PwE=function(S,c,Q){if(!S.triggeredTargets.has(c)){var f=_.y7$(S,c);
f.action=Q;_.Vji(S,c,f)}},Lv2=function(S){_.GXz();
_.aPZ("cpt")&&_.i5(Error("mh"));_.QY.requestAnimationFrame(function(){_.QY.setTimeout(function(){_.i2("cpt");var c=_.W2("vpl"),Q=_.W2("cpt");c&&Q&&_.i2("ol",Math.max(c,Q))})});
try{_.i2("fr_s"),S()}catch(c){_.sH(c)}_.QY.requestAnimationFrame(function(){_.i2("bcp")})},En0=function(S,c){S.serviceEndpointHandlers.push(c)},t$O=function(S,c){c=S.pendingPages_.indexOf(c);
c>-1&&S.pendingPages_.splice(c,1)},V$p=function(S,c){var Q=_.Ube.indexOf(c);
Q>-1&&_.Ube.splice(Q,1);S.targetPage_==c?(S.abort(),_.aGT(S)):t$O(S,c)},Rfg=function(S,c,Q,f){c={challenge:c};
Q&&(c.webResponse=Q);return _.ZC(S.innertubeTransportService,c,_.RB(NMN),f)},yqB=function(S,c,Q){if(!c.challenge)throw Error("oi");
if(c.botguardData&&c.botguardData.program){var f=new IIO;f.initialize(c.botguardData,function(){bUN(f,{atr_challenge:c.challenge}).then(function(U){if(!U)throw Error("pi");return Rfg(S,c.challenge,U,Q)}).catch(function(U){_.i5(U);
return Rfg(S,c.challenge,void 0,Q)})},void 0)}else Rfg(S,c.challenge,void 0,Q)},on1=function(S,c,Q){var f={};
c.ids&&(f.ids=[].concat(_.Hs(c.ids)));c.engagementType&&(f.engagementType=c.engagementType);return _.ZC(S.innertubeTransportService,f,_.RB(_.eep),Q).then(function(U){if(!U)throw new _.Yr("GetAttestationChallenge returned falsy");yqB(S,U,Q)}).thenCatch(function(U){_.sH(U)})},m_U=function(S,c,Q){return new _.n1(function(f,U){var a;
return _.O(function(X){if(X.nextAddress==1){var z=c.engagementType,x=c.ids,I={};x=_.A(x!=null?x:[]);for(var n=x.next();!n.done;n=x.next())n=n.value,n.encryptedVideoId?I.encryptedVideoId=n.encryptedVideoId:n.externalChannelId?I.externalChannelId=n.externalChannelId:n.commentId?I.commentId=n.commentId:n.externalOwnerId?I.externalOwnerId=n.externalOwnerId:n.artistId?I.artistId=n.artistId:n.playlistId?I.playlistId=n.playlistId:n.externalPostId?I.externalPostId=n.externalPostId:n.shareId&&(I.shareId=n.shareId);
return _.F(X,bl8(z,I),2)}a=X.yieldResult;if(!a.challenge)return _.i5(Error("qi")),on1(S,c,Q).then(f,U),X.return();z=a;I={challenge:z.challenge};I.webResponse=z.webResponse;I.engagementType=c.engagementType;I.ids=c.ids;_.ZC(S.innertubeTransportService,I,_.RB(NMN),Q).then(f,U);_.IN(X)})})},$DB=function(S,c){var Q,f,U,a;
_.O(function(X){if(X.nextAddress==1){Q=_.Y(c,_.wgs);if(!(Q&&Q.listId&&S.response&&S.response.playingVideoId)||S.listId!==Q.listId)return X.return();S.index===void 0&&(S.index=0);return _.F(X,_.JdJ(S.JSC$10850_playlistNetworkManager,Q.listId,S.index,S.response.playingVideoId),2)}f=X.yieldResult;if(!f)return X.return();U=f.playlistId;a=f.playlistPanelRenderer;S.setPlaylistData(U,a,f.autoplayRenderer);_.IN(X)})},SXZ=function(S,c,Q){var f=S.getParams(Q),U=_.wIZ(c,f),a=S.getTempData(c,Q);
a.endpoint=JSON.stringify(c);_.u("enable_unknown_lact_fix_on_html5")&&(_.fl().resolve(_.wj),a.lact=_.f1());var X={headers:{"X-YouTube-STS":_.WY("STS"),"x-youtube-csoc":1}};_.SL(U,a);return new _.n1(function(z,x){var I=S.getXhrParams(f),n;_.u("kevlar_cache_on_ttl_player")&&(n=_.ls.instance);n&&_.pez(n,c)?_.Z3$(n,c,a,window.location.href).then(function(b){b?z(b):x()},x):_.Swh(S.JSC$11095_networkManager_,c,I,S.onPartsCallback_.bind(S),X).then(function(b){b?z(b):x()},x)})},c2N=function(S,c){S.triggerPromise_=
c.start();
S.triggerPromise_.then(function(Q){var f=S.prefetchEndpointProvider_.getPrefetchEndpoint();if(f){var U=hfg[S.prefetchJobConfig_.pageType].prefetchedFragments;S.prefetchRequestPromise_=SXZ(S.JSC$11131_networkPrefetchRequest_,f,{fragmentsRequested:U,timeBeforeNextVideo:Q});S.prefetchResponseCacheKey_=S.JSC$11131_networkPrefetchRequest_.getCacheKeyForEndpoint(f);k40(S);S.prefetchRequestPromise_.then(function(a){S.storePrefetchedDataCallback_(S.prefetchResponseCacheKey_,a);if(_.u("web_prefetch_preload_video")&&
U.length===1&&U[0]==="pl"&&a&&!a.playerAds&&!a.adPlacements){var X=_.Y(f,_.ll),z=X!=null,x={raw_player_response:a,watch_endpoint:X};(a=_.fl().resolve(z?_.kKu:_.J8))&&f&&a.then(function(I){z&&_.u("web_queue_preload_video")?(x.prefer_gapless=!0,I.queueNextVideo(x)):I.preloadVideoByPlayerVars(x)})}})}})},x2=function(S,c,Q,f){this.prefetchEndpointProvider_=S;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=c;this.prefetchJobConfig_=Q;this.JSC$11131_networkPrefetchRequest_=f;this.prefetchResponseCacheKey_=null};
x2.prototype.enqueue=function(){this.triggerPromise_||(c2N(this,efU(this)),_.HI(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
x2.prototype.resolve=function(){this.cancel()};
x2.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.");k40(this)};
x2.prototype.onVisibilityChange_=function(){var S=this;_.kC(_.LtT)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){S.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||c2N(this,efU(this))};
QW2=function(S,c,Q,f,U){c&&(c==null?0:c.videoId)&&Q&&Q.entries&&_.u("kevlar_enable_shorts_prefetch_in_sequence")&&(vn2(S),c=Q.entries.map(function(a){var X;return(X=_.Y(a.command,_.ll))==null?void 0:X.videoId}).indexOf(c.videoId),Q=Q.entries[c+1],Q!=null&&Q.command&&!_.Y(Q==null?void 0:Q.command,_.iA)&&(f=new Wv1([Q.command],new TMg(f,_.Mq,1),null,"shorts",!1),S.pendingPrefetchJob_=new x2(new G4V(f.autonavEndpoints),function(){return!1},f,new z2(U)),S.pendingPrefetchJob_.enqueue()))};
fcT=function(S,c,Q,f,U,a){var X=_.oJ.getInstance();if(!_.u("block_all_player_prefetch_requests")){vn2(S);var z=!!Q.getPlaylistId(),x=Q.getVideoData().isLive&&Q.getVideoData().hasProgressBarBoundaries;if((X.getState()==2||z||x)&&(!Q.getVideoData().isLive||x)){X={inPlaylist:z,videoDuration:Q.getDuration(),makeUpNextTrigger:function(n){return new d_2(Q,_.Mq,n)},
makePlaybackTrigger:function(n){return new TMg(Q,_.Mq,n)}};
var I=gn8(c,X);I&&(S.pendingPrefetchJob_=new x2(I.isInPlaylist?new ZU1(U):new G4V(I.autonavEndpoints),function(n,b){b=new M$8(hfg[I.pageType].pageFragments,hfg[I.pageType].prefetchedFragments,b);return _.eTh(b)?(S.prefetchCache_.set(n,b),!0):!1},I,new X$(f,Q,a,U)),S.pendingPrefetchJob_.enqueue())}}};
UKE=function(){var S=_.r2();S.signals.parkOrScheduleJob(function(){var c=S.storage;if(c.storage)if(lIO(c)){var Q=c.getPlaylistId();c=Yr1(c);Q=!!Q&&c!==void 0}else c.clear(),Q=!1;else Q=!1;if(Q){Q=S.pageManager.isOnWatch();a:{var f=S.storage;if(f.storage&&lIO(f)&&(c=f.getPlaylistId(),f=Yr1(f),c&&f!==void 0)){Q={recoverPlaylistCommand:{listId:c,index:f,openMiniplayer:!Q,openListPanel:Q,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}Q=void 0}Q&&_.i4(S.JSC$10850_actionRouter,[Q],null)}},0,"ma")};
J2Z=function(S,c,Q,f,U,a){var X=_.qo(7111);_.Oc(S.JSC$16157_screenManager,X,a?_.Yz(a):void 0);_.xA(S.JSC$16157_screenManager,X,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:f,offlineId:c,offlineabilityFormatType:Q,isDefaultFormatType:U==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:U}})};
acg=function(S,c,Q,f,U){var a,X,z,x,I;return _.O(function(n){if(n.nextAddress==1)return _.F(n,S.JSC$16157_playerApiPromise,2);a=n.yieldResult;J2Z(S,c,Q,"OFFLINE_OBJECT_TYPE_PLAYLIST",f,U);if(z=_.TLd[S.entityTypeMap.listEntityType])I={},X=(I[z]={maximumDownloadQuality:(x=Q)!=null?x:void 0},I);return _.F(n,a.queueOfflineAction(c,S.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",X),0)})};
A21=function(S,c){var Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return _.F(X,S.JSC$16157_persistentStorePromiseAccessor(),2);if(X.nextAddress!=3){Q=X.yieldResult;if(!Q)return _.i5(new _.Yr("PES is undefined")),X.return();f=_.xy(c,"downloadStatusEntity");return _.F(X,j1U(Q,f,"downloadStatusEntity"),3)}U=X.yieldResult;return X.return((a=U)==null?void 0:a.downloadState)})};
XI8=function(S,c,Q,f,U){var a,X,z,x,I,n;return _.O(function(b){switch(b.nextAddress){case 1:return _.F(b,S.JSC$16157_playerApiPromise,2);case 2:a=b.yieldResult;J2Z(S,c,Q,"OFFLINE_OBJECT_TYPE_VIDEO",f,U);if(z=_.TLd[S.entityTypeMap.singleEntityType])I={},X=(I[z]={maximumDownloadQuality:(x=Q)!=null?x:void 0},I);return _.F(b,A21(S,c),3);case 3:n=b.yieldResult;if(n!=="DOWNLOAD_STATE_USER_DELETED"){b.jumpTo(4);break}return _.F(b,S.deleteVideo(c),4);case 4:return _.F(b,a.queueOfflineAction(c,S.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",X),0)}})};
Ovp=function(S,c,Q,f,U){return _.O(function(a){return a.nextAddress==1?_.F(a,S.deleteVideo(c,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.F(a,XI8(S,c,Q,f,U),0)})};
zoN=function(S,c,Q){var f,U;return _.O(function(a){if(a.nextAddress==1)return _.F(a,S.JSC$16157_playerApiPromise,2);f=a.yieldResult;U=_.xy(c,"mainVideoDownloadStateEntity");return _.F(a,f.updateDownloadState(U,Q),0)})};
aOB=function(S){var c=_.fl().resolve(_.yC);return _.O(function(Q){if(Q.nextAddress==1)return c.previousDownloadStateForVideo[S]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&c.previousDownloadStateForVideo[S]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?Q.jumpTo(2):_.F(Q,c.resumeVideoDownload(S),2);if(Q.nextAddress!=4)return _.F(Q,zoN(c,S,c.previousDownloadStateForVideo[S]),4);delete c.previousDownloadStateForVideo[S];_.IN(Q)})};
U6g=function(S,c){var Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$16157_playerApiPromise,2);Q=f.yieldResult;return _.F(f,Q.queueOfflineAction(c,S.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
c4N=function(){var S=_.fl().resolve(_.yC),c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$16157_playerApiPromise,2);if(f.nextAddress!=3)return c=f.yieldResult,Q={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.F(f,c.queueOfflineAction("!*$_ALL_ENTITIES_!*$",S.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",Q),3);var U=S.JSC$16157_commandHandler,a=U.resolveCommand,X=_.K8("DELETING_ALL",void 0,"Downloads are being deleted");
a.call(U,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.fK(X)}},popupType:"TOAST"}});_.IN(f)})};
xKB=function(S,c){var Q,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return _.F(x,S.JSC$16157_persistentStorePromiseAccessor(),2);if(x.nextAddress!=3)return Q=x.yieldResult,Q?_.F(x,j1U(Q,_.QJT,"downloadsPageViewConfigurationEntity"),3):(_.i5(new _.Yr("PES is undefined")),x.return());U=(f=x.yieldResult)!=null?f:{};z=(X=(a=U)==null?void 0:a.downloadsUpsellBannerVisibility)!=null?X:{};return z.visibleWithConnection?_.F(x,c.refreshAllStaleEntities(0),0):x.jumpTo(0)})};
Fd8=function(S){var c,Q;return _.O(function(f){if(f.nextAddress==1)return _.F(f,S.JSC$16157_prefStorage,2);c=f.yieldResult;return f.return((Q=c)==null?void 0:Q.get("sdois"))})};
BHE=function(S){var c,Q,f,U,a,X;return _.O(function(z){if(z.nextAddress==1)return _.F(z,S.JSC$16157_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){c=z.yieldResult;if(!c)return _.i5(new _.Yr("PES is undefined")),z.return();Q=_.xy("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.F(z,j1U(c,Q,"settingEntity"),3)}f=z.yieldResult;return z.return((X=(U=f)==null?void 0:(a=U.settingOptionValue)==null?void 0:a.boolValue)!=null?X:!1)})};
IcU=function(S,c){var Q,f,U,a;return _.O(function(X){switch(X.nextAddress){case 1:return((Q=c)==null?void 0:Q.formatType)===void 0?X.return():_.F(X,S.JSC$16157_prefStorage,2);case 2:f=X.yieldResult;if(f===void 0)return X.return();if(((U=c)==null?void 0:U.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.F(X,f.set("lmqf",c.formatType),8);if(((a=c)==null?void 0:a.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){X.jumpTo(0);break}return _.F(X,f.set("lmqf",c.formatType),
6);case 6:return _.F(X,f.set("lmqflst",Math.floor((0,_.Qk)())),0);case 8:return _.F(X,f.remove("lmqflst"),0)}})};
nzO=function(S){var c,Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.F(f,S.JSC$16157_prefStorage,2);case 2:c=f.yieldResult;if(!c){f.jumpTo(3);break}return _.F(f,c.get("lmqflst"),4);case 4:if(Q=f.yieldResult,Q!==void 0)return f.return(Q);case 3:return f.return(0)}})};
bvp=function(S){var c,Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.F(f,S.JSC$16157_prefStorage,2);case 2:c=f.yieldResult;if(c===void 0){f.jumpTo(3);break}return _.F(f,c.get("lmqf"),4);case 4:if(Q=f.yieldResult,Q!==void 0)return f.return(Q);case 3:return f.return("SD")}})};
IOZ=function(S,c,Q){var f,U,a,X,z,x,I,n;_.O(function(b){switch(b.nextAddress){case 1:return _.F(b,IcU(S,(f=c)==null?void 0:f.actionParams),2);case 2:U=c.playlistId;if(!U)return b.return();if(c.action==="ACTION_ADD")return((X=c.actionParams)==null?0:X.formatType)?_.F(b,acg(S,U,c.actionParams.formatType,(n=c.actionParams)==null?void 0:n.settingsAction,Q),0):_.F(b,S.offlineWebClientEligibility,14);if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var N=S.JSC$16157_commandHandler,l=N.resolveCommand,H=_.WY("INNERTUBE_CLIENT_NAME");
var q=H==="WEB_REMIX"?_.K8("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.K8("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var w=H==="WEB_REMIX"?[_.K8("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];H=H==="WEB_REMIX"?_.K8("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.K8("DELETE",void 0,"Delete");var g=_.K8("CANCEL",void 0,"Cancel");q=N5g(q,w,H,g,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:U});l.call(N,{openPopupAction:q});
return b.return()}if(c.action==="ACTION_REMOVE")return _.F(b,U6g(S,U),0);if(c.action!=="ACTION_SYNC"){b.jumpTo(0);break}return _.F(b,S.JSC$16157_playerApiPromise,9);case 9:return a=b.yieldResult,_.F(b,a.queueOfflineAction(U,S.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return z=b.yieldResult,_.F(b,bvp(S),15);case 15:return x=b.yieldResult,_.F(b,nzO(S),16);case 16:I=b.yieldResult,c.onAddCommand&&S.JSC$16157_commandHandler.resolveCommand(c.onAddCommand,{form:{preferredFormatType:x,
offlineWebClientEligibility:z,lastOfflineQualitySettingsSavedMs:I.toString()}}),b.jumpTo(0)}})};
FS0=function(S,c,Q){var f,U,a,X,z,x,I,n,b,N,l,H,q,w;_.O(function(g){switch(g.nextAddress){case 1:return _.F(g,IcU(S,(f=c)==null?void 0:f.actionParams),2);case 2:U=c.videoId;if(!U)return g.return();if(c.action==="ACTION_REMOVE_WITH_PROMPT"){var r=S.JSC$16157_commandHandler,E=r.resolveCommand,v=_.WY("INNERTUBE_CLIENT_NAME");var t=v==="WEB_REMIX"?_.K8("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.K8("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var V=v==="WEB_REMIX"?[_.K8("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];v=v==="WEB_REMIX"?_.K8("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.K8("DELETE",void 0,"Delete");var AZ=_.K8("CANCEL",void 0,"Cancel");t=N5g(t,V,v,AZ,{signal:"DELETE_DOWNLOAD",targetId:U});E.call(r,{openPopupAction:t});return g.return()}if(c.action==="ACTION_ADD")return((N=c.actionParams)==null?0:N.formatType)?_.F(g,XI8(S,U,c.actionParams.formatType,(w=c.actionParams)==null?void 0:w.settingsAction,Q),0):_.F(g,S.offlineWebClientEligibility,
23);if(c.action==="ACTION_RETRY")return _.F(g,bvp(S),19);if(c.action==="ACTION_PAUSE")return _.F(g,S.pauseVideoDownload(U),0);if(c.action==="ACTION_RESUME")return _.F(g,S.resumeVideoDownload(U),0);if(c.action!=="ACTION_REMOVE"){g.jumpTo(0);break}return _.F(g,A21(S,U),13);case 13:return a=g.yieldResult,S.previousDownloadStateForVideo[U]=(X=a)!=null?X:"DOWNLOAD_STATE_UNKNOWN",_.F(g,zoN(S,U,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(S.previousDownloadStateForVideo[U]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
S.previousDownloadStateForVideo[U]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){g.jumpTo(15);break}return _.F(g,S.pauseVideoDownload(U),15);case 15:r=_.K8("DELETED_VIDEO",void 0,"Video deleted from downloads.");E=_.K8("UNDO_ACTION",void 0,"Undo");t=_.K8("CLOSE",void 0,"Close");z={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.fK(r),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.fK(E),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:U}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:r+" "+E}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:U}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:t}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};S.JSC$16157_commandHandler.resolveCommand(z);
g.jumpTo(0);break;case 19:x=g.yieldResult;x==="UNKNOWN_FORMAT_TYPE"&&(x="SD");I="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((n=c.actionParams)==null?0:n.formatType)x=c.actionParams.formatType,I=(b=c.actionParams)==null?void 0:b.settingsAction;return _.F(g,Ovp(S,U,x,I,Q),20);case 20:return g.return();case 23:return l=g.yieldResult,_.F(g,bvp(S),24);case 24:return H=g.yieldResult,_.F(g,nzO(S),25);case 25:q=g.yieldResult,c.onAddCommand&&S.JSC$16157_commandHandler.resolveCommand(c.onAddCommand,
{form:{preferredFormatType:H,offlineWebClientEligibility:l,lastOfflineQualitySettingsSavedMs:q.toString()}}),g.jumpTo(0)}})};
NHg=function(S,c){var Q,f,U,a,X,z,x;return _.O(function(I){if(I.nextAddress==1)return _.F(I,S.JSC$16157_persistentStorePromiseAccessor(),2);Q=I.yieldResult;if(!Q)return _.i5(new _.Yr("PES is undefined")),I.return();if((f=c)==null||!f.settingItemId)return I.return();U=c;a=U.settingItemId;X=U.boolValue;z=_.xy(a,"settingEntity");x={key:z,settingOptionValue:{boolValue:X}};return _.F(I,uV1(Q,x),0)})};
Kd0=function(S,c){var Q,f,U,a,X,z,x;return _.O(function(I){switch(I.nextAddress){case 1:return _.F(I,S.JSC$16157_prefStorage,2);case 2:return Q=I.yieldResult,f=_.jL(),_.F(I,S.JSC$16157_persistentStorePromiseAccessor(),3);case 3:return U=I.yieldResult,Q?U?_.F(I,Q.get("sdois"),4):(_.i5(new _.Yr("PES is undefined")),I.return()):(_.i5(new _.Yr("prefStorage is undefined")),I.return());case 4:a=I.yieldResult;z=(X=c)==null?void 0:X.boolValue;z===void 0||_.u("kevlar_set_sd_enabled_flag_killswitch")||_.l2(0,
197,!0);a===void 0&&z===void 0&&(z=!1);if(z===void 0){I.jumpTo(0);break}return _.F(I,Q.set("sdois",z),6);case 6:return _.u("kevlar_set_sd_enabled_flag_killswitch")||(_.l2(0,196,z),f.save()),x={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:z},_.F(I,NHg(S,x),0)}})};
$K0=function(S,c,Q){var f,U,a,X,z;return _.O(function(x){switch(x.nextAddress){case 1:return _.F(x,Fd8(S),2);case 2:return f=x.yieldResult,_.F(x,Kd0(S,Q),3);case 3:return _.F(x,Fd8(S),4);case 4:return U=x.yieldResult,a=U!==f,_.F(x,BHE(S),5);case 5:X=x.yieldResult&&!_.u("kevlar_modern_downloads_page");if((z=!U&&!X)||a)return _.F(x,c.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);x.jumpTo(0)}})};
XVB=function(){var S=_.fl().resolve(_.yC),c;_.O(function(Q){switch(Q.nextAddress){case 1:return _.F(Q,S.JSC$16157_playerApiPromise,2);case 2:c=Q.yieldResult;if(!_.u("kevlar_force_refresh_smart_downloads")){Q.jumpTo(3);break}return _.F(Q,c.refreshAllStaleEntities(0),4);case 4:return Q.return();case 3:return _.F(Q,c.refreshAllStaleEntities(),5);case 5:return _.F(Q,$K0(S,c),6);case 6:if(_.u("enable_download_pep_for_premium_countries"))return _.F(Q,xKB(S,c),0);Q.jumpTo(0)}})};
bJp=function(S,c){var Q,f;_.O(function(U){switch(U.nextAddress){case 1:return _.F(U,S.JSC$16157_playerApiPromise,2);case 2:Q=U.yieldResult;switch((f=c)==null?void 0:f.settingItemId){case "SMART_DOWNLOADS_ENABLED":return U.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return U.jumpTo(4)}U.jumpTo(0);break;case 3:return _.F(U,$K0(S,Q,c),6);case 6:U.jumpTo(0);break;case 4:return _.F(U,NHg(S,c),7);case 7:U.jumpTo(0)}})};
uBU=function(S,c){var Q,f,U;return _.O(function(a){if(a.nextAddress==1)return _.F(a,S.JSC$16157_persistentStorePromiseAccessor(),2);if(a.nextAddress!=3){Q=a.yieldResult;if(!Q)return _.i5(new _.Yr("PES is undefined")),a.return(!1);if(!c)return a.return(!1);f=_.xy(c,"mainVideoEntity");return _.F(a,j1U(Q,f,"mainVideoEntity"),3)}U=a.yieldResult;return a.return(U!==void 0)})};
KSB=function(S){var c=_.fl().resolve(_.yC),Q,f,U,a,X,z,x,I,n,b,N;_.O(function(l){switch(l.nextAddress){case 1:return _.F(l,c.JSC$16157_playerApiPromise,2);case 2:Q=l.yieldResult;U=(f=S)==null?void 0:f.actions;if(!U)return l.return();a=_.A(U);X=a.next();case 3:if(X.done){l.jumpTo(0);break}z=X.value;I=x=void 0;if(!(((x=z)==null?0:x.entityKey)&&((I=z)==null?0:I.actionType))){l.jumpTo(4);break}n=_.XT(z.entityKey);b=n.entityId;N=n.entityType;return _.F(l,Q.queueOfflineAction(b,N,z.actionType),4);case 4:X=
a.next(),l.jumpTo(3)}})};
jWV=function(S,c){var Q,f,U,a,X;return _.O(function(z){if(z.nextAddress==1)return _.F(z,S.JSC$16157_prefStorage,2);if(z.nextAddress!=3)return(Q=z.yieldResult)?_.F(z,Q.get("psi"),3):z.return();f=z.yieldResult;X={isPaused:c,lastSyncTimestamp:(a=(U=f)==null?void 0:U.lastSyncTimestamp)!=null?a:"0"};return _.F(z,Q.set("psi",X),0)})};
jME=function(S){var c=_.fl().resolve(_.yC),Q,f,U,a,X,z,x,I;return _.O(function(n){switch(n.nextAddress){case 1:return _.F(n,c.JSC$16157_playerApiPromise,2);case 2:Q=n.yieldResult;U=((f=S)==null?void 0:f.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((z=S)==null?void 0:z.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":a="!*$_ALL_ENTITIES_!*$";X="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return n.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return n.jumpTo(4)}n.jumpTo(5);break;case 3:return _.F(n,jWV(c,U),6);case 6:n.jumpTo(5);break;case 4:return _.F(n,uBU(c,(x=S)==null?void 0:x.videoId),7);case 7:n.yieldResult&&(a=(I=S)==null?void 0:I.videoId,X="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");n.jumpTo(5);break;case 5:if(a&&X)return _.F(n,Q.queueOfflineAction(a,"videoPlaybackPositionEntity",X),0);n.jumpTo(0)}})};
lc1=function(S,c){var Q;c!==1||((Q=S.currentPersistentToast)==null?0:Q.isOpened())?S.openToast():S.currentPersistentToast=void 0};
YX2=function(S,c){var Q;return(Q=S.transitionTasksMap.get(c))!=null?Q:[]};
C72=function(S,c){var Q=[];S.elementTasksMap.forEach(function(f){(f=f.get(c))&&Q.push(f)});
return Q};
HvB=function(S,c,Q,f){f=f===void 0?{}:f;var U=S.defaultViewTransitionOptions;return Object.assign({},U,f,{beforeTransition:function(){Q.forEach(function(x){x.beforeTransition()});
var a;(a=U.beforeTransition)==null||a.call(U);var X,z;(z=(X=f).beforeTransition)==null||z.call(X);c.forEach(function(x){x.beforeTransition()})},
afterTransition:function(){Q.forEach(function(x){x.afterTransition()});
var a;(a=U.afterTransition)==null||a.call(U);var X,z;(z=(X=f).afterTransition)==null||z.call(X);c.forEach(function(x){x.afterTransition()})}})};
RX=function(S,c,Q){S.transitionTasksMap.has(c)?S.transitionTasksMap.get(c).push(Q):(S=new _.Yr("Transition task registered for unknown transition type",c),_.sH(S))};
DKp=function(S,c,Q){if(S.transitionTasksMap.has(c)){var f=S.transitionTasksMap.get(c).filter(function(U){return U!==Q});
S.transitionTasksMap.set(c,f)}};
pI0=function(S,c){var Q=YX2(S,c);Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next())f=f.value,f.runOnce&&DKp(S,c,f);S.elementTasksMap.forEach(function(U,a){U.forEach(function(X,z){X.runOnce&&c===z&&(U.delete(z),U.size===0&&S.elementTasksMap.delete(a))})})};
hoO=function(S,c,Q){var f,U,a,X,z,x,I,n,b;_.O(function(N){if(N.nextAddress==1){if(S.config.disableAllTransitions)return N.return(c());if((f=Q)==null||!f.transitionType)return N.return(_.sng(c,(U=Q)==null?void 0:U.viewTransitionOptions));a=Q;X=a.transitionType;z=a.viewTransitionOptions;x=S.config.transitionConfigs.get(X);if(!x)return N.return(c());I=YX2(S,X);n=C72(S,X);b=_.sng(c,HvB(x,I,n,z));return _.F(N,b,2)}pI0(S,X);_.IN(N)})};
qXV=function(){var S,c,Q,f;return _.O(function(U){if(U.nextAddress==1)return S=navigator,(c=S.storage)!=null&&c.persisted?_.F(U,(Q=S.storage)==null?void 0:Q.persisted(),2):U.return("PERSISTED_STATE_NOT_SUPPORTED");f=U.yieldResult;return U.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
THB=function(){var S,c,Q,f;return _.O(function(U){if(U.nextAddress==1)return S=navigator,(c=S.storage)!=null&&c.persist?_.F(U,(Q=S.storage)==null?void 0:Q.persist(),2):U.return("PERSISTED_STATE_NOT_SUPPORTED");f=U.yieldResult;return U.return(f?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
wIB=function(){var S,c;return _.O(function(Q){switch(Q.nextAddress){case 1:return S="PERSISTED_STATE_NOT_SUPPORTED",_.X1(Q,2),_.F(Q,qXV(),4);case 4:S=Q.yieldResult;if(S!=="PERSISTED_STATE_NOT_GRANTED"){Q.jumpTo(5);break}return _.F(Q,THB(),6);case 6:S=Q.yieldResult;case 5:_.Pi(Q,3);break;case 2:c=_.Bs(Q),c instanceof Error&&_.sH(c);case 3:return _.Te("persistentStorageStateChecked",{persistedState:S}),Q.return(S)}})};
sWO=function(S,c){var Q=[],f=!1;c=_.A(c);for(var U=c.next();!U.done;U=c.next()){U=S.moduleRegistry[U.value];var a=void 0,X=void 0;((a=U)==null?0:a.isFetching)&&((X=U)==null?0:X.resolver)?(Q.push(U.resolver.promise),f=!0):(U=new _.O_,U.resolve(void 0),Q.push(U.promise))}return f?Promise.all(Q):void 0};
MwE=function(S,c,Q){if(S.isInitialized()){var f=cO(Q),U=f==="watch";f=f==="shorts";var a=cO(c)==="watch";if(U)a||(S.backgroundPageData=c),S.watchPipMode&&a||S.deactivate(Q.endpoint);else if(f){if(cO(c)!=="shorts"){var X;(X=S.getPlayerElement())==null||X.pause()}}else a&&!S.watchPipMode&&($xE(c,Q)?(S.watchWhileMode&&_.ihg(S,!1),_.hQE(S,c)):S.isMiniplayerActive()&&S.watchWhileMode&&S.deactivate());a&&_.GaN(S);S.shortsPipMode&&!f&&(window.focus(),S.deactivate());if(S.pictureInPictureEnabled())if(f&&
S.shortsPipEnabled||U&&S.watchPipEnabled)_.rFz(S.handleMediaSessionPipActivation);else if(!S.isMiniplayerActive()&&(S.shortsPipEnabled||S.watchPipEnabled)&&window.documentPictureInPicture&&_.Tz()&&_.xrz("Chromium")>=120){S=_.kQT().mediaSession;try{S.setActionHandler("enterpictureinpicture",null)}catch(z){}}}};
ivB=function(S,c){var Q,f;_.O(function(U){if(U.nextAddress==1){if(!S||!S.navigationEndpoint)return U.return();_.bn().lockupActivation=!0;var a;c?a=_.LK(_.K8("QUEUE",void 0,"Queue")):a=S.longBylineText;f=(Q=a)&&S.title?{miniplayerTitle:S.title,miniplayerSubtitle:Q,playlistData:null}:void 0;return _.F(U,_.eX_(_.fl().resolve(_.ra),S.navigationEndpoint,!0,f),2)}_.bn().userActivation=!0;_.IN(U)})};
b8O=function(S,c){var Q,f,U,a,X,z;_.O(function(x){if(x.nextAddress==1){Q=_.Y(c,_.Trd);if(!Q||!Q.listId)return x.return();S.index=Q.index||S.index||0;f=S.response&&S.response.playingVideoId||void 0;return _.F(x,_.JdJ(S.JSC$10850_playlistNetworkManager,Q.listId,S.index,f),2)}U=x.yieldResult;if(!U)return x.return();a=U.playlistId;X=U.playlistPanelRenderer;!S.queueProxy&&a&&X&&a.startsWith("TLPQ")&&(S.queueProxy=new _.sc(S.JSC$10850_playlistNetworkManager,a,S.setPlaylistData.bind(S),S.clearQueue.bind(S),
_.miZ(X),S.storage));if(Q.openMiniplayer&&(z=_.Sxr(X))&&!S.pageManager.isOnWatch()){var I=z,n=Q.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";S.isMiniplayerActive()?S.openToast(I):ivB(I,n)}S.setPlaylistData(a,X,U.autoplayRenderer);_.IN(x)})};
BSB=function(S,c){var Q=_.r2();Q.index===void 0&&(Q.index=0);Q.temporaryItems.push.apply(Q.temporaryItems,_.Hs(S));if((c.videoId||c.videoIds)&&Q.index!==void 0&&c.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!Q.queueProxy){var f=[];if(Q.response){var U=_.fl().resolve(_.ra).isMiniplayerActive();if(Q.response.playlistPanelRenderer&&Q.response.playlistId&&!Q.response.playlistId.startsWith("TLPQ")){if(Q.pageManager.isOnWatch()||U)f=_.miZ(Q.response.playlistPanelRenderer)}else Q.response.playingVideoId&&
!c.openMiniplayer?f.push(Q.response.playingVideoId):U&&Q.response.playingVideoId&&c.openMiniplayer&&f.push(Q.response.playingVideoId)}Q.queueProxy=new _.sc(Q.JSC$10850_playlistNetworkManager,"",Q.setPlaylistData.bind(Q),Q.clearQueue.bind(Q),f,Q.storage);Q.queueProxy.JSC$10796_setCurrentIndex(Q.index)}Q.queueProxy.addVideos(c.videoIds||[c.videoId],c)}CwN(Q,S);Q.response&&_.d2(Q,_.vL(Q,Q.response.autoplayRenderer));Q.pageManager.isOnWatch()?Q.isMiniplayerActive()&&Q.openToast(S[0]):(S=S[0],c=c.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",Q.isMiniplayerActive()?Q.openToast(S):ivB(S,c))};
ZvE=function(S){var c=_.nT(S);if(c=="object"||c=="array"){if(typeof S.clone==="function")return S.clone();if(typeof Map!=="undefined"&&S instanceof Map)return new Map(S);if(typeof Set!=="undefined"&&S instanceof Set)return new Set(S);c=c=="array"?[]:{};for(var Q in S)c[Q]=ZvE(S[Q]);return c}return S};
F$=function(S,c){return _.Vxz(_.jp(S,c,void 0,_.uR))};
Bf=function(S,c){return _.CT(_.jp(S,c,void 0,_.uR))};
Is=function(S,c){return _.ITz(_.jp(S,c,void 0,_.uR))};
ne=function(S,c){return _.jp(S,c,void 0,_.uR,_.x0)};
GvN=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;_.Pa(c,Q,_.rr(S.decoder_,_.fT));return!0},_.RA,_.Pg);
WdU=_.va(function(S,c,Q,f){if(S.nextWireType_!==0)return!1;_.Hg(c,Q,f,_.rr(S.decoder_,_.fT));return!0},_.RA,_.Pg);
gz2=_.va(function(S,c,Q){if(S.nextWireType_!==1)return!1;var f=S.decoder_;S=_.vg(f);f=_.vg(f);S=_.SN(S,f);_.Pa(c,Q,S);return!0},_.LVo,_.dvr);
eoB=_.va(function(S,c,Q){if(S.nextWireType_!==5)return!1;_.Pa(c,Q,_.vg(S.decoder_));return!0},function(S,c,Q){c=_.H8(c);
c!=null&&(_.EC(S,Q,5),_.Vf(S.encoder_,c))},_.riz);
kv2=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;S=_.j$M(S.decoder_);_.Pa(c,Q,S===!1?void 0:S);return!0},_.tNY,_.WRM);
r2E=_.va(function(S,c,Q){if(S.nextWireType_!==2)return!1;S=_.pNz(S);_.Pa(c,Q,S===""?void 0:S);return!0},_.R2T,_.gwx);
dKO=_.va(function(S,c,Q){if(S.nextWireType_!==2)return!1;S=_.hip(S);_.Pa(c,Q,S===_.ZT()?void 0:S);return!0},_.o0Z,_.LRY);
vzE=_.WVp(function(S,c,Q){if(S.nextWireType_!==0&&S.nextWireType_!==2)return!1;c=_.Ha(c,c[_.lu]|0,Q);S.nextWireType_==2?_.qfp(S,m6Z,c):c.push(_.dr(S.decoder_));return!0},function(S,c,Q){c=_.GOz(_.CT,c,!0);
if(c!=null&&c.length){Q=_.B1Y(S,Q);for(var f=0;f<c.length;f++)_.dGz(S.encoder_,c[f]);_.IBr(S,Q)}},_.Ewz);
P7Z=_.va(function(S,c,Q){if(S.nextWireType_!==0)return!1;S=_.dr(S.decoder_);_.Pa(c,Q,S===0?void 0:S);return!0},_.mGc,_.Ewz);
LdE=_.va(function(S,c,Q,f){if(S.nextWireType_!==0)return!1;_.Hg(c,Q,f,_.dr(S.decoder_));return!0},_.mGc,_.Ewz);
_.v7=function(S){this.privateDoNotAccessOrElseWrappedStyleSheet=S};
_.v7.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var H81=function(S,c){return new _.pn(S.x+c.x,S.y+c.y)},EzU=function(S){return S.previousElementSibling!==void 0?S.previousElementSibling:_.UHs(S.previousSibling,!1)},tw2=function(S,c){var Q=[];
for(c=c||0;c<S.length;c+=2)_.El$(S[c],S[c+1],Q);return Q.join("&")},Vw2=function(S,c){var Q=arguments.length==2?tw2(arguments[1],0):tw2(arguments,1);
return _.Lez(S,Q)},RoV=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(RoV,_.Ga);RoV.prototype.getValue=function(){var S=_.jp(this,2);if(Array.isArray(S)||S instanceof _.Ga)throw Error("aa");return _.CW(this,2)};
var vQg=function(){var S=_.J4();this.JSC$7954_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.Jo("channel_type"))};
vQg.prototype.increment=function(S){this.JSC$7954_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",S)};
var POT=function(){var S=_.J4();this.JSC$7957_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.Jo("channel_type"))};
POT.prototype.increment=function(S){this.JSC$7957_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",S)};
var EQ2=function(){var S=_.J4();this.JSC$7960_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.Jo("channel_type"))};
EQ2.prototype.increment=function(S){this.JSC$7960_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",S)};
var LGB=function(){var S=_.J4();this.JSC$7963_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
LGB.prototype.increment=function(){this.JSC$7963_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var tRO=function(){var S=_.J4();this.JSC$7966_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.Jo("channel_type"),_.Jo("error_type"))};
tRO.prototype.increment=function(S,c){this.JSC$7966_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",S,c)};
var VRp=function(){var S=_.J4();this.JSC$7969_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
VRp.prototype.increment=function(){this.JSC$7969_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var RbE=function(){var S=_.J4();this.JSC$7972_streamzService=S;S.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
RbE.prototype.increment=function(){this.JSC$7972_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var kWB=function(){var S=_.J4();this.JSC$7978_streamzService=S;S.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
kWB.prototype.increment=function(){this.JSC$7978_streamzService.JSC$7824_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var y2O=function(S){return S.getCount&&typeof S.getCount=="function"?S.getCount():_.yY(S)||typeof S==="string"?S.length:_.Cn.getCount(S)},oz2=function(S,c){if(typeof S.every=="function")return S.every(c,void 0);
if(_.yY(S)||typeof S==="string")return Array.prototype.every.call(S,c,void 0);for(var Q=_.kch(S),f=_.mL(S),U=f.length,a=0;a<U;a++)if(!c.call(void 0,f[a],Q&&Q[a],S))return!1;return!0},mK2=function(S,c,Q,f){var U=new _.V7(null);
S&&_.SV(U,S);c&&_.cm(U,c);Q&&_.Qr(U,Q);f&&_.ff(U,f);return U},S2O=function(){var S=_.GD&&_.nz(_.Spd,10)>=0,c;
if(c=_.Z_H)c=_.nz(_.mji,10)>=0;var Q=_.NJ&&_.nz(_.Spd,85)>=0;return _.Bg||S||c||Q},caT=function(S){var c=_.DHi(S);
return c&&S2O()?-S.scrollLeft:c&&_.rF(S,"overflowX")!="visible"?S.scrollWidth-S.clientWidth-S.scrollLeft:S.scrollLeft},QZE=function(S,c){c=Math.max(c,0);
_.DHi(S)?S2O()?S.scrollLeft=-c:S.scrollLeft=S.scrollWidth-c-S.clientWidth:S.scrollLeft=c},ilU=0,eIT=!1;
fq.prototype.set=function(S){this.relativeTimeStart_=S};
fq.prototype.reset=function(){this.set(_.AP())};
fq.prototype.get=function(){return this.relativeTimeStart_};
var fL2=null,UoG=function(){fL2||(fL2=new fq)},JaU=function(){fL2||(fL2=new fq)};
_.Xa(JaU,UoG);_.J=rl0.prototype;_.J.JSC$9302_buffer_="";_.J.set=function(S){this.JSC$9302_buffer_=""+S};
_.J.append=function(S,c,Q){this.JSC$9302_buffer_+=String(S);if(c!=null)for(var f=1;f<arguments.length;f++)this.JSC$9302_buffer_+=arguments[f];return this};
_.J.clear=function(){this.JSC$9302_buffer_=""};
_.J.getLength=function(){return this.JSC$9302_buffer_.length};
_.J.toString=function(){return this.JSC$9302_buffer_};
var aLV=function(){var S={type:"unit",style:"narrow"};this.listType_=S&&S.type?S.type:"conjunction";this.listStyle_=S&&S.style?S.style:"long";this.listSymbols_=aI8;S=0;switch(this.listStyle_){case "short":S=1;break;case "narrow":S=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[S];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[S];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[S];this.listEndPattern_=
this.listSymbols_.AND_END[S];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[S];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[S];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[S];this.listEndPattern_=this.listSymbols_.OR_END[S];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[S],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[S],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[S],this.listEndPattern_=this.listSymbols_.UNIT_END[S]}};
aLV.prototype.format=function(S){return Aa0(this,S)};
var Aa0=function(S,c){var Q=c.length;switch(Q){case 0:return"";case 1:return String(c[0]);case 2:return S.listTwoPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1]))}for(var f=S.listStartPattern_.replace("{0}",String(c[0])).replace("{1}",String(c[1])),U=2;U<Q-1;++U)f=S.listMiddlePattern_.replace("{0}",f).replace("{1}",String(c[U]));return S.listEndPattern_.replace("{0}",f).replace("{1}",String(c[Q-1]))},UqU=function(){var S={style:1};
this.style_=(S==null?void 0:S.style)||0;this.durationSymbols_=_.svl||_.ZK_},X3V=function(S,c){switch(c){default:case "years":return S.durationSymbols_.YEAR;
case "months":return S.durationSymbols_.MONTH;case "weeks":return S.durationSymbols_.WEEK;case "days":return S.durationSymbols_.DAY;case "hours":return S.durationSymbols_.HOUR;case "minutes":return S.durationSymbols_.MINUTE;case "seconds":return S.durationSymbols_.SECOND}},bL=function(S,c,Q){a:{Q=X3V(S,Q);
switch(S.style_){case 1:if(Q.LONG!=void 0){S=Q.LONG;break a}case 2:if(Q.NARROW!=void 0){S=Q.NARROW;break a}default:S=Q.SHORT;break a}S=void 0}return S?(new _.U6p("{DURATION_VALUE,plural,"+S+"}")).format({DURATION_VALUE:c}):""};
UqU.prototype.format=function(S){var c=[],Q=S.years,f=S.months,U=S.weeks,a=S.days,X=S.hours,z=S.minutes;S=S.seconds;Q!=null&&c.push(bL(this,Q,"years"));f!=null&&c.push(bL(this,f,"months"));U!=null&&c.push(bL(this,U,"weeks"));a!=null&&c.push(bL(this,a,"days"));X!=null&&c.push(bL(this,X,"hours"));z!=null&&c.push(bL(this,z,"minutes"));S!=null&&c.push(bL(this,S,"seconds"));return(new aLV).format(c)};
var O4g=!1,VJG=function(S){_.Sx.call(this,S.message||S.description||S.name);this.isMissing=S instanceof U5;this.isTimeout=S instanceof _.LC&&S.errorCode=="net.timeout";this.isCanceled=S instanceof _.EI};
_.C(VJG,_.Sx);VJG.prototype.name="BiscottiError";var U5=function(){_.Sx.call(this,"Biscotti ID is missing from server")};
_.C(U5,_.Sx);U5.prototype.name="BiscottiMissingError";var Jr=null,UD0=function(){try{var S=_.rC("yt.ads.biscotti.getId_");return S?S():pi8()}catch(c){return _.pv(c)}},fzg,zD8=function(S,c){return _.aB({type:"SET_COMMAND_FOR_GROUP_ID",
payload:{groupId:S,command:c}})},xoV=function(S){return _.aB({type:"SET_GUIDE_IS_EXPANDED",
payload:S})},FZB=function(S){return _.aB({type:"SET_ONLINE_STATUS",
payload:S})},BjN=function(S,c){return _.aB({type:"SET_TRANSCRIPTION_STATE",
payload:{high:S,low:c}})},ILG=function(S){return _.aB({type:"SET_OVERLAY_STATE",
payload:S})},nd2=0,b4T=function(S,c,Q){var f=this;
this.priority=c;this.delay=Q;this.jobId=0;this.completionCallback=_.$q;this.wrappedJob=function(){S();f.completionCallback()};
this.id=++nd2};
b4T.prototype.enqueue=function(S){this.completionCallback=S;this.jobId=_.Mq.addJob(this.wrappedJob,this.priority,this.delay)};
var Na=function(){_.fw.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.C(Na,_.fw);Na.prototype.addJob=function(S,c,Q){S=new b4T(S,c,Q);this.taskIdToTask.set(S.id,S);this.isActive?NjT(this,S):this.suspendedTasks.add(S);return S.id};
var NjT=function(S,c){S.scheduledTasks.add(c);c.enqueue(function(){S.scheduledTasks.delete(c)})};
Na.prototype.cancelJob=function(S){(S=this.taskIdToTask.get(S))&&(this.scheduledTasks.delete(S)?_.Mq.cancelJob(S.jobId):this.suspendedTasks.delete(S))};
Na.prototype.pause=function(){var S=this;this.isActive=!1;this.scheduledTasks.forEach(function(c){_.Mq.cancelJob(c.jobId);S.suspendedTasks.add(c)});
this.scheduledTasks.clear()};
Na.prototype.start=function(){var S=this;this.isActive=!0;this.suspendedTasks.forEach(function(c){NjT(S,c)});
this.suspendedTasks.clear()};
Na.prototype.reset=function(){this.scheduledTasks.forEach(function(S){_.Mq.cancelJob(S.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var Ke=function(S,c){this.JSC$10979_networkService_=S;this.pageRequestPromise=c};
Ke.prototype.fetchData=function(S){KZZ(this,this.JSC$10979_networkService_.fetchData(S))};
Ke.prototype.postData=function(S,c){KZZ(this,this.JSC$10979_networkService_.postData(S,c))};
Ke.prototype.requestDataForServiceEndpoint=function(S,c){KZZ(this,this.JSC$10979_networkService_.requestDataForServiceEndpoint(S,c))};
var KZZ=function(S,c){c.then(S.pageRequestPromise.onSuccess,S.pageRequestPromise.onFailure,S.pageRequestPromise)};
Ke.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var $2=function(S){this.buildNetworkRequest_=S;this.pendingRequests_=new Set};
$2.prototype.reset=function(){this.pendingRequests_.forEach(function(S){S.cancel()});
this.pendingRequests_.clear()};
$2.prototype.fetchData=function(S){var c=$oT(this);c.fetchData(S);return c.pageRequestPromise};
$2.prototype.postData=function(S,c){var Q=$oT(this);Q.postData(S,c);return Q.pageRequestPromise};
$2.prototype.requestDataForServiceEndpoint=function(S,c){var Q=$oT(this);Q.requestDataForServiceEndpoint(S,c);return Q.pageRequestPromise};
var $oT=function(S){var c=S.buildNetworkRequest_();S.pendingRequests_.add(c);var Q=function(){S.pendingRequests_.delete(c)};
c.pageRequestPromise.then(Q,Q);return c},uip=function(S){var c=new Na;
this.JSC$10986_networkService_=S;this.JSC$10986_taskManager_=c;this.JSC$10986_networkManager_=new $2(this.networkRequestFactory_.bind(this))};
_.J=uip.prototype;_.J.networkRequestFactory_=function(){return new Ke(this.JSC$10986_networkService_,new _.fM(this.JSC$10986_taskManager_))};
_.J.reset=function(){this.JSC$10986_taskManager_.reset();this.JSC$10986_networkManager_.reset()};
_.J.start=function(){this.JSC$10986_taskManager_.start()};
_.J.pause=function(){this.JSC$10986_taskManager_.pause()};
_.J.getTaskManager=function(){return this.JSC$10986_taskManager_};
_.J.getNetworkManager=function(){return this.JSC$10986_networkManager_};
var O6E=null,FOT=[],aX=0,XC=0,Ar=null,jZp=!1,O5=null,IzO=void 0,lLE=function(){var S=(0,_.Khl)();S&&X0T(S,S.mechanism.__iterator__(!0))},x7=function(S){this.token=S};
x7.getInstance=function(){var S;return _.O(function(c){if(c.nextAddress==1)return _.F(c,_.S8(),2);S=c.yieldResult;if(!S)return c.return();x7.instance||(x7.instance=new x7(S));return c.return(x7.instance)})};
var uL0=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,Ne0(S.token),2);c=Q.yieldResult;return Q.return(c.clear("resource-manifest-assets"))})},z6=function(S){this.token=S};
z6.getInstance=function(){var S;return _.O(function(c){if(c.nextAddress==1)return _.F(c,_.S8(),2);S=c.yieldResult;if(!S)return c.return();z6.instance||(z6.instance=new z6(S));return c.return(z6.instance)})};
var KO8=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,Ne0(S.token),2);c=Q.yieldResult;return _.F(Q,c.clear("auth"),0)})},kfZ=!1,Y2V=function(S){_.Sx.call(this,S)};
_.C(Y2V,_.LNp);var C8O="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(" ");BQZ()&&C8O.push("details:not(:has(summary))");var nLU=C8O.join(",");var iPV=function(){var S=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return S?parseInt(S[1],10):0},H4T=function(S){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+S)!=-1||document.currentScript.src.indexOf("&"+S)!=-1)},Do0=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},ezZ=function(S){S.length?p32(S.shift(),function(){ezZ(S)}):G$p()},rG0=function(S){return"chrome-extension://"+S+"/cast_sender.js"},p32=function(S,
c,Q){var f=document.createElement("script");
f.onerror=c;Q&&(f.onload=Q);_.eS(f,_.p9(S));(document.head||document.documentElement).appendChild(f)},hDB=function(){var S=iPV(),c=[];
if(S>1){var Q=S-1;c.push("//www.gstatic.com/eureka/clank/"+S+"/cast_sender.js");c.push("//www.gstatic.com/eureka/clank/"+Q+"/cast_sender.js")}return c},G$p=function(){var S=Do0();
S&&S(!1,"No cast extension found")},gU1=function(){if(q2g){var S=2,c=Do0(),Q=function(){S--;
S==0&&c&&c(!0)};
window.__onGCastApiAvailable=Q;p32("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",G$p,Q)}},ZPp=function(){gU1();
var S=hDB();S.push("//www.gstatic.com/eureka/clank/cast_sender.js");ezZ(S)},W1U=function(){gU1();
var S=hDB();S.push.apply(S,_.Hs(k$O.map(rG0)));S.push("//www.gstatic.com/eureka/clank/cast_sender.js");ezZ(S)},q2g=H4T("loadCastFramework")||H4T("loadCastApplicationFramework"),k$O=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var Tjg=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Tjg,_.Ga);var w3G=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(w3G,_.Ga);var sZE=function(){var S=new w3G;return _.ep(S,1,3)};var uL=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(uL,_.Ga);var WYE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(WYE,_.Ga);var MyE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(MyE,_.Ga);MyE.prototype.getToken=function(){return _.MJ(this,1)};
MyE.prototype.setToken=function(S){return _.oC(this,1,S)};
var Z1p=function(S){return _.uY(S,3,_.eN,_.c1())},Ge0=function(S){return _.uY(S,6,_.eN,_.c1())};var jU=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(jU,_.Ga);jU.prototype.getToken=function(){return _.JB(this,MyE,2)};
jU.prototype.setToken=function(S){return _.Qx(this,2,S)};
jU.prototype.getName=function(){return _.MJ(this,6)};
var i4N=_.SS(jU);var Z4E=function(S,c,Q){this.requestMessage=S;this.methodDescriptor=c;this.metadata=Q};
Z4E.prototype.getMetadata=function(){return this.metadata};var GsN=function(S,c){c=c===void 0?{}:c;this.responseMessage=S;this.metadata=c;this.status=null};
GsN.prototype.getMetadata=function(){return this.metadata};
GsN.prototype.getStatus=function(){return this.status};var lL=function(S,c,Q,f,U){this.name=S;this.methodType="unary";this.requestType=c;this.responseType=Q;this.requestSerializeFn=f;this.responseDeserializeFn=U},WZ2=function(S,c,Q){Q=Q===void 0?{}:Q;
return new Z4E(c,S,Q)};
lL.prototype.getName=function(){return this.name};var Y2=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Y2,_.Ga);Y2.prototype.setHeader=function(S){return _.Qx(this,1,S)};
Y2.prototype.hasHeader=function(){return _.lR(this,uL,1)};var gdT=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(gdT,_.Ga);var eDO=new lL("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",Y2,gdT,function(S){return S.serialize()},_.SS(gdT));var Ce=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Ce,_.Ga);Ce.prototype.setHeader=function(S){return _.Qx(this,1,S)};
Ce.prototype.hasHeader=function(){return _.lR(this,uL,1)};var ksG=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ksG,_.Ga);var raN=new lL("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",Ce,ksG,function(S){return S.serialize()},_.SS(ksG));var Hf=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Hf,_.Ga);Hf.prototype.setHeader=function(S){return _.Qx(this,1,S)};
Hf.prototype.hasHeader=function(){return _.lR(this,uL,1)};var doO=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(doO,_.Ga);doO.prototype.getLink=function(){return _.JB(this,jU,1)};var vdO=new lL("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",Hf,doO,function(S){return S.serialize()},_.SS(doO));var Db=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Db,_.Ga);Db.prototype.setHeader=function(S){return _.Qx(this,1,S)};
Db.prototype.hasHeader=function(){return _.lR(this,uL,1)};var P8Z=new lL("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",Db,jU,function(S){return S.serialize()},i4N);var LZO=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(LZO,_.Ga);var EdU=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(EdU,_.Ga);EdU.prototype.getUrl=function(){return _.MJ(this,2)};
EdU.prototype.setUrl=function(S){return _.oC(this,2,S)};var ty0=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ty0,_.Ga);var VyN=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(VyN,_.Ga);var RDp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(RDp,_.Ga);var VeZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(VeZ,_.Ga);var te8=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(te8,_.Ga);var yap=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(yap,_.Ga);var QhZ=_.SS(yap);var od8=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(od8,_.Ga);var pe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(pe,_.Ga);pe.prototype.setHeader=function(S){return _.Qx(this,1,S)};
pe.prototype.hasHeader=function(){return _.lR(this,uL,1)};
pe.prototype.getCompletionUrl=function(){return _.MJ(this,6)};
pe.prototype.getDeviceId=function(){return _.MJ(this,11)};var mog=new lL("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",pe,yap,function(S){return S.serialize()},QhZ);var SeB=new Set(["SAPISIDHASH","APISIDHASH"]);var c8V=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(c8V,_.Ga);c8V.prototype.getMessage=function(){return _.MJ(this,2)};
var Qi0=_.SS(c8V);var hg=function(S,c){this.xhrNodeReadableStream_=S.nodeReadableStream;this.grpcResponseDeserializeFn_=c;this.JSC$17096_xhr_=S.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$17096_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&feO(this)},OSZ=function(S,c){var Q=new UsV;
_.HI(S.JSC$17096_xhr_,"complete",function(){if(S.JSC$17096_xhr_.isSuccess()){var f=S.JSC$17096_xhr_.getResponseText();var U;if(U=c)U=S.JSC$17096_xhr_,U.JSC$7833_xhr_&&U.isComplete()?(U=U.JSC$7833_xhr_.getResponseHeader("Content-Type"),U=U===null?void 0:U):U=void 0,U=U==="text/plain";if(U){if(!atob)throw Error("Oj");f=atob(f)}try{var a=S.grpcResponseDeserializeFn_(f)}catch(z){qa(S,lEO(new _.qU(13,"Error when deserializing response data; error: "+z+(", response: "+f)),Q));return}f=_.zk(S.JSC$17096_xhr_.getStatus());
J8p(S,aeE(S));f==0?A8N(S,a):qa(S,lEO(new _.qU(f,"Xhr succeeded but the status code is not 200"),Q))}else{f=S.JSC$17096_xhr_.getResponseText();a=aeE(S);if(f){var X=XK0(S,f);f=X.code;U=X.details;X=X.metadata}else f=2,U="Rpc failed due to xhr error. uri: "+String(S.JSC$17096_xhr_.JSC$7833_lastUri_)+", error code: "+S.JSC$17096_xhr_.JSC$7833_lastErrorCode_+", error: "+S.JSC$17096_xhr_.getLastError(),X=a;J8p(S,a);qa(S,lEO(new _.qU(f,U,X),Q))}})},feO=function(S){S.xhrNodeReadableStream_.on("data",function(c){if("1"in
c){var Q=c["1"];
try{var f=S.grpcResponseDeserializeFn_(Q)}catch(U){qa(S,new _.qU(13,"Error when deserializing response data; error: "+U+(", response: "+Q)))}f&&A8N(S,f)}if("2"in c)for(c=XK0(S,c["2"]),Q=0;Q<S.onStatusCallbacks_.length;Q++)S.onStatusCallbacks_[Q](c)});
S.xhrNodeReadableStream_.on("end",function(){J8p(S,aeE(S));for(var c=0;c<S.onEndCallbacks_.length;c++)S.onEndCallbacks_[c]()});
S.xhrNodeReadableStream_.on("error",function(){if(S.JSC$17096_onErrorCallbacks_.length!=0){var c=S.JSC$17096_xhr_.JSC$7833_lastErrorCode_;c!==0||S.JSC$17096_xhr_.isSuccess()||(c=6);var Q=-1;switch(c){case 0:var f=2;break;case 7:f=10;break;case 8:f=4;break;case 6:Q=S.JSC$17096_xhr_.getStatus();f=_.zk(Q);break;default:f=14}J8p(S,aeE(S));c=_.Kch(c)+", error: "+S.JSC$17096_xhr_.getLastError();Q!=-1&&(c+=", http status code: "+Q);qa(S,new _.qU(f,c))}})},aeE=function(S){var c={},Q=U_E(S.JSC$17096_xhr_);
Object.keys(Q).forEach(function(f){c[f]=Q[f]});
return c},XK0=function(S,c){var Q=2,f={};
try{var U=Qi0(c);Q=_.Qa(U,1);var a=U.getMessage();_.St(U,RoV,3,_.c1()).length&&(f["grpc-web-status-details-bin"]=c)}catch(X){S.JSC$17096_xhr_&&S.JSC$17096_xhr_.getStatus()===404?(Q=5,a="Not Found: "+String(S.JSC$17096_xhr_.JSC$7833_lastUri_)):(Q=14,a="Unable to parse RpcStatus: "+X)}return{code:Q,details:a,metadata:f}};
hg.prototype.on=function(S,c){S=="data"?this.onDataCallbacks_.push(c):S=="metadata"?this.onMetadataCallbacks_.push(c):S=="status"?this.onStatusCallbacks_.push(c):S=="end"?this.onEndCallbacks_.push(c):S=="error"&&this.JSC$17096_onErrorCallbacks_.push(c);return this};
var T2=function(S,c){c=S.indexOf(c);c>-1&&S.splice(c,1)};
hg.prototype.removeListener=function(S,c){S=="data"?T2(this.onDataCallbacks_,c):S=="metadata"?T2(this.onMetadataCallbacks_,c):S=="status"?T2(this.onStatusCallbacks_,c):S=="end"?T2(this.onEndCallbacks_,c):S=="error"&&T2(this.JSC$17096_onErrorCallbacks_,c);return this};
hg.prototype.cancel=function(){this.JSC$17096_xhr_.abort()};
var A8N=function(S,c){for(var Q=0;Q<S.onDataCallbacks_.length;Q++)S.onDataCallbacks_[Q](c)},J8p=function(S,c){for(var Q=0;Q<S.onMetadataCallbacks_.length;Q++)S.onMetadataCallbacks_[Q](c)},qa=function(S,c){for(var Q=0;Q<S.JSC$17096_onErrorCallbacks_.length;Q++)S.JSC$17096_onErrorCallbacks_[Q](c)};
hg.prototype.cancel=hg.prototype.cancel;hg.prototype.removeListener=hg.prototype.removeListener;hg.prototype.on=hg.prototype.on;var UsV=function(){var S=Error.call(this);this.message=S.message;"stack"in S&&(this.stack=S.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.C(UsV,Error);var wn=function(S){this.JSC$17105_worker_=S.worker||null;this.JSC$17105_streamBinaryChunks_=S.streamBinaryChunks||!1;this.JSC$17105_credentialsMode_=void 0};
_.Xa(wn,_.Vtr);wn.prototype.createInstance=function(){var S=new s1(this.JSC$17105_worker_,this.JSC$17105_streamBinaryChunks_);this.JSC$17105_credentialsMode_&&S.setCredentialsMode(this.JSC$17105_credentialsMode_);return S};
wn.prototype.setCredentialsMode=function(S){this.JSC$17105_credentialsMode_=S};
var s1=function(S,c){_.Y5.call(this);this.JSC$17109_worker_=S;this.JSC$17109_streamBinaryChunks_=c;this.JSC$17109_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$17109_responseHeaders_=null;this.JSC$17109_method_="GET";this.JSC$17109_url_="";this.inProgress_=!1;this.JSC$17109_textDecoder_=this.currentReader_=this.fetchResponse_=null;this.abortController_=
new AbortController};
_.Xa(s1,_.Y5);s1.prototype.open=function(S,c){if(this.readyState!=0)throw this.abort(),Error("Pj");this.JSC$17109_method_=S;this.JSC$17109_url_=c;this.readyState=1;Ma(this)};
s1.prototype.send=function(S){if(this.readyState!=1)throw this.abort(),Error("Qj");if(this.abortController_.signal.aborted)throw this.abort(),Error("Rj");this.inProgress_=!0;var c={headers:this.requestHeaders_,method:this.JSC$17109_method_,credentials:this.JSC$17109_credentialsMode_,cache:void 0,signal:this.abortController_.signal};S&&(c.body=S);(this.JSC$17109_worker_||_.QY).fetch(new Request(this.JSC$17109_url_,c)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
s1.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,iL(this));this.readyState=0};
s1.prototype.handleResponse_=function(S){if(this.inProgress_&&(this.fetchResponse_=S,this.JSC$17109_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$17109_responseHeaders_=S.headers,this.readyState=2,Ma(this)),this.inProgress_&&(this.readyState=3,Ma(this),this.inProgress_)))if(this.responseType==="arraybuffer")S.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.QY.ReadableStream!==
"undefined"&&"body"in S){this.currentReader_=S.body.getReader();if(this.JSC$17109_streamBinaryChunks_){if(this.responseType)throw Error("Sj");this.response=[]}else this.response=this.responseText="",this.JSC$17109_textDecoder_=new TextDecoder;zBT(this)}else S.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var zBT=function(S){S.currentReader_.read().then(S.handleDataFromStream_.bind(S)).catch(S.handleSendFailure_.bind(S))};
s1.prototype.handleDataFromStream_=function(S){if(this.inProgress_){if(this.JSC$17109_streamBinaryChunks_&&S.value)this.response.push(S.value);else if(!this.JSC$17109_streamBinaryChunks_){var c=S.value?S.value:new Uint8Array(0);if(c=this.JSC$17109_textDecoder_.decode(c,{stream:!S.done}))this.response=this.responseText+=c}S.done?iL(this):Ma(this);this.readyState==3&&zBT(this)}};
s1.prototype.handleResponseText_=function(S){this.inProgress_&&(this.response=this.responseText=S,iL(this))};
s1.prototype.handleResponseArrayBuffer_=function(S){this.inProgress_&&(this.response=S,iL(this))};
s1.prototype.handleSendFailure_=function(){this.inProgress_&&iL(this)};
var iL=function(S){S.readyState=4;S.fetchResponse_=null;S.currentReader_=null;S.JSC$17109_textDecoder_=null;Ma(S)};
s1.prototype.setRequestHeader=function(S,c){this.requestHeaders_.append(S,c)};
s1.prototype.getResponseHeader=function(S){return this.JSC$17109_responseHeaders_?this.JSC$17109_responseHeaders_.get(S.toLowerCase())||"":""};
s1.prototype.getAllResponseHeaders=function(){if(!this.JSC$17109_responseHeaders_)return"";for(var S=[],c=this.JSC$17109_responseHeaders_.entries(),Q=c.next();!Q.done;)Q=Q.value,S.push(Q[0]+": "+Q[1]),Q=c.next();return S.join("\r\n")};
s1.prototype.setCredentialsMode=function(S){this.JSC$17109_credentialsMode_=S};
var Ma=function(S){S.onreadystatechange&&S.onreadystatechange.call(S)};
Object.defineProperty(s1.prototype,"withCredentials",{get:function(){return this.JSC$17109_credentialsMode_==="include"},
set:function(S){this.setCredentialsMode(S?"include":"same-origin")}});var xsE=function(S){var c="";_.Cn.forEach(S,function(Q,f){c+=f;c+=":";c+=Q;c+="\r\n"});
return c},FwN=function(S,c,Q){if(_.Cn.isEmpty(Q))return S;
Q=xsE(Q);if(typeof S==="string")return _.dO(S,_.vY(c),Q);_.to(S,c,Q);return S};var BJT=function(){this.isInputValid_=!0;this.JSC$17115_streamPos_=0;this.leftoverInput_=""};
BJT.prototype.isInputValid=function(){return this.isInputValid_};var IX=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$17118_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
IX.prototype.isInputValid=function(){return this.state_!=3};
var Zb=function(S,c,Q,f){S.state_=3;S.errorMessage_="The stream is broken @"+S.JSC$17118_streamPos_+"/"+Q+". Error: "+f+". With input:\n"+c;throw Error(S.errorMessage_);};
IX.prototype.acceptsBinaryInput=function(){return!0};
IX.prototype.parse=function(S){function c(x){x&128&&Zb(a,X,z,"invalid tag");(x&7)!=2&&Zb(a,X,z,"invalid wire type");a.tag_=x>>>3;a.tag_!=1&&a.tag_!=2&&a.tag_!=15&&Zb(a,X,z,"unexpected tag");a.state_=1;a.length_=0;a.countLengthBytes_=0}
function Q(x){a.countLengthBytes_++;a.countLengthBytes_==5&&x&240&&Zb(a,X,z,"message length too long");a.length_|=(x&127)<<(a.countLengthBytes_-1)*7;x&128||(a.state_=2,a.countMessageBytes_=0,typeof Uint8Array!=="undefined"?a.messageBuffer_=new Uint8Array(a.length_):a.messageBuffer_=Array(a.length_),a.length_==0&&U())}
function f(x){a.messageBuffer_[a.countMessageBytes_++]=x;a.countMessageBytes_==a.length_&&U()}
function U(){if(a.tag_<15){var x={};x[a.tag_]=a.messageBuffer_;a.result_.push(x)}a.state_=0}
for(var a=this,X=S instanceof Array?S:new Uint8Array(S),z=0;z<X.length;){switch(a.state_){case 3:Zb(a,X,z,"stream already broken");break;case 0:c(X[z]);break;case 1:Q(X[z]);break;case 2:f(X[z]);break;default:throw Error("Uj`"+a.state_);}a.JSC$17118_streamPos_++;z++}S=a.result_;a.result_=[];return S.length>0?S:null};var C51=function(){this.errorMessage_=null;this.JSC$17121_streamPos_=0;this.base64Decoder_=new BJT;this.pbParser_=new IX};
C51.prototype.isInputValid=function(){return this.errorMessage_===null};
var IeZ=function(S,c,Q){S.errorMessage_="The stream is broken @"+S.JSC$17121_streamPos_+". Error: "+Q+". With input:\n"+c;throw Error(S.errorMessage_);};
C51.prototype.acceptsBinaryInput=function(){return!1};
C51.prototype.parse=function(S){this.errorMessage_!==null&&IeZ(this,S,"stream already broken");var c=null;try{var Q=this.base64Decoder_;if(!Q.isInputValid_)throw Q.isInputValid_=!1,Error("Tj`"+Q.JSC$17115_streamPos_+"`stream already broken`"+S);Q.leftoverInput_+=S;var f=Math.floor(Q.leftoverInput_.length/4);if(f==0)var U=null;else{try{var a=_.xpT(Q.leftoverInput_.slice(0,f*4))}catch(x){var X=Q.leftoverInput_,z=x.message;Q.isInputValid_=!1;throw Error("Tj`"+Q.JSC$17115_streamPos_+"`"+z+"`"+X);}Q.JSC$17115_streamPos_+=
f*4;Q.leftoverInput_=Q.leftoverInput_.slice(f*4);U=a}c=U===null?null:this.pbParser_.parse(U)}catch(x){IeZ(this,S,x.message)}this.JSC$17121_streamPos_+=S.length;return c};var YHG=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$17124_streamPos_=0;this.result_=[];this.statusParsed_=!1};
YHG.prototype.isInputValid=function(){return this.errorMessage_===null};
YHG.prototype.acceptsBinaryInput=function(){return!1};
YHG.prototype.parse=function(S){function c(x){a.state_=6;a.errorMessage_="The stream is broken @"+a.JSC$17124_streamPos_+"/"+X+". Error: "+x+". With input:\n";throw Error(a.errorMessage_);}
function Q(){a.jsonStreamParser_=new _.a7({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function f(x){if(x)for(var I=0;I<x.length;I++){var n={};n[1]=x[I];a.result_.push(n)}}
function U(x){if(x){(a.statusParsed_||x.length>1)&&c("extra status: "+x);a.statusParsed_=!0;var I={};I[2]=x[0];a.result_.push(I)}}
for(var a=this,X=0;X<S.length;){var z;if(z=a.state_!==2){a:{for(;X<S.length;){if(!_.Je(S[X])){z=!0;break a}X++;a.JSC$17124_streamPos_++}z=!1}z=!z}if(z)return null;switch(a.state_){case 6:c("stream already broken");break;case 0:S[X]==="["?(a.state_=1,X++,a.JSC$17124_streamPos_++):c("unexpected input token");break;case 1:S[X]==="["?(a.state_=2,Q()):S[X]===","||S.slice(X,X+5)=="null,"?a.state_=3:S[X]==="]"?(a.state_=5,X++,a.JSC$17124_streamPos_++):c("unexpected input token");break;case 2:z=a.jsonStreamParser_.parse(S.substring(X));
f(z);a.jsonStreamParser_.done()?(a.state_=3,z=a.jsonStreamParser_.JSC$9429_buffer_,a.JSC$17124_streamPos_+=S.length-X-z.length,S=z,X=0):(a.JSC$17124_streamPos_+=S.length-X,X=S.length);break;case 3:S[X]===","||S.slice(X,X+5)=="null,"?(a.state_=4,Q(),a.jsonStreamParser_.parse("["),X+=S[X]===","?1:5,a.JSC$17124_streamPos_++):S[X]==="]"&&(a.state_=5,X++,a.JSC$17124_streamPos_++);break;case 4:z=a.jsonStreamParser_.parse(S.substring(X));U(z);a.jsonStreamParser_.done()?(a.state_=5,z=a.jsonStreamParser_.JSC$9429_buffer_,
a.JSC$17124_streamPos_+=S.length-X-z.length,S=z,X=0):(a.JSC$17124_streamPos_+=S.length-X,X=S.length);break;case 5:c("extra input after stream end")}}return a.result_.length>0?(S=a.result_,a.result_=[],S):null};var nap=function(S){this.JSC$17127_xhr_=S;this.JSC$17127_parser_=null;this.status_=this.JSC$17127_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$17127_textDecoder_=null;this.JSC$17127_eventHandler_=new _.fP(this);this.JSC$17127_eventHandler_.listen(this.JSC$17127_xhr_,"readystatechange",this.JSC$17129_readyStateChangeHandler_)},G2=function(S,c){S.status_!=c&&(S.status_=c,S.statusHandler_&&S.statusHandler_())},Wf=function(S){S.JSC$17127_eventHandler_.removeAll();
if(S.JSC$17127_xhr_){var c=S.JSC$17127_xhr_;S.JSC$17127_xhr_=null;c.abort();c.dispose()}};
nap.prototype.getStatus=function(){return this.status_};
nap.prototype.JSC$17129_readyStateChangeHandler_=function(S){S=S.target;try{if(S==this.JSC$17127_xhr_)a:{var c=_.sn(this.JSC$17127_xhr_),Q=this.JSC$17127_xhr_.JSC$7833_lastErrorCode_,f=this.JSC$17127_xhr_.getStatus(),U=this.JSC$17127_xhr_.getResponseText();S=[];if(this.JSC$17127_xhr_.getResponse()instanceof Array){var a=this.JSC$17127_xhr_.getResponse();a.length>0&&a[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,S=a)}if(!(c<3||c==3&&!U&&S.length==0))if(f=f==200||f==206,c==4&&(Q==8?G2(this,
7):Q==7?G2(this,8):f||G2(this,3)),this.JSC$17127_parser_||(this.JSC$17127_parser_=H1g(this.JSC$17127_xhr_),this.JSC$17127_parser_==null&&G2(this,5)),this.status_>2)Wf(this);else{if(S.length>this.JSC$17127_pos_){var X=S.length;Q=[];try{if(this.JSC$17127_parser_.acceptsBinaryInput())for(var z=0;z<X;z++){var x=this.JSC$17127_parser_.parse(Array.from(S[z]));x&&(Q=Q.concat(x))}else{x="";if(!this.JSC$17127_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Vj");this.JSC$17127_textDecoder_=new TextDecoder}for(z=
0;z<X;z++)x+=this.JSC$17127_textDecoder_.decode(S[z],{stream:c==4&&z==X-1});Q=this.JSC$17127_parser_.parse(x)}S.splice(0,X);Q&&this.dataHandler_(Q)}catch(n){G2(this,5);Wf(this);break a}}else if(U.length>this.JSC$17127_pos_){z=U.slice(this.JSC$17127_pos_);this.JSC$17127_pos_=U.length;try{var I=this.JSC$17127_parser_.parse(z);I!=null&&this.dataHandler_&&this.dataHandler_(I)}catch(n){G2(this,5);Wf(this);break a}}c==4?(U.length!=0||this.hasStreamingResponseData_?G2(this,2):G2(this,4),Wf(this)):G2(this,
1)}}}catch(n){G2(this,6),Wf(this)}};var bSV=function(S){S=this.xhrReader_=S;var c=(0,_.H1)(this.onData_,this);S.dataHandler_=c;S=this.xhrReader_;c=(0,_.H1)(this.onStatusChange_,this);S.statusHandler_=c;this.JSC$17131_callbackMap_={};this.callbackOnceMap_={}};
_.J=bSV.prototype;_.J.on=function(S,c){var Q=this.JSC$17131_callbackMap_[S];Q||(Q=[],this.JSC$17131_callbackMap_[S]=Q);Q.push(c);return this};
_.J.addListener=function(S,c){this.on(S,c);return this};
_.J.removeListener=function(S,c){var Q=this.JSC$17131_callbackMap_[S];Q&&_.tZ(Q,c);(S=this.callbackOnceMap_[S])&&_.tZ(S,c);return this};
_.J.once=function(S,c){var Q=this.callbackOnceMap_[S];Q||(Q=[],this.callbackOnceMap_[S]=Q);Q.push(c);return this};
_.J.onData_=function(S){var c=this.JSC$17131_callbackMap_.data;c&&NJU(S,c);(c=this.callbackOnceMap_.data)&&NJU(S,c);this.callbackOnceMap_.data=[]};
var NJU=function(S,c){for(var Q={},f=0;f<S.length;Q={message$jscomp$969:void 0},f++)Q.message$jscomp$969=S[f],c.forEach(function(U){return function(a){try{a(U.message$jscomp$969)}catch(X){}}}(Q))};
bSV.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:KwZ(this,"readable");break;case 5:case 6:case 4:case 7:case 3:KwZ(this,"error");break;case 8:KwZ(this,"close");break;case 2:KwZ(this,"end")}};
var KwZ=function(S,c){var Q=S.JSC$17131_callbackMap_[c];Q&&Q.forEach(function(f){try{f()}catch(U){}});
(Q=S.callbackOnceMap_[c])&&Q.forEach(function(f){f()});
S.callbackOnceMap_[c]=[]};var $sg=function(){var S={format:"jspb"};S=S===void 0?{}:S;this.suppressCorsPreflight=S.suppressCorsPreflight||_.rC("suppressCorsPreflight",S)||!1;this.withCredentials=S.withCredentials||_.rC("withCredentials",S)||!1;this.streamInterceptors=S.streamInterceptors||[];this.unaryInterceptors=S.unaryInterceptors||[];this.workerScope=S.workerScope;this.chunkedServerStreaming=S.useFetchDownloadStreams||!1},leV=function(S,c,Q,f,U,a){a=a===void 0?{}:a;
var X=c.substring(0,c.length-U.name.length),z,x=(z=a)==null?void 0:z.signal;return uZO(function(I){return new Promise(function(n,b){if(x==null?0:x.aborted){var N=new _.qU(1,"Aborted");N.cause=x.reason;b(N)}else{var l={},H=jiN(S,I,X);H.on("error",function(q){return void b(q)});
H.on("metadata",function(q){l=q});
H.on("data",function(q){var w=l;w=w===void 0?{}:w;n(new GsN(q,w))});
x&&x.addEventListener("abort",function(){H.cancel();var q=new _.qU(1,"Aborted");q.cause=x.reason;b(q)})}})},S.unaryInterceptors).call(S,WZ2(U,Q,f)).then(function(I){return I.responseMessage})},gn=function(S,c,Q,f,U,a){a=a===void 0?{}:a;
return leV(S,c,Q,f,U,a)};
$sg.prototype.serverStreaming=function(S,c,Q,f){var U=this,a=S.substring(0,S.length-f.name.length);return YeU(function(X){var z=X.methodDescriptor,x=X.getMetadata(),I=C9E(U,!1);x=HSg(U,x,I,a+z.getName());var n=Dsp(I,z.responseDeserializeFn,!0);X=z.requestSerializeFn(X.requestMessage);I.send(x,"POST",X);return n},this.streamInterceptors).call(this,WZ2(f,c,Q))};
var jiN=function(S,c,Q){var f=c.methodDescriptor,U=c.getMetadata(),a=C9E(S,!0);S=HSg(S,U,a,Q+f.getName());Q=Dsp(a,f.responseDeserializeFn,!1);OSZ(Q,U["X-Goog-Encode-Response-If-Executable"]==="base64");c=f.requestSerializeFn(c.requestMessage);a.send(S,"POST",c);return Q},C9E=function(S,c){c=S.chunkedServerStreaming&&!c;
return S.workerScope||c?new _.wT(new wn({worker:S.workerScope,streamBinaryChunks:c})):new _.wT},HSg=function(S,c,Q,f){c["Content-Type"]="application/json+protobuf";
c["X-User-Agent"]="grpc-web-javascript/0.1";var U=c.Authorization;if(U&&SeB.has(U.split(" ")[0])||S.withCredentials)Q.JSC$7833_withCredentials_=!0;if(S.suppressCorsPreflight)f=FwN(f,"$httpHeaders",c);else for(S=_.A(Object.keys(c)),U=S.next();!U.done;U=S.next())U=U.value,Q.headers.set(U,c[U]);return f},Dsp=function(S,c,Q){if(Q){Q=new nap(S);
var f=new bSV(Q)}return new hg({xhr:S,nodeReadableStream:f},c)},YeU=function(S,c){return c.reduce(function(Q,f){return function(U){return f.intercept(U,Q)}},S)},uZO=function(S,c){return c.reduce(function(Q,f){return function(U){return f.intercept(U,Q)}},S)};var pK1=function(S){this.client_=new $sg;this.hostname_=S==void 0?S:S.replace(/\/+$/,"")};
_.J=pK1.prototype;_.J.JSC$17149_depositGoogleCredential=function(S,c,Q){return gn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",S,c||{},raN,Q)};
_.J.deleteLink=function(S,c,Q){return gn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",S,c||{},eDO,Q)};
_.J.JSC$17149_finishOAuth=function(S,c,Q){return gn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",S,c||{},vdO,Q)};
_.J.getLink=function(S,c,Q){return gn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",S,c||{},P8Z,Q)};
_.J.startLinkingSession=function(S,c,Q){return gn(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",S,c||{},mog,Q)};var hBV=[0,kv2,1,vzE,[0,_.Rr,[0,r2E,-1]],[0,dKO],[0,P7Z,-1]];var qeG=function(){this.storage=new Map},wKp=function(S,c,Q,f,U){if(!S.storage.has(c))return null;
S=_.A(S.storage.get(c));for(c=S.next();!c.done;c=S.next())if(c=c.value,!U||c.linkName===U)if(Q&&c.scopes&&TJO(c.scopes,Q)||f&&c.capabilities&&TJO(c.capabilities,f))return c;return null},si1=function(S,c,Q){if(!Q)S.storage.delete(c);
else if(S.storage.has(c)){var f=S.storage.get(c).filter(function(U){return U.linkName!==Q});
f.length>0?S.storage.set(c,f):S.storage.delete(c)}},TJO=function(S,c){c=_.A(c);
for(var Q=c.next();!Q.done;Q=c.next())if(!S.has(Q.value))return!1;return!0};var M9O=function(){var S=_.WY("LINK_GAL_DOMAIN");this.alsDomain1p=_.WY("LINK_GAL_DOMAIN");this.alsDomain3p=S;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},iSU=function(S,c){S.apiKey=c;
return S};
M9O.prototype.build=function(){var S={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Wj");S.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Xj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Yj");S.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(S.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)S.apiKey=
this.apiKey,S.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Zj");S.oauthToken=this.oauthToken;S.alsDomain=this.alsDomain3p}S.clientXd3=this.clientXd3;S.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(S.authUser=this.authUser);this.bucket!==void 0&&(S.bucket=this.bucket);this.completionUrl!==void 0&&(S.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(S.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(S.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(S.locale=this.locale);S.loggerType=this.loggerType;S.clientEnvironment=this.clientEnvironment;S.colorScheme=this.colorScheme;S.showCloseOption=this.showCloseOption;return S};var nq=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(nq,_.Ga);var ZSO=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ZSO,_.Ga);var GIg=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(GIg,_.Ga);var NM=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(NM,_.Ga);var WwB=function(S){return _.iR(S,1)};var ga0=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(ga0,_.Ga);var sTO=_.SS(ga0),bU=[1,2,3,4,5];var h08=function(S){try{return sTO(S)}catch(c){return null}},eBT=function(){},qHB=function(S,c){switch(_.Dx(c,bU)){case 4:return(c=_.Wg(c,GIg,4,bU))&&S.logStateTransition(_.iR(c,1)),!0;
case 5:return(c=_.Wg(c,ZSO,5,bU))&&S.logInternalEvent(_.iR(c,1)),!0}return!1},MeN=function(S){switch(S){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.OZ(S)}};var DPB=function(S,c){var Q=this;this.validator=S;this.messageListener=c;this.dismissCallback=function(){kIT(Q,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$17178_receiveMessage=function(f){f.type==="message"&&(f=f.event_,f!==null&&(new URL(Q.iframe.src)).origin===f.origin&&Q.validator(f.data,f.origin)&&!Q.messageListener(f.data)&&(Q.JSC$17178_resolveCb!==void 0&&Q.JSC$17178_resolveCb(f.data),r8T(Q)))}},wGB=function(S,c,Q){S.uiHandler!==void 0&&kIT(S,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(f,U){S.JSC$17178_resolveCb=f;S.JSC$17178_rejectCb=U;S.iframe=document.createElement("iframe");_.TR(S.iframe,c);S.uiHandler=Q.displayContent(S.iframe,S.dismissCallback);_.HI(window,"message",S.JSC$17178_receiveMessage,!1,S)})},kIT=function(S,c){S.JSC$17178_rejectCb!==void 0&&S.JSC$17178_rejectCb(c);
r8T(S)},r8T=function(S){S.uiHandler!==void 0&&S.uiHandler.hideContent();
_.lS(window,"message",S.JSC$17178_receiveMessage,!1,S);S.JSC$17178_resolveCb=void 0;S.JSC$17178_rejectCb=void 0;S.uiHandler=void 0;S.iframe=void 0};var dsp=function(S){if(S===2){var c;S=((c=window)==null?0:c.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return S},TQ2=function(S){S=dsp(S);
switch(S){case 0:return"light";case 1:return"dark";default:_.OZ(S)}};var pGB=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),va0=function(S,c){this.JSC$17190_linkingSession=S;this.noticeConfig=c;this.displayInfoMap=new Map;var Q=new Map;if(_.lR(this.JSC$17190_linkingSession,ty0,7))for(S=_.JB(this.JSC$17190_linkingSession,ty0,7),S=_.St(S,EdU,1,_.c1()),S=_.A(S),c=S.next();!c.done;c=S.next())c=c.value,Q.set(_.iR(c,1),_.iyr(_.JB(c,_.bBM,3)));if(Q.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){c=this.noticeConfig.enabledDataUsageNoticeUis;S=c.has(0)?Q.get(1):void 0;c=c.has(1)?Q.get(2):void 0;Q=S!==void 0&&c!==void 0?Q.get(3):void 0;var f=this.noticeConfig.nestedOrigins;var U=new ga0;var a=new nq;U=_.fc(U,2,bU,a);a=new ga0;var X=new nq;a=_.fc(a,3,bU,X);X=[];S!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:S,lastEvent:U,nestedOrigins:f}]),X.push({trustedUrl:S,lastEvent:U,nestedOrigins:f}));c!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:c,lastEvent:a,nestedOrigins:f}]),X.push({trustedUrl:c,lastEvent:a,nestedOrigins:f}));Q!==void 0?this.displayInfoMap.set(3,[{trustedUrl:Q,lastEvent:a,nestedOrigins:f}]):this.displayInfoMap.set(3,X)}};var P9N=function(S){var c=new qeG;this.galService=S;this.galCache=c};
P9N.prototype.getLink=function(S){var c=S.serviceId;var Q=S.scopes;var f=S.capabilities;var U=S.linkName;var a=this,X;return _.O(function(z){if(f!==void 0&&Q!==void 0)throw Error("$j");X=wKp(a.galCache,c,Q,f,U);return X!==null?z.return(X):z.return(a.galService.getLink({serviceId:c,sessionId:Math.floor(Math.random()*2147483648),scopes:Q,capabilities:f,linkName:U}).then(function(x){x=gL8(x);var I=a.galCache;I.storage.has(c)?I.storage.get(c).push(x):I.storage.set(c,[x]);return x}))})};
P9N.prototype.deleteLink=function(S,c,Q){var f=this;return _.O(function(U){si1(f.galCache,S,Q);return U.return(f.galService.deleteLink({serviceId:S,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:c,linkName:Q}).then(function(){return!0}))})};var EaT=function(S,c){var Q=this;this.validator=S;this.msgHandler=c;this.closedPopupTimeout=this.JSC$17212_rejectCb=this.JSC$17212_resolveCb=this.popup=null;this.JSC$17212_receiveMessage=function(f){if(f!==null&&(f=f.event_,f.source===Q.popup)){var U=f.data;if(Q.validator(U,f.origin)){var a;(a=Q.msgHandler)!=null&&a.call(Q,U)||(Q.JSC$17212_resolveCb!==null&&Q.JSC$17212_resolveCb(U),Lw8(Q))}}}};
EaT.prototype.open=function(S,c){var Q=this;this.popup!==null&&t9E(this);return new Promise(function(f,U){Q.JSC$17212_resolveCb=f;Q.JSC$17212_rejectCb=U;Q.popup=_.sy(window,S,"",c);_.HI(window,"message",Q.JSC$17212_receiveMessage,!1,Q);V9U(Q)})};
var t9E=function(S,c){S.JSC$17212_rejectCb!==null&&S.JSC$17212_rejectCb(c);Lw8(S)},Lw8=function(S){S.closedPopupTimeout&&(S.closedPopupTimeout.cancel(),S.closedPopupTimeout=null);
S.popup&&S.popup.close();_.lS(window,"message",S.JSC$17212_receiveMessage,!1,S);S.popup=null;S.JSC$17212_resolveCb=null;S.JSC$17212_rejectCb=null},V9U=function(S){S.closedPopupTimeout=_.B_p(100).then(function(){S.popup?S.popup.closed?RBO(S):V9U(S):t9E(S,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},RBO=function(S){S.closedPopupTimeout=_.B_p(100).then(function(){t9E(S,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var y8Z=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),oaT=function(S,c,Q,f,U,a,X,z,x,I){var n=this;this.serviceId=S;this.sessionId=c;this.galService=Q;this.oauthDetails=f;this.galLogger=U;this.interactionMode=a;this.redirectServiceUrl=X;this.consentLanguageKeys=z;this.dynamicUrlParameters=x;this.partnerConfigMinReadTimestamp=I;this.started=!1;this.JSC$17218_dataValidator=function(b,
N){var l=y8Z.has(N);l||n.redirectServiceUrl===void 0||(l=n.redirectServiceUrl===N);return l?b.sentinel==="gdi":!1}};
oaT.prototype.complete=function(){var S=this,c;return _.O(function(Q){if(S.interactionMode!==1)return Q.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=$7.getRedirectStateFromUri();return c===null?Q.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):Q.return(ms8(S,c))})};
oaT.prototype.start=function(){var S=this,c;return _.O(function(Q){if(S.started)return Q.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.MJ(S.oauthDetails,1))return Q.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(S.interactionMode===1)return $7.setLocation(_.MJ(S.oauthDetails,1)),Q.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));S.started=!0;S.galLogger.logStateTransition(5);
c=$7.getPostMessagePopup(S.JSC$17218_dataValidator);return Q.return(c.open(_.MJ(S.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(f){S.started=!1;var U=S.galLogger;if((f==null?void 0:f.error)!==void 0)throw U.logInternalEvent(59),Error("ak");if((f==null?void 0:f.redirect_state)===void 0)throw U.logInternalEvent(131),Error("bk");return ms8(S,f.redirect_state)}).catch(function(f){S.started=
!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var ms8=function(S,c){return _.O(function(Q){return Q.return(SI8(S.galService,{serviceId:S.serviceId,sessionId:S.sessionId,dynamicUrlParameters:S.dynamicUrlParameters,redirectState:c,consentLanguageKeys:S.consentLanguageKeys,partnerConfigMinReadTimestamp:S.partnerConfigMinReadTimestamp}).then(function(f){var U={statusCode:1,link:gL8(f.getLink())};CBV(_.CW(f,3))!==void 0&&(U.callerState=CBV(_.CW(f,3)));S.galLogger.logInternalEvent(134);return U}))})},$7={getPostMessagePopup:function(S){return new EaT(S)},
getRedirectStateFromUri:function(){var S=_.L9($7.getLocation()).fragment_;return(new _.Am(S)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(S){_.P7(window.location,_.jS(S))},
createOAuthFlow:function(S,c){return new oaT(S.serviceId,S.sessionId,S.galService,c,S.galLogger,S.interactionMode,S.redirectServiceUrl,S.consentLanguageKeys,S.dynamicUrlParameters,S.partnerConfigMinReadTimestamp)}};var cWp=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(cWp,_.Ga);var QCG=_.SS(cWp);var f6E=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),U$N=function(S,c,Q,f,U,a,X,z,x){var I=this;this.serviceId=S;this.sessionId=c;this.galService=Q;this.gsiWebFlowDetails=f;this.colorScheme=U;this.showCloseOption=a;this.galLogger=X;this.interactionMode=z;this.redirectServiceUrl=x;this.started=!1;this.JSC$17230_dataValidator=function(n,b){var N=f6E.has(b);N||I.redirectServiceUrl===
void 0||(N=I.redirectServiceUrl===b);return N?n.sentinel==="gal":!1};
this.logEventProcessor=function(n){return n.result?(n=h08(n.result))?qHB(I.galLogger,n):!1:!1}};
U$N.prototype.complete=function(){var S=this,c,Q;return _.O(function(f){if(S.interactionMode!==1)return f.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));c=uU.getRedirectStateFromUri();if(c===void 0)return S.galLogger.JSC$17170_logErrorEvent(131),f.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return Q=JWG(S,c),f.return(a6Z(S,Q))}catch(U){return f.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
U$N.prototype.start=function(){var S=this,c;return _.O(function(Q){if(S.started)return Q.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.MJ(S.gsiWebFlowDetails,1))return Q.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(S.interactionMode===1)return uU.setLocation(AWE(S,_.MJ(S.gsiWebFlowDetails,1))),Q.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
S.started=!0;c=uU.getPostMessagePopup(S.JSC$17230_dataValidator,S.logEventProcessor);return Q.return(c.open(AWE(S,_.MJ(S.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(f){S.started=!1;if((f==null?void 0:f.result)===void 0)throw S.galLogger.JSC$17170_logErrorEvent(131),Error("bk");f=JWG(S,f.result);return a6Z(S,f)}).catch(function(f){S.started=!1;
return f.errorCode!==void 0?{statusCode:f.errorCode,statusMessage:f.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var AWE=function(S,c){S=["result_channel",S.interactionMode===1?"2":"1","color_scheme",TQ2(S.colorScheme),"show_close_option",S.showCloseOption];return Vw2(c,S)},a6Z=function(S,c){if(c!==null&&_.lR(c,NM,2)){var Q,f=c==null?void 0:(Q=_.JB(c,NM,2))==null?void 0:_.iR(Q,2);
f&&S.galLogger.JSC$17170_logErrorEvent(MeN(f));return WwB(_.JB(c,NM,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 S.galService.getLink({serviceId:S.serviceId,sessionId:S.sessionId,consistencyKey:_.MJ(c,1)}).then(function(U){U=gL8(U);S.galLogger.logInternalEvent(134);return{statusCode:1,link:U}})},JWG=function(S,c){c=QCG(c);
if(!_.lR(c,NM,2)&&_.MJ(c,1)==="")throw S.galLogger.JSC$17170_logErrorEvent(5),Error("ck");return c},uU={getPostMessagePopup:function(S,c){return new EaT(S,c)},
getRedirectStateFromUri:function(){return _.Eh(_.L9(uU.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(S){_.P7(window.location,_.jS(S))},
createStreamlinedFlow:function(S,c){return new U$N(S.serviceId,S.sessionId,S.galService,c,S.colorScheme,S.showCloseOption,S.galLogger,S.interactionMode,S.redirectServiceUrl)}};var SP2=function(){var S=_.K1x("GAL");this.storage=S?new _.Cl(S):null};var eU=function(){};
_.C(eU,eBT);eU.prototype.logStateTransition=function(){};
eU.prototype.logInternalEvent=function(){};
eU.prototype.JSC$17170_logErrorEvent=function(){};var XZE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(XZE,_.Ga);XZE.prototype.getCompletionUrl=function(){return _.MJ(this,15)};var k2=function(S,c,Q,f,U,a){this.serviceId=S;this.environment=c;this.sessionId=Q;this.colorSchemeSelected=f;this.colorThemeDisplayed=U;this.JSC$17243_transport=a;this.currentState=1};
_.C(k2,eBT);k2.prototype.logStateTransition=function(S){var c=ODE(this);c=_.aR(c,3,this.currentState);c=_.aR(c,1,S);this.currentState=S;S=fIT(1);this.dispatch(c,S)};
k2.prototype.logInternalEvent=function(S){S=fIT(S);this.dispatch(ODE(this),S)};
k2.prototype.JSC$17170_logErrorEvent=function(S){var c=ODE(this);c=_.aR(c,1,10);S=fIT(S);this.dispatch(c,S)};
var ODE=function(S){var c=new XZE;c=_.aR(c,1,S.currentState);c=_.bN(c,7,S.serviceId);var Q,f;var U=((Q=window)==null?0:(f=Q.location)==null?0:f.href)?_.L9(window.location.href).JSC$8068_domain_:"NO_PACKAGE_NAME";Q=_.bN(c,8,U);Q=_.aR(Q,6,S.environment);Q=_.bN(Q,5,"100");Q=_.aR(Q,11,S.colorSchemeSelected);return _.aR(Q,12,S.colorThemeDisplayed)};
k2.prototype.dispatch=function(S,c){c===void 0&&(c=new _.x5);var Q=c;S=S.serialize();Q=_.bN(Q,8,S);_.YL(Q,12,this.sessionId);this.JSC$17243_transport.dispatch(c)};var znT=function(S,c){this.loggerType=S;this.sessionIndex=c!=null?c:0},x$8;
znT.prototype.create=function(S,c,Q,f,U){switch(this.loggerType){case 0:return new eU;case 1:return x$8||(x$8=(new _.xx(555,this.sessionIndex.toString())).build()),new k2(S,c,Q,f,U,x$8);default:_.OZ(this.loggerType,"unknown logger type")}};var jk=[6,2,3,1],JOZ=new Map([[4,1],[1,6],[2,2],[3,3]]),dPE={statusCode:7,statusMessage:"Failed to create flow object"},oLg=function(S,c,Q,f,U,a,X,z,x,I){this.serviceId=S;this.sessionId=c;this.config=Q;this.galService=f;this.JSC$17250_linkingSession=U;this.googleScopes=a;this.callerState=X;this.consentLanguageKeys=z;this.dynamicUrlParameters=x;this.partnerConfigMinReadTimestamp=I;this.currentFlow=0;f=this.JSC$17250_linkingSession;U=new Set;_.lR(f,te8,1)&&U.add(1);_.lR(f,RDp,2)&&_.lR(f,VeZ,6)&&U.add(2);
_.lR(f,VyN,3)&&_.lR(f,VeZ,6)&&U.add(3);_.lR(f,LZO,4)&&U.add(6);this.supportedFlows=U;f=Q.loggerType;U=Q.clientEnvironment;a:{a=Q.colorScheme;switch(a){case 0:a=1;break a;case 1:a=2;break a;case 2:a=3;break a;default:_.OZ(a)}a=void 0}a:{X=Q.colorScheme;X=dsp(X);switch(X){case 0:X=1;break a;case 1:X=2;break a;default:_.OZ(X)}X=void 0}this.galLogger=(new znT(f,Q.authUser)).create(S,U,c,a,X)},BDp=function(S){return new Promise(function(c){var Q,f,U,a,X,z,x,I,n,b;
return _.O(function(N){switch(N.nextAddress){case 1:Q=R0G(S.currentFlow,S.supportedFlows),f=!1,U=new va0(S.JSC$17250_linkingSession,S.config.dataUsageNoticeConfig);case 2:if(Q===void 0){N.jumpTo(4);break}_.X1(N,5);var l=U,H=Q,q=void 0;f?H===1&&(q=l.displayInfoMap.get(2)):H===2||H===3?q=l.displayInfoMap.get(1):H===1&&(q=l.displayInfoMap.get(3));a=q?q:[];X=S.consentLanguageKeys;z=_.A(a);x=z.next();case 7:if(x.done)return S.currentFlow=Q,_.F(N,P5E(FlE(S,X)),11);I=x.value;return _.F(N,i1U(I,S.config.dataUsageNoticeConfig.uiAdapter,
S.config.colorScheme,S.galLogger),10);case 10:n=N.yieldResult;if(n.statusCode!==1)return cOZ(S.serviceId),S.currentFlow=0,c(Kq({statusCode:n.statusCode,statusMessage:n.statusMessage},S.callerState)),N.return();n.consentLanguageKeys!==void 0&&(X=n.consentLanguageKeys);x=z.next();N.jumpTo(7);break;case 11:b=N.yieldResult;if(b.statusCode!==10)return b.statusCode!==6&&(cOZ(S.serviceId),S.currentFlow=0),b.statusCode!==1&&S.callerState!==void 0&&(b.callerState=S.callerState),c(b),N.return();_.Pi(N,6);break;
case 5:_.Bs(N);case 6:Q=R0G(S.currentFlow,S.supportedFlows);f=!0;N.jumpTo(2);break;case 4:cOZ(S.serviceId),S.currentFlow=0,c(Kq({statusCode:12,statusMessage:"Linking failed"},S.callerState)),_.IN(N)}})})},fmE=function(S,c,Q){S.currentFlow=c;
return LY0(FlE(S,Q)).then(function(f){return f.statusCode===10&&S.config.interactionMode===1&&R0G(S.currentFlow,S.supportedFlows)!==void 0?BDp(S):f})},FlE=function(S,c){return{flowParams:{serviceId:S.serviceId,
sessionId:S.sessionId,galService:S.galService,galLogger:S.galLogger,interactionMode:S.config.interactionMode,redirectServiceUrl:S.config.redirectServiceUrl,colorScheme:S.config.colorScheme,consentLanguageKeys:c,dynamicUrlParameters:S.dynamicUrlParameters,showCloseOption:S.config.showCloseOption,partnerConfigMinReadTimestamp:S.partnerConfigMinReadTimestamp},currentFlow:S.currentFlow,config:S.config,session:S.JSC$17250_linkingSession,googleScopes:S.googleScopes,callerState:S.callerState}};var AO2=function(S,c){this.config=S;this.galService=c.getService();this.JSC$17263_galRepository=c.JSC$17281_galRepository};
AO2.prototype.getLink=function(S,c){return I68(this,S,c)};
var I68=function(S,c,Q){return S.JSC$17263_galRepository.getLink({serviceId:c,scopes:void 0,capabilities:void 0,linkName:Q}).then(function(f){return{statusCode:1,link:f}}).catch(function(f){return{statusCode:am1(f.code),
statusMessage:f.message}})};
AO2.prototype.deleteLink=function(S,c){return this.JSC$17263_galRepository.deleteLink(S,this.config.accountLinkingEntryPoint,c).then(function(){return{statusCode:1}}).catch(function(Q){return{statusCode:am1(Q.code),
statusMessage:Q.message}})};
AO2.prototype.startLinkingSession=function(S){var c=S.serviceId;var Q=S.sessionId;return mP0({serviceId:c,sessionId:Q!==void 0?Q:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:S.loginHint,callerState:S.callerState,consentLanguageKeys:S.consentLanguageKeys,linkName:S.linkName,dynamicUrlParameters:S.dynamicUrlParameters,partnerConfigMinReadTimestamp:S.partnerConfigMinReadTimestamp})};var rn=function(S,c,Q,f,U,a,X){this.apiKey=c;this.authUser=Q;this.oauthToken=f;this.bucket=U;this.locale=a;this.galSdkEventHandler=X;if(f===void 0){if(c===void 0)throw Error("dk");this.useFpa=!0}else this.useFpa=!1;this.galServiceClient=new pK1(S)};
rn.prototype.deleteLink=function(S){var c=S.serviceId;var Q=S.sessionId;var f=S.accountLinkingEntryPoint;var U=S.linkName;var a=this,X;return _.O(function(z){var x=(new Y2).setHeader(dn(a,Q));var I=nuB({serviceId:c,linkName:U});x=_.Qx(x,2,I);X=_.ep(x,3,f);return z.return(a.makeRequest(a.galServiceClient.deleteLink,X,[1,3],[2,4]))})};
var SI8=function(S,c){var Q=c.serviceId;var f=c.sessionId;var U=c.dynamicUrlParameters;var a=c.redirectState;var X=c.consentLanguageKeys;var z=c.partnerConfigMinReadTimestamp;var x;return _.O(function(I){var n=(new Hf).setHeader(dn(S,f,U));n=_.oC(n,2,Q);x=_.oC(n,4,a);X!==void 0&&_.oC(x,5,X);z!==void 0&&_.Qx(x,6,z);return I.return(S.makeRequest(S.galServiceClient.JSC$17149_finishOAuth,x,[1,3],[2,4]))})};
rn.prototype.getLink=function(S){var c=S.serviceId;var Q=S.sessionId;var f=S.scopes;var U=S.capabilities;var a=S.consistencyKey;var X=S.linkName;var z=this,x;return _.O(function(I){var n=(new Db).setHeader(dn(z,Q)),b=nuB({serviceId:c,scopes:f,capabilities:U,linkName:X});x=_.Qx(n,2,b);a!==void 0&&(n=sZE(),n=_.oC(n,2,a),_.Qx(x,3,n));return I.return(z.makeRequest(z.galServiceClient.getLink,x,[1,3],[2,4]))})};
var ELE=function(S,c){var Q=c.serviceId;var f=c.sessionId;var U=c.googleScopes;var a=c.consistencyKey;var X;return _.O(function(z){var x=(new Ce).setHeader(dn(S,f));x=_.oC(x,2,Q);var I=Array.from(U.values());x=_.YZ(x,3,I,_.GO);I=sZE();I=_.oC(I,2,a);X=_.Qx(x,4,I);return z.return(S.makeRequest(S.galServiceClient.JSC$17149_depositGoogleCredential,X,[1,3],[2,4]))})};
rn.prototype.startLinkingSession=function(S){var c=S.serviceId;var Q=S.sessionId;var f=S.scopes;var U=S.capabilities;var a=S.loginHint;var X=S.supportedFlows;var z=S.completionUrl;var x=S.usePingPong;var I=S.twoWayLinking;var n=S.accountLinkingEntryPoint;var b=S.callerState;var N=S.consentLanguageKeys;var l=S.googleScopes;var H=S.dataUsageNoticeConfig;var q=S.linkName;var w=S.dynamicUrlParameters;var g=S.partnerConfigMinReadTimestamp;var r=this,E,v;return _.O(function(t){if(U!==void 0&&f!==void 0)throw Error("$j");
var V=(new pe).setHeader(dn(r,Q,w));E=_.oC(V,2,c);q!==void 0&&_.oC(E,14,q);if(U!==void 0){V=E;var AZ=Array.from(U.values());_.YZ(V,5,AZ,_.GO)}else f!==void 0&&(V=E,AZ=Array.from(f.values()),_.YZ(V,3,AZ,_.GO));z!==void 0&&_.oC(E,6,z);x!==void 0&&_.pP(E,15,x);X!==void 0&&(V=E,AZ=Array.from(X.values()),_.YZ(V,4,AZ,_.jN));if(I!==void 0){if(I&&(!l||l.size===0))throw Error("ek");_.pP(E,8,I)}n!==void 0&&_.ep(E,9,n);a!==void 0&&_.oC(E,13,a);b!==void 0&&(V=E,AZ=(new TextEncoder).encode(b),_.Ch(V,12,_.GJ(AZ,
!1),_.ZT()));N!==void 0&&_.oC(E,16,N);g!==void 0&&_.Qx(E,18,g);if(H!==void 0&&H.size>0||l!==void 0&&l.size>0)v=new od8,l!==void 0&&l.size>0&&(V=v,AZ=Array.from(l.values()),_.YZ(V,1,AZ,_.GO)),H!==void 0&&(H.has(0)&&_.AUY(v,2,_.jN,1,_.lE),H.has(1)&&_.AUY(v,2,_.jN,2,_.lE)),_.Qx(E,17,v);return t.return(r.makeRequest(r.galServiceClient.startLinkingSession,E,[1],[2]))})};
rn.prototype.getMetadata=function(){var S=this,c,Q;return _.O(function(f){c={};S.useFpa?(c["X-Goog-Api-Key"]=S.apiKey,c["X-Goog-AuthUser"]=S.authUser!==void 0?S.authUser.toString():"0",(Q=_.PZo([]))&&(c.Authorization=Q)):c.Authorization="Bearer "+S.oauthToken;S.locale&&(c["accept-language"]=S.locale);return f.return(c)})};
rn.prototype.makeRequest=function(S,c,Q,f){var U=this,a;return _.O(function(X){if(X.nextAddress==1)return _.F(X,U.getMetadata(),2);a=X.yieldResult;bDg(U,Q);return X.return(S.bind(U.galServiceClient)(c,a).finally(function(){bDg(U,f)}))})};
var bDg=function(S,c){S.galSdkEventHandler!==void 0&&c.forEach(function(Q){S.galSdkEventHandler.onEvent(Q)})},dn=function(S,c,Q){var f=new uL;
c=_.Ch(f,2,_.Y0(c),0);c=_.ep(c,5,3);Q=_.YZ(c,8,Q,_.GO);S.bucket!==void 0&&_.oC(Q,1,S.bucket);return Q},nuB=function(S){var c=S.serviceId;
var Q=S.scopes;var f=S.capabilities;S=S.linkName;if(f!==void 0&&Q!==void 0)throw Error("$j");var U=new Tjg;c=_.oC(U,1,c);f!==void 0?(Q=Array.from(f.values()),_.YZ(c,5,Q,_.GO)):Q!==void 0&&(Q=Array.from(Q.values()),_.YZ(c,3,Q,_.GO));S!==void 0&&_.oC(c,6,S);return c};var Xng=function(S){this.galService=new rn(S.alsDomain,S.apiKey,S.authUser,S.oauthToken,S.bucket,S.locale,S.galSdkEventHandler);this.JSC$17281_galRepository=new P9N(this.galService)};
Xng.prototype.getService=function(){return this.galService};var NDV=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(NDV,_.Ga);var KlU=function(S){var c=new NDV;return _.aR(c,1,S)};
NDV.prototype.setErrorMessage=function(S){return _.bN(this,2,S)};var $$0=[0,_.or,_.VQ,_.or];var vf=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(vf,_.Ga);var uf2=[0,[1,2,3],_.yQ,[0,GvN,eoB,-1],_.yQ,[0,gz2,-1],_.Uwz];var jCE=[0,_.EY,1,_.or,_.VQ,-1,1,_.AXM,_.LW,_.or,-1,uf2];var l6g=[0,_.or,[0,_.AXM,_.LW,[0,_.VQ]],_.tP,[0,_.or,-1]];var Jg=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Jg,_.Ga);var YIB=[0,_.VQ,_.or,-2,_.EY,_.or,_.EY,_.or,-2,1,_.tP];var CV8=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(CV8,_.Ga);var HDE=[0,_.EY];var D$1=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(D$1,_.Ga);var pZZ=[0,_.or,l6g,HDE,YIB,jCE];var WSg=_.yf(D$1,pZZ);var hnN=[0,hBV];var vkZ=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(vkZ,_.Ga);var qIZ=[0,[1,3],LdE,_.or,LdE];var fe=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(fe,_.Ga);var TDB=[0,_.or];var wZg=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(wZg,_.Ga);var U1=function(S){return _.Wg(S,NDV,2,Ql)},sCE=function(S){var c=new wZg;
return _.fc(c,2,Ql,S)},Ql=[1,
2];var M0B=[0,Ql,_.yQ,TDB,_.yQ,$$0,_.Rr,qIZ,1,_.or,hnN];var iDV=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(iDV,_.Ga);var GwN=function(S){var c=new iDV;return _.fc(c,3,ZD2,S)},ZD2=[2,
3];var Pf=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(Pf,_.Ga);var WlT=function(S,c){return _.Qx(S,2,c)},gug=function(S,c){return _.Qx(S,8,c)},enU=function(S,c){return _.Qx(S,3,c)};var kwZ=[0,_.or,M0B,pZZ,_.n0u,[0,[5,6],[0,_.or,-2],[0,_.EY,_.or,_.VQ],[0,uf2],[0,_.VQ,_.or,-1,_.IBH,_.or],_.yQ,[0,[0,_.EY],_.or,-1],_.yQ,[0,[3,4],_.or,-1,_.yQ,[0,[0,_.or,_.tP]],_.yQ,[0,[0,[0,[1,2],_.yQ,[0],_.yQ,[0]]]]]],_.n0u,-1,[0,ZD2,_.or,_.yQ,TDB,_.yQ,$$0,_.Rr,qIZ,[0,hBV]]];var rWV=_.yf(Pf,kwZ),d$V=_.oA(kwZ);var vu2=function(){_.C9.call(this)};
_.C(vu2,_.C9);vu2.prototype.init=function(){};
new vu2;var PVZ=_.oK(["data-"]),Ll0=_.oK(["aria-"]),EuT=_.oK(["aria-"]),Le=function(S,c){this.isLatencyMeasurementExperiment=S===void 0?!1:S;this.enableDialogA11yFix=c===void 0?!1:c;this.JSC$17310_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.r$u(_.QY.location.href)},eM1=function(S,c){S.onConsentPrimitiveShownCallback=c},t0V=function(S,c){return S.overriddenIframeLoadTimeout?S.overriddenIframeLoadTimeout:c!==void 0?c:5E3},r40=function(S){if(S.prewarmPromise!==void 0)return S.prewarmPromise;
S.prewarmPromise=new Promise(function(c,Q){E1(S,1);V0N(S,RnU(S,!0),yW2(S));S.iframe?S.prewarmChannel||ou0(S,S.iframe,c):Q(Error("fk"))});
S.prewarmPromise.finally(function(){S.prewarmPromise=void 0});
return S.prewarmPromise};
Le.prototype.showPrimitive=function(){var S=this;if(this.consentPromise!==void 0)return this.consentPromise;var c=Date.now();m$V(this,c);this.consentPromise=new Promise(function(Q,f){E1(S,0,c);var U=S.isDarkTheme();S.isLatencyMeasurementExperiment||S.initialLoadingStrategy===1||S.initialLoadingStrategy===2||(S.loadingBar||(S.loadingBar=FGE(getComputedStyle(document.body).direction==="rtl",U),S.loadingBar.style.position="fixed",S.loadingBar.style.zIndex="15000"),document.body.appendChild(S.loadingBar));
V0N(S,RnU(S),yW2(S));S.iframe?S.channel||S9O(S,S.iframe,Q,f):(cw8(S),f(Error("fk")))});
this.consentPromise.finally(function(){S.consentPromise=void 0});
return this.consentPromise};
var S9O=function(S,c,Q,f){var U,a;_.O(function(X){switch(X.nextAddress){case 1:E1(S,3);U=!1;setTimeout(function(){if(!U){cw8(S);QKE(S);fvU(S);var z=KlU(7).setErrorMessage("Timeout connecting to iframe");Q(gug(WlT(new Pf,sCE(z)),GwN(z)))}},t0V(S,U7V(S)));
if(!S.prewarmPromise){X.jumpTo(2);break}_.X1(X,3);return _.F(X,S.prewarmPromise,5);case 5:_.Pi(X,2);break;case 3:_.Bs(X),a=KlU(4).setErrorMessage("Error while prewarming."),Q(gug(WlT(new Pf,sCE(a)),GwN(a)));case 2:S.prewarmChannel&&S.prewarmChannel.send(d$V(enU(new Pf,S.consentPrimitiveRequest))),S.channel=_.cl({destination:S.JSC$17310_win,iframe:c,origin:JwG(S),channelName:"cpw",onEstablished:function(){U=!0;cw8(S);S.isLatencyMeasurementExperiment||(S.JSC$17310_previousBodyOverflow=document.body.style.overflow,
S.JSC$17310_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,S.JSC$17310_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",S.enableDialogA11yFix&&window.addEventListener("blur",S.focusChangeListener));var z=S.iframe;z.style.bottom="0";z.style.position="fixed";z.style.right="0";z.style.border="none";z.style.left="0";z.style.top=
"0";z.style.zIndex="5000";z.style.pointerEvents="";z.style.visibility="";S.initialLoadingStrategy===2||S.initialLoadingStrategy===3?E1(S,4):E1(S,6);var x;(x=S.onConsentPrimitiveShownCallback)==null||x.call(S)},
onMessage:function(z){z=rWV(z.data);switch(_.iR(z,1)){case 1:QKE(S);var x=BKg(_.JB(z,_.rD,7));x&&(S.initialLoadingStrategy!==2&&S.initialLoadingStrategy!==3||E1(S,6,x),E1(S,5,x));if(x=BKg(_.JB(z,_.rD,6)))E1(S,7,x),E1(S,8);var I,n;((I=_.JB(z,wZg,2))==null?void 0:_.Dx(I,Ql))!==0&&((n=_.JB(z,iDV,8))==null?void 0:_.Dx(n,ZD2))!==0||f(Error("gk"));Q(z);break;case 2:fvU(S)}}}),_.IN(X)}})},ou0=function(S,c,Q){S.prewarmChannel=_.cl({destination:S.JSC$17310_win,
iframe:c,origin:JwG(S),channelName:"pwcp",onEstablished:function(){E1(S,2);Q()}})},JwG=function(S){var c=_.Oy(S.src).toString();
return c&&c.indexOf("://")<0&&c.indexOf("//")!==0?S.origin:_.r$u(c)},RnU=function(S,c){c=c===void 0?!1:c;
var Q,f=new Map([["origin",S.origin],["hl",(Q=av8(S))!=null?Q:null]]);c&&f.set("pw","1");c=_.A([["cpr",S.consentPrimitiveRequest.serialize()]]);for(Q=c.next();!Q.done;Q=c.next()){var U=_.A(Q.value);Q=U.next().value;U=U.next().value;f.set(Q,U)}S.isDarkTheme()&&f.set("color_scheme","dark");return _.fn(S.src,f)},cw8=function(S){S.isLatencyMeasurementExperiment||S.loadingBar&&document.body.removeChild(S.loadingBar)};
Le.prototype.getSrc=function(){var S=_.ok(this.origin),c;var Q=(c=_.JB(this.consentPrimitiveRequest,CV8,3))==null?void 0:_.Qa(c,1);c="consent.google.com";Q=Q?"/u/"+encodeURIComponent(Q.toString()):"";(S==null?0:S.endsWith("youtube.com"))?c="consent.youtube.com":(S=S==null?void 0:S.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(c="consent.google."+((S[1]?"co.":"")+encodeURIComponent(S[2])));return _.XK("https://"+c+"/signedin"+Q+"/landing")};
var V0N=function(S,c,Q){S.iframe||(S.iframe=document.createElement("iframe"),S.iframe.style.width="100%",S.iframe.style.height="100%",Q!==112496729&&(S.iframe.style.colorScheme="auto"),S.isLatencyMeasurementExperiment&&(S.iframe.style.display="none"),_.TR(S.iframe,c),S.iframe.setAttribute("jsname","C5o1O"),AwN(S.iframe),document.body.appendChild(S.iframe))},AwN=function(S){S.style.bottom="-200vh";
S.style.position="fixed";S.style.right="-200vw";S.style.border="";S.style.left="";S.style.top="";S.style.zIndex="";S.style.pointerEvents="none";S.style.visibility="hidden"},QKE=function(S){S.iframe&&(S.isLatencyMeasurementExperiment||(S.JSC$17310_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=S.JSC$17310_previousHtmlOverscroll),S.JSC$17310_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=S.JSC$17310_previousBodyOverscroll),S.JSC$17310_previousBodyOverflow!==
void 0&&(document.body.style.overflow=S.JSC$17310_previousBodyOverflow),S.enableDialogA11yFix&&X$0(S,!1)),AwN(S.iframe))};
Le.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(X$0(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var X$0=function(S,c){var Q,f,U=(Q=S.iframe)==null?void 0:(f=Q.parentElement)==null?void 0:f.children;if(U)for(Q=0;Q<U.length;Q++)f=U[Q],f!==S.iframe&&(c?(f.hasAttribute("aria-hidden")&&_.r_([_.SC(PVZ)],f,"data-old-aria-hidden",f.getAttribute("aria-hidden")),_.r_([_.SC(Ll0)],f,"aria-hidden","true")):(f.removeAttribute("aria-hidden"),f.hasAttribute("data-old-aria-hidden")&&(_.r_([_.SC(EuT)],f,"aria-hidden",f.getAttribute("data-old-aria-hidden")),f.removeAttribute("data-old-aria-hidden"))))},E1=function(S,
c,Q){var f;
(f=S.latencyCallback)==null||f.call(S,{latencyType:c,timestampEpochMillis:Q!=null?Q:Date.now()})};var OjU=function(S,c,Q){Le.call(this,c,Q===void 0?!1:Q);this.consentPrimitiveRequest=S;S=av8(this);_.XiU(S);this.src=this.getSrc();var f;this.initialLoadingStrategy=(f=_.JB(this.consentPrimitiveRequest,Jg,4))==null?void 0:_.iR(f,4)},zpU;
_.C(OjU,Le);var gk2=function(S){var c=_.u("enable_primitive_dialog_aria_hide_siblings");S={request:S,enableDialogA11yFix:c===void 0?!1:c};zpU||(zpU=new OjU(S.request,S.isLatencyMeasurementExperiment||_.iR(S.request,1)===2,S.enableDialogA11yFix));return zpU},av8=function(S){var c;
return(c=_.JB(S.consentPrimitiveRequest,Jg,4))==null?void 0:_.MJ(c,1)},m$V=function(S,c){if(!_.lR(S.consentPrimitiveRequest,vf,5)){var Q=S.consentPrimitiveRequest,f=new vf;
_.Qx(Q,5,f)}var U;if((U=_.JB(S.consentPrimitiveRequest,vf,5))==null||_.FeM(_.jp(U,8))==null){var a;(a=_.JB(S.consentPrimitiveRequest,vf,5))!=null&&_.YL(a,8,c)}},yW2=function(S){var c;
return(c=_.JB(S.consentPrimitiveRequest,vf,5))==null?void 0:_.Qa(c,1)};
OjU.prototype.isDarkTheme=function(){var S;return((S=_.JB(this.consentPrimitiveRequest,Jg,4))==null?void 0:_.iR(S,2))===2};
var U7V=function(S){var c;return((c=_.JB(S.consentPrimitiveRequest,Jg,4))==null?void 0:_.Qa(c,5))||void 0},fvU=function(S){S.channel=void 0;
S.prewarmChannel=void 0;S.iframe&&(document.body.contains(S.iframe)&&document.body.removeChild(S.iframe),S.iframe=void 0);zpU=void 0},d61=function(S){return Le.prototype.showPrimitive.call(S).then(function(c){return _.JB(c,wZg,2)})};for(var tg={},x7T=(tg[64]="ma",tg[73]="ogb",tg[89]="cr",tg[21]="test",tg[0]="unkn",tg[137]="con",tg[155]="hl",tg[78]="yt",tg[171]="lp",tg[172]="ap",tg[177]="amo",tg[178]="pqe",tg[74]="gg",tg[1]="gm",tg[140]="am",tg[193]="sc",tg),F9N=_.A(Object.keys(x7T)),BaG=F9N.next();!BaG.done;BaG=F9N.next());var IvE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(IvE,_.Ga);var nsO=[0,[2,3,4],_.or,WdU,LdE,_.Uwz];var bj1=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(bj1,_.Ga);var NaO=_.yf(bj1,[0,P7Z,_.VQ,_.or,_.VQ,_.or,nsO]);var K91=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(K91,_.Ga);K91.prototype.getCommand=function(){return _.iR(this,1)};
var $7G=function(){var S=new K91;return _.ep(S,1,0)};var uqT=_.oA([0,P7Z,_.VQ,[0,_.or,_.VQ,-1]]);var jKB=new _.NU("s"),lvZ=new _.NU("t"),Y9V=new _.NU("u"),CeN=new _.NU("v"),HjU=function(S,c,Q){_.K0.call(this,jKB);this.mediaKey=S;this.photoUrl=c;this.photoSource=Q};
_.C(HjU,_.K0);var D7G=function(){_.K0.call(this,lvZ)};
_.C(D7G,_.K0);var p$N=function(S){S=S===void 0?!1:S;_.K0.call(this,Y9V);this.isError=S};
_.C(p$N,_.K0);var hpV=function(){_.K0.call(this,CeN)};
_.C(hpV,_.K0);var q9B=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,MPZ=function(S){if(typeof S=="string"){if(S.charAt(0)==".")return TaE(S.substr(1));if(S.charAt(0)=="["){var c=q9B.exec(S);S=S.indexOf("=")==-1?void 0:c[3];return w$O(c[1],S)}return sKU(S)}return S},TaE=function(S){return function(c){return c.getAttribute&&_.vH(c,S)}},w$O=function(S,c){return function(Q){return c!==void 0?Q.getAttribute&&Q.getAttribute(S)==c:Q.hasAttribute&&Q.hasAttribute(S)}},sKU=function(S){S=S.toUpperCase();
return function(c){return(c=c.tagName)&&c.toUpperCase()==S}},ijg=function(){return!0};var Vl=function(S,c){this.JSC$17338_key_=S;this.JSC$17338_value_=c},Rs=function(S){throw Error("hk`"+S.JSC$17338_key_);
},ZjE=function(S,c){return new TypeError("ik`"+c+"`"+S.JSC$17338_key_+"`"+S.JSC$17338_value_+"`"+typeof S.JSC$17338_value_)};
Vl.prototype.string=function(S){if(arguments.length==0)var c=GVG(this);else{var Q;c=(Q=W98(this))!=null?Q:S}return c};
var GVG=function(S){var c=W98(S);c===null&&Rs(S);return c},W98=function(S){var c=S.JSC$17338_value_;
if(c==null)return null;if(typeof c==="string")return c;throw ZjE(S,"string");};
Vl.prototype.bool=function(S){if(arguments.length==0){var c=this.optionalBool();c===null&&Rs(this)}else{var Q;c=(Q=this.optionalBool())!=null?Q:S}return c};
Vl.prototype.optionalBool=function(){var S=this.JSC$17338_value_;if(S==null)return null;if(typeof S==="boolean")return S;if(typeof S==="string"){S=S.toLowerCase();if(S==="true"||S==="1")return!0;if(S==="false"||S==="0")return!1}throw ZjE(this,"boolean");};
Vl.prototype.number=function(S){if(arguments.length==0){var c=gsV(this);c===null&&Rs(this)}else{var Q;c=(Q=gsV(this))!=null?Q:S}return c};
var gsV=function(S){var c=S.JSC$17338_value_;if(c==null)return null;if(typeof c==="number")return c;if(typeof c==="string"){var Q=Number(c);if(!isNaN(Q)&&(Q!==0||c.trim().length!==0))return Q}throw ZjE(S,"number");};
Vl.prototype.toString=function(){return GVG(this)};
Vl.prototype.array=function(S){if(arguments.length==0){var c=ep8(this);c===null&&Rs(this);return c}c=ep8(this);return c==null?S:c};
var ep8=function(S){var c=S.JSC$17338_value_;if(c==null)return null;Array.isArray(c)||(typeof c!=="string"?c=[c]:(c=c.trim(),c=c==""?[]:c.split(",").map(function(Q){return Q.trim()})));
return kVE(S,c)},kVE=function(S,c){var Q=S.JSC$17338_key_+"[";
return Array.from(c,function(f,U){return new Vl(Q+U+"]",f)})};
Vl.prototype.object=function(S){var c=this.JSC$17338_value_;if(c==null)return S===void 0&&Rs(this),S;if(typeof c==="object"&&c.constructor===Object){S={};var Q=this.JSC$17338_key_+".",f;for(f in c)S[f]=new Vl(Q+f,c[f]);return S}throw ZjE(this,"object");};var yl=function(S){this.list_=rwg(S)},rwg=function(S){if(S instanceof yl)S=S.list_;
else if(S[0]instanceof yl){for(var c=new Set,Q=0;Q<S.length;Q++)for(var f=_.A(S[Q].list_),U=f.next();!U.done;U=f.next())c.add(U.value);S=c}return[].concat(_.Hs(S))};
_.J=yl.prototype;_.J.each=function(S,c,Q){((Q===void 0?0:Q)?uJ1:_.PY)(this.list_,S,c);return this};
_.J.size=function(){return this.list_.length};
_.J.isEmpty=function(){return this.list_.length===0};
_.J.get=function(S){return this.list_[S]||null};
_.J.el=function(){return this.list_[0]||null};
_.J.map=function(S,c){return _.D0(this.list_,S,c)};
_.J.equals=function(S){return this===S||_.A$(this.list_,S.list_)};
_.J.first=function(){return this.list_.length==0?null:new os(this.list_[0])};
_.J.find=function(S){var c=[];this.each(function(Q){Q=Q.querySelectorAll(String(S));for(var f=0;f<Q.length;f++)c.push(Q[f])});
return new yl(c)};
_.J.parent=function(){var S=[];this.each(function(c){(c=c.parentElement||null)&&!_.dp(S,c)&&S.push(c)});
return new yl(S)};
_.J.children=function(){var S=[];this.each(function(c){c=_.M1(c);for(var Q=0;Q<c.length;Q++)S.push(c[Q])});
return new yl(S)};
_.J.filter=function(S){S=_.z1(this.list_,MPZ(S));return new yl(S)};
_.J.closest=function(S){var c=[],Q=MPZ(S),f=function(U){return _.yk(U)&&Q(U)};
this.each(function(U){(U=_.Mk(U,f,!0))&&!_.dp(c,U)&&c.push(U)});
return new yl(c)};
_.J.next=function(S){return d7E(this,_.J$z,S)};
_.J.prev=function(S){return d7E(this,EzU,S)};
var d7E=function(S,c,Q){var f=[];var U=Q?MPZ(Q):ijg;S.each(function(a){(a=c(a))&&U(a)&&f.push(a)});
return new yl(f)};
yl.prototype.setClass=function(S){return this.each(function(c){_.dT(c,S)})};
var vsp=function(S,c){return S.each(function(Q){_.yX(Q,c)})},Pe2=function(S,c){return S.each(function(Q){_.VX(Q,c)})};
yl.prototype.toggleClass=function(S,c){return c===!0?vsp(this,S):c===!1?Pe2(this,S):this.each(function(Q){_.vH(Q,S)?_.VX(Q,S):_.yX(Q,S)})};
yl.prototype.setText=function(S){return this.each(function(c){_.ir(c,S)})};
var L9E=function(S){S.each(function(c){c.removeAttribute("aria-hidden")})};
yl.prototype.getStyle=function(S){if(this.list_.length>0){var c=this.list_[0],Q=c.style[_.bx(S)];return typeof Q!=="undefined"?Q:c.style[_.Kep(c,S)]||""}};
yl.prototype.getData=function(S){if(this.list_.length===0)return new Vl(S,null);var c=DxV(this.list_[0],S);return new Vl(S,c)};
yl.prototype.focus=function(S){try{S?this.el().focus(S):this.el().focus()}catch(c){}return this};
yl.prototype.click=function(){var S=_.qk(this.el());if(S.createEvent){var c=S.createEvent("MouseEvents");c.initMouseEvent("click",!0,!0,S.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(c)}else S=S.createEventObject(),S.clientX=0,S.clientY=0,S.screenX=0,S.screenY=0,S.altKey=!1,S.ctrlKey=!1,S.shiftKey=!1,S.button=0,this.el().fireEvent("onclick",S)};
var ma=function(S,c,Q,f){function U(z,x,I){var n=x;x&&x.parentNode&&(n=x.cloneNode(!0));z(n,I)}
f=f===void 0?!1:f;if(S.list_.length==1){var a=S.list_[0],X=function(z){return c(z,a)};
Q instanceof yl?Q.each(X,void 0,f):Array.isArray(Q)?(f?uJ1:_.PY)(Q,X):X(Q);return S}return S.each(function(z){Q instanceof yl?Q.each(function(x){U(c,x,z)}):Array.isArray(Q)?_.PY(Q,function(x){U(c,x,z)}):U(c,Q,z)})};
_.J=yl.prototype;_.J.append=function(S){return ma(this,function(c,Q){c&&Q.appendChild(c)},S)};
_.J.appendTo=function(S){(new yl([S])).append(this);return this};
_.J.remove=function(){return ma(this,function(S,c){_.K9(c)},null)};
_.J.empty=function(){return ma(this,function(S,c){_.TE(c)},null)};
_.J.after=function(S,c){return ma(this,function(Q,f){Q&&_.sR(Q,f)},S,!(c===void 0||c))};
_.J.before=function(S){return ma(this,function(c,Q){c&&_.wO(c,Q)},S)};
_.J.replaceWith=function(S){return ma(this,function(c,Q){c&&_.Qpz(c,Q)},S)};
_.J.toggle=function(S){return this.each(function(c){_.Va(c,S)})};
_.J.show=function(){return this.toggle(!0)};
_.J.hide=function(){return this.toggle(!1)};
_.J.trigger=function(S,c,Q,f){return Es8(this,S,c,Q,f)};
var Es8=function(S,c,Q,f,U){return S.each(function(a){_.lJY(_.qk(a)).triggerWizEventInternal(a,c,Q,f,U)})},os=function(S,c){S instanceof yl&&(c=S.list_,S=null);
this.list_=rwg(S!=null?[S]:c)};
_.Xa(os,yl);_.J=os.prototype;_.J.children=function(){return new yl(Array.prototype.slice.call(_.M1(this.list_[0])))};
_.J.each=function(S,c){S.call(c,this.list_[0],0);return this};
_.J.size=function(){return 1};
_.J.el=function(){return this.list_[0]};
_.J.first=function(){return this};var SA=function(S,c){c=c===void 0?window:c;this.hostId=S;this.JSC$17349_win=c;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$17349_previousHtmlOverscroll=this.JSC$17349_previousBodyOverscroll=this.JSC$17349_previousBodyOverflow="";this.eventTarget=new _.Y5;this.JSC$17349_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
RpN=function(S){var c=tPN(tPN(tPN(new VPN(78),"po"),"hppp"),"hhc");
c.authUser=Number(_.WY("SESSION_INDEX","0"));c.colorScheme=S;return c};
SA.prototype.getOrigin=function(){return this.origin?this.origin:_.Qr(_.cm(_.SV(new _.V7,this.JSC$17349_win.location.protocol),this.JSC$17349_win.location.hostname),this.JSC$17349_win.location.port).toString()};
SA.prototype.getTargetOrigin=function(){return _.Qr(_.cm(_.SV(new _.V7,this.scheme),this.domain),this.port)};
SA.prototype.preloadIframe=function(S){var c=this;if(this.iframeLoadPromise===void 0){var Q=document.createElement("iframe");this.iframe=Q;umT(Q,S);this.iframeLoadPromise=new Promise(function(f,U){var a=!1,X=function(z){z.stopPropagation();Q.removeEventListener("error",X);Q.removeEventListener("securitypolicyviolation",X);U(Error("jk",{cause:z}))};
Q.addEventListener("error",X);Q.addEventListener("securitypolicyviolation",X);setTimeout(function(){a||U(Error("kk"))},3E4);
ywV(c,Q,function(){a=!0;Q.removeEventListener("error",X);Q.removeEventListener("securitypolicyviolation",X);f()})});
osU(this);S=this.getTargetOrigin().toString();Q.setAttribute("allow","camera "+S+"; display-capture "+S);this.parentElement.appendChild(Q)}return this.iframeLoadPromise};
var cPO=function(S,c){var Q,f;return _.O(function(U){if(U.nextAddress==1)return Q=FGE(getComputedStyle(S.parentElement).direction==="rtl"),S.parentElement.appendChild(Q),document.activeElement instanceof HTMLElement&&(S.elementToFocusAfterClose=document.activeElement),_.X1(U,2),_.F(U,S.preloadIframe(c),4);if(U.nextAddress!=2){S.parentElement.removeChild(Q);S.JSC$17349_previousBodyOverflow=S.parentElement.style.overflow;S.JSC$17349_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
S.JSC$17349_previousBodyOverscroll=S.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";S.parentElement.style.overscrollBehavior="contain";S.parentElement.style.overflow="hidden";var a=S.iframe;a.style.bottom="0";a.style.border="none";a.style.height="100%";a.style.left="0";a.style.position=S.iframePosition;a.style.right="0";a.style.top="0";a.style.width="100%";a.style.zIndex="2202";a.setAttribute("aria-hidden","false");a.setAttribute("aria-modal","true");
S.opened=!0;m7g(S);return _.Pi(U,0)}f=_.Bs(U);S.parentElement.removeChild(Q);NKE(S.isDarkTheme());SYZ(S,!1);throw Error("lk",{cause:f});})},SYZ=function(S,c){c=c===void 0?!0:c;
S.iframe!==void 0&&(QrE(S),document.documentElement.style.overscrollBehavior=S.JSC$17349_previousHtmlOverscroll,S.parentElement.style.overscrollBehavior=S.JSC$17349_previousBodyOverscroll,S.parentElement.style.overflow=S.JSC$17349_previousBodyOverflow,S.elementToFocusAfterClose!==void 0&&(S.elementToFocusAfterClose.focus(),S.elementToFocusAfterClose=void 0),c?osU(S):(S.parentElement.removeChild(S.iframe),S.iframe=void 0,S.iframeLoadPromise=void 0,S.mainChannel=void 0),S.opened=!1)},QrE=function(S){S.backgroundElementsAriaHiddenIsNull&&
(L9E(S.backgroundElementsAriaHiddenIsNull),S.backgroundElementsAriaHiddenIsNull=void 0);
S.backgroundElementsAriaHiddenIsFalse&&(S.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","false")}),S.backgroundElementsAriaHiddenIsFalse=void 0);
S.backgroundElementsWithoutInert&&(S.backgroundElementsWithoutInert.each(function(c){c.removeAttribute("inert")}),S.backgroundElementsWithoutInert=void 0)},m7g=function(S){S.backgroundElementsAriaHiddenIsNull=(new os(S.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")===null&&c!==S.iframe});
S.backgroundElementsAriaHiddenIsNull.each(function(c){c.setAttribute("aria-hidden","true")});
S.backgroundElementsAriaHiddenIsFalse=(new os(S.iframe.parentElement)).children().filter(function(c){return c.getAttribute("aria-hidden")==="false"&&c!==S.iframe});
S.backgroundElementsAriaHiddenIsFalse.each(function(c){c.setAttribute("aria-hidden","true")});
S.backgroundElementsWithoutInert=(new os(S.iframe.parentElement)).children().filter(function(c){return!c.hasAttribute("inert")&&c!==S.iframe});
S.backgroundElementsWithoutInert.each(function(c){c.setAttribute("inert","true")})},osU=function(S){S=S.iframe;
S.style.bottom="-1000px";S.style.position="fixed";S.style.right="-1000px";S.style.border="";S.style.height="";S.style.left="";S.style.top="";S.style.width="";S.style.zIndex="";S.setAttribute("aria-hidden","true");S.setAttribute("aria-modal","false")};
SA.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var VPN=function(S,c){SA.call(this,x7T[S],c);this.options=[];this.style=""};
_.C(VPN,SA);var fxE=function(S){S.style="youtube";return S},UJG=function(S,c){S.eventTarget.listen(Y9V,c);
return S},JP2=function(S,c){S.eventTarget.listen(jKB,c);
return S},tPN=function(S,c){S.options.push(c);
return S},axp=function(S){var c=[S.getOrigin()];
S.ancestorOrigins&&c.push.apply(c,_.Hs(S.ancestorOrigins));var Q=new _.V7(S.JSC$17349_win.location.href),f=S.startUrl?S.startUrl:S.options.includes("po")?"profile-picture/art":"profile-picture";c=as(_.ff(S.getTargetOrigin(),f),"origin",c);S.startUrl&&_.to(c,"startPath",S.startUrl);S.authUser>0&&_.to(c,"authuser",S.authUser);S.pageId!==void 0&&_.to(c,"pageId",S.pageId);_.to(c,"hostId",S.hostId);S.jsMode!==void 0&&_.to(c,"jsmode",S.jsMode);S.rectangleRatio!==void 0&&_.to(c,"rectangleRatio",S.rectangleRatio);
S.options.length>0&&_.to(c,"opts",S.options.join(","));try{for(var U=_.A(["utm_source","utm_medium","utm_campaign","utm_content"]),a=U.next();!a.done;a=U.next()){var X=a.value;_.Eh(Q,X)&&_.to(c,X,_.Eh(Q,X))}var z,x=(z=S.hl)!=null?z:_.Eh(Q,"hl");x!==void 0&&_.to(c,"hl",x)}catch(I){if(!(I instanceof URIError))throw I;}S.colorScheme&&_.to(c,"theme",S.colorScheme);S.style&&_.to(c,"style",S.style);return c},AP0=function(S,c){S.mainChannel=_.cl({destination:S.JSC$17349_win,
iframe:c,origin:S.getTargetOrigin().toString(),channelName:"ow",onMessage:function(Q){Q=NaO(Q.data);if(c===S.iframe)switch(_.iR(Q,1)){case 1:S.eventTarget.dispatchEvent(new p$N);SYZ(S);break;case 2:S.eventTarget.dispatchEvent(new HjU(_.MJ(Q,4),_.MJ(Q,2),_.iR(Q,5),_.JB(Q,IvE,6)));break;case 0:var f;S.eventTarget.dispatchEvent(new D7G(_.MJ(Q,2),(f=_.iR(Q,3))!=null?f:0));break;case 3:S.eventTarget.dispatchEvent(new p$N(!0));SYZ(S,!1);break;case 4:S.eventTarget.dispatchEvent(new hpV)}}})},ywV=function(S,
c,Q){_.cl({destination:S.JSC$17349_win,
iframe:c,origin:_.Qr(_.cm(_.SV(new _.V7,S.scheme),S.domain),S.port).toString(),channelName:"owi",onMessage:function(f){c===S.iframe&&(Q!==void 0&&Q(),AP0(S,c),S.opened&&S.mainChannel.send(uqT($7G())),f.reply(),ywV(S,c))}})};
VPN.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?SA.prototype.preloadIframe.call(this,axp(this).toString()):this.iframeLoadPromise};
VPN.prototype.openPicker=function(S){var c=this;return _.O(function(Q){if(Q.nextAddress==1)return c.startUrl=S?S:c.options.includes("po")?"profile-picture/art":"profile-picture",_.F(Q,cPO(c,axp(c).toString()),2);if(c.mainChannel){var f=c.mainChannel,U=f.send;var a=$7G();a=_.bN(a,2,c.startUrl);U.call(f,uqT(a))}_.IN(Q)})};var XgE=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(XgE,_.Ga);_.J=XgE.prototype;_.J.getSize=function(){return Bf(this,1)};
_.J.setSize=function(S){return _.gr(this,1,S)};
_.J.getWidth=function(){return Bf(this,12)};
_.J.getHeight=function(){return Bf(this,13)};
_.J.setCenterCrop=function(S){return _.aj(this,20,S)};
_.J.getHtml=function(){return _.T1(this,4)};
_.J.getToken=function(){return _.bG(this,24)};
_.J.setToken=function(S){return _.bN(this,24,S)};
_.J.getBackgroundColor=function(){return Bf(this,87)};
_.J.hasBackgroundColor=function(){return _.CT(_.jp(this,87))!=null};
_.J.getStoryboardLevel=function(){return Bf(this,109)};var cR=function(S){this.JSC$17357_value_=void 0;this.childNodes_={};if(S){var c=_.kch(S);S=_.mL(S);for(var Q=0;Q<c.length;Q++)this.set(c[Q],S[Q])}};
cR.prototype.set=function(S,c){OWT(this,S,c,!1)};
cR.prototype.add=function(S,c){OWT(this,S,c,!0)};
var OWT=function(S,c,Q,f){for(var U=0;U<c.length;U++){var a=c.charAt(U);S.childNodes_[a]||(S.childNodes_[a]=new cR);S=S.childNodes_[a]}if(f&&S.JSC$17357_value_!==void 0)throw Error("mk`"+c);S.JSC$17357_value_=Q},zYU=function(S,c){for(var Q=0;Q<c.length;Q++)if(S=S.childNodes_[c.charAt(Q)],!S)return;
return S};
cR.prototype.get=function(S){return(S=zYU(this,S))?S.JSC$17357_value_:void 0};
cR.prototype.getValues=function(){var S=[];xJO(this,S);return S};
var xJO=function(S,c){S.JSC$17357_value_!==void 0&&c.push(S.JSC$17357_value_);for(var Q in S.childNodes_)xJO(S.childNodes_[Q],c)};
cR.prototype.getKeys=function(S){var c=[];if(S){for(var Q=this,f=0;f<S.length;f++){var U=S.charAt(f);if(!Q.childNodes_[U])return[];Q=Q.childNodes_[U]}FJZ(Q,S,c)}else FJZ(this,"",c);return c};
var FJZ=function(S,c,Q){S.JSC$17357_value_!==void 0&&Q.push(c);for(var f in S.childNodes_)FJZ(S.childNodes_[f],c+f,Q)};
_.J=cR.prototype;_.J.containsKey=function(S){return this.get(S)!==void 0};
_.J.containsValue=function(S){if(this.JSC$17357_value_===S)return!0;for(var c in this.childNodes_)if(this.childNodes_[c].containsValue(S))return!0;return!1};
_.J.clear=function(){this.childNodes_={};this.JSC$17357_value_=void 0};
_.J.remove=function(S){for(var c=this,Q=[],f=0;f<S.length;f++){var U=S.charAt(f);if(!c.childNodes_[U])throw Error("nk`"+S);Q.push([c,U]);c=c.childNodes_[U]}S=c.JSC$17357_value_;for(delete c.JSC$17357_value_;Q.length>0;)if(f=Q.pop(),c=f[0],f=f[1],c.childNodes_[f].isEmpty())delete c.childNodes_[f];else break;return S};
_.J.clone=function(){return new cR(this)};
_.J.getCount=function(){return y2O(this.getValues())};
_.J.isEmpty=function(){return this.JSC$17357_value_===void 0&&_.Cn.isEmpty(this.childNodes_)};var H$E=function(){if(!BrE){var S=BrE=new cR,c;for(c in Ix0)S.add(c,Ix0[c])}},BrE,QM=function(S,c){this.types=S;
this.setters=c},Ix0={a:new QM([3,
0],[function(S,c){_.aj(S,21,c)},
function(S,c){_.gr(S,56,c)}]),
al:new QM([3],[function(S,c){_.aj(S,74,c)}]),
b:new QM([3,0],[function(S,c){_.aj(S,23,c)},
function(S,c){_.gr(S,38,c)}]),
ba:new QM([0],[function(S,c){_.gr(S,85,c)}]),
bc:new QM([0],[function(S,c){_.gr(S,87,c)}]),
br:new QM([0],[function(S,c){_.gr(S,86,c)}]),
c:new QM([3,0],[function(S,c){_.aj(S,2,c)},
function(S,c){_.gr(S,39,c)}]),
cc:new QM([3],[function(S,c){_.aj(S,51,c)}]),
ci:new QM([3],[function(S,c){_.aj(S,32,c)}]),
ckm:new QM([3],[function(S,c){_.aj(S,104,c)}]),
cp:new QM([0],[function(S,c){_.gr(S,92,c)}]),
cr:new QM([3],[function(S,c){_.aj(S,108,c)}]),
cv:new QM([0],[function(S,c){_.gr(S,94,c)}]),
d:new QM([3],[function(S,c){_.aj(S,3,c)}]),
dc:new QM([5],[function(S,c){_.bN(S,99,c)}]),
df:new QM([3],[function(S,c){_.aj(S,80,c)}]),
dv:new QM([3],[function(S,c){_.aj(S,90,c)}]),
e:new QM([0],[function(S,c){_.gr(S,15,c)}]),
em:new QM([0],[function(S,c){_.gr(S,107,c)}]),
f:new QM([4],[function(S,c){_.bN(S,16,c)}]),
fg:new QM([3],[function(S,c){_.aj(S,34,c)}]),
fh:new QM([3],[function(S,c){_.aj(S,30,c)}]),
fm:new QM([3],[function(S,c){_.aj(S,84,c)}]),
fo:new QM([2],[function(S,c){_.AB(S,79,_.zO(c))}]),
ft:new QM([3],[function(S,c){_.aj(S,50,c)}]),
fv:new QM([3],[function(S,c){_.aj(S,31,c)}]),
g:new QM([3],[function(S,c){_.aj(S,14,c)}]),
gce:new QM([4],[function(S,c){_.bN(S,112,c)}]),
gd:new QM([3],[function(S,c){_.aj(S,83,c)}]),
gm:new QM([3],[function(S,c){_.aj(S,105,c)}]),
h:new QM([3,0],[function(S,c){_.aj(S,4,c)},
function(S,c){_.gr(S,13,c)}]),
i:new QM([3],[function(S,c){_.aj(S,22,c)}]),
ic:new QM([0],[function(S,c){_.gr(S,71,c)}]),
id:new QM([3],[function(S,c){_.aj(S,70,c)}]),
il:new QM([3],[function(S,c){_.aj(S,96,c)}]),
ip:new QM([3],[function(S,c){_.aj(S,54,c)}]),
iv:new QM([0],[function(S,c){_.YL(S,75,c)}]),
j:new QM([1],[function(S,c){c=c==null?c:Y80(c);_.AB(S,29,c)}]),
k:new QM([3,0],[function(S,c){_.aj(S,17,c)},
function(S,c){_.gr(S,42,c)}]),
l:new QM([0],[function(S,c){_.gr(S,44,c)}]),
lf:new QM([3],[function(S,c){_.aj(S,65,c)}]),
lo:new QM([3],[function(S,c){_.aj(S,97,c)}]),
m:new QM([0],[function(S,c){_.gr(S,63,c)}]),
md:new QM([3],[function(S,c){_.aj(S,91,c)}]),
mm:new QM([4],[function(S,c){_.bN(S,81,c)}]),
mo:new QM([3],[function(S,c){_.aj(S,73,c)}]),
mv:new QM([3],[function(S,c){_.aj(S,66,c)}]),
n:new QM([3],[function(S,c){S.setCenterCrop(c)}]),
nc:new QM([3],[function(S,c){_.aj(S,55,c)}]),
nd:new QM([3],[function(S,c){_.aj(S,53,c)}]),
ng:new QM([3],[function(S,c){_.aj(S,95,c)}]),
ngm:new QM([3],[function(S,c){_.aj(S,106,c)}]),
no:new QM([3],[function(S,c){_.aj(S,37,c)}]),
ns:new QM([3],[function(S,c){_.aj(S,40,c)}]),
nt0:new QM([4],[function(S,c){_.bN(S,36,c)}]),
ntm:new QM([3],[function(S,c){_.aj(S,114,c)}]),
nu:new QM([3],[function(S,c){_.aj(S,46,c)}]),
nw:new QM([3],[function(S,c){_.aj(S,48,c)}]),
o:new QM([1,3],[function(S,c){c=c==null?c:Y80(c);_.AB(S,7,c)},
function(S,c){_.aj(S,27,c)}]),
p:new QM([3,0],[function(S,c){_.aj(S,19,c)},
function(S,c){_.gr(S,43,c)}]),
pa:new QM([3],[function(S,c){_.aj(S,61,c)}]),
pc:new QM([0],[function(S,c){_.gr(S,88,c)}]),
pd:new QM([3],[function(S,c){_.aj(S,60,c)}]),
pf:new QM([3],[function(S,c){_.aj(S,67,c)}]),
pg:new QM([3],[function(S,c){_.aj(S,72,c)}]),
pi:new QM([2],[function(S,c){_.AB(S,76,_.zO(c))}]),
pp:new QM([3],[function(S,c){_.aj(S,52,c)}]),
pt:new QM([4],[function(S,c){_.bN(S,111,c)}]),
q:new QM([4],[function(S,c){_.bN(S,28,c)}]),
r:new QM([3,0],[function(S,c){_.aj(S,6,c)},
function(S,c){_.gr(S,26,c)}]),
ra:new QM([3],[function(S,c){_.aj(S,103,c)}]),
rf:new QM([3],[function(S,c){_.aj(S,100,c)}]),
rg:new QM([3],[function(S,c){_.aj(S,59,c)}]),
rh:new QM([3],[function(S,c){_.aj(S,49,c)}]),
rj:new QM([3],[function(S,c){_.aj(S,57,c)}]),
ro:new QM([2],[function(S,c){_.AB(S,78,_.zO(c))}]),
rp:new QM([3],[function(S,c){_.aj(S,58,c)}]),
rw:new QM([3],[function(S,c){_.aj(S,35,c)}]),
rwa:new QM([3],[function(S,c){_.aj(S,64,c)}]),
rwu:new QM([3],[function(S,c){_.aj(S,41,c)}]),
s:new QM([3,0],[function(S,c){_.aj(S,33,c)},
function(S,c){S.setSize(c)}]),
sb:new QM([0],[function(S,c){_.gr(S,110,c)}]),
sc:new QM([0],[function(S,c){_.gr(S,89,c)}]),
sg:new QM([3],[function(S,c){_.aj(S,82,c)}]),
sl:new QM([0],[function(S,c){_.gr(S,109,c)}]),
sm:new QM([3],[function(S,c){_.aj(S,93,c)}]),
t:new QM([4],[function(S,c){S.setToken(c)}]),
tm:new QM([3],[function(S,c){_.aj(S,113,c)}]),
u:new QM([3],[function(S,c){_.aj(S,18,c)}]),
ut:new QM([3],[function(S,c){_.aj(S,45,c)}]),
v:new QM([0],[function(S,c){_.gr(S,62,c)}]),
vb:new QM([0],[function(S,c){_.YL(S,68,c)}]),
vf:new QM([4],[function(S,c){_.bN(S,102,c)}]),
vl:new QM([0],[function(S,c){_.YL(S,69,c)}]),
vm:new QM([3],[function(S,c){_.aj(S,98,c)}]),
w:new QM([0],[function(S,c){_.gr(S,12,c)}]),
x:new QM([0],[function(S,c){_.gr(S,9,c)}]),
y:new QM([0],[function(S,c){_.gr(S,10,c)}]),
ya:new QM([2],[function(S,c){_.AB(S,77,_.zO(c))}]),
z:new QM([0],[function(S,c){_.gr(S,11,c)}])};
H$E.prototype.parse=function(S){var c=new XgE,Q=new XgE;if(S=="")S=!0;else{S=S.split("-");for(var f=!0,U=0;U<S.length;U++){var a=S[U];if(a.length==0)f=!1;else{var X=a,z=!1;var x=X;var I=X.charAt(0);I!=I.toLowerCase()&&(z=!0,x=X.charAt(0).toLowerCase()+X.substring(1));var n=BrE;for(I=1;I<=x.length;++I){var b=n,N=x.substring(0,I);if(N.length==0?b.isEmpty():!zYU(b,N))break}x=I==1?null:(x=n.get(x.substring(0,I-1)))?{option:X.substring(0,I-1),value:X.substring(I-1),signed:z,attributes:x}:null;if(x){X=
[];z=[];I=!1;for(n=0;n<x.attributes.types.length;n++){b=x.attributes.types[n];var l=x.value;N=U;if(x.signed&&b==1)for(var H=l.length;H<12&&N<S.length-1;)l+="-"+S[N+1],H=l.length,++N;else if(b==2)for(;N<S.length-1&&S[N+1].match(/^[\d\.]/);)l+="-"+S[N+1],++N;H=x.attributes.setters[n];l=nHE(this,b)(x.option,l,c,Q,H);if(l===null){I=!0;U=N;break}else X.push(b),z.push(l)}if(!I)for(x=0;x<z.length;x++)n=X[x],l=z[x],bW8(this,n)(a,l);f=f&&I}else f=!1}}S=f}return new NrE(c,Q,S)};
var fY=function(S,c,Q,f,U,a){U(Q,c);S=S.charAt(0);a=a(S==S.toUpperCase());U(f,a)};
_.J=H$E.prototype;_.J.parseAndSetIntOption_=function(S,c,Q,f,U){if(c=="")return 0;isFinite(c)&&(c=String(c));c=typeof c==="string"?/^\s*-?0x/i.test(c)?parseInt(c,16):parseInt(c,10):NaN;if(isNaN(c))return 1;fY(S,c,Q,f,U,Number);return null};
_.J.logIntParseError_=function(){};
_.J.parseAndSetFloatOption_=function(S,c,Q,f,U){if(c=="")return 0;var a=Number(c);c=a==0&&_.Xo(c)?NaN:a;if(isNaN(c))return 1;fY(S,c,Q,f,U,Number);return null};
_.J.logFloatParseError_=function(){};
_.J.parseAndSetBoolOption_=function(S,c,Q,f,U){if(c!="")return 2;fY(S,!0,Q,f,U,Boolean);return null};
_.J.logBoolParseError_=function(){};
_.J.parseAndSetStringOption_=function(S,c,Q,f,U){if(c=="")return 0;fY(S,c,Q,f,U,function(a){return a?"1":""});
return null};
_.J.logStringParseError_=function(){};
_.J.parseAndSetUint64Base64Option_=function(S,c,Q,f,U){if(c=="")return 0;fY(S,c,Q,f,U,function(a){return a?1:0});
return null};
var nHE=function(S,c){switch(c){case 0:return(0,_.H1)(S.parseAndSetIntOption_,S);case 2:return(0,_.H1)(S.parseAndSetFloatOption_,S);case 3:return(0,_.H1)(S.parseAndSetBoolOption_,S);case 4:return(0,_.H1)(S.parseAndSetStringOption_,S);case 1:return(0,_.H1)(S.parseAndSetUint64Base64Option_,S);default:return function(){}}},bW8=function(S,c){switch(c){case 0:return(0,_.H1)(S.logIntParseError_,S);
case 2:return(0,_.H1)(S.logFloatParseError_,S);case 3:return(0,_.H1)(S.logBoolParseError_,S);case 4:case 1:return(0,_.H1)(S.logStringParseError_,S);default:return function(){}}},NrE=function(S,c,Q){this.valueProto_=S;
this.signatureFlagProto_=c;this.JSC$17369_valid_=Q};
NrE.prototype.isValid=function(){return this.JSC$17369_valid_};var jh2=function(S){this.JSC$17370_parser_=null;this.JSC$17370_components_=[];this.JSC$17370_parsedOptions_=null;KJE(this,S)},$JU=function(S){S.JSC$17370_parser_==null&&(S.JSC$17370_parser_=new H$E);
return S.JSC$17370_parser_},KJE=function(S,c){S.JSC$17370_parsedOptions_=c?typeof c==="string"?$JU(S).parse(c):c:$JU(S).parse("")},Uk=function(S,c){return S==c?!1:!0};
_.J=jh2.prototype;_.J.JSC$17372_setCrop=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,_.T1(Q,2),_.T1(c.signatureFlagProto_,2))&&_.aj(Q,2,S);return this};
_.J.JSC$17372_setCircleCrop=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,F$(Q,51),F$(c.signatureFlagProto_,51))&&_.aj(Q,51,S);return this};
_.J.JSC$17372_setImageCrop=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,F$(Q,32),F$(c.signatureFlagProto_,32))&&_.aj(Q,32,S);return this};
_.J.JSC$17372_setHeight=function(S){var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,Q.getHeight(),c.signatureFlagProto_.getHeight())&&_.gr(Q,13,S);return this};
_.J.setCenterCrop=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,_.T1(Q,20),_.T1(c.signatureFlagProto_,20))&&Q.setCenterCrop(S);return this};
_.J.JSC$17372_setSmartCrop=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,_.T1(Q,19),_.T1(c.signatureFlagProto_,19))&&_.aj(Q,19,S);return this};
_.J.JSC$17372_setPad=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,F$(Q,60),F$(c.signatureFlagProto_,60))&&_.aj(Q,60,S);return this};
_.J.JSC$17372_setSmartCropUseFace=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,_.T1(Q,67),_.T1(c.signatureFlagProto_,67))&&_.aj(Q,67,S);return this};
_.J.JSC$17372_setSmartCropNoClip=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,_.T1(Q,52),_.T1(c.signatureFlagProto_,52))&&_.aj(Q,52,S);return this};
_.J.setSize=function(S){var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,Q.getSize(),c.signatureFlagProto_.getSize())&&Q.setSize(S);return this};
_.J.setToken=function(S){S=S||void 0;var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,Q.getToken(),c.signatureFlagProto_.getToken())&&Q.setToken(S);return this};
_.J.JSC$17372_setWidth=function(S){var c=this.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(S,Q.getWidth(),c.signatureFlagProto_.getWidth())&&_.gr(Q,12,S);return this};
_.J.clearOptions=function(){KJE(this,"");return this};
_.J.build=function(){this.JSC$17370_components_.length=0;var S=this.JSC$17370_parsedOptions_,c=S.valueProto_;S=S.signatureFlagProto_;Jf(this,"s",c.getSize(),S.getSize());Jf(this,"w",c.getWidth(),S.getWidth());af(this,"c",_.T1(c,2),_.T1(S,2));af(this,"d",_.T1(c,3),_.T1(S,3));Jf(this,"h",c.getHeight(),S.getHeight());af(this,"s",F$(c,33),F$(S,33));af(this,"h",c.getHtml(),S.getHtml());af(this,"p",_.T1(c,19),_.T1(S,19));af(this,"pp",_.T1(c,52),_.T1(S,52));af(this,"pf",_.T1(c,67),_.T1(S,67));af(this,"n",
_.T1(c,20),_.T1(S,20));Jf(this,"r",Bf(c,26),Bf(S,26));af(this,"r",_.T1(c,6),_.T1(S,6));af(this,"o",F$(c,27),F$(S,27));var Q=_.qJ(c,7,_.uR);Af(this,"o",Q,_.qJ(S,7,_.uR));Q=_.qJ(c,29,_.uR);Af(this,"j",Q,_.qJ(S,29,_.uR));Jf(this,"x",Bf(c,9),Bf(S,9));Jf(this,"y",Bf(c,10),Bf(S,10));Jf(this,"z",Bf(c,11),Bf(S,11));af(this,"g",_.T1(c,14),_.T1(S,14));Jf(this,"e",Bf(c,15),Bf(S,15));Af(this,"f",_.bG(c,16),_.bG(S,16));af(this,"k",F$(c,17),F$(S,17));af(this,"u",F$(c,18),!0);af(this,"ut",F$(c,45),!0);af(this,"i",
F$(c,22),!0);af(this,"a",F$(c,21),F$(S,21));af(this,"b",_.T1(c,23),_.T1(S,23));Jf(this,"b",Bf(c,38),Bf(S,38));Jf(this,"c",Bf(c,39),Bf(S,39),16,8);Af(this,"q",_.bG(c,28),_.bG(S,28));af(this,"fh",F$(c,30),F$(S,30));af(this,"fv",F$(c,31),F$(S,31));af(this,"fg",_.T1(c,34),_.T1(S,34));af(this,"ci",F$(c,32),F$(S,32));Af(this,"t",c.getToken(),S.getToken());Af(this,"nt0",_.bG(c,36),_.bG(S,36));af(this,"rw",_.T1(c,35),_.T1(S,35));af(this,"rwu",_.T1(c,41),_.T1(S,41));af(this,"rwa",_.T1(c,64),_.T1(S,64));af(this,
"nw",_.T1(c,48),_.T1(S,48));af(this,"rh",_.T1(c,49),_.T1(S,49));af(this,"no",_.T1(c,37),_.T1(S,37));af(this,"ns",F$(c,40),F$(S,40));Jf(this,"k",Bf(c,42),Bf(S,42));Jf(this,"p",Bf(c,43),Bf(S,43));Jf(this,"l",Bf(c,44),Bf(S,44));Jf(this,"v",Bf(c,62),Bf(S,62));af(this,"nu",F$(c,46),F$(S,46));af(this,"ft",F$(c,50),F$(S,50));af(this,"cc",F$(c,51),F$(S,51));af(this,"nd",F$(c,53),F$(S,53));af(this,"ip",F$(c,54),F$(S,54));af(this,"nc",F$(c,55),F$(S,55));Jf(this,"a",Bf(c,56),Bf(S,56));af(this,"rj",F$(c,57),
F$(S,57));af(this,"rp",F$(c,58),F$(S,58));af(this,"rg",F$(c,59),F$(S,59));af(this,"pd",F$(c,60),F$(S,60));af(this,"pa",F$(c,61),F$(S,61));Jf(this,"m",Bf(c,63),Bf(S,63));Jf(this,"vb",Is(c,68),Is(S,68));Jf(this,"vl",Is(c,69),Is(S,69));af(this,"lf",F$(c,65),F$(S,65));af(this,"mv",F$(c,66),F$(S,66));af(this,"id",F$(c,70),F$(S,70));Jf(this,"ic",Bf(c,71),!0);af(this,"pg",_.T1(c,72),_.T1(S,72));af(this,"mo",F$(c,73),F$(S,73));af(this,"al",F$(c,74),F$(S,74));Jf(this,"iv",Is(c,75),Is(S,75));Jf(this,"pi",ne(c,
76),ne(S,76));Jf(this,"ya",ne(c,77),ne(S,77));Jf(this,"ro",ne(c,78),ne(S,78));Jf(this,"fo",ne(c,79),ne(S,79));af(this,"df",F$(c,80),F$(S,80));Af(this,"mm",_.bG(c,81),_.bG(S,81));af(this,"sg",F$(c,82),F$(S,82));af(this,"gd",F$(c,83),F$(S,83));af(this,"fm",F$(c,84),F$(S,84));Jf(this,"ba",Bf(c,85),Bf(S,85));Jf(this,"br",Bf(c,86),Bf(S,86));Jf(this,"bc",c.getBackgroundColor(),S.getBackgroundColor(),16,8);Jf(this,"pc",Bf(c,88),Bf(S,88),16,8);Jf(this,"sc",Bf(c,89),Bf(S,89),16,8);af(this,"dv",F$(c,90),F$(S,
90));af(this,"md",F$(c,91),F$(S,91));Jf(this,"cp",Bf(c,92),Bf(S,92));af(this,"sm",F$(c,93),F$(S,93));Jf(this,"cv",Bf(c,94),Bf(S,94));af(this,"ng",F$(c,95),F$(S,95));af(this,"il",F$(c,96),F$(S,96));af(this,"lo",F$(c,97),F$(S,97));af(this,"vm",F$(c,98),F$(S,98));Af(this,"dc",_.bG(c,99),_.bG(S,99));af(this,"rf",F$(c,100),F$(S,100));Af(this,"vf",_.bG(c,102),_.bG(S,102));af(this,"ra",_.T1(c,103),_.T1(S,103));af(this,"ckm",F$(c,104),F$(S,104));af(this,"gm",F$(c,105),F$(S,105));af(this,"ngm",F$(c,106),F$(S,
106));Jf(this,"em",Bf(c,107),Bf(S,107));af(this,"cr",F$(c,108),F$(S,108));Jf(this,"sl",c.getStoryboardLevel(),S.getStoryboardLevel());Jf(this,"sb",Bf(c,110),Bf(S,110));Af(this,"pt",_.bG(c,111),_.bG(S,111));Af(this,"gce",_.bG(c,112),_.bG(S,112));af(this,"tm",F$(c,113),F$(S,113));af(this,"ntm",F$(c,114),F$(S,114));return this.JSC$17370_components_.join("-")};
var Jf=function(S,c,Q,f,U,a){if(Q!=null){var X=U==void 0||U!=10&&U!=16?10:U;Q=Number(Q).toString(X);U=new rl0;U.append(X==16?"0x":"");X=U.append;a==void 0?a="":(a-=Q.length,a=a<=0?"":(0,_.rCp)("0",a));X.call(U,a);U.append(Q);uaN(S,c,U.toString(),!!Number(f))}},af=function(S,c,Q,f){Q&&uaN(S,c,"",!!f)},Af=function(S,c,Q,f){Q&&uaN(S,c,String(Q),!!Number(f))},uaN=function(S,c,Q,f){f&&(c=c.charAt(0).toUpperCase()+c.substring(1));
S.JSC$17370_components_.push(c+Q)};_.Xa(lU,jh2);_.J=lU.prototype;_.J.JSC$17372_setCrop=function(S){S&&Xs(this);return lU.superClass_.JSC$17372_setCrop.call(this,S)};
_.J.JSC$17372_setHeight=function(S){S=S==null||S<0?void 0:S;S!=null&&this.setSize();return lU.superClass_.JSC$17372_setHeight.call(this,S)};
_.J.JSC$17372_setImageCrop=function(S){S&&Xs(this);return lU.superClass_.JSC$17372_setImageCrop.call(this,S)};
_.J.JSC$17372_setCircleCrop=function(S){S&&Xs(this);return lU.superClass_.JSC$17372_setCircleCrop.call(this,S)};
_.J.setSize=function(S){_.c_(S)&&(S=Math.max(S.width,S.height));S=S==null||S<0?void 0:S;S!=null&&(this.JSC$17372_setWidth(),this.JSC$17372_setHeight());return lU.superClass_.setSize.call(this,S)};
_.J.JSC$17372_setSmartCrop=function(S){S&&Xs(this);return lU.superClass_.JSC$17372_setSmartCrop.call(this,S)};
_.J.JSC$17372_setSmartCropNoClip=function(S){S&&Xs(this);return lU.superClass_.JSC$17372_setSmartCropNoClip.call(this,S)};
_.J.JSC$17372_setSmartCropUseFace=function(S){S&&Xs(this);return lU.superClass_.JSC$17372_setSmartCropUseFace.call(this,S)};
_.J.setCenterCrop=function(S){S&&Xs(this);return lU.superClass_.setCenterCrop.call(this,S)};
_.J.JSC$17372_setPad=function(S){S&&Xs(this);return lU.superClass_.JSC$17372_setPad.call(this,S)};
_.J.JSC$17372_setWidth=function(S){S=S==null||S<0?void 0:S;S!=null&&this.setSize();return lU.superClass_.JSC$17372_setWidth.call(this,S)};
var jr0=function(S){S.clearOptions();var c=S.JSC$17370_parsedOptions_,Q=c.valueProto_;Uk(!0,_.T1(Q,3),_.T1(c.signatureFlagProto_,3))&&_.aj(Q,3,!0);return S},Xs=function(S){S.setCenterCrop();
S.JSC$17372_setCircleCrop();S.JSC$17372_setCrop();S.JSC$17372_setImageCrop();S.JSC$17372_setPad();S.JSC$17372_setSmartCrop();S.JSC$17372_setSmartCropNoClip();S.JSC$17372_setSmartCropUseFace()};
lU.prototype.build=function(){var S=this.JSC$17370_parsedOptions_.valueProto_;F$(S,18)||F$(S,45)?S.getSize()||this.setSize(0):(S=this.JSC$17370_parsedOptions_.valueProto_,S.getSize()||S.getWidth()||S.getHeight()||(this.setSize(),this.JSC$17372_setHeight(),this.JSC$17372_setWidth(),Xs(this)));return lU.superClass_.build.call(this)};var lxp=/^[^\/]*\/\//,Ok=function(S,c){c=c===void 0?!1:c;this.original_=S;this.originalPrefix_="";(S=this.original_.match(lxp))&&S[0]?(this.originalPrefix_=S[0],S=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):S="http://"+this.original_;this.uri_=_.L9(S,!0);this.isFreeformUrl_=c;this.JSC$17376_valid_=!0;this.obfuscated_=!1},BkZ=function(S,c){S.JSC$17378_pathPrefix_=S.JSC$17378_pathPrefix_?S.JSC$17378_pathPrefix_+("/"+c):c},zx=function(S){if(S.JSC$17378_components_==
void 0){var c=S.uri_.getPath().substring(1);
S.JSC$17378_pathPrefix_=null;if(S.isFreeformUrl_){S.JSC$17378_components_=[];if((c.match(/=/g)||[]).length>1)return S.JSC$17376_valid_=!1,S.JSC$17378_components_;var Q=c.indexOf("=");Q!=-1?(S.JSC$17378_components_.push(c.substr(0,Q)),S.JSC$17378_components_.push(c.substr(Q+1))):S.JSC$17378_components_.push(c);return S.JSC$17378_components_}S.JSC$17378_components_=c.split("/");c=S.JSC$17378_components_.length;c>2&&S.JSC$17378_components_[0]=="u"&&(BkZ(S,S.JSC$17378_components_[0]+"/"+S.JSC$17378_components_[1]),
S.JSC$17378_components_.shift(),S.JSC$17378_components_.shift(),c-=2);if(c==0||c==4||c>7)return S.JSC$17376_valid_=!1,S.JSC$17378_components_;if(c==2)BkZ(S,S.JSC$17378_components_[0]);else if(S.JSC$17378_components_[0]=="image")BkZ(S,S.JSC$17378_components_[0]);else if(c==7||c==3)return S.JSC$17376_valid_=!1,S.JSC$17378_components_;if(c<=3){S.obfuscated_=!0;c==3&&(BkZ(S,S.JSC$17378_components_[1]),S.JSC$17378_components_.shift(),--c);--c;Q=S.JSC$17378_components_[c];var f=Q.indexOf("=");f!=-1&&(S.JSC$17378_components_[c]=
Q.substr(0,f),S.JSC$17378_components_.push(Q.substr(f+1)))}}return S.JSC$17378_components_};
Ok.prototype.isValid=function(){zx(this);return this.JSC$17376_valid_};
Ok.prototype.isObfuscated=function(){zx(this);return this.obfuscated_};
var IAE=function(S){zx(S);return S.isFreeformUrl_},xP=function(S){zx(S);
S.JSC$17378_pathPrefix_==void 0&&(S.JSC$17378_pathPrefix_=null);return S.JSC$17378_pathPrefix_},nmE=function(S){switch(zx(S).length){case 7:return!0;
case 6:return xP(S)==null;case 5:return!1;case 3:return!0;case 2:return xP(S)==null;case 1:return!1;default:return!1}},Fs=function(S,c){if(IAE(S))a:{switch(c){case 7:c=0;
break;case 4:if(!nmE(S)){S=null;break a}c=1;break;default:S=null;break a}S=zx(S)[c]}else if(S.isObfuscated())a:{var Q=xP(S)!=null?1:0;switch(c){case 6:c=Q;break;case 4:if(!nmE(S)){S=null;break a}c=1+Q;break;default:S=null;break a}S=zx(S)[c]}else a:{Q=xP(S)!=null?1:0;switch(c){case 0:c=Q;break;case 1:c=1+Q;break;case 2:c=2+Q;break;case 3:c=3+Q;break;case 4:if(!nmE(S)){S=null;break a}c=4+Q;break;case 5:c=nmE(S)?1:0;c=4+Q+c;break;default:S=null;break a}S=zx(S)[c]}return S};
Ok.prototype.getOptions=function(){this.options_==void 0&&(this.options_=Fs(this,4));return this.options_};var COp=function(){};
COp.prototype.parse=function(S,c){return new lmN(S,c===void 0?!1:c)};
var lmN=function(S,c){Ok.call(this,S,c===void 0?!1:c)};
_.C(lmN,Ok);_.Xa(Y7,lU);var YP2;Y7.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
Y7.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var S=Y7.superClass_.build.call(this),c=[];xP(this.parsedImageUrl_)!=null&&c.push(xP(this.parsedImageUrl_));var Q=IAE(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var f=this.parsedImageUrl_;f.obfuscatedData_==void 0&&(f.obfuscatedData_=Fs(f,6));c.push(f.obfuscatedData_+(S?"="+S:""))}else if(Q){f=c.push;var U=this.parsedImageUrl_;U.freeformUrlPath_===void 0&&(U.freeformUrlPath_=Fs(U,
7));f.call(c,U.freeformUrlPath_);S&&c.push(S)}else f=c.push,U=this.parsedImageUrl_,U.obfuscatedGaiaId_==void 0&&(U.obfuscatedGaiaId_=Fs(U,0)),f.call(c,U.obfuscatedGaiaId_),f=c.push,U=this.parsedImageUrl_,U.photoId_==void 0&&(U.photoId_=Fs(U,1)),f.call(c,U.photoId_),f=c.push,U=this.parsedImageUrl_,U.imageVersion_==void 0&&(U.imageVersion_=Fs(U,2)),f.call(c,U.imageVersion_),f=c.push,U=this.parsedImageUrl_,U.signature_==void 0&&(U.signature_=Fs(U,3)),f.call(c,U.signature_),S&&c.push(S),S=c.push,f=this.parsedImageUrl_,
f.filename_==void 0&&(f.filename_=Fs(f,5)),S.call(c,f.filename_);c=Q?c.join("="):c.join("/");c=_.L9(this.protocolPrefix_+this.JSC$17384_domain_+"/"+c+(this.JSC$17384_query_?"?"+this.JSC$17384_query_:"")).toString();c.startsWith("%3a//")&&(c=c.replace("%3a//","://"));return c};var bfE=_.oK(["viewBox"]),NkV=_.oK(["width"]),KtE=_.oK(["height"]),$I2=_.oK(["fill"]),uzE=_.oK(["id"]),jz8=_.oK(["x"]),lAT=_.oK(["y"]);Dmg.prototype.getLength=function(){return this.parsedData.length};
Dmg.prototype.write=function(S){for(var c=0,Q=this.parsedData.length;c<Q;c++)S.put(this.parsedData[c],8)};
var MRT=function(S,c){var Q=new Dmg(c);S.dataList.push(Q);Q=S.errorCorrectLevel;var f=1,U=encodeURI(c).toString().replace(/%[0-9a-fA-F]{2}/g,"a");c=U.length+(U.length!=c?3:0);U=0;for(var a=BR.length;U<=a;U++){var X=0;switch(Q){case 1:X=BR[U][0];break;case 0:X=BR[U][1];break;case 3:X=BR[U][2];break;case 2:X=BR[U][3]}if(c<=X)break;else f++}if(f>BR.length)throw Error("wk");S.typeNumber=f;S.dataCache=null};
pnE.prototype.isDark=function(S,c){if(S<0||this.moduleCount<=S||c<0||this.moduleCount<=c)throw Error("ok`"+S+"`"+c);return this.modules[S][c]};
for(var i$V=function(S,c,Q){S.moduleCount=S.typeNumber*4+17;S.modules=Array(S.moduleCount);for(var f=0;f<S.moduleCount;f++){S.modules[f]=Array(S.moduleCount);for(var U=0;U<S.moduleCount;U++)S.modules[f][U]=null}Yb0(S,0,0);Yb0(S,S.moduleCount-7,0);Yb0(S,0,S.moduleCount-7);f=Cdp[S.typeNumber-1];for(U=0;U<f.length;U++)for(var a=0;a<f.length;a++){var X=f[U],z=f[a];if(S.modules[X][z]==null)for(var x=-2;x<=2;x++)for(var I=-2;I<=2;I++)S.modules[X+x][z+I]=x==-2||x==2||I==-2||I==2||x==0&&I==0?!0:!1}for(f=
8;f<S.moduleCount-8;f++)S.modules[f][6]==null&&(S.modules[f][6]=f%2==0);for(f=8;f<S.moduleCount-8;f++)S.modules[6][f]==null&&(S.modules[6][f]=f%2==0);f=S.errorCorrectLevel<<3|Q;for(U=f<<10;If(U)-If(1335)>=0;)U^=1335<<If(U)-If(1335);f=(f<<10|U)^21522;for(U=0;U<15;U++)a=!c&&(f>>U&1)==1,U<6?S.modules[U][8]=a:U<8?S.modules[U+1][8]=a:S.modules[S.moduleCount-15+U][8]=a;for(U=0;U<15;U++)a=!c&&(f>>U&1)==1,U<8?S.modules[8][S.moduleCount-U-1]=a:U<9?S.modules[8][15-U-1+1]=a:S.modules[8][15-U-1]=a;S.modules[S.moduleCount-
8][8]=!c;if(S.typeNumber>=7){f=S.typeNumber;for(U=f<<12;If(U)-If(7973)>=0;)U^=7973<<If(U)-If(7973);f=f<<12|U;for(U=0;U<18;U++)a=!c&&(f>>U&1)==1,S.modules[Math.floor(U/3)][U%3+S.moduleCount-8-3]=a;for(U=0;U<18;U++)a=!c&&(f>>U&1)==1,S.modules[U%3+S.moduleCount-8-3][Math.floor(U/3)]=a}if(S.dataCache==null){U=S.typeNumber;a=S.dataList;c=S.errorCorrectLevel;f=HfE(U,c);if(f==void 0)throw Error("vk`"+U+"`"+c);X=f.length/3;c=[];for(z=0;z<X;z++){x=f[z*3];I=f[z*3+1];for(var n=f[z*3+2],b=0;b<x;b++)c.push(new hbp(I,
n))}f=new qPG;for(X=0;X<a.length;X++)z=a[X],f.put(z.mode,4),f.put(z.getLength(),DIB(z.mode,U)),z.write(f);for(X=U=0;X<c.length;X++)U+=c[X].dataCount;if(f.length>U*8)throw Error("pk`"+f.length+"`"+U*8);for(f.length+4<=U*8&&f.put(0,4);f.length%8!=0;)pmE(f,!1);for(;!(f.length>=U*8);){f.put(236,8);if(f.length>=U*8)break;f.put(17,8)}a=U=I=0;X=Array(c.length);z=Array(c.length);for(x=0;x<c.length;x++){b=c[x].dataCount;var N=c[x].totalCount-b;U=Math.max(U,b);a=Math.max(a,N);X[x]=Array(b);for(n=0;n<X[x].length;n++)X[x][n]=
255&f.buffer[n+I];I+=b;n=N;b=new Cq([1],0);for(N=0;N<n;N++)b=b.multiply(new Cq([1,h70(N)],0));n=b;b=(new Cq(X[x],n.getLength()-1)).mod(n);z[x]=Array(n.getLength()-1);for(n=0;n<z[x].length;n++)N=n+b.getLength()-z[x].length,z[x][n]=N>=0?b.get(N):0}for(n=f=0;n<c.length;n++)f+=c[n].totalCount;f=Array(f);for(n=I=0;n<U;n++)for(x=0;x<c.length;x++)n<X[x].length&&(f[I++]=X[x][n]);for(n=0;n<a;n++)for(x=0;x<c.length;x++)n<z[x].length&&(f[I++]=z[x][n]);S.dataCache=f}c=S.dataCache;f=-1;U=S.moduleCount-1;a=7;X=
0;for(z=S.moduleCount-1;z>0;z-=2)for(z==6&&z--;;){for(x=0;x<2;x++)S.modules[U][z-x]==null&&(I=!1,X<c.length&&(I=(c[X]>>>a&1)==1),qbg(Q,U,z-x)&&(I=!I),S.modules[U][z-x]=I,a--,a==-1&&(X++,a=7));U+=f;if(U<0||S.moduleCount<=U){U-=f;f=-f;break}}},Yb0=function(S,c,Q){for(var f=-1;f<=7;f++)if(!(c+f<=-1||S.moduleCount<=c+f))for(var U=-1;U<=7;U++)Q+U<=-1||S.moduleCount<=Q+U||(S.modules[c+f][Q+U]=0<=f&&f<=6&&(U==0||U==6)||0<=U&&U<=6&&(f==0||f==6)||2<=f&&f<=4&&2<=U&&U<=4?!0:!1)},Z$U=function(S){for(var c=0,
Q=0,f=0;f<8;f++){i$V(S,!0,f);
var U=S;for(var a=U.moduleCount,X=0,z=0;z<a;z++)for(var x=0;x<a;x++){for(var I=0,n=U.isDark(z,x),b=-1;b<=1;b++)if(!(z+b<0||a<=z+b))for(var N=-1;N<=1;N++)x+N<0||a<=x+N||(b!=0||N!=0)&&n==U.isDark(z+b,x+N)&&I++;I>5&&(X+=3+I-5)}for(z=0;z<a-1;z++)for(x=0;x<a-1;x++)if(I=0,U.isDark(z,x)&&I++,U.isDark(z+1,x)&&I++,U.isDark(z,x+1)&&I++,U.isDark(z+1,x+1)&&I++,I==0||I==4)X+=3;for(z=0;z<a;z++)for(x=0;x<a-6;x++)U.isDark(z,x)&&!U.isDark(z,x+1)&&U.isDark(z,x+2)&&U.isDark(z,x+3)&&U.isDark(z,x+4)&&!U.isDark(z,x+5)&&
U.isDark(z,x+6)&&(X+=40);for(x=0;x<a;x++)for(z=0;z<a-6;z++)U.isDark(z,x)&&!U.isDark(z+1,x)&&U.isDark(z+2,x)&&U.isDark(z+3,x)&&U.isDark(z+4,x)&&!U.isDark(z+5,x)&&U.isDark(z+6,x)&&(X+=40);for(x=I=0;x<a;x++)for(z=0;z<a;z++)U.isDark(z,x)&&I++;U=X+=Math.abs(100*I/a/a-50)/5*10;if(f==0||c>U)c=U,Q=f}return Q},Cdp=[[],
[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]],If=function(S){for(var c=0;S!=0;)c++,S>>>=1;return c},qbg=function(S,c,Q){switch(S){case 0:return(c+Q)%2==0;
case 1:return c%2==0;case 2:return Q%3==0;case 3:return(c+Q)%3==0;case 4:return(Math.floor(c/2)+Math.floor(Q/3))%2==0;case 5:return c*Q%2+c*Q%3==0;case 6:return(c*Q%2+c*Q%3)%2==0;case 7:return(c*Q%3+(c+Q)%2)%2==0;default:throw Error("qk`"+S);}},DIB=function(S,c){if(1<=c&&c<10)switch(S){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("rk`"+S);}else if(c<27)switch(S){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("rk`"+S);}else if(c<41)switch(S){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("rk`"+S);}else throw Error("sk`"+c);},nY=function(S){if(S<1)throw Error("tk`"+S);
return TkZ[S]},h70=function(S){for(;S<0;)S+=255;
for(;S>=256;)S-=255;return b0[S]},b0=Array(256),TkZ=Array(256),wm1=0;wm1<8;wm1++)b0[wm1]=1<<wm1;
for(var N8=8;N8<256;N8++)b0[N8]=b0[N8-4]^b0[N8-5]^b0[N8-6]^b0[N8-8];for(var szV=0;szV<255;szV++)TkZ[b0[szV]]=szV;Cq.prototype.get=function(S){return this.num[S]};
Cq.prototype.getLength=function(){return this.num.length};
Cq.prototype.multiply=function(S){for(var c=Array(this.getLength()+S.getLength()-1),Q=0;Q<this.getLength();Q++)for(var f=0;f<S.getLength();f++)c[Q+f]^=h70(nY(this.get(Q))+nY(S.get(f)));return new Cq(c,0)};
Cq.prototype.mod=function(S){if(this.getLength()-S.getLength()<0)return this;for(var c=nY(this.get(0))-nY(S.get(0)),Q=Array(this.getLength()),f=0;f<this.getLength();f++)Q[f]=this.get(f);for(f=0;f<S.getLength();f++)Q[f]^=h70(nY(S.get(f))+c);return(new Cq(Q,0)).mod(S)};
var MVE=[[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]],HfE=function(S,c){switch(c){case 1:return MVE[(S-1)*4];case 0:return MVE[(S-1)*4+1];case 3:return MVE[(S-1)*4+2];case 2:return MVE[(S-1)*4+3]}};
qPG.prototype.get=function(S){return(this.buffer[Math.floor(S/8)]>>>7-S%8&1)==1};
qPG.prototype.put=function(S,c){for(var Q=0;Q<c;Q++)pmE(this,(S>>>c-Q-1&1)==1)};
var pmE=function(S,c){var Q=Math.floor(S.length/8);S.buffer.length<=Q&&S.buffer.push(0);c&&(S.buffer[Q]|=128>>>S.length%8);S.length++},BR=[[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]],sh8=function(){var S=function(c,Q){this.JSC$17404__el=c;this.JSC$17404__htOption=Q};
S.prototype.draw=function(c){function Q(n,b){n=document.createElementNS("http://www.w3.org/2000/svg",n);for(var N in b)b.hasOwnProperty(N)&&(N==="href"?_.M6N(n,b[N]):_.r_([_.SC(bfE),_.SC(NkV),_.SC(KtE),_.SC($I2),_.SC(uzE),_.SC(jz8),_.SC(lAT)],n,N,b[N]));return n}
var f=this.JSC$17404__htOption,U=this.JSC$17404__el,a=c.moduleCount;this.clear();var X=Q("svg",{viewBox:"0 0 "+String(a)+" "+String(a),width:"100%",height:"100%",fill:f.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});U.appendChild(X);X.appendChild(Q("rect",{fill:f.colorLight,width:"100%",height:"100%"}));X.appendChild(Q("rect",{fill:f.colorDark,width:"1",height:"1",id:"template"}));for(var z=0;z<a;z++)for(var x=0;x<a;x++)if(c.isDark(z,x)){var I=Q("use",{x:String(z),y:String(x),href:"#template"});
X.appendChild(I)}};
S.prototype.clear=function(){for(;this.JSC$17404__el.hasChildNodes();)this.JSC$17404__el.removeChild(this.JSC$17404__el.lastChild)};
return S}(),wn0=document.documentElement.tagName.toLowerCase()==="svg"?sh8:typeof CanvasRenderingContext2D!="undefined"?function(){var S=function(c,Q){this._bIsPainted=!1;
TKZ();this.JSC$17404__htOption=Q;this._elCanvas=document.createElement("canvas");this._elCanvas.width=Q.width;this._elCanvas.height=Q.height;c.appendChild(this._elCanvas);this.JSC$17404__el=c;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$17404__el.appendChild(this._elImage);this._bSupportDataURI=null};
S.prototype._onMakeImage=function(){var c=this._elCanvas.toDataURL("image/png");this._elImage.src=c;this._elImage.style.display="block";this._elCanvas.style.display="none"};
S.prototype._safeSetDataURI=function(c,Q){var f=this;f._fFail=Q;f._fSuccess=c;f._bSupportDataURI===null?(c=_.Nf("IMG"),Q=function(){f._bSupportDataURI=!1;f._fFail&&f._fFail.call(f)},c.onabort=Q,c.onerror=Q,c.onload=function(){f._bSupportDataURI=!0;
f._fSuccess&&f._fSuccess.call(f)},c.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):f._bSupportDataURI===!0&&f._fSuccess?f._fSuccess.call(f):f._bSupportDataURI===!1&&f._fFail&&f._fFail.call(f)};
S.prototype.draw=function(c){var Q=this._oContext,f=this.JSC$17404__htOption,U=c.moduleCount,a=f.width/U,X=f.height/U,z=Math.round(a),x=Math.round(X);this._elImage.style.display="none";this.clear();for(var I=0;I<U;I++)for(var n=0;n<U;n++){var b=c.isDark(I,n),N=n*a,l=I*X;Q.strokeStyle=b?f.colorDark:f.colorLight;Q.lineWidth=1;Q.fillStyle=b?f.colorDark:f.colorLight;Q.fillRect(N,l,a,X);Q.strokeRect(Math.floor(N)+.5,Math.floor(l)+.5,z,x);Q.strokeRect(Math.ceil(N)-.5,Math.ceil(l)-.5,z,x)}this._bIsPainted=
!0};
S.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
S.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
S.prototype.round=function(c){return c?Math.floor(c*1E3)/1E3:c};
return S}():function(){var S=function(c,Q){this.JSC$17404__el=c;
this.JSC$17404__htOption=Q};
S.prototype.draw=function(c){for(var Q=this.JSC$17404__htOption,f=this.JSC$17404__el,U=c.moduleCount,a=Math.floor(Q.width/U),X=Math.floor(Q.height/U),z=['<table style="border:0;border-collapse:collapse;">'],x=0;x<U;x++){z.push("<tr>");for(var I=0;I<U;I++)z.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+a+"px;height:"+X+"px;background-color:"+(c.isDark(x,I)?Q.colorDark:Q.colorLight)+';"></td>');z.push("</tr>")}z.push("</table>");c=z.join("");c=_.wcp(_.Mxe,c);_.kD(f,c);
c=f.childNodes[0];U=(Q.width-c.offsetWidth)/2;a=(Q.height-c.offsetHeight)/2;U>0&&a>0&&(c.style.margin=a+"px "+U+"px")};
S.prototype.clear=function(){this.JSC$17404__el.textContent=""};
return S}();
GLT.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17407__android||this.JSC$17407__android>=3)&&this._oDrawing.makeImage()};
GLT.prototype.clear=function(){this._oDrawing.clear()};
_.QY.QRCode=GLT;var ifg={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var KY=function(){};
KY.prototype.stringify=function(S){return _.QY.JSON.stringify(S,void 0)};
KY.prototype.parse=function(S){return _.QY.JSON.parse(S,void 0)};var ZfZ=function(){_.K0.call(this,"z")};
_.Xa(ZfZ,_.K0);var GrB=function(){_.K0.call(this,"y")};
_.Xa(GrB,_.K0);var Wt1=null,gm0=function(){return Wt1=Wt1||new _.Y5},e7O=function(S){_.K0.call(this,"serverreachability",S)};
_.Xa(e7O,_.K0);var $P=function(S){var c=gm0();c.dispatchEvent(new e7O(c,S))},kr8=function(S){_.K0.call(this,"statevent",S)};
_.Xa(kr8,_.K0);var u0=function(S){var c=gm0();c.dispatchEvent(new kr8(c,S))},rm2=function(S,c,Q,f){_.K0.call(this,"timingevent",S);
this.size=c;this.rtt=Q;this.retries=f};
_.Xa(rm2,_.K0);var dIE=function(S,c,Q){var f=gm0();f.dispatchEvent(new rm2(f,S,c,Q))},jA=function(S,c){if(typeof S!=="function")throw Error("xk");
return _.QY.setTimeout(function(){S()},c)};var l0=function(){this.redactEnabled_=!0};
l0.prototype.disableRedact=function(){this.redactEnabled_=!1};
var vmU=function(S,c,Q,f,U,a){S.info(function(){if(S.redactEnabled_)if(a){var X="";for(var z=a.split("&"),x=0;x<z.length;x++){var I=z[x].split("=");if(I.length>1){var n=I[0];I=I[1];var b=n.split("_");X=b.length>=2&&b[1]=="type"?X+(n+"="+I+"&"):X+(n+"=redacted&")}}}else X=null;else X=a;return"XMLHTTP REQ ("+f+") [attempt "+U+"]: "+c+"\n"+Q+"\n"+X})},Pd8=function(S,c,Q,f,U,a,X){S.info(function(){return"XMLHTTP RESP ("+f+") [ attempt "+U+"]: "+c+"\n"+Q+"\n"+a+" "+X})},YP=function(S,c,Q,f){S.info(function(){return"XMLHTTP TEXT ("+
c+"): "+LtZ(S,Q)+(f?" "+f:"")})},EmE=function(S,c){S.info(function(){return"TIMEOUT: "+c})};
l0.prototype.debug=function(){};
l0.prototype.info=function(){};
l0.prototype.warning=function(){};
var LtZ=function(S,c){if(!S.redactEnabled_)return c;if(!c)return null;try{var Q=JSON.parse(c);if(Q)for(var f=0;f<Q.length;f++)if(Array.isArray(Q[f])){var U=Q[f];if(!(U.length<2)){var a=U[1];if(Array.isArray(a)&&!(a.length<1)){var X=a[0];if(X!="noop"&&X!="stop"&&X!="close")for(var z=1;z<a.length;z++)a[z]=""}}}return(0,_.TN)(Q)}catch(x){return S.debug("Exception parsing expected JS array - probably was not JS"),c}};var CY=function(S,c,Q,f,U){this.JSC$17429_channel_=S;this.JSC$17429_channelDebug_=c;this.sid_=Q;this.JSC$17429_rid_=f;this.JSC$17429_retryId_=U||1;this.JSC$17429_eventHandler_=new _.fP(this);this.timeout_=45E3;this.JSC$17429_extraHeaders_=null;this.JSC$17429_successful_=!1;this.JSC$17429_postData_=this.JSC$17429_requestUri_=this.JSC$17429_baseUri_=this.JSC$17429_type_=this.JSC$17429_requestStartTime_=this.JSC$17429_watchDogTimeoutTime_=this.JSC$17429_watchDogTimerId_=null;this.JSC$17429_pendingMessages_=
[];this.JSC$17429_xmlHttp_=null;this.JSC$17429_xmlHttpChunkStart_=0;this.JSC$17429_lastError_=this.JSC$17429_verb_=null;this.JSC$17429_lastStatusCode_=-1;this.JSC$17429_cancelled_=!1;this.JSC$17429_readyStateChangeThrottleMs_=0;this.JSC$17429_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new tV2},tV2=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},VVE=function(S,c){switch(S){case 0:return"Non-200 return code ("+c+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},R7N={},ymG={};
CY.prototype.setTimeout=function(S){this.timeout_=S};
var mIO=function(S,c,Q){S.JSC$17429_type_=1;S.JSC$17429_baseUri_=_.Ob(c.clone());S.JSC$17429_postData_=Q;S.decodeChunks_=!0;om2(S,null)},om2=function(S,c){S.JSC$17429_requestStartTime_=Date.now();
SEZ(S);S.JSC$17429_requestUri_=S.JSC$17429_baseUri_.clone();as(S.JSC$17429_requestUri_,"t",S.JSC$17429_retryId_);S.JSC$17429_xmlHttpChunkStart_=0;var Q=S.JSC$17429_channel_.JSC$17448_supportsCrossDomainXhrs_;S.fetchResponseState_=new tV2;S.JSC$17429_xmlHttp_=c1g(S.JSC$17429_channel_,Q?c:null,!S.JSC$17429_postData_);S.JSC$17429_readyStateChangeThrottleMs_>0&&(S.JSC$17429_readyStateChangeThrottle_=new _.S0((0,_.H1)(S.JSC$17433_xmlHttpHandler_,S,S.JSC$17429_xmlHttp_),S.JSC$17429_readyStateChangeThrottleMs_));
S.JSC$17429_eventHandler_.listen(S.JSC$17429_xmlHttp_,"readystatechange",S.JSC$17433_readyStateChangeHandler_);c=S.JSC$17429_extraHeaders_?_.Cn.clone(S.JSC$17429_extraHeaders_):{};S.JSC$17429_postData_?(S.JSC$17429_verb_||(S.JSC$17429_verb_="POST"),c["Content-Type"]="application/x-www-form-urlencoded",S.JSC$17429_xmlHttp_.send(S.JSC$17429_requestUri_,S.JSC$17429_verb_,S.JSC$17429_postData_,c)):(S.JSC$17429_verb_="GET",S.JSC$17429_xmlHttp_.send(S.JSC$17429_requestUri_,S.JSC$17429_verb_,null,c));$P(1);
vmU(S.JSC$17429_channelDebug_,S.JSC$17429_verb_,S.JSC$17429_requestUri_,S.JSC$17429_rid_,S.JSC$17429_retryId_,S.JSC$17429_postData_)};
CY.prototype.JSC$17433_readyStateChangeHandler_=function(S){S=S.target;var c=this.JSC$17429_readyStateChangeThrottle_;c&&_.sn(S)==3?(this.JSC$17429_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$17433_xmlHttpHandler_(S)};
CY.prototype.JSC$17433_xmlHttpHandler_=function(S){try{S==this.JSC$17429_xmlHttp_?Q8E(this):this.JSC$17429_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(c){this.JSC$17429_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),fP2(this)}finally{}};
var Q8E=function(S){var c=_.sn(S.JSC$17429_xmlHttp_),Q=S.JSC$17429_xmlHttp_.JSC$7833_lastErrorCode_,f=S.JSC$17429_xmlHttp_.getStatus();if(!(c<3||c==3&&!fP2(S))){S.JSC$17429_cancelled_||c!=4||Q==7||(Q==8||f<=0?$P(3):$P(2));USE(S);var U=S.JSC$17429_xmlHttp_.getStatus();S.JSC$17429_lastStatusCode_=U;Q=J18(S);fP2(S)||S.JSC$17429_channelDebug_.debug(function(){return"No response text for uri "+S.JSC$17429_requestUri_+" status "+U});
S.JSC$17429_successful_=U==200;Pd8(S.JSC$17429_channelDebug_,S.JSC$17429_verb_,S.JSC$17429_requestUri_,S.JSC$17429_rid_,S.JSC$17429_retryId_,c,U);if(S.JSC$17429_successful_){if(S.decodeInitialResponse_&&!S.initialResponseDecoded_)if(f=aPU(S))YP(S.JSC$17429_channelDebug_,S.JSC$17429_rid_,f,"Initial handshake response via X-HTTP-Initial-Response"),S.initialResponseDecoded_=!0,A1B(S,f);else{S.JSC$17429_successful_=!1;S.JSC$17429_lastError_=3;u0(12);S.JSC$17429_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
S.JSC$17429_rid_+")");HR(S);D9(S);return}S.decodeChunks_?X9N(S,c,Q):(YP(S.JSC$17429_channelDebug_,S.JSC$17429_rid_,Q,null),A1B(S,Q));c==4&&HR(S);S.JSC$17429_successful_&&!S.JSC$17429_cancelled_&&(c==4?Ow1(S.JSC$17429_channel_,S):(S.JSC$17429_successful_=!1,SEZ(S)))}else U_E(S.JSC$17429_xmlHttp_),U==400&&Q.indexOf("Unknown SID")>0?(S.JSC$17429_lastError_=3,u0(12),S.JSC$17429_channelDebug_.warning("XMLHTTP Unknown SID ("+S.JSC$17429_rid_+")")):(S.JSC$17429_lastError_=0,u0(13),S.JSC$17429_channelDebug_.warning("XMLHTTP Bad status "+
U+" ("+S.JSC$17429_rid_+")")),HR(S),D9(S)}},aPU=function(S){return S.JSC$17429_xmlHttp_&&(S=BO(S.JSC$17429_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.Xo(S)?S:null},J18=function(S){if(!z1T(S))return S.JSC$17429_xmlHttp_.getResponseText();
var c=S.JSC$17429_xmlHttp_.getResponse();if(c==="")return"";var Q="",f=c.length,U=_.sn(S.JSC$17429_xmlHttp_)==4;if(!S.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return HR(S),D9(S),"";S.fetchResponseState_.textDecoder=new _.QY.TextDecoder}for(var a=0;a<f;a++)S.fetchResponseState_.responseArrivedForFetch=!0,Q+=S.fetchResponseState_.textDecoder.decode(c[a],{stream:!(U&&a==f-1)});c.length=0;S.fetchResponseState_.responseBuffer+=Q;S.JSC$17429_xmlHttpChunkStart_=0;return S.fetchResponseState_.responseBuffer},
fP2=function(S){return S.JSC$17429_xmlHttp_?S.fetchResponseState_.responseArrivedForFetch?!0:!(!S.JSC$17429_xmlHttp_.getResponseText()&&!S.JSC$17429_xmlHttp_.getResponse()):!1},z1T=function(S){return S.JSC$17429_xmlHttp_?S.JSC$17429_verb_=="GET"&&S.JSC$17429_type_!=2&&S.JSC$17429_channel_.usesFetchStreams_:!1},X9N=function(S,c,Q){for(var f=!0,U;!S.JSC$17429_cancelled_&&S.JSC$17429_xmlHttpChunkStart_<Q.length;)if(U=xSN(S,Q),U==ymG){c==4&&(S.JSC$17429_lastError_=4,u0(14),f=!1);
YP(S.JSC$17429_channelDebug_,S.JSC$17429_rid_,null,"[Incomplete Response]");break}else if(U==R7N){S.JSC$17429_lastError_=4;u0(15);YP(S.JSC$17429_channelDebug_,S.JSC$17429_rid_,Q,"[Invalid Chunk]");f=!1;break}else YP(S.JSC$17429_channelDebug_,S.JSC$17429_rid_,U,null),A1B(S,U);z1T(S)&&S.JSC$17429_xmlHttpChunkStart_!=0&&(S.fetchResponseState_.responseBuffer=S.fetchResponseState_.responseBuffer.slice(S.JSC$17429_xmlHttpChunkStart_),S.JSC$17429_xmlHttpChunkStart_=0);c!=4||Q.length!=0||S.fetchResponseState_.responseArrivedForFetch||
(S.JSC$17429_lastError_=1,u0(16),f=!1);S.JSC$17429_successful_=S.JSC$17429_successful_&&f;f?Q.length>0&&!S.firstByteReceived_&&(S.firstByteReceived_=!0,c=S.JSC$17429_channel_,c.JSC$17448_backChannelRequest_==S&&c.detectBufferingProxy_&&!c.bpDetectionDone_&&(c.JSC$17448_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+Q.length),Fu2(c),c.bpDetectionDone_=!0,u0(11))):(YP(S.JSC$17429_channelDebug_,S.JSC$17429_rid_,Q,"[Invalid Chunked Response]"),HR(S),D9(S))},xSN=function(S,c){var Q=
S.JSC$17429_xmlHttpChunkStart_,f=c.indexOf("\n",Q);
if(f==-1)return ymG;Q=Number(c.substring(Q,f));if(isNaN(Q))return R7N;f+=1;if(f+Q>c.length)return ymG;c=c.slice(f,f+Q);S.JSC$17429_xmlHttpChunkStart_=f+Q;return c};
CY.prototype.cancel=function(){this.JSC$17429_cancelled_=!0;HR(this)};
var SEZ=function(S){S.JSC$17429_watchDogTimeoutTime_=Date.now()+S.timeout_;B3E(S,S.timeout_)},B3E=function(S,c){if(S.JSC$17429_watchDogTimerId_!=null)throw Error("yk");
S.JSC$17429_watchDogTimerId_=jA((0,_.H1)(S.JSC$17433_onWatchDogTimeout_,S),c)},USE=function(S){S.JSC$17429_watchDogTimerId_&&(_.QY.clearTimeout(S.JSC$17429_watchDogTimerId_),S.JSC$17429_watchDogTimerId_=null)};
CY.prototype.JSC$17433_onWatchDogTimeout_=function(){this.JSC$17429_watchDogTimerId_=null;var S=Date.now();S-this.JSC$17429_watchDogTimeoutTime_>=0?(EmE(this.JSC$17429_channelDebug_,this.JSC$17429_requestUri_),this.JSC$17429_type_!=2&&($P(3),u0(17)),HR(this),this.JSC$17429_lastError_=2,D9(this)):(this.JSC$17429_channelDebug_.warning("WatchDog timer called too early"),B3E(this,this.JSC$17429_watchDogTimeoutTime_-S))};
var D9=function(S){S.JSC$17429_channel_.state_==0||S.JSC$17429_cancelled_||Ow1(S.JSC$17429_channel_,S)},HR=function(S){USE(S);
_.yN(S.JSC$17429_readyStateChangeThrottle_);S.JSC$17429_readyStateChangeThrottle_=null;S.JSC$17429_eventHandler_.removeAll();if(S.JSC$17429_xmlHttp_){var c=S.JSC$17429_xmlHttp_;S.JSC$17429_xmlHttp_=null;c.abort();c.dispose()}};
CY.prototype.getLastError=function(){return this.JSC$17429_lastError_};
var A1B=function(S,c){try{var Q=S.JSC$17429_channel_;if(Q.state_!=0&&(Q.JSC$17448_backChannelRequest_==S||IP0(Q.forwardChannelRequestPool_,S)))if(!S.initialResponseDecoded_&&IP0(Q.forwardChannelRequestPool_,S)&&Q.state_==3){try{var f=Q.wireCodec_.JSC$17443_parser_.parse(c)}catch(z){f=null}if(Array.isArray(f)&&f.length==3){c=f;if(c[0]==0)a:if(Q.JSC$17448_channelDebug_.debug("Server claims our backchannel is missing."),Q.JSC$17448_backChannelTimerId_)Q.JSC$17448_channelDebug_.debug("But we are currently starting the request.");
else{if(Q.JSC$17448_backChannelRequest_)if(Q.JSC$17448_backChannelRequest_.JSC$17429_requestStartTime_+3E3<S.JSC$17429_requestStartTime_)no1(Q),bwg(Q);else break a;else Q.JSC$17448_channelDebug_.warning("We do not have a BackChannel established");N3g(Q);u0(18)}else{Q.JSC$17448_lastPostResponseArrayId_=c[1];var U=Q.JSC$17448_lastPostResponseArrayId_-Q.JSC$17448_lastArrayId_;if(0<U){var a=c[2];Q.JSC$17448_channelDebug_.debug(a+" bytes (in "+U+" arrays) are outstanding on the BackChannel");a<37500&&
Q.enableStreaming_&&Q.JSC$17448_backChannelRetryCount_==0&&!Q.JSC$17448_deadBackChannelTimerId_&&(Q.JSC$17448_deadBackChannelTimerId_=jA((0,_.H1)(Q.JSC$17450_onBackChannelDead_,Q),6E3))}}if(Kup(Q.forwardChannelRequestPool_)<=1&&Q.forwardChannelFlushedCallback_){try{Q.forwardChannelFlushedCallback_()}catch(z){}Q.forwardChannelFlushedCallback_=void 0}}else Q.JSC$17448_channelDebug_.debug("Bad POST response data returned"),pY(Q,11)}else if((S.initialResponseDecoded_||Q.JSC$17448_backChannelRequest_==
S)&&no1(Q),!_.Xo(c)){var X=Q.wireCodec_.JSC$17443_parser_.parse(c);Q.onInput_(X,S)}$P(4)}catch(z){}};var $Sg=function(S,c){this.JSC$17436_mapId=S;this.map=c;this.context=null};var uxg=function(S){this.maxPoolSizeConfigured_=S||10;_.QY.PerformanceNavigationTiming?(S=_.QY.performance.getEntriesByType("navigation"),S=S.length>0&&(S[0].nextHopProtocol=="hq"||S[0].nextHopProtocol=="h2")):S=!!(_.QY.chrome&&_.QY.chrome.loadTimes&&_.QY.chrome.loadTimes()&&_.QY.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17439_maxSize_=S?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17439_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17439_request_=null;this.JSC$17439_pendingMessages_=
[]},j80=function(S){return S.JSC$17439_request_?!0:S.requestPool_?S.requestPool_.size>=S.JSC$17439_maxSize_:!1},Kup=function(S){return S.JSC$17439_request_?1:S.requestPool_?S.requestPool_.size:0},IP0=function(S,c){return S.JSC$17439_request_?S.JSC$17439_request_==c:S.requestPool_?S.requestPool_.has(c):!1},lPg=function(S,c){S.requestPool_?S.requestPool_.add(c):S.JSC$17439_request_=c},YEp=function(S,c){S.JSC$17439_request_&&S.JSC$17439_request_==c?S.JSC$17439_request_=null:S.requestPool_&&S.requestPool_.has(c)&&
S.requestPool_.delete(c)};
uxg.prototype.cancel=function(){this.JSC$17439_pendingMessages_=C4Z(this);if(this.JSC$17439_request_)this.JSC$17439_request_.cancel(),this.JSC$17439_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var S=_.A(this.requestPool_.values()),c=S.next();!c.done;c=S.next())c.value.cancel();this.requestPool_.clear()}};
var C4Z=function(S){if(S.JSC$17439_request_!=null)return S.JSC$17439_pendingMessages_.concat(S.JSC$17439_request_.JSC$17429_pendingMessages_);if(S.requestPool_!=null&&S.requestPool_.size!==0){var c=S.JSC$17439_pendingMessages_;S=_.A(S.requestPool_.values());for(var Q=S.next();!Q.done;Q=S.next())c=c.concat(Q.value.JSC$17429_pendingMessages_);return c}return _.VY(S.JSC$17439_pendingMessages_)},HwO=function(S,c){S.JSC$17439_pendingMessages_=S.JSC$17439_pendingMessages_.concat(c)};var DSG=function(S,c){var Q=new l0;Q.debug("TestLoadImage: loading "+S);if(_.QY.Image){var f=new Image;f.onload=_.u2(hf,Q,"TestLoadImage: loaded",!0,c,f);f.onerror=_.u2(hf,Q,"TestLoadImage: error",!1,c,f);f.onabort=_.u2(hf,Q,"TestLoadImage: abort",!1,c,f);f.ontimeout=_.u2(hf,Q,"TestLoadImage: timeout",!1,c,f);_.QY.setTimeout(function(){if(f.ontimeout)f.ontimeout()},1E4);
f.src=S}else c(!1)},p9E=function(S,c){var Q=new l0,f=new AbortController,U=setTimeout(function(){f.abort();
hf(Q,"TestPingServer: timeout",!1,c)},1E4);
fetch(S,{signal:f.signal}).then(function(a){clearTimeout(U);a.ok?hf(Q,"TestPingServer: ok",!0,c):hf(Q,"TestPingServer: server error",!1,c)}).catch(function(){clearTimeout(U);
hf(Q,"TestPingServer: error",!1,c)})},hf=function(S,c,Q,f,U){try{S.debug(c),U&&(U.onload=null,U.onerror=null,U.onabort=null,U.ontimeout=null),f(Q)}catch(a){}};var h1E=function(){this.JSC$17443_parser_=new KY},qEE=function(S,c,Q){var f=Q||"";
try{_.rH$(S,function(U,a){var X=U;_.c_(U)&&(X=(0,_.TN)(U));c.push(f+a+"="+encodeURIComponent(X))})}catch(U){throw c.push(f+"type="+encodeURIComponent("_badmap")),U;
}};var q8=function(S,c,Q){return Q&&Q.internalChannelParams?Q.internalChannelParams[S]||c:c},Tx=function(S){this.serverVersion_=0;
this.JSC$17448_outgoingMaps_=[];this.JSC$17448_channelDebug_=new l0;this.JSC$17448_hostPrefix_=this.JSC$17448_backChannelUri_=this.JSC$17448_forwardChannelUri_=this.JSC$17448_path_=this.JSC$17448_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17448_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17448_extraHeaders_=null;this.JSC$17448_nextMapId_=this.JSC$17448_nextRid_=0;this.JSC$17448_failFast_=q8("failFast",!1,S);this.enableStreaming_=this.JSC$17448_deadBackChannelTimerId_=
this.JSC$17448_backChannelTimerId_=this.JSC$17448_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17448_lastPostResponseArrayId_=this.JSC$17448_lastArrayId_=-1;this.JSC$17448_backChannelAttemptId_=this.JSC$17448_backChannelRetryCount_=this.JSC$17448_forwardChannelRetryCount_=0;this.JSC$17448_baseRetryDelayMs_=q8("baseRetryDelayMs",5E3,S);this.JSC$17448_retryDelaySeedMs_=q8("retryDelaySeedMs",1E4,S);this.JSC$17448_forwardChannelMaxRetries_=
q8("forwardChannelMaxRetries",2,S);this.JSC$17448_forwardChannelRequestTimeoutMs_=q8("forwardChannelRequestTimeoutMs",2E4,S);this.JSC$17448_xmlHttpFactory_=S&&S.xmlHttpFactory||void 0;this.networkTestUrl_=S&&S.networkTestUrl||void 0;this.usesFetchStreams_=S&&S.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17448_supportsCrossDomainXhrs_=S&&S.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new uxg(S&&S.concurrentRequestLimit);this.wireCodec_=new h1E;this.fastHandshake_=
S&&S.fastHandshake||!1;this.encodeInitMessageHeaders_=S&&S.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17448_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=S&&S.blockingHandshake||!1;S&&S.disableRedact&&this.JSC$17448_channelDebug_.disableRedact();S&&S.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
S&&S.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;S&&S.longPollingTimeout&&S.longPollingTimeout>0&&(this.longPollingTimeout_=S.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
Tx.prototype.JSC$17450_channelVersion_=8;Tx.prototype.state_=1;
Tx.prototype.connect=function(S,c,Q,f){this.JSC$17448_channelDebug_.debug("connect()");u0(0);this.JSC$17448_path_=S;this.JSC$17448_extraParams_=c||{};Q&&f!==void 0&&(this.JSC$17448_extraParams_.OSID=Q,this.JSC$17448_extraParams_.OAID=f);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17448_channelDebug_.debug("connectChannel_()");S=T3E(this,null,this.JSC$17448_path_);this.JSC$17448_channelDebug_.debug("GetForwardChannelUri: "+S);this.JSC$17448_forwardChannelUri_=S;w9p(this)};
Tx.prototype.disconnect=function(){this.JSC$17448_channelDebug_.debug("disconnect()");s81(this);if(this.state_==3){var S=this.JSC$17448_nextRid_++,c=this.JSC$17448_forwardChannelUri_.clone();_.to(c,"SID",this.sid_);_.to(c,"RID",S);_.to(c,"TYPE","terminate");wI(this,c);S=new CY(this,this.JSC$17448_channelDebug_,this.sid_,S);S.JSC$17429_type_=2;S.JSC$17429_baseUri_=_.Ob(c.clone());c=!1;if(_.QY.navigator&&_.QY.navigator.sendBeacon)try{c=_.QY.navigator.sendBeacon(S.JSC$17429_baseUri_.toString(),"")}catch(Q){}!c&&
_.QY.Image&&((new Image).src=S.JSC$17429_baseUri_,c=!0);c||(S.JSC$17429_xmlHttp_=c1g(S.JSC$17429_channel_,null),S.JSC$17429_xmlHttp_.send(S.JSC$17429_baseUri_));S.JSC$17429_requestStartTime_=Date.now();SEZ(S)}Mg2(this)};
var bwg=function(S){S.JSC$17448_backChannelRequest_&&(Fu2(S),S.JSC$17448_backChannelRequest_.cancel(),S.JSC$17448_backChannelRequest_=null)},s81=function(S){bwg(S);
S.JSC$17448_backChannelTimerId_&&(_.QY.clearTimeout(S.JSC$17448_backChannelTimerId_),S.JSC$17448_backChannelTimerId_=null);no1(S);S.forwardChannelRequestPool_.cancel();S.JSC$17448_forwardChannelTimerId_&&(typeof S.JSC$17448_forwardChannelTimerId_==="number"&&_.QY.clearTimeout(S.JSC$17448_forwardChannelTimerId_),S.JSC$17448_forwardChannelTimerId_=null)};
Tx.prototype.getState=function(){return this.state_};
var w9p=function(S){j80(S.forwardChannelRequestPool_)||S.JSC$17448_forwardChannelTimerId_||(S.JSC$17448_forwardChannelTimerId_=!0,_.HH(S.JSC$17450_onStartForwardChannelTimer_,S),S.JSC$17448_forwardChannelRetryCount_=0)},ZwO=function(S,c){if(Kup(S.forwardChannelRequestPool_)>=S.forwardChannelRequestPool_.JSC$17439_maxSize_-(S.JSC$17448_forwardChannelTimerId_?1:0))return!1;
if(S.JSC$17448_forwardChannelTimerId_)return S.JSC$17448_channelDebug_.debug("Use the retry request that is already scheduled."),S.JSC$17448_outgoingMaps_=c.JSC$17429_pendingMessages_.concat(S.JSC$17448_outgoingMaps_),!0;if(S.state_==1||S.state_==2||S.JSC$17448_forwardChannelRetryCount_>=(S.JSC$17448_failFast_?0:S.JSC$17448_forwardChannelMaxRetries_))return!1;S.JSC$17448_channelDebug_.debug("Going to retry POST");S.JSC$17448_forwardChannelTimerId_=jA((0,_.H1)(S.JSC$17450_onStartForwardChannelTimer_,
S,c),iwV(S,S.JSC$17448_forwardChannelRetryCount_));S.JSC$17448_forwardChannelRetryCount_++;return!0};
Tx.prototype.JSC$17450_onStartForwardChannelTimer_=function(S){if(this.JSC$17448_forwardChannelTimerId_)if(this.JSC$17448_forwardChannelTimerId_=null,this.JSC$17448_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!S){this.JSC$17448_channelDebug_.debug("open_()");this.JSC$17448_nextRid_=Math.floor(Math.random()*1E5);S=this.JSC$17448_nextRid_++;var c=new CY(this,this.JSC$17448_channelDebug_,"",S),Q=this.JSC$17448_extraHeaders_;this.initHeaders_&&(Q?(Q=_.Cn.clone(Q),_.Cn.extend(Q,this.initHeaders_)):
Q=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(c.JSC$17429_extraHeaders_=Q,Q=null);var f;if(this.fastHandshake_)a:{for(var U=f=0;U<this.JSC$17448_outgoingMaps_.length;U++){b:{var a=this.JSC$17448_outgoingMaps_[U];if("__data__"in a.map&&(a=a.map.__data__,typeof a==="string")){a=a.length;break b}a=void 0}if(a===void 0)break;f+=a;if(f>4096){f=U;break a}if(f===4096||U===this.JSC$17448_outgoingMaps_.length-1){f=U+1;break a}}f=1E3}else f=1E3;f=Gg2(this,c,f);
U=this.JSC$17448_forwardChannelUri_.clone();_.to(U,"RID",S);_.to(U,"CVER",22);this.httpSessionIdParam_&&_.to(U,"X-HTTP-Session-Id",this.httpSessionIdParam_);wI(this,U);Q&&(this.encodeInitMessageHeaders_?f="headers="+_.vY(xsE(Q))+"&"+f:this.httpHeadersOverwriteParam_&&FwN(U,this.httpHeadersOverwriteParam_,Q));lPg(this.forwardChannelRequestPool_,c);this.blockingHandshake_&&_.to(U,"TYPE","init");this.fastHandshake_?(_.to(U,"$req",f),_.to(U,"SID","null"),c.decodeInitialResponse_=!0,mIO(c,U,null)):mIO(c,
U,f);this.state_=2}}else this.state_==3&&(S?Wu8(this,S):this.JSC$17448_outgoingMaps_.length==0?this.JSC$17448_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):j80(this.forwardChannelRequestPool_)||(Wu8(this),this.JSC$17448_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var Wu8=function(S,c){var Q;c?Q=c.JSC$17429_rid_:Q=S.JSC$17448_nextRid_++;var f=S.JSC$17448_forwardChannelUri_.clone();_.to(f,"SID",S.sid_);_.to(f,"RID",Q);_.to(f,"AID",S.JSC$17448_lastArrayId_);wI(S,f);S.httpHeadersOverwriteParam_&&S.JSC$17448_extraHeaders_&&FwN(f,S.httpHeadersOverwriteParam_,S.JSC$17448_extraHeaders_);Q=new CY(S,S.JSC$17448_channelDebug_,S.sid_,Q,S.JSC$17448_forwardChannelRetryCount_+1);S.httpHeadersOverwriteParam_===null&&(Q.JSC$17429_extraHeaders_=S.JSC$17448_extraHeaders_);c&&
(S.JSC$17448_outgoingMaps_=c.JSC$17429_pendingMessages_.concat(S.JSC$17448_outgoingMaps_));c=Gg2(S,Q,1E3);Q.setTimeout(Math.round(S.JSC$17448_forwardChannelRequestTimeoutMs_*.5)+Math.round(S.JSC$17448_forwardChannelRequestTimeoutMs_*.5*Math.random()));lPg(S.forwardChannelRequestPool_,Q);mIO(Q,f,c)},wI=function(S,c){S.JSC$17448_extraParams_&&_.Cn.forEach(S.JSC$17448_extraParams_,function(Q,f){_.to(c,f,Q)});
S.handler_&&_.rH$({},function(Q,f){_.to(c,f,Q)})},Gg2=function(S,c,Q){Q=Math.min(S.JSC$17448_outgoingMaps_.length,Q);
var f=S.handler_?(0,_.H1)(S.handler_.JSC$17454_badMapError,S.handler_,S):null;a:{for(var U=S.JSC$17448_outgoingMaps_,a=-1;;){var X=["count="+Q];a==-1?Q>0?(a=U[0].JSC$17436_mapId,X.push("ofs="+a)):a=0:X.push("ofs="+a);for(var z=!0,x=0;x<Q;x++){var I=U[x].JSC$17436_mapId,n=U[x].map;I-=a;if(I<0)a=Math.max(0,U[x].JSC$17436_mapId-100),z=!1;else try{qEE(n,X,"req"+I+"_")}catch(b){f&&f(n)}}if(z){f=X.join("&");break a}}f=void 0}S=S.JSC$17448_outgoingMaps_.splice(0,Q);c.JSC$17429_pendingMessages_=S;return f},
goE=function(S){S.JSC$17448_backChannelRequest_||S.JSC$17448_backChannelTimerId_||(S.JSC$17448_backChannelAttemptId_=1,_.HH(S.JSC$17450_onStartBackChannelTimer_,S),S.JSC$17448_backChannelRetryCount_=0)},N3g=function(S){if(S.JSC$17448_backChannelRequest_||S.JSC$17448_backChannelTimerId_||S.JSC$17448_backChannelRetryCount_>=3)return!1;
S.JSC$17448_channelDebug_.debug("Going to retry GET");S.JSC$17448_backChannelAttemptId_++;S.JSC$17448_backChannelTimerId_=jA((0,_.H1)(S.JSC$17450_onStartBackChannelTimer_,S),iwV(S,S.JSC$17448_backChannelRetryCount_));S.JSC$17448_backChannelRetryCount_++;return!0};
Tx.prototype.JSC$17450_onStartBackChannelTimer_=function(){this.JSC$17448_backChannelTimerId_=null;e1g(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17448_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17448_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17448_backChannelRequest_+" "+this.handshakeRttMs_);else{var S=2*this.handshakeRttMs_;this.JSC$17448_channelDebug_.info("BP detection timer enabled: "+S);this.bpDetectionTimerId_=jA((0,_.H1)(this.onBpDetectionTimer_,
this),S)}};
Tx.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17448_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17448_backChannelRequest_.JSC$17429_xmlHttp_!=null){var S=this.JSC$17448_backChannelRequest_.JSC$17429_xmlHttp_.getResponseText();S&&this.JSC$17448_channelDebug_.warning("Timer should have been cancelled : "+S)}this.JSC$17448_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;u0(10);bwg(this);e1g(this)}else this.JSC$17448_channelDebug_.warning("Invalid operation.")};
var Fu2=function(S){S.bpDetectionTimerId_!=null&&(S.JSC$17448_channelDebug_.debug("Cancel the BP detection timer."),_.QY.clearTimeout(S.bpDetectionTimerId_),S.bpDetectionTimerId_=null)},e1g=function(S){S.JSC$17448_channelDebug_.debug("Creating new HttpRequest");
S.JSC$17448_backChannelRequest_=new CY(S,S.JSC$17448_channelDebug_,S.sid_,"rpc",S.JSC$17448_backChannelAttemptId_);S.httpHeadersOverwriteParam_===null&&(S.JSC$17448_backChannelRequest_.JSC$17429_extraHeaders_=S.JSC$17448_extraHeaders_);S.JSC$17448_backChannelRequest_.JSC$17429_readyStateChangeThrottleMs_=0;var c=S.JSC$17448_backChannelUri_.clone();_.to(c,"RID","rpc");_.to(c,"SID",S.sid_);_.to(c,"AID",S.JSC$17448_lastArrayId_);_.to(c,"CI",S.enableStreaming_?"0":"1");!S.enableStreaming_&&S.longPollingTimeout_&&
_.to(c,"TO",S.longPollingTimeout_);_.to(c,"TYPE","xmlhttp");wI(S,c);S.httpHeadersOverwriteParam_&&S.JSC$17448_extraHeaders_&&FwN(c,S.httpHeadersOverwriteParam_,S.JSC$17448_extraHeaders_);S.backChannelRequestTimeoutMs_&&S.JSC$17448_backChannelRequest_.setTimeout(S.backChannelRequestTimeoutMs_);var Q=S.JSC$17448_backChannelRequest_,f=S.JSC$17448_hostPrefix_;Q.JSC$17429_type_=1;Q.JSC$17429_baseUri_=_.Ob(c.clone());Q.JSC$17429_postData_=null;Q.decodeChunks_=!0;om2(Q,f);S.JSC$17448_channelDebug_.debug("New Request created")};
Tx.prototype.JSC$17450_onBackChannelDead_=function(){this.JSC$17448_deadBackChannelTimerId_!=null&&(this.JSC$17448_deadBackChannelTimerId_=null,bwg(this),N3g(this),u0(19))};
var no1=function(S){S.JSC$17448_deadBackChannelTimerId_!=null&&(_.QY.clearTimeout(S.JSC$17448_deadBackChannelTimerId_),S.JSC$17448_deadBackChannelTimerId_=null)},Ow1=function(S,c){S.JSC$17448_channelDebug_.debug("Request complete");
var Q=null;if(S.JSC$17448_backChannelRequest_==c){no1(S);Fu2(S);S.JSC$17448_backChannelRequest_=null;var f=2}else if(IP0(S.forwardChannelRequestPool_,c))Q=c.JSC$17429_pendingMessages_,YEp(S.forwardChannelRequestPool_,c),f=1;else return;if(S.state_!=0)if(c.JSC$17429_successful_)f==1?(dIE(c.JSC$17429_postData_?c.JSC$17429_postData_.length:0,Date.now()-c.JSC$17429_requestStartTime_,S.JSC$17448_forwardChannelRetryCount_),w9p(S)):goE(S);else{var U=c.JSC$17429_lastStatusCode_,a=c.getLastError();if(a==3||
a==0&&U>0)S.JSC$17448_channelDebug_.debug("Not retrying due to error type"),U>200&&(S.errorResponseStatusCode_=c.JSC$17429_lastStatusCode_);else{S.JSC$17448_channelDebug_.debug(function(){return"Maybe retrying, last error: "+VVE(a,S.errorResponseStatusCode_)});
if(f==1&&ZwO(S,c)||f==2&&N3g(S))return;S.JSC$17448_channelDebug_.debug("Exceeded max number of retries")}Q&&Q.length>0&&HwO(S.forwardChannelRequestPool_,Q);S.JSC$17448_channelDebug_.debug("Error: HTTP request failed");switch(a){case 1:pY(S,5);break;case 4:pY(S,10);break;case 3:pY(S,6);break;default:pY(S,2)}}},iwV=function(S,c){var Q=S.JSC$17448_baseRetryDelayMs_+Math.floor(Math.random()*S.JSC$17448_retryDelaySeedMs_);
S.isActive()||(S.JSC$17448_channelDebug_.debug("Inactive channel"),Q*=2);return Q*c};
Tx.prototype.onInput_=function(S,c){for(var Q=0;Q<S.length;Q++){var f=S[Q];this.JSC$17448_lastArrayId_=f[0];f=f[1];if(this.state_==2)if(f[0]=="c"){this.sid_=f[1];this.JSC$17448_hostPrefix_=f[2];var U=f[3];U!=null&&(this.JSC$17450_channelVersion_=U,this.JSC$17448_channelDebug_.info("VER="+this.JSC$17450_channelVersion_));U=f[4];U!=null&&(this.serverVersion_=U,this.JSC$17448_channelDebug_.info("SVER="+this.serverVersion_));f=f[5];f!=null&&typeof f==="number"&&f>0&&(this.backChannelRequestTimeoutMs_=
f*=1.5,this.JSC$17448_channelDebug_.info("backChannelRequestTimeoutMs_="+f));if(f=c.JSC$17429_xmlHttp_){var a=BO(f,"X-Client-Wire-Protocol");a&&(U=this.forwardChannelRequestPool_,!U.requestPool_&&(_.zz(a,"spdy")||_.zz(a,"quic")||_.zz(a,"h2"))&&(U.JSC$17439_maxSize_=U.maxPoolSizeConfigured_,U.requestPool_=new Set,U.JSC$17439_request_&&(lPg(U,U.JSC$17439_request_),U.JSC$17439_request_=null)));this.httpSessionIdParam_&&((f=BO(f,"X-HTTP-Session-Id"))?(this.httpSessionId_=f,_.to(this.JSC$17448_forwardChannelUri_,
this.httpSessionIdParam_,f)):this.JSC$17448_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17454_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-c.JSC$17429_requestStartTime_,this.JSC$17448_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));f=c;U=T3E(this,this.JSC$17448_supportsCrossDomainXhrs_?this.JSC$17448_hostPrefix_:null,this.JSC$17448_path_);this.JSC$17448_channelDebug_.debug("GetBackChannelUri: "+
U);this.JSC$17448_backChannelUri_=U;f.initialResponseDecoded_?(this.JSC$17448_channelDebug_.debug("Upgrade the handshake request to a backchannel."),YEp(this.forwardChannelRequestPool_,f),U=f,(a=this.backChannelRequestTimeoutMs_)&&U.setTimeout(a),U.JSC$17429_watchDogTimerId_&&(USE(U),SEZ(U)),this.JSC$17448_backChannelRequest_=f):goE(this);this.JSC$17448_outgoingMaps_.length>0&&w9p(this)}else f[0]!="stop"&&f[0]!="close"||pY(this,7);else this.state_==3&&(f[0]=="stop"||f[0]=="close"?f[0]=="stop"?pY(this,
7):this.disconnect():f[0]!="noop"&&this.handler_&&this.handler_.JSC$17454_channelHandleArray(f),this.JSC$17448_backChannelRetryCount_=0)}};
var pY=function(S,c){S.JSC$17448_channelDebug_.info("Error code "+c);if(c==2){var Q=(0,_.H1)(S.testNetworkCallback_,S),f=S.networkTestUrl_,U=!f;f=new _.V7(f||"//www.google.com/images/cleardot.gif");_.QY.location&&_.QY.location.protocol=="http"||_.SV(f,"https");_.Ob(f);U?DSG(f.toString(),Q):p9E(f.toString(),Q)}else u0(2);S.onError_(c)};
Tx.prototype.testNetworkCallback_=function(S){S?(this.JSC$17448_channelDebug_.info("Successfully pinged google.com"),u0(2)):(this.JSC$17448_channelDebug_.info("Failed to ping google.com"),u0(1))};
Tx.prototype.onError_=function(S){this.JSC$17448_channelDebug_.debug("HttpChannel: error - "+S);this.state_=0;this.handler_&&this.handler_.JSC$17454_channelError(S);Mg2(this);s81(this)};
var Mg2=function(S){S.state_=0;S.nonAckedMapsAtChannelClose_=[];if(S.handler_){var c=C4Z(S.forwardChannelRequestPool_);if(c.length!=0||S.JSC$17448_outgoingMaps_.length!=0)S.JSC$17448_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+c.length+", outgoing: "+S.JSC$17448_outgoingMaps_.length}),_.oH(S.nonAckedMapsAtChannelClose_,c),_.oH(S.nonAckedMapsAtChannelClose_,S.JSC$17448_outgoingMaps_),S.forwardChannelRequestPool_.JSC$17439_pendingMessages_.length=0,_.VY(S.JSC$17448_outgoingMaps_),
S.JSC$17448_outgoingMaps_.length=0;
S.handler_.JSC$17454_channelClosed()}},kgO=function(S){if(S.state_==0)return S.nonAckedMapsAtChannelClose_;
var c=[];_.oH(c,C4Z(S.forwardChannelRequestPool_));_.oH(c,S.JSC$17448_outgoingMaps_);return c},T3E=function(S,c,Q){var f=_.L9(Q);
f.JSC$8068_domain_!=""?(c&&_.cm(f,c+"."+f.JSC$8068_domain_),_.Qr(f,f.JSC$8068_port_)):(f=_.QY.location,f=mK2(f.protocol,c?c+"."+f.hostname:f.hostname,+f.port,Q));c=S.httpSessionIdParam_;Q=S.httpSessionId_;c&&Q&&_.to(f,c,Q);_.to(f,"VER",S.JSC$17450_channelVersion_);wI(S,f);return f},c1g=function(S,c,Q){if(c&&!S.JSC$17448_supportsCrossDomainXhrs_)throw Error("zk");
c=S.usesFetchStreams_&&!S.JSC$17448_xmlHttpFactory_?new _.wT(new wn({streamBinaryChunks:Q})):new _.wT(S.JSC$17448_xmlHttpFactory_);c.JSC$7833_withCredentials_=S.JSC$17448_supportsCrossDomainXhrs_;return c};
Tx.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var r11=function(){};
_.J=r11.prototype;_.J.JSC$17454_channelOpened=function(){};
_.J.JSC$17454_channelHandleArray=function(){};
_.J.JSC$17454_channelError=function(){};
_.J.JSC$17454_channelClosed=function(){};
_.J.isActive=function(){return!0};
_.J.JSC$17454_badMapError=function(){};var dST=function(){},M8=function(S,c){_.Y5.call(this);
this.JSC$17457_channel_=new Tx(c);this.JSC$17457_url_=S;this.messageUrlParams_=c&&c.messageUrlParams||null;S=c&&c.messageHeaders||null;c&&c.clientProtocolHeaderRequired&&(S?_.Cn.set(S,"X-Client-Protocol","webchannel"):S=_.Cn.create("X-Client-Protocol","webchannel"));this.JSC$17457_channel_.JSC$17448_extraHeaders_=S;S=c&&c.initMessageHeaders||null;c&&c.messageContentType&&(S?_.Cn.set(S,"X-WebChannel-Content-Type",c.messageContentType):S=_.Cn.create("X-WebChannel-Content-Type",c.messageContentType));
c&&c.clientProfile&&(S?_.Cn.set(S,"X-WebChannel-Client-Profile",c.clientProfile):S=_.Cn.create("X-WebChannel-Client-Profile",c.clientProfile));this.JSC$17457_channel_.initHeaders_=S;(S=c&&c.httpHeadersOverwriteParam)&&!_.Xo(S)&&(this.JSC$17457_channel_.httpHeadersOverwriteParam_=S);this.supportsCrossDomainXhr_=c&&c.supportsCrossDomainXhr||!1;this.sendRawJson_=c&&c.sendRawJson||!1;(c=c&&c.httpSessionIdParam)&&!_.Xo(c)&&(this.JSC$17457_channel_.httpSessionIdParam_=c,_.Cn.containsKey(this.messageUrlParams_,
c)&&_.Cn.remove(this.messageUrlParams_,c));this.channelHandler_=new sk(this)};
_.Xa(M8,_.Y5);M8.prototype.open=function(){this.JSC$17457_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17457_channel_.JSC$17448_supportsCrossDomainXhrs_=!0);this.JSC$17457_channel_.connect(this.JSC$17457_url_,this.messageUrlParams_||void 0)};
M8.prototype.close=function(){this.JSC$17457_channel_.disconnect()};
M8.prototype.send=function(S){var c=this.JSC$17457_channel_;if(typeof S==="string"){var Q={};Q.__data__=S;S=Q}else this.sendRawJson_&&(Q={},Q.__data__=(0,_.TN)(S),S=Q);c.JSC$17448_outgoingMaps_.push(new $Sg(c.JSC$17448_nextMapId_++,S));c.state_==3&&w9p(c)};
M8.prototype.disposeInternal=function(){this.JSC$17457_channel_.handler_=null;delete this.channelHandler_;this.JSC$17457_channel_.disconnect();delete this.JSC$17457_channel_;M8.superClass_.disposeInternal.call(this)};
var vop=function(S){ZfZ.call(this);S.__headers__&&(this.headers=S.__headers__,this.statusCode=S.__status__,delete S.__headers__,delete S.__status__);var c=S.__sm__;c?this.data=(this.metadataKey=_.Cn.getAnyKey(c))?_.Cn.get(c,this.metadataKey):c:this.data=S};
_.Xa(vop,ZfZ);var P42=function(S){GrB.call(this);this.status=1;this.errorCode=S};
_.Xa(P42,GrB);var sk=function(S){this.JSC$17464_channel_=S};
_.Xa(sk,r11);sk.prototype.JSC$17454_channelOpened=function(){this.JSC$17464_channel_.dispatchEvent("w")};
sk.prototype.JSC$17454_channelHandleArray=function(S){this.JSC$17464_channel_.dispatchEvent(new vop(S))};
sk.prototype.JSC$17454_channelError=function(S){this.JSC$17464_channel_.dispatchEvent(new P42(S))};
sk.prototype.JSC$17454_channelClosed=function(){this.JSC$17464_channel_.dispatchEvent("x")};
var LuB=function(S,c){this.transportChannel_=S;this.JSC$17467_channel_=c},EoG=function(S){return kgO(S.JSC$17467_channel_).map(function(c){var Q=S.transportChannel_;
c=c.map;"__data__"in c?(c=c.__data__,Q=Q.sendRawJson_?(0,_.N_h)(c):c):Q=c;return Q})};var i0=function(S){tgE.dispatchEvent(new VgG(tgE,S))},tgE=new _.Y5,VgG=function(S){_.K0.call(this,"statevent",S)};
_.C(VgG,_.K0);var Z9=function(S,c,Q,f,U){this.JSC$17472_channel_=S;this.JSC$17472_channelDebug_=c;this.sid_=Q;this.JSC$17472_rid_=f;this.JSC$17472_retryId_=U||1;this.timeout_=45E3;this.JSC$17472_eventHandler_=new _.fP(this);this.pollingTimer_=new _.Q7;this.pollingTimer_.setInterval(250)};
_.J=Z9.prototype;_.J.JSC$17474_extraHeaders_=null;_.J.JSC$17474_successful_=!1;_.J.JSC$17474_watchDogTimerId_=null;_.J.JSC$17474_watchDogTimeoutTime_=null;_.J.JSC$17474_requestStartTime_=null;_.J.JSC$17474_type_=null;_.J.JSC$17474_baseUri_=null;_.J.JSC$17474_requestUri_=null;_.J.JSC$17474_postData_=null;_.J.JSC$17474_xmlHttp_=null;_.J.JSC$17474_xmlHttpChunkStart_=0;_.J.trident_=null;_.J.JSC$17474_verb_=null;_.J.JSC$17474_lastError_=null;_.J.JSC$17474_lastStatusCode_=-1;_.J.sendClose_=!0;
_.J.JSC$17474_cancelled_=!1;_.J.JSC$17474_readyStateChangeThrottleMs_=0;_.J.JSC$17474_readyStateChangeThrottle_=null;var R18=function(S,c){switch(S){case 0:return"Non-200 return code ("+c+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},y1E={},ooE={};
Z9.prototype.setTimeout=function(S){this.timeout_=S};
var SWE=function(S,c,Q){S.JSC$17474_type_=1;S.JSC$17474_baseUri_=_.Ob(c.clone());S.JSC$17474_postData_=Q;S.decodeChunks_=!0;mSG(S,null)},ckp=function(S,c,Q,f,U){S.JSC$17474_type_=1;
S.JSC$17474_baseUri_=_.Ob(c.clone());S.JSC$17474_postData_=null;S.decodeChunks_=Q;U&&(S.sendClose_=!1);mSG(S,f)},mSG=function(S,c){S.JSC$17474_requestStartTime_=Date.now();
Q0V(S);S.JSC$17474_requestUri_=S.JSC$17474_baseUri_.clone();as(S.JSC$17474_requestUri_,"t",S.JSC$17472_retryId_);S.JSC$17474_xmlHttpChunkStart_=0;S.JSC$17474_xmlHttp_=S.JSC$17472_channel_.JSC$17481_createXhrIo(S.JSC$17472_channel_.JSC$17481_shouldUseSecondaryDomains()?c:null);S.JSC$17474_readyStateChangeThrottleMs_>0&&(S.JSC$17474_readyStateChangeThrottle_=new _.S0((0,_.H1)(S.JSC$17474_xmlHttpHandler_,S,S.JSC$17474_xmlHttp_),S.JSC$17474_readyStateChangeThrottleMs_));S.JSC$17472_eventHandler_.listen(S.JSC$17474_xmlHttp_,
"readystatechange",S.JSC$17474_readyStateChangeHandler_);c=S.JSC$17474_extraHeaders_?_.Cn.clone(S.JSC$17474_extraHeaders_):{};S.JSC$17474_postData_?(S.JSC$17474_verb_="POST",c["Content-Type"]="application/x-www-form-urlencoded",S.JSC$17474_xmlHttp_.send(S.JSC$17474_requestUri_,S.JSC$17474_verb_,S.JSC$17474_postData_,c)):(S.JSC$17474_verb_="GET",S.sendClose_&&!_.Ir&&(c.Connection="close"),S.JSC$17474_xmlHttp_.send(S.JSC$17474_requestUri_,S.JSC$17474_verb_,null,c));S.JSC$17472_channel_.notifyServerReachabilityEvent(1);
c=S.JSC$17472_channelDebug_;var Q=S.JSC$17474_postData_;if(Q){var f="";Q=Q.split("&");for(var U=0;U<Q.length;U++){var a=Q[U].split("=");if(a.length>1){var X=a[0];a=a[1];var z=X.split("_");f=z.length>=2&&z[1]=="type"?f+(X+"="+a+"&"):f+(X+"=redacted&")}}}else f=null;c.info("XMLHTTP REQ ("+S.JSC$17472_rid_+") [attempt "+S.JSC$17472_retryId_+"]: "+S.JSC$17474_verb_+"\n"+S.JSC$17474_requestUri_+"\n"+f)};
Z9.prototype.JSC$17474_readyStateChangeHandler_=function(S){S=S.target;var c=this.JSC$17474_readyStateChangeThrottle_;c&&_.sn(S)==3?(this.JSC$17472_channelDebug_.debug("Throttling readystatechange."),c.fire()):this.JSC$17474_xmlHttpHandler_(S)};
Z9.prototype.JSC$17474_xmlHttpHandler_=function(S){try{if(S==this.JSC$17474_xmlHttp_)a:{var c=_.sn(this.JSC$17474_xmlHttp_),Q=this.JSC$17474_xmlHttp_.JSC$7833_lastErrorCode_,f=this.JSC$17474_xmlHttp_.getStatus();if(_.Ir&&!_.nW("420+")){if(c<4)break a}else if(c<3||c==3&&!this.JSC$17474_xmlHttp_.getResponseText())break a;this.JSC$17474_cancelled_||c!=4||Q==7||(Q==8||f<=0?this.JSC$17472_channel_.notifyServerReachabilityEvent(3):this.JSC$17472_channel_.notifyServerReachabilityEvent(2));f2p(this);var U=
this.JSC$17474_xmlHttp_.getStatus();this.JSC$17474_lastStatusCode_=U;var a=this.JSC$17474_xmlHttp_.getResponseText();a||this.JSC$17472_channelDebug_.debug("No response text for uri "+this.JSC$17474_requestUri_+" status "+U);this.JSC$17474_successful_=U==200;this.JSC$17472_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17472_rid_+") [ attempt "+this.JSC$17472_retryId_+"]: "+this.JSC$17474_verb_+"\n"+this.JSC$17474_requestUri_+"\n"+c+" "+U);if(this.JSC$17474_successful_){c==4&&Gx(this);if(this.decodeChunks_){for(S=
!0;!this.JSC$17474_cancelled_&&this.JSC$17474_xmlHttpChunkStart_<a.length;){var X=UYE(this,a);if(X==ooE){c==4&&(this.JSC$17474_lastError_=4,i0(15),S=!1);WR(this.JSC$17472_channelDebug_,this.JSC$17472_rid_,null,"[Incomplete Response]");break}else if(X==y1E){this.JSC$17474_lastError_=4;i0(16);WR(this.JSC$17472_channelDebug_,this.JSC$17472_rid_,a,"[Invalid Chunk]");S=!1;break}else WR(this.JSC$17472_channelDebug_,this.JSC$17472_rid_,X,null),Jkg(this,X)}c==4&&a.length==0&&(this.JSC$17474_lastError_=1,
i0(17),S=!1);this.JSC$17474_successful_=this.JSC$17474_successful_&&S;S||(WR(this.JSC$17472_channelDebug_,this.JSC$17472_rid_,a,"[Invalid Chunked Response]"),Gx(this),a20(this))}else WR(this.JSC$17472_channelDebug_,this.JSC$17472_rid_,a,null),Jkg(this,a);this.JSC$17474_successful_&&!this.JSC$17474_cancelled_&&(c==4?this.JSC$17472_channel_.JSC$17481_onRequestComplete(this):(this.JSC$17474_successful_=!1,Q0V(this)))}else U==400&&a.indexOf("Unknown SID")>0?(this.JSC$17474_lastError_=3,i0(13),this.JSC$17472_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17472_rid_+")")):(this.JSC$17474_lastError_=0,i0(14),this.JSC$17472_channelDebug_.warning("XMLHTTP Bad status "+U+" ("+this.JSC$17472_rid_+")")),Gx(this),a20(this)}else this.JSC$17472_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(z){this.JSC$17472_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var UYE=function(S,c){var Q=S.JSC$17474_xmlHttpChunkStart_,f=c.indexOf("\n",Q);if(f==-1)return ooE;Q=Number(c.substring(Q,f));if(isNaN(Q))return y1E;f+=1;if(f+Q>c.length)return ooE;c=c.slice(f,f+Q);S.JSC$17474_xmlHttpChunkStart_=f+Q;return c};
Z9.prototype.cancel=function(){this.JSC$17474_cancelled_=!0;Gx(this)};
var Q0V=function(S){S.JSC$17474_watchDogTimeoutTime_=Date.now()+S.timeout_;Ak2(S,S.timeout_)},Ak2=function(S,c){if(S.JSC$17474_watchDogTimerId_!=null)throw Error("yk");
S.JSC$17474_watchDogTimerId_=HO((0,_.H1)(S.JSC$17474_onWatchDogTimeout_,S),c)},f2p=function(S){S.JSC$17474_watchDogTimerId_&&(_.QY.clearTimeout(S.JSC$17474_watchDogTimerId_),S.JSC$17474_watchDogTimerId_=null)};
Z9.prototype.JSC$17474_onWatchDogTimeout_=function(){this.JSC$17474_watchDogTimerId_=null;var S=Date.now();S-this.JSC$17474_watchDogTimeoutTime_>=0?(this.JSC$17472_channelDebug_.info("TIMEOUT: "+this.JSC$17474_requestUri_),this.JSC$17474_type_!=2&&this.JSC$17472_channel_.notifyServerReachabilityEvent(3),Gx(this),this.JSC$17474_lastError_=2,i0(18),a20(this)):(this.JSC$17472_channelDebug_.warning("WatchDog timer called too early"),Ak2(this,this.JSC$17474_watchDogTimeoutTime_-S))};
var a20=function(S){S.JSC$17472_channel_.JSC$17481_isClosed()||S.JSC$17474_cancelled_||S.JSC$17472_channel_.JSC$17481_onRequestComplete(S)},Gx=function(S){f2p(S);
_.yN(S.JSC$17474_readyStateChangeThrottle_);S.JSC$17474_readyStateChangeThrottle_=null;S.pollingTimer_.stop();S.JSC$17472_eventHandler_.removeAll();if(S.JSC$17474_xmlHttp_){var c=S.JSC$17474_xmlHttp_;S.JSC$17474_xmlHttp_=null;c.abort();c.dispose()}S.trident_&&(S.trident_=null)};
Z9.prototype.getLastError=function(){return this.JSC$17474_lastError_};
var Jkg=function(S,c){try{S.JSC$17472_channel_.JSC$17481_onRequestData(S,c),S.JSC$17472_channel_.notifyServerReachabilityEvent(4)}catch(Q){}};var WR=function(S,c,Q,f){var U=S.info;a:if(Q&&Q!="y2f%"){try{var a=JSON.parse(Q);if(a)for(var X=0;X<a.length;X++)if(Array.isArray(a[X])){var z=a[X];if(!(z.length<2)){var x=z[1];if(Array.isArray(x)&&!(x.length<1)){var I=x[0];if(I!="noop"&&I!="stop")for(var n=1;n<x.length;n++)x[n]=""}}}var b=(0,_.TN)(a);break a}catch(N){S.debug("Exception parsing expected JS array - probably was not JS");b=Q;break a}b=void 0}else b=Q;U.call(S,"XMLHTTP TEXT ("+c+"): "+b+(f?" "+f:""))};
DU.prototype.debug=function(S){this.info(S)};
DU.prototype.info=function(){};
DU.prototype.warning=function(){};var XEO=function(S,c){this.JSC$17479_channel_=S;this.JSC$17479_channelDebug_=c;this.JSC$17479_parser_=new KY};
_.J=XEO.prototype;_.J.JSC$17481_extraHeaders_=null;_.J.JSC$17481_request_=null;_.J.receivedIntermediateResult_=!1;_.J.JSC$17481_path_=null;_.J.state_=null;_.J.JSC$17481_lastStatusCode_=-1;_.J.JSC$17481_hostPrefix_=null;_.J.blockedPrefix_=null;
_.J.connect=function(S){this.JSC$17481_path_=S;S=OLT(this.JSC$17479_channel_,this.JSC$17481_path_);i0(3);Date.now();var c=this.JSC$17479_channel_.firstTestResults_;c!=null?(this.JSC$17481_hostPrefix_=c[0],(this.blockedPrefix_=c[1])?(this.state_=1,zkN(this)):(this.state_=2,xYO(this))):(as(S,"MODE","init"),this.JSC$17481_request_=new Z9(this,this.JSC$17479_channelDebug_),this.JSC$17481_request_.JSC$17474_extraHeaders_=this.JSC$17481_extraHeaders_,ckp(this.JSC$17481_request_,S,!1,null,!0),this.state_=
0)};
var zkN=function(S){var c=FUp(S.JSC$17479_channel_,S.blockedPrefix_,"/mail/images/cleardot.gif");_.Ob(c);eb1(c.toString(),5E3,(0,_.H1)(S.checkBlockedCallback_,S),3,2E3);S.notifyServerReachabilityEvent(1)};
XEO.prototype.checkBlockedCallback_=function(S){if(S)this.state_=2,xYO(this);else{i0(4);var c=this.JSC$17479_channel_;c.JSC$17482_channelDebug_.debug("Test Connection Blocked");c.JSC$17486_lastStatusCode_=c.connectionTest_.JSC$17481_lastStatusCode_;gI(c,9)}S&&this.notifyServerReachabilityEvent(2)};
var xYO=function(S){S.JSC$17479_channelDebug_.debug("TestConnection: starting stage 2");var c=S.JSC$17479_channel_.secondTestResults_;c!=null?(S.JSC$17479_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+c?"Buffered":"Unbuffered"),i0(5),c?(i0(11),eA(S.JSC$17479_channel_,S,!1)):(i0(12),eA(S.JSC$17479_channel_,S,!0))):(S.JSC$17481_request_=new Z9(S,S.JSC$17479_channelDebug_),S.JSC$17481_request_.JSC$17474_extraHeaders_=S.JSC$17481_extraHeaders_,c=B6E(S.JSC$17479_channel_,
S.JSC$17481_hostPrefix_,S.JSC$17481_path_),i0(5),as(c,"TYPE","xmlhttp"),ckp(S.JSC$17481_request_,c,!1,S.JSC$17481_hostPrefix_,!1))};
_.J=XEO.prototype;_.J.JSC$17481_createXhrIo=function(S){return this.JSC$17479_channel_.JSC$17481_createXhrIo(S)};
_.J.abort=function(){this.JSC$17481_request_&&(this.JSC$17481_request_.cancel(),this.JSC$17481_request_=null);this.JSC$17481_lastStatusCode_=-1};
_.J.JSC$17481_isClosed=function(){return!1};
_.J.JSC$17481_onRequestData=function(S,c){this.JSC$17481_lastStatusCode_=S.JSC$17474_lastStatusCode_;if(this.state_==0)if(this.JSC$17479_channelDebug_.debug("TestConnection: Got data for stage 1"),c){try{var Q=this.JSC$17479_parser_.parse(c)}catch(f){I28(this.JSC$17479_channel_,this);return}this.JSC$17481_hostPrefix_=Q[0];this.blockedPrefix_=Q[1]}else this.JSC$17479_channelDebug_.debug("TestConnection: Null responseText"),I28(this.JSC$17479_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(i0(7),Date.now()):c=="11111"?(i0(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17481_lastStatusCode_=200,this.JSC$17481_request_.cancel(),this.JSC$17479_channelDebug_.debug("Test connection succeeded; using streaming connection"),i0(12),eA(this.JSC$17479_channel_,this,!0)):(i0(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.J.JSC$17481_onRequestComplete=function(){this.JSC$17481_lastStatusCode_=this.JSC$17481_request_.JSC$17474_lastStatusCode_;this.JSC$17481_request_.JSC$17474_successful_?this.state_==0?(this.JSC$17479_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,zkN(this)):(this.state_=2,xYO(this))):this.state_==2&&(this.JSC$17479_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17479_channelDebug_.debug("Test connection succeeded; using streaming connection"),
i0(12),eA(this.JSC$17479_channel_,this,!0)):(this.JSC$17479_channelDebug_.debug("Test connection failed; not using streaming"),i0(11),eA(this.JSC$17479_channel_,this,!1))):(this.JSC$17479_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?i0(9):this.state_==2&&i0(10),I28(this.JSC$17479_channel_,this,this.JSC$17481_request_.getLastError()))};
_.J.JSC$17481_shouldUseSecondaryDomains=function(){return this.JSC$17479_channel_.JSC$17481_shouldUseSecondaryDomains()};
_.J.isActive=function(){return this.JSC$17479_channel_.isActive()};
_.J.notifyServerReachabilityEvent=function(S){this.JSC$17479_channel_.notifyServerReachabilityEvent(S)};var kP=function(S,c,Q){this.state_=1;this.JSC$17482_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17482_channelDebug_=new DU;this.JSC$17482_parser_=new KY;this.firstTestResults_=S||null;this.secondTestResults_=c!=null?c:null;this.asyncTest_=Q||!1},nN0=function(S,c){this.JSC$17484_mapId=S;
this.map=c;this.context=null};
_.J=kP.prototype;_.J.JSC$17486_extraHeaders_=null;_.J.JSC$17486_extraParams_=null;_.J.forwardChannelRequest_=null;_.J.JSC$17486_backChannelRequest_=null;_.J.JSC$17486_path_=null;_.J.JSC$17486_forwardChannelUri_=null;_.J.JSC$17486_backChannelUri_=null;_.J.JSC$17486_hostPrefix_=null;_.J.JSC$17486_nextRid_=0;_.J.JSC$17486_nextMapId_=0;_.J.handler_=null;_.J.JSC$17486_forwardChannelTimerId_=null;_.J.JSC$17486_backChannelTimerId_=null;_.J.JSC$17486_deadBackChannelTimerId_=null;_.J.connectionTest_=null;
_.J.useChunked_=null;_.J.JSC$17486_lastArrayId_=-1;_.J.JSC$17486_lastPostResponseArrayId_=-1;_.J.JSC$17486_lastStatusCode_=-1;_.J.JSC$17486_forwardChannelRetryCount_=0;_.J.JSC$17486_backChannelRetryCount_=0;_.J.JSC$17486_channelVersion_=8;var bLV={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},N6Z=function(S,c,Q,f){_.K0.call(this,"timingevent",S);this.size=c;this.rtt=Q;this.retries=f};
_.Xa(N6Z,_.K0);var KUg=function(S){_.K0.call(this,"serverreachability",S)};
_.Xa(KUg,_.K0);kP.prototype.connect=function(S,c,Q,f,U){this.JSC$17482_channelDebug_.debug("connect()");i0(0);this.JSC$17486_path_=c;this.JSC$17486_extraParams_=Q||{};f&&U!==void 0&&(this.JSC$17486_extraParams_.OSID=f,this.JSC$17486_extraParams_.OAID=U);this.asyncTest_?(HO((0,_.H1)(this.connectTest_,this,S),100),$Yp(this)):this.connectTest_(S)};
kP.prototype.disconnect=function(){this.JSC$17482_channelDebug_.debug("disconnect()");ug2(this);if(this.state_==3){var S=this.JSC$17486_nextRid_++,c=this.JSC$17486_forwardChannelUri_.clone();_.to(c,"SID",this.sid_);_.to(c,"RID",S);_.to(c,"TYPE","terminate");rI(this,c);S=new Z9(this,this.JSC$17482_channelDebug_,this.sid_,S);S.JSC$17474_type_=2;S.JSC$17474_baseUri_=_.Ob(c.clone());(new Image).src=S.JSC$17474_baseUri_.toString();S.JSC$17474_requestStartTime_=Date.now();Q0V(S)}j0E(this)};
kP.prototype.connectTest_=function(S){this.JSC$17482_channelDebug_.debug("connectTest_()");this.connectionTest_=new XEO(this,this.JSC$17482_channelDebug_);this.connectionTest_.JSC$17481_extraHeaders_=this.JSC$17486_extraHeaders_;this.connectionTest_.JSC$17479_parser_=this.JSC$17482_parser_;this.connectionTest_.connect(S)};
var $Yp=function(S){S.JSC$17482_channelDebug_.debug("connectChannel_()");S.JSC$17486_ensureInState_(1,0);S.JSC$17486_forwardChannelUri_=OLT(S,S.JSC$17486_path_);l2p(S)},ug2=function(S){S.connectionTest_&&(S.connectionTest_.abort(),S.connectionTest_=null);
S.JSC$17486_backChannelRequest_&&(S.JSC$17486_backChannelRequest_.cancel(),S.JSC$17486_backChannelRequest_=null);S.JSC$17486_backChannelTimerId_&&(_.QY.clearTimeout(S.JSC$17486_backChannelTimerId_),S.JSC$17486_backChannelTimerId_=null);YWg(S);S.forwardChannelRequest_&&(S.forwardChannelRequest_.cancel(),S.forwardChannelRequest_=null);S.JSC$17486_forwardChannelTimerId_&&(_.QY.clearTimeout(S.JSC$17486_forwardChannelTimerId_),S.JSC$17486_forwardChannelTimerId_=null)},CKN=function(S,c){if(S.state_==0)throw Error("Bk");
S.JSC$17482_outgoingMaps_.length==1E3&&S.JSC$17482_parser_.stringify(c);S.JSC$17482_outgoingMaps_.push(new nN0(S.JSC$17486_nextMapId_++,c));S.state_!=2&&S.state_!=3||l2p(S)};
kP.prototype.JSC$17481_isClosed=function(){return this.state_==0};
kP.prototype.getState=function(){return this.state_};
var l2p=function(S){S.forwardChannelRequest_||S.JSC$17486_forwardChannelTimerId_||(S.JSC$17486_forwardChannelTimerId_=HO((0,_.H1)(S.JSC$17486_onStartForwardChannelTimer_,S),0),S.JSC$17486_forwardChannelRetryCount_=0)};
kP.prototype.JSC$17486_onStartForwardChannelTimer_=function(S){this.JSC$17486_forwardChannelTimerId_=null;HLZ(this,S)};
var HLZ=function(S,c){S.JSC$17482_channelDebug_.debug("startForwardChannel_");if(S.state_==1){if(!c){S.JSC$17482_channelDebug_.debug("open_()");S.JSC$17486_nextRid_=Math.floor(Math.random()*1E5);c=S.JSC$17486_nextRid_++;var Q=new Z9(S,S.JSC$17482_channelDebug_,"",c);Q.JSC$17474_extraHeaders_=S.JSC$17486_extraHeaders_;var f=DY1(S),U=S.JSC$17486_forwardChannelUri_.clone();_.to(U,"RID",c);_.to(U,"CVER","1");rI(S,U);SWE(Q,U,f);S.forwardChannelRequest_=Q;S.state_=2}}else S.state_==3&&(c?pEg(S,c):S.JSC$17482_outgoingMaps_.length==
0?S.JSC$17482_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):S.forwardChannelRequest_||(pEg(S),S.JSC$17482_channelDebug_.debug("startForwardChannel_ finished, sent request")))},pEg=function(S,c){if(c)if(S.JSC$17486_channelVersion_>6){S.JSC$17482_outgoingMaps_=S.pendingMaps_.concat(S.JSC$17482_outgoingMaps_);
S.pendingMaps_.length=0;var Q=S.JSC$17486_nextRid_-1;c=DY1(S)}else Q=c.JSC$17472_rid_,c=c.JSC$17474_postData_;else Q=S.JSC$17486_nextRid_++,c=DY1(S);var f=S.JSC$17486_forwardChannelUri_.clone();_.to(f,"SID",S.sid_);_.to(f,"RID",Q);_.to(f,"AID",S.JSC$17486_lastArrayId_);rI(S,f);Q=new Z9(S,S.JSC$17482_channelDebug_,S.sid_,Q,S.JSC$17486_forwardChannelRetryCount_+1);Q.JSC$17474_extraHeaders_=S.JSC$17486_extraHeaders_;Q.setTimeout(1E4+Math.round(1E4*Math.random()));S.forwardChannelRequest_=Q;SWE(Q,f,c)},
rI=function(S,c){S.handler_&&(S=S.handler_.JSC$17493_getAdditionalParams())&&_.Cn.forEach(S,function(Q,f){_.to(c,f,Q)})},DY1=function(S){var c=Math.min(S.JSC$17482_outgoingMaps_.length,1E3),Q=["count="+c];
if(S.JSC$17486_channelVersion_>6&&c>0){var f=S.JSC$17482_outgoingMaps_[0].JSC$17484_mapId;Q.push("ofs="+f)}else f=0;for(var U={},a=0;a<c;U={mapId$jscomp$3:void 0},a++){U.mapId$jscomp$3=S.JSC$17482_outgoingMaps_[a].JSC$17484_mapId;var X=S.JSC$17482_outgoingMaps_[a].map;U.mapId$jscomp$3=S.JSC$17486_channelVersion_<=6?a:U.mapId$jscomp$3-f;try{_.Cn.forEach(X,function(z){return function(x,I){Q.push("req"+z.mapId$jscomp$3+"_"+I+"="+encodeURIComponent(x))}}(U))}catch(z){Q.push("req"+U.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}S.pendingMaps_=S.pendingMaps_.concat(S.JSC$17482_outgoingMaps_.splice(0,c));
return Q.join("&")},hk0=function(S){S.JSC$17486_backChannelRequest_||S.JSC$17486_backChannelTimerId_||(S.JSC$17486_backChannelAttemptId_=1,S.JSC$17486_backChannelTimerId_=HO((0,_.H1)(S.JSC$17486_onStartBackChannelTimer_,S),0),S.JSC$17486_backChannelRetryCount_=0)},T6B=function(S){if(S.JSC$17486_backChannelRequest_||S.JSC$17486_backChannelTimerId_||S.JSC$17486_backChannelRetryCount_>=3)return!1;
S.JSC$17482_channelDebug_.debug("Going to retry GET");S.JSC$17486_backChannelAttemptId_++;S.JSC$17486_backChannelTimerId_=HO((0,_.H1)(S.JSC$17486_onStartBackChannelTimer_,S),qWN(S,S.JSC$17486_backChannelRetryCount_));S.JSC$17486_backChannelRetryCount_++;return!0};
kP.prototype.JSC$17486_onStartBackChannelTimer_=function(){this.JSC$17486_backChannelTimerId_=null;this.JSC$17482_channelDebug_.debug("Creating new HttpRequest");this.JSC$17486_backChannelRequest_=new Z9(this,this.JSC$17482_channelDebug_,this.sid_,"rpc",this.JSC$17486_backChannelAttemptId_);this.JSC$17486_backChannelRequest_.JSC$17474_extraHeaders_=this.JSC$17486_extraHeaders_;this.JSC$17486_backChannelRequest_.JSC$17474_readyStateChangeThrottleMs_=0;var S=this.JSC$17486_backChannelUri_.clone();_.to(S,
"RID","rpc");_.to(S,"SID",this.sid_);_.to(S,"CI",this.useChunked_?"0":"1");_.to(S,"AID",this.JSC$17486_lastArrayId_);rI(this,S);_.to(S,"TYPE","xmlhttp");ckp(this.JSC$17486_backChannelRequest_,S,!0,this.JSC$17486_hostPrefix_,!1);this.JSC$17482_channelDebug_.debug("New Request created")};
var eA=function(S,c,Q){S.JSC$17482_channelDebug_.debug("Test Connection Finished");S.useChunked_=S.secondTestResults_==null?Q:!S.secondTestResults_;S.JSC$17486_lastStatusCode_=c.JSC$17481_lastStatusCode_;S.asyncTest_||$Yp(S)},I28=function(S,c){S.JSC$17482_channelDebug_.debug("Test Connection Failed");
S.JSC$17486_lastStatusCode_=c.JSC$17481_lastStatusCode_;gI(S,2)};
kP.prototype.JSC$17481_onRequestData=function(S,c){if(this.state_!=0&&(this.JSC$17486_backChannelRequest_==S||this.forwardChannelRequest_==S))if(this.JSC$17486_lastStatusCode_=S.JSC$17474_lastStatusCode_,this.forwardChannelRequest_==S&&this.state_==3)if(this.JSC$17486_channelVersion_>7){try{var Q=this.JSC$17482_parser_.parse(c)}catch(f){Q=null}if(Array.isArray(Q)&&Q.length==3)if(c=Q,c[0]==0)a:if(this.JSC$17482_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17486_backChannelTimerId_)this.JSC$17482_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17486_backChannelRequest_)if(this.JSC$17486_backChannelRequest_.JSC$17474_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17474_requestStartTime_)YWg(this),this.JSC$17486_backChannelRequest_.cancel(),this.JSC$17486_backChannelRequest_=null;else break a;else this.JSC$17482_channelDebug_.warning("We do not have a BackChannel established");T6B(this);i0(19)}else this.JSC$17486_lastPostResponseArrayId_=c[1],S=this.JSC$17486_lastPostResponseArrayId_-this.JSC$17486_lastArrayId_,0<
S&&(c=c[2],this.JSC$17482_channelDebug_.debug(c+" bytes (in "+S+" arrays) are outstanding on the BackChannel"),c<37500&&this.useChunked_&&this.JSC$17486_backChannelRetryCount_==0&&!this.JSC$17486_deadBackChannelTimerId_&&(this.JSC$17486_deadBackChannelTimerId_=HO((0,_.H1)(this.JSC$17486_onBackChannelDead_,this),6E3)));else this.JSC$17482_channelDebug_.debug("Bad POST response data returned"),gI(this,11)}else c!="y2f%"&&(this.JSC$17482_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
gI(this,11));else this.JSC$17486_backChannelRequest_==S&&YWg(this),_.Xo(c)||(S=this.JSC$17482_parser_.parse(c),this.onInput_(S))};
kP.prototype.JSC$17486_onBackChannelDead_=function(){this.JSC$17486_deadBackChannelTimerId_!=null&&(this.JSC$17486_deadBackChannelTimerId_=null,this.JSC$17486_backChannelRequest_.cancel(),this.JSC$17486_backChannelRequest_=null,T6B(this),i0(20))};
var YWg=function(S){S.JSC$17486_deadBackChannelTimerId_!=null&&(_.QY.clearTimeout(S.JSC$17486_deadBackChannelTimerId_),S.JSC$17486_deadBackChannelTimerId_=null)};
kP.prototype.JSC$17481_onRequestComplete=function(S){this.JSC$17482_channelDebug_.debug("Request complete");if(this.JSC$17486_backChannelRequest_==S){YWg(this);this.JSC$17486_backChannelRequest_=null;var c=2}else if(this.forwardChannelRequest_==S)this.forwardChannelRequest_=null,c=1;else return;this.JSC$17486_lastStatusCode_=S.JSC$17474_lastStatusCode_;if(this.state_!=0)if(S.JSC$17474_successful_)if(c==1){c=S.JSC$17474_postData_?S.JSC$17474_postData_.length:0;S=Date.now()-S.JSC$17474_requestStartTime_;
var Q=tgE;Q.dispatchEvent(new N6Z(Q,c,S,this.JSC$17486_forwardChannelRetryCount_));l2p(this);this.handler_&&this.handler_.JSC$17493_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else hk0(this);else{Q=S.getLastError();if(Q==3||Q==7||Q==0&&this.JSC$17486_lastStatusCode_>0)this.JSC$17482_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17482_channelDebug_.debug("Maybe retrying, last error: "+R18(Q,this.JSC$17486_lastStatusCode_));var f;if(f=c==1)this.forwardChannelRequest_||
this.JSC$17486_forwardChannelTimerId_||this.state_==1||this.JSC$17486_forwardChannelRetryCount_>=2?f=!1:(this.JSC$17482_channelDebug_.debug("Going to retry POST"),this.JSC$17486_forwardChannelTimerId_=HO((0,_.H1)(this.JSC$17486_onStartForwardChannelTimer_,this,S),qWN(this,this.JSC$17486_forwardChannelRetryCount_)),this.JSC$17486_forwardChannelRetryCount_++,f=!0);if(f||c==2&&T6B(this))return;this.JSC$17482_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17482_channelDebug_.debug("Error: HTTP request failed");
switch(Q){case 1:gI(this,5);break;case 4:gI(this,10);break;case 3:gI(this,6);break;case 7:gI(this,12);break;default:gI(this,2)}}};
var qWN=function(S,c){var Q=5E3+Math.floor(Math.random()*1E4);S.isActive()||(S.JSC$17482_channelDebug_.debug("Inactive channel"),Q*=2);return Q*c};
kP.prototype.onInput_=function(S){for(var c=0;c<S.length;c++){var Q=S[c];this.JSC$17486_lastArrayId_=Q[0];Q=Q[1];this.state_==2?Q[0]=="c"?(this.sid_=Q[1],this.JSC$17486_hostPrefix_=Q[2],Q=Q[3],Q!=null?this.JSC$17486_channelVersion_=Q:this.JSC$17486_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17493_channelOpened(),this.JSC$17486_backChannelUri_=B6E(this,this.JSC$17486_hostPrefix_,this.JSC$17486_path_),hk0(this)):Q[0]=="stop"&&gI(this,7):this.state_==3&&(Q[0]=="stop"?gI(this,7):
Q[0]!="noop"&&this.handler_&&this.handler_.JSC$17493_channelHandleArray(Q),this.JSC$17486_backChannelRetryCount_=0)}};
kP.prototype.JSC$17486_ensureInState_=function(S){if(!_.dp(arguments,this.state_))throw Error("Ck`"+this.state_);};
var gI=function(S,c){S.JSC$17482_channelDebug_.info("Error code "+c);if(c==2||c==9){var Q=null;S.handler_&&(Q=null);var f=(0,_.H1)(S.testGoogleComCallback_,S);Q||(Q=new _.V7("//www.google.com/images/cleardot.gif"),_.Ob(Q));gQZ(Q.toString(),1E4,f)}else i0(2);S.onError_(c)};
kP.prototype.testGoogleComCallback_=function(S){S?(this.JSC$17482_channelDebug_.info("Successfully pinged google.com"),i0(2)):(this.JSC$17482_channelDebug_.info("Failed to ping google.com"),i0(1),this.onError_(8))};
kP.prototype.onError_=function(S){this.JSC$17482_channelDebug_.debug("HttpChannel: error - "+S);this.state_=0;this.handler_&&this.handler_.JSC$17493_channelError(S);j0E(this);ug2(this)};
var j0E=function(S){S.state_=0;S.JSC$17486_lastStatusCode_=-1;if(S.handler_)if(S.pendingMaps_.length==0&&S.JSC$17482_outgoingMaps_.length==0)S.handler_.JSC$17493_channelClosed();else{S.JSC$17482_channelDebug_.debug("Number of undelivered maps, pending: "+S.pendingMaps_.length+", outgoing: "+S.JSC$17482_outgoingMaps_.length);var c=_.VY(S.pendingMaps_),Q=_.VY(S.JSC$17482_outgoingMaps_);S.pendingMaps_.length=0;S.JSC$17482_outgoingMaps_.length=0;S.handler_.JSC$17493_channelClosed(c,Q)}},OLT=function(S,
c){c=FUp(S,null,c);
S.JSC$17482_channelDebug_.debug("GetForwardChannelUri: "+c);return c},B6E=function(S,c,Q){c=FUp(S,S.JSC$17481_shouldUseSecondaryDomains()?c:null,Q);
S.JSC$17482_channelDebug_.debug("GetBackChannelUri: "+c);return c},FUp=function(S,c,Q){var f=_.L9(Q);
if(f.JSC$8068_domain_!="")c&&_.cm(f,c+"."+f.JSC$8068_domain_),_.Qr(f,f.JSC$8068_port_);else{var U=window.location;f=mK2(U.protocol,c?c+"."+U.hostname:U.hostname,+U.port,Q)}S.JSC$17486_extraParams_&&_.Cn.forEach(S.JSC$17486_extraParams_,function(a,X){_.to(f,X,a)});
_.to(f,"VER",S.JSC$17486_channelVersion_);rI(S,f);return f};
kP.prototype.JSC$17481_createXhrIo=function(S){if(S)throw Error("zk");S=new _.wT;S.JSC$7833_withCredentials_=!1;return S};
kP.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
kP.prototype.notifyServerReachabilityEvent=function(S){var c=tgE;c.dispatchEvent(new KUg(c,S))};
kP.prototype.JSC$17481_shouldUseSecondaryDomains=function(){return!1};
new JaU;var wE2=function(){};
_.J=wE2.prototype;_.J.JSC$17493_channelOpened=function(){};
_.J.JSC$17493_channelHandleArray=function(){};
_.J.JSC$17493_channelSuccess=function(){};
_.J.JSC$17493_channelError=function(){};
_.J.JSC$17493_channelClosed=function(){};
_.J.JSC$17493_getAdditionalParams=function(){return{}};
_.J.isActive=function(){return!0};var s01=function(S){S.front_.length===0&&(S.front_=S.back_,S.front_.reverse(),S.back_=[])};
_.J=rOE.prototype;_.J.enqueue=function(S){this.back_.push(S)};
_.J.peek=function(){s01(this);return _.Gz(this.front_)};
_.J.getCount=function(){return this.front_.length+this.back_.length};
_.J.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.J.clear=function(){this.front_=[];this.back_=[]};
_.J.contains=function(S){return _.dp(this.front_,S)||_.dp(this.back_,S)};
_.J.remove=function(S){var c=this.front_;var Q=Array.prototype.lastIndexOf.call(c,S,c.length-1);Q>=0?(_.ET(c,Q),c=!0):c=!1;return c||_.tZ(this.back_,S)};
_.J.getValues=function(){for(var S=[],c=this.front_.length-1;c>=0;--c)S.push(this.front_[c]);c=this.back_.length;for(var Q=0;Q<c;++Q)S.push(this.back_[Q]);return S};var dI=function(S){this.JSC$17497_map_=new _.O$;this.size=0;S&&this.addAll(S)},M5G=function(S){var c=typeof S;
return c=="object"&&S||c=="function"?"o"+_.Qd(S):c.charAt(0)+S};
_.J=dI.prototype;_.J.getCount=function(){return this.JSC$17497_map_.size};
_.J.add=function(S){this.JSC$17497_map_.set(M5G(S),S);this.size=this.JSC$17497_map_.size};
_.J.addAll=function(S){S=_.mL(S);for(var c=S.length,Q=0;Q<c;Q++)this.add(S[Q]);this.size=this.JSC$17497_map_.size};
_.J.removeAll=function(S){S=_.mL(S);for(var c=S.length,Q=0;Q<c;Q++)this.remove(S[Q]);this.size=this.JSC$17497_map_.size};
_.J.delete=function(S){S=this.JSC$17497_map_.remove(M5G(S));this.size=this.JSC$17497_map_.size;return S};
_.J.remove=function(S){return this.delete(S)};
_.J.clear=function(){this.JSC$17497_map_.clear();this.size=0};
_.J.isEmpty=function(){return this.JSC$17497_map_.size===0};
_.J.has=function(S){return this.JSC$17497_map_.containsKey(M5G(S))};
_.J.contains=function(S){return this.JSC$17497_map_.containsKey(M5G(S))};
_.J.getValues=function(){return this.JSC$17497_map_.getValues()};
_.J.values=function(){return this.JSC$17497_map_.values()};
_.J.clone=function(){return new dI(this)};
_.J.equals=function(S){return this.getCount()==y2O(S)&&iLE(this,S)};
var iLE=function(S,c){var Q=y2O(c);if(S.getCount()>Q)return!1;!(c instanceof dI)&&Q>5&&(c=new dI(c));return oz2(S,function(f){var U=c;return U.contains&&typeof U.contains=="function"?U.contains(f):U.containsValue&&typeof U.containsValue=="function"?U.containsValue(f):_.yY(U)||typeof U==="string"?_.dp(U,f):_.Cn.containsValue(U,f)})};
dI.prototype.__iterator__=function(){return this.JSC$17497_map_.__iterator__(!1)};
dI.prototype[Symbol.iterator]=function(){return this.values()};var ZL1={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(S){return(this._clampValue(S)-this.min)/(this.max-this.min)},
_clampValue:function(S){return Math.min(this.max,Math.max(this.min,this._calcStep(S)))},
_calcStep:function(S){S=parseFloat(S);if(!this.step)return S;S=Math.round((S-this.min)/this.step);return this.step<1?S/(1/this.step)+this.min:S*this.step+this.min},
_validateValue:function(){var S=this._clampValue(this.value);this.value=this.oldValue=isNaN(S)?this.oldValue:S;return this.value!==S},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var GSZ;var WU8;_.DI({_template:function(){if(WU8!==void 0)return WU8;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;GSZ===void 0&&(GSZ=document.createElement("template"));var f=GSZ;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return WU8=S},
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(){_.tO(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(S){S.keyCode===27&&(S.preventDefault(),this.close())},
_track:function(S){if(!this.persistent&&!this.disableSwipe)switch(S.preventDefault(),S.detail.state){case "start":this._trackStart(S);break;case "track":this._trackMove(S);break;case "end":this._trackEnd(S)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var S=this.$.contentContainer.getBoundingClientRect();this._savedWidth=S.width;this._translateOffset=this.position==="left"?S.left:S.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(S){this._trackDetails&&(this._translateDrawer(S.detail.dx+this._translateOffset),this._trackDetails.push({dx:S.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(S){if(this._trackDetails){var c=S.detail.dx+this._translateOffset,Q=this.getWidth();c=this.position==="left"?c>=0||c<=-Q:c<=0||c>=Q;if(!c){var f=this._trackDetails;this._trackDetails=null;this._flingDrawer(S,f);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}Q/=2;S.detail.dx<-Q?this.opened=this.position==="right":S.detail.dx>Q&&(this.opened=this.position==="left");c?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(S,c){for(var Q=Date.now(),f=Q-100,U,a=0,X=c.length-1;a<=X;){var z=a+X>>1,x=c[z];x.timeStamp>=f?(U=x,X=z-1):a=z+1}return U?(S.detail.dx-U.dx)/(Q-U.timeStamp||1):0},
_flingDrawer:function(S,c){c=this._calculateVelocity(S,c);if(!(Math.abs(c)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;S=S.detail.dx+this._translateOffset;var Q=this.getWidth(),f=this.position==="left",U=c>0;U?(c=Math.max(c,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(c=Math.min(c,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");c=this._FLING_INITIAL_SLOPE*(!U&&f?-(S+Q):U&&!f?Q-S:-S)/c;this._styleTransitionDuration(c);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,c)}},
_styleTransitionDuration:function(S){this.style.transitionDuration=S+"ms";this.$.contentContainer.style.transitionDuration=S+"ms";this.$.scrim.style.transitionDuration=S+"ms"},
_styleTransitionTimingFunction:function(S){this.$.contentContainer.style.transitionTimingFunction=S;this.$.scrim.style.transitionTimingFunction=S},
_translateDrawer:function(S){var c=this.getWidth();this.position==="left"?(S=Math.max(-c,Math.min(S,0)),this.$.scrim.style.opacity=1+S/c):(S=Math.max(0,Math.min(S,c)),this.$.scrim.style.opacity=1-S/c);this.translate3d(S+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var S=this._drawerState;S===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;S!==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=""),S!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var S=_.YU(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"])');S.length>0?(this._firstTabStop=S[0],this._lastTabStop=S[S.length-1]):
this._lastTabStop=this._firstTabStop=null;(S=this.getAttribute("tabindex"))&&parseInt(S,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(S){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||S.keyCode!==9||(S.shiftKey?this._firstTabStop&&_.YU(S).localTarget===this._firstTabStop&&(S.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.YU(S).localTarget===this._lastTabStop&&(S.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(S,c){this.toggleClass("visible",S&&!c,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 gN1;var ekT;_.DI({_template:function(){if(ekT!==void 0)return ekT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;gN1===void 0&&(gN1=document.createElement("template"));var f=gN1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return ekT=S},
is:"tp-yt-paper-progress",behaviors:[ZL1],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(S){this.toggleClass("indeterminate",S,this.$.primaryProgress)},
_transformProgress:function(S,c){S.style.transform=S.style.webkitTransform="scaleX("+c/100+")"},
_mainRatioChanged:function(S){this._transformProgress(this.$.primaryProgress,S)},
_progressChanged:function(S,c,Q,f,U){S=this._clampValue(S);c=this._clampValue(c);var a=this._calcRatio(S)*100,X=this._calcRatio(c)*100;this._setSecondaryRatio(a);this._transformProgress(this.$.secondaryProgress,a);this._transformProgress(this.$.primaryProgress,X);this.secondaryProgress=S;U?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",c);this.setAttribute("aria-valuemin",Q);this.setAttribute("aria-valuemax",f)},
_disabledChanged:function(S){this.setAttribute("aria-disabled",S?"true":"false")},
_hideSecondaryProgress:function(S){return S===0}});var kSp;var rkp;var dY2=function(){};
_.J=dY2.prototype;_.J.registered=function(){};
_.J.addOwnKeyBinding=function(){};
_.J.removeOwnKeyBindings=function(){};
_.J.keyboardEventMatchesKeys=function(){};
_.J._collectKeyBindings=function(){};
_.J._prepKeyBindings=function(){};
_.J._addKeyBinding=function(){};
_.J._resetKeyEventListeners=function(){};
_.J._listenKeyEventListeners=function(){};
_.J._unlistenKeyEventListeners=function(){};
_.J._onKeyBindingEvent=function(){};
_.J._triggerKeyHandler=function(){};
_.J._tapHandler=function(){};
_.J._focusChanged=function(){};
_.J._detectKeyboardFocus=function(){};
_.J._userActivate=function(){};
_.J._upHandler=function(){};
_.J._spaceKeyDownHandler=function(){};
_.J._spaceKeyUpHandler=function(){};
_.J._asyncClick=function(){};
_.J._pressedChanged=function(){};
_.J._ariaActiveAttributeChanged=function(){};
_.J._activeChanged=function(){};
_.J._controlStateChanged=function(){};
_.J._changedButtonState=function(){};
_.J._focusBlurHandler=function(){};
_.J._disabledChanged=function(){};
_.J._changedControlState=function(){};
_.J._buttonStateChanged=function(){};
_.J._downHandler=function(){};
_.J.ensureRipple=function(){};
_.J.getRipple=function(){};
_.J.hasRipple=function(){};
_.J._noinkChanged=function(){};
_.J._calcRatio=function(){};
_.J._clampValue=function(){};
_.J._calcStep=function(){};
_.J._validateValue=function(){};
_.J._update=function(){};
_.J._setImmediateValue=function(){};
_.J._setExpand=function(){};
_.J._setDragging=function(){};
_.J._setTransiting=function(){};
_.J._setMarkers=function(){};
_.J._setPressed=function(){};
_.J._setPointerDown=function(){};
_.J._setReceivedFocusFromKeyboard=function(){};
_.J._setFocused=function(){};
_.J._setRatio=function(){};
dY2=_.DI({_template:function(){if(rkp!==void 0)return rkp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;kSp===void 0&&(kSp=document.createElement("template"));var f=kSp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return rkp=S},
is:"tp-yt-paper-slider",behaviors:[_.lc,_.DV,_.Qil,ZL1],properties:{value:{type:Number,value:0},snaps:{type:Boolean,value:!1,notify:!0},pin:{type:Boolean,value:!1,notify:!0},secondaryProgress:{type:Number,value:0,notify:!0,observer:"_secondaryProgressChanged"},editable:{type:Boolean,value:!1},immediateValue:{type:Number,value:0,readOnly:!0,notify:!0},maxMarkers:{type:Number,value:0,notify:!0},expand:{type:Boolean,value:!1,readOnly:!0},ignoreBarTouch:{type:Boolean,value:!1},dragging:{type:Boolean,
value:!1,readOnly:!0,notify:!0},transiting:{type:Boolean,value:!1,readOnly:!0},markers:{type:Array,readOnly:!0,value:function(){return[]}},
light:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["_updateKnob(value, min, max, snaps, step)","_valueChanged(value)","_immediateValueChanged(immediateValue)","_updateMarkers(maxMarkers, min, max, snaps)"],hostAttributes:{role:"slider",tabindex:0},keyBindings:{left:"_leftKey",right:"_rightKey","down pagedown home":"_decrementKey","up pageup end":"_incrementKey"},ready:function(){this.ignoreBarTouch&&_.wK(this.$.sliderBar,"auto")},
increment:function(){this.value=this._clampValue(this.value+this.step)},
decrement:function(){this.value=this._clampValue(this.value-this.step)},
_updateKnob:function(S,c,Q){this.setAttribute("aria-valuemin",c);this.setAttribute("aria-valuemax",Q);this.setAttribute("aria-valuenow",S);this._positionKnob(this._calcRatio(S)*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(S){this._setImmediateValue(this._calcStep(this._calcKnobPosition(S)));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(S){return(this.max-this.min)*S/100+this.min},
_onTrack:function(S){S.stopPropagation();switch(S.detail.state){case "start":this._trackStart(S);break;case "track":this._trackX(S);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(S){this.dragging||this._trackStart(S);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,S.detail.dx*(this._isRTL?-1:1)));S=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(S);S=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(S+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var S=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;S.transform=S.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(S){this._expandKnob();S.preventDefault();this.focus()},
_bartrack:function(S){this._allowBarEvent(S)&&this._onTrack(S)},
_barclick:function(S){this._w=this.$.sliderBar.offsetWidth;var c=this.$.sliderBar.getBoundingClientRect();c=(S.detail.x-c.left)/this._w*100;this._isRTL&&(c=100-c);var Q=this.ratio;this._setTransiting(!0);this._positionKnob(c);Q===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
S.preventDefault();this.focus()},
_bardown:function(S){this._allowBarEvent(S)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(S))},
_knobTransitionEnd:function(S){S.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(S,c,Q,f){f||this._setMarkers([]);c=Math.round((Q-c)/this.step);c>S&&(c=S);if(c<0||!isFinite(c))c=0;this._setMarkers(Array(c))},
_mergeClasses:function(S){return Object.keys(S).filter(function(c){return S[c]}).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(S){return!this.ignoreBarTouch||S.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(S){this._isRTL?this._incrementKey(S):this._decrementKey(S)},
_rightKey:function(S){this._isRTL?this._decrementKey(S):this._incrementKey(S)},
_incrementKey:function(S){this.disabled||(S.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),S.preventDefault())},
_decrementKey:function(S){this.disabled||(S.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),S.preventDefault())},
_changeValue:function(S){this.value=S.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(S){S.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.c8e._createRipple.call(this)},
_focusedChanged:function(S){S&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=S?"":"none",this._ripple.holdDown=S)}});var vNT;var PK0;var vR=null,LU1=function(){};
_.J=LU1.prototype;_.J.fit=function(){};
_.J._discoverInfo=function(){};
_.J.resetFit=function(){};
_.J.refit=function(){};
_.J.position=function(){};
_.J.constrain=function(){};
_.J._sizeDimension=function(){};
_.J.__sizeDimension=function(){};
_.J.center=function(){};
_.J.__getNormalizedRect=function(){};
_.J.__getOffscreenArea=function(){};
_.J.__getPosition=function(){};
_.J.notifyResize=function(){};
_.J.assignParentResizable=function(){};
_.J.stopResizeNotificationsFor=function(){};
_.J._subscribeIronResize=function(){};
_.J._unsubscribeIronResize=function(){};
_.J.resizerShouldNotify=function(){};
_.J._onDescendantIronResize=function(){};
_.J._fireResize=function(){};
_.J._onIronRequestResizeNotifications=function(){};
_.J._parentResizableChanged=function(){};
_.J._notifyDescendant=function(){};
_.J._requestResizeNotifications=function(){};
_.J._findParent=function(){};
_.J.toggle=function(){};
_.J.open=function(){};
_.J.close=function(){};
_.J.cancel=function(){};
_.J.invalidateTabbables=function(){};
_.J._ensureSetup=function(){};
_.J._canceledChanged=function(){};
_.J._withBackdropChanged=function(){};
_.J._prepareRenderOpened=function(){};
_.J._finishRenderOpened=function(){};
_.J._finishRenderClosed=function(){};
_.J._preparePositioning=function(){};
_.J._finishPositioning=function(){};
_.J._applyFocus=function(){};
_.J._onCaptureClick=function(){};
_.J._onCaptureFocus=function(){};
_.J._onCaptureEsc=function(){};
_.J._onCaptureTab=function(){};
_.J._onIronResize=function(){};
_.J._onNodesChange=function(){};
_.J.__ensureFirstLastFocusables=function(){};
_.J.__openedChanged=function(){};
_.J.__deraf=function(){};
_.J.__updateScrollObservers=function(){};
_.J.__addScrollListeners=function(){};
_.J.__removeScrollListeners=function(){};
_.J.__isValidScrollAction=function(){};
_.J.__onCaptureScroll=function(){};
_.J.__saveScrollPosition=function(){};
_.J.__restoreScrollPosition=function(){};
_.J._setCanceled=function(){};
LU1=_.DI({_template:function(){if(PK0!==void 0)return PK0;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;vNT===void 0&&(vNT=document.createElement("template"));var f=vNT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);return PK0=S},
is:"tp-yt-paper-toast",behaviors:[_.LO],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(){_.lK._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.k1.requestAvailability()},
show:function(S){typeof S=="string"&&(S={text:S});for(var c in S)c.indexOf("_")===0?_.lK._warn('The property "'+c+'" is private and was not set.'):c in this?this[c]=S[c]:_.lK._warn('The property "'+c+'" is not valid.');this.open()},
hide:function(){this.close()},
isOpened:function(){return this.opened},
__onTransitionEnd:function(S){S&&S.target===this&&S.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(vR&&vR!==this&&vR.close(),vR=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):vR===this&&(vR=null);_.Px._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(S){this.positionTarget=S},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var ENE=new _.L("disablePersonalizationAction");var ZJG=new _.L("showDmaConsentFlowCommand");var GWO=new _.L("showMmgNoticeCommand");var t5G=new _.L("saveConsentAction");var V5E=function(S){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.fh(S)};
_.C(V5E,_.Ga);var Rk8=_.mE(V5E);var yk1=new _.L("updateTopbarAvatarAction");var oNG=new _.L("channelHandleValidationResultRenderer");var mYZ=new _.L("generateHandleFromNameResultRenderer");var S$E=new _.L("channelHandleInputRenderer");var ceO=new _.L("copyLinkRenderer");var Q70=new _.L("timedCommand");var fV2=new _.L("clearCookieAction");var U9V=new _.L("getMultiPageMenuAction");var JeB=new _.L("addToGuideSectionAction"),aV2=new _.L("removeFromGuideSectionAction");var AeT=new _.L("updateNotificationsUnseenCountAction");var XxT=new _.L("resetChannelUnreadCountCommand");var OOT=new _.L("resetSubscriptionsUnreadDotCommand");var z6Z=new _.L("selectLanguageCommand");var ybZ=new _.L("sendFeedbackAction");var x9p=new _.L("uploadImageToScottyCommand");var FIB=new _.L("registerPromoCommand");var B9O=new _.L("setPushNotificationsEnabledCommand");var IVZ=new _.L("desktopTopbarRenderer");var n18=new _.L("surveyFollowUpRenderer");var bOg=new _.L("handlesClaimingRadioOptionRenderer");var N9g=new _.L("hotkeyDialogRenderer");var KIB=new _.L("modifyReportFormCommand");var $9p=new _.L("accountLinkCommand");var uw2=new _.L("accountUnlinkCommand");var j7p=new _.L("logAccountLinkingEventCommand");var lVZ=new _.L("guideCollapsibleEntryRenderer");var Y$g=new _.L("guideDownloadsEntryRenderer");var PR=new _.L("guideEntryRenderer");var CcE=new _.L("getLocationCommand");var HO1=new _.L("locationCollectionCommand");var D9Z=new _.L("storiesItemViewModel");var pxG=new _.L("addToRemoteQueueAction");var h6E=new _.L("insertInRemoteQueueAction");var q$0=new _.L("removeFromRemoteQueueAction");var T9Z=new _.L("notificationRenderer");var uUG=new _.L("localWatchHistoryCommand");var wx8=new _.L("pdgBuyFlowHeaderRenderer");var s71=new _.L("pdgColorSliderRenderer");var Msg=new _.L("pdgCommentOptionRenderer");var iOB=new _.L("pdgCommentPreviewRenderer");var ZOB=new _.L("superVodSelectableItemButtonRenderer");var GpO=new _.L("switchButtonRenderer");var WI2=new _.L("upsellDialogRenderer");var g1B=new _.L("feedbackQuestionRenderer"),e6G=new _.L("feedbackOptionRenderer");var kpG=new _.L("sponsorshipsTierRenderer"),reV=new _.L("sponsorshipsPromotionChannelRenderer");var d9T=new _.L("simpleSurveyMessageRenderer");var y40=new _.L("invokeInstrumentManagerAction");var v1V=new _.L("logYpcFlowDismissCommand");var Pc1=new _.L("logYpcFlowStartCommand");var LIg=new _.L("unlimitedCreateFamilyEndpoint");var E1p=new _.L("iconBadgeRenderer");var jBU=new _.L("collaborativePlaylistVisibilityValidationRule");var ts2=function(S){_.K0.call(this,"channelMessage");this.message=S};
_.C(ts2,_.K0);var Vsg=function(S){_.K0.call(this,"channelError");this.error=S};
_.C(Vsg,_.K0);var R6E={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"},yeU={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",
GAMING:"g",UNPLUGGED:"up"},o1p={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},m9E={NOW_PLAYING:"nowPlaying",ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Sa2={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var LY=function(S){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 _.O$;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;S&&(this.id=S.id||S.name,this.name=S.name,this.clientName=S.clientName?S.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=S.app,this.type=S.type||"REMOTE_CONTROL",this.username=S.user||"",this.avatar=S.userAvatarUri||"",this.obfuscatedGaiaId=S.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=S.ownerObfuscatedGaiaId||"",this.castUserId=S.castUserId||"",this.theme=S.theme||"u",cpT(this,S.capabilities||""),QJZ(this,
S.compatibleSenderThemes||""),fwp(this,S.experiments||""),this.remoteControllerUrl=S.remoteControllerUrl||"",this.localChannelEncryptionKey=S.localChannelEncryptionKey||"",this.deviceContext=S.deviceContext,this.brand=S.brand||"",this.model=S.model||"",this.year=S.year||0,this.os=S.os||"",this.osVersion=S.osVersion||"",this.chipset=S.chipset||"",this.mdxDialServerType=S.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=S.pairingType||"unknown",S=S.deviceInfo)&&(S=JSON.parse(S),this.brand=
S.brand||"",this.model=S.model||"",this.year=S.year||0,this.os=S.os||"",this.osVersion=S.osVersion||"",this.chipset=S.chipset||"",this.clientName=S.clientName?S.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=S.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
LY.prototype.copy=function(){var S={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&&(S.brand=this.brand);
this.model&&(S.model=this.model);this.year&&(S.year=this.year);this.os&&(S.os=this.os);this.osVersion&&(S.osVersion=this.osVersion);this.chipset&&(S.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(S.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(S.mdxDialServerType=this.mdxDialServerType);S=new LY(S);S.connected=this.connected;S.remoteControllerUrl=this.remoteControllerUrl;S.localChannelEncryptionKey=this.localChannelEncryptionKey;S.deviceContext=
this.deviceContext;S.castUserId=this.castUserId;return S};
LY.prototype.equals=function(S){return S?this.id==S.id:!1};
var cpT=function(S,c){S.capabilities.clear();_.z1(c.split(","),_.u2(_.Cn.contains,R6E)).forEach(function(Q){S.capabilities.add(Q)})},QJZ=function(S,c){S.compatibleSenderThemes.clear();
_.z1(c.split(","),_.u2(_.Cn.contains,yeU)).forEach(function(Q){S.compatibleSenderThemes.add(Q)})},fwp=function(S,c){S.experiments.clear();
c.split(",").forEach(function(Q){S.experiments.add(Q)})};var UBO=function(S,c){this.action=S;this.params=c||{}};_.Xa(dmE,_.C9);_.J=dmE.prototype;_.J.JSC$17533_onTick_=function(){this.JSC$17531_interval_=Math.min(3E5,this.JSC$17531_interval_*2);this.JSC$17533_listener_();this.nextTickTime_&&this.start()};
_.J.start=function(){var S=this.JSC$17531_interval_+15E3*Math.random(),c=this.delay_;c.isActive()||c.start(S);this.nextTickTime_=Date.now()+S};
_.J.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.J.isActive=function(){return this.delay_.isActive()};
_.J.reset=function(){this.delay_.stop();this.JSC$17531_interval_=5E3};_.Xa(pq,wE2);_.J=pq.prototype;_.J.subscribe=function(S,c,Q){return this.pubsub_.subscribe(S,c,Q)};
_.J.unsubscribe=function(S,c,Q){return this.pubsub_.unsubscribe(S,c,Q)};
_.J.unsubscribeByKey=function(S){return this.pubsub_.unsubscribeByKey(S)};
_.J.publish=function(S,c){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.J.dispose=function(){this.JSC$17534_disposed_||(this.JSC$17534_disposed_=!0,_.yN(this.pubsub_),this.disconnect(),_.yN(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17534_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.B2({})})};
_.J.isDisposed=function(){return this.JSC$17534_disposed_};
_.J.connect=function(S,c,Q){var f=this,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return _.xp(x,2),f.useAsyncBrowserChannelHandler_?_.F(x,f.connectPromise_,2):x.jumpTo(2);_.O7(x);if(f.JSC$17534_disposed_||f.JSC$17534_channel_&&f.JSC$17534_channel_.getState()==2)return x.return();f.sCookie_="";f.reconnectTimer_.stop();f.connectionParams_=S||null;f.connectUi_=c||0;U=f.JSC$17534_pathPrefix_+"/test";a=f.JSC$17534_pathPrefix_+"/bind";X=new kP(Q?Q.firstTestResults:null,Q?Q.secondTestResults:null,
f.enableAsyncTest_);if(z=f.JSC$17534_channel_)z.handler_=null;X.handler_=f;f.JSC$17534_channel_=X;if(f.useAsyncBrowserChannelHandler_)return f.connectPromise_=JpN(f).then(function(){return awV(f,U,a,z,Q)}),x.return(f.connectPromise_.then(function(){f.connectPromise_=_.B2()}));
awV(f,U,a,z,Q);return _.F1(x,0)})};
var awV=function(S,c,Q,f,U){App(S);if(S.JSC$17534_channel_){var a=_.WY("ID_TOKEN"),X=S.JSC$17534_channel_.JSC$17486_extraHeaders_||{};a?X["x-youtube-identity-token"]=a:delete X["x-youtube-identity-token"];S.JSC$17534_channel_.JSC$17486_extraHeaders_=X}XA2(S);f?(f.getState(),S.JSC$17534_channel_.connect(c,Q,S.defaultQueryParams_,f.sid_,f.JSC$17486_lastArrayId_)):U?S.JSC$17534_channel_.connect(c,Q,S.defaultQueryParams_,U.sessionId,U.arrayId):S.JSC$17534_channel_.connect(c,Q,S.defaultQueryParams_)};
pq.prototype.disconnect=function(S){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.B2())}finally{this.disconnectUi_=S||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),App(this),this.JSC$17534_channel_&&(this.JSC$17534_channel_.getState()==3&&HLZ(this.JSC$17534_channel_),this.JSC$17534_channel_.disconnect()),this.disconnectUi_=0}};
pq.prototype.sendMessage=function(S,c){var Q=this,f;return _.O(function(U){switch(U.nextAddress){case 1:_.xp(U,2);if(!Q.useAsyncBrowserChannelHandler_){U.jumpTo(2);break}return _.F(U,Q.connectPromise_,2);case 2:_.O7(U);if(Q.JSC$17534_disposed_)return U.return();f={_sc:S};c&&_.Cn.extend(f,c);if(Q.reconnectTimer_.isActive()||(Q.JSC$17534_channel_?Q.JSC$17534_channel_.getState():0)==2){Q.JSC$17534_pendingMessages_.push(f);U.jumpTo(6);break}if(!Q.isChannelOpened()){U.jumpTo(6);break}_.xp(U,8);if(!Q.useAsyncBrowserChannelHandler_||
OkN(Q,S)){U.jumpTo(8);break}return _.F(U,JpN(Q),8);case 8:_.O7(U,0,0,1);Q.isChannelOpened()&&(OkN(Q,S)||XA2(Q),App(Q),CKN(Q.JSC$17534_channel_,f));_.F1(U,6,1);break;case 6:_.F1(U,0)}})};
var OkN=function(S,c){return S.enableMdxAuthForConnectionOnly_?!0:S.disableMdxAuthForAdMessages_?Object.values(o1p).includes(c):S.disableMdxAuthForNonPlaybackMessages_?!Object.values(m9E).includes(c):S.disableMdxAuthForShortsMessages_?Object.values(Sa2).includes(c):!1};
pq.prototype.JSC$17493_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17534_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)zOZ(this);else{var S=this.JSC$17534_pendingMessages_;this.JSC$17534_pendingMessages_=[];var c=S.length;XA2(this);xBE(this,S,c);FxB(this)}else FxB(this)};
var zOZ=function(S){var c,Q;_.O(function(f){if(f.nextAddress==1)return _.xp(f,2),_.F(f,JpN(S),2);_.O7(f);c=S.JSC$17534_pendingMessages_;S.JSC$17534_pendingMessages_=[];Q=c.length;xBE(S,c,Q);FxB(S);return _.F1(f,0)})},xBE=function(S,c,Q){for(var f=0;f<Q;++f)CKN(S.JSC$17534_channel_,c[f]);
FxB(S)},FxB=function(S){S.publish("handlerOpened");
S.JSC$17534_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.J=pq.prototype;_.J.JSC$17493_channelError=function(S){var c=S==2&&this.JSC$17534_channel_.JSC$17486_lastStatusCode_==401;S==4||c||this.reconnectTimer_.start();this.publish("handlerError",S,c);c=Object.keys(bLV).find(function(Q){return bLV[Q]===S});
this.JSC$17534_channelErrorCounter.increment("BROWSER_CHANNEL",c!=null?c:"UNKNOWN")};
_.J.JSC$17493_channelClosed=function(S,c){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(c)for(var Q=c.length,f=0;f<Q;++f){var U=c[f].map;U&&this.JSC$17534_pendingMessages_.push(U)}this.JSC$17534_channelClosedCounter.increment("BROWSER_CHANNEL");S&&this.pendingMapsOnClosedCounter.JSC$7969_streamzService.JSC$7824_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",S.length);c&&this.undeliveredMapsOnClosedCounter.JSC$7972_streamzService.JSC$7824_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
c.length)};
_.J.JSC$17493_channelSuccess=function(S,c){c!=null&&S!=null&&this.channelMessageSentCounter.increment()};
_.J.JSC$17493_getAdditionalParams=function(){var S={v:2};this.sCookie_&&(S.gsessionid=this.sCookie_);this.connectUi_!=0&&(S.ui=""+this.connectUi_);this.disconnectUi_!=0&&(S.ui=""+this.disconnectUi_);this.connectionParams_&&_.Cn.extend(S,this.connectionParams_);return S};
_.J.JSC$17493_channelHandleArray=function(S){S[0]=="S"?this.sCookie_=S[1]:S[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17534_channel_.disconnect()):this.publish("handlerMessage",new UBO(S[0],S[1]));this.JSC$17534_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.J.isChannelOpened=function(){return!!this.JSC$17534_channel_&&this.JSC$17534_channel_.getState()==3};
var App=function(S){if(S.JSC$17534_channel_){var c=S.JSC$17534_getXsrfToken_(),Q=S.JSC$17534_channel_.JSC$17486_extraHeaders_||{};c?Q["x-youtube-lounge-xsrf-token"]=c:delete Q["x-youtube-lounge-xsrf-token"];S.JSC$17534_channel_.JSC$17486_extraHeaders_=Q}},JpN=function(S){if(S.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.B2();
if(!S.enableCachedUpdateAuthorizationHeader_)return BxN(S);S.updateAuthorizationHeaderPromise_===null&&(S.updateAuthorizationHeaderPromise_=BxN(S));return S.updateAuthorizationHeaderPromise_},BxN=function(S){return _.p0(S.getAuthorizationHeader_().then(function(c){IwE(S,c)}).thenCatch(function(){}),function(){S.updateAuthorizationHeaderPromise_=null})},IwE=function(S,c){if(S.JSC$17534_channel_){var Q=S.JSC$17534_channel_.JSC$17486_extraHeaders_||{};
c&&Object.keys(c).length>0?Q=Object.assign({},Q,c):delete Q.Authorization;S.JSC$17534_channel_.JSC$17486_extraHeaders_=Q}},XA2=function(S){S.getAuthorizationHeaderSync_&&!S.useAsyncBrowserChannelHandler_&&IwE(S,S.getAuthorizationHeaderSync_())};
_.J=pq.prototype;_.J.setLoungeToken=function(S){(this.defaultQueryParams_.loungeIdToken=S)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17534_channel_){var c=this.JSC$17534_channel_.JSC$17486_extraHeaders_||{};S?c["X-YouTube-LoungeId-Token"]=S:delete c["X-YouTube-LoungeId-Token"];this.JSC$17534_channel_.JSC$17486_extraHeaders_=c}};
_.J.getDeviceId=function(){return this.defaultQueryParams_.id};
_.J.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var S=this.reconnectTimer_;S.delay_.fire();S.start()};
_.J.safeReconnect_=function(){var S=this.JSC$17534_channel_,c=0;S.JSC$17486_backChannelRequest_&&c++;S.forwardChannelRequest_&&c++;c==0&&this.connect(this.connectionParams_,this.connectUi_)};var iU=function(S,c){var Q=S.basePath;S.supportCors&&(Q=S.scheme+"://"+S.domain+S.port+S.basePath);return _.V0(Q+c,{})};
hr.prototype.sendRequest=function(S,c,Q,f,U,a,X){S={format:a?"RAW":"JSON",method:S,context:this,timeout:5E3,withCredentials:!!X,onSuccess:_.u2(this.JSC$17539_onSuccess_,f,!a),onError:_.u2(this.onError_,U),onTimeout:_.u2(this.JSC$17539_onTimeout_,U)};Q&&(S.postParams=Q,S.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.I6(c,S)};
hr.prototype.JSC$17539_onSuccess_=function(S,c,Q,f){c?S(f):S({text:Q.responseText})};
hr.prototype.onError_=function(S,c){S(Error("Dk`"+c.status))};
hr.prototype.JSC$17539_onTimeout_=function(S){S(Error("Ek"))};var T6=function(S,c){return!!c&&(S.id==c||S.uuid==c)},ncp=function(S){return{name:S.name,
screenId:S.id,loungeToken:S.token,dialId:S.uuid,screenIdType:S.idType}},bkU=function(S){return new qM(S)},NxE=function(S){return Array.isArray(S)?_.D0(S,bkU):[]},oUp=function(S){if(!S)return"null";
var c=S.token?".."+S.token.slice(-6):"-",Q=S.uuid?".."+S.uuid.slice(-6):"-";return'{name:"'+S.name+'",id:'+S.id.substr(0,6)+"..,token:"+(c+",uuid:"+Q+",idType:"+S.idType+"}")},DEE=function(S){return Array.isArray(S)?"["+_.D0(S,oUp).join(",")+"]":"null"};var aq0="",MM=null;var nUZ=function(S,c){_.Y5.call(this);var Q=this;this.handler=S();this.handler.subscribe("handlerOpened",this.JSC$17546_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(f,U){Q.onError(U)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=c};
_.C(nUZ,_.Y5);_.J=nUZ.prototype;_.J.connect=function(S,c,Q){this.handler.connect(S,c,Q)};
_.J.disconnect=function(S){this.handler.disconnect(S)};
_.J.reconnect=function(){this.handler.reconnect()};
_.J.getDeviceId=function(){return this.handler.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.J.JSC$17546_onOpened=function(){this.dispatchEvent("channelOpened");var S=this.handler,c=this.currentScreenId;_.F6("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!S.JSC$17534_channel_.useChunked_,sessionId:S.JSC$17534_channel_.sid_,arrayId:S.JSC$17534_channel_.JSC$17486_lastArrayId_});_.F6("yt-remote-session-screen-id",c);S=SMV();c=cG2();_.dp(S,c)||S.push(c);JGE(S);UEZ()};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(S){this.dispatchEvent(new ts2(S))};
_.J.onError=function(S){this.dispatchEvent(new Vsg(S?1:0))};
_.J.sendMessage=function(S,c){this.handler.sendMessage(S,c)};
_.J.setLoungeToken=function(S){this.handler.setLoungeToken(S)};
_.J.dispose=function(){this.handler.dispose()};var Iqp=function(S,c,Q){var f=this;Q=Q===void 0?function(){return""}:Q;
var U=U===void 0?new dST:U;var a=a===void 0?new _.bB:a;this.pathPrefix=S;this.defaultQueryParams=c;this.getXsrfToken=Q;this.JSC$17549_pubsub=a;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new dmE(function(){var X;((X=f.channel)==null?void 0:Kup((new LuB(X,X.JSC$17457_channel_)).JSC$17467_channel_.forwardChannelRequestPool_))===0&&f.connect(f.connectionParams,f.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17549_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17549_channelOpenedCounter=new vQg;this.JSC$17549_channelClosedCounter=new POT;this.JSC$17549_channelMessageReceivedCounter=new EQ2;this.JSC$17549_channelErrorCounter=new tRO};
Iqp.prototype.connect=function(S,c){S=S===void 0?{}:S;c=c===void 0?0:c;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=S,this.connectUi=c,KxN(this),(S=_.WY("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=S: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 M8(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,$BU(this))};
var $BU=function(S){_.HI(S.channel,"w",function(){S.channelState=3;S.reconnectTimer.reset();S.connectionParams=null;S.connectUi=0;for(var c=_.A(S.nonAckedMessagesOnChannelClosed),Q=c.next();!Q.done;Q=c.next())Q=Q.value,S.channel&&S.channel.send(Q);S.nonAckedMessagesOnChannelClosed=[];S.publish("webChannelOpened");S.JSC$17549_channelOpenedCounter.increment("WEB_CHANNEL")});
_.HI(S.channel,"x",function(){S.channelState=0;S.reconnectTimer.isActive()||S.publish("webChannelClosed");var c,Q=(c=S.channel)==null?void 0:EoG(new LuB(c,c.JSC$17457_channel_));Q&&(S.nonAckedMessagesOnChannelClosed=[].concat(_.Hs(Q)));S.JSC$17549_channelClosedCounter.increment("WEB_CHANNEL")});
_.HI(S.channel,"z",function(c){var Q=c.data;Q[0]==="gracefulReconnect"?(S.reconnectTimer.start(),S.channel&&S.channel.close()):S.publish("webChannelMessage",new UBO(Q[0],Q[1]));S.lastStatusCode=c.statusCode;S.JSC$17549_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.HI(S.channel,"y",function(){S.lastStatusCode===401||S.reconnectTimer.start();S.publish("webChannelError");S.JSC$17549_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.J=Iqp.prototype;_.J.disconnect=function(S){this.disconnectUi=S===void 0?0:S;this.reconnectTimer.stop();KxN(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.J.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.J.reconnect=function(){var S=this.reconnectTimer;S.delay_.fire();S.start()};
_.J.sendMessage=function(S,c){this.channel&&(KxN(this),S=Object.assign({},{_sc:S},c),this.channel.send(S))};
_.J.setLoungeToken=function(S){S||this.reconnectTimer.stop();S?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=S:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var KxN=function(S){var c=S.getXsrfToken();c?S.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=c:delete S.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.J=Iqp.prototype;_.J.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.J.publish=function(S){return this.JSC$17549_pubsub.publish.apply(this.JSC$17549_pubsub,[S].concat(_.Hs(_.YD.apply(1,arguments))))};
_.J.subscribe=function(S,c,Q){return this.JSC$17549_pubsub.subscribe(S,c,Q)};
_.J.unsubscribe=function(S,c,Q){return this.JSC$17549_pubsub.unsubscribe(S,c,Q)};
_.J.unsubscribeByKey=function(S){return this.JSC$17549_pubsub.unsubscribeByKey(S)};
_.J.dispose=function(){this.JSC$17549_disposed||(this.JSC$17549_disposed=!0,_.yN(this.JSC$17549_pubsub),this.disconnect(),_.yN(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.J.isDisposed=function(){return this.JSC$17549_disposed};var BNO=function(S){_.Y5.call(this);this.webChannelService=S();this.webChannelService.subscribe("webChannelOpened",this.JSC$17557_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.C(BNO,_.Y5);_.J=BNO.prototype;_.J.connect=function(S,c){this.webChannelService.connect(S,c)};
_.J.disconnect=function(S){this.webChannelService.disconnect(S)};
_.J.reconnect=function(){this.webChannelService.reconnect()};
_.J.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.J.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.J.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.J.JSC$17557_onOpened=function(){this.dispatchEvent("channelOpened")};
_.J.onClosed=function(){this.dispatchEvent("channelClosed")};
_.J.onMessage=function(S){this.dispatchEvent(new ts2(S))};
_.J.onError=function(){this.dispatchEvent(new Vsg(this.webChannelService.lastStatusCode===401?1:0))};
_.J.sendMessage=function(S,c){this.webChannelService.sendMessage(S,c)};
_.J.setLoungeToken=function(S){this.webChannelService.setLoungeToken(S)};
_.J.dispose=function(){this.webChannelService.dispose()};var HPO=Date.now(),ZU=null,YME=Array(50),gB=-1,Cx2=!1;_.Xa(ek,_.R4);ek.prototype.getScreens=function(){return this.screens};
ek.prototype.contains=function(S){return!!mmN(this.screens,S)};
ek.prototype.get=function(S){return S?wB(this.screens,S):null};
var uP1=function(S,c){var Q=S.get(c.uuid)||S.get(c.id);if(Q)return S=Q.name,Q.id=c.id||Q.id,Q.name=c.name,Q.token=c.token,Q.uuid=c.uuid||Q.uuid,Q.name!=S;S.screens.push(c);return!0},jJ8=function(S,c){var Q=S.screens.length!=c.length;
S.screens=_.z1(S.screens,function(a){return!!mmN(c,a)});
for(var f=c.length,U=0;U<f;U++)Q=uP1(S,c[U])||Q;return Q},lw8=function(S,c){var Q=S.screens.length;
S.screens=_.z1(S.screens,function(f){return!(f||c?!f!=!c?0:f.id==c.id:1)});
return S.screens.length<Q};
ek.prototype.info=function(S){G6(this.JSC$17558_logName_,S)};var YaN=function(S,c,Q,f,U){_.R4.call(this);this.JSC$17561_http_=S;this.pairingCode_=c;this.deviceId_=Q;this.friendlyName_=f;this.enableShortLivedLoungeToken_=U;this.pollIndex_=0;this.JSC$17561_xhr_=null;this.JSC$17561_timer_=NaN};
_.C(YaN,_.R4);_.J=YaN.prototype;_.J.start=function(){!this.JSC$17561_xhr_&&isNaN(this.JSC$17561_timer_)&&this.poll_()};
_.J.stop=function(){this.JSC$17561_xhr_&&(this.JSC$17561_xhr_.abort(),this.JSC$17561_xhr_=null);isNaN(this.JSC$17561_timer_)||(_.FJ(this.JSC$17561_timer_),this.JSC$17561_timer_=NaN)};
_.J.disposeInternal=function(){this.stop();_.R4.prototype.disposeInternal.call(this)};
_.J.poll_=function(){this.JSC$17561_timer_=NaN;this.JSC$17561_xhr_=_.I6(iU(this.JSC$17561_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.H1)(this.JSC$17563_onSuccess_,this),onError:(0,_.H1)(this.onError_,this),onTimeout:(0,_.H1)(this.JSC$17563_onTimeout_,this)})};
_.J.JSC$17563_onSuccess_=function(S,c){this.JSC$17561_xhr_=null;S=c.screen||{};S.dialId=this.deviceId_;S.name=this.friendlyName_;c=-1;this.enableShortLivedLoungeToken_&&S.shortLivedLoungeToken&&S.shortLivedLoungeToken.value&&S.shortLivedLoungeToken.refreshIntervalMs&&(S.screenIdType="shortLived",S.loungeToken=S.shortLivedLoungeToken.value,c=S.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new qM(S),c)};
_.J.onError_=function(S){this.JSC$17561_xhr_=null;S.status&&S.status==404?this.pollIndex_>=CAO.length?this.publish("pairingFailed",Error("Fk")):(S=CAO[this.pollIndex_],this.JSC$17561_timer_=_.zD((0,_.H1)(this.poll_,this),S),this.pollIndex_++):this.publish("pairingFailed",Error("Gk`"+S.status))};
_.J.JSC$17563_onTimeout_=function(){this.JSC$17561_xhr_=null;this.publish("pairingFailed",Error("Hk"))};
var CAO=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.Xa(rB,ek);_.J=rB.prototype;_.J.start=function(){k7(this)&&this.publish("screenChange");!_.Bb("yt-remote-lounge-token-expiration")&&Hkg(this);_.FJ(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.zD((0,_.H1)(this.start,this),1E4)};
_.J.add=function(S,c){k7(this);uP1(this,S);DBG(this,!1);this.publish("screenChange");c(S);S.token||Hkg(this)};
_.J.remove=function(S,c){var Q=k7(this);lw8(this,S)&&(DBG(this,!1),Q=!0);c(S);Q&&this.publish("screenChange")};
_.J.updateName=function(S,c,Q,f){var U=k7(this),a=this.get(S.id);a?(a.name!=c&&(a.name=c,DBG(this,!1),U=!0),Q(S)):f(Error("Ik"));U&&this.publish("screenChange")};
_.J.disposeInternal=function(){_.FJ(this.loungeTokenRefreshTimer_);rB.superClass_.disposeInternal.call(this)};
var Hkg=function(S){if(S.screens.length){var c=_.D0(S.screens,function(f){return f.id}),Q=iU(S.JSC$17565_http_,"/pairing/get_lounge_token_batch");
S.JSC$17565_http_.sendRequest("POST",Q,{screen_ids:c.join(",")},(0,_.H1)(S.handleLoungeTokens_,S),(0,_.H1)(S.handleLoungeTokenError_,S))}};
rB.prototype.handleLoungeTokens_=function(S){k7(this);var c=this.screens.length;S=S&&S.screens||[];for(var Q=S.length,f=0;f<Q;++f){var U=S[f],a=this.get(U.screenId);a&&(a.token=U.loungeToken,--c)}DBG(this,!c);c&&G6(this.JSC$17558_logName_,"Missed "+c+" lounge tokens.")};
rB.prototype.handleLoungeTokenError_=function(S){G6(this.JSC$17558_logName_,"Requesting lounge tokens failed: "+S)};
var k7=function(S){if(_.u("deprecate_pair_servlet_enabled"))return jJ8(S,[]);var c=NxE(Xd0());c=_.z1(c,function(Q){return!Q.uuid});
return jJ8(S,c)},DBG=function(S,c){zzU(_.D0(S.screens,ncp));
c&&OP0()};var Ek=function(S,c){_.R4.call(this);this.getScreensToCheck_=c;c=(c=_.Bb("yt-remote-online-screen-ids")||"")?c.split(","):[];for(var Q={},f=this.getScreensToCheck_(),U=f.length,a=0;a<U;++a){var X=f[a].id;Q[X]=_.dp(c,X)}this.screenIdSet_=Q;this.JSC$17568_http_=S;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;pAT("Initialized with "+(0,_.TN)(this.screenIdSet_))};
_.C(Ek,_.R4);Ek.prototype.isOnline=function(S){return!!this.screenIdSet_[S]};
Ek.prototype.start=function(){var S=parseInt(_.Bb("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.AP()-144E5<S?0:S)?hOT(this):(this.fastCheckEndTime_=_.AP()+3E5,_.F6("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
Ek.prototype.isEmpty=function(){return _.Cn.isEmpty(this.screenIdSet_)};
Ek.prototype.update=function(){pAT("Updating availability on schedule.");var S=this.getScreensToCheck_(),c=_.Cn.filter(this.screenIdSet_,function(Q,f){return Q&&!!wB(S,f)},this);
qaN(this,c)};
var TxT=function(S,c,Q){var f=iU(S.JSC$17568_http_,"/pairing/get_screen_availability");S.JSC$17568_http_.sendRequest("POST",f,{lounge_token:c.token},(0,_.H1)(function(U){U=U.screens||[];for(var a=U.length,X=0;X<a;++X)if(U[X].loungeToken==c.token){Q(U[X].status=="online");return}Q(!1)},S),(0,_.H1)(function(){Q(!1)},S))};
Ek.prototype.disposeInternal=function(){_.FJ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.R4.prototype.disposeInternal.call(this)};
var qaN=function(S,c){a:if(_.Cn.getCount(c)!=_.Cn.getCount(S.screenIdSet_))var Q=!1;else{Q=_.Cn.getKeys(c);for(var f=Q.length,U=0;U<f;++U)if(!S.screenIdSet_[Q[U]]){Q=!1;break a}Q=!0}Q||(pAT("Updated online screens: "+(0,_.TN)(S.screenIdSet_)),S.screenIdSet_=c,S.publish("screenChange"));wAG(S)},hOT=function(S){isNaN(S.refreshTimer_)||_.FJ(S.refreshTimer_);
S.refreshTimer_=_.zD((0,_.H1)(S.requestScreenAvailability_,S),S.fastCheckEndTime_>0&&S.fastCheckEndTime_<_.AP()?2E4:1E4)};
Ek.prototype.requestScreenAvailability_=function(){_.FJ(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var S=sJE(this);if(_.Cn.getCount(S)){var c=iU(this.JSC$17568_http_,"/pairing/get_screen_availability"),Q={lounge_token:_.Cn.getKeys(S).join(",")};this.currentRequest_=this.JSC$17568_http_.sendRequest("POST",c,Q,(0,_.H1)(this.onScreenAvailability_,this,S),(0,_.H1)(this.onScreenAvailabilityError_,this))}else qaN(this,{}),hOT(this)};
Ek.prototype.onScreenAvailability_=function(S,c){this.currentRequest_=null;var Q=_.Cn.getKeys(sJE(this));if(_.A$(Q,_.Cn.getKeys(S))){c=c.screens||[];Q={};for(var f=c.length,U=0;U<f;++U)Q[S[c[U].loungeToken]]=c[U].status=="online";qaN(this,Q);hOT(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
Ek.prototype.onScreenAvailabilityError_=function(S){this.warn_("Screen availability failed: "+S);this.currentRequest_=null;hOT(this)};
var pAT=function(S){G6("OnlineScreenService",S)};
Ek.prototype.warn_=function(S){G6("OnlineScreenService",S)};
var sJE=function(S){var c={};_.PY(S.getScreensToCheck_(),function(Q){Q.token?c[Q.token]=Q.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return c},wAG=function(S){S=_.Cn.getKeys(_.Cn.filter(S.screenIdSet_,function(c){return c}));
S.sort(_.Ud);S.length?_.F6("yt-remote-online-screen-ids",S.join(","),60):_.It("yt-remote-online-screen-ids")};_.Xa(dB,ek);_.J=dB.prototype;_.J.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.J.add=function(S,c,Q){this.localScreenService_.add(S,c,Q)};
_.J.remove=function(S,c,Q){this.localScreenService_.remove(S,c,Q);this.onlineScreenService_.update()};
_.J.updateName=function(S,c,Q,f){this.localScreenService_.contains(S)?this.localScreenService_.updateName(S,c,Q,f):(S="Updating name of unknown screen: "+S.name,G6(this.JSC$17558_logName_,S),f(Error(S)))};
_.J.getScreens=function(S){return S?this.screens:lh1(this.screens,_.z1(this.automaticScreens_,function(c){return!this.contains(c)},this))};
_.J.JSC$17573_getOnlineScreens=function(){return _.z1(this.getScreens(!0),function(S){return this.onlineScreenService_.isOnline(S.id)},this)};
var ik8=function(S,c,Q,f,U,a){S.info("getAutomaticScreenByIds "+Q+" / "+c);Q||(Q=S.deviceToScreenId_[c]);var X=S.getScreens(),z=Q?wB(X,Q):null;Q&&(S.disableAutomaticScreenCache_||z)||(z=wB(X,c));if(z){z.uuid=c;var x=tf(S,z);TxT(S.onlineScreenService_,x,function(I){U(I?x:null)})}else Q?MTE(S,Q,(0,_.H1)(function(I){var n=tf(this,new qM({name:f,
screenId:Q,loungeToken:I,dialId:c||""}));TxT(this.onlineScreenService_,n,function(b){U(b?n:null)})},S),a):U(null)};
dB.prototype.JSC$17573_getScreenByPollingPairingCode=function(S,c,Q,f,U,a){var X=this;this.info("getDialScreenByPairingCode "+S+" / "+c);var z=new YaN(this.JSC$17571_http_,S,c,Q,f);z.subscribe("pairingComplete",function(x,I){_.yN(z);U(tf(X,x),I)});
z.subscribe("pairingFailed",function(x){_.yN(z);a(x)});
z.start();return(0,_.H1)(z.stop,z)};
var ZkO=function(S,c){for(var Q=S.screens.length,f=0;f<Q;++f)if(S.screens[f].name==c)return S.screens[f];return null};
dB.prototype.JSC$17573_getScreenByPairingCode=function(S,c,Q,f){_.I6(iU(this.JSC$17571_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:S},timeout:5E3,onSuccess:(0,_.H1)(function(U,a){U=new qM(a.screen||{});if(!U.name||ZkO(this,U.name)){a:{a=U.name;for(var X=2,z=c(a,X);ZkO(this,z);){X++;if(X>20)break a;z=c(a,X)}a=z}U.name=a}Q(tf(this,U))},this),
onError:(0,_.H1)(function(U){f(Error("Jk`"+U.status))},this),
onTimeout:(0,_.H1)(function(){f(Error("Kk"))},this)})};
var GFg=function(S,c,Q){TxT(S.onlineScreenService_,c,Q)};
dB.prototype.disposeInternal=function(){_.yN(this.localScreenService_);_.yN(this.onlineScreenService_);dB.superClass_.disposeInternal.call(this)};
var MTE=function(S,c,Q,f){S.info("requestLoungeToken_ for "+c);var U={postParams:{screen_ids:c},method:"POST",context:S,onSuccess:function(a,X){a=X&&X.screens||[];a[0]&&a[0].screenId==c?Q(a[0].loungeToken):f(Error("Lk"))},
onError:function(){f(Error("Mk"))}};
_.I6(iU(S.JSC$17571_http_,"/pairing/get_lounge_token_batch"),U)},WxE=function(S){S.screens=S.localScreenService_.getScreens();
for(var c=_.Cn.transpose(S.deviceToScreenId_),Q=S.screens.length,f=0;f<Q;++f){var U=S.screens[f];U.uuid=c[U.id]||""}S.info("Updated manual screens: "+DEE(S.screens))};
dB.prototype.handleScreenChange_=function(){WxE(this);this.publish("screenChange");this.onlineScreenService_.update()};
var pdZ=function(S){gcT(S);S.localScreenService_=new rB(S.JSC$17571_http_);S.localScreenService_.subscribe("screenChange",(0,_.H1)(S.handleScreenChange_,S));WxE(S);S.disableAutomaticScreenCache_||(S.automaticScreens_=NxE(_.Bb("yt-remote-automatic-screen-cache")||[]));gcT(S);S.info("Initializing automatic screens: "+DEE(S.automaticScreens_));S.onlineScreenService_=new Ek(S.JSC$17571_http_,(0,_.H1)(S.getScreens,S,!0));S.onlineScreenService_.subscribe("screenChange",(0,_.H1)(function(){this.publish("onlineScreenChange")},
S))},tf=function(S,c){var Q=S.get(c.id);
Q?(Q.uuid=c.uuid,c=Q):((Q=wB(S.automaticScreens_,c.uuid))?(Q.id=c.id,Q.token=c.token,c=Q):S.automaticScreens_.push(c),S.disableAutomaticScreenCache_||eO1(S));gcT(S);S.deviceToScreenId_[c.uuid]=c.id;_.F6("yt-remote-device-id-map",S.deviceToScreenId_,31536E3);return c},eO1=function(S){S=_.z1(S.automaticScreens_,function(c){return c.idType!="shortLived"});
_.F6("yt-remote-automatic-screen-cache",_.D0(S,ncp))},gcT=function(S){S.deviceToScreenId_=_.Bb("yt-remote-device-id-map")||{}};
dB.prototype.dispose=dB.prototype.dispose;_.Xa(vO,_.R4);var VM=function(S,c){S.screen_=c;S.publish("sessionScreen",S.screen_)},kFZ=function(S,c){S.screen_&&(S.screen_.token=c,tf(S.JSC$17575_screenService_,S.screen_));
S.publish("sessionScreen",S.screen_)};
vO.prototype.onSessionStopped=function(S){this.isDisposed()||(S&&(Rf(this,""+S),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
vO.prototype.info=function(S){G6(this.JSC$17575_logName_,S)};
var Rf=function(S,c){G6(S.JSC$17575_logName_,c)};
vO.prototype.JSC$17577_getCastSession=function(){return null};
vO.prototype.setDisplayStatus=function(S){var c=this.receiver_;S?(c.displayStatus=new chrome.cast.ReceiverDisplayStatus(S,[]),c.displayStatus.showStop=!0):c.displayStatus=null;chrome.cast.setReceiverDisplayStatus(c,(0,_.H1)(function(){this.info("Updated receiver status for "+c.friendlyName+": "+S)},this),(0,_.H1)(function(){Rf(this,"Failed to update receiver status for: "+c.friendlyName)},this))};
vO.prototype.disposeInternal=function(){this.setDisplayStatus("");vO.superClass_.disposeInternal.call(this)};var yM=function(S,c,Q){vO.call(this,S,c,"CastSession");var f=this;this.config_=Q;this.JSC$17580_session_=null;this.JSC$17580_boundSessionUpdate_=(0,_.H1)(this.JSC$17582_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.H1)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.zD(function(){rpT(f,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17580_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17580_isInitLoungeToken_=!1;this.JSC$17580_lastLoungeTokenRefreshError_="unknown"};
_.C(yM,vO);_.J=yM.prototype;
_.J.setCastSession=function(S){if(this.JSC$17580_session_){if(this.JSC$17580_session_==S)return;Rf(this,"Overriding cast session with new session object");dBE(this);this.JSC$17580_isInitLoungeToken_=!1;this.JSC$17580_lastLoungeTokenRefreshError_="unknown";this.JSC$17580_session_.removeUpdateListener(this.JSC$17580_boundSessionUpdate_);this.JSC$17580_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17580_session_=S;this.JSC$17580_session_.addUpdateListener(this.JSC$17580_boundSessionUpdate_);this.JSC$17580_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);vcV(this,"getMdxSessionStatus")};
_.J.launchWithParams=function(S){this.info("launchWithParams no-op for Cast: "+(0,_.TN)(S))};
_.J.stop=function(){if(this.JSC$17580_session_)this.JSC$17580_session_.stop((0,_.H1)(function(){this.onSessionStopped()},this),(0,_.H1)(function(){this.onSessionStopped(Error("Nk"))},this));
else this.onSessionStopped(Error("Ok"))};
_.J.setDisplayStatus=function(){};
_.J.disposeInternal=function(){this.info("disposeInternal");dBE(this);this.JSC$17580_session_&&(this.JSC$17580_session_.removeUpdateListener(this.JSC$17580_boundSessionUpdate_),this.JSC$17580_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17580_session_=null;vO.prototype.disposeInternal.call(this)};
var LxG=function(S,c){_.FJ(S.getLoungeTokenTimeoutKey_);S.getLoungeTokenTimeoutKey_=0;c==0?PA2(S):S.getLoungeTokenTimeoutKey_=_.zD(function(){PA2(S)},c)},PA2=function(S){vcV(S,"getLoungeToken");
_.FJ(S.onLoungeTokenTimeoutKey_);S.onLoungeTokenTimeoutKey_=_.zD(function(){Ec2(S,null)},3E4)},vcV=function(S,c){S.info("sendYoutubeMessage_: "+c+" "+(0,_.TN)(void 0));
var Q={};Q.type=c;S.JSC$17580_session_?S.JSC$17580_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",Q,function(){},(0,_.H1)(function(){Rf(this,"Failed to send message: "+c+".")},S)):Rf(S,"Sending yt message without session: "+(0,_.TN)(Q))};
yM.prototype.onYoutubeMessage_=function(S,c){if(!this.isDisposed())if(c)if(c=(0,_.Dq)(c),_.c_(c))switch(S=""+c.type,c=c.data||{},this.info("onYoutubeMessage_: "+S+" "+(0,_.TN)(c)),S){case "mdxSessionStatus":rpT(this,c);break;case "loungeToken":Ec2(this,c);break;default:Rf(this,"Unknown youtube message: "+S)}else Rf(this,"Unable to parse message.");else Rf(this,"No data in message.")};
var tTZ=function(S,c){if(c)S.info("onConnectedScreenId_: Received screenId: "+c),S.screen_&&S.screen_.id==c||S.getScreen_(c,function(Q){VM(S,Q)},function(){return S.onSessionStopped()},5);
else S.onSessionStopped(Error("Pk"))},ROB=function(S,c,Q){S.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(c));
var f=new qM(c);VTg(S,f,function(U){U?(S.JSC$17580_isInitLoungeToken_=!0,tf(S.JSC$17575_screenService_,f),VM(S,f),S.JSC$17580_lastLoungeTokenRefreshError_="unknown",LxG(S,Q)):(_.eG(Error("Qk`"+JSON.stringify(c))),S.onSessionStopped())},5)},rpT=function(S,c){_.FJ(S.sessionStatusTimeoutKey_);
S.sessionStatusTimeoutKey_=0;if(c)S.config_.enableCastLoungeToken&&c.loungeToken?c.deviceId?S.screen_&&S.screen_.uuid==c.deviceId||(c.loungeTokenRefreshIntervalMs?ROB(S,{name:S.receiver_.friendlyName,screenId:c.screenId,loungeToken:c.loungeToken,dialId:c.deviceId,screenIdType:"shortLived"},c.loungeTokenRefreshIntervalMs):(_.eG(Error("Sk`"+JSON.stringify(c))),tTZ(S,c.screenId))):(_.eG(Error("Rk`"+JSON.stringify(c))),tTZ(S,c.screenId)):tTZ(S,c.screenId);else S.onSessionStopped(Error("Pk"))},Ec2=function(S,
c){_.FJ(S.onLoungeTokenTimeoutKey_);
S.onLoungeTokenTimeoutKey_=0;var Q=null;if(c)if(c.loungeToken){var f;((f=S.screen_)==null?void 0:f.token)==c.loungeToken&&(Q="staleLoungeToken")}else Q="missingLoungeToken";else Q="noLoungeTokenResponse";Q?(S.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(c)+", error: "+Q)),S.JSC$17580_lastLoungeTokenRefreshError_=Q,LxG(S,3E4)):(kFZ(S,c.loungeToken),S.JSC$17580_isInitLoungeToken_=!1,S.JSC$17580_lastLoungeTokenRefreshError_="unknown",LxG(S,c.loungeTokenRefreshIntervalMs))};
yM.prototype.getScreen_=function(S,c,Q,f){_.FJ(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;ik8(this.JSC$17575_screenService_,this.receiver_.label,S,this.receiver_.friendlyName,(0,_.H1)(function(U){U?c(U):f>=0?(Rf(this,"Screen "+S+" appears to be offline. "+f+" retries left."),this.getScreenTimeoutKey_=_.zD((0,_.H1)(this.getScreen_,this,S,c,Q,f-1),300)):Q(Error("Tk"))},this),Q)};
var VTg=function(S,c,Q,f){_.FJ(S.JSC$17580_checkScreenAvailabilityTimeoutKey_);S.JSC$17580_checkScreenAvailabilityTimeoutKey_=0;GFg(S.JSC$17575_screenService_,c,function(U){U||f<0?Q(U):S.JSC$17580_checkScreenAvailabilityTimeoutKey_=_.zD(function(){VTg(S,c,Q,f-1)},300)})};
yM.prototype.JSC$17577_getCastSession=function(){return this.JSC$17580_session_};
yM.prototype.JSC$17582_onSessionUpdate_=function(S){this.isDisposed()||S||(Rf(this,"Cast session died."),this.onSessionStopped())};
var dBE=function(S){_.FJ(S.getScreenTimeoutKey_);S.getScreenTimeoutKey_=0;_.FJ(S.JSC$17580_checkScreenAvailabilityTimeoutKey_);S.JSC$17580_checkScreenAvailabilityTimeoutKey_=0;_.FJ(S.sessionStatusTimeoutKey_);S.sessionStatusTimeoutKey_=0;_.FJ(S.onLoungeTokenTimeoutKey_);S.onLoungeTokenTimeoutKey_=0;_.FJ(S.getLoungeTokenTimeoutKey_);S.getLoungeTokenTimeoutKey_=0};var c6=function(S,c,Q,f){vO.call(this,S,c,"DialSession");this.config_=f;this.JSC$17584_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17584_theme_=Q;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17584_deferredLaunchDeadlineTimer_=NaN;this.JSC$17584_boundSessionUpdate_=(0,_.H1)(this.JSC$17586_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17584_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17584_isInitLoungeToken_=!1;this.JSC$17584_lastLoungeTokenRefreshError_="unknown"};
_.C(c6,vO);c6.prototype.setCastSession=function(S){this.JSC$17584_session_=S;this.JSC$17584_session_.addUpdateListener(this.JSC$17584_boundSessionUpdate_)};
c6.prototype.launchWithParams=function(S){this.connectData_=S;this.deferredLaunch_()};
c6.prototype.stop=function(){ypO(this);if(this.JSC$17584_session_)this.JSC$17584_session_.stop((0,_.H1)(this.onSessionStopped,this,null),(0,_.H1)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
c6.prototype.disposeInternal=function(){ypO(this);this.JSC$17584_session_&&this.JSC$17584_session_.removeUpdateListener(this.JSC$17584_boundSessionUpdate_);this.JSC$17584_session_=null;vO.prototype.disposeInternal.call(this)};
var ocN=function(S){var c;return!!(S.config_.enableDialLoungeToken&&((c=S.JSC$17584_session_)==null?0:c.getDialAppInfo))},mBO=function(S){S.cancelPolling_=S.JSC$17575_screenService_.JSC$17573_getScreenByPollingPairingCode(S.reversePairingCode_,S.receiver_.label,S.receiver_.friendlyName,ocN(S),function(c,Q){S.cancelPolling_=function(){};
S.JSC$17584_isInitLoungeToken_=!0;VM(S,c);c.idType=="shortLived"&&Q>0&&Q2(S,Q)},function(c){S.cancelPolling_=function(){};
S.onSessionStopped(c)})};
c6.prototype.JSC$17586_onSessionUpdate_=function(S){this.isDisposed()||S||(Rf(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var ScT=function(S){var c={};c.pairingCode=S.reversePairingCode_;c.theme=S.JSC$17584_theme_;F1Z()&&(c.env_useStageMdx=1);return _.nl(c)},cAN=function(S){return new Promise(function(c){S.reversePairingCode_=yO8();
if(S.connectData_){var Q=new chrome.cast.DialLaunchResponse(!0,ScT(S));c(Q);mBO(S)}else S.deferredLaunch_=function(){_.FJ(S.JSC$17584_deferredLaunchDeadlineTimer_);S.deferredLaunch_=function(){};
S.JSC$17584_deferredLaunchDeadlineTimer_=NaN;var f=new chrome.cast.DialLaunchResponse(!0,ScT(S));c(f);mBO(S)},S.JSC$17584_deferredLaunchDeadlineTimer_=_.zD(function(){S.deferredLaunch_()},100)})},fCZ=function(S,c,Q){S.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(c));
var f=new qM(c);return(new Promise(function(U){QFZ(S,f,function(a){a?(S.JSC$17584_isInitLoungeToken_=!0,tf(S.JSC$17575_screenService_,f),VM(S,f),Q2(S,Q)):_.eG(Error("Vk`"+JSON.stringify(c)));U(a)},5)})).then(function(U){return U?new chrome.cast.DialLaunchResponse(!1):cAN(S)})},UiZ=function(S,c){var Q=S.launchData_.receiver.label,f=S.receiver_.friendlyName;
return(new Promise(function(U){ik8(S.JSC$17575_screenService_,Q,c,f,function(a){a&&a.token&&VM(S,a);U(a)},function(a){Rf(S,"Failed to get DIAL screen: "+a);
U(null)})})).then(function(U){return U&&U.token?new chrome.cast.DialLaunchResponse(!1):cAN(S)})},QFZ=function(S,c,Q,f){_.FJ(S.JSC$17584_checkScreenAvailabilityTimeoutKey_);
S.JSC$17584_checkScreenAvailabilityTimeoutKey_=0;GFg(S.JSC$17575_screenService_,c,function(U){U||f<0?Q(U):S.JSC$17584_checkScreenAvailabilityTimeoutKey_=_.zD(function(){QFZ(S,c,Q,f-1)},300)})},Q2=function(S,c){S.info("getDialAppInfoWithTimeout_ "+c);
ocN(S)&&(_.FJ(S.getDialAppInfoTimeoutKey_),S.getDialAppInfoTimeoutKey_=0,c==0?JAZ(S):S.getDialAppInfoTimeoutKey_=_.zD(function(){JAZ(S)},c))},JAZ=function(S){ocN(S)&&S.JSC$17584_session_.getDialAppInfo(function(c){S.info("getDialAppInfo dialLaunchData: "+JSON.stringify(c));
c=c.extraData||{};var Q=null;if(c.loungeToken){var f;((f=S.screen_)==null?void 0:f.token)==c.loungeToken&&(Q="staleLoungeToken")}else Q="missingLoungeToken";Q?(S.JSC$17584_lastLoungeTokenRefreshError_=Q,Q2(S,3E4)):(S.JSC$17584_isInitLoungeToken_=!1,S.JSC$17584_lastLoungeTokenRefreshError_="unknown",kFZ(S,c.loungeToken),Q2(S,c.loungeTokenRefreshIntervalMs))},function(c){S.info("getDialAppInfo error: "+c);
S.JSC$17584_lastLoungeTokenRefreshError_="noLoungeTokenResponse";Q2(S,3E4)})},ypO=function(S){_.FJ(S.JSC$17584_checkScreenAvailabilityTimeoutKey_);
S.JSC$17584_checkScreenAvailabilityTimeoutKey_=0;_.FJ(S.getDialAppInfoTimeoutKey_);S.getDialAppInfoTimeoutKey_=0;S.cancelPolling_();S.cancelPolling_=function(){};
_.FJ(S.JSC$17584_deferredLaunchDeadlineTimer_)};var fQ=function(S,c){vO.call(this,S,c,"ManualSession");this.JSC$17588_deferredLaunchDeadlineTimer_=_.zD((0,_.H1)(this.launchWithParams,this,null),150)};
_.C(fQ,vO);fQ.prototype.stop=function(){this.onSessionStopped()};
fQ.prototype.setCastSession=function(){};
fQ.prototype.launchWithParams=function(){_.FJ(this.JSC$17588_deferredLaunchDeadlineTimer_);this.JSC$17588_deferredLaunchDeadlineTimer_=NaN;var S=wB(this.JSC$17575_screenService_.getScreens(),this.receiver_.label);if(S)VM(this,S);else this.onSessionStopped(Error("Wk"))};
fQ.prototype.disposeInternal=function(){_.FJ(this.JSC$17588_deferredLaunchDeadlineTimer_);this.JSC$17588_deferredLaunchDeadlineTimer_=NaN;vO.prototype.disposeInternal.call(this)};var tr=function(S,c){_.R4.call(this);this.config_=c;this.JSC$17591_screenService_=S;this.JSC$17591_appId_=c.appId||"233637DE";this.JSC$17591_theme_=c.theme||"cl";this.disableDial_=c.disableCastApi||!1;this.forceMirroring_=c.forceMirroring||!1;this.JSC$17591_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.H1)(this.onReceiverAction_,this)};
_.C(tr,_.R4);
tr.prototype.init=function(S,c){chrome.cast.timeout.requestSession=3E4;var Q=new chrome.cast.SessionRequest(this.JSC$17591_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.u("desktop_enable_cast_connect")&&(Q.androidReceiverCompatible=!0);this.disableDial_||(Q.dialRequest=new chrome.cast.DialRequest("YouTube"));var f=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;S=S||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var U=(0,_.H1)(this.onReceiverUpdated_,
this);Q=new chrome.cast.ApiConfig(Q,(0,_.H1)(this.onSessionEstablished_,this),U,f,S);Q.customDialLaunchCallback=(0,_.H1)(this.onDialLaunchRequested_,this);chrome.cast.initialize(Q,(0,_.H1)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),uuO(),this.JSC$17591_screenService_.subscribe("onlineScreenChange",(0,_.H1)(this.JSC$17593_onScreenChange_,this)),this.customReceivers_=aCp(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.H1)(function(a){this.warn_("Failed to set initial custom receivers: "+(0,_.TN)(a))},this)),this.publish("yt-remote-cast2-availability-change",UK(this)),c(!0))},this),(0,_.H1)(function(a){this.warn_("Failed to initialize API: "+(0,_.TN)(a));
c(!1)},this))};
tr.prototype.setConnectedScreenStatus=function(S,c){JY("Setting connected screen ID: "+S+" -> "+c);if(this.JSC$17591_session_){var Q=this.JSC$17591_session_.screen_;if(!S||Q&&Q.id!=S)JY("Unsetting old screen status: "+this.JSC$17591_session_.receiver_.friendlyName),aD(this,null)}if(S&&c){if(!this.JSC$17591_session_){S=wB(this.JSC$17591_screenService_.getScreens(),S);if(!S){JY("setConnectedScreenStatus: Unknown screen.");return}if(S.idType=="shortLived"){JY("setConnectedScreenStatus: Screen with id type to be short lived.");
return}Q=AAV(this,S);Q||(JY("setConnectedScreenStatus: Connected receiver not custom..."),Q=new chrome.cast.Receiver(S.uuid?S.uuid:S.id,S.name),Q.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(Q),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.H1)(function(f){this.warn_("Failed to set initial custom receivers: "+(0,_.TN)(f))},this)));
JY("setConnectedScreenStatus: new active receiver: "+Q.friendlyName);aD(this,new fQ(this.JSC$17591_screenService_,Q),!0)}this.JSC$17591_session_.setDisplayStatus(c)}else JY("setConnectedScreenStatus: no screen.")};
var AAV=function(S,c){return c?_.Wc(S.customReceivers_,function(Q){return T6(c,Q.label)},S):null};
tr.prototype.setLaunchParams=function(S){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17591_session_?this.JSC$17591_session_.launchWithParams(S):this.warn_("Setting connection data without a session")};
tr.prototype.JSC$17593_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17591_session_?(this.JSC$17591_session_.stop(),aD(this,null)):JY("Stopping non-existing session")};
tr.prototype.requestSession=function(){chrome.cast.requestSession((0,_.H1)(this.onSessionEstablished_,this),(0,_.H1)(this.onSessionRequestFailed_,this))};
tr.prototype.disposeInternal=function(){this.JSC$17591_screenService_.unsubscribe("onlineScreenChange",(0,_.H1)(this.JSC$17593_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.tZ(_.rC("yt.mdx.remote.debug.handlers_")||[],NNZ);_.yN(this.JSC$17591_session_);_.R4.prototype.disposeInternal.call(this)};
var JY=function(S){G6("Controller",S)};
tr.prototype.warn_=function(S){G6("Controller",S)};
var NNZ=function(S){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(S)},UK=function(S){return S.hasCastReceiver_||!!S.customReceivers_.length||!!S.JSC$17591_session_},aD=function(S,c,Q){c!=S.JSC$17591_session_&&(_.yN(S.JSC$17591_session_),(S.JSC$17591_session_=c)?(Q?S.publish("yt-remote-cast2-receiver-resumed",c.receiver_):S.publish("yt-remote-cast2-receiver-selected",c.receiver_),c.subscribe("sessionScreen",(0,_.H1)(S.onSessionScreen_,S,c)),c.subscribe("sessionFailed",
function(){return XLV(S,c)}),c.screen_?S.publish("yt-remote-cast2-session-change",c.screen_):Q&&S.JSC$17591_session_.launchWithParams(null)):S.publish("yt-remote-cast2-session-change",null))},XLV=function(S,c){S.JSC$17591_session_==c&&S.publish("yt-remote-cast2-session-failed")};
_.J=tr.prototype;_.J.onSessionScreen_=function(S,c){this.JSC$17591_session_==S&&(c||aD(this,null),this.publish("yt-remote-cast2-session-change",c))};
_.J.onReceiverAction_=function(S,c){if(!this.isDisposed())if(S)switch(S.friendlyName=chrome.cast.unescape(S.friendlyName),JY("onReceiverAction_ "+S.label+" / "+S.friendlyName+"-- "+c),c){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17591_session_)if(this.JSC$17591_session_.receiver_.label!=S.label)JY("onReceiverAction_: Stopping active receiver: "+this.JSC$17591_session_.receiver_.friendlyName),this.JSC$17591_session_.stop();else{JY("onReceiverAction_: Casting to active receiver.");this.JSC$17591_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17591_session_.screen_);break}switch(S.receiverType){case chrome.cast.ReceiverType.CUSTOM:aD(this,new fQ(this.JSC$17591_screenService_,S));break;case chrome.cast.ReceiverType.DIAL:aD(this,new c6(this.JSC$17591_screenService_,S,this.JSC$17591_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:aD(this,new yM(this.JSC$17591_screenService_,S,this.config_));break;default:this.warn_("Unknown receiver type: "+S.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17591_session_&&
this.JSC$17591_session_.receiver_.label==S.label?this.JSC$17591_session_.stop():this.warn_("Stopping receiver w/o session: "+S.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.J.onDialLaunchRequested_=function(S){if(this.isDisposed())return Promise.reject(Error("Xk"));var c=S.receiver;c.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+c.friendlyName),c.receiverType=chrome.cast.ReceiverType.DIAL);var Q=this.JSC$17591_session_?this.JSC$17591_session_.receiver_:null;if(!Q||Q.label!=c.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+c.friendlyName),Promise.reject(Error("Yk"));if(Q&&Q.label==c.label&&Q.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17591_session_.screen_)return JY("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17591_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+Q.receiverType+'" to "dial" for '+c.friendlyName);aD(this,new c6(this.JSC$17591_screenService_,c,this.JSC$17591_theme_,this.config_))}c=this.JSC$17591_session_;c.launchData_=S;c.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(S=c.launchData_.extraData||{},Q=S.screenId||null,ocN(c)&&S.loungeToken?S.loungeTokenRefreshIntervalMs?S=fCZ(c,{name:c.receiver_.friendlyName,screenId:S.screenId,loungeToken:S.loungeToken,dialId:c.launchData_.receiver.label,screenIdType:"shortLived"},S.loungeTokenRefreshIntervalMs):(_.eG(Error("Uk`"+JSON.stringify(S))),S=UiZ(c,Q)):S=UiZ(c,Q)):S=cAN(c);return S};
_.J.onSessionEstablished_=function(S){var c=this;if(!this.isDisposed()&&!this.forceMirroring_){JY("New cast session ID: "+S.sessionId);var Q=S.receiver;if(Q.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17591_session_)if(Q.receiverType==chrome.cast.ReceiverType.CAST)JY("Got resumed cast session before resumed mdx connection."),Q.friendlyName=chrome.cast.unescape(Q.friendlyName),aD(this,new yM(this.JSC$17591_screenService_,Q,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var f=this.JSC$17591_session_.receiver_,U=wB(this.JSC$17591_screenService_.getScreens(),f.label);U&&T6(U,Q.label)&&f.receiverType!=chrome.cast.ReceiverType.CAST&&Q.receiverType==chrome.cast.ReceiverType.CAST&&(JY("onSessionEstablished_: manual to cast session change "+Q.friendlyName),_.yN(this.JSC$17591_session_),this.JSC$17591_session_=new yM(this.JSC$17591_screenService_,Q,this.config_),this.JSC$17591_session_.subscribe("sessionScreen",(0,_.H1)(this.onSessionScreen_,this,this.JSC$17591_session_)),
this.JSC$17591_session_.subscribe("sessionFailed",function(){return XLV(c,c.JSC$17591_session_)}),this.JSC$17591_session_.launchWithParams(null));
this.JSC$17591_session_.setCastSession(S)}}};
_.J.JSC$17593_getCastSession=function(){return this.JSC$17591_session_?this.JSC$17591_session_.JSC$17577_getCastSession():null};
_.J.onSessionRequestFailed_=function(S){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.TN)(S)),S.code!=chrome.cast.ErrorCode.CANCEL&&aD(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.J.onReceiverUpdated_=function(S){JY("Receiver availability updated: "+S);if(!this.isDisposed()){var c=UK(this);this.hasCastReceiver_=S==chrome.cast.ReceiverAvailability.AVAILABLE;UK(this)!=c&&this.publish("yt-remote-cast2-availability-change",UK(this))}};
var aCp=function(S){var c=S.JSC$17591_screenService_.JSC$17573_getOnlineScreens(),Q=S.JSC$17591_session_&&S.JSC$17591_session_.receiver_;S=_.D0(c,function(f){Q&&T6(f,Q.label)&&(Q=null);var U=f.uuid?f.uuid:f.id,a=AAV(this,f);a?(a.label=U,a.friendlyName=f.name):(a=new chrome.cast.Receiver(U,f.name),a.receiverType=chrome.cast.ReceiverType.CUSTOM);return a},S);
Q&&(Q.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(Q=new chrome.cast.Receiver(Q.label,Q.friendlyName),Q.receiverType=chrome.cast.ReceiverType.CUSTOM),S.push(Q));return S};
tr.prototype.JSC$17593_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=aCp(this),JY("Updating custom receivers: "+(0,_.TN)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.H1)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",UK(this)))};
tr.prototype.setLaunchParams=tr.prototype.setLaunchParams;tr.prototype.setConnectedScreenStatus=tr.prototype.setConnectedScreenStatus;tr.prototype.stopSession=tr.prototype.JSC$17593_stopSession;tr.prototype.getCastSession=tr.prototype.JSC$17593_getCastSession;tr.prototype.requestSession=tr.prototype.requestSession;tr.prototype.init=tr.prototype.init;tr.prototype.dispose=tr.prototype.dispose;var PxV=[];var OtG=function(S){S.audioTrackId=null;S.trackData=null;S.playerState=-1;S.hasPrevious=!1;S.hasNext=!1;S.playerTime_=0;S.playerTimeAt_=_.AP();S.seekableStart_=0;S.seekableEnd_=0;S.duration_=0;S.loadedTime=0;S.liveIngestionTime_=NaN;S.isLive_=!1};
_.J=VT.prototype;
_.J.reset=function(S){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;S&&(this.index=S.index,this.listId=S.listId,this.videoId=S.videoId,this.playerState=S.playerState,this.volume=S.volume,this.muted=S.muted,this.audioTrackId=S.audioTrackId,this.trackData=S.trackData,this.hasPrevious=S.hasPrevious,this.hasNext=S.hasNext,this.playerTime_=S.playerTime,this.playerTimeAt_=S.playerTimeAt,this.seekableStart_=S.seekableStart,this.seekableEnd_=S.seekableEnd,this.duration_=S.duration,this.loadedTime=
S.loadedTime,this.liveIngestionTime_=S.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.J.stopPlayer=function(){this.index=-1;this.videoId="";OtG(this)};
_.J.isPlaying=function(){return this.playerState==1};
_.J.isBuffering=function(){return this.playerState==3};
_.J.isAdPlaying=function(){return this.playerState==1081};
var AY=function(S,c){S.playerTime_=c;S.playerTimeAt_=_.AP()},zeE=function(S){switch(S.playerState){case 1:case 1081:return(_.AP()-S.playerTimeAt_)/1E3+S.playerTime_;
case -1E3:return 0}return S.playerTime_};
VT.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.AP()-this.playerTimeAt_)/1E3:0):this.duration_};
var xi2=function(S,c,Q){var f=S.videoId;S.videoId=c;S.index=Q;c!=f&&OtG(S)},F6E=function(S){var c={};
c.index=S.index;c.listId=S.listId;c.videoId=S.videoId;c.playerState=S.playerState;c.volume=S.volume;c.muted=S.muted;c.audioTrackId=S.audioTrackId;c.trackData=_.Cn.unsafeClone(S.trackData);c.hasPrevious=S.hasPrevious;c.hasNext=S.hasNext;c.playerTime=S.playerTime_;c.playerTimeAt=S.playerTimeAt_;c.seekableStart=S.seekableStart_;c.seekableEnd=S.seekableEnd_;c.duration=S.duration_;c.loadedTime=S.loadedTime;c.liveIngestionTime=S.liveIngestionTime_;return c};
VT.prototype.clone=function(){return new VT(F6E(this))};var XM=function(S,c){_.R4.call(this);var Q=this;this.state_=0;this.connection_=S;this.contextSubscriptions_=[];this.actionQueue_=new rOE;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.H1)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.H1)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.H1)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.H1)(this.onCloudviewAvailabilityChange_,this);var f=0;S?(f=S.getProxyState(),
f!=3&&(S.subscribe("proxyStateChange",this.setState_,this),B2p(this))):f=3;f!=0&&(c?this.setState_(f):_.zD(function(){Q.setState_(f)},0));
(S=VBp())&&ICE(this,S);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.C(XM,_.R4);XM.prototype.getState=function(){return this.state_};
XM.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
XM.prototype.reconnect=function(){this.connection_.reconnect()};
var OK=function(S){return new VT(S.connection_.getPlayerContextData())};
_.J=XM.prototype;_.J.play=function(){zb(this)?(this.castMedia_?this.castMedia_.play(null,_.$q,nAE(this,"play")):xB(this,"play"),btV(this,1,zeE(OK(this))),this.publish("remotePlayerChange")):FM(this,this.play)};
_.J.pause=function(){zb(this)?(this.castMedia_?this.castMedia_.pause(null,_.$q,nAE(this,"pause")):xB(this,"pause"),btV(this,2,zeE(OK(this))),this.publish("remotePlayerChange")):FM(this,this.pause)};
_.J.seekTo=function(S){if(zb(this)){if(this.castMedia_){var c=OK(this),Q=new chrome.cast.media.SeekRequest;Q.currentTime=S;c.isPlaying()||c.isBuffering()?Q.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:Q.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(Q,_.$q,nAE(this,"seekTo",{newTime:S}))}else xB(this,"seekTo",{newTime:S});btV(this,3,S);this.publish("remotePlayerChange")}else FM(this,_.u2(this.seekTo,S))};
_.J.stop=function(){if(zb(this)){this.castMedia_?this.castMedia_.stop(null,_.$q,nAE(this,"stopVideo")):xB(this,"stopVideo");var S=OK(this);S.stopPlayer();B6(this,S);this.publish("remotePlayerChange")}else FM(this,this.stop)};
_.J.setVolume=function(S,c){if(zb(this)){var Q=OK(this);if(this.castSession_){if(Q.volume!=S){var f=Math.round(S)/100;this.castSession_.setReceiverVolumeLevel(f,(0,_.H1)(function(){WO("set receiver volume: "+f)},this),(0,_.H1)(function(){this.warn_("failed to set receiver volume.")},this))}Q.muted!=c&&this.castSession_.setReceiverMuted(c,(0,_.H1)(function(){WO("set receiver muted: "+c)},this),(0,_.H1)(function(){this.warn_("failed to set receiver muted.")},this))}else{var U={volume:S,
muted:c};Q.volume!=-1&&(U.delta=S-Q.volume);xB(this,"setVolume",U)}Q.muted=c;Q.volume=S;B6(this,Q)}else FM(this,_.u2(this.setVolume,S,c))};
_.J.setAudioTrack=function(S,c){zb(this)?(c=c.getLanguageInfo().getId(),xB(this,"setAudioTrack",{videoId:S,audioTrackId:c}),S=OK(this),S.audioTrackId=c,B6(this,S)):FM(this,_.u2(this.setAudioTrack,S,c))};
_.J.addVideo=function(S){zb(this)?xB(this,"addVideo",{videoId:S}):FM(this,_.u2(this.addVideo,S))};
_.J.addPlaylist=function(S){zb(this)?xB(this,"addVideos",{listId:S}):FM(this,_.u2(this.addPlaylist,S))};
_.J.addVideos=function(S){S.length==0?this.warn_("Ignore add videos request due to empty list"):zb(this)?xB(this,"addVideos",{videoIds:S.join(",")}):FM(this,_.u2(this.addVideos,S))};
_.J.JSC$17603_removeVideo=function(S){zb(this)?xB(this,"removeVideo",{videoId:S}):FM(this,_.u2(this.JSC$17603_removeVideo,S))};
_.J.JSC$17603_insertVideo=function(S){zb(this)?xB(this,"insertVideo",{videoId:S}):FM(this,_.u2(this.JSC$17603_insertVideo,S))};
_.J.playVideo=function(S,c,Q,f,U,a,X){f=f===void 0?null:f;U=U===void 0?null:U;a=a===void 0?null:a;X=X===void 0?null:X;var z=OK(this),x={videoId:S};Q!==void 0&&(x.currentIndex=Q);xi2(z,S,Q||0);c!==void 0&&(AY(z,c),x.currentTime=c);f&&(x.listId=f);U&&(x.playerParams=U);a&&(x.clickTrackingParams=a);X&&(x.locationInfo=(0,_.TN)(X));xB(this,"setPlaylist",x);f||B6(this,z)};
_.J.nextVideo=function(S,c){if(zb(this)){if(S&&c){var Q=OK(this);xi2(Q,S,c);B6(this,Q)}xB(this,"next")}else FM(this,_.u2(this.nextVideo,S,c))};
_.J.clearPlaylist=function(){if(zb(this)){xB(this,"clearPlaylist");var S=OK(this);S.reset();B6(this,S);this.publish("remotePlayerChange")}else FM(this,this.clearPlaylist)};
_.J.dispose=function(){if(this.state_!=3){var S=this.state_;this.state_=3;this.publish("proxyStateChange",S,this.state_)}_.R4.prototype.dispose.call(this)};
_.J.disposeInternal=function(){N2V(this);this.connection_=null;this.actionQueue_.clear();ICE(this,null);_.R4.prototype.disposeInternal.call(this)};
var B2p=function(S){_.PY("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(c){this.contextSubscriptions_.push(this.connection_.subscribe(c,_.u2(this.onProxyEvent_,c),this))},S)},N2V=function(S){_.PY(S.contextSubscriptions_,function(c){this.connection_.unsubscribeByKey(c)},S);
S.contextSubscriptions_.length=0},zb=function(S){return S.getState()==1},FM=function(S,c){S.actionQueue_.getCount()<50&&S.actionQueue_.enqueue(c)},btV=function(S,c,Q){var f=OK(S);
AY(f,Q);f.playerState!=-1E3&&(f.playerState=c);B6(S,f)},xB=function(S,c,Q){S.connection_.sendMessage(c,Q)},B6=function(S,c){N2V(S);
S.connection_.setPlayerContextData(F6E(c));B2p(S)};
XM.prototype.setState_=function(S){if((S!=this.state_||S==2)&&this.state_!=3&&S!=0){var c=this.state_;this.state_=S;this.publish("proxyStateChange",c,S);if(S==1)for(;!this.actionQueue_.isEmpty();)S=this.actionQueue_,s01(S),S.front_.pop().apply(this);else S==3&&this.dispose()}};
XM.prototype.onProxyEvent_=function(S,c){this.publish(S,c)};
var ICE=function(S,c){S.castSession_&&(S.castSession_.removeUpdateListener(S.boundCastStatusListener_),S.castSession_.removeMediaListener(S.boundCastMediaListener_),S.onCastMediaChange_(null));S.castSession_=c;if(S.castSession_&&(WO("Setting cast session: "+S.castSession_.sessionId),S.castSession_.addUpdateListener(S.boundCastStatusListener_),S.castSession_.addMediaListener(S.boundCastMediaListener_),S.castSession_.media.length))S.onCastMediaChange_(S.castSession_.media[0])};
XM.prototype.onCastStatusUpdate_=function(S){if(!S)this.onCastMediaChange_(null),ICE(this,null);else if(this.castSession_.receiver.volume){S=this.castSession_.receiver.volume;var c=OK(this),Q=Math.round(100*S.level||0);if(c.volume!=Q||c.muted!=S.muted)WO("Cast volume update: "+S.level+(S.muted?" muted":"")),c.volume=Q,c.muted=!!S.muted,B6(this,c)}};
XM.prototype.onCastMediaChange_=function(S){WO("Cast media: "+!!S);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=S)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),K6E(this),this.publish("remotePlayerChange")};
var K6E=function(S){var c=S.castMedia_.media,Q=S.castMedia_.customData;if(c&&Q){var f=OK(S);c.contentId!=f.videoId&&WO("Cast changing video to: "+c.contentId);f.videoId=c.contentId;f.playerState=Q.playerState;AY(f,S.castMedia_.getEstimatedTime());B6(S,f)}else WO("No cast media video. Ignoring state update.")};
XM.prototype.onCastMediaUpdate_=function(S){if(S)K6E(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
XM.prototype.onCloudviewAvailabilityChange_=function(){var S=VBp();S&&ICE(this,S)};
XM.prototype.warn_=function(S){G6("CP",S)};
var nAE=function(S,c,Q){return(0,_.H1)(function(f){this.warn_("Failed to "+c+" with cast v2 channel. Error code: "+f.code);f.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+c+" using MDx browser channel."),xB(this,c,Q))},S)};var nQ=function(S,c,Q,f){f=f===void 0?!1:f;_.R4.call(this);var U=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$17610_http_=S;this.enableConnectWithInitialState_=f;this.listeners_.push(_.Se(window,"beforeunload",function(){U.JSC$17613_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new VT;this.currentScreenId_=c.id;this.currentScreenIdType_=c.idType;this.channelService=bPV(this.JSC$17610_http_,Q,this.JSC$17613_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){$iE(U)});
this.channelService.listen("channelClosed",function(){ID("Channel closed");isNaN(U.connectTimerId_)?s5(!0):s5();U.dispose()});
this.channelService.listen("channelError",function(a){s5();isNaN(U.getReconnectTimeout_())?(a==1&&U.currentScreenIdType_=="shortLived"&&U.publish("browserChannelAuthError",a),ID("Channel error: "+a+" without reconnection"),U.dispose()):(U.reconnecting_=!0,ID("Channel error: "+a+" with reconnection in "+U.getReconnectTimeout_()+" ms"),u28(U,2))});
this.channelService.listen("channelMessage",function(a){jF2(U,a)});
this.channelService.setLoungeToken(c.token);this.subscribe("remoteQueueChange",function(){var a=U.playerContext_.videoId;QY2()&&_.F6("yt-remote-session-video-id",a)})};
_.C(nQ,_.R4);
nQ.prototype.connect=function(S,c){if(c){var Q=c.listId,f=c.videoId,U=c.videoIds,a=c.playerParams,X=c.clickTrackingParams,z=c.index,x={videoId:f},I=c.currentTime,n=c.locationInfo;c=c.loopMode;I!==void 0&&(x.currentTime=I<=5?0:I);a&&(x.playerParams=a);n&&(x.locationInfo=n);X&&(x.clickTrackingParams=X);Q&&(x.listId=Q);U&&U.length>0&&(x.videoIds=U.join(","));z!==void 0&&(x.currentIndex=z);this.enableConnectWithInitialState_&&(x.loopMode=c||"LOOP_MODE_OFF");Q&&(this.playerContext_.listId=Q);this.playerContext_.videoId=
f;this.playerContext_.index=z||0;this.playerContext_.state=3;AY(this.playerContext_,I);this.autoplayMode_="UNSUPPORTED";Q=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";ID("Connecting with "+Q+" and params: "+(0,_.TN)(x));this.channelService.connect({method:Q,params:(0,_.TN)(x)},S,AGE())}else ID("Connecting without params"),this.channelService.connect({},S,AGE());lCN(this)};
nQ.prototype.setLoungeToken=function(S){this.channelService.setLoungeToken(S)};
nQ.prototype.dispose=function(){this.isDisposed()||(_.m5("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),u28(this,3));_.R4.prototype.dispose.call(this)};
nQ.prototype.disposeInternal=function(){YcB(this);CnG(this);HtN(this);_.FJ(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.FJ(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.vkT(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.R4.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var DiE=function(S){return _.Wc(S.connectedDevices_,function(c){return c.type=="LOUNGE_SCREEN"})},ID=function(S){G6("conn",S)},u28=function(S,c){S.publish("proxyStateChange",c)},lCN=function(S){S.connectTimerId_=_.zD(function(){ID("Connecting timeout");
S.JSC$17613_disconnect_(1)},2E4)},YcB=function(S){_.FJ(S.connectTimerId_);
S.connectTimerId_=NaN},HtN=function(S){_.FJ(S.reconnectedCheckScreenTimeout_);
S.reconnectedCheckScreenTimeout_=NaN},pLp=function(S){CnG(S);
S.playingSyncTimerId_=_.zD(function(){bh(S,"getNowPlaying")},2E4)},CnG=function(S){_.FJ(S.playingSyncTimerId_);
S.playingSyncTimerId_=NaN},$iE=function(S){ID("Channel opened");
S.reconnecting_&&(S.reconnecting_=!1,HtN(S),S.reconnectedCheckScreenTimeout_=_.zD(function(){ID("Timing out waiting for a screen.");S.JSC$17613_disconnect_(1)},15E3))},qcN=function(S,c){var Q=null;
if(c){var f=DiE(S);f&&(Q={clientName:f.clientName,deviceMake:f.brand,deviceModel:f.model,osVersion:f.osVersion})}_.m5("yt.mdx.remote.remoteClient_",Q);c&&(YcB(S),HtN(S));Q=S.channelService.isChannelOpened()&&isNaN(S.connectTimerId_);c==Q?c&&(u28(S,1),bh(S,"getSubtitlesTrack")):c?(S.getOtherConnectedRemoteId_()&&S.playerContext_.reset(),u28(S,1),bh(S,"getNowPlaying"),heg(S)):S.JSC$17613_disconnect_(1)},T21=function(S,c){var Q=c.params.videoId;
delete c.params.videoId;Q==S.playerContext_.videoId&&(_.Cn.isEmpty(c.params)?S.playerContext_.trackData=null:S.playerContext_.trackData=c.params,S.publish("remotePlayerChange"))},wLN=function(S,c,Q){var f=c.params.videoId||c.params.video_id,U=parseInt(c.params.currentIndex,10);
S.playerContext_.listId=c.params.listId||S.playerContext_.listId;xi2(S.playerContext_,f,U);S.publish("remoteQueueChange",Q)},sF2=function(S,c){c.params=c.params||{};
wLN(S,c,"NOW_PLAYING_MAY_CHANGE");S.onStateChange_(c);S.publish("autoplayDismissed")};
nQ.prototype.onStateChange_=function(S){var c=parseInt(S.params.currentTime||S.params.current_time,10);AY(this.playerContext_,isNaN(c)?0:c);c=parseInt(S.params.state,10);c=isNaN(c)?-1:c;c==-1&&this.playerContext_.playerState==-1E3&&(c=-1E3);this.playerContext_.playerState=c;c=Number(S.params.loadedTime);this.playerContext_.loadedTime=isNaN(c)?0:c;c=Number(S.params.duration);this.playerContext_.duration_=isNaN(c)?0:c;c=this.playerContext_;var Q=Number(S.params.liveIngestionTime);c.liveIngestionTime_=
Q;c.isLive_=isNaN(Q)?!1:!0;c=this.playerContext_;Q=Number(S.params.seekableStartTime);S=Number(S.params.seekableEndTime);c.seekableStart_=isNaN(Q)?0:Q;c.seekableEnd_=isNaN(S)?0:S;this.playerContext_.playerState==1?pLp(this):CnG(this);this.publish("remotePlayerChange")};
nQ.prototype.onAdStateChange_=function(S){if(this.playerContext_.playerState!=-1E3){var c=1085;switch(parseInt(S.params.adState,10)){case 1:c=1081;break;case 2:c=1084;break;case 0:c=1083}this.playerContext_.playerState=c;S=parseInt(S.params.currentTime,10);AY(this.playerContext_,isNaN(S)?0:S);this.publish("remotePlayerChange")}};
var MnE=function(S,c){var Q=c.params.muted=="true";S.playerContext_.volume=parseInt(c.params.volume,10);S.playerContext_.muted=Q;S.publish("remotePlayerChange")},itE=function(S,c){S.autoplayVideoId_=c.params.videoId;
S.publish("nowAutoplaying",parseInt(c.params.timeout,10))},Zt8=function(S,c){S.autoplayVideoId_=c.params.videoId||null;
S.publish("autoplayUpNext",S.autoplayVideoId_)},G7N=function(S,c){S.autoplayMode_=c.params.autoplayMode;
S.publish("autoplayModeChange",S.autoplayMode_);S.autoplayMode_=="DISABLED"&&S.publish("autoplayDismissed")},W6T=function(S,c){var Q=c.params.hasNext=="true";
S.playerContext_.hasPrevious=c.params.hasPrevious=="true";S.playerContext_.hasNext=Q;S.publish("previousNextChange")};
nQ.prototype.isCapabilitySupportedOnConnectedDevices_=function(S){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var c=_.A(this.connectedDevices_),Q=c.next();!Q.done;Q=c.next())if(!Q.value.capabilities.has(S))return!1;return!0};
var jF2=function(S,c){c=c.message;c.params?ID("Received: action="+c.action+", params="+(0,_.TN)(c.params)):ID("Received: action="+c.action+" {}");switch(c.action){case "loungeStatus":c=(0,_.Dq)(c.params.devices);S.connectedDevices_=_.D0(c,function(f){return new LY(f)});
c=!!_.Wc(S.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
qcN(S,c);c=S.isCapabilitySupportedOnConnectedDevices_("mlm");S.publish("multiStateLoopEnabled",c);break;case "loungeScreenDisconnected":j6E(S.connectedDevices_,function(f){return f.type=="LOUNGE_SCREEN"});
qcN(S,!1);break;case "remoteConnected":var Q=new LY((0,_.Dq)(c.params.device));_.Wc(S.connectedDevices_,function(f){return f.equals(Q)})||_.Lz(S.connectedDevices_,Q);
break;case "remoteDisconnected":Q=new LY((0,_.Dq)(c.params.device));j6E(S.connectedDevices_,function(f){return f.equals(Q)});
break;case "gracefulDisconnect":break;case "playlistModified":wLN(S,c,"QUEUE_MODIFIED");break;case "nowPlaying":sF2(S,c);break;case "onStateChange":S.onStateChange_(c);break;case "onAdStateChange":S.onAdStateChange_(c);break;case "onVolumeChanged":MnE(S,c);break;case "onSubtitlesTrackChanged":T21(S,c);break;case "nowAutoplaying":itE(S,c);break;case "autoplayDismissed":S.publish("autoplayDismissed");break;case "autoplayUpNext":Zt8(S,c);break;case "onAutoplayModeChanged":G7N(S,c);break;case "onHasPreviousNextChanged":W6T(S,
c);break;case "requestAssistedSignIn":S.publish("assistedSignInRequested",c.params.authCode);break;case "onLoopModeChanged":S.publish("loopModeChange",c.params.loopMode);break;default:ID("Unrecognized action: "+c.action)}};
_.J=nQ.prototype;_.J.getProxyState_=function(){var S=3;this.isDisposed()||(S=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(S=1):S=2);return S};
_.J.JSC$17613_disconnect_=function(S){ID("Disconnecting with "+S);_.m5("yt.mdx.remote.remoteClient_",null);YcB(this);this.publish("beforeDisconnect",S);S==1&&s5();this.channelService.disconnect(S);this.dispose()};
_.J.getPlayerContextData_=function(){var S=this.playerContext_;this.clientVideoId_&&(S=this.playerContext_.clone(),xi2(S,this.clientVideoId_,S.index));return F6E(S)};
_.J.setPlayerContextData_=function(S){var c=this,Q=new VT(S);Q.videoId&&Q.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=Q.videoId,_.FJ(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.zD(function(){if(c.clientVideoId_){var U=c.clientVideoId_;c.clientVideoId_=null;c.playerContext_.videoId!=U&&bh(c,"getNowPlaying")}},5E3));
var f=[];this.playerContext_.listId==Q.listId&&this.playerContext_.videoId==Q.videoId&&this.playerContext_.index==Q.index||f.push("remoteQueueChange");this.playerContext_.playerState==Q.playerState&&this.playerContext_.volume==Q.volume&&this.playerContext_.muted==Q.muted&&zeE(this.playerContext_)==zeE(Q)&&(0,_.TN)(this.playerContext_.trackData)==(0,_.TN)(Q.trackData)||f.push("remotePlayerChange");this.playerContext_.reset(S);_.PY(f,function(U){this.publish(U)},this)};
_.J.getOtherConnectedRemoteId_=function(){var S=this.channelService.getDeviceId(),c=_.Wc(this.connectedDevices_,function(Q){return Q.type=="REMOTE_CONTROL"&&Q.id!=S});
return c?c.id:""};
_.J.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.J.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.J.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.J.JSC$17613_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var heg=function(S){_.FJ(S.idleDisconnectTimerId_);S.idleDisconnectTimerId_=_.zD(function(){S.JSC$17613_disconnect_(1)},864E5)},bh=function(S,c,Q){Q?ID("Sending: action="+c+", params="+(0,_.TN)(Q)):ID("Sending: action="+c);
S.channelService.sendMessage(c,Q)};
nQ.prototype.sendMessageWithUserAction_=function(S,c){bh(this,S,c);heg(this)};
nQ.prototype.JSC$17613_getXsrfToken_=function(){var S=_.Kl.get("SAPISID","")||_.Kl.get("__Secure-1PAPISID",void 0)||"",c=_.Kl.get("__Secure-3PAPISID","")||"";if(!S&&!c)return"";S=_.mV(_.lG(S),2);c=_.mV(_.lG(c),2);return _.mV(_.lG(","+S+","+c),2)};
nQ.prototype.subscribe=nQ.prototype.subscribe;nQ.prototype.unsubscribeByKey=nQ.prototype.unsubscribeByKey;nQ.prototype.getProxyState=nQ.prototype.getProxyState_;nQ.prototype.disconnect=nQ.prototype.JSC$17613_disconnect_;nQ.prototype.getPlayerContextData=nQ.prototype.getPlayerContextData_;nQ.prototype.setPlayerContextData=nQ.prototype.setPlayerContextData_;nQ.prototype.getOtherConnectedRemoteId=nQ.prototype.getOtherConnectedRemoteId_;nQ.prototype.getReconnectTimeout=nQ.prototype.getReconnectTimeout_;
nQ.prototype.getAutoplayMode=nQ.prototype.getAutoplayMode_;nQ.prototype.getAutoplayVideoId=nQ.prototype.getAutoplayVideoId_;nQ.prototype.reconnect=nQ.prototype.JSC$17613_reconnect_;nQ.prototype.sendMessage=nQ.prototype.sendMessageWithUserAction_;nQ.prototype.getXsrfToken=nQ.prototype.JSC$17613_getXsrfToken_;nQ.prototype.isCapabilitySupportedOnConnectedDevices=nQ.prototype.isCapabilitySupportedOnConnectedDevices_;var gAG=function(S){ek.call(this,"ScreenServiceProxy");this.instance_=S;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.H1)(this.JSC$17616_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.H1)(this.onOnlineScreenChange_,this)))};
_.C(gAG,ek);_.J=gAG.prototype;_.J.getScreens=function(S){return this.instance_.$_gs(S)};
_.J.contains=function(S){return!!this.instance_.$_c(S)};
_.J.get=function(S){return this.instance_.$_g(S)};
_.J.start=function(){this.instance_.$_st()};
_.J.add=function(S,c,Q){this.instance_.$_a(S,c,Q)};
_.J.remove=function(S,c,Q){this.instance_.$_r(S,c,Q)};
_.J.updateName=function(S,c,Q,f){this.instance_.$_un(S,c,Q,f)};
_.J.disposeInternal=function(){for(var S=this.subscriptionKeys_.length,c=0;c<S;++c)this.instance_.$_ubk(this.subscriptionKeys_[c]);this.subscriptionKeys_.length=0;this.instance_=null;ek.prototype.disposeInternal.call(this)};
_.J.JSC$17616_onScreenChange_=function(){this.publish("screenChange")};
_.J.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
dB.prototype.$_st=dB.prototype.start;dB.prototype.$_gspc=dB.prototype.JSC$17573_getScreenByPairingCode;dB.prototype.$_gsppc=dB.prototype.JSC$17573_getScreenByPollingPairingCode;dB.prototype.$_c=dB.prototype.contains;dB.prototype.$_g=dB.prototype.get;dB.prototype.$_a=dB.prototype.add;dB.prototype.$_un=dB.prototype.updateName;dB.prototype.$_r=dB.prototype.remove;dB.prototype.$_gs=dB.prototype.getScreens;dB.prototype.$_gos=dB.prototype.JSC$17573_getOnlineScreens;dB.prototype.$_s=dB.prototype.subscribe;
dB.prototype.$_ubk=dB.prototype.unsubscribeByKey;var L62=function(S){xEZ();if(!MM||!MM.get("yt-remote-disable-remote-module-for-dev")){S=_.WY("MDX_CONFIG")||S;lLE();UEZ();NW||(NW=new hr(S?S.loungeApiHost:void 0),F1Z()&&(NW.basePath="/api/loungedev"));KQ||(KQ=_.rC("yt.mdx.remote.deferredProxies_")||[],_.m5("yt.mdx.remote.deferredProxies_",KQ));eeg();var c=$B();if(!c){var Q=new dB(NW,S?S.disableAutomaticScreenCache||!1:!1);_.m5("yt.mdx.remote.screenService_",Q);c=$B();var f={};S&&(f={appId:S.appId,disableDial:S.disableDial,theme:S.theme,loadCastApiSetupScript:S.loadCastApiSetupScript,
disableCastApi:S.disableCastApi,enableDialLoungeToken:S.enableDialLoungeToken,enableCastLoungeToken:S.enableCastLoungeToken,forceMirroring:S.forceMirroring});_.m5("yt.mdx.remote.enableConnectWithInitialState_",S?S.enableConnectWithInitialState||!1:!1);dE0(Q,function(a){a?uh()&&yGg(uh(),"YouTube TV"):Q.subscribe("onlineScreenChange",function(){QT("yt-remote-receiver-availability-change")})},f)}if(S&&!_.rC("yt.mdx.remote.initialized_")){_.m5("yt.mdx.remote.initialized_",!0);
jf("Initializing: "+(0,_.TN)(S));lh.push(_.Ac("yt-remote-cast2-api-ready",function(){QT("yt-remote-api-ready")}));
lh.push(_.Ac("yt-remote-cast2-availability-change",function(){QT("yt-remote-receiver-availability-change")}));
lh.push(_.Ac("yt-remote-cast2-receiver-selected",function(){k71();QT("yt-remote-auto-connect","cast-selector-receiver")}));
lh.push(_.Ac("yt-remote-cast2-receiver-resumed",function(){QT("yt-remote-receiver-resumed","cast-selector-receiver")}));
lh.push(_.Ac("yt-remote-cast2-session-change",rAO));lh.push(_.Ac("yt-remote-connection-change",function(a){a?yGg(uh(),"YouTube TV"):diN()||(yGg(null,null),tB1())}));
lh.push(_.Ac("yt-remote-cast2-session-failed",function(){QT("yt-remote-connection-failed")}));
f=vAp();S.isAuto&&(f.id+="#dial");var U=S.capabilities||[];U.length>0&&(f.capabilities=U);f.name=S.device;f.app=S.app;(S=S.theme)&&(f.theme=S);jf(" -- with channel params: "+(0,_.TN)(f));f?(_.F6("yt-remote-session-app",f.app),_.F6("yt-remote-session-name",f.name)):(_.It("yt-remote-session-app"),_.It("yt-remote-session-name"));_.m5("yt.mdx.remote.channelParams_",f);c.start();uh()||PnB()}}},tn1=function(){var S=$B().instance_.$_gos();
var c=EAg();c&&YB()&&(mmN(S,c)||S.push(c));return oQ0(S)},VnG=function(){var S=tn1(),c=EAg();
c||(c=diN());return _.Wc(S,function(Q){return c&&T6(c,Q.key)?!0:!1})},EAg=function(){var S=uh();
if(!S)return null;var c=$B().getScreens();return wB(c,S)},rAO=function(S){jf("remote.onCastSessionChange_: "+oUp(S));
if(S){var c=EAg();c&&c.id==S.id?(yGg(c.id,"YouTube TV"),S.idType=="shortLived"&&(S=S.token)&&(c=YB())&&c.setLoungeToken(S)):(c&&ReE(),yAB(S,1))}else YB()&&ReE()},ReE=function(){RzZ()?E5().stopSession():Lq("stopSession called before API ready.");
var S=YB();S&&(S.disconnect(1),oAT(null))},miB=function(){var S=YB();
return S&&S.getProxyState()!=3?new XM(YB(),void 0):null},jf=function(S){G6("remote",S)},$B=function(){if(!SxG){var S=_.rC("yt.mdx.remote.screenService_");
SxG=S?new gAG(S):null}return SxG},uh=function(){return _.rC("yt.mdx.remote.currentScreenId_")},cK2=function(S){_.m5("yt.mdx.remote.currentScreenId_",S)},k71=function(){_.m5("yt.mdx.remote.connectData_",null)},YB=function(){return _.rC("yt.mdx.remote.connection_")},oAT=function(S){var c=YB();
k71();S||cK2("");_.m5("yt.mdx.remote.connection_",S);KQ&&(_.PY(KQ,function(Q){Q(S)}),KQ.length=0);
c&&!S?QT("yt-remote-connection-change",!1):!c&&S&&QT("yt-remote-connection-change",!0)},diN=function(){var S=QY2();
if(!S)return null;var c=$B();if(!c)return null;c=c.getScreens();return wB(c,S)},yAB=function(S,c){cK2(S.id);
S=new nQ(NW,S,vAp(),_.rC("yt.mdx.remote.enableConnectWithInitialState_")||!1);S.connect(c,_.rC("yt.mdx.remote.connectData_"));S.subscribe("beforeDisconnect",function(Q){QT("yt-remote-before-disconnect",Q)});
S.subscribe("beforeDispose",function(){YB()&&oAT(null)});
S.subscribe("browserChannelAuthError",function(){var Q=EAg();Q&&Q.idType=="shortLived"&&(RzZ()?E5().handleBrowserChannelAuthError():Lq("refreshLoungeToken called before API ready."))});
oAT(S)},PnB=function(){var S=diN();
S?(jf("Resume connection to: "+oUp(S)),yAB(S,0)):(s5(),tB1(),jf("Skipping connecting because no session screen found."))},NW=null,KQ=null,SxG=null,eeg=function(){var S=vAp();
if(_.Cn.isEmpty(S)){S=cG2();var c=_.Bb("yt-remote-session-name")||"",Q=_.Bb("yt-remote-session-app")||"";S={device:"REMOTE_CONTROL",id:S,name:c,app:Q,mdxVersion:3};S.authuser=String(_.WY("SESSION_INDEX","0"));(c=_.WY("DELEGATED_SESSION_ID"))&&(S.pageId=String(c));_.m5("yt.mdx.remote.channelParams_",S)}},vAp=function(){return _.rC("yt.mdx.remote.channelParams_")||{}},lh=[];var QtO=new _.ge("yt-menu"),fMB=function(){},JKp=function(S,c,Q){S=c=="right-click"?Q.rightClickMenuPopupHint:Q.menuPopupHint;
if(!(UuE(c)>10))return c=c||"default",QtO.set(c+"-impression",UuE(c)+1),S},UuE=function(S){return parseInt(QtO.get((S||"default")+"-impression")||0,10)};
_.ar(fMB);var aMN=function(){this.contexts_=new WeakMap;this.JSC$17622_networkService_=this.activeContext_=null},AK1=function(S,c,Q){var f=S.contexts_.get(c);
f||(f=new uip(S.JSC$17622_networkService_),S.contexts_.set(c,f));S.activeContext_=f;Q&&S.activeContext_.reset();S.activeContext_.start();return S.activeContext_};var CQ=function(){};
CQ.prototype.enqueue=function(){var S=this,c;return _.O(function(Q){if(S.isCounterfactual())return(c=S.getCounterfactualData())&&S.shouldLogCounterfactualImpression()&&S.sendImpressionEndpoints(c),Q.return();S.doEnqueue();_.IN(Q)})};
CQ.prototype.sendImpressionEndpoints=function(S){_.dQ.getInstance().triggerOptionalAction("yt-service-request",{},S[0])};var H6=function(S,c){this.renderer=S;this.page=c};
_.C(H6,CQ);H6.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
H6.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
H6.prototype.shouldLogCounterfactualImpression=function(){return!0};
H6.prototype.doEnqueue=function(){var S=_.mZ(this.page);S&&S.pause();this.renderer.impressionCommand&&_.dQ.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.i4(_.dQ.getInstance(),[this.renderer.promoCommand],this.page)};var XbE=function(S,c){this.renderer=S;this.resolver=_.L4();this.JSC$17634_enforcementCounter=new _.kCu;c?this.JSC$17634_playerManager=_.mZ(c):this.JSC$17634_playerManager=null;_.BV(1,!0)};
_.C(XbE,CQ);_.J=XbE.prototype;_.J.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var S=[];this.renderer.impressionEndpoints.forEach(function(c){(c=_.Gv(c))&&S.push(c)});
return S}};
_.J.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.J.shouldLogCounterfactualImpression=function(){var S=_.JRZ();S?(this.JSC$17634_enforcementCounter.increment("POPUP"),_.BV(3)):_.BV(2);return S};
_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.doEnqueue=function(){var S=this;_.JRZ()?(this.JSC$17634_enforcementCounter.increment("POPUP"),_.BV(3),OMp(this)):this.JSC$17634_playerManager?(this.resolver.promise.then(function(){OMp(S)}),zS0(this.resolver,this.JSC$17634_playerManager)):_.BV(2)};
var zS0=function(S,c){var Q=_.L4();c.getPlayerPromise().then(function(f){Q.resolve(f)});
Q.promise.then(function(f){f.addEventListener("onAbnormalityDetected",S.resolve);_.p0(S.promise,function(){f.removeEventListener("onAbnormalityDetected",S.resolve)})});
S.promise.thenCatch(function(){Q.promise.cancel()})},OMp=function(S){_.BV(3);
var c={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:S.renderer}};c=_.dQ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});Promise.all(c).then(function(){xuG();S.JSC$17634_playerManager&&S.JSC$17634_playerManager.pause()})},xuG=function(){azg(function(S,c){_.Uxp(S,c);
S===0?_.BV(7):_.BV(4)})};var Fn8=function(S,c){this.renderer=S;this.page=c;this.resolver=_.L4()};
_.C(Fn8,CQ);_.J=Fn8.prototype;_.J.cancel=function(){this.resolver.promise.cancel()};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var S=this;this.resolver.promise.then(function(){var Q={popup:{mealbarPromoRenderer:S.renderer},popupType:"MEALBAR"};_.dQ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:Q},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var c=_.mZ(this.page);c&&BcB(this.resolver,c)}break;default:this.resolver.resolve()}};
var BcB=function(S,c){var Q=_.L4();c.getPlayerPromise().then(function(f){Q.resolve(f)});
Q.promise.then(function(f){f.addEventListener("onAdEnd",S.resolve);_.p0(S.promise,function(){f.removeEventListener("onAdEnd",S.resolve)})});
S.promise.thenCatch(function(){Q.promise.cancel()})};var IM0=function(S,c){this.renderer=S;this.page=c};
_.C(IM0,CQ);_.J=IM0.prototype;_.J.cancel=function(){this.JSC$17642_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17642_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17642_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.J.isCounterfactual=function(){return!this.renderer.isVisible};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var S=this,c,Q;((c=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(Q=c.playbackUpsellDialogTriggerConditionData)==null?void 0:Q.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17642_downloadedVideosCountSelectorUnsubscriber=_.Kt(_.V5(),cBG,function(f,U){f>U&&(nRT(S),S.cancel())}):nRT(this)};
var nRT=function(S){var c={popup:{upsellDialogRenderer:S.renderer},popupType:"MODAL"};_.dQ.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:c},{});(S=_.mZ(S.page))&&S.pause()};var Do={},bM1=(Do.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Do.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Do.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Do.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Do.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Do.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Do.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Do),Nc2=function(S,c){this.renderer=S;this.targetManager=
c};
_.C(Nc2,CQ);_.J=Nc2.prototype;_.J.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17649_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17649_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17649_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.J.getCounterfactualData=function(){if(this.isCounterfactual()){var S;return(S=this.renderer.promoConfig)==null?void 0:S.impressionEndpoints}};
_.J.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.J.shouldLogCounterfactualImpression=function(){return!0};
_.J.doEnqueue=function(){var S=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17649_downloadedVideosCountSelectorUnsubscriber=_.Kt(_.V5(),cBG,function(c,Q){S.renderer.targetId&&c>Q&&(PwE(S.targetManager,S.renderer.targetId,KnT(S)),S.cancel())});
break;default:PwE(this.targetManager,this.renderer.targetId,KnT(this))}};
var KnT=function(S){var c;if((c=S.renderer.suggestedPosition)==null?0:c.type)var Q=bM1[S.renderer.suggestedPosition.type];Q||(Q="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:S.renderer},popupType:"HINT",position:Q}}};var $uE=function(){this.previousPage=null},u6V;
$uE.prototype.registerPromoCommand=function(S,c){jtG(this,void 0,void 0,_.Y(S.roadblock,WI2),void 0,void 0,c)};
var jtG=function(S,c,Q,f,U,a,X){S.previousPage!==X&&S.pendingTooltipPromo&&S.pendingTooltipPromo.cancel();S.previousPage=X;U?(S.pendingEnforcementPromo&&S.pendingEnforcementPromo.cancel(),S.pendingEnforcementPromo=new XbE(U,X),S.pendingEnforcementPromo.enqueue()):a?(S.pendingCommandWrapperPromo=new H6(a,X),S.pendingCommandWrapperPromo.enqueue()):f?(S.pendingRoadblockPromo&&S.pendingRoadblockPromo.cancel(),S.pendingRoadblockPromo=new IM0(f,X),S.pendingRoadblockPromo.enqueue()):c?(S.pendingMealbarPromo&&
S.pendingMealbarPromo.cancel(),S.pendingMealbarPromo=new Fn8(c,X),S.pendingMealbarPromo.enqueue()):Q&&(S.pendingTooltipPromo&&S.pendingTooltipPromo.cancel(),S.pendingTooltipPromo=new Nc2(Q,_.Hb()),S.pendingTooltipPromo.enqueue())},lMN=function(){u6V||(u6V=new $uE);
return u6V};var QIV=!1;var RMO=function(S,c){var Q=_.WY("SESSION_INDEX");this.actionToken_=S;this.commonToken_=c;this.sessionIndex_=Q},VmT=function(S){var c=_.L4(),Q=_.rC("payments.business.integration.bootstrap"),f=_.rC("payments.business.integration"),U=f.Style.create().withMaterialDesignStyle(),a=f.mashupMode.popup("instrument-manager");
Q.asMashupMode(a).usingUserIndex(S.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(U).inStandaloneContext(f.standaloneContextAuthId.forUserId()).instrumentManager(S.actionToken_,S.commonToken_.length>0?S.commonToken_:void 0,function(X){var z=X.instrumentId;z?c.resolve(z):(z=_.rC("payments.business.integration.scenario.InstrumentManager"),c.reject(X.errorCode&&X.errorCode===z.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(X){_.eG(X);
c.reject("instrumentManagerLoadError")});
return c.promise};var SU=function(S,c,Q){this.payloadName="transactionFlowFailed";this.payload={errorType:S,serializedTransactionFlowLoggingParams:c,isUserDismiss:Q===void 0?!1:Q}};
_.m5("yt.ypc.shared.YpcTransactionFlowError",SU);var pQ=function(){return _.N_.apply(this,arguments)||this};
_.C(pQ,_.N_);pQ.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
pQ.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
pQ.prototype.onErrorMessageDismiss=pQ.prototype.onErrorMessageDismiss;_.d([_.Z({readOnly:!0,observer:"errorRendererChanged"}),_.P("design:type",Object)],pQ.prototype,"errorRenderer",void 0);_.d([_.FV("yt-live-chat-error-message-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pQ.prototype,"onErrorMessageDismiss",null);_.d([_.KU()],pQ);var Yx1=[pQ.prototype];var Csg;var HMT;var DuE=new _.ge("yt-live-chat"),pb2=new Map;pb2.set("timestamp_toggle","show-timestamps");pb2.set("reactions_toggle","allow-reactions");var hY=function(){return _.W.apply(this,arguments)||this};
_.C(hY,_.W);_.J=hY.prototype;_.J.menuItemIdentifierChanged=function(){var S;(S=this.data)!=null&&S.menuItemIdentifier&&(S=pb2.get(this.data.menuItemIdentifier))&&(_.u("enable_lwe_web_mute")?(S=DuE.get(S),this.isToggled=!(S===void 0?!this.data.isToggled:!S)):this.isToggled=DuE.get(S))};
_.J.onFocus=function(){this.toggleButton.focus()};
_.J.onTap=function(){var S=this.data.command;S&&this.componentBehavior.resolveCommand(S)};
_.J.computeText=function(S,c,Q){return this.componentBehavior.getSimpleString(S?Q:c)};
_.J.computeIcon=function(S,c,Q){return(S=S?Q:c)&&S.iconType?_.xz(S.iconType):""};
hY.prototype.onTap=hY.prototype.onTap;hY.prototype.onFocus=hY.prototype.onFocus;hY.prototype.menuItemIdentifierChanged=hY.prototype.menuItemIdentifierChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hY.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],hY.prototype,"componentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hY.prototype,"data",void 0);
_.d([_.Z({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.P("design:type",String)],hY.prototype,"icon",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],hY.prototype,"isToggled",void 0);_.d([_.nU("tp-yt-paper-toggle-button"),_.P("design:type",Object)],hY.prototype,"toggleButton",void 0);_.d([_.B0("data.menuItemIdentifier"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hY.prototype,"menuItemIdentifierChanged",null);
_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hY.prototype,"onFocus",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hY.prototype,"onTap",null);_.d([_.wM({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],hY);
_.k(hY,"yt-live-chat-toggle-renderer",function(){if(HMT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Csg===void 0&&(Csg=document.createElement("template"));var f=Csg;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);HMT=S}S=HMT;return S},{mode:_.u("live_chat_enable_sink_wrapper")?2:0});var hSB=new _.Sg("NAVIGATION_PROGRESS_TOKEN");_.G_("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var qxE={},O82=(qxE.CSI=function(S,c){var Q={};Q[S]=c;S=_.kC(_.EmM)(Q);Object.keys(S).length>0&&_.sz(S)},qxE.ECATCHER=function(S){return function(c,Q){_.WY(S)[c]=Q}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),qxE);var TcU={},wbV={},stE=(wbV[HO1.name]=!0,wbV),qW=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;S.tabGesturesIsActive=!1;S.actionRouterIsRoot=!0;S.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"};S.pageTitle="";S.titleSuffix="YouTube";S.unseenNotificationCount=
0;S.hasNavigated=!1;S.hasSetScrollTopForNavigation=!1;S.pagePreparer=null;S.zwiebackInitJobId=0;S.dataUpdatePromise=null;S.loadDepsPromise=_.B2();S.hasPendingNavigation=!1;S.pendingPlayerOnResponseReceivedActions=[];return S};
_.C(qW,_.N_);qW.prototype.attached=function(){MEZ(this);document.addEventListener("yt-navigate-cache",_.xn(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var S=Tb();S.init();S.dispatchElement=this.hostElement};
var MEZ=function(S,c){c=c===void 0?0:c;var Q=_.fl().resolve(_.QS(_.CM));if(Q)iME(S,Q);else{if(c>=5)throw Error("Zk");setTimeout(function(){MEZ(S,c+1)},0)}},iME=function(S,c){c.addEventListener("yt-navigate-start",_.xn(S,S.onYtNavigateStart));
c.addEventListener("yt-navigate-finish",_.xn(S,S.onYtNavigateFinish));c.addEventListener("yt-navigate-error",_.xn(S,S.onYtNavigateError));c.addEventListener("yt-page-data-fetched",_.xn(S,S.onYtPageDataFetched))};
_.J=qW.prototype;_.J.detached=function(){var S=_.fl().resolve(_.CM);S.removeEventListener("yt-navigate-start",_.xn(this,this.onYtNavigateStart));S.removeEventListener("yt-navigate-finish",_.xn(this,this.onYtNavigateFinish));S.removeEventListener("yt-navigate-error",_.xn(this,this.onYtNavigateError));S.removeEventListener("yt-page-data-fetched",_.xn(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.xn(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.J.setPageOffset=function(S,c){S?_.XF(this.hostElement,"yt-set-page-offset",[S,c]):_.sH(Error("$k"))};
_.J.setPageOffsetForNavigation=function(S,c){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(S,c))};
_.J.onYtNavigateSetPageOffset=function(S,c){this.setPageOffsetForNavigation(c.page,c.offset)};
_.J.getPageOffset=function(){var S=_.Ur(this.hostElement).querySelector("#page-manager").getCurrentPage(),c=0;S&&(c=_.XF(this.hostElement,"yt-get-page-offset",[S])[0]);return c};
_.J.onYtHistoryPop=function(S,c){if(_.gC("DISABLE_WARM_LOADS"))S.preventDefault(),window.location.reload();else{var Q=_.fl().resolve(_.CM);Q.hasPendingNavigation()&&S.preventDefault();Q.cancelPendingNavigation();_.Oz(this.hostElement,"yt-pending-navigation-cancelled");c.errorMsg&&(S=c.errorMsg.split(" - "),c=Error(S[0]),S.length==2&&S[1]&&(_.ZE(c,S[1]),_.i5(c)),window.location.reload())}};
_.J.onYtHistoryLoad=function(S,c){var Q=this;if(_.gC("DISABLE_WARM_LOADS"))window.location.reload();else{(S=c.endpoint)&&Object.keys(S).length||(S=null);var f=c.historyEntry,U=_.fl().resolve(_.CM),a=_.fl().resolve(_.oZ),X=null;f&&f.rootData&&(X=f.rootData);var z=X&&ZMp(X);!X||z||X.filler?S?(U.navigate(S,!0),G3g(this,S)):(c.legacyBorder||z||(c.JSC$26653_savedComponentState==null&&X==null?_.i5(new _.Yr("Incomplete history entry",c.forward)):_.MP(new _.Yr("Malformed history entry",c.JSC$26653_savedComponentState,
c.forward,X))),window.location.reload()):(_.fPR({isHot:!0}),_.sz({webInfo:{navigationReason:"h"}}),_.xep(),_.i2("srt"),_.i2("pdc"),this.cancelPendingTasks(),WnZ(this,c.forward,X),X.player&&(X.player.loaded=!1),G3g(this,S),_.deu(U,S||{},X,2,{},!1,c).then(function(){Q.setPageOffset(a.getCurrentPage(),f.scrollTop||0)}))}};
_.J.initHistoryManager=function(S){if(!this.hasNavigated){this.hasNavigated=!0;var c=_.Ur(this.hostElement).querySelector("#page-manager").getCurrentData();S=isNaN(S)?this.getPageOffset():S;var Q=_.fl().resolve(_.CM).currentEndpoint;this.replaceState(Q,c,S)}};
_.J.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.J.onYtNavigateStart=function(S,c){this.cancelPendingTasks();c.noProgressBar||(S=_.fl().resolve(_.QS(hSB)))&&S.start();S=this.hasPendingNavigation?null:this.data;var Q=_.fl().resolve(_.oZ),f,U,a;_.u("kevlar_use_vimio_behavior")&&!((f=c.endpoint)==null?0:(U=f.commandMetadata)==null?0:(a=U.webCommandMetadata)==null?0:a.ignoreNavigation)&&(f=Q.getCurrentPage())&&f.disconnectVisibilityRoot();Q.prepareForNavigation(c.pageType,c.endpoint);_.u("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=new _.UL(1,
"pcl"),_.JN(this.pagePreparer,Q.preparePage.bind(Q,c.pageType,c.endpoint)));f=this.getPageOffset();this.initHistoryManager(f);c.reload||this.hasPendingNavigation?this.replaceState(c.endpoint,S,f):(S==null?void 0:S.page)==="watch"&&c.pageType==="watch"&&_.u("kevlar_replace_watch_to_watch_history_state")?this.replaceState(c.endpoint,S,f):(S==null?void 0:S.page)!=="shorts"||c.pageType!=="shorts"||c.endpoint.reelWatchEndpoint.sequenceParams||_.u("short_to_short_back_nav_killswitch")?c.type!="navigate-back"&&
c.type!="navigate-forward"&&(c.pageType==="shorts"&&_.Az(this.hostElement,"yt-shorts-reset"),this.saveAndPush(c.url,c.endpoint,S,f)):this.replaceState(c.endpoint,S,0);this.hasPendingNavigation=!0};
var gRO=function(S){S.hasPendingNavigation=!1;(S=_.fl().resolve(_.QS(hSB)))&&S.finish()};
qW.prototype.onYtNavigateError=function(S,c){gRO(this);S=this.get("endpoint.commandMetadata.webCommandMetadata.url",c);var Q=_.Ep(window.location.href);S&&!Q.pbjreload&&(c=c.navigationErrorReason||"10",_.u("kevlar_parent_on_pbjreload")&&(Q={csn:_.wN()},this.get("data.endpoint.clickTrackingParams")&&(Q.itct=this.data.endpoint.clickTrackingParams),_.SL(S,Q)),_.dh(_.tS(S,{pbjreload:c})))};
qW.prototype.onYtNavigateCache=function(S,c){var Q=this,f=c.url,U=c.endpoint,a=c.data;S=!!c.miniplayer;c=!!c.skipHistory;if(f&&U&&a){var X=this.getPageOffset(),z=this.data||null;c||this.saveAndPush(f,U,z,X);f=_.deu(_.fl().resolve(_.CM),U,a,S?4:3,{},S);S&&f.then(function(){Q.dataUpdatePromise&&Q.dataUpdatePromise.then(function(){var x=_.fl().resolve(_.oZ);Q.setPageOffset(x.getCurrentPage(),0)})})}};
qW.prototype.onYtNavigateFinish=function(S,c){var Q=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){eSp(Q,c.fromHistory)})};
var eSp=function(S,c){gRO(S);if(S.pendingPlayerOnResponseReceivedActions){for(var Q=_.A(S.pendingPlayerOnResponseReceivedActions),f=Q.next();!f.done;f=Q.next())_.IW(f.value,S.hostElement);S.pendingPlayerOnResponseReceivedActions=[]}Q=_.fl().resolve(_.oZ);!c&&S.hasNavigated&&((c=Q.getCurrentPage())?c.is==="ytd-shorts"||S.tabGesturesIsActive||S.setPageOffsetForNavigation(c,0):_.i5(Error("al")));_.gM(function(){_.gM(function(){_.i2("pda")})})};
qW.prototype.onYtNavigate=function(S){if(!S.detail.endpoint){var c=new _.Yr("Error: Missing yt-navigate endpoint from target:",S.target,S.target.nodeName);_.sH(c)}if(c=_.u("cold_missing_history"))c=Tb(),c.init(!1),c=!(c.browserHistory.boundHistoryReplaceState&&c.browserHistory.boundHistoryPushState);if(c){_.G_("DISABLE_WARM_LOADS",!0);c=new _.Yr("Failed to initialize history manager",this.getDebugString());var Q=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
Q?_.i5(c):_.sH(c)}c=S.detail.endpoint;var f,U;_.u("debug_forward_web_query_parameters")&&((f=c.commandMetadata)==null?0:(U=f.webCommandMetadata)==null?0:U.url)&&(c=JSON.parse(JSON.stringify(c)),c.commandMetadata.webCommandMetadata.url=_.dmo(c.commandMetadata.webCommandMetadata.url,window.location.search));S={type:0,command:c,form:{params:S.detail.params,tempData:S.detail.tempData||{},requestType:S.detail.type,createScreenConfig:S.detail.createScreenConfig,reload:S.detail.reload?S.detail.reload:!1,
requestForm:S.detail}};_.u("kevlar_yt_navigate_command_handler")?(f=_.fl().resolve(_.U8),S.form.skipDefaultElement=!0,f.resolveCommand(c,{form:S.form})):this.handleNavigate(S)};
qW.prototype.handleNavigate=function(S){this.hasSetScrollTopForNavigation=!1;var c=_.fl().resolve(_.CM),Q=S.form||{};c.navigate(S.command,Q.reload,Q.params,Q.tempData,Q.requestType,Q.createScreenConfig,Q.ignoreConfirmation,Q.requestForm)&&G3g(this,S.command,Q.tempData)};
qW.prototype.onYtPageDataFetched=function(S,c){try{_.GXz().reset();this.data=c.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.fl().resolve(_.oZ).updatePageData(this.data);var Q=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);Q&&zWB(Q);var f=this.get("response.responseContext.serviceTrackingParams",this.data);f&&zWB(f);var U=
this.get("playerResponse.onResponseReceivedActions",this.data);U&&(U=k31(this,U));U&&_.FF(this.hostElement,U,this.hostElement);var a=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),X=this.get("response.responseContext.consistencyTokenJar",this.data);if(a||X){var z=_.$cM(),x=(0,_.Cn.getValues)(z.tokenJars);a&&z.replace(x,a);X&&z.replace(x,X)}}catch(I){_.sH(I)}};
var G3g=function(S,c,Q){try{S.onYtEndpointChangeHandler(c,Q)}catch(f){_.sH(f)}};
_.J=qW.prototype;_.J.onYtEndpointChangeHandler=function(){};
_.J.setPageTitle=function(S){S=(this.pageTitle=S)?S+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+S};
_.J.onYtUpdateTitle=function(S,c){this.setPageTitle(c)};
_.J.setUnseenNotificationCount=function(S){this.unseenNotificationCount=S;this.setPageTitle(this.pageTitle)};
_.J.handleUpdateNotificationsUnseenCountAction=function(S){_.Y(S,AeT)&&((S=_.Y(S,AeT).unseenCount)?this.setUnseenNotificationCount(S):this.setUnseenNotificationCount(0))};
_.J.handleClearCookieAction=function(S){var c;(S=(c=_.Y(S,fV2))==null?void 0:c.cookieName)&&_.XdY(S)};
_.J.onYtUpdateUnseenNotificationCount=function(S,c){this.setUnseenNotificationCount(c)};
_.J.loadData=function(S){var c=this;this.loadDepsPromise.then(function(){var Q=_.fl().resolve(_.QS(_.CM));Q||_.sH(Error("bl"));if(S&&S.response){if(!S.endpoint){var f=_.dN(window.document.location.href)||"/",U="";if(f==="/"||f.startsWith("/?"))U="WEB_PAGE_TYPE_BROWSE";S.endpoint={commandMetadata:{webCommandMetadata:{url:f,webPageType:U,rootVe:3854}}}}_.deu(Q,S.endpoint,S,5,{})}else S.endpoint?Q.navigate(S.endpoint):Q.navigate(_.Ni);_.Mq.cancelJob(c.zwiebackInitJobId);c.zwiebackInitJobId=_.Mq.addLowPriorityJob(f5E)})};
var Tb=function(){return _.fl().resolve(_.Fd)};
qW.prototype.getDebugString=function(){return Tb().getDebugString()};
qW.prototype.getThirdPartyManipulationSuspected=function(){return Tb().getThirdPartyManipulationSuspected()};
qW.prototype.replaceState=function(S,c,Q){Tb().saveAndReplace(S,c,Q)};
qW.prototype.saveAndPush=function(S,c,Q,f){Tb().saveAndPush(S,c,Q,f)};
var ZMp=function(S){return _.Y(S.endpoint,_.tG)||_.Y(S.endpoint,_.ll)?!0:!S||isNaN(S.expirationTime)?!1:(0,_.Qk)()>S.expirationTime},WnZ=function(S,c,Q){var f=S.get("response.trackingParams",Q),U=_.T$(),a=_.wN();
if(f&&U&&a&&(f=S.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",Q),!f&&Q.rootVe&&(f=Q.rootVe),U=c?"forwardButton":"backButton",c=S.get("playerResponse.topbar.desktopTopbarRenderer."+U+".buttonRenderer.command.clickTrackingParams",S.data),S=S.get("response.topbar.desktopTopbarRenderer."+U+".buttonRenderer.command.clickTrackingParams",S.data),c=(S=c||S)?_.Yz(S):void 0,S=_.Kv(),U=[_.B2(Q)],_.X2(S,f,c,{dataPromises:U,csnToClone:Q.csn}),Q.graftedVes))for(Q=
_.A(Q.graftedVes),f=Q.next();!f.done;f=Q.next())_.Oc(S,f.value)};
qW.prototype.onStoreGraftedVeAction=function(S){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(S)):_.i5(Error("cl"))};
var k31=function(S,c){return c.filter(function(Q){for(var f in Q)if(stE[f])return S.pendingPlayerOnResponseReceivedActions.push(Q),!0;return!1})};
_.Rh.Object.defineProperties(qW.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
qW.prototype.onStoreGraftedVeAction=qW.prototype.onStoreGraftedVeAction;qW.prototype.loadData=qW.prototype.loadData;qW.prototype.onYtUpdateUnseenNotificationCount=qW.prototype.onYtUpdateUnseenNotificationCount;qW.prototype.handleClearCookieAction=qW.prototype.handleClearCookieAction;qW.prototype.handleUpdateNotificationsUnseenCountAction=qW.prototype.handleUpdateNotificationsUnseenCountAction;qW.prototype.setUnseenNotificationCount=qW.prototype.setUnseenNotificationCount;
qW.prototype.onYtUpdateTitle=qW.prototype.onYtUpdateTitle;qW.prototype.setPageTitle=qW.prototype.setPageTitle;qW.prototype.onYtEndpointChangeHandler=qW.prototype.onYtEndpointChangeHandler;qW.prototype.onYtPageDataFetched=qW.prototype.onYtPageDataFetched;qW.prototype.handleNavigate=qW.prototype.handleNavigate;qW.prototype.onYtNavigate=qW.prototype.onYtNavigate;qW.prototype.onYtNavigateFinish=qW.prototype.onYtNavigateFinish;qW.prototype.onYtNavigateCache=qW.prototype.onYtNavigateCache;
qW.prototype.onYtNavigateError=qW.prototype.onYtNavigateError;qW.prototype.onYtNavigateStart=qW.prototype.onYtNavigateStart;qW.prototype.cancelPendingTasks=qW.prototype.cancelPendingTasks;qW.prototype.initHistoryManager=qW.prototype.initHistoryManager;qW.prototype.onYtHistoryLoad=qW.prototype.onYtHistoryLoad;qW.prototype.onYtHistoryPop=qW.prototype.onYtHistoryPop;qW.prototype.onYtNavigateSetPageOffset=qW.prototype.onYtNavigateSetPageOffset;qW.prototype.setPageOffset=qW.prototype.setPageOffset;
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],qW.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qW.prototype,"data",void 0);_.d([_.FV("yt-navigate-set-page-offset"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],qW.prototype,"onYtNavigateSetPageOffset",null);
_.d([_.FV("yt-history-pop"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],qW.prototype,"onYtHistoryPop",null);_.d([_.FV("yt-history-load"),_.P("design:type",Function),_.P("design:paramtypes",[Event,_.Oop]),_.P("design:returntype")],qW.prototype,"onYtHistoryLoad",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],qW.prototype,"onYtNavigate",null);
_.d([_.FV("yt-update-title"),_.P("design:type",Function),_.P("design:paramtypes",[Event,String]),_.P("design:returntype")],qW.prototype,"onYtUpdateTitle",null);_.d([_.FV("yt-update-unseen-notification-count"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Number]),_.P("design:returntype")],qW.prototype,"onYtUpdateUnseenNotificationCount",null);_.d([_.KU()],qW);TcU.YtdAppBehavior=[_.AN.YtActionHandlerBehavior,qW.prototype];var wq=function(){var S=_.N_.apply(this,arguments)||this;S._noAccessors=!0;return S};
_.C(wq,_.N_);wq.prototype.ready=function(){var S=this;_.Ur(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){S.onChange_()})};
wq.prototype.dataChanged_=function(){_.Ur(this.hostElement).querySelector("#checkbox").checked=!1};
wq.prototype.onChange_=function(){var S=_.Ur(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.Az(this.hostElement,"yt-dismissal-reason-"+S,this.data.feedbackToken)};
wq.prototype.dataChanged_=wq.prototype.dataChanged_;_.d([_.Z(),_.P("design:type",Object)],wq.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],wq.prototype,"dataChanged_",null);_.d([_.KU()],wq);var rK1=[wq.prototype];var sK=function(){var S=_.N_.apply(this,arguments)||this;S.timeoutJobId=0;S.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return S};
_.C(sK,_.N_);sK.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
sK.prototype.startTimeout=function(){var S=this,c=this.data&&this.data.displayDurationSeconds;c&&!this.timeoutJobId&&(this.timeoutJobId=_.HG(_.Mq,function(){_.XF(S.hostElement,"yt-close-popup-action",[S.is]);S.timeoutJobId=0},c*1E3))};
sK.prototype.cancelTimeout=function(){_.Mq.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
sK.prototype.ytdHatsSurveyBehaviorDataChanged=sK.prototype.ytdHatsSurveyBehaviorDataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],sK.prototype,"ytActionHandlerBehavior",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sK.prototype,"ytdHatsSurveyBehaviorDataChanged",null);_.d([_.KU()],sK);var duE=[_.AN.YtActionHandlerBehavior,sK.prototype];var vRZ=function(S,c){var Q;return((Q=S.prefixMapping)==null?0:Q[c])?S.prefixMapping[c]:S.SHARED_RENDERERS_.hasOwnProperty(c)?"yt":S.prefix},MW={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}};MW.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.u("kevlar_mealbar_above_player"),modern:_.u("web_modern_dialogs"),noAutoFocus:!0,noCancelOnOutsideClick:!0,withBackdrop:!1,restoreFocusOnClose:!0},styles:{position:"fixed",top:"auto",left:"0",right:"auto",bottom:"0",margin:"16px"},rtlStyles:{position:"fixed",top:"auto",right:"0",left:"auto",bottom:"0",margin:"16px"}};
MW.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};MW.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};MW.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
MW.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)"}};
MW.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};
MW.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};
MW.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};
MW.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};MW.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"}};
MW.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};MW.TOAST={component:null,properties:{}};var Ps2=new function(S,c,Q){this.supportedPopups=S;this.navigationEndpointPopupMap=c;this.popupTypeMap=Q;this.supportedPopups=S;this.navigationEndpointPopupMap=c;this.popupTypeMap=Q}({aboutThisAdRenderer:!0,
adFeedbackRenderer:!0,adInfoDialogRenderer:!0,addToPlaylistRenderer:!0,backstagePostDialogPopupRenderer:!0,bubbleHintRenderer:!0,channelCreationDialogRenderer:!0,channelWarmWelcomeRenderer:!0,channelWarmWelcomeContRenderer:!0,checkboxSurveyRenderer:!0,confirmDialogRenderer:!0,dismissalFollowUpRenderer:!0,enforcementMessageViewModel:!0,fancyDismissibleDialogRenderer:!0,formPopupRenderer:!0,gamingAccountLinkConfirmDialogRenderer:!0,gamingAccountLinkSettingRenderer:!0,hotkeyDialogRenderer:!0,sponsorshipConfirmCancelRenderer:!0,
modalWithTitleAndButtonRenderer:!0,notificationActionRenderer:!0,reportFormModalRenderer:!0,searchSuggestionReportDialog:!0,sharingRenderer:!0,sharingEmbedRenderer:!0,menuPopupRenderer:!0,singleOptionSurveyRenderer:!0,surveyFollowUpRenderer:!0,unifiedSharePanelRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,ypcUpgradeDialogRenderer:!0,ypcOffersOverlayRenderer:!0,redCancelSurveyRenderer:!0,conversationSectionController:!0,
conversationHighPriorityNotificationContentRenderer:!0},{adFeedbackEndpoint:"adFeedbackEndpoint.content",adInfoDialogEndpoint:"adInfoDialogEndpoint.dialog",createBackstagePostDialogEndpoint:"createBackstagePostDialogEndpoint.dialog",confirmDialogEndpoint:"confirmDialogEndpoint.content",managePurchaseEndpoint:"managePurchaseEndpoint.content",modalEndpoint:"modalEndpoint.modal",shareEndpoint:"shareEndpoint",shareEntityEndpoint:"shareEntityEndpoint",unlimitedFamilyFlowEndpoint:"unlimitedFamilyFlowEndpoint.unlimitedFamilyFlowEndpointSupportedRenderers",
openPopupAction:"openPopupAction.popup",ypcCancelSurveyEndpoint:"ypcCancelSurveyEndpoint.surveySupportedRenderers"},{aboutThisAdRenderer:"DIALOG",adFeedbackRenderer:"DIALOG",adInfoDialogRenderer:"RESPONSIVE_DROPDOWN",addToPlaylistRenderer:_.u("desktop_add_to_playlist_renderer_dialog_popup")?"DIALOG":"RESPONSIVE_DROPDOWN",backstagePostDialogPopupRenderer:"DIALOG",bubbleHintRenderer:"HINT",checkboxSurveyRenderer:"SURVEY",confirmDialogRenderer:"DIALOG",dismissalFollowUpRenderer:"DIALOG",enforcementMessageViewModel:"LOCKED_MODAL",
fancyDismissibleDialogRenderer:"DIALOG",gamingAccountLinkConfirmDialogRenderer:"DIALOG",gamingAccountLinkSettingRenderer:"DIALOG",hotkeyDialogRenderer:"DIALOG",sponsorshipConfirmCancelRenderer:"DIALOG",menuPopupRenderer:"RESPONSIVE_DROPDOWN",modalWithTitleAndButtonRenderer:"RESPONSIVE_DROPDOWN",notificationActionRenderer:"TOAST",reportFormModalRenderer:"DIALOG",searchSuggestionReportDialog:"DIALOG",sharingEmbedRenderer:"DIALOG",sharingRenderer:"RESPONSIVE_DROPDOWN",singleOptionSurveyRenderer:"SURVEY",
surveyFollowUpRenderer:"SURVEY",unifiedSharePanelRenderer:"DIALOG",unlimitedFamilyMessageInterstitialRenderer:"DIALOG",unlimitedFamilyProfileInterstitialRenderer:"DIALOG",unpluggedPauseMembershipDialogRenderer:"DIALOG",ypcOffersOverlayRenderer:"DIALOG",ypcUpgradeDialogRenderer:"DIALOG",redCancelSurveyRenderer:"DIALOG",conversationSectionController:"MOLE",conversationHighPriorityNotificationContentRenderer:"NOTIFICATION"}),LnG=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$17701_popupConfig=MW;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 ERV=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.q3.getInstance()},ih=function(S,c){var Q=S.pageNameToElement.get(c);
if(!Q){switch(c){case "watch":var f=_.u("web_watch_force_learning_journey_for_testing")?_.fm("ytd-watch-learning-journey"):_.u("kevlar_watch_fixie")?_.fm("ytd-watch-fixie"):_.u("kevlar_watch_grid")?_.fm("ytd-watch-grid"):_.fm("ytd-watch-flexy");break;case "learning_journey_watch":f=_.fm("ytd-watch-learning-journey");break;case "shorts":f=_.fm("ytd-shorts");break;case "search":f=_.fm("ytd-search");break;case "channel":f=_.fm("ytd-browse");f.pageSubtype="channels";break;case "trending":f=_.fm("ytd-browse");
f.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":f=
_.fm("ytd-browse");f.pageSubtype=c;break;case "browse":f=_.fm("ytd-browse");break;default:_.i5(new _.Yr("Error getting page element for type",c))}Q=f;S.pageNameToElement.set(c,Q)}return Q};
ERV.prototype.preparePage=function(S,c,Q){Q&&(S=_.nJ(Q)||S);if(S!=="watch"&&S!=="learning_journey_watch"){var f=this.elementPoolPopulator,U=S;U!=f.targetPage_&&f.pendingPages_.indexOf(U)>-1&&(f.targetPage_&&(f.pendingPages_.unshift(f.targetPage_),f.abort()),t$O(f,U),_.JyH(f,U))}if((f=ih(this,S))||!_.Y(Q,_.rQ)){f.isAttached||f===c||(f.hidden=!0);if(!f.data&&(S!=="watch"&&S!=="learning_journey_watch"||!_.u("swatcheroo_page_pool_dont_provide_filler_data"))){var a;if(S=(a=_.WY("FILLER_DATA",{})[S])==
null?void 0:a.response)f.data=S}return f}};var tEE=function(S){this.JSC$28541_clientRoot=S;this.playlistHandlerActionMap={"yt-add-to-playlist-command":I50,"yt-end-playlist-command":nt0,"yt-recover-playlist-command":NS2,"yt-refresh-playlist-command":uF0,"yt-playlist-remove-videos-action":Kq1};_.vG(_.dQ.getInstance(),this.playlistHandlerActionMap,this.JSC$28541_clientRoot);UKE()},VE0;var Zo=function(S,c,Q){this.apiKey=S;this.endpoint=c;this.confidenceThreshold=Q===void 0?.5:Q;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=c==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
c==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||c==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new dST};
_.J=Zo.prototype;
_.J.start=function(S){if(this.state===0)if(this.isOnline()){S.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=S.supportsHttpHeadersOverwriteParam);S.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=S.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.MD("voice_assistant");_.Z5("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=S.languageCode||"en-US";this.supportsCrossDomainXhr=S.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=S.youtubeAssistantRequest||null;this.listeningHandler=S.listeningHandler||this.listeningHandler;this.audioDetectedHandler=S.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=S.stopHandler||this.stopHandler;this.completeHandler=S.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=S.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=S.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
S.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=S.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=S.accessToken;this.additionalHeaders=S.additionalHeaders||{};var c;this.prefetchResponseTimeoutMs=(c=S.prefetchResponseTimeoutMs)!=null?c:this.prefetchResponseTimeoutMs;RSg(this);this.startAudio();yKg(this)}else this.errorHandler("OFFLINE")};
_.J.stop=function(S){var c=S===void 0?{}:S;S=c.logCancel===void 0?!0:c.logCancel;var Q=c.logMicClosed===void 0?!0:c.logMicClosed;var f=c.handleError===void 0?!0:c.handleError;c=c.handleStop===void 0?!0:c.handleStop;this.state!==0&&(S&&Gb("voz_cx"),W6(this,{logMicClosed:Q,handleStop:c}),f&&this.errorHandler("ABORTED"))};
_.J.getState=function(){return this.state};
_.J.isSupported=function(){return!0};
_.J.stopAudio=function(S){(S===void 0||S)&&Gb("voz_mf")};
_.J.startAudio=function(){Gb("voz_vp");return _.B2(null)};
var oRT=function(S,c){S.channelOpen&&(S.state!==2&&(S.state=2,Gb("voz_ss"),S.listeningHandler()),c=new Uint8Array(c),c='{ "audioIn": "'+_.mV(c)+'" }',S.channel.send(c))},W6=function(S,c){var Q=c===void 0?{}:c;
c=Q.logMicClosed===void 0?!0:Q.logMicClosed;Q=Q.handleStop===void 0?!0:Q.handleStop;S.vozEndOfDataTimeout>-1&&(clearTimeout(S.vozEndOfDataTimeout),S.vozEndOfDataTimeout=-1);mug(S);S.stopAudio(c);S.channel&&(S.channelOpen=!1,S.manuallyClosedChannel=!0,S.channel.close(),S.channel=void 0);S.transcribedSpeechResults=[];S.state=0;Q&&S.stopHandler()},RSg=function(S){var c={httpHeadersOverwriteParam:S.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},S.additionalHeaders,S.accessToken&&S.isUsingVoz?{Authorization:"Bearer "+S.accessToken}:{"x-goog-api-key":S.apiKey}),supportsCrossDomainXhr:S.supportsCrossDomainXhr};S.channel=new M8(S.endpoint,c);S.channel.open();_.HI(S.channel,"w",function(){var Q=S.channel,f=Q.send,U=S.isUsingVoz?"PLACEHOLDER":"example";U={config:{dialogStateIn:{languageCode:S.languageCode},deviceConfig:{deviceId:U,deviceModelId:U},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!S.isUsingVoz)U.config.requestType=4;else if(S.isUsingVoz&&S.youtubeAssistantRequest){var a=JSON.stringify(S.youtubeAssistantRequest);U.config.internalIn={youtubeAssistantS3InputJson:a}}f.call(Q,U);S.channelOpen=!0;S.manuallyClosedChannel=!1});
_.HI(S.channel,"x",function(){S.manuallyClosedChannel||(S.channelOpen=!1,S.channel=void 0,W6(S))});
_.HI(S.channel,"z",function(Q){if(Q.data){mug(S);for(var f=0;f<Q.data.length;f++){var U=S,a=Q.data[f],X=a.speechResults;if(X)a:{var z=[];a=[];var x=!1;X=_.A(X);for(var I=X.next();!I.done;I=X.next()){I=I.value;if(I.noSpeech){W6(U);U.errorHandler("NO_SPEECH");break a}I.transcript!==void 0&&I.stability!==void 0&&(I.stability<U.confidenceThreshold&&(x=!0),x?a.push(I.transcript):z.push(I.transcript))}if(z.length!==0||a.length!==0)z=z.join(" "),a=a.join(" "),U.receivedEndOfUtterance&&!U.isUsingVoz?U.isUsingVoz||
U.completeHandler([z,a]):(x=U,X=z,I=a,Gb("voz_sf"),x.transcriptionUpdateHandler(X,I),x.transcribedSpeechResults=[X,I]),U.receivedEndOfUtterance&&(Gb("voz_eou"),U.transcriptionCompleteHandler([z,a]),U.isUsingVoz&&(U.prefetchResponseTimeoutMs===0?W6(U,{logMicClosed:!1,handleStop:!0}):U.prefetchResponseTimeoutMs>0&&SLp(U)))}else U.isUsingVoz&&(a==null?0:a.internalOut)?(a=JSON.parse(a.internalOut.youtubeAssistantS3OutputJson),a.userHasOptedInToVaa||a.vaaConsent?U.vaaConsentUpdateHandler(!!a.userHasOptedInToVaa,
!!a.vaaConsent):(cNO(U),a&&(z=U.transcribedSpeechResults,Gb("voz_rqf"),U.completeHandler(z,a)))):a.eventType==="END_OF_UTTERANCE"?U.receivedEndOfUtterance=!0:(Gb("voz_err"),U.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.i5(Error("dl")))}}});
_.HI(S.channel,"y",function(Q){W6(S);switch(Q.status){case 1:Q="WEBCHANNEL_NETWORK_ERROR";break;case 2:Q="WEBCHANNEL_SERVER_ERROR";break;default:Q="WEBCHANNEL_UNKNOWN_ERROR"}S.errorHandler(Q);S.logError(Error(Q))})};
Zo.prototype.logError=function(S){_.sH(S)};
Zo.prototype.isOnline=function(){return!0};
var SLp=function(S){cNO(S);S.prefetchResponseSetTimeoutId=setTimeout(function(){W6(S,{logMicClosed:!1,handleStop:!0})},S.prefetchResponseTimeoutMs)},cNO=function(S){S.prefetchResponseSetTimeoutId>-1&&(clearTimeout(S.prefetchResponseSetTimeoutId),S.prefetchResponseSetTimeoutId=-1)},yKg=function(S){mug(S);
S.noResponseReceivedTimeout=window.setTimeout(function(){W6(S);S.errorHandler("NO_SPEECH")},11E3)},mug=function(S){S.noResponseReceivedTimeout>-1&&(window.clearTimeout(S.noResponseReceivedTimeout),S.noResponseReceivedTimeout=-1)},Gb=function(S){_.i2(S,void 0,"voice_assistant")};var gq=function(){Zo.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.C(gq,Zo);gq.prototype.isSupported=function(){return jIp()};
gq.prototype.startAudio=function(){var S=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.pv(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(f){QQU(S,f)};
this.processor.connect(this.audioContext.destination);var c=function(f){S.stream=f;if(!S.audioContext)return _.B2(null);f=S.audioContext.createMediaStreamSource(f);S.processor&&f.connect(S.processor);return _.B2(null)},Q={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?c(this.stream):(Q=navigator.mediaDevices.getUserMedia(Q))?Q.then(c).catch(function(f){W6(S);f.name&&f.name==="NotAllowedError"?S.errorHandler("NO_MICROPHONE_PERMISSION"):(S.errorHandler("AUDIO_ERROR"),S.logError(f));return _.pv(null)}):(W6(this),this.errorHandler("AUDIO_ERROR"),_.i5(Error("el")));
return Zo.prototype.startAudio.call(this)};
gq.prototype.stopAudio=function(S){S=S===void 0?!0:S;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(c){c.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Zo.prototype.stopAudio.call(this,S)};
gq.prototype.isOnline=function(){return navigator.onLine};
var QQU=function(S,c){if(S.audioContext)if(window.OfflineAudioContext){var Q=S.audioContext.sampleRate,f=c.inputBuffer.getChannelData(0);c=new window.OfflineAudioContext(1,f.length,16E3);for(var U=c.createBuffer(1,f.length,Q),a=U.getChannelData(0),X=0,z=0;z<f.length;z++)a[z]=f[z],X+=a[z]*a[z];!S.audioDetected&&Math.sqrt(X/f.length)>.01&&(S.audioDetected=!0,S.audioDetectedHandler());f=c.createBufferSource();f.buffer=U;f.connect(c.destination);f.start(0);c.oncomplete=function(x){x=x.renderedBuffer.getChannelData(0);
for(var I=Math.floor(16384E3/Q),n=new Int16Array(I),b=0;b<I;++b)n[b]=Math.max(-1,Math.min(1,x[b]))*32767;oRT(S,n.buffer)};
c.startRendering()}else fpU(S,c)},fpU=function(S,c){var Q=S.audioContext.sampleRate,f=c.inputBuffer.getChannelData(0),U=Math.floor((Q+8E3)/16E3);
Q=f.length/U;c=new Float32Array(Q);for(var a=0;a<Q;++a)c[a]=f[a*U];f=new Int16Array(Q);for(U=0;U<Q;++U)f[U]=Math.max(-1,Math.min(1,c[U]))*32767;oRT(S,f.buffer)};var UcU={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var JNE=function(){this.JSC$17766_audioEnabled=!0;this.audioFeedbackHolder={}};
JNE.prototype.isPlaying=function(S){return S.currentTime>0&&!S.paused&&!S.ended&&S.readyState>2};
var apE=function(S){for(var c=_.A(Object.values(UcU)),Q=c.next();!Q.done;Q=c.next())Q=Q.value,S.audioFeedbackHolder[Q]=new Audio,S.audioFeedbackHolder[Q].src="/s/search/audio/"+Q+".mp3",S.audioFeedbackHolder[Q].load()},ef=function(S,c){if(S.JSC$17766_audioEnabled!==!1&&c in S.audioFeedbackHolder){for(var Q=_.A(Object.values(S.audioFeedbackHolder)),f=Q.next();!f.done;f=Q.next())f=f.value,S.isPlaying(f)&&f.pause();
S.audioFeedbackHolder[c].currentTime=0;S.audioFeedbackHolder[c].play().catch(function(){})}};var ANg=function(S,c){var Q=this;this.store=S;this.service=c;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){Q.setState("offline");Q.stop()};
this.audioPlayer=new JNE;var f;(f=this.audioPlayer)==null||apE(f)};
_.J=ANg.prototype;_.J.getService=function(){return this.service};
_.J.isEnabled=function(){return!!this.service};
_.J.isSupported=function(){var S;return(S=this.service)==null?void 0:S.isSupported()};
_.J.start=function(){var S=this,c,Q,f,U,a,X,z,x,I,n,b,N,l;return _.O(function(H){switch(H.nextAddress){case 1:S.store.dispatch(BjN("",""));if(!navigator.onLine)return S.setState("offline"),H.return();window.addEventListener("offline",S.handleOfflineEvent);S.stream=null;if(!S.permissionsSupported){H.jumpTo(2);break}_.X1(H,3);return _.F(H,XJU(S),5);case 5:c=H.yieldResult;if(!c)return(Q=S.audioPlayer)==null||ef(Q,"failure"),H.return();S.service.stream=S.stream;S.setState("listening");_.Pi(H,2);break;
case 3:_.Bs(H),S.permissionsSupported=!1;case 2:f={context:_.ntY(_.UJ())},f.youtubeAssistantParams={searchParams:{inlineSearchResponse:S.enableInlineSearchResponse}},U=function(q,w){S.store.dispatch(ILG("transcribing"));S.store.dispatch(BjN(q,w))},a=function(){var q;
(q=S.audioPlayer)==null||ef(q,"open");S.setState("listening")},X=function(){S.setState("transcribing")},z=function(q){S.setErrorState(q)},x=function(q,w){var g;
(g=S.audioPlayer)==null||ef(g,"success");w&&(_.u("kevlar_voice_search_inline_search")&&(S.responseProcessor=_.fl().resolve(_.$CZ),S.responseProcessor&&(g=w.navigationAction,q=w.prefetchedSearchResponse,g&&q&&(g=(new _.zvl).JSC$11050_getStoreKey(g),_.Lj(S.responseProcessor,q,g)))),S.JSC$17784_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",w))},I=function(){window.removeEventListener("offline",S.handleOfflineEvent)},n=_.C2Z(!1),b=n.Authorization!=null,N=S.enableFirstPartyAuth||
S.enableFPAForSignedInUsers&&b?n:{"X-Goog-Visitor-Id":n["X-Goog-Visitor-Id"]},l={completeHandler:x,
errorHandler:z,listeningHandler:a,audioDetectedHandler:X,stopHandler:I,transcriptionUpdateHandler:U,youtubeAssistantRequest:f,languageCode:Om0(),additionalHeaders:N,supportsCrossDomainXhr:S.enableFirstPartyAuth||S.enableFPAForSignedInUsers&&b,supportsHttpHeadersOverwriteParam:!S.disableHttpHeadersOverwrite},S.service.start(l),_.IN(H)}})};
_.J.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.J.reset=function(){this.store.dispatch(_.aB({type:"RESET_VOICE_SEARCH_STATE"}))};
_.J.setState=function(S){this.store.dispatch(ILG(S))};
_.J.setErrorState=function(S){switch(S){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var c;(c=this.audioPlayer)==null||ef(c,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)XJU(this);else{var Q;(Q=this.audioPlayer)==null||ef(Q,"failure");this.setState("permission-denied")}break;case "ABORTED":var f;(f=this.audioPlayer)==null||ef(f,"no_input");break;default:var U;(U=this.audioPlayer)==
null||ef(U,"no_input");this.setState("timeout")}};
var XJU=function(S){var c,Q;return _.O(function(f){switch(f.nextAddress){case 1:return _.F(f,navigator.permissions.query({name:"microphone"}),2);case 2:c=f.yieldResult;if(c.state==="granted")return f.return(!0);if(c.state==="denied")return S.setState("permission-denied"),f.return(!1);S.setState("permission");Q={audio:{sampleSize:16,channelCount:1},video:!1};_.X1(f,3);return _.F(f,navigator.mediaDevices.getUserMedia(Q),5);case 5:return S.stream=f.yieldResult,f.return(!0);case 3:return _.Bs(f),S.setState("permission-denied"),
f.return(!1)}})},Om0=function(){var S=_.WY("INNERTUBE_CONTEXT_HL"),c=_.WY("INNERTUBE_CONTEXT_GL");
return S.indexOf("-")>-1?S:S+"-"+c};var z50=function(S,c,Q){ANg.call(this,c,Q);this.JSC$17784_actionRouter=S;this.enableInlineSearchResponse=_.u("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.u("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.u("kevlar_voice_search_enable_fpa_signedin_users")},xcO;
_.C(z50,ANg);
var FyE=function(){if(!xcO){var S="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.u("kevlar_voice_search_auth_enabled")||_.u("kevlar_voice_search_use_yt_endpoint")?S="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.u("kevlar_voice_search_use_fp_endpoint")&&(S="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");xcO=
new z50(_.dQ.getInstance(),_.V5(),new gq(_.WY("VOZ_API_KEY"),S,.5))}return xcO};var B4N=function(S){this.JSC$17788_clientRoot=S;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$17788_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)]]));S=_.A(this.eventListeners);for(var c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;Q=Q.next().value;Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next()){var U=
_.A(f.value);f=U.next().value;U=U.next().value;c.addEventListener(f,U)}}_.vG(_.dQ.getInstance(),this.autonavPauseActionMap,this.JSC$17788_clientRoot)},Ipg,nJU=function(S){return _.u("kevlar_autonav_popup_filtering")?(S=_.VI(S))?S.hasAttribute("prevent-autonav"):!0:!0};
_.J=B4N.prototype;_.J.onIronOverlayOpened=function(S){nJU(S)&&(this.autonavPauseReasons.overlayOpen=!0,kB(this))};
_.J.onIronOverlayClosed=function(S){nJU(S)&&(this.autonavPauseReasons.overlayOpen=!1,kB(this))};
_.J.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;kB(this)};
_.J.onYtAutonavPauseBlur=function(){var S=this;_.Mq.addJob(function(){S.isInBackground()||(S.autonavPauseReasons.inputBoxFocus=!1,kB(S))},8,0)};
_.J.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;kB(this)};
_.J.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;kB(this)};
_.J.onYtAutonavPauseScroll=function(){var S=_.fl().resolve(_.oZ);S.isOnWatch()&&(S=S.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=S.getBoundingClientRect().top<-200,kB(this))};
_.J.onYtAutonavPauseUserEngagement=function(S){var c=this;if(_.u("user_engagement_enable_autoplay_pause_feature")){var Q=Number(S.lowEngagementThresholdMs);isNaN(Q)||Q<=0||S.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.tE("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.fl().resolve(_.wj),_.f1()<Q?_.HG(_.Mq,function(){_.tE("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.ah0()?(this.userEngagementCsn=_.wN(),_.HG(_.Mq,function(){_.tE("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
c.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,kB(this)):_.tE("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.hoz(Error("fl`"+JSON.stringify(S)))};
_.J.onYtAutonavPausePlayer=function(S){this.autonavPauseReasons.requestedByPlayer=!!S.detail;kB(this)};
_.J.onYtAutonavVisibilityChanged=function(){var S=this,c,Q,f;return _.O(function(U){if(U.nextAddress==1)return(c=_.S9())?_.F(U,c.getPlayerPromise(),2):U.return();Q=U.yieldResult;f=Q.isMuted()||Q.getVolume()===0;S.autonavPauseReasons.backgroundAndMute=S.isInBackground()&&f;kB(S);_.IN(U)})};
_.J.onYtAutonavPausePlayerEnded=function(){_.fl().resolve(_.wj);var S=144E5;_.u("user_engagement_enable_autoplay_pause_feature")||_.u("is_part_of_any_user_engagement_experiment")||(S=45E5);this.autonavPauseReasons.longIdle=_.f1()>S;bmE(this);kB(this)};
_.J.onYtUserActivity=function(){var S=this;this.autonavPauseReasons.userEngagement&&(_.HG(_.Mq,function(){_.tE("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",S.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,kB(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.HG(_.Mq,function(){_.tE("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",S.userEngagementCsn);_.wQ()}),this.autonavPauseReasons.youthereLactExperiment=!1,kB(this));
this.autonavPauseReasons.longIdle&&!_.u("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,kB(this))};
_.J.isInBackground=function(){var S=window.document.visibilityState;return!(!S||S==="visible")};
var kB=function(S){for(var c=!1,Q=_.A(Object.values(S.autonavPauseReasons)),f=Q.next();!f.done;f=Q.next())f=f.value,c=c||f;c?_.oJ.getInstance().pause(S.autonavPauseReasons):(S=_.oJ.getInstance(),S.autonavState_==3?(S.setState(2,!1,!1),S.autonavPauseReason_=void 0):S.autonavState_==1&&(S.disabledAutonavPauseReason_=void 0))},bmE=function(S){var c=!1;
if(_.u("enable_autoplay_pause_by_lact")){_.fl().resolve(_.wj);c=_.a6("autoplay_pause_by_lact_sec")*1E3;var Q=_.a6("autoplay_pause_by_lact_sampling_fraction");(c=_.f1()>=c&&Math.random()<Q)&&!_.ah0()&&(_.HG(_.Mq,function(){_.tE("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),c=!1)}c!==S.autonavPauseReasons.youthereLactExperiment&&(S.autonavPauseReasons.youthereLactExperiment=c)&&(S.userEngagementCsn=_.wN(),_.HG(_.Mq,function(){_.tE("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",S.userEngagementCsn)}));
S.autonavPauseReasons.userEngagement&&_.HG(_.Mq,function(){_.tE("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",S.userEngagementCsn)})};
B4N.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.tE("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.wQ(),this.autonavPauseReasons.youthereLactExperiment=!1,kB(this));this.autonavPauseReasons.userEngagement&&(_.tE("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,kB(this))};
B4N.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var rq=function(){var S=_.W.apply(this,arguments)||this;S.miniGuideVisible=!1;S.guideOpened=_.u("disable_initial_guide_state_fix")?!1:S.canFitPersistentGuide(S.initialBodyClientWidth);S.guideUserStateOpened=S.getInitialGuideUserStateOpened();S.isFullscreenShorts=!1;S.miniGuideWidthThreshold=_.a6("kevlar_mini_guide_width_threshold",791);S.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");S.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
S.persistentGuideBlockedPagePathRegex=new RegExp(S.persistentGuideBlockedPagesPatterns.join("|"));S.animationTransitionDuration=0;S.lateDataResolver=_.L4();S.initialGuideDataFetchFailed=!1;S.initialLoad=!0;S.guideRenderers=new Set;S.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return S};
_.C(rq,_.W);_.J=rq.prototype;_.J.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.J.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.J.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.J.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.J.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.J.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.J.ready=function(){_.fl().addProvider({provide:_.WC,useValue:this.hostElement})};
_.J.attached=function(){var S=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.xn(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.xn(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.xn(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.xn(this,this.onYtGuideShow));_.tO(this,function(){S.animationTransitionDuration=200})};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.xn(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.xn(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.xn(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.xn(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.xn(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.xn(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.xn(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.J.getData=function(){return this.data};
_.J.load=function(){var S=this,c,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=S.lateDataResolver.resolve.bind(S),a.return(S.lateDataResolver.promise);if(window.ytInitialGuideData)return c=_.L4(),c.resolve(window.ytInitialGuideData),a.return(c.promise);f=!1;_.X1(a,2);return _.F(a,S.fetchGuideData(),4);case 4:Q=a.yieldResult;_.Pi(a,3);break;case 2:U=_.Bs(a),U.message==="Returned error"&&(f=!0);
case 3:if(Q)return a.return(Q);S.onYtGuideClose();f||(S.initialGuideDataFetchFailed=!0);return a.return(S.lateDataResolver.promise)}})};
_.J.fetchGuideData=function(){var S=this,c,Q,f,U,a,X,z;return _.O(function(x){if(x.nextAddress==1)return c=_.fl(),S.guidePromise||(Q=c.resolve(_.M6),S.guidePromise=_.P3(Q,$_2)),_.F(x,S.guidePromise,2);if(x.nextAddress!=3)return f=x.yieldResult,U=c.resolve(_.df),_.F(x,U(),3);(a=x.yieldResult)&&((X=f)==null?void 0:(z=X.responseContext)==null?void 0:z.maxAgeSeconds)!==0&&a.put("service:guide:fallback",new _.Xd({innertubeResponse:f}));return x.return(f)})};
_.J.initializeGuideDataIfEmpty=function(){var S=this,c,Q;return _.O(function(f){if(f.nextAddress==1){if(!S.initialGuideDataFetchFailed||S.data)return f.return();_.X1(f,2);return _.F(f,S.fetchGuideData(),4)}if(f.nextAddress!=2)return(c=f.yieldResult)&&S.lateDataResolver.resolve(c),_.Pi(f,0);Q=_.Bs(f);_.i5(Q);_.IN(f)})};
_.J.initializeGuideData=function(){var S=this,c;return _.O(function(Q){switch(Q.nextAddress){case 1:return _.IK(dxG(),{mainAppWeb:_.vV()}),_.X1(Q,2),_.F(Q,S.load(),4);case 4:S.data=Q.yieldResult;_.Pi(Q,3);break;case 2:_.Bs(Q),_.nj(dxG(),"FAILURE");case 3:c=S.data&&S.data.items&&S.data.items.length>0?"SUCCESS":"FAILURE",_.nj(dxG(),c),_.IN(Q)}})};
_.J.setGuideData=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1)return c.disabled?U.return():c.data?(S.data=c.data,c.guideRenderers.add(S),U.return()):_.F(U,c.initializeGuideData(),2);c.graftGuideToPage();Q=_.gC("IS_HOMEPAGE_COLD")?"eop":void 0;_.u("disable_element_pool_populator")?c.setGuideDataAfterInit(S):(f=new _.UL(1,Q),_.JN(f,c.setGuideDataAfterInit.bind(c,S)));_.IN(U)})};
_.J.setGuideDataAfterInit=function(S){S.data=this.data;S.markDirty();this.guideRenderers.add(S);_.gM(function(){_.i2("gle")});
_.tO(this,function(){_.i2("gpe")})};
_.J.graftGuideToPage=function(){if(this.data){var S=this.data&&this.data.trackingParams;S&&(S=_.Yz(S),_.z7(_.Kv(),S))}};
_.J.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.xn(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.J.onDrawerOpenedChanged=function(S,c){!c.value&&this.guideOpened&&(this.guideOpened=!1)};
_.J.onYtGuideToggle=function(S){var c=this.guideOpened;this.guideOpened=!c;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var Q=_.jL();_.l2(0,109,!this.guideUserStateOpened);Q.save()}this.updateGuideDrawerElementState();if(this.guideElement){var f;this.guideOpened&&((f=S.detail)==null?0:f.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.xn(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.xn(this,
this.onAppDrawerTransitioned))}c||this.initializeGuideDataIfEmpty()};
_.J.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.xn(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.RR(this.guideElement)};
_.J.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.xn(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(xoV(this.guideOpened))};
_.J.guidePersistentAndVisibleChanged=function(){_.Oz(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.J.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.aB({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.J.miniGuideVisibleChanged=function(){_.Oz(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.J.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(xoV(this.guideOpened)),this.initialLoad=!1);_.Oz(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.J.activeEndpointChanged=function(){_.Oz(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.J.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.J.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()};
_.J.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var S=this.canFitPersistentGuide(this.cachedClientWidth);S?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=S}this.updateGuideDrawerElementState()};
_.J.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.J.getGuideOpened=function(){return this.guideOpened};
_.J.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.J.getActiveEndpoint=function(){return this.activeEndpoint};
_.J.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.J.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&&_.Az(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.J.computeGuidePersistentAndVisible=function(){var S=this;_.e$(this,"computeGuidePersistentAndVisible",function(){S.guidePersistentAndVisible=S.guideOpened&&S.guidePersistent;S.guideIsVisibleButNotPersistent=!(!S.guideOpened||S.guidePersistent)})};
_.J.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.J.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.J.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.J.startLoadingWatch=function(){this.closeGuide()};
_.J.startLoadingShorts=function(){_.u("web_hide_guide_on_shorts")&&this.closeGuide()};
_.J.onYtNavigateFinish=function(S,c){if(!_.Fa||c){this.activeEndpoint=c.endpoint;this.pageType=c.pageType;this.pageUrl=c.response.url;var Q,f;S=(f=_.Y((Q=c.endpoint)==null?void 0:Q.commandMetadata,_.Qw))==null?void 0:f.url;!this.pageUrl&&S&&(this.pageUrl=S);_.u("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.J.getVisibleGuideRenderer=function(){for(var S=_.A(this.guideRenderers),c=S.next();!c.done;c=S.next())if(c=c.value,this.miniGuideVisible&&c.is==="ytd-mini-guide-renderer"||this.guideOpened&&c.is==="ytd-guide-renderer")return c;return null};
_.J.markGuideRendererDirty=function(S){if(S){typeof S.markDirty==="function"&&S.markDirty();S=_.A([].concat(_.Hs(_.Ur(S).children)));for(var c=S.next();!c.done;c=S.next())this.markGuideRendererDirty(c.value)}};
_.J.persistentGuideEnabled=function(S,c){if(!c||S==="watch"||S==="settings"||S==="shorts"&&this.isFullscreenShorts||_.u("reels_web_disable_persistent_guide_shorts")&&S==="shorts")return!1;var Q=_.Bi(c)||"";return _.u("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(f){return Q===f}):!this.persistentGuideBlockedPagePathRegex.test(Q)};
_.J.canFitPersistentGuide=function(S){var c=_.a6("kevlar_persistent_guide_width_threshold",1312);return c===-1||_.u("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:S>c};
_.J.canFitMiniGuide=function(S){return this.miniGuideWidthThreshold===-1?!1:S>this.miniGuideWidthThreshold};
_.J.onResize=function(){var S=this;_.e$(this,"calculateGuideState",function(){S.onResizeDebounced()})};
_.J.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.J.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.J.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.J.getInitialGuideUserStateOpened=function(){return!_.jL().getFlag(109)};
_.Rh.Object.defineProperties(rq.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.WY("initialBodyClientWidth")||window.innerWidth}}});
rq.prototype.onResize=rq.prototype.onResize;rq.prototype.observeForMiniGuideVisible=rq.prototype.observeForMiniGuideVisible;rq.prototype.computeGuidePersistentAndVisible=rq.prototype.computeGuidePersistentAndVisible;rq.prototype.cachedClientWidthChanged=rq.prototype.cachedClientWidthChanged;rq.prototype.resetGuide=rq.prototype.resetGuide;rq.prototype.activeEndpointChanged=rq.prototype.activeEndpointChanged;rq.prototype.guideOpenedChanged=rq.prototype.guideOpenedChanged;
rq.prototype.miniGuideVisibleChanged=rq.prototype.miniGuideVisibleChanged;rq.prototype.guideIsVisibleButNotPersistentChanged=rq.prototype.guideIsVisibleButNotPersistentChanged;rq.prototype.guidePersistentAndVisibleChanged=rq.prototype.guidePersistentAndVisibleChanged;rq.prototype.onGuideElementChanged=rq.prototype.onGuideElementChanged;rq.prototype.onGuidePersistentChanged=rq.prototype.onGuidePersistentChanged;rq.prototype.onRenderGuideChanged=rq.prototype.onRenderGuideChanged;
rq.prototype.onActiveEndpointChanged=rq.prototype.onActiveEndpointChanged;rq.prototype.onMiniGuideVisibleChanged=rq.prototype.onMiniGuideVisibleChanged;rq.prototype.onGuideIsVisibleButNotPersistentChanged=rq.prototype.onGuideIsVisibleButNotPersistentChanged;rq.prototype.onGuidePersistendAndVisibleChanged=rq.prototype.onGuidePersistendAndVisibleChanged;_.d([_.p(_.w9),_.P("design:type",Object)],rq.prototype,"ironResizableBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],rq.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],rq.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],rq.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rq.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],rq.prototype,"disabled",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],rq.prototype,"guidePersistentAndVisible",void 0);_.d([_.B0("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onGuidePersistendAndVisibleChanged",null);_.d([_.Z(),_.P("design:type",Boolean)],rq.prototype,"guideIsVisibleButNotPersistent",void 0);
_.d([_.B0("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.d([_.Z(),_.P("design:type",Object)],rq.prototype,"miniGuideVisible",void 0);_.d([_.B0("miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onMiniGuideVisibleChanged",null);_.d([_.Z(),_.P("design:type",Boolean)],rq.prototype,"forceMiniGuideClose",void 0);
_.d([_.Z(),_.P("design:type",Object)],rq.prototype,"activeEndpoint",void 0);_.d([_.B0("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onActiveEndpointChanged",null);_.d([_.Z(),_.P("design:type",Boolean)],rq.prototype,"renderGuide",void 0);_.d([_.B0("renderGuide"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onRenderGuideChanged",null);
_.d([_.Z(),_.P("design:type",Object)],rq.prototype,"guideOpened",void 0);_.d([_.Z(),_.P("design:type",Boolean)],rq.prototype,"guidePersistent",void 0);_.d([_.B0("guidePersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onGuidePersistentChanged",null);_.d([_.Z(),_.P("design:type",Object)],rq.prototype,"guideUserStateOpened",void 0);_.d([_.Z(),_.P("design:type",String)],rq.prototype,"pageUrl",void 0);
_.d([_.Z(),_.P("design:type",String)],rq.prototype,"pageType",void 0);_.d([_.Z(),_.P("design:type",Number)],rq.prototype,"cachedClientWidth",void 0);_.d([_.Z(),_.P("design:type",Object)],rq.prototype,"guideElement",void 0);_.d([_.Z({selector:_.KD}),_.P("design:type",Object)],rq.prototype,"isFullscreenShorts",void 0);_.d([_.B0("guideElement"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onGuideElementChanged",null);
_.d([_.B0("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"guidePersistentAndVisibleChanged",null);_.d([_.$n("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.d([_.B0("miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"miniGuideVisibleChanged",null);_.d([_.$n("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"guideOpenedChanged",null);_.d([_.B0("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"activeEndpointChanged",null);
_.d([_.$n("pageUrl"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"resetGuide",null);_.d([_.$n("cachedClientWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"cachedClientWidthChanged",null);_.d([_.B0("guideOpened","guidePersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"computeGuidePersistentAndVisible",null);
_.d([_.$n("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"observeForMiniGuideVisible",null);_.d([_.FV("iron-resize"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rq.prototype,"onResize",null);_.d([_.e({disableElementRegistration:!0,is:"yt-guide-manager"})],rq);var N4E=_.k(rq,"yt-guide-manager",void 0,{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var dq=function(){var S=_.W.apply(this,arguments)||this;S.JSC$17798_keyboardInUse=!1;S.boundHandleCapturedKeydownEvent=function(c){S.handleCapturedKeydownEvent(c)};
return S};
_.C(dq,_.W);_.J=dq.prototype;_.J.attached=function(){this.listenToDocument(document)};
_.J.listenToDocument=function(S){S.addEventListener("keydown",_.xn(this,this.onKeyDownEvent));S.addEventListener("keyup",_.xn(this,this.onKeyUpEvent));S.addEventListener("mousedown",_.xn(this,this.onMouseDownEvent));_.u("desktop_keyboard_capture_keydown_killswitch")||S.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);S.addEventListener("yt-page-data-updated",_.xn(this,this.onPageUpdate))};
_.J.detached=function(){this.unlistenFromDocument(document)};
_.J.unlistenFromDocument=function(S){S.removeEventListener("keydown",_.xn(this,this.onKeyDownEvent));S.removeEventListener("keyup",_.xn(this,this.onKeyUpEvent));S.removeEventListener("mousedown",_.xn(this,this.onMouseDownEvent));_.u("desktop_keyboard_capture_keydown_killswitch")||S.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);S.removeEventListener("yt-page-data-updated",_.xn(this,this.onPageUpdate))};
_.J.ready=function(){_.fl().addProvider({provide:_.zy,useValue:this})};
_.J.isKeyBoardInUse=function(){return this.JSC$17798_keyboardInUse};
_.J.handleCapturedKeydownEvent=function(S){if(S.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(S)};
_.J.onMouseDownEvent=function(){this.JSC$17798_keyboardInUse=!1};
_.J.onPageUpdate=function(){if(_.u("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.u("web_shorts_keyboard_shortcut_usage_log")){_.m3.clear();for(var S=_.A(_.yU),c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;Q=Q.next().value;Q=_.qo(Q);_.m3.set(c,Q);_.dS(_.wN(),_.T$(),Q)}_.Sk.clear();S=_.A(_.o4);for(c=S.next();!c.done;c=S.next())Q=_.A(c.value),c=Q.next().value,Q=Q.next().value,Q=_.qo(Q),_.Sk.set(c,Q),_.dS(_.wN(),_.T$(),Q);_.v2(_.wN(),_.T$(),[].concat(_.Hs(_.Sk.values()),
_.Hs(_.m3.values())));_.L8(_.wN(),[].concat(_.Hs(_.Sk.values()),_.Hs(_.m3.values())))}};
_.J.onMiniplayerActiveChange=function(){var S;(S=_.fl().resolve(_.ra).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(S.document):this.unlistenFromDocument(S.document))};
_.J.ignoreKeyEvent=function(S){if(S.ctrlKey||S.altKey)if(_.u("kevlar_macro_markers_keyboard_shortcut")){if(S.keyCode!==37&&S.keyCode!==39)return!0}else return!0;var c=_.t4(S)||[];return _.zIG(c)?!0:S.defaultPrevented?(FC(S.keyCode,S.shiftKey,this.isShortsPage),!0):S.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(S):!1};
_.J.isSpacebarClick=function(S){var c=S||window.event;var Q;c.composedPath&&typeof c.composedPath==="function"?Q=c.composedPath():Q=c.path;Q&&Q.length?c=Q[0]:(c=c||window.event,c=c.target||c.srcElement,c.nodeType==3&&(c=c.parentNode));return c&&S.keyCode===32&&(S=c.tagName==="BUTTON"||c.tagName==="A"||c.tagName==="INPUT",c=(c=c.getAttribute("role"))&&(c==="option"||c==="button"||c.indexOf("menuitem")===0),S||c)?!0:!1};
_.J.onKeyDownEvent=function(S){if(!this.ignoreKeyEvent(S)&&(S.keyCode===191&&(S.shiftKey||S.metaKey?S.repeat!=null&&S.repeat||(this.openHotkeyDialog(),FC(S.keyCode,S.shiftKey,this.isShortsPage)):(this.focusSearchBox(),S.preventDefault())),!S.metaKey)){var c=_.fl().resolve(_.ra);switch(S.keyCode){case 9:this.JSC$17798_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(S);break;case 84:c.pipController.getWindow()&&window.focus();this.toggleTheaterMode(S.keyCode,S.shiftKey);break;case 73:c.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(S.keyCode,S.shiftKey);break;case 70:if(this.isShortsPage&&_.u("web_fullscreen_shorts")){_.F5U();break}this.isMiniplayerActive()?c.pipController.getWindow()&&(c.close(!0),window.focus()):this.passEventToPlayer(S);break;case 27:this.isPresentingTheaterMode()?this.toggleTheaterMode(S.keyCode,S.shiftKey):this.closeMiniplayer(S.keyCode,S.shiftKey)||this.passEventToPlayer(S);break;case 13:S.shiftKey&&_.u("web_ephemeral_actions")&&_.fl().resolve(_.Fj).activate(S);break;
default:this.passEventToPlayer(S)}}};
_.J.onKeyUpEvent=function(S){if(!this.ignoreKeyEvent(S))if(_.u("web_speedmaster_spacebar_control")&&S.keyCode===32)this.handlePlayerSpaceKey(S,!0);else{var c=this.getPlayerManager();c&&(c=c.getPlayer())&&c.handleGlobalKeyUp(S.keyCode,S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code)}};
_.J.getPlayerManager=function(){var S=_.S9(),c=_.fl().resolve(_.QS(_.oZ));return S&&c&&c.isOnWatch()?S:null};
_.J.passEventToPlayer=function(S,c){var Q=this,f,U,a;return _.O(function(X){if(X.nextAddress==1)return!_.u("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&Q.isMiniplayerActive()?f=_.fl().resolve(_.ra).getPlayerElement():Q.inlinePreviewIsActive?(U=_.Oz(Q.hostElement,"yt-get-inline-preview-player-action"))&&U[0]&&(f=U[0]):f=_.S9(),f?_.F(X,f.getPlayerPromise(),3):X.jumpTo(0);a=X.yieldResult;c?a.handleGlobalKeyUp(S.keyCode,S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code,S.repeat):a.handleGlobalKeyDown(S.keyCode,
S.shiftKey,S.ctrlKey,S.altKey,S.metaKey,S.key,S.code,S.repeat);S.keyCode!==38&&S.keyCode!==40&&FC(S.keyCode,S.shiftKey,Q.isShortsPage);_.IN(X)})};
_.J.focusSearchBox=function(){_.Az(this.hostElement,"yt-focus-searchbox")};
_.J.openHotkeyDialog=function(){_.Az(this.hostElement,"yt-open-hotkey-dialog")};
_.J.isMiniplayerActive=function(){return _.fl().resolve(_.ra).isMiniplayerActive()};
_.J.closeMiniplayer=function(S,c){return this.isMiniplayerActive()?(_.fl().resolve(_.ra).close(),FC(S,c,this.isShortsPage),!0):!1};
_.J.toggleTheaterMode=function(S,c){var Q=_.WK(_.V5().getState()),f=this.getPlayerManager(),U=_.u("disable_theater_mode_keyboard")||_.gC("START_IN_FULL_WINDOW_MODE");f&&!U&&(Q=!Q,_.f8()&&_.u("external_fullscreen")&&(Q=!0),_.XF(this.hostElement,"yt-toggle-theater-mode",[Q]),FC(S,c,this.isShortsPage))};
_.J.toggleMiniplayer=function(S,c){var Q=this.getPlayerManager();if(this.isMiniplayerActive()){var f;((f=_.fl().resolve(_.QS(_.oZ)))==null?0:f.isOnWatch())?_.fl().resolve(_.ra).close(!0):_.um(_.fl().resolve(_.ra));FC(S,c,this.isShortsPage)}else Q&&(_.XF(this.hostElement,"yt-activate-miniplayer-from-watch-action"),FC(S,c,this.isShortsPage))};
_.J.handlePlayerSpaceKey=function(S,c){var Q=!!_.S9()||this.isMiniplayerActive();Q=_.u("disable_space_scroll_fix")||Q;_.u("global_spacebar_pause")&&!this.isKeyBoardInUse()&&Q&&(S.preventDefault(),this.passEventToPlayer(S,c))};
_.J.isPresentingTheaterMode=function(){return _.u("web_watch_enable_tm_esc_key")?_.WK(_.V5().getState())&&!_.f8():!1};
dq.prototype.onMiniplayerActiveChange=dq.prototype.onMiniplayerActiveChange;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],dq.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],dq.prototype,"ytdReduxBehavior",void 0);_.d([_.Z({selector:_.ncY}),_.P("design:type",Boolean)],dq.prototype,"inlinePreviewIsActive",void 0);_.d([_.Z({selector:_.Al8}),_.P("design:type",Boolean)],dq.prototype,"isShortsPage",void 0);
_.d([_.Z({selector:_.sm}),_.P("design:type",Boolean)],dq.prototype,"miniplayerIsActive",void 0);_.d([_.B0("miniplayerIsActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dq.prototype,"onMiniplayerActiveChange",null);_.d([_.e({disableElementRegistration:!0,is:"yt-hotkey-manager"})],dq);_.k(dq,"yt-hotkey-manager",void 0,{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var v6=function(){var S=_.W.apply(this,arguments)||this;S.loopStateEntityKey_=null;S.playlistLoopStateEntity_=null;S.isShuffleNextPlaylist=!1;S.PLAYER_EVENTS_=new Map;S.playerListenersSetup_=!1;S.videoSkipJob_=0;S.canAutoAdvance_=!1;S.playerManager_=null;S.TEST_ONLY={};return S};
_.C(v6,_.W);_.J=v6.prototype;_.J.ready=function(){_.fl().addProvider({provide:_.G7,useValue:this.hostElement})};
_.J.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_)};
_.J.attached=function(){document.addEventListener("yt-navigate-start",_.xn(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.xn(this,this.onYtNavigateFinish_))};
_.J.detached=function(){document.removeEventListener("yt-navigate-start",_.xn(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.xn(this,this.onYtNavigateFinish_))};
_.J.updatePlaylistEventListeners=function(S,c){c&&!this.playerListenersSetup_?(this.playerManager_=S,this.registerPlaylistEventListeners_(S)):!c&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(S))};
_.J.setPlayer=function(S){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=S};
_.J.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.J.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.J.registerPlaylistEventListeners_=function(S){var c=this;S.getPlayerPromise().then(function(Q){c.playerListenersSetup_||(c.ytPlayerListenerBehavior.listenToPlayerEvents(Q,c.PLAYER_EVENTS_),c.playerListenersSetup_=!0)})};
_.J.removePlaylistEventListeners_=function(S){var c=this;S.getPlayerPromise().then(function(Q){c.playerListenersSetup_&&(c.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Q,c.PLAYER_EVENTS_),c.playerListenersSetup_=!1)})};
_.J.setPlaylistComponent=function(S){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.xn(this,this.onPlaylistYtNavigate_)),S&&(S.data&&this.playlistComponent.data&&S.data.playlistId==this.playlistComponent.data.playlistId?(S.loopOn=this.playlistComponent.loopOn,S.shuffleOn=this.playlistComponent.shuffleOn):(S.loopOn=!1,S.shuffleOn=!1),this.isShuffleNextPlaylist&&(S.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=S;this.playlistComponent.addEventListener("yt-navigate",
_.xn(this,this.onPlaylistYtNavigate_))};
_.J.setAutoplayRenderer=function(S){this.autoplayData=S};
_.J.setPlaylistData=function(S){this.currentPlaylistData_=S;_.Az(this.hostElement,"yt-playlist-data-updated");_.Cn.isEmpty(S)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(S)};
_.J.setPlayerPlaybackControlData=function(S){this.playerManager_&&this.playerManager_.updatePlayerComponents(S.playlistPanelRenderer)};
_.J.getPlaylistData=function(){return this.currentPlaylistData_};
_.J.getTempData_=function(S,c){if(this.playlistComponent==null)return null;S={};this.playlistComponent.shuffleOn&&(S.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(S.loop_on=this.playlistComponent.loopOn);c&&(S.autonav="1",_.fl().resolve(_.wj),c=_.f1(),c>0&&(S.lact=c),this.playerManager_&&(c=this.playerManager_.getPlayer())&&c.shouldSendVisibilityState()&&(c=c.getVisibilityState(),c!=0&&(S.vis=c)));_.u("enable_unknown_lact_fix_on_html5")&&(_.fl().resolve(_.wj),S.lact=
_.f1());return S};
_.J.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.J.setLoopStateEntityKey_=function(S){var c;this.loopStateEntityKey_=((c=this.getPlaylistLoopData_(S))==null?void 0:c.playlistLoopStateEntityKey)||null};
_.J.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.J.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.J.skipVideo=function(){var S=this,c=_.u("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||c)c=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.u9(_.Mq,function(){S.onPlaylistNext();S.videoSkipJob_=0},c)};
_.J.cancelVideoSkip=function(){this.videoSkipJob_&&(_.Mq.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.J.isInBackground_=function(){var S=window.document.visibilityState;return!(!S||S=="visible")};
_.J.onPlaylistIndex_=function(S){this.playlistComponent&&(S=this.playlistComponent.data.contents[S].playlistPanelVideoRenderer.navigationEndpoint,_.Az(this.hostElement,"yt-navigate",{endpoint:S,tempData:this.getTempData_(S)}))};
_.J.onPlayerStateChange_=function(S){if(S=S==0&&this.playlistComponent&&this.canAutoAdvance_)S=_.oJ.getInstance(),S=!(S.autonavState_===3?S.autonavPauseReason_&&S.autonavPauseReason_.inputBoxFocus===!0:S.autonavState_===1&&S.disabledAutonavPauseReason_&&S.disabledAutonavPauseReason_.inputBoxFocus===!0);S&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.J.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.J.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.J.navigateToAutoplayWatchEndpoint_=function(S,c,Q){var f=this.playlistComponent.data.currentIndex,U=this.getNumPlayableVideos_();S=="NORMAL"&&c=="autoplayVideo"&&f+1>=U&&Q||!(S=this.getVideoEndpoint_(S,c))||(Q=this.getTempData_(S,Q),_.Az(this.hostElement,"yt-navigate",{endpoint:S,tempData:Q}))};
_.J.getNumPlayableVideos_=function(){for(var S=0,c=_.A(this.playlistComponent.data.contents||[]),Q=c.next();!Q.done;Q=c.next())Q.value.playlistPanelVideoRenderer&&(S+=1);return S};
_.J.getVideoEndpoint_=function(S,c){if(this.autoplayData&&this.autoplayData.sets)for(var Q=0,f=this.autoplayData.sets.length;Q<f;Q++){var U=this.autoplayData.sets[Q];if(U.mode==S){if(U[c])return U[c];break}}else S=new _.Yr("AutoplayData is undefined in playlist manager","Mode: "+S+" endpoint: "+c),_.i5(S)};
_.J.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.J.onPlaylistYtNavigate_=function(S){if(S.detail.endpoint){S.stopPropagation();var c=S.detail;c.tempData=this.getTempData_(S.detail.endpoint);_.Az(this.hostElement,"yt-navigate",c)}};
_.J.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.J.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.J.playlistLoopStateEntityChanged_=function(S){var c=this,Q,f,U;return _.O(function(a){if(a.nextAddress==1){if(!S)return a.return();Q=S.state==="PLAYLIST_LOOP_STATE_ONE";return c.playerManager_?_.F(a,c.playerManager_.getPlayerPromise(),3):a.jumpTo(2)}a.nextAddress!=2&&(f=a.yieldResult,f.setLoopVideo(Q));U=S.state==="PLAYLIST_LOOP_STATE_ALL";c.playlistComponent&&(c.playlistComponent.loopOn=U);_.IN(a)})};
_.J.getPlaylistLoopData_=function(S){var c,Q;if(S=S==null?void 0:(c=S.playlistButtons)==null?void 0:(Q=c.menuRenderer)==null?void 0:Q.topLevelButtons)for(c=_.A(S),Q=c.next();!Q.done;Q=c.next())if(Q=Q.value,Q.playlistLoopButtonRenderer)return Q.playlistLoopButtonRenderer};
_.J.getLoopStateCommand_=function(S){var c=this.getPlaylistData(),Q;c=((Q=this.getPlaylistLoopData_(c))==null?void 0:Q.states)||[];var f;S=(f=_.Y(c[S?1:2],_.zdz))==null?void 0:f.button;var U;return(U=_.Y(S,_.GF))==null?void 0:U.command};
_.J.onPlayerLoopChange_=function(S){this.playlistLoopStateEntity_&&(S?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(S=this.getLoopStateCommand_(S))&&this.ytComponentBehavior.resolveCommand(S)};
_.J.onSleepTimerSettingsChanged_=function(S){this.canAutoAdvance_=S!=="End of video"};
v6.prototype.onPlaylistLoopStateEntityChanged=v6.prototype.onPlaylistLoopStateEntityChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],v6.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],v6.prototype,"ytPlayerListenerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],v6.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],v6.prototype,"loopStateEntityKey_",void 0);
_.d([_.Z({selectorArgs:["loopStateEntityKey_"],selector:_.qgT}),_.P("design:type",Object)],v6.prototype,"playlistLoopStateEntity_",void 0);_.d([_.B0("playlistLoopStateEntity_"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],v6.prototype,"onPlaylistLoopStateEntityChanged",null);_.d([_.e({disableElementRegistration:!0,is:"yt-playlist-manager"})],v6);_.k(v6,"yt-playlist-manager",void 0,{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var Ky1,$cE=function(){if(Ky1!==void 0)return Ky1;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Ky1=S};var P6=function(){var S=_.W.apply(this,arguments)||this;S.lastCallback=null;S.getAccountLinkPromises={};S.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);S.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return S};
_.C(P6,_.W);_.J=P6.prototype;_.J.getLocation=function(){return window.location.href};
_.J.getCompletionUrl=function(){return _.m1(this.getLocation())};
_.J.containsRedirectState=function(S){return(S=_.q7(_.XSo(S)))?(new URLSearchParams(S)).get("redirect_state")!==null:!1};
_.J.createGalConfig=function(S,c){var Q=new M9O;S=Q=c?this.getPopupOrRedirectSetting(Q,_.WY("LINK_API_KEY"),_.WY("LINK_API_KEY_REDIRECT"),S):iSU(Q,_.WY("LINK_API_KEY"));S.authUser=_.WY("SESSION_INDEX")||0;S.supportedFlows=new Set([4]);return S.build()};
_.J.getPopupOrRedirectSetting=function(S,c,Q,f){this.isGalInteractionPopupMode(f)?(S.interactionMode=0,S=iSU(S,c)):(S.interactionMode=1,c=this.getCompletionUrl(),S.completionUrl=c,S=iSU(S,Q));return S};
_.J.isGalInteractionPopupMode=function(S){if(this.redirectModeProviderAllowlist.has(S))switch(S){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!1;default:return!1}return!0};
_.J.getStatusEntityKeyForProviderId=function(S){return _.xy(S+":all","accountLinkStatusEntity")};
_.J.findNestedPropValue=function(S,c){var Q=!1,f=null;JSON.stringify(S,function(U,a){Q||U!==c||(Q=!0,f=a);return Q?null:a});
return f};
_.J.findAccountLinkButtonViewModel=function(S,c){var Q=null,f=!1;JSON.stringify(S,function(U,a){f||a.accountLinkStatusEntityKey!==c||a.accountLinkStatusSecondaryEntityKey||(f=!0,Q=a);return f?null:a});
return Q};
_.J.executeLinkingSuccessOrFailureCommands=function(S,c,Q){var f=null,U;(c==null?0:(U=c.url)==null?0:U.includes("account_sharing"))?f=c==null?void 0:c.response:f=c==null?void 0:c.response;(c=this.findAccountLinkButtonViewModel(f,S))?(S=Q?this.findNestedPropValue(c,"onSuccessCommand"):this.findNestedPropValue(c,"onFailureCommand"))?_.n8([S],this.hostElement):_.dC(Error("gl")):_.dC(Error("hl`"+S))};
_.J.handleInitializeRequest=function(S,c){var Q=this,f=O$G(this.createGalConfig(S,!0));this.containsRedirectState(this.getLocation())?UmE(S,f.config,f.galService).then(function(U){var a=Q.getStatusEntityKeyForProviderId(S);if(U.statusCode===1)c&&Q.executeLinkingSuccessOrFailureCommands(a,c,!0),U=Q.getLocation().indexOf("#"),U!==-1&&window.history.pushState(null,"",Q.getLocation().substring(0,U));else return c&&Q.executeLinkingSuccessOrFailureCommands(a,c,!1),Promise.reject(Error(U.statusMessage))}).catch(function(U){_.i5(U);
_.Te("gamingAccountLinkStatusChanged",{serviceId:S,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(U)}):this.getAccountLinkPromises[S]=f.startLinkingSession({serviceId:S})};
_.J.handleAccountLinkCommand=function(S){_.Y(S,$9p)&&this.handleLinkRequest(_.Y(S,$9p))};
_.J.handleLinkRequest=function(S){var c=this,Q=S.thirdPartyId;if(Q)if(this.isGalInteractionPopupMode(Q)){var f=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",S.onFailureCommand)},U=function(){c.closeAndFire("ytd-gaming-account-link-setting-renderer",S.onSuccessCommand)};
this.lastCallback=U;this.getAccountLinkPromises[Q].then(function(a){BDp(a).then(function(X){X.statusCode===1?U():f()})}).catch(function(){f()})}else this.getAccountLinkPromises[Q].then(function(a){BDp(a).then(function(X){if(X.statusCode!==1)return Promise.reject(Error(X.statusMessage))})}).catch(function(a){_.i5(a);
_.Te("gamingAccountLinkStatusChanged",{serviceId:Q,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(a)})};
_.J.closeAndFire=function(S,c){_.XF(this.hostElement,"yt-close-popup-action",[S]);c&&_.n8([c],this.hostElement)};
_.J.handleAccountUnlinkCommand=function(S){_.Y(S,uw2)&&this.handleUnlinkRequest(_.Y(S,uw2))};
_.J.handleUnlinkRequest=function(S){var c=this,Q=S.thirdPartyId;if(Q){var f=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",S.onFailureCommand)},U=function(){c.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",S.onSuccessCommand)};
this.lastCallback=U;var a=O$G(this.createGalConfig(Q,!1));this.unlinkUserGal(a,Q).then(function(X){X.statusCode===1?U():f()}).catch(function(){f()})}};
_.J.unlinkUserGal=function(S,c){return S.deleteLink(c)};
_.J.handleLogAccountLinkingEventCommand=function(S){_.u("enable_gel_log_commands")&&_.Y(S,j7p)&&(S=_.Y(S,j7p).event)&&_.Te("gamingAccountLinkStatusChanged",S)};
_.Rh.Object.defineProperties(P6,{template:{configurable:!0,enumerable:!0,get:function(){return $cE()}}});
_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],P6.prototype,"ytOpenPopupBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],P6.prototype,"ytActionHandlerBehavior",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-third-party-manager"})],P6);_.k(P6,"ytd-third-party-manager",function(){return $cE()},{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var ulg,jQO=function(){return ulg!==void 0?ulg:ulg=document.createElement("template")};
document.head.appendChild(jQO().content);var lp0,YLp=function(){if(lp0!==void 0)return lp0;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(jQO().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return lp0=S};var CvE=_.oK(["\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      "]),LQ=function(){var S=_.W.apply(this,arguments)||this;S.currentPage=void 0;S.renderLoadingStateJobId=0;S.updatePageDataJobId=0;S.pageDisposeJobsets=new WeakMap;S.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"};S.applyZoomTransition=_.Al("web_page_transition_type")==="zoom";S.applySlideTransition=_.Al("web_page_transition_type")==="slide"||_.u("enable_plj_landing_page");S.TEST_ONLY=void 0;return S};
_.C(LQ,_.W);_.J=LQ.prototype;_.J.ready=function(){var S=_.fl();S.addProvider({provide:_.oZ,useValue:this});S.addProvider({provide:_.sd$,useValue:this})};
_.J.created=function(){this.pagePool=new ERV;this.contextSwitcher=new aMN};
_.J.attached=function(){_.Az(this.hostElement,"attached");var S=_.fl().resolve(_.QS(_.s_));S&&(this.contextSwitcher.JSC$17622_networkService_=S);this.viewTransitionCoordinator=_.fl().resolve(_.QS(_.AD));this.setupPageTransitionAnimation()};
_.J.getPageOffset=function(S){return S.getScrollTop()};
_.J.setPageOffset=function(S,c){try{S.setScrollTop(c)}catch(Q){}};
_.J.setPageOffsetForNavigation=function(S,c){_.Az(this.hostElement,"yt-navigate-set-page-offset",{page:S,offset:c===void 0?0:c})};
_.J.pauseActiveContext=function(){var S=this.contextSwitcher;S.activeContext_&&S.activeContext_.pause()};
_.J.getModuleNameForType=function(S){return S==="watch"?_.u("kevlar_watch_fixie")?"watchFixie":_.u("kevlar_watch_grid")?"watchGrid":"watchFlexy":S==="shorts"||S==="search"?S:"browse"};
_.J.attachPage=function(S){var c,Q=!_.u("pc_is_attached_ks")&&(S==null?void 0:(c=S.polymerController)==null?void 0:c.isAttached);if(!S.isAttached&&!Q)try{_.Ur(this.hostElement).appendChild(S)}catch(U){var f;_.i5(new _.Yr("Error attaching page element for component",{origin:(f=this.currentPage)==null?void 0:f.is,component:S.is}))}};
_.J.setActivePage=function(S){var c=this,Q=!1,f=function(){var U=c.isOnWatch(),a=c.currentPage;if(S)if(S!==c.currentPage){a&&(a.hidden=!0,a.active=!1,a.removeAttribute("role"));c.currentPage=S;var X,z=_.nJ((X=c.data)==null?void 0:X.endpoint);a&&_.Az(c.hostElement,"yt-page-type-changed",{oldPageType:a.is,newPageType:S.is,newPageSubtype:z});_.P0().dispatch(_.aB({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:S.is}));_.P0().dispatch(_.aB({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:z||""}));S.hidden=
!1;c.attachPage(S);S.active=!0;S.setAttribute("role","main");a&&c.setPageOffsetForNavigation(S,0);_.u("kevlar_remove_page_dom_on_switch")&&!U&&a&&_.Ur(c.hostElement).removeChild(a)}else Q=!0;else U=new _.Yr("Unable to set active page",a?a.is:"unknown origin",(z=c.data)==null?void 0:z.endpoint),_.sH(U)};
this.viewTransitionCoordinator?hoO(this.viewTransitionCoordinator,f,this.viewTransitionConfigForSetActivePage(this.currentPage,S)):f();return Q};
_.J.viewTransitionConfigForSetActivePage=function(S,c){return _.u("web_thumbnail_to_watch_transition")&&(S==null?void 0:S.is)==="ytd-browse"&&this.isWatchPage(c)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(S==null?void 0:S.is)==="ytd-browse"&&(c==null?void 0:c.is)==="ytd-browse"&&S!==c?this.applySlideTransition?{transitionType:"slide"}:{transitionType:"zoom"}:(S==null?void 0:S.is)!=="ytd-browse"||(c==null?void 0:c.is)!=="ytd-watch-learning-journey"&&
(c==null?void 0:c.tagName.toLowerCase())!=="ytd-watch-learning-journey"?{viewTransitionOptions:{shouldWrap:!1}}:{transitionType:"learning-journey"}};
_.J.updatePageData=function(S){var c=this,Q=this.data;this.updatePageDataJobId&&_.Mq.cancelJob(this.updatePageDataJobId);this.data=S;return new _.n1(function(f){var U=function(){S.filler?c.performDataUpdate(S,Q):Lv2(function(){c.performDataUpdate(S,Q)});
var x=_.g2();_.en(x,"cr")||x.processSignal("cr");f()},a=function(){S&&S.page==="watch"?c.updatePageDataJobId=_.u9(_.Mq,U):U()};
if(_.u("kevlar_enable_mss_page_modules_client")&&S){var X=_.fl().resolve(_.v$),z=c.getModuleNameForType(S.page);(X=sWO(X,[z]))?X.then(a):a()}else a()})};
_.J.isDownloadsPage=function(S){var c,Q;return(S==null?void 0:(c=S.endpoint)==null?void 0:(Q=c.browseEndpoint)==null?void 0:Q.browseId)==="FEdownloads"};
_.J.setPlayerSyncInterval=function(S){var c;return _.O(function(Q){if(Q.nextAddress==1)return _.F(Q,_.fl().resolve(_.J8),2);c=Q.yieldResult;c.setUpPositionSyncInterval(S);_.IN(Q)})};
_.J.performDataUpdate=function(S,c){_.u("kevlar_early_popup_close")||_.XF(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var Q=!S.filler;Q&&(_.i2("lps"),_.u("config_age_report_killswitch")||CHE());var f=cO(S),U,a=!1;if(_.u("kevlar_remove_page_dom_on_switch")){var X=c&&cO(c);f===X&&(U=this.getCurrentPage())}U||(U=ih(this.pagePool,f));Q&&V$p(this.pagePool.elementPoolPopulator,f);Q&&!this.renderLoadingStateJobId&&(a=this.setActivePage(U));if(U){X=f==="watch";var z=
f==="shorts",x=f==="learning_journey_watch";_.u("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(U);if(X||z||x)U.playerData=S.playerResponse;if(z){S.reelWatchSequenceResponse?U.reelWatchSequenceResponse=S.reelWatchSequenceResponse:S.cachedReelWatchSequenceResponse?U.reelWatchSequenceResponse=S.cachedReelWatchSequenceResponse:_.u("web_enable_cached_reel_sequence_fix")&&U.cachedReelWatchSequenceResponse&&!U.reelWatchSequenceResponse&&(U.reelWatchSequenceResponse=U.cachedReelWatchSequenceResponse);
U.currentEndpoint=S.endpoint;var I;U.isPreviousPageShorts=!!(c==null?0:(I=c.endpoint)==null?0:I.reelWatchEndpoint);S.cachedReelWatchSequenceResponse=S.reelWatchSequenceResponse||S.cachedReelWatchSequenceResponse||(c==null?void 0:c.cachedReelWatchSequenceResponse);U.cachedReelWatchSequenceResponse=S.cachedReelWatchSequenceResponse}I=this.isDownloadsPage(S);var n=this.isDownloadsPage(c);I&&!n?this.setPlayerSyncInterval(6E5):!I&&n&&this.setPlayerSyncInterval();_.u("block_all_player_prefetch_requests")||
this.preparePrefetchRequest(S,U,Q,X,z,x);MwE(_.fl().resolve(_.ra),c,S);_.ov(_.fl().resolve(_.wj));_.u("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(U);Q?(Q=typeof U.loadPage,Q==="function"?(U.pageContext=AK1(this.contextSwitcher,U,U.data!==S.response),Q=function(){U.loadPage(S.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionCoordinator&&U.is==="ytd-browse"&&a&&(f==="learning"||this.isDifferentBrowseId(S==null?void 0:S.endpoint,
c==null?void 0:c.endpoint))?this.applySlideTransition?hoO(this.viewTransitionCoordinator,Q,{transitionType:"slide"}):hoO(this.viewTransitionCoordinator,Q,{transitionType:"zoom"}):Q()):_.MP(new _.Yr("b/38014653 ",[f,
U.is,U.nodeName,Q,U.isAttached,c&&cO(c),this.hostElement.children.length])),_.i2("pdl")):(U.hidden=!0,S.response.filler=!0,U.data=S.response,this.attachPage(U));_.Az(this.hostElement,"yt-page-data-updated",{pageType:f})}_.HG(_.Mq,function(){_.u("logging_avoid_blocking_during_navigation")&&_.SXT().transition("none");var b=lMN(),N=U;if(S){var l=Sz2(S),H=czE(S),q;a:{if(S.playerResponse){var w=S.playerResponse,g;if((q=w.auxiliaryUi)==null?0:(g=q.messageRenderers)==null?0:g.upsellDialogRenderer){q=w.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(S.response&&(q=S.response,(w=q.overlay)==null?0:w.upsellDialogRenderer)){q=q.overlay.upsellDialogRenderer;break a}q=void 0}var r;var E;g=(r=S.playerResponse)==null?void 0:(E=r.auxiliaryUi)==null?void 0:E.messageRenderers;r=(g==null?void 0:g.enforcementMessageViewModel)||(g==null?void 0:g.bkaEnforcementMessageViewModel);r=(r==null?void 0:r.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?r:void 0;var v;a:{if(S.response&&(E=S.response,(v=E.overlay)==null?0:v.commandWrapperPromoRenderer)){v=
E.overlay.commandWrapperPromoRenderer;break a}v=void 0}jtG(b,l,H,q,r,v,N)}})};
_.J.preparePrefetchRequest=function(S,c,Q,f,U,a){var X,z,x,I,n,b,N,l,H,q,w,g,r,E,v;return _.O(function(t){if(t.nextAddress==1)return!Q||!(f||U||a)||_.u("kevlar_disable_background_prefetch")&&_.kC(_.LtT)()===0?t.return():(X=_.mZ(c))?_.F(t,X.getPlayerPromise(),2):t.return();z=t.yieldResult;x=_.fl().resolve(_.QS(_.s_));if(!x)return t.return();if(U)return I=_.Aw(_.YR),QW2(I,(n=S.endpoint)==null?void 0:n.reelWatchEndpoint,c.reelWatchSequenceResponse,z,x),t.return();l=(b=S.response)==null?void 0:(N=b.responseContext)==
null?void 0:N.webResponseContextExtensionData;if(!l)return t.return();r=(H=S.response)==null?void 0:(q=H.contents)==null?void 0:(w=q.twoColumnWatchNextResults)==null?void 0:(g=w.autoplay)==null?void 0:g.autoplay;E=_.fl().resolve(_.G7);v=_.Aw(_.YR);fcT(v,l,z,x,E,r);_.IN(t)})};
_.J.movePlayerToWatch=function(S){var c=this,Q,f;return _.O(function(U){Q=ih(c.pagePool,"watch");f=Q.getPlayerContainer();S.appendTo(f);_.IN(U)})};
_.J.movePlayerToShorts=function(S){var c=this,Q,f,U;return _.O(function(a){Q=ih(c.pagePool,"shorts");f=Q.getPlayerContainer();(U=S)==null||U.appendTo(f,void 0,!0);_.IN(a)})};
_.J.getPlayerFromWatch=function(){var S=ih(this.pagePool,"watch");return _.mZ(S)};
_.J.getPlayerFromShorts=function(){var S=ih(this.pagePool,"shorts");return _.mZ(S)};
_.J.startLoadingWatch=function(){var S=ih(this.pagePool,"watch");this.renderLoadingStateJobId?(_.Mq.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(S)};
_.J.startLoadingShorts=function(){var S=ih(this.pagePool,"shorts");this.setActivePage(S)};
_.J.startLoadingLearningJourney=function(){var S=ih(this.pagePool,"learning_journey_watch");this.setActivePage(S)};
_.J.getCurrentPage=function(){return this.currentPage};
_.J.getDestinationPageType=function(){return this.destinationPageType};
_.J.getCurrentData=function(){return this.data};
_.J.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.J.isOnShorts=function(){var S;return((S=this.currentPage)==null?void 0:S.is)==="ytd-shorts"};
_.J.isWatchPage=function(S){return!!S&&(S.is==="ytd-watch-flexy"||S.is==="ytd-watch-fixie"||S.is==="ytd-watch-grid")};
_.J.preparePage=function(S,c){var Q=this,f=function(){var X=Q.pagePool.preparePage(S,Q.currentPage,c);X&&Q.attachPage(X)},U=function(X){_.ZE(X,c);
_.i5(X)};
if(_.u("kevlar_enable_mss_page_modules_client")){var a=this.getModuleNameForType(S);if(a=sWO(_.fl().resolve(_.v$),[a])){a.then(f.bind(this)).catch(U.bind(this));return}}try{f()}catch(X){U(X)}};
_.J.lazyPrepareCriticalPages=function(S,c){S=_.nJ(c)||S;_.u("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(S).then(this.maybePrepareWatchPage.bind(this,S)):this.maybePrepareWatchPage(S)};
_.J.maybePrepareWatchPage=function(S){S!=="watch"&&_.HG(_.Mq,this.preparePage.bind(this,"watch"))};
_.J.downloadPageModules=function(S){S=this.getModuleNameForType(S);var c=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);c.delete(S);var Q=_.fl().resolve(_.v$);Q.JSC$16380_loadModules(S);return Q.JSC$16380_loadModules.apply(Q,_.Hs(c))};
_.J.renderPageLoadingState=function(S,c){this.preparePage(S,c);var Q=ih(this.pagePool,S);Q.loadingData&&(Q.loadingData.endpoint=c);Q.loading=!0;this.setActivePage(Q);S!=="watch"&&S!=="learning_journey_watch"||_.Az(this.hostElement,"yt-guide-close")};
_.J.prepareForNavigation=function(S,c){var Q=this;if(this.currentPage&&this.data){var f=_.nJ(c)||S;this.destinationPageType=f;cO(this.data)==f&&_.Az(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if((S==="watch"||S==="learning_journey_watch")&&this.data&&this.data.page!=="watch"&&this.data.page!=="learning_journey_watch"){this.renderLoadingStateJobId&&_.Mq.cancelJob(this.renderLoadingStateJobId);_.fl().resolve(_.ra).deactivate(c);var U=this.data;this.renderLoadingStateJobId=_.pS(_.Mq,function(){if(Q.data!=
U){var a=ih(Q.pagePool,S);Q.setActivePage(a)}else Q.renderPageLoadingState(S,c);Q.renderLoadingStateJobId=0},150)}};
_.J.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var S=new _.UL(1);this.currentPage.pageDisposeJobs.forEach(function(c){_.JN(S,c)});
this.pageDisposeJobsets.set(this.currentPage,S)}};
_.J.flushPageDisposeJobset=function(S){var c=this.pageDisposeJobsets.get(S);c&&(c.flushJobs(),this.pageDisposeJobsets.delete(S))};
_.J.onYtStopOldPlayer=function(S,c){c=c===void 0?!1:c;var Q,f=_.XJ("kevlar_new_stop_old_player_logic_pages");if(_.u("kevlar_check_current_page_on_stop_old_player")&&(f.length===0||this.currentPage&&f.includes(this.currentPage.is)))if(this.data&&(Q=cO(this.data)),cO(S)===Q&&this.currentPage&&cO(this.currentPage.data)!==Q)var U=_.mZ(this.currentPage);else Q=cO(this.data),U=ih(this.pagePool,Q),U=_.mZ(U);else this.data&&(Q=cO(this.data),U=ih(this.pagePool,Q),U=_.mZ(U));if(U)if(S=cO(S),f=ih(this.pagePool,
S),f=_.mZ(f),U==f)c&&!_.u("kevlar_disable_preemptive_player_reset")&&U.resetForNewPlayback();else if(c=Q==="watch"&&S!=="watch",!c||S==="shorts"||_.oJz()&&!K5N(this.data)&&S!=="yts-products"&&S!="mini_app"&&S!="playables")Q=_.fl().resolve(_.ra),c&&Q.isMiniplayerActive()&&Q.pipController.getWindow()||U.stop()};
_.J.setupPageTransitionAnimation=function(){var S=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionCoordinator){RX(this.viewTransitionCoordinator,"slide",{beforeTransition:function(){S.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){S.hostElement.style.viewTransitionName=""}});
RX(this.viewTransitionCoordinator,"zoom",{beforeTransition:function(){S.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){S.hostElement.style.viewTransitionName=""}});
var c=_.a6("web_page_transition_exit_ms"),Q=_.a6("web_page_transition_wait_ms"),f=_.a6("web_page_transition_enter_ms");if(!isNaN(c)||!isNaN(Q)||!isNaN(f))if(c=Hlg(CvE,c,Q,f))Q=document.createElement("style"),Q.textContent=_.YCT(c),document.head.appendChild(Q)}};
_.J.isDifferentBrowseId=function(S,c){S=_.Y(S,_.KJ);c=_.Y(c,_.KJ);return(S==null?void 0:S.browseId)!==(c==null?void 0:c.browseId)};
_.Rh.Object.defineProperties(LQ,{template:{configurable:!0,enumerable:!0,get:function(){return YLp()}}});
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],LQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-page-manager"})],LQ);_.k(LQ,"ytd-page-manager",function(){return YLp()},{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var EK=function(S,c,Q){Q=Q===void 0?!1:Q;_.C9.call(this);this.draggableElement=S;this.callbacks=c;this.allowClicks=Q;this.dragOccurred=!1;this.internalDragger=new _.Wm(this.draggableElement);this.dragDelay=new _.mG(this.delayedDrag.bind(this));HmV(this);this.allowClicks&&(_.XYh(this.internalDragger,5),S.addEventListener("click",_.xn(this,this.validateClick),{capture:!0}))};
_.C(EK,_.C9);var HmV=function(S){_.HI(S.internalDragger,"earlycancel",function(){S.allowClicks&&(S.dragOccurred=!1)});
_.HI(S.internalDragger,"start",function(c){var Q,f;(f=(Q=S.callbacks).onStartDrag)==null||f.call(Q,c);!c.defaultPrevented&&S.allowClicks&&(S.dragOccurred=!0)});
_.HI(S.internalDragger,"beforedrag",function(c){c.preventDefault();S.lastOffset=new _.pn(c.clientX-S.internalDragger.startX,c.clientY-S.internalDragger.startY);S.dragDelay.start()});
_.HI(S.internalDragger,"end",function(){S.dragDelay.stop();var c,Q;(Q=(c=S.callbacks).onEndDrag)==null||Q.call(c);S.lastOffset=void 0})};
EK.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
EK.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.xn(this,this.validateClick),{capture:!0})};
EK.prototype.validateClick=function(S){this.dragOccurred&&(this.dragOccurred=!1,S.stopPropagation(),S.preventDefault())};var tY=function(S,c){_.C9.call(this);this.JSC$17823_resizeContainer=S;this.callbacks=c;this.aspectRatio=16/9;this.JSC$17823_resizers=[];S=_.A(this.JSC$17823_resizeContainer.children);for(c=S.next();!c.done;c=S.next())DcB(this,c.value)};
_.C(tY,_.C9);tY.prototype.disposeInternal=function(){for(var S=_.A(this.JSC$17823_resizers),c=S.next();!c.done;c=S.next())c.value.dispose();S=_.A(this.JSC$17823_resizeContainer.children);for(c=S.next();!c.done;c=S.next())c.value.setAttribute("disabled","");this.JSC$17823_resizers.length=0};
tY.prototype.setSize=function(S){this.currentMiniplayerSize=S};
tY.prototype.setAspectRatio=function(S){this.aspectRatio=S};
tY.prototype.update=function(S,c){for(var Q=_.A(this.JSC$17823_resizeContainer.children),f=Q.next();!f.done;f=Q.next()){f=f.value;var U=f.getAttribute("alignment");_.Aq(f,"disabled",U===S||U===c)}};
var DcB=function(S,c){var Q=c.getAttribute("alignment"),f=new EK(c,{onStartDrag:function(U){if(c.hasAttribute("disabled"))U.preventDefault();else{S.dragStartSize=S.currentMiniplayerSize;var a,X;(X=(a=S.callbacks).onStartResize)==null||X.call(a)}},
onDrag:function(U){if(S.dragStartSize){Q!=="north"&&Q!=="west"||U.scale(-1);var a=Q==="north"||Q==="south";U=a?U.y:U.x;a&&S.aspectRatio>=1?U*=S.aspectRatio:!a&&S.aspectRatio<1&&(U/=S.aspectRatio);S.callbacks.onResize(S.dragStartSize+U)}}});
S.JSC$17823_resizers.push(f)};var pJO,h5p=function(){return pJO!==void 0?pJO:pJO=document.createElement("template")};
document.head.appendChild(h5p().content);var qLZ;var T40=_.y_(function(S){var c=_.EH("yt-draggable"),Q=S.onDrag,f=S.onDragStart,U=S.onDragEnd,a=_.V_(S,{allowClicks:!1,dragThreshold:5}),X=a.dragThreshold,z=a.allowClicks;S=a.children;a=a.className;var x=void 0,I=void 0,n=new _.pn(0,0),b=!1;_.wC(function(){x=new _.Wm(c.value);I=new _.mG(l);N(x,I);if(z()){_.XYh(x,X());var q;(q=c.value)==null||q.addEventListener("click",H,{capture:!0})}_.wX(function(){var w;(w=x)==null||w.dispose();if(z()){var g;(g=c.value)==null||g.removeEventListener("click",H,{capture:!0})}})});
var N=function(q,w){_.HI(q,"earlycancel",function(){z()&&(b=!1)});
_.HI(q,"start",function(g){f==null||f(g);g.defaultPrevented||z()&&(b=!0)});
_.HI(q,"beforedrag",function(g){x&&I&&(g.preventDefault(),n=new _.pn(g.clientX-x.startX,g.clientY-x.startY),I.start())});
_.HI(q,"end",function(){w.stop();U==null||U();n=new _.pn(0,0)})},l=function(){n&&Q(n)},H=function(q){b&&(b=!1,q.stopPropagation(),q.preventDefault())};
return _.B("yt-draggable",{el:c,class:_.n4("ytDraggableComponentHost",a)},S)},"og");var wJE=_.y_(function(S){var c=_.A(_.ny(0,void 0,"CvAwBd")),Q=c.next().value,f=c.next().value;c=function(U){var a={},X={};return _.B(T40,{className:_.n4("ytdMiniplayerComponentResizer",(a.ytdMiniplayerComponentResizerDisabled=function(){return U===S.horizontalAlignment()||U===S.verticalAlignment()},a.ytdMiniplayerComponentResizerNorth=U==="north",a.ytdMiniplayerComponentResizerEast=U==="east",a.ytdMiniplayerComponentResizerSouth=U==="south",a.ytdMiniplayerComponentResizerWest=U==="west",a)),
onDragStart:function(){f(S.currentMiniplayerSize());if(S.onResizeStart)S.onResizeStart()},
onDrag:function(z){U!=="north"&&U!=="west"||z.scale(-1);var x;z=(x=U==="north"||U==="south")?z.y:z.x;var I=S.currentAspectRatio();x&&I>=1?z*=I:!x&&I<1&&(z/=I);x=z;S.onResize(Q()+x)}},_.B("div",{class:_.n4("ytdMiniplayerComponentResizerCorner",(X.ytdMiniplayerComponentResizerNorthCorner=U==="north",X.ytdMiniplayerComponentResizerEastCorner=U==="east",X.ytdMiniplayerComponentResizerSouthCorner=U==="south",X.ytdMiniplayerComponentResizerWestCorner=U==="west",X))}))};
return _.B("div",{class:"ytdMiniplayerComponentResizers"},c("north"),c("east"),c("south"),c("west"))},"pg");var sQ2=16/9,MIE=_.y_(function(){var S=_.EH("ytd-miniplayer"),c=_.A(_.ny(new _.xh(NaN,NaN),void 0,"YeKki")),Q=c.next().value,f=c.next().value;c=_.A(_.ny(!1,void 0,"DcXgUd"));var U=c.next().value,a=c.next().value;c=_.A(_.ny(!1,void 0,"aDeXOc"));var X=c.next().value,z=c.next().value;c=_.A(_.ny(!1,void 0,"JpZfjb"));var x=c.next().value,I=c.next().value;c=_.A(_.ny(!1,void 0,"EmCWpc"));var n=c.next().value,b=c.next().value;c=_.A(_.ny(!1,void 0,"ovvtt"));var N=c.next().value,l=c.next().value;c=_.A(_.ny(!1,
void 0,"wPIoNd"));var H=c.next().value,q=c.next().value;c=_.A(_.ny(sQ2,void 0,"AmisJf"));var w=c.next().value,g=c.next().value,r=_.A(_.ny(!1,void 0,"uNKP1c"));c=r.next().value;var E=r.next().value;r=_.A(_.ny(!1,void 0,"n9hvIf"));var v=r.next().value,t=r.next().value;r=_.A(_.ny(void 0,void 0,"Sjx4Dc"));var V=r.next().value,AZ=r.next().value;r=_.A(_.ny(_.WY("HTML_DIR")==="rtl"?"west":"east",void 0,"Qv2TXd"));var IH=r.next().value,Nr=r.next().value;r=_.A(_.ny("south",void 0,"jyzxy"));var Hc=r.next().value,
qr=r.next().value;r=_.A(_.ny(400,void 0,"JFUs2d"));var wp=r.next().value,Pc=r.next().value,ex=_.fl().resolve(_.ra).miniplayerPropSignalMap[0],yd=ex.data,op=ex.externalPlaylistData;r=ex.toastData;var DT=ex.playabilityStatus,B_=ex.isReadyToResume,zJ=ex.isDisabled,Qp=ex.watchWhile,xl=ex.playerVe,xZ=ex.expandVe,hj=ex.closeVe,OT=ex.readyToResumeVe,uu=ex.readyToResumeCloseVe,sd=ex.repositionVe,LT=ex.resizeVe;ex=_.A(_.l8(B_));var Ci=ex.next().value,t$=ex.next().value,kp=!1,Ed=!1,J$;_.wC(function(){f(_.jm());
S.value.addEventListener("animationend",function(rd){rd.target===S.value&&(l(!1),q(!1))});
YzG(S.value)});
_.L1("yt-window-resized",function(rd){rd&&f(rd)});
var ez=function(){J$&&g(J$.getVideoAspectRatio())},$0=function(){if(J$){var rd=J$.getPlayerState()===1;
Ci()&&rd&&t$(!1)}},$l=function(){var rd=xZ();
if(rd){var pT=_.wN(3);pT&&_.tz(pT,rd)}},h$=function(){var rd=hj(),pT=uu();
rd&&_.tz(_.wN(3),rd);B_()&&pT&&_.tz(_.wN(3),pT)};
_.L1("yt-activate-miniplayer",function(rd){var pT;return _.O(function(og){if(og.nextAddress==1)return U()?og.return():_.F(og,(pT=_.fl().resolve(_.ra).getPlayerElement())==null?void 0:pT.getPlayerPromise(),2);J$=og.yieldResult;if(!J$)return og.return();!v()&&_.u("kevlar_watch_while_v2")&&(qr(rd&&!_.u("kevlar_watch_while_bottom_align")?"north":"south"),Nr(_.WY("HTML_DIR")==="rtl"?"west":"east"));var Aj=J$;Aj.addEventListener("onVideoDataChange",ez);Aj.addEventListener("onStateChange",$0);Aj.addEventListener("onExpandMiniplayer",
$l);Aj.addEventListener("onCloseMiniplayer",h$);g(J$.getVideoAspectRatio());a(!0);l5N()||l(!0);_.IN(og)})});
_.L1("yt-deactivate-miniplayer",function(rd){return _.O(function(pT){if(!U())return pT.return();a(!1);t$(!1);q(rd);b(!1);z(!1);if(J$){var og=J$;og.removeEventListener("onVideoDataChange",ez);og.removeEventListener("onStateChange",$0);og.removeEventListener("onExpandMiniplayer",$l);og.removeEventListener("onCloseMiniplayer",h$)}l5N()||l(!0);_.IN(pT)})});
var FE=function(){return!(Qp()&&_.u("kevlar_watch_while_modern"))},an=function(){var rd;
return!((rd=op())==null||!rd.contents)},XE=function(){var rd=wp();
var pT=Q();pT=Math.min(Math.min(pT.width,pT.height)-32,720);var og=w(),Aj=FE(),sh=an()&&X(),zC=Math.min(rd,pT);rd=new _.xh(192,Aj?116:192);og=Q1Z(new _.xh(sh?sQ2:og,1),new _.xh(zC,Aj?zC-76:zC));rd.width<=og.width&&rd.height<=og.height||(cqE(og,rd),og.width=Math.min(og.width,pT),og.height=Math.min(og.height,pT));return new _.xh(og.width,_.Zv(192,og.height+hWO(Aj,sh),720))},ui=function(){var rd=XE(),pT=FE(),og=an()&&X();
return new _.xh(rd.width,rd.height-hWO(pT,og))},gN=function(){var rd=function(pT){pT.target===S.value&&n()&&(b(!1),S.value.removeEventListener("transitionend",rd))};
l5N()||(S.value.addEventListener("transitionend",rd),b(!0));z(!X())};
_.To(function(){var rd=xl(),pT=_.wN(3),og=_.T$(3);if(pT&&og&&rd){_.dS(pT,og,rd);og=sd();var Aj=LT(),sh=xZ(),zC=hj(),Cb=uu();sh&&zC&&Cb&&(_.v2(pT,rd,[sh,zC,Cb]),_.L8(pT,[sh,zC]));og&&Aj&&_.v2(pT,rd,[og,Aj])}},"yiTJkc");
_.To(function(){var rd=OT();if(rd){var pT=_.wN(0),og=_.T$(0);pT&&og&&(_.dS(pT,og,rd),_.L8(pT,[rd]))}},"fy89qe");
ex={};return _.B("ytd-miniplayer",{el:S,class:_.n4("ytdMiniplayerComponentHost",(ex.ytdMiniplayerComponentVisible=function(){return U()||N()},ex.ytdMiniplayerComponentAnimatingSnap=x,ex.ytdMiniplayerComponentAnimatingPlaylistExpand=n,ex.ytdMiniplayerComponentAnimatingFade=N,ex),function(){if(N()){var rd=Hc();
var pT=U(),og=H();rd=pT?rd==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":og?rd==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":rd==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else rd="";return rd}),
style:_.Yd({top:function(){return Hc()==="north"?"16px":""},
right:function(){return IH()==="east"?"16px":""},
bottom:function(){return Hc()==="south"?"16px":""},
left:function(){return IH()==="west"?"16px":""},
width:function(){return XE().width+"px"},
height:function(){return XE().height+"px"},
transform:function(){var rd=V();return rd?"translate("+rd.x+"px, "+rd.y+"px)":""}})},_.B("div",{class:"ytdMiniplayerComponentContent"},_.B(T40,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(rd){var pT=p2p(IH(),Hc(),Q(),XE(),V()),og=ui();Math.abs(rd.clientY-(pT.y+og.height))>15?(E(!0),rd=_.wN(3),pT=sd(),kp||(kp=!0,rd&&pT&&_.L8(rd,[pT])),rd&&pT&&_.tz(rd,pT)):rd.preventDefault()},
onDrag:function(rd){AZ(rd)},
onDragEnd:function(){var rd=C2B(p2p(IH(),Hc(),Q(),XE(),V()),Q(),XE()),pT=DD8(IH(),Hc(),Q(),XE()),og=DD8(rd.horizontalAlignment,rd.verticalAlignment,Q(),XE());og=new _.pn(og.x-pT.x,og.y-pT.y);var Aj;pT=pT.y+(((Aj=V())==null?void 0:Aj.y)||0)+XE().height/2;var sh=function(){IH()===rd.horizontalAlignment&&Hc()===rd.verticalAlignment||t(!0);Nr(rd.horizontalAlignment);qr(rd.verticalAlignment);AZ(void 0)},zC=function(Cb){Cb.target===S.value&&x()&&(I(!1),sh(),S.value.removeEventListener("transitionend",zC))};
E(!1);Hc()==="south"&&pT>Q().height?(sh(),_.fl().resolve(_.ra).close()):(S.value.addEventListener("transitionend",zC),I(!0),AZ(og))}},_.B(_.K,{cond:U,
then:function(){return _.B(_.MNG,{isDisabled:zJ,playabilityStatus:DT,size:ui})}}),_.B(_.K,{cond:FE,
then:function(){return _.B(_.w8g,{isReadyToResume:Ci,data:yd,expanded:X,onExpandClick:gN,playlistData:op})}}),_.B(_.K,{cond:c,
then:function(){return _.B("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.B(_.K,{cond:function(){return an()&&X()||n()},
then:function(){return _.B(_.Q$l,{className:"ytdMiniplayerComponentPlaylistPanel",data:op,hideHeaderText:!0,withinMiniplayer:!0})}}),_.B("div",{class:"ytdMiniplayerComponentToast"},_.B(_.iTE,{toastData:r}))),_.B(wJE,{onResize:function(rd){Pc(_.Zv(192,rd,720))},
onResizeStart:function(){var rd=_.wN(3),pT=LT();Ed||(Ed=!0,rd&&pT&&_.L8(rd,[pT]));rd&&pT&&_.tz(rd,pT)},
currentAspectRatio:w,currentMiniplayerSize:wp,horizontalAlignment:IH,verticalAlignment:Hc}))},"qg");_.u("ytd_miniplayer_to_wiz")&&_.f4(MIE,"ytd-miniplayer",{});_.f4(_.iTE,"ytd-miniplayer-toast",{props:{toastData:_.y$}});var im1=16/9,ZmE=new _.xh(400,400/im1),V2=function(){var S=_.W.apply(this,arguments)||this;S.active=!1;S.hasNoData=!1;S.enabled=!1;S.expanded=!1;S.readyToResume=!1;S.isDisabled=!1;S.externalPlaylistData={};S.premiumBadges=[];S.watchWhile=!1;S.playerState=null;S.verticalAttachment="south";S.horizontalAttachment=_.WY("HTML_DIR")==="rtl"?"west":"east";S.isAnimatingFade=!1;S.isAnimatingSnap=!1;S.isAnimatingExpand=!1;S.isDragging=!1;S.playerHidden=!1;S.hasPlaylistData=!1;S.closed=!1;S.expandedClosed=!1;
S.isForReadyToResume=!1;S.watchResponse=null;S.player=null;S.playerVe=null;S.expandVe=null;S.closeVe=null;S.readyToResumeCloseVe=null;S.disabledInitialStateIsPlaying=!1;S.PLAYER_EVENTS=new Map;S.aspectRatio=im1;S.currentMiniplayerSize=400;S.userSetSize=!1;S.userSetPosition=!1;S.userHasDragged=!1;S.maxMiniplayerSize=720;S.transform=new _.pn(0,0);S.windowDimensions=new _.xh(NaN,NaN);S.dimensions=ZmE;S.screenLayer=3;S.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return S};
_.C(V2,_.W);_.J=V2.prototype;_.J.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()};
_.J.ready=function(){this.setUpDragging();this.setUpResizing()};
_.J.attached=function(){this.onWindowResized(_.jm());this.hostElement.addEventListener("animationend",_.xn(this,this.resetFadingAnimation))};
_.J.detached=function(){this.hostElement.removeEventListener("animationend",_.xn(this,this.resetFadingAnimation))};
_.J.resetFadingAnimation=function(S){S.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.J.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.J.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.J.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var S=_.wN(this.screenLayer);this.readyToResumeCloseVe&&S&&_.L8(S,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.J.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var S=_.wN(0),c=_.T$(0);S&&c&&(_.dS(S,c,this.readyToResumeVe),_.L8(S,[this.readyToResumeVe]))}};
_.J.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var S=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=S===-1||S===1||S===3)&&this.player.pauseVideo()}};
_.J.activate=function(S,c){c=c===void 0?!1:c;var Q=this,f;return _.O(function(U){if(U.nextAddress==1)return Q.setInitialActivatePositioning(c),Q.enabled=!0,Q.active=!0,Q.expanded=!1,Q.closed=!1,Q.expandedClosed=!1,Q.watchWhileHidden||(Q.isAnimatingFade=!0),_.fl().resolve(_.G7).setPlaylistComponent(Q.JSC$17834_playlistPanel),S.appendTo(Q.playerContainer),_.F(U,S.getPlayerPromise(),2);f=U.yieldResult;f.setSizeStyle(!1,!0);Q.ytPlayerListenerBehavior.listenToPlayerEvents(f,Q.PLAYER_EVENTS);Q.player=f;
Q.watchWhile&&_.u("kevlar_watch_while_minimum_size")&&Q.setMiniplayerSize(192);Q.setAspectRatio(Q.player.getVideoAspectRatio());Q.onIsDisabledChanged();_.IN(U)})};
_.J.setInitialActivatePositioning=function(S){if(!this.userSetPosition&&_.u("kevlar_watch_while_v2")){this.verticalAttachment=S&&!_.u("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.WY("HTML_DIR")==="rtl"?"west":"east";var c;(c=this.JSC$17834_resizers)==null||c.update(this.horizontalAttachment,this.verticalAttachment)}};
_.J.deactivate=function(S,c){var Q=this;return _.O(function(f){if(!Q.active)return f.return();S||(Q.expanded?Q.expandedClosed=!0:Q.closed=!0);Q.active=!1;Q.isForReadyToResume=!1;c&&_.u("kevlar_watch_while_counterfactual")||(Q.isAnimatingFade=!0);Q.player&&Q.ytPlayerListenerBehavior.unlistenFromPlayerEvents(Q.player,Q.PLAYER_EVENTS);Q.player=null;_.IN(f)})};
_.J.onMetadataTap=function(S){this.expandVe&&(S===void 0||S)&&(S=_.wN(this.screenLayer))&&_.tz(S,this.expandVe);_.um(_.fl().resolve(_.ra))};
_.J.onDisabledTap=function(S){S.target===_.Ur(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.J.onPlaylistExpandTap=function(S){if(this.hasPlaylistData){S=_.t4(S)||[];S=_.A(S);for(var c=S.next();!c.done;c=S.next()){c=c.value;if(c===this.hostElement)break;if(c.classList&&c.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.J.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.xn(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.J.animatedResizePlaylist=function(S){S.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.xn(this,this.animatedResizePlaylist)))};
_.J.getExpandIcon=function(S){return S?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.J.onPlayerVideoDataChange=function(){var S,c=(S=this.player)==null?void 0:S.getVideoAspectRatio();c&&c!==this.aspectRatio&&this.setAspectRatio(c)};
_.J.setAspectRatio=function(S){if(this.active){this.aspectRatio=S;this.updateDimensionsAndResize();var c;(c=this.JSC$17834_resizers)==null||c.setAspectRatio(S)}};
_.J.updateDimensionsAndResize=function(){var S=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),c=this.expanded?im1:this.aspectRatio,Q=new _.xh(192,this.showInfoBar?116:192);S=Q1Z(new _.xh(c,1),new _.xh(S,this.showInfoBar?S-76:S));Q.width<=S.width&&Q.height<=S.height||(cqE(S,Q),S.width=Math.min(S.width,this.maxMiniplayerSize),S.height=Math.min(S.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&c<=1?Math.max(S.width,S.height)+76:Math.max(S.width,S.height)));this.dimensions=
new _.xh(S.width,this.clamp(S.height+this.getNonPlayerHeight()));this.resize()};
_.J.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var S=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=S.height+"px";var c;(c=this.player)==null||c.setInternalSize(S.width,S.height)};
_.J.getPlayerSize=function(S){var c=Math.max(0,S.height-this.getNonPlayerHeight());return new _.xh(S.width,c)};
_.J.getNonPlayerHeight=function(){var S=0;this.showInfoBar&&(S+=76);this.expanded&&(S+=285);return S};
_.J.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.fl().resolve(_.ra).close()};
_.J.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.J.logClosingClick=function(){this.closeVe&&_.tz(_.wN(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.tz(_.wN(this.screenLayer),this.readyToResumeCloseVe)};
_.J.onPlayerExpandMiniplayer=function(){if(this.expandVe){var S=_.wN(this.screenLayer);S&&_.tz(S,this.expandVe)}};
_.J.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var S=this.playerState===1;this.continueWatching&&S&&(this.continueWatching=!1);this.premiumBadges.length&&S&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logMiniplayer=function(){var S=_.wN(this.screenLayer),c=_.T$(this.screenLayer);S&&c&&this.playerVe&&(_.dS(S,c,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.v2(S,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.L8(S,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.v2(S,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.J.computePlaylistData=function(S,c){return c};
_.J.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.J.computeExpandButtonHidden=function(S,c,Q){return!S||!c||Q};
_.J.computePlaylistIndexHidden=function(S,c){return!S||c};
_.J.computePlaylistPanelHidden=function(S,c){return!c&&!S};
_.J.computeExpandButtonLabel=function(S){return S?_.K8("MINIPLAYER_COLLAPSE_LABEL"):_.K8("MINIPLAYER_EXPAND_LABEL")};
_.J.computeDisabledStateCloseButtonLabel=function(){return _.K8("MINIPLAYER_CLOSE",void 0,"Close")};
_.J.onWindowResized=function(S){S&&(S=this.windowDimensions=S,this.maxMiniplayerSize=Math.min(Math.min(S.width,S.height)-32,720),this.updateDimensionsAndResize())};
_.J.setUpResizing=function(){var S=this;this.JSC$17834_resizers||(this.JSC$17834_resizers=new tY(this.JSC$17834_resizeContainer,{onStartResize:function(){S.handleResizeStart()},
onResize:function(c){S.handleResize(c)}}),this.JSC$17834_resizers.setSize(this.currentMiniplayerSize),this.JSC$17834_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.J.handleResizeStart=function(){var S=_.wN(this.screenLayer);this.userSetSize||(this.userSetSize=!0,S&&this.resizeVe&&_.L8(S,[this.resizeVe]));S&&this.resizeVe&&_.tz(S,this.resizeVe)};
_.J.handleResize=function(S){this.setMiniplayerSize(S);this.updateDimensionsAndResize()};
_.J.setUpDragging=function(){var S=this;this.JSC$17834_dragger||(this.JSC$17834_dragger=new EK(this.draggableContainer,{onStartDrag:function(c){!S.isSafeToDrag(c)||S.isAnimatingSnap?c.preventDefault():S.handleDragStart()},
onDrag:function(c){S.transform=c;S.setTransform(S.transform)},
onEndDrag:function(){S.handleDragEnd()}},!0))};
_.J.handleDragStart=function(){this.isDragging=!0;var S=_.wN(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,S&&this.repositionVe&&_.L8(S,[this.repositionVe]));S&&this.repositionVe&&_.tz(S,this.repositionVe)};
_.J.handleDragEnd=function(){this.isDragging=!1;var S=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&S>this.windowDimensions.height&&_.fl().resolve(_.ra).close();this.animateSnapToCorner()};
_.J.animateSnapToCorner=function(){var S=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),c=this.getNearestAttachments();c=this.getGlobalPositionFromAttachments(c.horizontalAttachment,c.verticalAttachment);S=new _.pn(c.x-S.x,c.y-S.y);this.isAnimatingSnap=!0;this.setTransform(S);this.hostElement.addEventListener("transitionend",_.xn(this,this.endSnapAnimation))};
_.J.endSnapAnimation=function(S){S.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.xn(this,this.endSnapAnimation)),this.endDrag())};
_.J.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.J.setTransform=function(S){this.hostElement.style.transform=S?"translate("+S.x+"px, "+S.y+"px)":""};
_.J.getGlobalPositionFromAttachments=function(S,c){return new _.pn(S==="west"?16:this.windowDimensions.width-this.dimensions.width-16,c==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.J.updateAttachments=function(){var S=this.getNearestAttachments();if(this.horizontalAttachment!==S.horizontalAttachment||this.verticalAttachment!==S.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=S.horizontalAttachment;this.verticalAttachment=S.verticalAttachment;var c;(c=this.JSC$17834_resizers)==null||c.update(this.horizontalAttachment,this.verticalAttachment)};
_.J.getNearestAttachments=function(){var S=this.getCurrentGlobalPosition();return{horizontalAttachment:S.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:S.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.J.getCurrentGlobalPosition=function(){var S=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return H81(S,this.transform)};
_.J.isSafeToDrag=function(S){var c=this.playerContainer.getBoundingClientRect();return Math.abs(S.clientY-(c.y+c.height))>15};
_.J.setMiniplayerSize=function(S){this.currentMiniplayerSize=this.clamp(S);var c;(c=this.JSC$17834_resizers)==null||c.setSize(this.currentMiniplayerSize)};
_.J.clamp=function(S){return _.Zv(192,S,720)};
_.J.registerViewTransitionTasks=function(){var S=this,c=_.fl().resolve(_.QS(_.AD));if(c){var Q={beforeTransition:function(){S.hostElement&&(S.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){S.hostElement&&(S.hostElement.style.viewTransitionName="")}};
RX(c,"slide",Q);RX(c,"zoom",Q)}};
_.Rh.Object.defineProperties(V2.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.u("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:_.K8("CONTINUE_WATCHING",void 0,"Continue watching")};var S;if((S=this.externalPlaylistData)==null?0:S.contents)return this.externalPlaylistData.titleText;var c;return(c=this.data)==null?void 0:c.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.externalPlaylistData)==null?0:S.contents){var c;return(c=_.Sxr(this.externalPlaylistData))==null?void 0:c.title}var Q;return(Q=this.data)==null?void 0:Q.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var S,c,Q,f;return((S=this.externalPlaylistData)==null?void 0:S.currentIndex)!==void 0&&((c=this.externalPlaylistData)==null?0:c.totalVideos)&&!((Q=this.data)==null?0:(f=Q.playlistData)==null?0:f.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.aDx(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.u("kevlar_watch_while_counterfactual")}}});
V2.prototype.onIsDisabledChanged=V2.prototype.onIsDisabledChanged;V2.prototype.readyToResumeVeChanged=V2.prototype.readyToResumeVeChanged;V2.prototype.premiumBrandingChanged=V2.prototype.premiumBrandingChanged;V2.prototype.onPlayerVeChange=V2.prototype.onPlayerVeChange;V2.prototype.hasPlaylistDataChanged=V2.prototype.hasPlaylistDataChanged;_.d([_.p(_.vC.YtPlayerListenerBehavior),_.P("design:type",_.PC)],V2.prototype,"ytPlayerListenerBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],V2.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],V2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],V2.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],V2.prototype,"ytdReduxBehavior",void 0);_.d([_.nU("#draggable"),_.P("design:type",HTMLDivElement)],V2.prototype,"draggableContainer",void 0);
_.d([_.nU("#resize-container"),_.P("design:type",HTMLDivElement)],V2.prototype,"JSC$17834_resizeContainer",void 0);_.d([_.nU("#video-container"),_.P("design:type",HTMLDivElement)],V2.prototype,"videoContainer",void 0);_.d([_.nU("#player-container"),_.P("design:type",HTMLDivElement)],V2.prototype,"playerContainer",void 0);_.d([_.nU("#playlist"),_.P("design:type",HTMLDivElement)],V2.prototype,"JSC$17834_playlistPanel",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"active",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"hasNoData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"enabled",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"expanded",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"readyToResume",void 0);
_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"isDisabled",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"externalPlaylistData",void 0);_.d([_.Z(),_.P("design:type",Array)],V2.prototype,"premiumBadges",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"toastData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"watchWhile",void 0);_.d([_.Z(),_.P("design:type",Boolean)],V2.prototype,"premiumBranding",void 0);
_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"playerState",void 0);_.d([_.Z(),_.P("design:type",Boolean)],V2.prototype,"continueWatching",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],V2.prototype,"verticalAttachment",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],V2.prototype,"horizontalAttachment",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"isAnimatingFade",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"isAnimatingSnap",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"isAnimatingExpand",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"isDragging",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"playerHidden",void 0);
_.d([_.Z({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.P("design:type",Object)],V2.prototype,"playlistData",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.P("design:type",Object)],V2.prototype,"hasPlaylistData",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"closed",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],V2.prototype,"expandedClosed",void 0);
_.d([_.Z({selector:_.Bxx}),_.P("design:type",Boolean)],V2.prototype,"isSingleOptionSurveyActive",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.MO}),_.P("design:type",Boolean)],V2.prototype,"isWatchPage",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("watchWhile"),_.P("design:type",Object),_.P("design:paramtypes",[])],V2.prototype,"showInfoBar",null);_.d([_.M("premiumBadges","showInfoBar"),_.P("design:type",Object),_.P("design:paramtypes",[])],V2.prototype,"showOverlayPremiumBadges",null);
_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"watchResponse",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"miniplayerRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"playabilityStatus",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"playerVe",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"expandVe",void 0);_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"closeVe",void 0);
_.d([_.Z(),_.P("design:type",Object)],V2.prototype,"readyToResumeCloseVe",void 0);_.d([_.Z(),_.P("design:type",_.qE)],V2.prototype,"readyToResumeVe",void 0);_.d([_.Z(),_.P("design:type",_.qE)],V2.prototype,"resizeVe",void 0);_.d([_.Z(),_.P("design:type",_.qE)],V2.prototype,"repositionVe",void 0);_.d([_.B0("hasPlaylistData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V2.prototype,"hasPlaylistDataChanged",null);
_.d([_.B0("playerVe"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V2.prototype,"onPlayerVeChange",null);_.d([_.B0("premiumBranding"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V2.prototype,"premiumBrandingChanged",null);_.d([_.B0("readyToResumeVe"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V2.prototype,"readyToResumeVeChanged",null);
_.d([_.B0("isDisabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],V2.prototype,"onIsDisabledChanged",null);_.d([_.M("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.P("design:type",Object),_.P("design:paramtypes",[])],V2.prototype,"miniplayerSubtitle",null);_.d([_.M("data.miniplayerTitle","externalPlaylistData"),_.P("design:type",Object),_.P("design:paramtypes",[])],V2.prototype,"miniplayerTitle",null);
_.d([_.M("externalPlaylistData","continueWatching"),_.P("design:type",Object),_.P("design:paramtypes",[])],V2.prototype,"playlistIndexMessage",null);_.d([_.Z({reflectToAttribute:!0}),_.M("playabilityStatus"),_.P("design:type",Object),_.P("design:paramtypes",[])],V2.prototype,"showErrorScreen",null);_.d([_.Z({reflectToAttribute:!0}),_.M("watchWhile"),_.P("design:type",Object),_.P("design:paramtypes",[])],V2.prototype,"watchWhileHidden",null);
_.u("ytd_miniplayer_to_wiz")||_.k(V2,"ytd-miniplayer",function(){if(qLZ===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(h5p().content.cloneNode(!0),S.content.firstChild);S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);qLZ=S}S=qLZ;return S},{mode:2});var GyT;var RD=function(){var S=_.W.apply(this,arguments)||this;S.useListItemStyles=_.u("web_list_item_style_for_menu_items");S.systemIcons=_.u("kevlar_system_icons");return S};
_.C(RD,_.W);_.J=RD.prototype;_.J.ready=function(){this.hostElement.addEventListener("tap",_.xn(this,this.onEndpointTapExtra))};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var S;(S=_.Ur(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.J.onEndpointTapExtra=function(S){_.Az(this.hostElement,"iron-activate");var c=this.data.navigationEndpoint;c&&_.Y(c,_.kPp)&&(S.stopPropagation(),_.FF(this.hostElement,[c],this.hostElement))};
_.J.computeIcon=function(S){return S&&S.iconType?_.xz(S.iconType):""};
_.J.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.u("kevlar_legacy_browsers")&&_.Or(this.hostElement)};
RD.prototype.forceUpdateStylesOnLegacyBrowsers=RD.prototype.forceUpdateStylesOnLegacyBrowsers;RD.prototype.onFocus=RD.prototype.onFocus;_.d([_.p(_.Vv),_.P("design:type",Object)],RD.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.Ji_.YtConditionalRendererBehavior),_.P("design:type",Object)],RD.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.p(_.Km.YtEndpointBehavior),_.P("design:type",Object)],RD.prototype,"ytEndpointBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],RD.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon(data.icon)",value:""}),_.P("design:type",String)],RD.prototype,"icon",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],RD.prototype,"useIcons",void 0);_.d([_.Z({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Boolean)],RD.prototype,"hasSeparator",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],RD.prototype,"useListItemStyles",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],RD.prototype,"systemIcons",void 0);_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RD.prototype,"onFocus",null);_.d([_.B0("useIcons","hasSeparator"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RD.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.k(RD,"ytd-menu-navigation-item-renderer",function(){if(GyT===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);GyT=S}S=GyT;return S},{mode:1});var Wyp;var gJB=_.LK(_.K8("DOWNLOAD",{},"Download")),e5g=_.LK(_.K8("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),kyN=_.LK(_.K8("RETRY",{},"Retry")),rNE=_.LK(_.K8("PAUSE_DOWNLOADING",{},"Pause downloading")),dcT=_.LK(_.K8("RESUME_DOWNLOAD",{},"Resume download")),y2=function(){var S=_.W.apply(this,arguments)||this;S.primaryText=gJB;S.primaryIconType="OFFLINE_DOWNLOAD";S.hasSecondaryContent=!1;S.hasSeparator=!1;S.transferState="TRANSFER_STATE_UNKNOWN";S.isVideoDeletedByUser=!1;S.isHidden=!1;S.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return S};
_.C(y2,_.W);_.J=y2.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){this.primaryEntry.focus()};
_.J.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.J.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.J.getRemoveAction=function(){return"ACTION_REMOVE"};
_.J.sendOfflineAction=function(S){var c=this.data.serviceEndpoint;if(c){var Q=_.Y(c,_.BK);Q&&S&&(Q.action=S);this.ytComponentBehavior.resolveCommand(c)}};
_.J.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=gJB,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=gJB;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=kyN;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=e5g;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=dcT;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=e5g;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
rNE;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=e5g;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=e5g;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=gJB,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.J.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.J.isSecondaryEntryHidden=function(S,c){return S?!0:!c};
_.J.computeHasSeparator=function(){var S;return!((S=this.data)==null||!S.hasSeparator)};
y2.prototype.showHideButton=y2.prototype.showHideButton;y2.prototype.onTransferStateChange=y2.prototype.onTransferStateChange;y2.prototype.onFocus=y2.prototype.onFocus;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],y2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],y2.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],y2.prototype,"ytComponentBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],y2.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],y2.prototype,"primaryText",void 0);_.d([_.Z(),_.P("design:type",String)],y2.prototype,"primaryIconType",void 0);_.d([_.Z(),_.P("design:type",String)],y2.prototype,"primaryAction",void 0);_.d([_.Z(),_.P("design:type",Object)],y2.prototype,"secondaryText",void 0);_.d([_.Z(),_.P("design:type",String)],y2.prototype,"secondaryIconType",void 0);
_.d([_.Z(),_.P("design:type",String)],y2.prototype,"secondaryAction",void 0);_.d([_.Z(),_.P("design:type",Object)],y2.prototype,"hasSecondaryContent",void 0);_.d([_.Z({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Object)],y2.prototype,"hasSeparator",void 0);_.d([_.Z({selector:_.iZ,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",String)],y2.prototype,"transferState",void 0);
_.d([_.Z({selector:_.MTM,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",Object)],y2.prototype,"isVideoDeletedByUser",void 0);_.d([_.Z(),_.P("design:type",Object)],y2.prototype,"isHidden",void 0);_.d([_.Z({selector:_.pAz,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.P("design:type",Object)],y2.prototype,"offlineabilityState",void 0);_.d([_.nU("#primary-entry"),_.P("design:type",Object)],y2.prototype,"primaryEntry",void 0);
_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y2.prototype,"onFocus",null);_.d([_.$n("transferState","isVideoDeletedByUser"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y2.prototype,"onTransferStateChange",null);_.d([_.$n("offlineabilityState"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],y2.prototype,"showHideButton",null);
_.k(y2,"ytd-menu-service-item-download-renderer",function(){if(Wyp===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);Wyp=S}S=Wyp;return S},{mode:1});var vJg;var oD=function(){var S=_.W.apply(this,arguments)||this;S.useIcons=!1;S.systemIcons=_.u("kevlar_system_icons");S.useListItemStyles=_.u("web_list_item_style_for_menu_items");return S};
_.C(oD,_.W);_.J=oD.prototype;_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.J.onFocus=function(){var S;(S=_.Ur(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.J.onTap=function(){_.Oz(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var S=this.data.serviceEndpoint,c=this.data.command;if(S){var Q,f=(Q=this.data)==null?void 0:Q.trackingParams;Q=!!_.Y(S,_.B3u);f&&Q&&_.V5().dispatch(_.aB({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:f}}));this.ytComponentBehavior.resolveCommand(S)||_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}})}c&&(this.ytComponentBehavior.resolveCommand(c)||_.FF(this.hostElement,
[c],this.hostElement))};
_.J.computeIcon=function(S){return S&&S.iconType?_.xz(S.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.computeHasSeparator=function(){var S;return!((S=this.data)==null||!S.hasSeparator)};
_.J.forceUpdateStylesOnLegacyBrowsers=function(){_.u("kevlar_legacy_browsers")&&_.Or(this.hostElement)};
_.J.computeIsSelected=function(){var S;return!((S=this.data)==null||!S.isSelected)};
oD.prototype.forceUpdateStylesOnLegacyBrowsers=oD.prototype.forceUpdateStylesOnLegacyBrowsers;oD.prototype.onTap=oD.prototype.onTap;oD.prototype.onFocus=oD.prototype.onFocus;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],oD.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],oD.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],oD.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.Ji_.YtConditionalRendererBehavior),_.P("design:type",Object)],oD.prototype,"ytConditionalRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],oD.prototype,"data",void 0);_.d([_.Z({computed:"computeIcon(data.icon)",value:""}),_.P("design:type",String)],oD.prototype,"icon",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oD.prototype,"useIcons",void 0);
_.d([_.Z({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.P("design:type",Boolean)],oD.prototype,"hasSeparator",void 0);_.d([_.Z({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.P("design:type",Boolean)],oD.prototype,"isSelected",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oD.prototype,"systemIcons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oD.prototype,"useListItemStyles",void 0);
_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oD.prototype,"onFocus",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],oD.prototype,"onTap",null);_.d([_.B0("useIcons","hasSeparator"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oD.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.k(oD,"ytd-menu-service-item-renderer",function(){if(vJg===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);vJg=S}S=vJg;return S},{mode:2});var Pv2;var mH=function(){return _.W.apply(this,arguments)||this};
_.C(mH,_.W);_.J=mH.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var S=this;_.tO(this,function(){S.postbox.openDialog();S.focus();_.Az(S.hostElement,"yt-refit")})};
_.J.focus=function(){this.postbox.focus()};
_.J.closePopup=function(){_.XF(this.hostElement,"yt-close-popup-action")};
_.J.onYtCommentboxDismiss=function(){this.closePopup()};
mH.prototype.onYtCommentboxDismiss=mH.prototype.onYtCommentboxDismiss;mH.prototype.onDataChanged=mH.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mH.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mH.prototype,"data",void 0);_.d([_.Z({value:function(){return _.K8("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],mH.prototype,"closeButtonAriaLabel",void 0);_.d([_.nU("#postbox"),_.P("design:type",Object)],mH.prototype,"postbox",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mH.prototype,"onDataChanged",null);_.d([_.FV("yt-commentbox-dismiss"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mH.prototype,"onYtCommentboxDismiss",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],mH);
_.k(mH,"ytd-backstage-post-dialog-popup-renderer",function(){if(Pv2!==void 0)return Pv2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Pv2=S},{mode:1});var LyU;var Sc=function(){return _.W.apply(this,arguments)||this};
_.C(Sc,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Sc.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Sc.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],Sc);
_.k(Sc,"ytd-sender-id-section-renderer",function(){if(LyU!==void 0)return LyU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return LyU=S},{mode:1});var EJ2;var tIT;var VIp;var cv=function(){return _.W.apply(this,arguments)||this};
_.C(cv,_.W);cv.prototype.closePopup=function(){_.XF(this.hostElement,"yt-close-popup-action")};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cv.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cv.prototype,"data",void 0);_.d([_.wM({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],cv);
_.k(cv,"yt-community-post-section-renderer",function(){if(VIp===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;tIT===void 0&&(tIT=document.createElement("template"));var f=tIT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);VIp=S}S=VIp;return S},{mode:2});var R5p;var yNN;var oJN;var mc1;var St2;var cvE;var Qy=function(){return _.W.apply(this,arguments)||this};
_.C(Qy,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Qy.prototype,"data",void 0);_.d([_.wM({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Qy);
_.k(Qy,"yt-share-start-time-with-context-renderer",function(){if(cvE===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;St2===void 0&&(St2=document.createElement("template"));var f=St2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);cvE=S}S=cvE;return S},{mode:2});var fu=function(){return _.W.apply(this,arguments)||this};
_.C(fu,_.W);fu.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],fu.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],fu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],fu.prototype,"data",void 0);_.d([_.wM({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],fu);
_.k(fu,"yt-share-panel-title-v15-renderer",function(){if(mc1===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;oJN===void 0&&(oJN=document.createElement("template"));var f=oJN;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);mc1=S}S=mc1;return S},{mode:2});var UG=function(){return _.W.apply(this,arguments)||this};
_.C(UG,_.W);UG.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],UG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],UG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],UG.prototype,"data",void 0);_.d([_.wM({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],UG);
_.k(UG,"yt-share-panel-header-renderer",function(){if(yNN===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;R5p===void 0&&(R5p=document.createElement("template"));var f=R5p;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);yNN=S}S=yNN;return S},{mode:2});var QvU;var f40;var Js=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-open-popup-action":"onOpen"};return S};
_.C(Js,_.W);_.J=Js.prototype;_.J.attached=function(){this.onOpen()};
_.J.updateTimeSecs=function(S){this.currentTimeSecs=S};
_.J.computeTimeString=function(S){S=S.toString();var c=Math.floor(Number(S)/3600),Q=Math.floor(Number(S)%3600%60);return(c>0?c+":":"")+_.UR(Math.floor(Number(S)%3600/60),c>0?2:1)+":"+_.UR(Q,2)};
_.J.computeTimeStringA11y=function(S){S=_.Zkz({seconds:S});var c=S.hours===void 0?0:S.hours,Q=S.minutes===void 0?0:S.minutes,f=S.seconds===void 0?0:S.seconds;S=[];if(c>0){var U=JBT().format({hours:c});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.gP)||c>9999)U=U.replace(c.toString(),_.GFH(c)),_.gP==="km"&&(U=U.replace(".",","));S.push(U)}Q>0&&S.push(JBT().format({minutes:Q}));f>0&&S.push(JBT().format({seconds:f}));c="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");Q=_.gP==
"am"?"{0}\u1363 ":_.gP=="fa"?"{0}\u060c\u200f ":_.gP=="my"?"{0} - ":_.gP=="ne"?"{0},":_.gP=="th"?"{0} ":_.gP=="ur"?"{0}\u060c ":_.gP=="ar"||_.gP=="ar-XB"?"{0} \u0648":_.gP=="ja"||_.gP=="zh-CN"||_.gP=="zh-HK"||_.gP=="zh-TW"?"{0}\u3001":"{0}, ";f=_.gP=="am"?"\u1363 ":_.gP=="fa"?"\u060c\u200f ":_.gP=="my"?" - ":_.gP=="th"?" ":_.gP=="ur"?"\u060c ":_.gP=="ar"||_.gP=="ar-XB"?" \u0648":_.gP=="ja"||_.gP=="zh-CN"||_.gP=="zh-HK"||_.gP=="zh-TW"?"\u3001":", ";U=_.gP=="am"?" \u12a5\u1293 {0}":_.gP=="as"?" \u0986\u09f0\u09c1 {0}":
_.gP=="az"?" v\u0259 {0}":_.gP=="bn"?" \u098f\u09ac\u0982 {0}":_.gP=="cs"?" a\u00a0{0}":_.gP=="de"?" und {0}":_.gP=="el"?" \u03ba\u03b1\u03b9 {0}":_.gP=="eu"?" eta {0}":_.gP=="fa"?"\u060c \u0648 {0}":_.gP=="fil"?", at {0}":_.gP=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.gP=="hi"?", \u0914\u0930 {0}":_.gP=="hu"?" \u00e9s {0}":_.gP=="hy"?" \u0587 {0}":_.gP=="id"?", dan {0}":_.gP=="iw"?" \u05d5-{0}":_.gP=="ja"?"\u3001{0}":_.gP=="ka"?" \u10d3\u10d0 {0}":_.gP=="km"?" \u1793\u17b7\u1784 {0}":_.gP=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.gP=="ko"?" \ubc0f {0}":_.gP=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.gP=="lt"?" ir {0}":_.gP=="lv"?" un {0}":_.gP=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.gP=="mr"?" \u0906\u0923\u093f {0}":_.gP=="ms"?" dan {0}":_.gP=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.gP=="ne"?" \u0930 {0}":_.gP=="or"?", \u0b13 {0}":_.gP=="pa"?" \u0a05\u0a24\u0a47 {0}":_.gP=="ro"?" \u0219i {0}":_.gP=="si"?", \u0dc3\u0dc4 {0}":_.gP=="sk"?" a {0}":_.gP=="sl"?" in {0}":_.gP=="sq"?" dhe {0}":_.gP=="sv"?" och {0}":
_.gP=="sw"?" na {0}":_.gP=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.gP=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.gP=="th"?" \u0e41\u0e25\u0e30{0}":_.gP=="tr"?" ve {0}":_.gP=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.gP=="uz"?" va {0}":_.gP=="vi"?" v\u00e0 {0}":_.gP=="zh-HK"?"\u53ca{0}":_.gP=="zu"?", ne-{0}":_.gP=="af"||_.gP=="nl"?" en {0}":_.gP=="ar"||_.gP=="ar-XB"?" \u0648{0}":_.gP=="be"||_.gP=="uk"?" \u0456 {0}":_.gP=="en-GB"||_.gP=="en-IN"?" and {0}":_.gP=="en"||_.gP=="en-XA"?
", and {0}":_.gP=="et"||_.gP=="fi"?" ja {0}":_.gP=="fr"||_.gP=="fr-CA"?" et {0}":_.gP=="zh-CN"||_.gP=="zh-TW"?"\u548c{0}":_.gP=="da"||_.gP=="is"||_.gP=="no"?" og {0}":_.gP=="es"||_.gP=="es-419"||_.gP=="es-US"?" y {0}":_.gP=="kk"||_.gP=="lo"||_.gP=="mn"?", {0}":_.gP=="bg"||_.gP=="mk"||_.gP=="ru"||_.gP=="sr"?" \u0438 {0}":_.gP=="gl"||_.gP=="it"||_.gP=="pt-BR"||_.gP=="pt-PT"?" e {0}":" i {0}";var a=_.gP=="am"?"{0} \u12a5\u1293 {1}":_.gP=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.gP=="az"?"{0} v\u0259 {1}":
_.gP=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.gP=="de"?"{0} und {1}":_.gP=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.gP=="eu"?"{0} eta {1}":_.gP=="fa"?"{0} \u0648 {1}":_.gP=="fil"?"{0} at {1}":_.gP=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.gP=="hi"?"{0} \u0914\u0930 {1}":_.gP=="hu"?"{0} \u00e9s {1}":_.gP=="hy"?"{0} \u0587 {1}":_.gP=="iw"?"{0} \u05d5-{1}":_.gP=="ja"?"{0}\u3001{1}":_.gP=="ka"?"{0} \u10d3\u10d0 {1}":_.gP=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.gP=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.gP=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.gP=="ko"?"{0} \ubc0f {1}":_.gP=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.gP=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.gP=="lt"?"{0} ir {1}":_.gP=="lv"?"{0} un {1}":_.gP=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.gP=="mn"?"{0}, {1}":_.gP=="mr"?"{0} \u0906\u0923\u093f {1}":_.gP=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.gP=="ne"?"{0} \u0930 {1}":_.gP=="or"?"{0} \u0b13 {1}":_.gP=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.gP=="ro"?"{0} \u0219i {1}":_.gP==
"si"?"{0} \u0dc3\u0dc4 {1}":_.gP=="sl"?"{0} in {1}":_.gP=="sq"?"{0} dhe {1}":_.gP=="sv"?"{0} och {1}":_.gP=="sw"?"{0} na {1}":_.gP=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.gP=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.gP=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.gP=="tr"?"{0} ve {1}":_.gP=="ur"?"{0} \u0627\u0648\u0631 {1}":_.gP=="uz"?"{0} va {1}":_.gP=="vi"?"{0} v\u00e0 {1}":_.gP=="zh-HK"?"{0}\u53ca{1}":_.gP=="zu"?"{0} ne-{1}":_.gP=="af"||_.gP=="nl"?"{0} en {1}":_.gP=="ar"||_.gP==
"ar-XB"?"{0} \u0648{1}":_.gP=="be"||_.gP=="uk"?"{0} \u0456 {1}":_.gP=="cs"||_.gP=="sk"?"{0} a\u00a0{1}":_.gP=="et"||_.gP=="fi"?"{0} ja {1}":_.gP=="fr"||_.gP=="fr-CA"?"{0} et {1}":_.gP=="id"||_.gP=="ms"?"{0} dan {1}":_.gP=="zh-CN"||_.gP=="zh-TW"?"{0}\u548c{1}":_.gP=="da"||_.gP=="is"||_.gP=="no"?"{0} og {1}":_.gP=="es"||_.gP=="es-419"||_.gP=="es-US"?"{0} y {1}":_.gP=="bg"||_.gP=="mk"||_.gP=="ru"||_.gP=="sr"?"{0} \u0438 {1}":_.gP=="en"||_.gP=="en-GB"||_.gP=="en-IN"||_.gP=="en-XA"?"{0} and {1}":_.gP==
"gl"||_.gP=="it"||_.gP=="pt-BR"||_.gP=="pt-PT"?"{0} e {1}":"{0} i {1}";_.gP==="sq"?(U=U.replace("dhe","e"),a=a.replace("dhe","e")):_.gP==="th"?(f=f.replace("{0}"," {0}"),a=a.replace("{0}","{0} "),a=a.replace("{1}"," {1}")):_.gP==="ne"?f=",":_.gP==="zh-CN"?f="":c.includes(_.gP)&&(f=" ");return S.length<2?S.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(_.gP)?S.length===2?
a.replace("{0}",S[0]).replace("{1}",S[1]):Q.replace("{0}",S[0])+S.slice(1,-1).join(f)+U.replace("{0}",S[S.length-1]):S.join(f)};
_.J.getTimeParam=function(){return qzE(this.timeString)};
_.J.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var S={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},c;_.F2(_.Kv(),(c=this.data)==null?void 0:c.trackingParams,S,7)};
_.J.onChangeStartAtTimestamp=function(){for(var S=this.startAtTimestamp.value.split(":"),c=0,Q=1,f=S.length-1;f>=0;f--)c+=Number(S[f])*Q,Q*=60;this.updateTimeSecs(c);this.setTimestamp()};
_.J.onOpen=function(){var S=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var c=_.S9();c?c.getPlayerPromise().then(function(Q){Q=Q.getCurrentTime();S.updateTimeSecs(Q)}):fEV()&&this.updateTimeSecs(fEV())};
_.J.setTimestamp=function(){var S=Math.floor(this.currentTimeSecs);_.XF(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!S,timestamp:S||""}])};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Js.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Js.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Js.prototype,"data",void 0);_.d([_.Z({value:!1,notify:!0}),_.P("design:type",Boolean)],Js.prototype,"isStartAtChecked",void 0);_.d([_.Z(),_.P("design:type",Number)],Js.prototype,"currentTimeSecs",void 0);
_.d([_.Z({computed:"computeTimeString(currentTimeSecs)"}),_.P("design:type",String)],Js.prototype,"timeString",void 0);_.d([_.Z({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.P("design:type",String)],Js.prototype,"timeStringA11y",void 0);_.d([_.nU("#start-at-timestamp"),_.P("design:type",Object)],Js.prototype,"startAtTimestamp",void 0);_.d([_.wM({is:"yt-start-at-renderer",disableElementRegistration:!0})],Js);
_.k(Js,"yt-start-at-renderer",function(){if(f40===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;QvU===void 0&&(QvU=document.createElement("template"));var f=QvU;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);f40=S}S=f40;return S},{mode:2});var U3T;var Jv8;var a4p=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"]]),Avp=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"]]),XCV=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var OsU={};OsU.YtBindingExpressionsBehavior={identity:_.gp,msg:function(S,c){c=c===void 0?{}:c;return _.K8(S,c,S)},
msgPlural:function(S,c){return _.$t(S,c)},
getMusicIconFromType:function(S){if(_.u("music_web_enable_icon_wil"))S=_.xz(S);else if(Avp.has(S))S="yt-sys-icons:"+Avp.get(S);else{var c=a4p.get(S)||_.xz(S).split(":")[1];c=_.q0z(c);var Q;S=((Q=XCV.get(S))!=null?Q:"yt-sys-icons:")+c}return S}};var zuE;var x3O;var F8N;var BL8=document.head,I4V=BL8.appendChild,nO2;if(F8N===void 0){var bsT=document.createElement("template");_.D(bsT,'\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>');F8N=bsT}nO2=F8N;I4V.call(BL8,nO2.content);var ac=function(){var S=_.W.apply(this,arguments)||this;S.screenLayer=7;return S};
_.C(ac,_.W);ac.prototype.getScreenLayer=function(){return this.screenLayer};
ac.prototype.onTap=function(S){S&&S.detail&&(S.detail.x||S.detail.y)&&_.Ur(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.xt(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(S=this.getScreenLayer(),_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:S}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.Rh.Object.defineProperties(ac.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()}}});
ac.prototype.onTap=ac.prototype.onTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ac.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ac.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ac.prototype,"data",void 0);_.d([_.M("data.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],ac.prototype,"title",null);
_.d([_.M("data.serviceName"),_.P("design:type",String),_.P("design:paramtypes",[])],ac.prototype,"icon",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ac.prototype,"onTap",null);_.d([_.wM({is:"yt-share-target-renderer",disableElementRegistration:!0})],ac);
_.k(ac,"yt-share-target-renderer",function(){if(x3O===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;zuE===void 0&&(zuE=document.createElement("template"));var f=zuE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);x3O=S}S=x3O;return S},{mode:2});var NLT;var K8Z;var As=function(){var S=_.W.apply(this,arguments)||this;S.SHARE_TARGET_WIDTH=70;S.SHARE_TARGET_MARGIN_RIGHT=8;S.PAGE_SCROLL_SPEED=9;S.actionMap={"yt-share-panel-reset-action":"onReset_"};return S};
_.C(As,_.W);_.J=As.prototype;_.J.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.J.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.Ur(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.Ur(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.J.onReset_=function(){if(_.Ur(this.hostElement).querySelector("#list")){var S=_.Ur(this.hostElement).querySelector("#list");var c=_.Ur(this.hostElement).querySelector("#list");var Q=c.offsetLeft,f=c.offsetParent;f||_.uhh(c)!="fixed"||(f=_.qk(c).documentElement);if(f){if(_.Bg&&!_.nW(58)){var U=_.hsd(f);Q+=U.left}else Number(_.LbT)>=8&&!(Number(_.LbT)>=9)&&(U=_.hsd(f),Q-=U.left);c=_.DHi(f)?f.clientWidth-(Q+c.offsetWidth):Q}else c=Q;QZE(S,c);this.updateScrollButtons_()}};
_.J.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.J.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.J.onScrollWheel_=function(S){S.stopPropagation();S.preventDefault();var c=caT(_.Ur(this.hostElement).querySelector("#list"));S=Math.abs(S.deltaX)>Math.abs(S.deltaY)?S.deltaX:S.deltaY;QZE(_.Ur(this.hostElement).querySelector("#list"),c+S);this.updateScrollButtons_()};
_.J.smoothScrollByOnePage_=function(S){var c=_.Ur(this.hostElement).querySelector("#list"),Q=(Math.floor(c.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,f=caT(c),U=Q*(S?1:-1),a=this.PAGE_SCROLL_SPEED,X=this.updateScrollButtons_.bind(this),z=0,x;(function n(){z+=a;x=z/Q*2;QZE(c,f+U*(x<1?x*x:-x*x+4*x-2));z<Q?window.requestAnimationFrame(n):X()})()};
_.J.updateScrollButtons_=function(){var S=caT(_.Ur(this.hostElement).querySelector("#list")),c=_.Ur(this.hostElement).querySelector("#list").scrollWidth-_.Ur(this.hostElement).querySelector("#list").clientWidth;_.Ur(this.hostElement).querySelector("#scroll-button-back").hidden=S<=0;_.Ur(this.hostElement).querySelector("#scroll-button-forward").hidden=S>=c};
As.prototype.onScrollWheel_=As.prototype.onScrollWheel_;As.prototype.onDataChanged_=As.prototype.onDataChanged_;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],As.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],As.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(OsU.YtBindingExpressionsBehavior),_.P("design:type",Object)],As.prototype,"ytBindingExpressionsBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],As.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],As.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],As.prototype,"onDataChanged_",null);_.d([_.FV("wheel"),_.P("design:type",Function),_.P("design:paramtypes",[WheelEvent]),_.P("design:returntype")],As.prototype,"onScrollWheel_",null);
_.d([_.wM({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],As);
_.k(As,"yt-third-party-share-target-section-renderer",function(){if(K8Z===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;NLT===void 0&&(NLT=document.createElement("template"));var f=NLT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);K8Z=S}S=K8Z;return S},{mode:2});var Xn=function(){return _.W.apply(this,arguments)||this};
_.C(Xn,_.W);Xn.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"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Xn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Xn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Xn.prototype,"data",void 0);_.d([_.wM({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],Xn);
_.k(Xn,"yt-third-party-network-section-renderer",function(){if(Jv8===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;U3T===void 0&&(U3T=document.createElement("template"));var f=U3T;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Jv8=S}S=Jv8;return S},{mode:2});_.f4(_.y_(function(S){return _.B("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.B("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.B(_.h8,{data:function(){return S.data().firstPartyItems}},{listItemViewModel:_.hQ})))},"rg"),"first-party-network-section-view-model",{props:{data:_.y$}});var $3E=_.oK(["data:image/svg+xml;charset=UTF-8;base64,",""]),OG=function(){var S=_.W.apply(this,arguments)||this;S.screenLayer=7;S.qrCodeEnabled=_.u("web_enable_sharing_qr_code");S.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return S};
_.C(OG,_.W);_.J=OG.prototype;_.J.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"}}}};
_.J.attached=function(){this.JSC$17886_scroller&&(this.JSC$17886_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17886_scroller.attached&&typeof this.JSC$17886_scroller.attached==="function"&&this.JSC$17886_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.J.onDataChanged=function(){var S=this,c;(c=this.data)!=null&&c.contents&&(this.hostElement.setAttribute("links-only","true"),_.Aq(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.tO(this,function(){_.Az(S.hostElement,"yt-refit");S.focusSharePanelHeader()}))};
_.J.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.J.handleSetTimestamp=function(S){var c=this.shortUrl();S.isSet&&(c=_.dO(c,"t",S.timestamp));this.maybeRenderQrCode(c)};
_.J.shortUrl=function(){var S,c=(S=this.data)==null?void 0:S.contents;if(c)for(S=0;S<c.length;S++){var Q=void 0,f=void 0;if((Q=c[S])==null?0:(f=Q.thirdPartyNetworkSection)==null?0:f.copyLinkContainer){var U=f=Q=void 0;return(U=_.Y((Q=c[S])==null?void 0:(f=Q.thirdPartyNetworkSection)==null?void 0:f.copyLinkContainer,ceO))==null?void 0:U.shortUrl}}};
_.J.maybeRenderQrCode=function(S){var c=this,Q,f,U,a,X,z,x,I,n;return _.O(function(b){if(b.nextAddress==1){Q=_.Ur(c.hostElement).querySelector("#qr-code");if(!c.qrCodeEnabled||!S)return Q&&(Q.style.display="none"),b.return();f=_.eVx(_.fl().resolve(_.FB),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});U=document.createElement("div");return typeof f==="function"?(f(U),b.jumpTo(2)):_.F(b,f,3)}b.nextAddress!=2&&(a=b.yieldResult,a(U));x=(X=U)==null?void 0:(z=X.firstChild)==null?void 0:z.firstChild;
I=document.createElement("img");n=_.Cc($3E,btoa(x.outerHTML));I.onload=function(){var N={canvas:Q,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:I},l=new pnE;MRT(l,S);i$V(l,!1,Z$U(l));var H=l.modules,q=Object.assign({},ifg,N);H=structuredClone(H);N=H.length;var w,g=(w=q.canvas)!=null?w:document.createElement("canvas");w=q.cellSize;l=q.logo;var r,E=(r=q.logoSize)!=null?r:Math.floor(N/4);N%2!==E%2&&E++;var v=q.logoPadding,t=q.backgroundColor;r=N*w;var V=
q.width,AZ=0;V&&(AZ=q.padding,AZ=Math.ceil(AZ*r/(V-AZ*2)),g.style.width=V+"px",g.style.height=V+"px");g.width!==r+AZ*2&&(g.width=r+AZ*2);g.height!==r+AZ*2&&(g.height=r+AZ*2);r=g.getContext("2d");q.autoClear&&r.clearRect(0,0,g.width,g.height);r.fillStyle=t;r.beginPath();r.roundRect(0,0,g.width,g.height,q.borderRadius);r.fill();r.save();r.translate(AZ,AZ);if(l)for(g=Math.floor(N-E)/2-v,v=Math.floor(N+E)/2+v,t=g;t<v;t++)for(V=g;V<v;V++)H[t][V]=!1;for(g=0;g<N;g++)for(v=0;v<N;v++)(g<7&&v<7||g<7&&v>=N-
7||g>=N-7&&v<7)&&(H[g][v]=!1);var IH;g=(IH=q.markerColor)!=null?IH:q.color;WGU(r,0,0,w,g);WGU(r,w*(N-7),0,w,g);WGU(r,0,w*(N-7),w,g);switch(q.cellStyle){case 0:IH=H;H=IH.length;g=q.cellSize;r.beginPath();for(v=0;v<H;v++)for(t=0;t<H;t++)IH[v][t]&&r.rect(v*g,t*g,g,g);r.fillStyle=q.color;r.fill();break;case 1:IH=H;H=IH.length;g=q.cellSize;v=g*q.relativeCircleSize;r.fillStyle=q.color;r.beginPath();for(q=0;q<H;q++)for(t=0;t<H;t++)IH[q][t]&&(r.beginPath(),r.ellipse((q+.5)*g,(t+.5)*g,v/2,v/2,0,0,2*Math.PI),
r.fill());r.fill();break;case 2:IH=H;H=IH.length;g=q.cellSize;r.fillStyle=q.color;q=[[1,1],[-1,1],[-1,-1],[1,-1]];r.beginPath();for(v=0;v<H;v++)for(t=0;t<H;t++)if(IH[v][t])r.roundRect(v*g,t*g,g,g,g/2),v+1<H&&IH[v+1][t]&&r.rect(v*g+g/2,t*g,g,g),t+1<H&&IH[v][t+1]&&r.rect(v*g,t*g+g/2,g,g);else{V=v*g+g/2;AZ=t*g+g/2;for(var Nr=0;Nr<4;Nr++){var Hc=_.A(q[Nr]),qr=Hc.next().value;Hc=Hc.next().value;v+qr>=0&&v+qr<H&&t+Hc>=0&&t+Hc<H&&IH[v+qr][t]&&IH[v][t+Hc]&&IH[v+qr][t+Hc]&&(qr=Nr*Math.PI/2,Hc=g/2,r.moveTo(V+
Hc*Math.cos(qr),AZ+Hc*Math.sin(qr)),r.arc(V,AZ,g/2,qr,qr+Math.PI/2,!1),r.lineTo(V+Hc*(Math.cos(qr)-Math.sin(qr)),AZ+Hc*(Math.cos(qr)+Math.sin(qr))),r.lineTo(V+Hc*Math.cos(qr),AZ+Hc*Math.sin(qr)))}}r.fill()}l&&r.drawImage(l,(N-E)*w/2,(N-E)*w/2,E*w,E*w);r.restore();Q.style.removeProperty("display")};
I.src=_.nc(n);_.IN(b)})};
_.J.hasCommunityPostRenderer=function(){var S,c,Q,f;return!!((S=this.data)==null?0:(c=S.header)==null?0:(Q=c.sharePanelHeaderRenderer)==null?0:(f=Q.communityPost)==null?0:f.communityPostSectionRenderer)};
_.J.onTapClose=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.J.getScreenLayer=function(){return this.screenLayer};
_.J.logSharePanelPage=function(){if(!_.u("enable_share_panel_navigation_logging_fix_on_web")){var S;if((S=this.data)!=null&&S.trackingParams){S=this.data.trackingParams;var c=this.parentClickTrackingParams;c=c?_.Yz(c):void 0;var Q=_.Kv();_.X2(Q,21760,c,{layer:7,parentLayer:0});Q.graftServerVe(S,void 0,7);_.V5().dispatch(_.aB({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
OG.prototype.onDataChanged=OG.prototype.onDataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],OG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],OG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],OG.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],OG.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],OG.prototype,"data",void 0);_.d([_.Z({value:_.K8("SBOX_INAPPROPRIATE_CANCEL")}),_.P("design:type",String)],OG.prototype,"closeButtonAriaLabel",void 0);_.d([_.nU("yt-share-panel-header-renderer"),_.P("design:type",HTMLElement)],OG.prototype,"header",void 0);_.d([_.Z({selector:function(S){return S.share.parentClickTrackingParams}}),
_.P("design:type",String)],OG.prototype,"parentClickTrackingParams",void 0);_.d([_.Z(),_.P("design:type",Object)],OG.prototype,"qrCodeEnabled",void 0);_.d([_.nU("#scroller"),_.P("design:type",Object)],OG.prototype,"JSC$17886_scroller",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],OG.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],OG);
_.k(OG,"ytd-unified-share-panel-renderer",function(){if(EJ2!==void 0)return EJ2;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return EJ2=S},{mode:1});var uyG;var zY=function(){var S=_.W.apply(this,arguments)||this;S.modernModal=_.u("kevlar_sign_in_modal_modernization");return S};
_.C(zY,_.W);zY.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
zY.prototype.computeShouldHideOldButtons=function(){var S;return!((S=this.data)==null?0:S.button)};
_.Rh.Object.defineProperties(zY.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var S,c;if(this.modernModal&&((S=this.data)==null?0:(c=S.button)==null?0:c.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var Q,f;return(Q=this.data)==null?void 0:(f=Q.button)==null?void 0:f.buttonRenderer}}});
_.d([_.Z(),_.P("design:type",Object)],zY.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zY.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],zY.prototype,"ytEventForwardingBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zY.prototype,"modernModal",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],zY.prototype,"buttonRendererData",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],zY);
_.k(zY,"ytd-modal-with-title-and-button-renderer",function(){if(uyG!==void 0)return uyG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return uyG=S},{mode:1});var jv2;var xf=function(){return _.W.apply(this,arguments)||this};
_.C(xf,_.W);xf.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("page-changed",this.page))};
xf.prototype.pageChangedForBinding=xf.prototype.pageChangedForBinding;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],xf.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],xf.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],xf.prototype,"page",void 0);_.d([_.B0("page"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],xf.prototype,"pageChangedForBinding",null);
_.d([_.e({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],xf);
_.k(xf,"ytd-account-item-section-header-renderer",function(){if(jv2!==void 0)return jv2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return jv2=S},{mode:1});var l4p;var Fn=function(){return _.W.apply(this,arguments)||this};
_.C(Fn,_.W);Fn.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"}}}};
Fn.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Fn.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Fn.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],Fn.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Fn.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!1}),_.P("design:type",Function)],Fn.prototype,"onAccountItemTap",void 0);
_.d([_.e({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],Fn);
_.k(Fn,"ytd-account-item-section-renderer",function(){if(l4p!==void 0)return l4p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return l4p=S},{mode:1});var Yt1;var CgT;var Bv=function(){return _.W.apply(this,arguments)||this};
_.C(Bv,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Bv.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Bv.prototype,"data",void 0);_.d([_.e({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],Bv);
_.k(Bv,"ytd-accounts-dialog-header-renderer",function(){if(CgT!==void 0)return CgT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return CgT=S},{mode:1});var HsE;var Ic=function(){return _.W.apply(this,arguments)||this};
_.C(Ic,_.W);Ic.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ic.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ic.prototype,"data",void 0);_.d([_.e({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],Ic);
_.k(Ic,"ytd-google-account-header-renderer",function(){if(HsE!==void 0)return HsE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return HsE=S},{mode:1});var nu=function(){return _.W.apply(this,arguments)||this};
_.C(nu,_.W);nu.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"}}}};
nu.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("page-changed",this.page))};
nu.prototype.pageChangedForBinding=nu.prototype.pageChangedForBinding;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nu.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nu.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],nu.prototype,"page",void 0);
_.d([_.B0("page"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nu.prototype,"pageChangedForBinding",null);_.d([_.e({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],nu);
_.aW()(nu,"ytd-account-section-list-renderer",function(){if(Yt1===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);Yt1=S}S=Yt1;return S},{allowedProps:["data"],
mode:1});var D3B;var bf=function(){var S=_.W.apply(this,arguments)||this;S.enableHandlesAccountMenuSwitcher=_.u("enable_handles_account_menu_switcher");return S};
_.C(bf,_.W);bf.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
bf.prototype.dataChanged=bf.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bf.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bf.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bf.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.d([_.nU("#avatar"),_.P("design:type",Object)],bf.prototype,"avatar",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bf.prototype,"dataChanged",null);_.d([_.e({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],bf);
_.aW()(bf,"ytd-active-account-header-renderer",function(){if(D3B===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);D3B=S}S=D3B;return S},{allowedProps:["data"],
mode:1});var pCO;var huZ;var N2=function(){return _.W.apply(this,arguments)||this};
_.C(N2,_.W);N2.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
N2.prototype.onBackTap=function(){_.Az(this.hostElement,"yt-menu-back-tapped")};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],N2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],N2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],N2.prototype,"data",void 0);_.d([_.e({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],N2);
_.aW()(N2,"ytd-simple-menu-header-renderer",function(){if(huZ===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);huZ=S}S=huZ;return S},{allowedProps:["data"],
mode:2});var qtO;var Ku=function(){return _.W.apply(this,arguments)||this};
_.C(Ku,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ku.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Ku.prototype,"data",void 0);_.d([_.e({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],Ku);
_.k(Ku,"ytd-comment-video-thumbnail-header-renderer",function(){if(qtO!==void 0)return qtO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return qtO=S},{mode:1});var TLZ;var $f=function(){return _.W.apply(this,arguments)||this};
_.C($f,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$f.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$f.prototype,"data",void 0);_.d([_.e({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],$f);
_.k($f,"ytd-abuse-type-selector-renderer",function(){if(TLZ!==void 0)return TLZ;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return TLZ=S},{mode:1});var wCU;var uf=function(){return _.W.apply(this,arguments)||this};
_.C(uf,_.W);uf.prototype.attached=function(){var S=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){S.additionalContextInput.focusTextInput()})};
uf.prototype.handleAdditionalContextChanged=function(){var S=this;_.e$(this,"ytd-report-channel-additional-context-update",function(){S.ytdReduxBehavior.dispatch(_.aB({type:"ADDITIONAL_CONTEXT_UPDATED",payload:S.additionalContext}))},300)};
uf.prototype.updateAdditionalContextFromBinding=function(S){this.additionalContext=S.detail.value};
uf.prototype.handleAdditionalContextChanged=uf.prototype.handleAdditionalContextChanged;_.d([_.p(_.st),_.P("design:type",Object)],uf.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",String)],uf.prototype,"additionalContext",void 0);_.d([_.Z({selector:function(S){return S.reportChannelAbuse.additionalContext}}),
_.P("design:type",String)],uf.prototype,"additionalContextRedux",void 0);_.d([_.Z(),_.P("design:type",Object)],uf.prototype,"data",void 0);_.d([_.nU("yt-text-input-form-field-renderer"),_.P("design:type",Object)],uf.prototype,"additionalContextInput",void 0);_.d([_.B0("additionalContext"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uf.prototype,"handleAdditionalContextChanged",null);
_.d([_.e({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],uf);
_.k(uf,"ytd-report-channel-modal-additional-context-renderer",function(){if(wCU!==void 0)return wCU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wCU=S},{mode:1});var sv0;var jc=function(){var S=_.W.apply(this,arguments)||this;S.nextButtonDisabled=null;S.submitEndpoint=null;S.navigationEndpoint=null;S.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return S};
_.C(jc,_.W);_.J=jc.prototype;_.J.computeNextButtonData=function(S,c,Q){var f={};c&&(f.navigationEndpoint=c);Q&&(f.serviceEndpoint=Q);S&&S.buttonRenderer&&_.Cn.extend(f,S.buttonRenderer);return f};
_.J.handleReportChannelModalDisableNextButtonAction=function(S){this.setNextButtonIsDisabled(S)};
_.J.handleReportFormEndpointUpdateAction=function(S){this.setNextButtonIsDisabled(!!S.disableSubmitButton);this.resetEndpointData();S.submitEndpoint?this.submitEndpoint=S.submitEndpoint:S.submitNavigationEndpoint&&(this.navigationEndpoint=S.submitNavigationEndpoint)};
_.J.handleSignalActionSubmitForm=function(){var S,c=Object.keys(((S=this.reportChannelAbuseForm)==null?void 0:S.selectedVideoIds)||{}),Q;S=((Q=this.reportChannelAbuseForm)==null?void 0:Q.additionalContext)||"";var f;Q=((f=this.reportChannelAbuseForm)==null?void 0:f.impersonatedChannelUrl)||"";var U;if((U=this.data)==null?0:U.submitEndpoint){c={impersonated_channel_url:Q,text:S,video_ids:c};var a;_.fl().resolve(_.U8).resolveCommand((a=this.data)==null?void 0:a.submitEndpoint,{form:Object.assign({},
c,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.J.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.J.onYtServiceRequestError=function(S){this.setNextButtonIsDisabled(!1);_.fD(this.hostElement,S.detail.error.message)};
_.J.setNextButtonIsDisabled=function(S){this.set("data.nextButton.buttonRenderer.isDisabled",S)};
_.J.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
jc.prototype.onYtServiceRequestError=jc.prototype.onYtServiceRequestError;jc.prototype.onYtServiceRequestCompleted=jc.prototype.onYtServiceRequestCompleted;_.d([_.Z(),_.P("design:type",Object)],jc.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],jc.prototype,"nextButtonDisabled",void 0);_.d([_.p(_.st),_.P("design:type",Object)],jc.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],jc.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jc.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],jc.prototype,"submitEndpoint",void 0);_.d([_.Z(),_.P("design:type",Object)],jc.prototype,"navigationEndpoint",void 0);_.d([_.Z({selector:function(S){return S.reportChannelAbuse}}),
_.P("design:type",Object)],jc.prototype,"reportChannelAbuseForm",void 0);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jc.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jc.prototype,"onYtServiceRequestError",null);
_.d([_.e({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],jc);
_.k(jc,"ytd-report-channel-modal-footer-renderer",function(){if(sv0!==void 0)return sv0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return sv0=S},{mode:1});var MrG;var lf=function(){var S=_.W.apply(this,arguments)||this;S.boundOnTapDismissButton=function(){S.closePopup()};
return S};
_.C(lf,_.W);lf.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
lf.prototype.handleDataChanged=function(){_.Vk(this.hostElement)};
lf.prototype.closePopup=function(){_.XF(this.hostElement,"yt-close-popup-action")};
lf.prototype.handleDataChanged=lf.prototype.handleDataChanged;_.d([_.Z(),_.P("design:type",Object)],lf.prototype,"boundOnTapDismissButton",void 0);_.d([_.Z(),_.P("design:type",Object)],lf.prototype,"data",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lf.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lf.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lf.prototype,"handleDataChanged",null);_.d([_.e({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],lf);
_.k(lf,"ytd-report-channel-modal-header-renderer",function(){if(MrG!==void 0)return MrG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return MrG=S},{mode:1});var is8;var Yf=function(){var S=_.W.apply(this,arguments)||this;S.autoValidate=!1;S.invalid=!1;S.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return S};
_.C(Yf,_.W);_.J=Yf.prototype;_.J.attached=function(){var S=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){S.channelUrlInput.focusTextInput()})};
_.J.disableNextButton=function(S){_.XF(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[S])};
_.J.handleImpersonatedChannelUrlChanged=function(){var S=this;this.disableNextButton(!0);this.invalid=!1;_.e$(this,"ytd-report-channel-impersonated-channel-update",function(){var c=S.impersonatedChannelUrl.trim();S.ytdReduxBehavior.dispatch(_.aB({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:c}));var Q;((Q=S.data)==null?0:Q.submitEndpoint)&&c&&_.fl().resolve(_.U8).resolveCommand(S.data.submitEndpoint,{form:{impersonated_channel_url:c,element:S.hostElement}})},500)};
_.J.handleModifyReportFormCommand=function(S){this.invalid=this.get("modifyReportFormCommand.action",S)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.J.updateInvalidFromBinding=function(S){this.invalid=S.detail.value};
_.J.updateImpersonatedChannelUrlFromBinding=function(S){this.impersonatedChannelUrl=S.detail.value};
Yf.prototype.handleImpersonatedChannelUrlChanged=Yf.prototype.handleImpersonatedChannelUrlChanged;_.d([_.p(_.st),_.P("design:type",Object)],Yf.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Yf.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Yf.prototype,"autoValidate",void 0);_.d([_.Z(),_.P("design:type",Object)],Yf.prototype,"invalid",void 0);
_.d([_.Z(),_.P("design:type",String)],Yf.prototype,"impersonatedChannelUrl",void 0);_.d([_.Z({selector:function(S){return S.reportChannelAbuse.impersonatedChannelUrl}}),
_.P("design:type",String)],Yf.prototype,"impersonatedChannelUrlRedux",void 0);_.d([_.Z(),_.P("design:type",Object)],Yf.prototype,"data",void 0);_.d([_.nU("#text-input"),_.P("design:type",Object)],Yf.prototype,"channelUrlInput",void 0);_.d([_.B0("impersonatedChannelUrl"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yf.prototype,"handleImpersonatedChannelUrlChanged",null);
_.d([_.e({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],Yf);
_.k(Yf,"ytd-report-channel-modal-impersonation-renderer",function(){if(is8!==void 0)return is8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return is8=S},{mode:1});var Zs1;var GKT;var Cu=function(){return _.W.apply(this,arguments)||this};
_.C(Cu,_.W);Cu.prototype.onCheckboxToggled=function(S){var c,Q,f=(Q=_.Y((c=this.data)==null?void 0:c.video,_.gx))==null?void 0:Q.videoId;f&&this.ytdReduxBehavior.dispatch(S.target.checked?_.aB({type:"VIDEO_SELECTED",payload:f}):_.aB({type:"VIDEO_UNSELECTED",payload:f}))};
Cu.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.Rh.Object.defineProperties(Cu.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var S,c=(S=this.data)==null?void 0:S.video;if(!c)return{};var Q;S=(Q=_.Y(c,_.gx))==null?void 0:Q.navigationEndpoint;if(!S)return c;_.Y(S==null?void 0:S.commandMetadata,_.Qw)&&(_.Y(S.commandMetadata,_.Qw).ignoreNavigation=!0);return c}}});
_.d([_.Z({reflectToAttribute:!0,selector:function(S,c){return c in S.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.P("design:type",Boolean)],Cu.prototype,"checked",void 0);_.d([_.Z(),_.P("design:type",Object)],Cu.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Cu.prototype,"video",null);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Cu.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Cu.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],Cu.prototype,"ytdReduxBehavior",void 0);_.d([_.e({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],Cu);
_.k(Cu,"ytd-selectable-video-renderer",function(){if(GKT!==void 0)return GKT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return GKT=S},{mode:1});var Hv=function(){var S=_.W.apply(this,arguments)||this;S.monitorScroll=!0;return S};
_.C(Hv,_.W);Hv.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Hv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Hv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Hv.prototype,"data",void 0);_.d([_.e({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],Hv);
_.k(Hv,"ytd-selectable-video-list-renderer",function(){if(Zs1!==void 0)return Zs1;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Zs1=S},{mode:1});var W81;_.i8("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var Da=function(){return _.W.apply(this,arguments)||this};
_.C(Da,_.W);Da.prototype.onChange=function(S){if(S=_.VI(S).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.u("kevlar_command_handler_migration_killswitch"))_.FF(this.hostElement,S,this.hostElement);else{S=_.A(S);for(var c=S.next();!c.done;c=S.next())this.ytComponentBehavior.resolveCommand(c.value)}};
Da.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
Da.prototype.updateDataToggledFromBinding=function(S){this.set("data.toggled",S.detail.value)};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Da.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Da.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Da.prototype,"data",void 0);_.d([_.Z({computed:"isEnabled(data)"}),_.P("design:type",Boolean)],Da.prototype,"enabled",void 0);_.d([_.e({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],Da);
_.k(Da,"ytd-toggle-item-renderer",function(){if(W81!==void 0)return W81;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return W81=S},{mode:1});var gOg;var eu0;var kKE;var pu=function(){var S=_.W.apply(this,arguments)||this;S.setVisible=!1;S.boundOnSubmitButtonClick=function(){S.onSubmitButtonClick()};
S.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return S};
_.C(pu,_.W);pu.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}}}}}};
pu.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
pu.prototype.onSubmitButtonClick=function(){var S;((S=this.data)==null?0:S.submitEndpoint)&&!_.u("enable_ytc_refunds_submit_form_signal_action")&&_.xt(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
pu.prototype.handleSignalActionSubmitForm=function(){var S;((S=this.data)==null?0:S.submitEndpoint)&&_.xt(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.Rh.Object.defineProperties(pu.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.hiddenByDefault)&&!this.setVisible}}});
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],pu.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pu.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pu.prototype,"setVisible",void 0);_.d([_.Z(),_.P("design:type",Object)],pu.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],pu.prototype,"surveyFeedbackData",void 0);_.d([_.Z(),_.P("design:type",Object)],pu.prototype,"boundOnSubmitButtonClick",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data","setVisible"),_.P("design:type",Object),_.P("design:paramtypes",[])],pu.prototype,"visibilityHidden",null);_.d([_.wM({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],pu);
_.k(pu,"yt-flow-footer-renderer",function(){if(kKE===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;eu0===void 0&&(eu0=document.createElement("template"));var f=eu0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);kKE=S}S=kKE;return S},{mode:2});var hs=function(){return _.W.apply(this,arguments)||this};
_.C(hs,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hs.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],hs.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hs.prototype,"data",void 0);_.d([_.Z({selector:function(S){return S.ypc.surveyFeedbackData}}),
_.P("design:type",Object)],hs.prototype,"surveyFeedbackData",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],hs);
_.k(hs,"ytd-flow-footer-renderer",function(){if(gOg!==void 0)return gOg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return gOg=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var rvE;var d3p;var q2=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return S};
_.C(q2,_.W);_.J=q2.prototype;_.J.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.ZL("multiPageMenuSectionItems")}}};
_.J.handleHideEnclosingAction_=function(S){if(this.data&&this.data.items)for(var c=0;c<this.data.items.length;c++){var Q=this.data.items[c].notificationRenderer;if(Q&&Q.notificationId==S.hideEnclosingAction.notificationId){this.splice("data.items",c,1);_.XF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.J.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Aq(this.hostElement,"hidden",!0)};
_.J.updateMenu_=function(S){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&S&&!S.doNotRefreshInbox){S=this.data.continuations;for(var c=0;c<S.length;c++)if(S[c].invalidationContinuationData){var Q=void 0;var f=(Q=S[c].invalidationContinuationData)==null?void 0:Q.continuation;break}S=_.Cn.clone(this.data.continuationUpdateEndpoint||null);S.continuation=f;S.click_tracking_params=this.data.trackingParams;_.xt(this.hostElement,[S])}};
_.J.onServiceRequestCompleted_=function(S,c){if(this.data&&(S=c.actions)){c=0;for(var Q=S.length;c<Q;c++){var f=_.Y(S[c],_.lxd);if(!f)break;if((f.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||f.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&f.continuationItems&&this.data.items){var U=this.data.items.length-1;this.data.items[U].continuationItemRenderer&&this.splice.apply(this,["data.items",U,1].concat(f.continuationItems))}}}};
q2.prototype.onServiceRequestCompleted_=q2.prototype.onServiceRequestCompleted_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],q2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],q2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],q2.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],q2.prototype,"data",void 0);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],q2.prototype,"onServiceRequestCompleted_",null);_.d([_.wM({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],q2);
_.aW()(q2,"yt-multi-page-menu-section-renderer",function(){if(d3p===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;rvE===void 0&&(rvE=document.createElement("template"));var f=rvE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);d3p=S}S=d3p;return S},{allowedProps:["data"],
mode:2});var vO0;var PgE;var TY=function(){return _.W.apply(this,arguments)||this};
_.C(TY,_.W);TY.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.Rh.Object.defineProperties(TY.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.progress)==null?0:this.data.progress*100}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],TY.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],TY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],TY.prototype,"data",void 0);_.d([_.M("data.progress"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],TY.prototype,"showProgressBar",null);
_.d([_.M("data.progress"),_.P("design:type",Number),_.P("design:paramtypes",[])],TY.prototype,"progress",null);_.d([_.wM({is:"yt-flow-header-renderer",disableElementRegistration:!0})],TY);
_.k(TY,"yt-flow-header-renderer",function(){if(PgE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;vO0===void 0&&(vO0=document.createElement("template"));var f=vO0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);PgE=S}S=PgE;return S},{mode:2});var L80;var EOE;var wG=function(){return _.W.apply(this,arguments)||this};
_.C(wG,_.W);wG.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],wG.prototype,"data",void 0);_.d([_.wM({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],wG);
_.k(wG,"yt-post-confirmation-flow-step-renderer",function(){if(EOE===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;L80===void 0&&(L80=document.createElement("template"));var f=L80;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);EOE=S}S=EOE;return S},{mode:2});var trg;var VrV;var sG=function(){return _.W.apply(this,arguments)||this};
_.C(sG,_.W);
sG.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"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],sG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],sG.prototype,"data",void 0);_.d([_.wM({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],sG);
_.k(sG,"yt-refund-confirmation-flow-step-renderer",function(){if(VrV===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;trg===void 0&&(trg=document.createElement("template"));var f=trg;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);VrV=S}S=VrV;return S},{mode:2});_.Qu(TSZ);_.Qu(w20);var sI2=_.l9({avatarViewModel:_.p3});_.Qu(MLO);var i8N=_.l9({commentInteractionViewModel:w20,sharedSubscriptionViewModel:MLO,buttonViewModel:_.Ze});_.Qu(Z8B);_.Qu(GZE);_.Qu(WqE);_.Qu(gtp);_.Qu(eWZ);var kZp=_.l9({profileIdentityInfoViewModel:_.vpp,profileInfoViewModel:eWZ});_.Qu(rzZ);_.xd(rzZ,"yt-profile-card-view-model",{propNames:["data"]});var M2=function(){var S=_.W.apply(this,arguments)||this;S.enableFocusFix=_.u("music_web_enable_focus_on_setting_menu_fix")&&_.gC("IS_MOBILE_WEB",!1);S.covered=!1;S.hideMenu=!1;S.isCommentNotificationOnProfileCard=!1;S.scrolledByTouch=!1;S.disableBackdropFilter=_.u("web_disable_backdrop_filter");S.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return S};
_.C(M2,_.W);_.J=M2.prototype;
_.J.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"}}}};
_.J.ready=function(){var S=this;this.JSC$17995_containerElement.addEventListener("scroll",function(){S.ytRendererBehavior.markDirty()})};
_.J.attributeChanged=function(S,c){S==="menu-style"&&_.XF(this.hostElement,"yt-multi-page-menu-closed-action",[c])};
_.J.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.xn(this,this.focusOnStampFinished))};
_.J.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.xn(this,this.focusOnStampFinished))};
_.J.reset=function(){this.closeJobId&&(_.Mq.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.J.focusOnStampFinished=function(S){S.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.xn(this,this.focusOnStampFinished)),this.doFocus())};
_.J.doFocus=function(){var S=_.Z4u(this.sectionsElement);S.length&&S[0].focus()};
_.J.computeMenuStyle=function(S){return S?S.toLowerCase().replace(/_/g,"-"):""};
_.J.computeIsCommentNotificationOnProfileCard=function(S){return _.u("enable_profile_cards_on_comments")&&S.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.J.computeHideMenu=function(S,c){return S||!(!c||!c.showLoadingSpinner)};
_.J.onPopupClosed=function(){this.isPopUpOpen=!1;_.XF(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.J.onPopupOpened=function(S,c){this.isPopUpOpen=!0;c.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.Az(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.aB({type:"CHANNEL_REPORT_RESET"})))};
_.J.onYtNavigate=function(S,c){this.shouldCloseOnNavigateEvent(c.endpoint)&&_.XF(this.hostElement,"yt-close-all-popups-action")};
_.J.handleEndpoint=function(S){S=_.Y(S,_.sa);!this.isCommentNotificationOnProfileCard&&S&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17995_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.J.handleActions=function(S){for(var c=0,Q=S.length;c<Q;c++){var f=_.Y(S[c],U9V);f&&this.handleGetMultiPageMenuAction(f);(f=_.Y(S[c],_.lxd))&&this.handleAppendContinuationItemsAction(f)}};
_.J.onServiceRequestSentOrCompleted=function(S,c){S.detail&&S.detail.endpoint&&this.handleEndpoint(S.detail.endpoint);c.actions&&this.handleActions(c.actions)};
_.J.handleGetMultiPageMenuAction=function(S){var c=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.Ur(this.submenuElement).appendChild(c);(S=S.menu.multiPageMenuRenderer)&&this.logSubmenu(S);c.data=S;c.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.J.handleAppendContinuationItemsAction=function(S){if(this.data&&S.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&S.continuationItems&&this.data.sections){var c=this.data.sections.length-1;this.data.sections[c].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),c--);if(this.data.sections[c].multiPageMenuNotificationSectionRenderer&&S.continuationItems){S=_.A(S==null?void 0:S.continuationItems);for(var Q=S.next();!Q.done;Q=S.next())if(Q=Q.value,_.Y(Q,T9Z)){var f=
void 0,U=void 0,a=void 0,X=void 0,z=void 0;((f=this)==null?0:(U=f.data)==null?0:(a=U.sections)==null?0:(X=a[c])==null?0:(z=X.multiPageMenuNotificationSectionRenderer)==null?0:z.items)&&this.push("data.sections."+c+".multiPageMenuNotificationSectionRenderer.items",Q)}else if(_.Y(Q,_.OxJ)||_.Y(Q,_.aK))this.push("data.sections",Q),c++}}};
_.J.logSubmenu=function(S){if(!_.u("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var c=this.ytRendererBehavior.getScreenLayer(),Q=_.wN(c),f=_.T$(c);if((S=S.trackingParams)&&Q&&f){var U=_.Yz(S);_.u("combine_ve_grafts")?_.Kv().graftServerVe(S,f,c):_.dS(Q,f,U)}}};
_.J.emptySubmenuContainer=function(){for(var S=_.Ur(this.submenuElement);S.firstChild;)S.removeChild(S.firstChild)};
_.J.onMenuBackTap=function(S){_.Az(this.hostElement,"yt-submenu-closed");S.stopPropagation()};
_.J.onSubmenuClosed=function(S){_.VI(S)!==this.hostElement&&(this.covered=!1,_.Az(this.hostElement,"yt-refit"),S.stopPropagation())};
_.J.onRetrieveLocation=function(S,c){c.hasComments&&(c.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),S.stopPropagation())};
_.J.shouldCloseOnNavigateEvent=function(S){if(!S)return!0;if(_.Y(S,_.aP$)||_.Y(S,_.A1T)||_.Y(S,_.J1_)||_.Y(S,_.rQ))return!1;var c;return((c=_.Y(S==null?void 0:S.commandMetadata,_.Qw))==null?0:c.ignoreNavigation)?!1:!0};
_.J.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.J.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.J.refitAfterRender=function(){var S=this;_.tO(this,function(){_.Az(S.hostElement,"yt-refit")})};
M2.prototype.refitAfterRender=M2.prototype.refitAfterRender;M2.prototype.onRetrieveLocation=M2.prototype.onRetrieveLocation;M2.prototype.onSubmenuClosed=M2.prototype.onSubmenuClosed;M2.prototype.onMenuBackTap=M2.prototype.onMenuBackTap;M2.prototype.onServiceRequestSentOrCompleted=M2.prototype.onServiceRequestSentOrCompleted;M2.prototype.onYtNavigate=M2.prototype.onYtNavigate;M2.prototype.onPopupOpened=M2.prototype.onPopupOpened;M2.prototype.onPopupClosed=M2.prototype.onPopupClosed;
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],M2.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],M2.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],M2.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],M2.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],M2.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],M2.prototype,"enableFocusFix",void 0);_.d([_.Z(),_.P("design:type",Object)],M2.prototype,"covered",void 0);_.d([_.Z({computed:"computeHideMenu(covered, data)"}),_.P("design:type",Object)],M2.prototype,"hideMenu",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.P("design:type",String)],M2.prototype,"menuStyle",void 0);
_.d([_.Z({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.P("design:type",Object)],M2.prototype,"isCommentNotificationOnProfileCard",void 0);_.d([_.Z(),_.P("design:type",Boolean)],M2.prototype,"isPopUpOpen",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],M2.prototype,"scrolledByTouch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],M2.prototype,"disableBackdropFilter",void 0);
_.d([_.nU("#sections"),_.P("design:type",HTMLElement)],M2.prototype,"sectionsElement",void 0);_.d([_.nU("#spinner"),_.P("design:type",HTMLElement)],M2.prototype,"spinnerElement",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],M2.prototype,"headerElement",void 0);_.d([_.nU("#container"),_.P("design:type",HTMLElement)],M2.prototype,"JSC$17995_containerElement",void 0);_.d([_.nU("#submenu"),_.P("design:type",HTMLElement)],M2.prototype,"submenuElement",void 0);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],M2.prototype,"onPopupClosed",null);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],M2.prototype,"onPopupOpened",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],M2.prototype,"onYtNavigate",null);
_.d([_.FV("yt-service-request-completed"),_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],M2.prototype,"onServiceRequestSentOrCompleted",null);_.d([_.FV("yt-menu-back-tapped"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],M2.prototype,"onMenuBackTap",null);
_.d([_.FV("yt-submenu-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],M2.prototype,"onSubmenuClosed",null);_.d([_.FV("yt-retrieve-location"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],M2.prototype,"onRetrieveLocation",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],M2.prototype,"refitAfterRender",null);
_.d([_.e({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],M2);
_.k(M2,"ytd-multi-page-menu-renderer",function(){if(pCO!==void 0)return pCO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return pCO=S},{mode:1});var RuT;var Za=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return S};
_.C(Za,_.W);_.J=Za.prototype;_.J.created=function(){this.showTooltips=!0};
_.J.computeAccessibility_=function(S){return this.get("accessibility.accessibilityData",S)||null};
_.J.onTap=function(){var S=_.Oz(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(S&&S.length===1&&S[0])_.XF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var c;if((c=this.data)==null?0:c.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var Q;((Q=this.data)==null?0:Q.menuRequest)&&_.xt(this.hostElement,[this.data.menuRequest])}}};
_.J.handleTopbarMenuClosedAction=function(S){var c,Q;(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(S)===((c=this.data)==null?void 0:(Q=c.icon)==null?void 0:Q.iconType)&&this.toggleIconState(!1)};
_.J.toggleIconState=function(S){_.u("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=S)};
_.J.handleUpdateTopbarAvatarAction=function(S){var c;S=(c=_.Y(S,yk1))==null?void 0:c.avatarUrl;var Q,f;c=(Q=this.data)==null?void 0:(f=Q.avatar)==null?void 0:f.thumbnails;S&&c&&(Q={thumbnails:[Object.assign({},c[0],{url:S})]},this.set("data.avatar",Q))};
_.Rh.Object.defineProperties(Za.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.Ur(this.hostElement).querySelector("#button")}}});
Za.prototype.onTap=Za.prototype.onTap;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Za.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],Za.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.ewi.YtButtonBehavior),_.P("design:type",Object)],Za.prototype,"ytButtonBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Za.prototype,"data",void 0);
_.d([_.nU("yt-icon-button#button"),_.P("design:type",Object)],Za.prototype,"iconButton",void 0);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Za.prototype,"onTap",null);_.d([_.e({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Za);
_.k(Za,"ytd-topbar-menu-button-renderer",function(){if(RuT!==void 0)return RuT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return RuT=S},{mode:1});var yvV;var GY=function(){return _.W.apply(this,arguments)||this};
_.C(GY,_.W);GY.prototype.getSelected=function(){return this.reasons.selected};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],GY.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],GY.prototype,"data",void 0);_.d([_.nU("#reasons"),_.P("design:type",Object)],GY.prototype,"reasons",void 0);_.d([_.e({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],GY);
_.k(GY,"ytd-ad-feedback-content",function(){if(yvV!==void 0)return yvV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return yvV=S},{mode:1});var oOE;var Wv=function(){return _.W.apply(this,arguments)||this};
_.C(Wv,_.W);_.J=Wv.prototype;_.J.onPopupOpened=function(){_.XF(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.J.computeConfirmButton=function(S){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:S.confirmLabel}};
_.J.computeCancelButton=function(S){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:S.cancelLabel}};
_.J.onConfirmTap=function(){var S=this.content.getSelected();S!==void 0&&(S=this.data.reasons[S].endpoint)&&(_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}}),_.XF(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.J.sendFeedbackSubmitToastAction=function(){var S;(S=this.data)!=null&&S.completionMessage&&_.XF(this.hostElement,"yt-open-popup-action",[_.y5(this.data.completionMessage),this])};
_.J.onCancelTap=function(){_.XF(this.hostElement,"yt-close-popup-action")};
Wv.prototype.onPopupOpened=Wv.prototype.onPopupOpened;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Wv.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Wv.prototype,"data",void 0);_.d([_.nU("#content"),_.P("design:type",Object)],Wv.prototype,"content",void 0);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Wv.prototype,"onPopupOpened",null);
_.d([_.e({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],Wv);
_.k(Wv,"ytd-ad-feedback-renderer",function(){if(oOE!==void 0)return oOE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return oOE=S},{mode:1});var m3Z;var gG=function(){return _.W.apply(this,arguments)||this};
_.C(gG,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gG.prototype,"data",void 0);_.d([_.e({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],gG);
_.k(gG,"ytd-ad-info-dialog-content",function(){if(m3Z!==void 0)return m3Z;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return m3Z=S},{mode:1});var S6N;var ec=function(){return _.W.apply(this,arguments)||this};
_.C(ec,_.W);ec.prototype.computeConfirmButton=function(S){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:S.confirmLabel}};
ec.prototype.onConfirmTap=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
ec.prototype.computeShouldShowTitle=function(){var S;return!((S=this.data)==null||!S.title)};
ec.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
ec.prototype.onPopupClosed=ec.prototype.onPopupClosed;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ec.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ec.prototype,"data",void 0);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ec.prototype,"onPopupClosed",null);_.d([_.e({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],ec);
_.k(ec,"ytd-ad-info-dialog-renderer",function(){if(S6N!==void 0)return S6N;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return S6N=S},{mode:1});var cdE;var kf=function(){var S=_.W.apply(this,arguments)||this;S.actionButtonClass="action-button";S.dismissButtonId="dismiss-button";S.dialogDismiss=!0;return S};
_.C(kf,_.W);_.J=kf.prototype;_.J.computeInPlayer=function(S){return(S==null?void 0:S.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.J.computedLogo=function(){var S,c;return this.isDarkTheme()?(S=this.data)==null?void 0:S.logoDark:(c=this.data)==null?void 0:c.logo};
_.J.computedHeaderImage=function(){var S,c;return this.isDarkTheme()?(S=this.data)==null?void 0:S.headerImageDark:(c=this.data)==null?void 0:c.headerImage};
_.J.computeLogoIconId=function(){var S,c,Q,f=(S=this.computedLogo())==null?void 0:(c=S.sources)==null?void 0:(Q=c[0])==null?void 0:Q.height;return f&&f%31===0?"logo-icon-with-padding":"logo-icon"};
_.J.computeLogoIconHeight=function(){var S,c,Q,f=(S=this.computedLogo())==null?void 0:(c=S.sources)==null?void 0:(Q=c[0])==null?void 0:Q.height;return f&&f%31===0?"31":"24"};
_.J.onPopupClosed=function(){_.fl().resolve(_.UQ).dispose()};
_.J.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.J.onShow=function(){this.inPlayer&&_.BV(6)};
_.J.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var S=0;S<this.data.impressionEndpoints.length;S++){var c=_.Y(this.data.impressionEndpoints[S],_.Zc);c&&this.ytComponentBehavior.resolveCommand(c)}};
_.J.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.XF(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.Rh.Object.defineProperties(kf.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var S,c;return!((S=this.data)==null||!S.headerImageDark)&&!((c=this.data)==null||!c.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.secondaryButton)}}});
kf.prototype.onPopupClosed=kf.prototype.onPopupClosed;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],kf.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],kf.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.Ex.YtVisibilityBehavior),_.P("design:type",Object)],kf.prototype,"ytVisibilityBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],kf.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],kf.prototype,"actionButtonClass",void 0);_.d([_.Z(),_.P("design:type",Object)],kf.prototype,"dismissButtonId",void 0);_.d([_.Z(),_.P("design:type",Object)],kf.prototype,"dialogDismiss",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],kf.prototype,"hasHeaderImage",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],kf.prototype,"hasPremiumButton",null);
_.d([_.Z({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.P("design:type",Boolean)],kf.prototype,"inPlayer",void 0);_.d([_.nU("#dismiss-button"),_.P("design:type",HTMLElement)],kf.prototype,"dismissButton",void 0);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],kf.prototype,"onPopupClosed",null);_.d([_.e({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],kf);
_.k(kf,"ytd-enforcement-message-view-model",function(){if(cdE!==void 0)return cdE;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return cdE=S},{mode:1});var Q51;var fjE;var rG=function(){var S=_.W.apply(this,arguments)||this;S.TEST_ONLY={immediateValidation:function(){S.immediateValidation()},
onValidationResponse:function(c){S.onValidationResponse(c)},
onGenerateHandleFromNameResponse:function(c){S.onGenerateHandleFromNameResponse(c)}};
return S};
_.C(rG,_.W);_.J=rG.prototype;_.J.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.J.validate=function(){this.immediateValidation()};
_.J.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.J.setHandleInputValue=function(S){this.handleDir=this.getHandleDir(S);this.handleInput.value=S;this.validationState={status:"PENDING"};this.immediateValidation()};
_.J.getHandleDir=function(S){var c=S===""&&!1;return(c=_.Dxe.test.call(_.Dxe,S))?"rtl":"ltr"};
_.J.onDataChanged=function(){var S,c;this.handleDir=this.getHandleDir((c=(S=this.data)==null?void 0:S.handle)!=null?c:"");var Q;this.validationState=((Q=this.data)==null?0:Q.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var f;((f=this.data)==null?0:f.validateOnInit)&&this.immediateValidation()};
_.J.stopPropagation=function(S){S.stopPropagation()};
_.J.onInput=function(){var S;this.handleDir=this.getHandleDir((S=this.handleInput.value)!=null?S:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.J.onFocusout=function(S){this.handleInput.contains(S.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.J.delayedValidation=function(){var S,c;this.debouncedValidation((c=(S=this.data)==null?void 0:S.validationDelayMs)!=null?c:1E3)};
_.J.immediateValidation=function(){this.debouncedValidation(0)};
_.J.debouncedValidation=function(S){var c=this;_.e$(this,"debouncedValidation",function(){var Q,f=c.staticValidation((Q=c.handleInput.value)!=null?Q:"");if(f!==void 0)c.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:f};else{var U;if((U=c.data)!=null&&U.validateChannelHandleCommand){c.validationState={status:"LOADING"};var a;c.ytComponentBehavior.resolveCommand(c.data.validateChannelHandleCommand,{form:{handle:(a=c.handleInput.value)!=null?a:""},commandController:{onSuccess:function(X,
z){c.onValidationResponse(z)},
onServerError:function(X,z){c.onValidationServerError(z)}}})}else c.handleUnexpectedValidationError(new _.Yr("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",c.data))}},S)};
_.J.staticValidation=function(S){var c;if(((c=this.data)==null?void 0:c.channelHandleStaticValidationParams)!==void 0){c=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(S)&&c.validValueRegexpErrorMessage!==void 0)return c.validValueRegexpErrorMessage;if(c.minLength!==void 0&&S.length<c.minLength&&c.minLengthErrorMessage!==void 0)return c.minLengthErrorMessage;if(c.maxLength!==void 0&&S.length>c.maxLength&&c.maxLengthErrorMessage!==void 0)return c.maxLengthErrorMessage}};
_.J.onValidationResponse=function(S){var c=_.Y(S.result,oNG);c===void 0?this.handleUnexpectedValidationError(new _.Yr("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",S)):this.handleValidationResultRenderer(c)};
_.J.onValidationServerError=function(S){this.handleUnexpectedValidationError(new _.Yr("ValidateChannelHandle request failed.",S))};
_.J.handleValidationResultRenderer=function(S){if(S.handle===void 0)this.handleUnexpectedValidationError(new _.Yr("ChannelHandleValidationResultRenderer does not contain handle.",S));else if(S.handle===this.handleInput.value)switch(S.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:S.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:S.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.Yr("Unrecognized ChannelHandleValidationResult",S));break;default:_.OZ(S.result)}};
_.J.handleUnexpectedValidationError=function(S){var c;this.validationState={status:"UNKNOWN",handle:(c=this.handleInput.value)!=null?c:""};_.i5(S)};
_.J.stopEventPropagation=function(S){S.stopPropagation()};
_.J.updateHandleOnChannelNameInputChange=function(S){if(!this.wasEdited){var c,Q;this.debouncedGenerateHandleFromName(S,(Q=(c=this.data)==null?void 0:c.validationDelayMs)!=null?Q:1E3)}};
_.J.debouncedGenerateHandleFromName=function(S,c){var Q=this;_.e$(this,"debouncedGenerateHandleFromName",function(){var f;(f=Q.data)!=null&&f.validateChannelHandleCommand?Q.ytComponentBehavior.resolveCommand(Q.data.validateChannelHandleCommand,{form:{name:S},commandController:{onSuccess:function(U,a){Q.onGenerateHandleFromNameResponse(a)},
onServerError:function(U,a){_.i5(new _.Yr("Error calling GenerateHandleFromName",a))}}}):_.i5(new _.Yr("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",Q.data))},c)};
_.J.onGenerateHandleFromNameResponse=function(S){this.wasEdited||((S=_.Y(S.result,mYZ))?this.setHandleInputValue(S.handle):_.i5(new _.Yr("Invalid results when generate handle from name")))};
_.Rh.Object.defineProperties(rG.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var S;if(S=this.validationState)S=this.validationState,S=S.status==="OK"||S.status==="UNKNOWN";if(S)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var S;if(((S=this.validationState)==null?void 0:S.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 S,c=(S=this.channelHandleEntity)==null?void 0:S.handleEdit;this.handleDir=this.getHandleDir(c!=null?c:"");return c}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var S,c;if(((S=this.data)==null?void 0:(c=S.channelHandleStaticValidationParams)==null?void 0:c.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
rG.prototype.stopEventPropagation=rG.prototype.stopEventPropagation;rG.prototype.onDataChanged=rG.prototype.onDataChanged;rG.prototype.applyHandleEdit=rG.prototype.applyHandleEdit;rG.prototype.onValueChanged=rG.prototype.onValueChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],rG.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],rG.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rG.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],rG.prototype,"wasEdited",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],rG.prototype,"handleDir",void 0);_.d([_.nU("#handle-input"),_.P("design:type",Object)],rG.prototype,"handleInput",void 0);_.d([_.Z(),_.M("validationState"),_.P("design:type",Object),_.P("design:paramtypes",[])],rG.prototype,"value",null);
_.d([_.B0("value"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rG.prototype,"onValueChanged",null);_.d([_.M("validationState"),_.P("design:type",Object),_.P("design:paramtypes",[])],rG.prototype,"errorIndicator",null);_.d([_.Z({reflectToAttribute:!0}),_.M("errorIndicator"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],rG.prototype,"borderErrorIndicator",null);
_.d([_.Z({selectorArgs:["data.channelHandleEntityKey"],selector:function(S,c){return _.FT(S.entities,"channelHandle",c)}}),
_.P("design:type",Object)],rG.prototype,"channelHandleEntity",void 0);_.d([_.M("channelHandleEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],rG.prototype,"handleEdit",null);_.d([_.B0("handleEdit"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rG.prototype,"applyHandleEdit",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rG.prototype,"onDataChanged",null);
_.d([_.M("data.channelHandleStaticValidationParams.validValueRegexp"),_.P("design:type",Object),_.P("design:paramtypes",[])],rG.prototype,"validValueRegexp",null);_.d([_.FV("yt-service-request-sent"),_.FV("yt-service-request-completed"),_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],rG.prototype,"stopEventPropagation",null);_.d([_.e({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],rG);
_.k(rG,"ytd-channel-handle-input-renderer",function(){if(fjE!==void 0)return fjE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return fjE=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var dG=function(){var S=_.W.apply(this,arguments)||this;S.data=null;S.errorMessage=null;S.isLoading=!0;S.hideContainer=!1;S.enableNewChannelCreationOnIdForAll=_.u("enable_new_channel_creation_for_id4all");S.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"};S.testOnly={setErrorMessage:function(c){S.resetErrorState();
S.setErrorState(c)}};
return S};
_.C(dG,_.W);_.J=dG.prototype;_.J.created=function(){this.logScreenVe()};
_.J.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")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var S;((S=this.zeroStepErrorMessageEntity)==null?0:S.value)&&this.set("errorMessage",_.LK(this.zeroStepErrorMessageEntity.value))};
_.J.onCreateTap=function(){var S=this;if(this.data&&this.data.channelCreationEndpoint){var c,Q;if(!((c=this.data.createChannelButton)==null?0:(Q=c.buttonRenderer)==null?0:Q.isDisabled)){var f;if((f=this.nameInput)!=null&&f.value){this.setLoadingState();var U,a;c=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(U=this.handleInput)==null?void 0:U.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((a=this.handleInput)==null?void 0:a.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:c,commandController:{onSuccess:function(X,z){S.onChannelCreationEndpointSuccess(z);S.obakeImageSource&&_.Te("channelCreatedWithObakeImage",{imageSourceType:S.obakeImageSource})},
onServerError:function(){S.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.J.endpointRequiresServiceRequestAction=function(S){return!!_.Y(S,_.M7)||!!_.Y(S,yk1)};
_.J.isNavigateAction=function(S){var c;return!!_.Y(S,_.dg)||!!_.Y((c=_.Y(S,Q70))==null?void 0:c.command,_.dg)};
_.J.isPlaylistAction=function(S){return!!_.Y(S,_.MB)||!!_.Y(S,_.eT)};
_.J.onChannelCreationEndpointSuccess=function(S){if(S.createChannelError){var c;this.setErrorState((c=S.createChannelError)==null?void 0:c.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.u("enable_secondary_channel_creation_form")&&S.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(S.navigationEndpoint);if(S.actions){c=_.A(S.actions);for(var Q=c.next();!Q.done;Q=c.next())if(Q=Q.value,this.endpointRequiresServiceRequestAction(Q)&&this.ytComponentBehavior.resolveCommand(Q),
this.isNavigateAction(Q)){var f=void 0;Q=_.Y((f=_.Y(Q,Q70))==null?void 0:f.command,_.dg);f=void 0;this.isPlaylistAction((f=Q)==null?void 0:f.endpoint)&&(_.XF(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),f=void 0,this.ytComponentBehavior.resolveCommand((f=Q)==null?void 0:f.endpoint))}}S.actions&&S.actions.some(function(U){var a;return _.Y(U,_.dg)||_.Y((a=_.Y(U,Q70))==null?void 0:a.command,_.dg)})||_.XF(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.J.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.J.onCancelTap=function(){var S,c,Q;if(!((S=this.data)==null?0:(c=S.cancelButton)==null?0:(Q=c.buttonRenderer)==null?0:Q.isDisabled)){var f,U,a;S=(f=this.data)==null?void 0:(U=f.cancelButton)==null?void 0:(a=U.buttonRenderer)==null?void 0:a.command;if(!S||!_.Y(S,_.K_Y)){var X;this.nameInput&&((X=this.data)==null?0:X.name)&&(this.nameInput.value=this.data.name);var z;this.handleInput&&((z=this.data)==null?0:z.channelHandleInput)&&(this.handleInput.data=_.Y(this.data.channelHandleInput,S$E));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.J.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.J.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.J.onClearProfilePhotoTap=function(){var S,c,Q;((S=this.data)==null?0:(c=S.clearProfilePhotoButton)==null?0:(Q=c.buttonRenderer)==null?0:Q.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.J.onEditAvatarTap=function(){var S,c,Q;((S=this.data)==null?0:(c=S.editAvatarButton)==null?0:(Q=c.buttonRenderer)==null?0:Q.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.J.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)};
_.J.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var S;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((S=this.data)==null?0:S.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.J.setErrorState=function(S){this.resetErrorState();if(S)this.set("errorMessage",S);else{var c;if((c=this.zeroStepErrorMessageEntity)==null?0:c.value)this.set("errorMessage",_.LK(this.zeroStepErrorMessageEntity.value));else{var Q;((Q=this.data)==null?0:Q.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.J.fetchImageBlobWithAlr=function(S,c){c=c===void 0?5:c;var Q=this,f,U,a,X,z;return _.O(function(x){switch(x.nextAddress){case 1:return _.F(x,fetch(S,{method:"GET",mode:"cors"}),2);case 2:f=x.yieldResult;if(f.ok){x.jumpTo(3);break}if(c===0)throw Error();U=Q.addJitter(Math.pow(2,5-c));return _.F(x,new Promise(function(I){setTimeout(I,U*1E3)}),4);
case 4:return x.return(Q.fetchImageBlobWithAlr(S,c-1));case 3:if(!f.headers.get("content-type").split(";").some(function(I){return I.trim()==="text/plain"})){x.jumpTo(5);
break}a=Q;X=a.fetchImageBlobWithAlr;return _.F(x,f.text(),6);case 6:return x.return(X.call(a,x.yieldResult,c-1));case 5:return _.F(x,f.blob(),7);case 7:return z=x.yieldResult,x.return(z)}})};
_.J.addJitter=function(S){var c=S*.3*Math.random();Math.random()>.5&&(c*=-1);return S+c};
_.J.openProfilePicturePicker=function(){var S=this,c,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1){c=S.data.scottyUploadUrl;if(!c)return X.return();Q=document.documentElement.hasAttribute("dark");f=document.body.style.colorScheme;Q&&(document.body.style.colorScheme="dark");U=UJG(JP2(fxE(RpN(Q?"dark":"light")),function(z){var x,I,n,b,N;return _.O(function(l){if(l.nextAddress==1)return x=_.dO(jr0(new Y7(z.photoUrl,!1)).build(),"alr","yes"),S.obakeImageSource=S.pictureChangeSourceToObakeImageSourceType(z.photoSource),
_.X1(l,2),S.setLoadingState(),_.F(l,S.fetchImageBlobWithAlr(x),4);if(l.nextAddress!=2)return I=l.yieldResult,n=new FileReader,n.addEventListener("load",function(){var H,q,w,g,r,E;return _.O(function(v){if(v.nextAddress==1){if(I.size>15728640)return S.setErrorState((H=S.data)==null?void 0:H.imageSizeErrorMessage),_.i5(Error("ll")),v.return();if(!n.result)return S.setErrorState((q=S.data)==null?void 0:q.genericImageLoadErrorMessage),_.i5(Error("ml")),v.return();w=n.result;_.X1(v,2);return _.F(v,dDO(I,
c),4)}if(v.nextAddress!=2)return g=v.yieldResult,S.handleImageUpdatedAction(w,g),S.resetErrorState(),_.Pi(v,0);r=_.Bs(v);S.setErrorState((E=S.data)==null?void 0:E.uploadErrorMessage);if(r instanceof Error)_.sH(r);else{var t=new _.Yr(JSON.stringify(r));_.sH(t)}_.IN(v)})}),n.readAsDataURL(I),_.Pi(l,0);
b=_.Bs(l);S.setErrorState((N=S.data)==null?void 0:N.genericImageLoadErrorMessage);b instanceof Error?_.sH(b):_.MP(new _.Yr(JSON.stringify(b)));_.IN(l)})}),function(){S.hideContainer=!1;
document.body.style.colorScheme=f});
_.X1(X,2);return _.F(X,U.openPicker(),4)}if(X.nextAddress!=2)return _.Pi(X,0);_.Bs(X);S.setErrorState((a=S.data)==null?void 0:a.selectImageErrorMessage);_.IN(X)})};
_.J.pictureChangeSourceToObakeImageSourceType=function(S){switch(S){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.J.logScreenVe=function(){_.X2(_.Kv(),124448)};
_.J.graftServerVe=function(){var S=_.T$(),c,Q,f=(c=this.data)==null?void 0:(Q=c.loggingDirectives)==null?void 0:Q.trackingParams;f&&S&&(this.channelCreationFormVe=_.Kv().graftServerVe(f,S),S={visualElement:this.channelCreationFormVe},_.b7().reportShown(S))};
_.J.isNameChanged=function(S){var c;return((c=this.data)==null?void 0:c.name)!==S};
_.J.isHandleChanged=function(S){var c,Q=_.Y((c=this.data)==null?void 0:c.channelHandleInput,S$E);return Q&&S?Q.handle!==S:!1};
_.J.handleImageUpdatedAction=function(S,c){this.hideContainer=!1;this.previewDataUrl=S;this.encryptedBlobId=c};
_.J.handleImageSelectionErrorAction=function(S){this.hideContainer=!1;this.setErrorState(S)};
_.J.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.J.showContainer=function(){this.hideContainer=!1};
_.J.maybeWipeZeroStepErrorMessage=function(){var S,c=(S=this.data)==null?void 0:S.zeroStepErrorMessageEntityKey,Q;c&&((Q=this.zeroStepErrorMessageEntity)==null?0:Q.value)&&this.ytdReduxBehavior.dispatch(_.Ns("stringEntity",c,{key:c,value:""}))};
_.Rh.Object.defineProperties(dG.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 S;return((S=this.photoThumbnail)==null?0:S.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 S;return!((S=this.data)==null||!S.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.descriptionInfo}}});
dG.prototype.dataChanged=dG.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],dG.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],dG.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],dG.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],dG.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],dG.prototype,"errorMessage",void 0);
_.d([_.Z(),_.P("design:type",Object)],dG.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",String)],dG.prototype,"previewDataUrl",void 0);_.d([_.Z(),_.P("design:type",Number)],dG.prototype,"obakeImageSource",void 0);_.d([_.Z(),_.P("design:type",Object)],dG.prototype,"hideContainer",void 0);_.d([_.nU("#title-input"),_.P("design:type",Object)],dG.prototype,"nameInput",void 0);_.d([_.nU("#handle-input"),_.P("design:type",Object)],dG.prototype,"handleInput",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],dG.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.d([_.Z({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.Qyx}),_.P("design:type",Object)],dG.prototype,"zeroStepErrorMessageEntity",void 0);_.d([_.M("data","data.isDefaultProfilePhoto","previewDataUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],dG.prototype,"photoThumbnail",null);
_.d([_.M("data","data.isDefaultProfilePhoto","photoThumbnail"),_.P("design:type",Object),_.P("design:paramtypes",[])],dG.prototype,"userSetPhotoThumbnailUrl",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],dG.prototype,"hideProfilePhotoButtonLayer",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],dG.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.d([_.$n("data","zeroStepErrorMessageEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dG.prototype,"dataChanged",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.descriptionInfo","zeroStepErrorMessageEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],dG.prototype,"description",null);_.d([_.e({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],dG);
_.k(dG,"ytd-channel-creation-dialog-renderer",function(){if(Q51!==void 0)return Q51;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Q51=S},{mode:1});var U08;var vv=function(){var S=_.W.apply(this,arguments)||this;S.isLoading=!1;S.isDisabled=!1;return S};
_.C(vv,_.W);vv.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
vv.prototype.updateDisabled=function(){var S;this.isDisabled=this.isLoading||((S=this.handleInput)==null?void 0:S.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
vv.prototype.onSaveClick=function(){var S=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var c;((c=this.data)==null?void 0:c.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 Q;if((Q=S.data)==null?0:Q.nextEndpoint){var f;S.ytComponentBehavior.resolveCommand((f=S.data)==null?void 0:f.nextEndpoint)}else S.isLoading=
!1,S.closeDialog()},
onServerError:function(){S.isLoading=!1;S.handleInput.validate();var Q;S.errorMessage=(Q=S.data)==null?void 0:Q.errorMessage}}}))}};
vv.prototype.closeDialog=function(){_.XF(this.hostElement,"yt-close-popup-action",[this.is])};
vv.prototype.updateDisabled=vv.prototype.updateDisabled;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],vv.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vv.prototype,"data",void 0);_.d([_.nU("#handle-input"),_.P("design:type",Object)],vv.prototype,"handleInput",void 0);_.d([_.B0("isLoading"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vv.prototype,"updateDisabled",null);
_.d([_.e({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],vv);
_.k(vv,"ytd-channel-handle-edit-dialog-renderer",function(){if(U08!==void 0)return U08;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return U08=S},{mode:1});var JdO;var Pv=function(){return _.W.apply(this,arguments)||this};
_.C(Pv,_.W);Pv.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Pv.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Pv.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Pv.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],Pv);
_.k(Pv,"ytd-channel-switcher-footer-renderer",function(){if(JdO!==void 0)return JdO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return JdO=S},{mode:1});var aj2;var AdN;var Lu=function(){return _.W.apply(this,arguments)||this};
_.C(Lu,_.W);Lu.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
Lu.prototype.onIronChange=Lu.prototype.onIronChange;_.d([_.Z(),_.P("design:type",Object)],Lu.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!1}),_.P("design:type",Function)],Lu.prototype,"onDontAskAgainChanged",void 0);_.d([_.nU("#checkbox"),_.P("design:type",Object)],Lu.prototype,"checkbox",void 0);_.d([_.FV("iron-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Lu.prototype,"onIronChange",null);
_.d([_.e({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],Lu);
_.k(Lu,"ytd-identity-prompt-footer-renderer",function(){if(AdN!==void 0)return AdN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return AdN=S},{mode:1});var EG=function(){var S=_.W.apply(this,arguments)||this;S.dontAskAgain=!1;S.showPopup=!1;S.boundDontAskAgainChanged=function(c){S.dontAskAgainChanged(c)};
S.boundOnAccountItemTap=function(c){S.onAccountItemTap(c)};
return S};
_.C(EG,_.W);_.J=EG.prototype;
_.J.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]]"}}}}}};
_.J.ready=function(){var S=this;_.Ur(this.hostElement).querySelector("#container").addEventListener("scroll",function(){S.ytRendererBehavior.markDirty()})};
_.J.dontAskAgainChanged=function(S){this.dontAskAgain=S};
_.J.onAccountItemTap=function(S){if(S){var c={};this.dontAskAgain&&(c={dont_ask_again:this.dontAskAgain});_.dh(S,c)}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.J.redirectOnlyAccount=function(S){S.sections&&S.sections.length>0&&(S=_.Y(S.sections[0],_.uqi),(S==null?0:S.contents)&&(S==null?void 0:S.contents.length)<=1?(S=_.Ep(window.location.href),(S==null?0:S.next)&&_.lmx(S.next)?_.dh(S.next):_.dh("/")):this.showPopup=!0)};
EG.prototype.dataChanged=EG.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],EG.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],EG.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],EG.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!1}),_.P("design:type",Object)],EG.prototype,"dontAskAgain",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],EG.prototype,"showPopup",void 0);_.d([_.Z({reflectToAttribute:!1}),_.P("design:type",Object)],EG.prototype,"boundDontAskAgainChanged",void 0);_.d([_.Z({reflectToAttribute:!1}),_.P("design:type",Object)],EG.prototype,"boundOnAccountItemTap",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],EG.prototype,"dataChanged",null);
_.d([_.e({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],EG);
_.k(EG,"ytd-channel-switcher-renderer",function(){if(aj2!==void 0)return aj2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return aj2=S},{mode:1});var Xup;var ts=function(){return _.W.apply(this,arguments)||this};
_.C(ts,_.W);_.Rh.Object.defineProperties(ts.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.d([_.Z(),_.P("design:type",Object)],ts.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],ts.prototype,"steps",null);_.d([_.e({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],ts);
_.k(ts,"ytd-channel-transfer-stepper-renderer",function(){if(Xup!==void 0)return Xup;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Xup=S},{mode:1});var OE1;var Vy=function(){var S=_.W.apply(this,arguments)||this;S.data=null;S.isError=!1;S.isLoading=!1;return S};
_.C(Vy,_.W);_.J=Vy.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.J.computeProfileName=function(S){return S?S.givenNameValue+" "+S.familyNameValue:""};
_.J.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)};
_.J.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)};
Vy.prototype.onYtServiceRequestError=Vy.prototype.onYtServiceRequestError;Vy.prototype.onYtServiceRequestSent=Vy.prototype.onYtServiceRequestSent;Vy.prototype.dataChanged=Vy.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Vy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Vy.prototype,"data",void 0);
_.d([_.Z({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.P("design:type",String)],Vy.prototype,"profileName",void 0);_.d([_.Z(),_.P("design:type",Object)],Vy.prototype,"isError",void 0);_.d([_.Z(),_.P("design:type",Object)],Vy.prototype,"isLoading",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Vy.prototype,"dataChanged",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],Vy.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],Vy.prototype,"onYtServiceRequestError",null);_.d([_.e({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],Vy);
_.k(Vy,"ytd-channel-warm-welcome-cont-renderer",function(){if(OE1!==void 0)return OE1;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return OE1=S},{mode:1});var zl1;var Rc=function(){var S=_.W.apply(this,arguments)||this;S.data=null;return S};
_.C(Rc,_.W);Rc.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Rc.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Rc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Rc.prototype,"data",void 0);_.d([_.e({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],Rc);
_.k(Rc,"ytd-channel-warm-welcome-renderer",function(){if(zl1!==void 0)return zl1;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return zl1=S},{mode:1});var x0g;var yy=function(){return _.W.apply(this,arguments)||this};
_.C(yy,_.W);_.Rh.Object.defineProperties(yy.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.authorThumbnail)||{}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yy.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],yy.prototype,"thumbnailDetails",null);_.d([_.e({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],yy);
_.k(yy,"ytd-comment-preview-renderer",function(){if(x0g!==void 0)return x0g;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return x0g=S},{mode:1});var Fr2;var oc=function(){return _.W.apply(this,arguments)||this};
_.C(oc,_.W);oc.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.Rh.Object.defineProperties(oc.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.submitButton}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],oc.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],oc.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],oc.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],oc.prototype,"submitButton",null);_.d([_.e({is:"ytd-notice-renderer",disableElementRegistration:!0})],oc);
_.k(oc,"ytd-notice-renderer",function(){if(Fr2!==void 0)return Fr2;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Fr2=S},{mode:1});var BlB;var mB=function(){return _.W.apply(this,arguments)||this};
_.C(mB,_.W);mB.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],mB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mB.prototype,"data",void 0);_.d([_.e({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],mB);
_.k(mB,"ytd-preview-comment-dialog-content",function(){if(BlB!==void 0)return BlB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return BlB=S},{mode:1});var IjU;var Sb=function(){return _.W.apply(this,arguments)||this};
_.C(Sb,_.W);Sb.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
Sb.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Sb.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Sb.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Sb.prototype,"data",void 0);_.d([_.e({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],Sb);
_.k(Sb,"ytd-preview-comment-dialog-renderer",function(){if(IjU!==void 0)return IjU;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return IjU=S},{mode:1});var nFV;var bEB=_.u("web_button_rework")&&_.gC("BUTTON_REWORK")||_.u("web_button_rework_with_live"),cB=function(){var S=_.W.apply(this,arguments)||this;S.closeLabel=_.K8("CLOSE");S.selectedAmountIndex=1;S.privacyCheckboxValue=!1;S.useAmsterdamStyle=bEB;S.amountPlaceholderIndex=-1;return S};
_.C(cB,_.W);_.J=cB.prototype;_.J.onAmountClick=function(S){this.selectedAmountIndex=_.Ur(this.hostElement).querySelector("#amounts").indexForElement(S.currentTarget)};
_.J.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.XF(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.J.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.XF(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.XF(this.hostElement,"yt-close-popup-action",[this.is]);var S;(S=_.S9())==null||S.getPlayerPromise().then(function(c){c.pauseVideo()})}};
_.J.donationCallback=function(S){S.success?(this.hostElement.hasAttribute("live-chat")&&S.response&&S.response.data&&S.response.data.actions&&_.XF(this.hostElement,"yt-live-chat-open-popup",[S.response.data.actions[0]]),_.XF(this.hostElement,"yt-close-popup-action",[this.is]),_.XF(this.hostElement,"yt-live-chat-close-buy-flow")):S.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(S.errorMessageRenderer)};
_.J.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.Ur(this.hostElement).querySelector("#custom-amount-input").focus()};
_.J.updateConfirmationDialogTextWithAmount=function(S){var c=this.getConfirmDialogRuns();c&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(c),"text"],this.getFormattedAmount(S))};
_.J.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.J.getAmountPlaceholderIndex=function(S){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=S.findIndex(function(c){return c.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.J.getFormattedAmount=function(S){var c;return(new _.eD(4,((c=this.data)==null?void 0:c.currencyCode)||"")).format(S)};
_.J.isAmountValid=function(S){if(S==="")return!1;S=Number(S)*1E6;var c=this.get("minAmountMicros",this.data),Q=this.get("maxAmountMicros",this.data);return c&&S<c||Q&&S>Q?!1:!0};
_.J.setInputError=function(){this.shouldShowValidationError?_.Ur(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.Ur(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.J.setInitialCheckboxValue=function(){var S;this.privacyCheckboxValue=!((S=this.data)==null||!S.privacyCheckboxInitialState)};
_.J.updateCustomAmountInputFromBinding=function(S){this.customAmountInput=S.detail.value};
_.J.updatePrivacyCheckboxValueFromBinding=function(S){this.privacyCheckboxValue=S.detail.value};
_.Rh.Object.defineProperties(cB.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var S=this,c,Q;return((c=this.data)==null?void 0:(Q=c.suggestedAmounts)==null?void 0:Q.map(function(f,U){return{buttonRenderer:{style:S.selectedAmountIndex===U?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:f.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 S;return!((S=this.data)==null||!S.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 S=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(S&&this.amountMicros!==null)return Object.assign({},S,{ypcGetCartEndpoint:Object.assign({},S.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 S=this.get("confirmLargeAmount",this.data);if(S&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),S}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var S=this.get("donateButton.buttonRenderer",this.data);if(S)return Object.assign({},S,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
cB.prototype.setInitialCheckboxValue=cB.prototype.setInitialCheckboxValue;cB.prototype.setInputError=cB.prototype.setInputError;cB.prototype.setFocusOnCustomAmountInput=cB.prototype.setFocusOnCustomAmountInput;_.d([_.p(Yx1),_.P("design:type",Object)],cB.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],cB.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],cB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],cB.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],cB.prototype,"closeLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],cB.prototype,"selectedAmountIndex",void 0);_.d([_.Z(),_.P("design:type",String)],cB.prototype,"customAmountInput",void 0);_.d([_.Z(),_.P("design:type",Object)],cB.prototype,"privacyCheckboxValue",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],cB.prototype,"useAmsterdamStyle",void 0);_.d([_.B0("customAmount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cB.prototype,"setFocusOnCustomAmountInput",null);_.d([_.M("data","selectedAmountIndex"),_.P("design:type",Array),_.P("design:paramtypes",[])],cB.prototype,"suggestedAmountButtons",null);
_.d([_.M("data","selectedAmountIndex"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cB.prototype,"isCustomAmountSelected",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cB.prototype,"showPrivacyCheckbox",null);_.d([_.M("data","selectedAmountIndex","customAmount"),_.P("design:type",Object),_.P("design:paramtypes",[])],cB.prototype,"amountMicros",null);
_.d([_.M("isCustomAmountSelected","customAmountInput"),_.P("design:type",Object),_.P("design:paramtypes",[])],cB.prototype,"customAmount",null);_.d([_.M("customAmount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cB.prototype,"shouldShowValidationError",null);_.d([_.M("customAmount"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],cB.prototype,"isDonateButtonEnabled",null);
_.d([_.M("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.P("design:type",Object),_.P("design:paramtypes",[])],cB.prototype,"donateCommand",null);_.d([_.M("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.P("design:type",Object),_.P("design:paramtypes",[])],cB.prototype,"donateCommandWithConfirmation",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],cB.prototype,"largeDonationThreshold",null);
_.d([_.M("customAmount","donateCommand","amountMicros"),_.P("design:type",Object),_.P("design:paramtypes",[])],cB.prototype,"confirmLargeAmountCommand",null);_.d([_.M("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.P("design:type",Object),_.P("design:paramtypes",[])],cB.prototype,"donateButtonRenderer",null);_.d([_.B0("shouldShowValidationError"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cB.prototype,"setInputError",null);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],cB.prototype,"setInitialCheckboxValue",null);_.d([_.e({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],cB);
_.k(cB,"ytd-donation-amount-picker-renderer",function(){if(nFV!==void 0)return nFV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return nFV=S},{mode:1});var NlE;var QZ=function(){return _.W.apply(this,arguments)||this};
_.C(QZ,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],QZ.prototype,"ytComponentBehavior",void 0);_.d([_.Z({}),_.P("design:type",Object)],QZ.prototype,"data",void 0);_.d([_.e({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],QZ);
_.k(QZ,"ytd-donation-post-transaction-content",function(){if(NlE!==void 0)return NlE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return NlE=S},{mode:1});var KrO;var fB=function(){return _.W.apply(this,arguments)||this};
_.C(fB,_.W);fB.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.d([_.Z({}),_.P("design:type",Object)],fB.prototype,"data",void 0);_.d([_.e({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],fB);
_.k(fB,"ytd-donation-post-transaction-renderer",function(){if(KrO!==void 0)return KrO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return KrO=S},{mode:1});var $0O;var ud8;var UO=function(){return _.W.apply(this,arguments)||this};
_.C(UO,_.W);UO.prototype.computeIsStreamingProvider=function(S){return!!S.isStreamingShelf};
UO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],UO.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],UO.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],UO.prototype,"data",void 0);_.d([_.Z({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],UO.prototype,"isStreamingProvider",void 0);
_.d([_.e({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],UO);
_.k(UO,"ytd-media-provider-renderer",function(){if(ud8!==void 0)return ud8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ud8=S},{mode:1});var j5G;var JR=function(){return _.W.apply(this,arguments)||this};
_.C(JR,_.W);JR.prototype.observeLightsourcePalette=function(){var S,c=(S=this.data)==null?void 0:S.vibrantsourceColorPaletteData;c&&_.s2(this.hostElement,c)};
JR.prototype.observeLightsourcePalette=JR.prototype.observeLightsourcePalette;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],JR.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],JR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],JR.prototype,"data",void 0);
_.d([_.B0("data.vibrantsourceColorPaletteData"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JR.prototype,"observeLightsourcePalette",null);_.d([_.e({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],JR);
_.k(JR,"ytd-streaming-pop-up-dialog",function(){if(j5G!==void 0)return j5G;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return j5G=S},{mode:1});var aV=function(){return _.W.apply(this,arguments)||this};
_.C(aV,_.W);aV.prototype.onPopupOpened_=function(){var S;((S=this.data)==null?0:S.serviceEndpoint)&&_.fl().resolve(_.U8).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
aV.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
aV.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"}}}}};
aV.prototype.onPopupOpened_=aV.prototype.onPopupOpened_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],aV.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],aV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.di),_.P("design:type",Object)],aV.prototype,"ytContinuationHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],aV.prototype,"data",void 0);
_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aV.prototype,"onPopupOpened_",null);_.d([_.e({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],aV);
_.k(aV,"ytd-brandconnect-popup-renderer",function(){if($0O!==void 0)return $0O;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return $0O=S},{mode:1});var ljE;var AR=function(){return _.W.apply(this,arguments)||this};
_.C(AR,_.W);_.J=AR.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){for(var S=0;S<this.getOptionRenderers().length;S++)this.notifyPath("data.options."+S+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+S+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.J.updateSubmitButton=function(S){this.set("data.submitButton.buttonRenderer.isDisabled",!S)};
_.J.computeAlt=function(S){return _.Em(S)};
_.J.onDismissTap=function(){_.XF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.getOptionRenderers=function(S){return(S=S||this.data)&&S.options?S.options.reduce(function(c,Q){Q.checkboxSurveyOptionRenderer&&c.push(Q.checkboxSurveyOptionRenderer);return c},[]):[]};
_.J.onOptionChange=function(S){var c=this,Q=!1;if(S.detail.checked)for(var f=this.getOptionRenderers().find(function(z){return z.value===S.detail.value}),U=this.getOptionRenderers(),a=0;a<U.length;a++){var X=U[a];
this.notifyPath("data.options."+a+".checkboxSurveyOptionRenderer.checked");X.checked&&((f==null?0:f.isExclusiveOption)?!X.isExclusiveOption:X.isExclusiveOption)?this.set("data.options."+a+".checkboxSurveyOptionRenderer.checked",!1):X.checked&&(Q=!0)}else Q=this.getOptionRenderers().some(function(z,x){c.notifyPath("data.options."+x+".checkboxSurveyOptionRenderer.checked");return z.checked});
this.updateSubmitButton(Q)};
_.J.onSubmitTap=function(){var S=this.getOptionRenderers().filter(function(a){return a.checked});
if(S.length!==0){var c=S.map(function(a){return a.responseEndpoint});
S=[];for(var Q=1;Q<c.length;Q++){var f=void 0,U=(f=_.Y(c[Q],_.ie))==null?void 0:f.feedbackToken;U&&S.push(U)}c=[c[0]];S.length&&c.push({extra_feedback_tokens:S});_.xt(this.hostElement,c);_.XF(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);S=this.data&&this.data.submitActions||[];if(_.u("kevlar_command_handler_migration_killswitch"))_.FF(this.hostElement,S,this.hostElement);else for(S=_.A(S),c=S.next();!c.done;c=S.next())this.ytComponentBehavior.resolveCommand(c.value)}};
AR.prototype.onOptionChange=AR.prototype.onOptionChange;AR.prototype.dataChanged=AR.prototype.dataChanged;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],AR.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],AR.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],AR.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.d([_.p(duE),_.P("design:type",Object)],AR.prototype,"ytdHatsSurveyBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],AR.prototype,"data",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AR.prototype,"dataChanged",null);
_.d([_.FV("ytd-checkbox-survey-option-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],AR.prototype,"onOptionChange",null);_.d([_.e({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],AR);
_.k(AR,"ytd-checkbox-survey-renderer",function(){if(ljE!==void 0)return ljE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ljE=S},{mode:1});var Y60;var CF8;var X9=function(){return _.W.apply(this,arguments)||this};
_.C(X9,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],X9.prototype,"ytRendererBehavior",void 0);_.d([_.p(rK1),_.P("design:type",Object)],X9.prototype,"ytdDismissalReasonBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],X9.prototype,"data",void 0);_.d([_.e({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],X9);
_.k(X9,"ytd-dismissal-reason-text-renderer",function(){if(CF8!==void 0)return CF8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return CF8=S},{mode:1});var HEp;var OO=function(){return _.W.apply(this,arguments)||this};
_.C(OO,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],OO.prototype,"ytRendererBehavior",void 0);_.d([_.p(rK1),_.P("design:type",Object)],OO.prototype,"ytdDismissalReasonBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],OO.prototype,"data",void 0);_.d([_.e({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],OO);
_.k(OO,"ytd-dismissal-reason-video-renderer",function(){if(HEp!==void 0)return HEp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return HEp=S},{mode:1});var zj=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(zj,_.W);_.J=zj.prototype;_.J.created=function(){this.selectedFeedbackTokens=new dI};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.J.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.J.onDismissalReasonSelected=function(S,c){_.Az(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(c);this.hasReasonsSelected=!0};
_.J.onDismissalReasonDeselected=function(S,c){_.Az(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(c);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.J.onCancelTap=function(){_.XF(this.hostElement,"yt-close-popup-action")};
_.J.onSubmitTap=function(){var S=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(S={feedback_tokens:S},_.fl().resolve(_.U8).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},S,{element:this.hostElement})}));_.XF(this.hostElement,"yt-close-popup-action")};
zj.prototype.onDismissalReasonDeselected=zj.prototype.onDismissalReasonDeselected;zj.prototype.onDismissalReasonSelected=zj.prototype.onDismissalReasonSelected;zj.prototype.dataChanged=zj.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],zj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],zj.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],zj.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],zj.prototype,"hasReasonsSelected",void 0);_.d([_.Z(),_.P("design:type",dI)],zj.prototype,"selectedFeedbackTokens",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],zj.prototype,"darkerDarkTheme",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zj.prototype,"dataChanged",null);
_.d([_.FV("yt-dismissal-reason-selected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],zj.prototype,"onDismissalReasonSelected",null);_.d([_.FV("yt-dismissal-reason-deselected"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,String]),_.P("design:returntype")],zj.prototype,"onDismissalReasonDeselected",null);_.d([_.e({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],zj);
_.k(zj,"ytd-dismissal-follow-up-renderer",function(){if(Y60!==void 0)return Y60;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Y60=S},{mode:1});var D01;var x4=function(){return _.W.apply(this,arguments)||this};
_.C(x4,_.W);_.J=x4.prototype;_.J.onCheckedChange=function(){this.multiselect||_.Az(this.hostElement,"yt-feedback-single-select-changed");_.Ur(this.hostElement).querySelector("#freeform").focus();_.Az(this.hostElement,"yt-refit")};
_.J.showTextBox=function(S,c){return S&&c};
_.J.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))};
_.J.updateDataCheckedFromBinding=function(S){this.set("data.checked",S.detail.value)};
_.J.updateDataResultTextFromBinding=function(S){this.set("data.resultText",S.detail.value)};
x4.prototype.dataChanged=x4.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],x4.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],x4.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],x4.prototype,"multiselect",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],x4.prototype,"dataChanged",null);
_.d([_.e({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],x4);
_.k(x4,"ytd-feedback-option-renderer",function(){if(D01!==void 0)return D01;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return D01=S},{mode:1});var pup;var F9=function(){return _.W.apply(this,arguments)||this};
_.C(F9,_.W);F9.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
F9.prototype.onSingleSelectCheckedChanged=function(S){S=_.VI(S);for(var c=0;c<this.data.options.length;c++)if(S.data!==_.Y(this.data.options[c],e6G)){var Q="data.options."+c+".feedbackOptionRenderer.checked";this.notifyPath(Q);this.set(Q,!1)}};
F9.prototype.onSingleSelectCheckedChanged=F9.prototype.onSingleSelectCheckedChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],F9.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],F9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],F9.prototype,"data",void 0);
_.d([_.FV("yt-feedback-single-select-changed"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],F9.prototype,"onSingleSelectCheckedChanged",null);_.d([_.e({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],F9);
_.k(F9,"ytd-feedback-question-renderer",function(){if(pup!==void 0)return pup;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return pup=S},{mode:1});var hlU;var BB=function(){return _.W.apply(this,arguments)||this};
_.C(BB,_.W);BB.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
BB.prototype.getSelectedFeedbackResults=function(){for(var S={},c=0;c<this.data.questions.length;c++)for(var Q=_.Y(this.data.questions[c],g1B),f=0;f<Q.options.length;f++){var U=_.Y(Q.options[f],e6G);U&&U.checked&&(S[U.optionKey]=U.resultText)}return S};
BB.prototype.onKeyUp=function(){var S=this;_.Xi(_.Mq,function(){_.Az(S.hostElement,"yt-refit")});
_.Mq.start()};
BB.prototype.submitSurvey=function(){var S=this.getSelectedFeedbackResults();Object.keys(S).length>0&&this.data.submitFeedbackEndpoint&&(S={survey_results:S,is_feedback_token_unencrypted:!0},_.fl().resolve(_.U8).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},S,{element:this.hostElement})}))};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],BB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],BB.prototype,"data",void 0);_.d([_.e({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],BB);
_.k(BB,"ytd-feedback-survey-renderer",function(){if(hlU!==void 0)return hlU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return hlU=S},{mode:1});var q6E;var TlU;var IV=function(){return _.W.apply(this,arguments)||this};
_.C(IV,_.W);IV.prototype.computeAlt=function(S){return _.Em(S)};
IV.prototype.submitResponse=function(){var S,c;(S=this.data)!=null&&S.feedbackToken&&((c=this.data)==null?void 0:c.nextStageIndex)!==void 0&&(_.Oz(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.Oz(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
IV.prototype.onClick=function(){this.submitResponse()};
IV.prototype.onClick=IV.prototype.onClick;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],IV.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],IV.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],IV.prototype,"vertical",void 0);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],IV.prototype,"onClick",null);
_.d([_.e({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],IV);
_.k(IV,"ytd-single-select-answer-option-renderer",function(){if(TlU!==void 0)return TlU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return TlU=S},{mode:1});var wuE;var nB=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return S};
_.C(nB,_.W);nB.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
nB.prototype.dataChanged=function(){var S,c;this.vertical=((c=(S=this.data)==null?void 0:S.answerOrientation)!=null?c:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
nB.prototype.submitFeedback=function(S){var c;((c=this.data)==null?0:c.responseEndpoint)&&S&&_.xt(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[S]}])};
nB.prototype.dataChanged=nB.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],nB.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],nB.prototype,"eventForwardingBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],nB.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],nB.prototype,"vertical",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],nB.prototype,"darkerDarkTheme",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nB.prototype,"dataChanged",null);_.d([_.e({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],nB);
_.k(nB,"ytd-single-select-question-renderer",function(){if(wuE!==void 0)return wuE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return wuE=S},{mode:1});var bz=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return S};
_.C(bz,_.W);_.J=bz.prototype;_.J.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"}}}};
_.J.dataChanged=function(){this.jumpToStage(0)};
_.J.jumpToStage=function(S){var c,Q;if((c=this.data)==null?0:(Q=c.stages)==null?0:Q[S])this.currentStage=this.data.stages[S],this.refitAfterRender()};
_.J.computeAlt=function(S){return _.Em(S)};
_.J.computeSimpleMessage=function(S){var c;return(c=_.Y(S,d9T))==null?void 0:c.messageText};
_.J.computeHideDismiss=function(S){var c;return(c=_.Y(S,n18))==null?void 0:c.hideParentDismissButton};
_.J.onDismissTap=function(){_.XF(this.hostElement,"yt-close-popup-action");_.Y(this.currentStage,d9T)||this.data.dismissalEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.J.refitAfterRender=function(){var S=this;_.tO(this,function(){_.Az(S.hostElement,"yt-refit")})};
bz.prototype.dataChanged=bz.prototype.dataChanged;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],bz.prototype,"eventForwardingBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],bz.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],bz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],bz.prototype,"ytActionHandlerBehavior",void 0);
_.d([_.p(duE),_.P("design:type",Object)],bz.prototype,"ytdHatsSurveyBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bz.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],bz.prototype,"currentStage",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bz.prototype,"dataChanged",null);_.d([_.e({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],bz);
_.k(bz,"ytd-multi-stage-survey-renderer",function(){if(q6E!==void 0)return q6E;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return q6E=S},{mode:1});var s5N;var Np=function(){return _.W.apply(this,arguments)||this};
_.C(Np,_.W);Np.prototype.computeAlt=function(S){return _.Em(S)};
Np.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.fl().resolve(_.U8).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.XF(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.sN8(!1)))};
Np.prototype.onTap=function(){this.vertical&&this.submitResponse()};
Np.prototype.onTap=Np.prototype.onTap;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Np.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],Np.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Np.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Np.prototype,"vertical",void 0);
_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Np.prototype,"onTap",null);_.d([_.e({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],Np);
_.k(Np,"ytd-single-option-survey-option-renderer",function(){if(s5N!==void 0)return s5N;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return s5N=S},{mode:1});var MXV;var KB=function(){return _.W.apply(this,arguments)||this};
_.C(KB,_.W);_.J=KB.prototype;_.J.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){var S,c;this.vertical=(((S=this.data)==null?void 0:(c=S.surveyOrientation)==null?void 0:c.type)||"HORIZONTAL")==="VERTICAL"};
_.J.computeAlt=function(S){return _.Em(S)};
_.J.onDismissTap=function(){_.XF(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.fl().resolve(_.U8).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.sN8(!1))};
KB.prototype.dataChanged=KB.prototype.dataChanged;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],KB.prototype,"eventForwardingBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],KB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(duE),_.P("design:type",Object)],KB.prototype,"ytdHatsSurveyBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],KB.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],KB.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],KB.prototype,"vertical",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KB.prototype,"dataChanged",null);_.d([_.e({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],KB);
_.k(KB,"ytd-single-option-survey-renderer",function(){if(MXV!==void 0)return MXV;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return MXV=S},{mode:1});var iEg;var $4=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C($4,_.W);$4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
$4.prototype.onDismissTap=function(){_.XF(this.hostElement,"yt-close-popup-action")};
$4.prototype.onNavigate=function(){_.XF(this.hostElement,"yt-close-popup-action")};
$4.prototype.onNavigate=$4.prototype.onNavigate;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$4.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],$4.prototype,"ytEventForwardingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$4.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],$4.prototype,"darkerDarkTheme",void 0);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$4.prototype,"onNavigate",null);_.d([_.e({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],$4);
_.k($4,"ytd-survey-follow-up-renderer",function(){if(iEg!==void 0)return iEg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return iEg=S},{mode:1});var ZEB;var GTV;var WrE;var uz=function(){var S=_.W.apply(this,arguments)||this;S.polymer2="Element"in Polymer;return S};
_.C(uz,_.W);_.J=uz.prototype;_.J.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.J.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.J.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.J.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("minutes-changed",this.minutes))};
_.J.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("seconds-changed",this.seconds))};
_.J.updateMinutesFromBinding=function(S){this.minutes=S.detail.value};
_.J.updateSecondsFromBinding=function(S){this.seconds=S.detail.value};
uz.prototype.secondsChangedForBinding=uz.prototype.secondsChangedForBinding;uz.prototype.minutesChangedForBinding=uz.prototype.minutesChangedForBinding;uz.prototype.secondsChanged=uz.prototype.secondsChanged;_.d([_.Z(),_.P("design:type",String)],uz.prototype,"minutes",void 0);_.d([_.Z(),_.P("design:type",String)],uz.prototype,"seconds",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uz.prototype,"polymer2",void 0);
_.d([_.nU("#seconds"),_.P("design:type",Object)],uz.prototype,"secondsEl",void 0);_.d([_.B0("seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uz.prototype,"secondsChanged",null);_.d([_.B0("minutes"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uz.prototype,"minutesChangedForBinding",null);
_.d([_.B0("seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uz.prototype,"secondsChangedForBinding",null);_.d([_.wM({is:"yt-timestamp-input",disableElementRegistration:!0})],uz);
_.k(uz,"yt-timestamp-input",function(){if(WrE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;GTV===void 0&&(GTV=document.createElement("template"));var f=GTV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);WrE=S}S=WrE;return S},{mode:2});var jb=function(){return _.W.apply(this,arguments)||this};
_.C(jb,_.W);_.J=jb.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$18167_scroller.dialogElement=this.hostElement.parentNode};
_.J.dataChanged=function(){var S=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.cK().getPlayerPromise().then(function(c){c=c.getCurrentTime();S.minutes=Math.floor(c/60).toString();S.seconds=(Math.floor(c)%60).toString()})};
_.J.onTapSubmit=function(S){S.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(S={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(S.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(S.minutes=this.minutes,S.seconds=this.seconds),_.fl().resolve(_.U8).resolveCommand(this.serviceEndpoint,{form:Object.assign({},S,{element:this.hostElement})}))};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.J.onYtServiceRequestCompleted=function(S,c){c=c.actions;if(Array.isArray(c))for(var Q=0,f=c.length;Q<f;Q++)_.Y(c[Q],_.pk)&&(S.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(c[Q]))};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.J.toggleSubmitButton=function(S){this.set("submitButton.isDisabled",!S)};
_.J.handleInput=function(){var S=this.issueType,c=this.affiliation,Q=this.minutes,f=this.seconds;Q=!this.showTimestamp||!!Q&&!!f;this.toggleSubmitButton(!!this.descriptionText&&!!S&&!!c&&Q)};
_.J.computeServiceEndpoint=function(S){return this.get("submitButton.buttonRenderer.serviceEndpoint",S)};
_.J.computeSubmitButton=function(S){(S=this.get("submitButton.buttonRenderer",S))&&(S=Object.assign({},S,{serviceEndpoint:void 0}));return S};
_.J.computeShowTimestamp=function(S){return!!S};
_.J.onValueChangedForIssueType=function(S){this.issueType=S.detail.value};
_.J.onValueChangedForAffiliation=function(S){this.affiliation=S.detail.value};
_.J.updateDescriptionTextFromBinding=function(S){this.descriptionText=S.detail.value};
_.J.updateFullNameTextFromBinding=function(S){this.fullNameText=S.detail.value};
_.J.updateMinutesFromBinding=function(S){this.minutes=S.detail.value};
_.J.updateSecondsFromBinding=function(S){this.seconds=S.detail.value};
jb.prototype.handleInput=jb.prototype.handleInput;jb.prototype.onYtServiceRequestError=jb.prototype.onYtServiceRequestError;jb.prototype.onYtServiceRequestCompleted=jb.prototype.onYtServiceRequestCompleted;jb.prototype.onYtServiceRequestSent=jb.prototype.onYtServiceRequestSent;jb.prototype.dataChanged=jb.prototype.dataChanged;_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],jb.prototype,"ytOpenPopupBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],jb.prototype,"ytRendererBehavior",void 0);_.d([_.nU("#scroller"),_.P("design:type",Object)],jb.prototype,"JSC$18167_scroller",void 0);_.d([_.nU("#description"),_.P("design:type",HTMLInputElement)],jb.prototype,"description",void 0);_.d([_.nU("#full-name"),_.P("design:type",Object)],jb.prototype,"fullName",void 0);_.d([_.Z(),_.P("design:type",Object)],jb.prototype,"data",void 0);
_.d([_.Z({computed:"computeShowTimestamp(data.timestampLabel)"}),_.P("design:type",Boolean)],jb.prototype,"showTimestamp",void 0);_.d([_.Z({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.P("design:type",Object)],jb.prototype,"serviceEndpoint",void 0);_.d([_.Z({computed:"computeSubmitButton(data)"}),_.P("design:type",Object)],jb.prototype,"submitButton",void 0);_.d([_.Z(),_.P("design:type",String)],jb.prototype,"descriptionText",void 0);
_.d([_.Z(),_.P("design:type",Number)],jb.prototype,"issueType",void 0);_.d([_.Z(),_.P("design:type",Number)],jb.prototype,"affiliation",void 0);_.d([_.Z(),_.P("design:type",String)],jb.prototype,"fullNameText",void 0);_.d([_.Z(),_.P("design:type",String)],jb.prototype,"minutes",void 0);_.d([_.Z(),_.P("design:type",String)],jb.prototype,"seconds",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jb.prototype,"dataChanged",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],jb.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],jb.prototype,"onYtServiceRequestCompleted",null);
_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],jb.prototype,"onYtServiceRequestError",null);_.d([_.B0("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],jb.prototype,"handleInput",null);_.d([_.e({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],jb);
_.k(jb,"ytd-legal-report-details-form-renderer",function(){if(ZEB!==void 0)return ZEB;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return ZEB=S},{mode:1});var gFB;var lz=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return S};
_.C(lz,_.W);lz.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
lz.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var S=this.formRenderer.getForm();S&&this.data.submitEndpoint&&(_.fl().resolve(_.U8).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},S,{element:this.hostElement})}),_.XF(this.hostElement,"yt-close-popup-action"))}};
lz.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.XF(this.hostElement,"yt-close-popup-action"))};
lz.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
lz.prototype.onPopupClosed=lz.prototype.onPopupClosed;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],lz.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lz.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],lz.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lz.prototype,"ytRendererBehavior",void 0);
_.d([_.nU("yt-form-renderer"),_.P("design:type",Object)],lz.prototype,"formRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],lz.prototype,"data",void 0);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lz.prototype,"onPopupClosed",null);_.d([_.e({is:"ytd-form-popup-content",disableElementRegistration:!0})],lz);
_.k(lz,"ytd-form-popup-content",function(){if(gFB!==void 0)return gFB;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return gFB=S},{mode:1});var elp;var Y4=function(){return _.W.apply(this,arguments)||this};
_.C(Y4,_.W);Y4.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
Y4.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Y4.prototype.onPopupOpened=function(){_.Az(this.hostElement,"yt-invalidate-popup-tabbables")};
Y4.prototype.onYtServiceRequestCompleted=function(S,c){c.data&&c.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.Az(this.hostElement,"yt-invalidate-popup-tabbables"))};
Y4.prototype.onYtServiceRequestCompleted=Y4.prototype.onYtServiceRequestCompleted;Y4.prototype.onPopupOpened=Y4.prototype.onPopupOpened;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],Y4.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Y4.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Y4.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Y4.prototype,"data",void 0);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Y4.prototype,"onPopupOpened",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],Y4.prototype,"onYtServiceRequestCompleted",null);_.d([_.e({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],Y4);
_.k(Y4,"ytd-form-popup-renderer",function(){if(elp!==void 0)return elp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return elp=S},{mode:1});var kTO;var CB=function(){var S=_.W.apply(this,arguments)||this;S.isLoading=!1;return S};
_.C(CB,_.W);_.J=CB.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");or1(this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.isLoading=!0};
_.J.onYtServiceRequestCompleted=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.J.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.FF(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.J.closePopupHandler=function(){this.fireOnCloseActions()};
_.J.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var S=this.get("data.headerImage.thumbnails");S&&(S=_.U2(S,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+S+")")}};
_.J.onYtNavigate=function(S){(S=_.VI(S))&&S.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
CB.prototype.onYtNavigate=CB.prototype.onYtNavigate;CB.prototype.onHeaderImageChanged=CB.prototype.onHeaderImageChanged;CB.prototype.closePopupHandler=CB.prototype.closePopupHandler;CB.prototype.onYtServiceRequestCompleted=CB.prototype.onYtServiceRequestCompleted;CB.prototype.onYtServiceRequestSent=CB.prototype.onYtServiceRequestSent;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CB.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],CB.prototype,"ytEventForwardingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CB.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],CB.prototype,"isLoading",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLDivElement)],CB.prototype,"header",void 0);_.d([_.nU("#confirm-button"),_.P("design:type",_.YJ)],CB.prototype,"confirmButton",void 0);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CB.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CB.prototype,"onYtServiceRequestCompleted",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],CB.prototype,"closePopupHandler",null);_.d([_.B0("data.headerImage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CB.prototype,"onHeaderImageChanged",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],CB.prototype,"onYtNavigate",null);
_.d([_.e({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],CB);
_.k(CB,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(kTO!==void 0)return kTO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return kTO=S},{mode:1});var rd1;var HB=function(){var S=_.W.apply(this,arguments)||this;S.isLoading=!1;return S};
_.C(HB,_.W);_.J=HB.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);or1(this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.J.onYtServiceRequestError=function(S){_.fD(this.hostElement,S.detail.error.message)};
_.J.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.J.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.XF(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.J.onDataChanged=function(){this.isLoading=!1;var S=this.get("data.headerImage.thumbnails");S&&(S=_.U2(S,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+S+")");S=_.wN();var c=_.T$(),Q=this.get("data.trackingParams");Q&&c&&S&&_.dS(S,c,_.Yz(Q))};
_.Rh.Object.defineProperties(HB.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
HB.prototype.onDataChanged=HB.prototype.onDataChanged;HB.prototype.onDomChange=HB.prototype.onDomChange;HB.prototype.onYtServiceRequestError=HB.prototype.onYtServiceRequestError;HB.prototype.onYtServiceRequestCompleted=HB.prototype.onYtServiceRequestCompleted;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],HB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],HB.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],HB.prototype,"isLoading",void 0);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],HB.prototype,"hasDescription",null);_.d([_.nU("tp-yt-paper-dialog-scrollable"),_.P("design:type",Object)],HB.prototype,"scrollable",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],HB.prototype,"header",void 0);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],HB.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],HB.prototype,"onYtServiceRequestError",null);
_.d([_.FV("dom-change"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],HB.prototype,"onDomChange",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],HB.prototype,"onDataChanged",null);_.d([_.e({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],HB);
_.k(HB,"ytd-gaming-account-link-setting-renderer",function(){if(rd1!==void 0)return rd1;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return rd1=S},{mode:1});var d0O;var vF2;var DK=function(){var S=_.W.apply(this,arguments)||this;S.isHeader=!1;S.getEndpointForm=function(){return VL2(S.data)};
return S};
_.C(DK,_.W);_.J=DK.prototype;_.J.triggerHintActions=function(){var S=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var c=_.Oz(S.hostElement,"yt-get-opened-popups-action");!(c&&c.length===1?c[0]:[]).some(function(Q){Q=Q.openPopupAction.popupType;return Q==="SURVEY"||Q==="MEALBAR"||Q==="HINT"})&&S.data.hintActions&&S.guideOpened&&(_.FF(S.hostElement,S.data.hintActions,S.hostElement),S.data.hintActions=void 0)})};
_.J.getBadgeIconType=function(S){return S&&S.liveBroadcasting?"live":null};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(S){if(this.data.serviceEndpoint){var c;_.u("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.Y(this.data.serviceEndpoint,_.ll))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):tLE(this.data.serviceEndpoint,this);S.preventDefault()}else this.data.navigationEndpoint&&!_.RZ(_.t4(S),this.hostElement,["A".toString()])&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.J.computeActive=function(S,c){if(!S)return!1;var Q=S.navigationEndpoint;S=S.serviceEndpoint;if(!Q&&!S||!c)return!1;if(Q){S=(S=_.nJ(c))&&["subscriptions","filteredsubscriptions"].includes(S);if(_.Y(Q,_.KJ)&&_.Y(c,_.KJ)&&!S){var f=_.Y(Q,_.KJ).browseId;c=_.Y(c,_.KJ).browseId;return f!==void 0&&c!==void 0&&(f===c||f==="VLWL"&&c==="FEwatch_later"||f==="FEwatch_later"&&c==="VLWL")}var U;Q=(U=_.Y(Q.commandMetadata,_.Qw))==null?void 0:U.url;c=(f=_.Y(c.commandMetadata,_.Qw))==null?void 0:f.url;return!(!Q||
!c||Q!==c&&Q!==_.Bi(c))}return this.isActiveShortsTab(S,c)};
_.J.isActiveShortsTab=function(S,c){c=!!_.Y(c,_.ll)||!!_.Y(c,_.iA);return(!!_.Y(S,_.ll)||!!_.Y(S,_.iA))&&c};
_.J.computeIsPrimary=function(S){return!!S};
_.Rh.Object.defineProperties(DK.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 S=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&S)return S}}});
DK.prototype.onTap=DK.prototype.onTap;DK.prototype.onUp=DK.prototype.onUp;DK.prototype.onDown=DK.prototype.onDown;DK.prototype.triggerHintActions=DK.prototype.triggerHintActions;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],DK.prototype,"componentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],DK.prototype,"rendererBehavior",void 0);_.d([_.p(_.Qv.YtTaskEmitterBehavior),_.P("design:type",Object)],DK.prototype,"taskEmitterBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],DK.prototype,"activeEndpoint",void 0);_.d([_.Z(),_.P("design:type",Object)],DK.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],DK.prototype,"guideOpened",void 0);_.d([_.Z(),_.P("design:type",String)],DK.prototype,"type",void 0);_.d([_.nU("yt-interaction"),_.P("design:type",Object)],DK.prototype,"interaction",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],DK.prototype,"isHeader",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data","activeEndpoint"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DK.prototype,"active",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],DK.prototype,"isPrimary",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.count","data.presentationStyle","data.badges.*"),_.P("design:type",String),_.P("design:paramtypes",[])],DK.prototype,"lineEndStyle",null);
_.d([_.M("lineEndStyle"),_.P("design:type",Object),_.P("design:paramtypes",[])],DK.prototype,"ariaLabel",null);_.d([_.B0("data.hintActions","guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DK.prototype,"triggerHintActions",null);_.d([_.FV("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DK.prototype,"onDown",null);
_.d([_.FV("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DK.prototype,"onUp",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],DK.prototype,"onTap",null);_.d([_.e({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],DK);
_.k(DK,"ytd-guide-entry-renderer",function(){if(vF2!==void 0)return vF2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return vF2=S},{mode:1});var pB=function(){var S=_.W.apply(this,arguments)||this;S.userToggled=!1;return S};
_.C(pB,_.W);_.J=pB.prototype;_.J.getItemsPath=function(){return"data.expandableItems"};
_.J.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.J.onExpanderItemTapped=function(S){var c=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.u("kevlar_guide_expandable_items_killswitch")&&_.tO(this,function(){_.RR(c.expandableItems)});
S.preventDefault()};
_.J.onCollapserItemTapped=function(S){var c=this;this._setExpanded(!1);this.userToggled=!0;S.preventDefault();this.expandableItems&&!_.u("kevlar_guide_collapsible_items_killswitch")&&_.tO(this,function(){_.Vk(c.hostElement)})};
_.J.observeActiveEndpoint=function(){for(var S=this.activeEndpoint,c=this.data,Q=this.expandableItems.children,f=0,U=Q.length;f<U;f++)Q[f].activeEndpoint=S;c&&c.autoExpandCommand&&S&&!this.userToggled&&(Q=this.data.autoExpandCommand,c=!(!_.Y(Q,_.KJ)||!_.Y(S,_.KJ)||_.Y(Q,_.KJ).browseId!==_.Y(S,_.KJ).browseId),S=this.get("commandMetadata.webCommandMetadata.url",S),Q=this.get("commandMetadata.webCommandMetadata.url",Q),c=c||!!(S&&Q&&S.includes(Q)),this._setExpanded(c),c&&this.ytLazyListBehavior.fillRemainingListItems())};
pB.prototype.observeActiveEndpoint=pB.prototype.observeActiveEndpoint;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],pB.prototype,"ytLazyListBehavior",void 0);_.d([_.nU("#expandable-items"),_.P("design:type",HTMLElement)],pB.prototype,"expandableItems",void 0);
_.d([_.Z(),_.P("design:type",Object)],pB.prototype,"data",void 0);_.d([_.Z({readOnly:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],pB.prototype,"expanded",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],pB.prototype,"initialCount",void 0);_.d([_.Z(),_.P("design:type",Object)],pB.prototype,"activeEndpoint",void 0);_.d([_.B0("data","activeEndpoint","canShowMore"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pB.prototype,"observeActiveEndpoint",null);
_.d([_.e({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],pB);
_.k(pB,"ytd-guide-collapsible-entry-renderer",function(){if(d0O!==void 0)return d0O;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return d0O=S},{mode:_.A2("kevlar_poly_si_batch_j079")?1:2});var PFE;var LrB;var hR=function(){var S=_.W.apply(this,arguments)||this;S.allVideosCount=0;S.renderGuideEntry=!1;return S};
_.C(hR,_.W);hR.prototype.observeRenderEntry=function(){var S;this.renderGuideEntry=!((S=this.data)==null||!S.alwaysShow)||!!this.allVideosCount};
hR.prototype.observeRenderEntry=hR.prototype.observeRenderEntry;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],hR.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hR.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],hR.prototype,"activeEndpoint",void 0);_.d([_.Z({selector:_.lwc}),_.P("design:type",Object)],hR.prototype,"allVideosCount",void 0);
_.d([_.Z(),_.P("design:type",Object)],hR.prototype,"renderGuideEntry",void 0);_.d([_.$n("allVideosCount","data.alwaysShow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],hR.prototype,"observeRenderEntry",null);_.d([_.e({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],hR);
_.k(hR,"ytd-guide-downloads-entry-renderer",function(){if(LrB===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);LrB=S}S=LrB;return S},{mode:1});var qp=function(){var S=_.W.apply(this,arguments)||this;S.youtab=_.u("web_enable_youtab");S.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return S};
_.C(qp,_.W);_.J=qp.prototype;_.J.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]]"}}}}}};
_.J.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var S=this.sectionItems.children,c=0,Q=S.length;c<Q;c++)S[c].activeEndpoint=this.activeEndpoint}};
_.J.handleAddToGuideSectionAction=function(S){var c=_.Y(S,JeB);if(c&&this.data&&(S=c.items,c=c.handlerData,S&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1)){c=0;for(var Q=S.length;c<Q;c++)S[c].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,S[c])}};
_.J.handleRemoveFromGuideSectionAction=function(S){var c=_.Y(S,aV2);c&&this.data&&(S=c.guideEntryId,c=c.handlerData,S&&c&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(c)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(S,this.data.sectionItems),this.removeFromCollapsedSection(S,this.data.sectionItems)))};
_.J.removeFromExpandedSection=function(S,c){S=this.getEntryIndexMatchingId(S,c);S!==-1&&this.splice("data.sectionItems",S,1)};
_.J.removeFromCollapsedSection=function(S,c){var Q=c.findIndex(function(f){return!!_.Y(f,lVZ)});
Q&&Q!==-1&&c[Q]&&_.Y(c[Q],lVZ)&&(c=_.Y(c[Q],lVZ).expandableItems)&&(S=this.getEntryIndexMatchingId(S,c),S!==-1&&this.splice("data.sectionItems."+Q+".guideCollapsibleEntryRenderer.expandableItems",S,1))};
_.J.getEntryIndexMatchingId=function(S,c){var Q=this;return c.findIndex(function(f){return Q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===S})};
qp.prototype.activeEndpointChanged=qp.prototype.activeEndpointChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],qp.prototype,"actionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("#section-items"),_.P("design:type",HTMLDivElement)],qp.prototype,"sectionItems",void 0);
_.d([_.nU("#header-entry"),_.P("design:type",Object)],qp.prototype,"headerEntry",void 0);_.d([_.Z(),_.P("design:type",Object)],qp.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],qp.prototype,"activeEndpoint",void 0);_.d([_.Z(),_.P("design:type",Object)],qp.prototype,"youtab",void 0);_.d([_.B0("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qp.prototype,"activeEndpointChanged",null);
_.d([_.e({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],qp);
_.k(qp,"ytd-guide-collapsible-section-entry-renderer",function(){if(PFE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);PFE=S}S=PFE;return S},{mode:1});var EFO;var tXN;var Tj=function(){var S=_.W.apply(this,arguments)||this;S.modernTypography=_.u("web_modern_typography");S.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 S};
_.C(Tj,_.W);_.J=Tj.prototype;
_.J.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}}}}};
_.J.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var S=_.Oz(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);S&&S.length===1&&S[0]&&_.Oz(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.J.handleResetChannelUnreadCountCommand=function(S){var c;(S=(c=_.Y(S,XxT))==null?void 0:c.channelId)&&this.data&&this.data.items&&(c=this.getPathToEntryMatchingId(S))&&(this.set(c+".guideEntryRenderer.count",0),this.set(c+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.handleResetSubscriptionsUnreadDotCommand=function(S){var c,Q=(c=_.Y(S,OOT))==null?void 0:c.targetId,f;Q&&(f=this.data)!=null&&f.items&&(S=this.data.items.findIndex(function(U){var a;return((a=U.guideEntryRenderer)==null?void 0:a.targetId)===Q}),S<0||this.set("data.items."+S+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.J.getPathToEntryMatchingId=function(S){if(this.data&&this.data.items){var c=this.getEntryIndexMatchingId(S,this.data.items);if(c>-1)return"data.items."+c;for(var Q=0;Q<this.data.items.length;Q++)if(c=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[Q]))if(c=this.getEntryIndexMatchingId(S,c),c>-1)return"data.items."+Q+".guideCollapsibleEntryRenderer.expandableItems."+c}};
_.J.handleAddToGuideSectionAction=function(S){var c=this;if(_.Y(S,JeB)){var Q=_.Y(S,JeB).items;S=_.Y(S,JeB).handlerData;var f,U;Q&&S&&((f=this.data)==null?void 0:(U=f.handlerDatas)==null?void 0:U.indexOf(S))>-1&&(Q=Q.filter(function(a){return(a=c.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",a))&&!c.isGuideItemPresent(a)}),this.unshift.apply(this,["data.items"].concat(_.Hs(Q))))}};
_.J.isGuideItemPresent=function(S){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(S,this.data.items)!==-1)return!0;var c=this.data.items.find(function(Q){return!!Q.guideCollapsibleEntryRenderer});
if((c==null?0:c.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(S,c.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.J.getEntryIndexMatchingId=function(S,c){var Q=this;return c.findIndex(function(f){return Q.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",f)===S})};
_.J.handleRemoveFromGuideSectionAction=function(S){if(_.Y(S,aV2)){var c=_.Y(S,aV2).guideEntryId;S=_.Y(S,aV2).handlerData;var Q,f;c&&S&&((Q=this.data)==null?void 0:(f=Q.handlerDatas)==null?void 0:f.indexOf(S))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(c,this.data.items),this.removeFromCollapsedSection(c,this.data.items))}};
_.J.removeFromExpandedSection=function(S,c){S=this.getEntryIndexMatchingId(S,c);S!==-1&&this.splice("data.items",S,1)};
_.J.removeFromCollapsedSection=function(S,c){var Q=c.findIndex(function(f){return!!f.guideCollapsibleEntryRenderer});
Q!==-1&&(c=c[Q].guideCollapsibleEntryRenderer.expandableItems)&&(S=this.getEntryIndexMatchingId(S,c),S!==-1&&this.splice("data.items."+Q+".guideCollapsibleEntryRenderer.expandableItems",S,1))};
_.J.activeEndpointChanged=function(){for(var S=_.Ur(this.hostElement).querySelector("#items").children,c=0,Q=S.length;c<Q;c++)S[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.J.guideOpenedChanged=function(){for(var S=_.Ur(this.hostElement).querySelector("#items").children,c=0,Q=S.length;c<Q;c++)S[c].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
Tj.prototype.guideOpenedChanged=Tj.prototype.guideOpenedChanged;Tj.prototype.activeEndpointChanged=Tj.prototype.activeEndpointChanged;Tj.prototype.persistentGuideChanged=Tj.prototype.persistentGuideChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Tj.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Tj.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Tj.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],Tj.prototype,"ytLazyListBehavior",void 0);_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],Tj.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Tj.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Tj.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Tj.prototype,"modernTypography",void 0);_.d([_.Z(),_.P("design:type",String)],Tj.prototype,"type",void 0);_.d([_.Z({value:20}),_.P("design:type",Number)],Tj.prototype,"initialCount",void 0);_.d([_.Z({value:10}),_.P("design:type",Number)],Tj.prototype,"targetFramerate",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],Tj.prototype,"autoFill",void 0);_.d([_.Z({value:50}),_.P("design:type",Number)],Tj.prototype,"renderDelay",void 0);
_.d([_.B0("guidePersistentAndVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tj.prototype,"persistentGuideChanged",null);_.d([_.$n("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tj.prototype,"activeEndpointChanged",null);_.d([_.$n("guideOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Tj.prototype,"guideOpenedChanged",null);
_.d([_.e({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],Tj);
_.k(Tj,"ytd-guide-section-renderer",function(){if(tXN!==void 0)return tXN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return tXN=S},{mode:_.A2("kevlar_poly_si_batch_j073")?1:2});var VX0;var wY=function(){return _.W.apply(this,arguments)||this};
_.C(wY,_.W);_.Rh.Object.defineProperties(wY.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wY.prototype,"rendererBehaviors",void 0);_.d([_.Z(),_.P("design:type",Object)],wY.prototype,"data",void 0);_.d([_.Z(),_.M("data.signInButton.buttonRenderer.style"),_.P("design:type",Object),_.P("design:paramtypes",[])],wY.prototype,"alignByText",null);_.d([_.e({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],wY);
_.k(wY,"ytd-guide-signin-promo-renderer",function(){if(VX0===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);VX0=S}S=VX0;return S},{mode:1});var sO=function(){var S=_.W.apply(this,arguments)||this;S.showFooter=!1;return S};
_.C(sO,_.W);sO.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}}}}};
sO.prototype.attached=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1){c=_.fl().resolve(_.QS(_.WC));if(!c)return Q.jumpTo(0);c.setGuideData(S.hostElement);return _.F(Q,0,3)}S.ytLazyListBehavior.initialCount=2;return Q.return()})};
sO.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
sO.prototype.dataChanged=sO.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],sO.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],sO.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.cu.YtLazyListBehavior),_.P("design:type",Object)],sO.prototype,"ytLazyListBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],sO.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],sO.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],sO.prototype,"showFooter",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],sO.prototype,"autoFill",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],sO.prototype,"dataChanged",null);_.d([_.e({is:"ytd-guide-renderer",disableElementRegistration:!0})],sO);
_.k(sO,"ytd-guide-renderer",function(){if(EFO!==void 0)return EFO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return EFO=S},{mode:_.A2("kevlar_poly_si_batch_j073")?1:2});var RlU;var Mp=function(){var S=_.W.apply(this,arguments)||this;S.systemIcons=_.u("kevlar_system_icons");S.frostedGlass=_.u("web_frosted_glass");S.getEndpointForm=function(){return VL2(S.data)};
return S};
_.C(Mp,_.W);_.J=Mp.prototype;_.J.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.J.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.Em(this.data.formattedTitle))};
_.J.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.J.onDown=function(){this.interaction.triggerDown()};
_.J.onUp=function(){this.interaction.triggerUp()};
_.J.onTap=function(S){if(this.data.serviceEndpoint){var c;_.u("shorts_controller_retrieve_seedless_sequence_v2")&&((c=_.Y(this.data.serviceEndpoint,_.ll))==null?void 0:c.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):tLE(this.data.serviceEndpoint,this);S.preventDefault()}else{var Q;((Q=this.data)==null?0:Q.navigationEndpoint)&&!_.RZ(_.t4(S),this.hostElement,["A".toString()])&&_.Az(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.J.computeActive=function(S,c){if(!S)return!1;var Q=S.navigationEndpoint;S=S.serviceEndpoint;if(!Q&&!S||!c)return!1;if(Q){S=_.Y(Q,_.KJ);var f=_.Y(c,_.KJ);if(S&&f)return S.browseId===f.browseId&&S.params===f.params;var U;Q=(U=_.Y(Q.commandMetadata,_.Qw))==null?void 0:U.url;var a;c=(a=_.Y(c.commandMetadata,_.Qw))==null?void 0:a.url;return!(!Q||!c||Q!==c&&Q!==_.Bi(c))}return this.isActiveShortsTab(S,c)};
_.J.isActiveShortsTab=function(S,c){c=!!_.Y(c,_.ll)||!!_.Y(c,_.iA);return(!!_.Y(S,_.ll)||!!_.Y(S,_.iA))&&c};
_.J.computeTitle=function(S,c){return c?"":_.Em(S)};
_.Rh.Object.defineProperties(Mp.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Mp.prototype.onTap=Mp.prototype.onTap;Mp.prototype.onUp=Mp.prototype.onUp;Mp.prototype.onDown=Mp.prototype.onDown;Mp.prototype.onActiveStateChange=Mp.prototype.onActiveStateChange;Mp.prototype.dataChanged=Mp.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Mp.prototype,"ytComponentBehavior",void 0);
_.d([_.p(_.M9),_.P("design:type",Object)],Mp.prototype,"ironButtonState",void 0);_.d([_.Z(),_.P("design:type",Object)],Mp.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Mp.prototype,"activeEndpoint",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Mp.prototype,"noLabels",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.P("design:type",Boolean)],Mp.prototype,"isActive",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Mp.prototype,"systemIcons",void 0);_.d([_.nU("yt-interaction"),_.P("design:type",Object)],Mp.prototype,"interaction",void 0);_.d([_.M("isActive"),_.P("design:type",Object),_.P("design:paramtypes",[])],Mp.prototype,"ariaSelected",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Mp.prototype,"frostedGlass",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mp.prototype,"dataChanged",null);_.d([_.B0("isActive"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mp.prototype,"onActiveStateChange",null);_.d([_.FV("down"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mp.prototype,"onDown",null);
_.d([_.FV("up"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Mp.prototype,"onUp",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Mp.prototype,"onTap",null);_.d([_.e({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Mp);
_.k(Mp,"ytd-mini-guide-entry-renderer",function(){if(RlU!==void 0)return RlU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return RlU=S},{mode:_.A2("kevlar_poly_si_batch_j063")?1:2});var ydO;var iz=function(){var S=_.W.apply(this,arguments)||this;S.allVideosCount=0;S.noLabels=_.u("kevlar_mini_guide_no_labels");S.frostedGlass=_.u("web_frosted_glass");return S};
_.C(iz,_.W);_.J=iz.prototype;_.J.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.J.visibleChanged=function(){if(this.visible&&!this.data){var S=_.fl().resolve(_.QS(_.WC));S&&S.setGuideData(this.hostElement)}};
_.J.dataChanged=function(){var S=[],c;if((c=this.data)!=null&&c.items){c=_.A(this.data.items);for(var Q=c.next();!Q.done;Q=c.next()){Q=Q.value;var f=void 0;if((f=Q.guideSectionRenderer)==null?0:f.items)for(f=void 0,Q=_.A((f=Q.guideSectionRenderer)==null?void 0:f.items),f=Q.next();!f.done;f=Q.next())if(f=f.value,f.guideEntryRenderer)f=f.guideEntryRenderer,f.isPrimary&&S.push({guideEntryRenderer:f});else if(f.guideCollapsibleSectionEntryRenderer){var U=void 0;((U=_.Y(f.guideCollapsibleSectionEntryRenderer.headerEntry,
PR))==null?0:U.isPrimary)&&S.push({guideEntryRenderer:_.Y(f.guideCollapsibleSectionEntryRenderer.headerEntry,PR)});if(f=f.guideCollapsibleSectionEntryRenderer.sectionItems)for(f=_.A(f),U=f.next();!U.done;U=f.next()){var a=U.value;U=_.Y(a,Y$g);var X=void 0;((X=_.Y(a,PR))==null?0:X.isPrimary)?S.push({guideEntryRenderer:_.Y(a,PR)}):U&&(a=void 0,_.Y((a=U)==null?void 0:a.entryRenderer,PR)&&(U.alwaysShow||this.allVideosCount)&&S.push({guideEntryRenderer:_.Y(U.entryRenderer,PR)}))}}}}this.miniGuideItems=
S};
_.J.activeEndpointChanged=function(){for(var S=this.items.children,c=0;c<S.length;c++)S[c].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
iz.prototype.activeEndpointChanged=iz.prototype.activeEndpointChanged;iz.prototype.dataChanged=iz.prototype.dataChanged;iz.prototype.visibleChanged=iz.prototype.visibleChanged;_.d([_.p(_.st),_.P("design:type",Object)],iz.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iz.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],iz.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],iz.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],iz.prototype,"ytComponentBehavior",void 0);_.d([_.nU("#items"),_.P("design:type",Object)],iz.prototype,"items",void 0);_.d([_.Z(),_.P("design:type",Object)],iz.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],iz.prototype,"visible",void 0);
_.d([_.Z(),_.P("design:type",Object)],iz.prototype,"miniGuideItems",void 0);_.d([_.Z({selector:_.lwc}),_.P("design:type",Object)],iz.prototype,"allVideosCount",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],iz.prototype,"noLabels",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],iz.prototype,"frostedGlass",void 0);_.d([_.$n("visible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iz.prototype,"visibleChanged",null);
_.d([_.$n("data","allVideosCount"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iz.prototype,"dataChanged",null);_.d([_.$n("activeEndpoint"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iz.prototype,"activeEndpointChanged",null);_.d([_.e({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],iz);
_.k(iz,"ytd-mini-guide-renderer",function(){if(ydO===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);ydO=S}S=ydO;return S},{mode:1});var oF8;var m02=/^[\x00-\x7F]+$/,ZK=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(ZK,_.W);_.Rh.Object.defineProperties(ZK.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var S,c=_.Em((S=this.data)==null?void 0:S.handle);if(c)return _.LK("@"+c)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var S=_.Em(this.displayHandle),c,Q=_.Em((c=this.data)==null?void 0:c.handleUrl);if(S&&Q)return _.LK(Q+S)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var S=_.Em(this.displayHandle);if(S&&!m02.test(S)){var c;return(c=this.data)==null?void 0:c.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var S=_.Em(this.displayHandleUrl),c,Q=_.Em((c=this.data)==null?void 0:c.urlInfoText);if(S&&Q)return _.LK(Q+" "+S)}}});
_.d([_.Z(),_.P("design:type",Object)],ZK.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZK.prototype,"displayHandle",null);_.d([_.M("displayHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZK.prototype,"displayHandleUrl",null);_.d([_.M("displayHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZK.prototype,"warningText",null);
_.d([_.M("displayHandleUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],ZK.prototype,"urlInfoTextWithUrl",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ZK.prototype,"darkerDarkTheme",void 0);_.d([_.e({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],ZK);
_.k(ZK,"ytd-handles-claiming-confirm-dialog-content",function(){if(oF8!==void 0)return oF8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return oF8=S},{mode:1});var SuE;var Gj=function(){var S=_.W.apply(this,arguments)||this;S.okButtonOverride={style:"mono",type:"outline",size:"M"};return S};
_.C(Gj,_.W);Gj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Gj.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Gj.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Gj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Gj.prototype,"okButtonOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],Gj.prototype,"data",void 0);_.d([_.e({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],Gj);
_.k(Gj,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(SuE!==void 0)return SuE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return SuE=S},{mode:1});var c71;var QPV=/^[\x00-\x7F]+$/,WB=function(){var S=_.W.apply(this,arguments)||this;S.isLoading=!1;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(WB,_.W);WB.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var S;this.selectedHandle=(S=this.handleInput)==null?void 0:S.value;this.onSelectedHandleChanged(this.selectedHandle);_.Oz(this.hostElement,"yt-refit-popups-action")}};
_.Rh.Object.defineProperties(WB.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var S;return(S=this.data)==null?void 0:S.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.LK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.LK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!QPV.test(this.selectedHandle)){var S;return(S=this.data)==null?void 0:S.warningText}}}});
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],WB.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],WB.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],WB.prototype,"selectedHandle",void 0);_.d([_.Z(),_.P("design:type",Object)],WB.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Function)],WB.prototype,"onSelectedHandleChanged",void 0);_.d([_.nU("#channel-handle-input"),_.P("design:type",Object)],WB.prototype,"handleInput",void 0);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],WB.prototype,"handleUrlPrefix",null);_.d([_.M("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],WB.prototype,"displayHandle",null);_.d([_.M("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],WB.prototype,"displayHandleUrl",null);_.d([_.M("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],WB.prototype,"warningText",null);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],WB.prototype,"darkerDarkTheme",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],WB.prototype,"ytRendererBehavior",void 0);_.d([_.e({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],WB);
_.k(WB,"ytd-handles-claiming-edit-dialog-content",function(){if(c71!==void 0)return c71;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return c71=S},{mode:1});var frg;var gY=function(){var S=_.W.apply(this,arguments)||this;S.actionButtonOverride={style:"mono",type:"filled",size:"M"};S.cancelButtonOverride={style:"mono",type:"text",size:"M"};S.selectButtonDisabled=!1;S.isLoading=!1;S.hasSelectedHandleEventListener=!1;S.selectedHandleChanged=function(c){S.selectedHandle=c};
return S};
_.C(gY,_.W);_.J=gY.prototype;_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.J.onDataChanged=function(){var S,c;this.selectedHandle=(c=_.Y((S=this.data)==null?void 0:S.inputField,S$E))==null?void 0:c.handle};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.selectedHandle="";_.XF(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var S=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(Q,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.fD(S.hostElement,_.Em(f.newHandleUpdateStatus.errorMessage)),
S.isLoading=!1;else{var U;if((U=S.data)==null?0:U.onChannelUpdateSuccess){Q=S.data.onChannelUpdateSuccess;var a,X;if(f=(a=_.Y(Q,_.pk))==null?void 0:(X=a.popup)==null?void 0:X.handlesClaimingConfirmDialogRenderer)f.handle=_.LK(S.selectedHandle);S.ytComponentBehavior.resolveCommand(Q);_.XF(S.hostElement,"yt-close-popup-action",[S.is])}else S.isLoading=!1}},
onServerError:function(){var Q;S.content&&((Q=S.content)==null?0:Q.handleInput)&&S.content.handleInput.validate();S.isLoading=!1;_.fD(S.hostElement,_.K8("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
gY.prototype.onDataChanged=gY.prototype.onDataChanged;gY.prototype.onSelectedHandleChanged=gY.prototype.onSelectedHandleChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],gY.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gY.prototype,"actionButtonOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],gY.prototype,"cancelButtonOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],gY.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",String)],gY.prototype,"selectedHandle",void 0);_.d([_.Z(),_.P("design:type",Object)],gY.prototype,"selectButtonDisabled",void 0);_.d([_.Z(),_.P("design:type",Object)],gY.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Object)],gY.prototype,"hasSelectedHandleEventListener",void 0);_.d([_.Z(),_.P("design:type",Object)],gY.prototype,"handleInput",void 0);
_.d([_.B0("selectedHandle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gY.prototype,"onSelectedHandleChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],gY.prototype,"onDataChanged",null);_.d([_.nU("ytd-handles-claiming-edit-dialog-content"),_.P("design:type",Object)],gY.prototype,"content",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],gY.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],gY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.e({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],gY);
_.k(gY,"ytd-handles-claiming-edit-dialog-renderer",function(){if(frg!==void 0)return frg;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return frg=S},{mode:1});var UnE;var eb=function(){return _.W.apply(this,arguments)||this};
_.C(eb,_.W);_.Rh.Object.defineProperties(eb.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null?0:S.handle){var c;return _.LK("@"+_.Em((c=this.data)==null?void 0:c.handle))}}}});
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],eb.prototype,"formattedHandle",null);_.d([_.Z(),_.P("design:type",Object)],eb.prototype,"data",void 0);_.d([_.e({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],eb);
_.k(eb,"ytd-handles-claiming-radio-option-renderer",function(){if(UnE!==void 0)return UnE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return UnE=S},{mode:1});var J7G;var arE=/^[\x00-\x7F]+$/,k4=function(){var S=_.W.apply(this,arguments)||this;S.initialRadioIndex="-1";S.isLoading=!1;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.maybeSubmitFeedback=function(){S.feedbackSurveyRenderer.submitSurvey()};
return S};
_.C(k4,_.W);k4.prototype.updateSelectedHandleIndexFromBinding=function(S){this.selectedRadioIndex=+S.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(S)};
k4.prototype.selectedHandleChanged=function(S){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var c;this.selectedHandle=(c=this.handleInput)==null?void 0:c.value;this.onSelectedHandleChanged(S)}};
_.Rh.Object.defineProperties(k4.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var S;return this.ytRendererBehavior.getSimpleString((S=this.data)==null?void 0:S.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.LK("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.LK(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!arE.test(this.selectedHandle)){var S;return(S=this.data)==null?void 0:S.warningText}}}});
_.d([_.Z(),_.P("design:type",Object)],k4.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],k4.prototype,"initialRadioIndex",void 0);_.d([_.Z(),_.P("design:type",Number)],k4.prototype,"selectedRadioIndex",void 0);_.d([_.Z(),_.P("design:type",String)],k4.prototype,"selectedHandle",void 0);_.d([_.Z(),_.P("design:type",Object)],k4.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Function)],k4.prototype,"onSelectedHandleChanged",void 0);
_.d([_.Z(),_.P("design:type",Function)],k4.prototype,"onSelectedRadioIndexChanged",void 0);_.d([_.nU("#channel-handle-input"),_.P("design:type",Object)],k4.prototype,"handleInput",void 0);_.d([_.nU("ytd-feedback-survey-renderer"),_.P("design:type",Object)],k4.prototype,"feedbackSurveyRenderer",void 0);_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],k4.prototype,"radioButtonLength",null);
_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],k4.prototype,"handleUrlPrefix",null);_.d([_.M("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],k4.prototype,"displayHandle",null);_.d([_.M("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],k4.prototype,"displayHandleUrl",null);_.d([_.M("selectedHandle"),_.P("design:type",Object),_.P("design:paramtypes",[])],k4.prototype,"warningText",null);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],k4.prototype,"darkerDarkTheme",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],k4.prototype,"ytRendererBehavior",void 0);_.d([_.e({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],k4);
_.k(k4,"ytd-handles-claiming-select-dialog-content",function(){if(J7G!==void 0)return J7G;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return J7G=S},{mode:1});var A7E;var rY=function(){var S=_.W.apply(this,arguments)||this;S.actionButtonOverride={style:"mono",type:"filled",size:"M"};S.cancelButtonOverride={style:"mono",type:"text",size:"M"};S.initialRadioIndex="-1";S.selectButtonDisabled=!1;S.isLoading=!1;S.selectedRadioIndexChanged=function(c){S.selectedRadioIndex=Number(c.detail.value)};
S.selectedHandleChanged=function(c){S.selectedHandle=c.detail.value};
S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(rY,_.W);_.J=rY.prototype;_.J.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.J.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.J.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.Oz(this.hostElement,"yt-refit-popups-action")};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.XF(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onSelectHandle=function(){var S=this;if(this.selectedHandle!==void 0){var c;((c=this.data)==null?void 0:c.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(Q,f){if(f.newHandleUpdateStatus!==void 0&&f.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&f.newHandleUpdateStatus.errorMessage)_.fD(S.hostElement,_.Em(f.newHandleUpdateStatus.errorMessage)),
S.isLoading=!1;else{var U;if((U=S.data)==null?0:U.onChannelUpdateSuccess){Q=S.data.onChannelUpdateSuccess;f=_.Y(Q,_.pk);var a;if(f==null?0:(a=f.popup)==null?0:a.handlesClaimingConfirmDialogRenderer)f.popup.handlesClaimingConfirmDialogRenderer.handle=_.LK(S.selectedHandle);S.ytComponentBehavior.resolveCommand(Q);_.XF(S.hostElement,"yt-close-popup-action",[S.is])}else S.isLoading=!1}},
onServerError:function(){if(S.selectedRadioIndex===S.radioButtonLength){var Q;S.content&&((Q=S.content)==null?0:Q.handleInput)&&S.content.handleInput.validate()}S.isLoading=!1;_.fD(S.hostElement,_.K8("TRY_AGAIN_LATER"))}}}))}};
_.J.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var S,c;this.selectedHandle=(S=this.content)==null?void 0:(c=S.handleInput)==null?void 0:c.value}else this.selectedRadioIndex>=0&&((S=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(S==null?void 0:S.handle):this.selectedHandle=void 0)};
_.J.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.J.getRadioItem=function(S){if(this.radioButtonLength>S&&S>=0)return _.Y(this.data.radioButton[S],bOg)};
_.Rh.Object.defineProperties(rY.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var S;return(((S=this.data)==null?void 0:S.radioButton)||[]).length}}});
rY.prototype.onSelectedHandleChanged=rY.prototype.onSelectedHandleChanged;rY.prototype.onSelectedHandleIndexChanged=rY.prototype.onSelectedHandleIndexChanged;rY.prototype.onDataChanged=rY.prototype.onDataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],rY.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rY.prototype,"actionButtonOverride",void 0);_.d([_.Z(),_.P("design:type",Object)],rY.prototype,"cancelButtonOverride",void 0);
_.d([_.Z(),_.P("design:type",Object)],rY.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],rY.prototype,"initialRadioIndex",void 0);_.d([_.Z(),_.P("design:type",Number)],rY.prototype,"selectedRadioIndex",void 0);_.d([_.Z(),_.P("design:type",String)],rY.prototype,"selectedHandle",void 0);_.d([_.Z(),_.P("design:type",Object)],rY.prototype,"selectButtonDisabled",void 0);_.d([_.Z(),_.P("design:type",Object)],rY.prototype,"isLoading",void 0);
_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],rY.prototype,"radioButtonLength",null);_.d([_.nU("ytd-handles-claiming-select-dialog-content"),_.P("design:type",Object)],rY.prototype,"content",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rY.prototype,"onDataChanged",null);
_.d([_.B0("selectedRadioIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rY.prototype,"onSelectedHandleIndexChanged",null);_.d([_.B0("selectedHandle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rY.prototype,"onSelectedHandleChanged",null);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],rY.prototype,"darkerDarkTheme",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rY.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],rY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.e({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],rY);
_.k(rY,"ytd-handles-claiming-select-dialog-renderer",function(){if(A7E!==void 0)return A7E;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return A7E=S},{mode:1});var Xep;var O32;var dY=function(){return _.W.apply(this,arguments)||this};
_.C(dY,_.W);dY.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],dY.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dY.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],dY.prototype,"data",void 0);_.d([_.e({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],dY);
_.k(dY,"ytd-hotkey-dialog-section-option-renderer",function(){if(O32!==void 0)return O32;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return O32=S},{mode:1});var zTp;var vB=function(){return _.W.apply(this,arguments)||this};
_.C(vB,_.W);vB.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vB.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vB.prototype,"data",void 0);_.d([_.e({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],vB);
_.k(vB,"ytd-hotkey-dialog-section-renderer",function(){if(zTp!==void 0)return zTp;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return zTp=S},{mode:1});var PB=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(PB,_.W);PB.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],PB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],PB.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],PB.prototype,"darkerDarkTheme",void 0);_.d([_.e({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],PB);
_.k(PB,"ytd-hotkey-dialog-content",function(){if(Xep!==void 0)return Xep;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Xep=S},{mode:1});var xnp;var LB=function(){return _.W.apply(this,arguments)||this};
_.C(LB,_.W);LB.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var S=document.querySelector("ytd-hotkey-dialog-content #scrollable");S&&(S.dialogElement=this.hostElement.parentElement)};
LB.prototype.onCloseTap=function(){_.XF(this.hostElement,"yt-close-popup-action")};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LB.prototype,"data",void 0);_.d([_.e({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],LB);
_.k(LB,"ytd-hotkey-dialog-renderer",function(){if(xnp!==void 0)return xnp;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return xnp=S},{mode:1});var FhG;var EO=function(){return _.W.apply(this,arguments)||this};
_.C(EO,_.W);EO.prototype.onYtServiceRequestError=function(){if(this.blocked){var S;var c=(S=this.data)==null?void 0:S.defaultServiceEndpoint}else{var Q;c=(Q=this.data)==null?void 0:Q.toggledServiceEndpoint}var f;(c=(f=_.Y(c,_.FLz))==null?void 0:f.onFailureAction)&&this.ytComponentBehavior.resolveCommand(c);this.updateBlockState(!this.blocked)};
EO.prototype.onYtToggleButton=function(S){this.updateBlockState(S.detail.toggled)};
EO.prototype.updateBlockState=function(S){if(S!==this.blocked){var c=this.blockedEntityKey;c&&this.ytdReduxBehavior.dispatch(_.Ns("blockStateEntity",c,{key:c,blocked:S}));this.set("data.isToggled",S)}};
_.Rh.Object.defineProperties(EO.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)}}});
EO.prototype.onYtToggleButton=EO.prototype.onYtToggleButton;EO.prototype.onYtServiceRequestError=EO.prototype.onYtServiceRequestError;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],EO.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],EO.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],EO.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],EO.prototype,"blockedEntityKey",void 0);
_.d([_.Z({selectorArgs:["blockedEntityKey"],selector:function(S,c){return _.FT(S.entities,"blockStateEntity",c)}}),
_.P("design:type",Object)],EO.prototype,"blockStateEntity",void 0);_.d([_.M("data","blockStateEntity"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],EO.prototype,"blocked",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],EO.prototype,"onYtServiceRequestError",null);
_.d([_.FV("yt-toggle-button"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],EO.prototype,"onYtToggleButton",null);_.d([_.e({is:"ytd-block-button",disableElementRegistration:!0})],EO);
_.k(EO,"ytd-block-button",function(){if(FhG!==void 0)return FhG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return FhG=S},
{mode:1});var BVN;var IrO;var tR=function(){return _.W.apply(this,arguments)||this};
_.C(tR,_.W);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],tR.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tR.prototype,"data",void 0);_.d([_.e({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],tR);
_.k(tR,"ytd-kids-blocklist-picker-item-renderer",function(){if(IrO!==void 0)return IrO;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return IrO=S},{mode:1});var VZ=function(){return _.W.apply(this,arguments)||this};
_.C(VZ,_.W);VZ.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VZ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VZ.prototype,"data",void 0);_.d([_.e({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],VZ);
_.k(VZ,"ytd-kids-blocklist-picker-content",function(){if(BVN!==void 0)return BVN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return BVN=
S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var n9Z;var RV=function(){var S=_.W.apply(this,arguments)||this;S.hasAnyRequestSucceeded=!1;S.hasAnyRequestFailed=!1;S.numPendingRequests=0;return S};
_.C(RV,_.W);_.J=RV.prototype;_.J.attached=function(){this.hostElement.setAttribute("dialog","")};
_.J.onDoneButtonTap=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.J.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.J.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.J.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.J.onPopupClosed=function(S){var c,Q;if(((c=S.detail)==null?void 0:(Q=c.popup)==null?void 0:Q.is)==="tp-yt-paper-dialog"){var f;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((f=this.data)==null?0:f.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.y5(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
RV.prototype.onPopupClosed=RV.prototype.onPopupClosed;RV.prototype.onYtServiceRequestError=RV.prototype.onYtServiceRequestError;RV.prototype.onYtServiceRequestCompleted=RV.prototype.onYtServiceRequestCompleted;RV.prototype.onYtServiceRequestSent=RV.prototype.onYtServiceRequestSent;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],RV.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],RV.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],RV.prototype,"data",void 0);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RV.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RV.prototype,"onYtServiceRequestCompleted",null);
_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],RV.prototype,"onYtServiceRequestError",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],RV.prototype,"onPopupClosed",null);_.d([_.e({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],RV);
_.k(RV,"ytd-kids-blocklist-picker-renderer",function(){if(n9Z!==void 0)return n9Z;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return n9Z=S},{mode:1});var b32;var NVB;var yZ=function(){return _.W.apply(this,arguments)||this};
_.C(yZ,_.W);yZ.prototype.setTip=function(S){var c=this;this.data&&(this.tip=JKp(fMB.getInstance(),S,this.data),_.tO(this,function(){_.Az(c.hostElement,"yt-refit")}))};
yZ.prototype.clearTip=function(){this.tip=void 0};
yZ.prototype.computeHidden=function(S){return!S};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yZ.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yZ.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.P("design:type",Boolean)],yZ.prototype,"hidden",void 0);_.d([_.Z(),_.P("design:type",Object)],yZ.prototype,"tip",void 0);_.d([_.e({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],yZ);
_.k(yZ,"ytd-menu-popup-tip-renderer",function(){if(NVB!==void 0)return NVB;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);
return NVB=S},{mode:1});var Kh0;var oV=function(){var S=_.W.apply(this,arguments)||this;S.useIcons=!1;S.systemIcons=_.u("kevlar_system_icons");S.useListItemStyles=_.u("web_list_item_style_for_menu_items");return S};
_.C(oV,_.W);_.J=oV.prototype;_.J.onFocus=function(){var S;(S=_.Ur(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.J.onTap=function(){var S=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(S&&_.Y(S,_.II))this.componentBehavior.resolveCommand(S),this.updateToggledStateInEntity();else if(S){this.componentBehavior.resolveCommand(S)||_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}});var c;((c=_.Y(S,_.b2))==null?void 0:c.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.J.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.J.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.J.updateToggledStateInEntity=function(){var S=this.data.toggleMenuServiceItemEntityKey,c=!this.data.isToggled;S&&this.ytdReduxBehavior.dispatch(_.Ns("toggleMenuServiceItemEntity",S,{key:S,isToggled:c}))};
_.J.computeIcon=function(S,c,Q){return(S=S?Q:c)&&S.iconType?_.xz(S.iconType):""};
_.J.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.J.isIconActive=function(S){return!_.u("toggle_menu_active_icon_killswitch")&&S};
_.Rh.Object.defineProperties(oV.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?0:S.isToggled)?(c=this.data)==null?void 0:c.toggledText:(Q=this.data)==null?void 0:Q.defaultText}}});
oV.prototype.toggledStateEntityChanged=oV.prototype.toggledStateEntityChanged;oV.prototype.onYtServiceRequestCompleted=oV.prototype.onYtServiceRequestCompleted;oV.prototype.onTap=oV.prototype.onTap;oV.prototype.onFocus=oV.prototype.onFocus;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],oV.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],oV.prototype,"componentBehavior",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],oV.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],oV.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oV.prototype,"useIcons",void 0);_.d([_.Z({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.P("design:type",String)],oV.prototype,"icon",void 0);
_.d([_.Z({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(S,c){return _.FT(S.entities,"toggleMenuServiceItemEntity",c)}}),
_.P("design:type",Object)],oV.prototype,"toggleMenuServiceItemEntity",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oV.prototype,"systemIcons",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],oV.prototype,"useListItemStyles",void 0);_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oV.prototype,"onFocus",null);
_.d([_.M("data.isToggled"),_.P("design:type",Object),_.P("design:paramtypes",[])],oV.prototype,"toggleButtonText",null);_.d([_.FV("tap"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oV.prototype,"onTap",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oV.prototype,"onYtServiceRequestCompleted",null);
_.d([_.B0("toggleMenuServiceItemEntity.isToggled","data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],oV.prototype,"toggledStateEntityChanged",null);_.d([_.e({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],oV);
_.k(oV,"ytd-toggle-menu-service-item-renderer",function(){if(Kh0!==void 0)return Kh0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Kh0=S},{mode:1});var $nO;var mf=function(){return _.W.apply(this,arguments)||this};
_.C(mf,_.W);mf.prototype.onFocus=function(){var S;(S=_.Ur(this.hostElement).querySelector("tp-yt-paper-item"))==null||S.focus()};
_.Rh.Object.defineProperties(mf.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.jS(this.data.iconUrl)}}});
mf.prototype.onFocus=mf.prototype.onFocus;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mf.prototype,"rendererBehavior",void 0);_.d([_.p(_.Km.YtEndpointBehavior),_.P("design:type",Object)],mf.prototype,"ytEndpointBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mf.prototype,"data",void 0);_.d([_.FV("focus"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mf.prototype,"onFocus",null);
_.d([_.M("data.iconUrl"),_.P("design:type",Object),_.P("design:paramtypes",[])],mf.prototype,"imageSource",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],mf);
_.k(mf,"ytd-menu-custom-icon-item-renderer",function(){if($nO!==void 0)return $nO;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return $nO=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});_.f4(_.hQ,"yt-list-item-view-model",{props:{data:_.y$,isMenuItem:_.y$,isCompact:_.y$,onTap:_.Qn,trailingAccessory:_.Qn,hideSelectionTextChevron:_.y$,disabled:_.y$,inPopup:_.y$,disableHorizontalPadding:_.y$,isOverlay:_.y$,isToggled:_.y$}});var Si=function(){var S=_.W.apply(this,arguments)||this;S.disableBackdropFilter=_.u("web_disable_backdrop_filter");return S};
_.C(Si,_.W);_.J=Si.prototype;
_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.J.computeAriaLabel=function(S){return S};
_.J.onPopupOpened=function(){this.items.selected=0;for(var S=_.A(_.Ur(this.items).children),c=S.next();!c.done;c=S.next())c.value.popupPositionTarget=this.positionTarget;if(S=this.popupTip||void 0)S.setTip(this.source||""),this.source=void 0;this.veData&&(S=_.wN())&&_.L8(S,[this.veData])};
_.J.onPopupClosed=function(){var S=this.popupTip||void 0;S&&S.clearTip()};
_.J.onIronActivate=function(S){this.shouldPersist(S)||_.XF(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(S=_.wN())&&_.tz(S,this.veData)};
_.J.shouldPersist=function(S){var c,Q;if(((c=S.detail)==null?void 0:c.selected)===void 0||(Q=this.data)==null||!Q.items)return!1;var f,U;return!((U=(f=this.data.items[S.detail.selected])==null?void 0:f.toggleMenuServiceItemRenderer)==null||!U.persistentOnMenuPopup)};
_.J.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(S){return S.menuNavigationItemRenderer?!!S.menuNavigationItemRenderer.icon:S.menuServiceItemRenderer?!!S.menuServiceItemRenderer.icon:S.menuConditionalServiceItemRenderer?!!S.menuConditionalServiceItemRenderer.icon:S.menuConditionalNavigationItemRenderer?!!S.menuConditionalNavigationItemRenderer.icon:S.toggleMenuServiceItemRenderer?!!S.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
Si.prototype.onPopupClosed=Si.prototype.onPopupClosed;Si.prototype.onPopupOpened=Si.prototype.onPopupOpened;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],Si.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Si.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Si.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Si.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Si.prototype,"veData",void 0);_.d([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.P("design:type",String)],Si.prototype,"ariaLabel",void 0);_.d([_.Z({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Si.prototype,"useIcons",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Si.prototype,"disableBackdropFilter",void 0);_.d([_.nU("#items"),_.P("design:type",Object)],Si.prototype,"items",void 0);_.d([_.nU("ytd-menu-popup-tip-renderer"),_.P("design:type",Object)],Si.prototype,"popupTip",void 0);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Si.prototype,"onPopupOpened",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Si.prototype,"onPopupClosed",null);_.d([_.e({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],Si);
_.k(Si,"ytd-menu-popup-renderer",function(){if(b32!==void 0)return b32;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return b32=S},{mode:1});var ubU;var jPg=_.y_(function(S){S=_.V_(S,{icon:void 0});var c=S.data;S=S.icon;var Q=function(){return c().iconBadgeText},f={},U=_.n4("yt-spec-icon-badge-shape",function(){a:switch(c().iconBadgeType){case "notification":var a="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":a="yt-spec-icon-badge-shape--type-cart";break a;default:a=""}return a},function(){a:switch(c().iconBadgeStyle){case "overlay":var a="yt-spec-icon-badge-shape--style-overlay";
break a;default:a=""}return a},(f["yt-spec-icon-badge-shape--text-size-small"]=function(){var a=Q();
return!!((a==null?0:a.length)&&a.length>2)},f));
return _.B("yt-icon-badge-shape",null,_.B(_.K,{cond:S,then:function(a){return _.B("div",{class:U},_.B("div",{class:"yt-spec-icon-badge-shape__icon"},_.B(_.C4,{icon:a})),_.B(_.K,{cond:Q,then:function(X){return _.B("div",{class:"yt-spec-icon-badge-shape__badge"},X)}}))}}))},"sg");
jPg.idomCompat=!0;_.f4(jPg,"yt-icon-badge-shape",{props:{data:_.y$,icon:_.y$}});var I9=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};S.unseenCount=0;S.isOverlay=!1;return S};
_.C(I9,_.W);_.J=I9.prototype;_.J.attached=function(){var S=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(c){S.onServiceWorkerMessage(c)})};
_.J.onDataChanged=function(){this.isAttached&&!this.JSC$18298_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18298_lastData=this.data};
_.J.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.computeIcon=function(){var S,c;return(S=this.data)==null?void 0:(c=S.icon)==null?void 0:c.iconType};
_.J.onServiceWorkerMessage=function(S){S.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.J.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.Y(this.data.updateUnseenCountEndpoint,_.b2)&&_.Y(this.data.updateUnseenCountEndpoint,_.b2).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.J.handleUpdateNotificationsUnseenCountAction=function(S){var c=this;S=_.Y(S,AeT);S!=null&&S.unseenCount&&S.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(S.unseenCount),_.Mq.addLowPriorityJob(function(){c.data.updateUnseenCountEndpoint&&c.ytComponentBehavior.resolveCommand(c.data.updateUnseenCountEndpoint)},S.timeoutMs))};
_.J.onClick=function(){_.Az(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var S=_.Oz(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),c=this.data.menuRequest;S&&S.length===1&&S[0]?_.XF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):c&&this.ytComponentBehavior.resolveCommand(c)};
_.J.handleTopbarMenuClosedAction=function(S){S==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.J.toggleIconState=function(S){this.iconButton&&(this.iconButton.pressed=S)};
_.J.sendUnseenCountRequest=function(S){var c=this;_.HG(_.Mq,function(){c.ytComponentBehavior.resolveCommand(S)})};
_.J.updateCountUI=function(S){this.set("unseenCount",S<9?S:"9+")};
_.Rh.Object.defineProperties(I9.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
I9.prototype.handleUpdateNotificationsUnseenCountAction=I9.prototype.handleUpdateNotificationsUnseenCountAction;I9.prototype.onDataChanged=I9.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],I9.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.Vv),_.P("design:type",Object)],I9.prototype,"ytdOpenPopupBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],I9.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],I9.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],I9.prototype,"unseenCount",void 0);_.d([_.Z(),_.P("design:type",Object)],I9.prototype,"isOverlay",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],I9.prototype,"showTooltips",void 0);_.d([_.nU("yt-icon-button"),_.P("design:type",Object)],I9.prototype,"iconButton",void 0);
_.d([_.M("unseenCount"),_.P("design:type",Object),_.P("design:paramtypes",[])],I9.prototype,"showNotificationCount",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],I9.prototype,"onDataChanged",null);_.d([_.FV("yt-update-notifications-unseen-count-action"),_.P("design:type",Function),_.P("design:paramtypes",[Object]),_.P("design:returntype")],I9.prototype,"handleUpdateNotificationsUnseenCountAction",null);
_.d([_.e({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],I9);
_.k(I9,"ytd-notification-topbar-button-renderer",function(){if(ubU!==void 0)return ubU;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return ubU=S},{mode:_.A2("kevlar_poly_si_batch_j025")?1:2});var lr0;var nA=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return S};
_.C(nA,_.W);nA.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}}}}}};
nA.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
nA.prototype.onDarkModeToggled=function(S){this.dark=S};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],nA.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],nA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],nA.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],nA.prototype,"data",void 0);_.d([_.Z({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],nA.prototype,"dark",void 0);
_.d([_.e({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],nA);
_.k(nA,"yt-pdg-buy-flow-header-renderer",function(){if(lr0!==void 0)return lr0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return lr0=S},{mode:1});var YuE;var Cj0;var bT=function(){var S=_.W.apply(this,arguments)||this;S.immediateValue=0;S.isDarkTheme=!1;S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(bT,_.W);_.J=bT.prototype;_.J.created=function(){_.k1.requestAvailability()};
_.J.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.J.dataChanged=function(){var S=_.Ur(this.hostElement).querySelector("#color-slider");S.immediateValue&&this.updateSliderKnobAndGradientStyles(S.immediateValue);this.data.notches[0].knobColorArgb&&_.Or(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.gh(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.WY("HTML_DIR")==="rtl"&&_.Ur(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.J.onSliderImmediateChange=function(){var S=_.Ur(this.hostElement).querySelector("#color-slider");S.dragging&&(S.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(S.immediateValue),this.updateSliderKnobAndGradientStyles(S.immediateValue)),this.updateSliderAria())};
_.J.onSliderChange=function(){var S=_.Ur(this.hostElement).querySelector("#color-slider");S.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(S.immediateValue),this.updateSliderKnobAndGradientStyles(S.immediateValue));this.updateSliderAria()};
_.J.updateSliderAria=function(){var S=_.Ur(this.hostElement).querySelector("#color-slider"),c=_.Ur(this.hostElement).querySelector("#color-slider");c=_.Em(this.data.notches[c.immediateValue].tierValue);_.sT()&&_.Az(this.hostElement,"iron-announce",{text:c});S.setAttribute("aria-valuetext",c)};
_.J.updateSuperThanksSelectedTierEntity=function(S){if(S!==this.immediateValue){var c,Q,f=this==null?void 0:(c=this.data)==null?void 0:(Q=c.superThanksSelectedTierEntity)==null?void 0:Q.key;f&&f.length>0&&this.ytdReduxBehavior.dispatch(_.Ns("superThanksSelectedTierEntity",f,{key:f,index:S}))}};
_.J.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.updateSliderKnobAndGradientStyles=function(S){this.immediateValue=S;S=this.data.notches[S];if(S==null?0:S.knobColorArgb)var c={"--ytd-pdg-color-slider-knob-color":_.gh(S.knobColorArgb)};(S==null?0:S.linearGradientCssStyle)&&c!==null&&(c=Object.assign({},c,{"--ytd-pdg-color-slider-active-color":S==null?void 0:S.linearGradientCssStyle}));c!==null&&_.Or(this.hostElement,c)};
bT.prototype.onSliderChange=bT.prototype.onSliderChange;bT.prototype.onSliderImmediateChange=bT.prototype.onSliderImmediateChange;bT.prototype.dataChanged=bT.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],bT.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],bT.prototype,"immediateValue",void 0);_.d([_.Z(),_.P("design:type",Number)],bT.prototype,"maxMarkers",void 0);
_.d([_.Z({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aEZ}),_.P("design:type",Object)],bT.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],bT.prototype,"isDarkTheme",void 0);_.d([_.p(_.st),_.P("design:type",Object)],bT.prototype,"ytdReduxBehavior",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bT.prototype,"dataChanged",null);
_.d([_.FV("immediate-value-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bT.prototype,"onSliderImmediateChange",null);_.d([_.FV("change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],bT.prototype,"onSliderChange",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],bT);
_.k(bT,"ytd-pdg-color-slider-renderer",function(){if(Cj0!==void 0)return Cj0;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Cj0=S},{mode:1});var H3g;var Dn2;var NA=null;
_.DI({is:"ytd-comment-input",_template:function(){if(Dn2!==void 0)return Dn2;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Dn2=S},
behaviors:[_.frH.YtHostElementBehavior,_.lc,_.vb.YtComponentBehavior,_.aQ.YtRendererstamperBehavior,_.bdd.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 _.g4}},
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",_.xn(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;_.Fg();this.focus()},
detached:function(){document.removeEventListener("tap",_.xn(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(S){S=S.detail;S=S.isCustomEmoji?S.shortcuts[0]:S.emojiId;var c=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(c,S);this.maybeUpdateTextDirection_();_.Az(this.hostElement,"input")},
getInputRange_:function(){var S=_.Yu();if(S){S=S.getBrowserRangeObject();for(var c=S.commonAncestorContainer;c;){if(c===this.getEditableTextArea_())return S;c=c.parentNode}}S=this.getEditableTextArea_();S=_.GS(S,S.childNodes.length);S.select();return S.getBrowserRangeObject()},
insertTextWithEmojis_:function(S,c,Q){(c=this.emojiManager.createDocumentFragment(c,!0,!1,Q===void 0?!0:Q))&&c.childNodes.length!==0&&(S.collapsed||S.deleteContents(),Q=c.lastChild,S.insertNode(c),_.GZu(Q).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var S=_.Yu();if(S){var c=S.JSC$9293_getStartNode(),Q=S.JSC$9293_getEndNode();if(RW1(c)&&RW1(Q)){var f=S.JSC$9293_getStartOffset(),U;if(_.bR&&c.nodeType===Node.ELEMENT_NODE&&(U=_.txd(c)))_.GS(U,0).select();else{U=yT(c)?c:_.Mk(c,yT);var a=yT(Q)?Q:_.Mk(Q,yT);if(U||a)if(S.isCollapsed()){if(c.nodeType===Node.TEXT_NODE){S=!0;f===c.length&&(S=!1);if(NA==="end"||NA==="right")S=!1;c=c.parentNode;S=[].concat(_.Hs(c.parentNode.childNodes)).indexOf(c)+(S?0:1);_.GS(c.parentNode,S).select()}}else U?
U.previousSibling&&U.previousSibling.length>0?_.WE(Q,S.JSC$9293_getEndOffset(),U.previousSibling,U.previousSibling.length-1).select():(c=document.createTextNode("\u200b"),U.parentNode.insertBefore(c,U),_.WE(Q,S.JSC$9293_getEndOffset(),c,0).select()):a&&(a.nextSibling&&a.nextSibling.length>0?_.WE(c,S.JSC$9293_getStartOffset(),a.nextSibling,1).select():(Q=document.createTextNode("\u200b"),a.parentNode.insertBefore(Q,a.nextSibling),_.WE(c,S.JSC$9293_getStartOffset(),Q,Q.length).select()));NA=null}}else NA=
null}else NA=null},
leftKeyPressed_:function(){NA="left"},
rightKeyPressed_:function(){NA="right"},
endKeyPressed_:function(){NA="end"},
maybeDeleteChip_:function(){var S=QB1(!0);if(S){var c=_.Yu(),Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();_.w6(Q,c,S,S.childNodes.length).select()}},
maybeBackspaceChip_:function(){var S=QB1(!1);if(S){var c=_.Yu(),Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();_.w6(Q,c,S,0).select()}},
maybeBackspaceChipWordMode_:function(S){var c=_.Yu();if(c.isCollapsed()){var Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();var f=f8g(Q,c,!0);f&&(_.w6(Q,c,f,0).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(S){var c=_.Yu();if(c.isCollapsed()){var Q=c.JSC$9293_getStartNode();c=c.JSC$9293_getStartOffset();var f=f8g(Q,c,!1);f&&(_.w6(Q,c,f,f.childNodes.length).select(),document.execCommand("delete"),S.preventDefault(),S.stopImmediatePropagation())}},
onContentClick:function(S){S.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(S){S.defaultPrevented||S.currentTarget.tagName==="YTD-COMMENT-INPUT"&&yT(S.target)&&S.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.Ur(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.Ur(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(S,c){S=otT(S,this.emojiManager,c).cloneNode(!0);for(c=S.firstChild;c;)if(c.nodeType!==1)c=c.nextSibling;else switch(c.tagName){case "BR":var Q=_.hM();_.Qpz(Q,c);c=Q.nextSibling;break;case "DIV":(Q=c.lastChild)&&c.nextSibling&&_.sR(_.hM(),Q);c.previousSibling&&(c.previousSibling.nodeType===1||c.previousSibling.nodeType===3&&!c.previousSibling.textContent.endsWith("\n"))&&_.wO(_.hM(),c);Q&&Q.nodeName==="BR"&&_.K9(Q);Q=c;c.hasChildNodes()?(c=c.firstChild,
_.fTi(Q)):(c=c.nextSibling,_.K9(Q));break;default:c=c.nextSibling}return UOU(S)},
setTextAreaValue:function(S){S||(S="");var c=this.getEditableFormattedString_();c.text="";this.getEditableTextArea_().innerText="";typeof S==="string"&&(S={runs:[{text:S}]});c.text=S},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();NA=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var S=this.getEditableTextArea_();S&&(_.GS(S,S.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.WY("HTML_DIR")==="rtl"){var S=this.getEditableTextArea_(),c=this.getTextAreaValue()!==""?"auto":"rtl";S.setAttribute("dir",c)}},
handleInputEvent_:function(){var S=null;if(this.isEmojiButtonDisplayed){var c=this.getInputRange_();c&&(S=this.emojiInput.retrieveTextBeforeRange(c))}this.insertText_(S,!0);this.updateCharCount_();S=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=S.scrollHeight>S.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var S=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:S})},
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(S){this.isEmojiButtonDisplayed&&(S.preventDefault(),S.stopImmediatePropagation(),S=S.clipboardData.getData("text/plain"),this.insertText_(S,!1,!1),_.Az(this.hostElement,"input"))},
insertText_:function(S,c,Q){c=c===void 0?!1:c;Q=Q===void 0?!0:Q;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&S){var f=this.getInputRange_().cloneRange();this.emojiManager&&f&&(c&&this.emojiInput.offsetStartOfRangeBy(f,S.length),this.insertTextWithEmojis_(f,S,Q),yzO(this.getEditableTextArea_().lastChild)||(f=this.getInputRange_().cloneRange()),f&&(this.emojiInput.updateSuggestions(f,S),this.updateSuggestionOffset_(f)))}},
getSimpleString:_.Em,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(S){return S?"focused":"not-focused"},
computePlaceholderText_:function(S){return this.getSimpleString(S)},
computeEditableText_:function(S){return this.getSimpleString(S)},
onPrefilledContentDismissed_:function(S){S.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(S,c){S?this.fire("yt-autonav-pause-focus"):c!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(S){var c=this.getEditableTextArea_();[].concat(_.Hs(S.dataTransfer.items)).forEach(function(Q){Q.kind==="string"&&Q.type.match("^text/plain")&&Q.getAsString(function(f){c.appendChild(document.createTextNode(f))})});
S.preventDefault()},
preventDefault_:function(S){S.preventDefault()},
onSuggestionInsert_:function(S){this.insertTextWithEmojis_(S.detail.range,S.detail.text)},
onEmojiSuggestionClick_:function(S){this.emojiInput.insertSuggestion(S.detail)},
updateSuggestionOffset_:function(S){if(this.emojiInput&&_.Ur(this.emojiInput).querySelector("#dropdown")){var c=this.getEditableTextArea_().getBoundingClientRect().bottom,Q=S.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(c-Q)+5;c=this.getEditableTextArea_().getBoundingClientRect().left;S=S.getBoundingClientRect().left-c;_.Ur(this.emojiInput).querySelector("#dropdown").style.marginLeft=S+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.ge("yt-post"));return this.localStorage}});var KA=function(){var S=_.W.apply(this,arguments)||this;S.currentCommentOptionIndex=0;S.isEmojiPickerDisplayed=!1;S.emojiManager=_.g4;S.isUgcEmpty=!1;S.userGeneratedCommentChangedHandler=function(){_.Az(S.hostElement,"ytd-pdg-user-generated-comment-changed");S.isEmojiYtdCommentInputEnabled&&(S.isUgcEmpty=!S.ytdCommentInputEl.getTextAreaValue())};
S.pasteHandler=function(c){c.preventDefault();c.stopImmediatePropagation();var Q;if(c=(Q=c.clipboardData)==null?void 0:Q.getData("text/plain"))Q=document.getSelection().getRangeAt(0),Q.collapsed||Q.deleteContents(),c=document.createTextNode(c),Q.insertNode(c),Q.selectNodeContents(c),Q.collapse(!1),c=window.getSelection(),c.removeAllRanges(),c.addRange(Q)};
S.onDocumentClick=function(c){if(S.isEmojiPickerDisplayed){var Q,f,U;!(c.target instanceof Node)||(Q=c.composedPath())!=null&&Q.includes(S.editableTextEl)||(f=c.composedPath())!=null&&f.includes(S.emojiButtonEl)||(U=c.composedPath())!=null&&U.includes(S.emojiPickerEl)||(S.isEmojiPickerDisplayed=!1)}};
return S};
_.C(KA,_.W);_.J=KA.prototype;_.J.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.J.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.J.detached=function(){var S;(S=this.contentEl)==null||S.removeEventListener("input",this.userGeneratedCommentChangedHandler);var c;(c=this.contentEl)==null||c.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.J.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.J.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var S;this.contentEl.textContent=this.rendererBehavior.getSimpleString((S=this.data)==null?void 0:S.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.J.reloadEmojis=function(){this.emojiPickerEl&&_.Y(this.emojiPicker,_.Yns)&&this.emojiPickerEl.updateEmojiCategories()};
_.J.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.Or(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.J.handleBackgroundColorStyling=function(){var S;if((S=this.currentCommentOption)==null?0:S.commentBackgroundColorArgb){var c;_.Or(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.gh((c=this.currentCommentOption)==null?void 0:c.commentBackgroundColorArgb)})}else _.Or(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.J.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var S;(S=this.contentEl)==null||S.focus()}};
_.J.onEditButtonClick=function(S){var c=document.getSelection();c&&this.contentEl&&(S.stopPropagation(),S.preventDefault(),c.selectAllChildren(this.contentEl),c.collapseToEnd())};
_.J.onContentDrop=function(S){var c=this;if(S.dataTransfer){S=_.A(S.dataTransfer.items);for(var Q=S.next();!Q.done;Q=S.next())Q=Q.value,Q.kind==="string"&&Q.type.match("^text/plain")&&Q.getAsString(function(f){var U;(U=c.contentEl)==null||U.appendChild(document.createTextNode(f))})}};
_.J.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.J.getUserGeneratedCommentText=function(){var S,c=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(S=this.contentEl)==null?void 0:S.textContent;return c?c.trim():""};
_.J.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.J.onEmojiSelect=function(S){this.ytdCommentInputEl.onEmojiSelect(S)};
_.Rh.Object.defineProperties(KA.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.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 S;return!((S=this.currentCommentOption)==null||!S.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var S;if(_.Y((S=this.currentCommentOption)==null?void 0:S.chipRenderer,_.ZwJ)){var c;return _.Y((c=this.currentCommentOption)==null?void 0:c.chipRenderer,_.ZwJ)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var S,c;return((S=this.data)==null?0:S.commentOptionRenderers)?_.Y((c=this.data)==null?void 0:c.commentOptionRenderers[this.superThanksSelectedTierEntity.index],Msg):void 0}var Q,f;return((Q=this.data)==null?0:Q.commentOptionRenderers)?_.Y((f=this.data)==null?void 0:f.commentOptionRenderers[this.currentCommentOptionIndex],Msg):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var S;return this.rendererBehavior.getSimpleString((S=this.data)==null?void 0:S.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var S;return this.rendererBehavior.getSimpleString((S=this.data)==null?void 0:S.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.commentDialog,_.bW_))==null?void 0:c.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.commentDialog,_.bW_))==null?void 0:c.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=_.Y((S=this.data)==null?void 0:S.commentDialog,_.bW_))==null?void 0:c.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(c=_.Y((S=this.data)==null?void 0:S.commentDialog,_.bW_))==null?void 0:c.emojiPicker;if(!_.Y(Q,_.Yns)||!_.Y(Q,_.Yns).categories)return!1;S=function(a){return a.emojiPickerCategoryRenderer?a.emojiPickerCategoryRenderer.emojiIds&&a.emojiPickerCategoryRenderer.emojiIds.length>0:a.emojiPickerUpsellCategoryRenderer?a.emojiPickerUpsellCategoryRenderer.emojis&&a.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var f,U;return((f=_.Y(Q,_.Yns))==null?0:(U=f.categories)==null?0:U.find(S))?!0:!1}}});
KA.prototype.onEmojiSelect=KA.prototype.onEmojiSelect;KA.prototype.dataChanged=KA.prototype.dataChanged;KA.prototype.currentCommentOptionChanged=KA.prototype.currentCommentOptionChanged;_.d([_.p(_.st),_.P("design:type",Object)],KA.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KA.prototype,"rendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],KA.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.nU("#content-dom-if"),_.P("design:type",_.hq)],KA.prototype,"contentDomIfEl",void 0);_.d([_.nU("#content-no-emojis"),_.P("design:type",HTMLElement)],KA.prototype,"contentEl",void 0);_.d([_.nU("#container"),_.P("design:type",HTMLElement)],KA.prototype,"containerEl",void 0);_.d([_.nU("#comment-chip-container"),_.P("design:type",HTMLElement)],KA.prototype,"paidCommentChipContainerEl",void 0);_.d([_.nU("#text-input"),_.P("design:type",HTMLElement)],KA.prototype,"editableTextEl",void 0);
_.d([_.nU("#emoji-button"),_.P("design:type",HTMLElement)],KA.prototype,"emojiButtonEl",void 0);_.d([_.nU("#emoji-picker > yt-emoji-picker-renderer"),_.P("design:type",Object)],KA.prototype,"emojiPickerEl",void 0);_.d([_.nU("#text-input > ytd-comment-input"),_.P("design:type",Object)],KA.prototype,"ytdCommentInputEl",void 0);_.d([_.Z(),_.P("design:type",Object)],KA.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],KA.prototype,"currentCommentOptionIndex",void 0);
_.d([_.Z({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aEZ}),_.P("design:type",Object)],KA.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.Z(),_.P("design:type",Object)],KA.prototype,"isEmojiPickerDisplayed",void 0);_.d([_.Z(),_.P("design:type",Object)],KA.prototype,"emojiManager",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],KA.prototype,"isUgcEmpty",void 0);
_.d([_.B0("currentCommentOption"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KA.prototype,"currentCommentOptionChanged",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],KA.prototype,"dataChanged",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],KA.prototype,"isEmojiYtdCommentInputEnabled",null);
_.d([_.M("data.title"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"title",null);_.d([_.M("data.authorText"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"channelName",null);_.d([_.M("data.commentOptionRenderers","currentCommentOption"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],KA.prototype,"shouldShowPaidCommentChipRenderer",null);
_.d([_.M("data.commentOptionRenderers","currentCommentOption"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"paidCommentChipRenderer",null);_.d([_.M("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"currentCommentOption",null);
_.d([_.M("data.defaultCommentText","superThanksSelectedTierEntity"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"commentText",null);_.d([_.M("data.placeholderText"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"placeholderText",null);_.d([_.M("data.commentDialog.commentDialogRenderer.editableText"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"editableText",null);
_.d([_.M("data.commentDialog.commentDialogRenderer.emojiButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"emojiButton",null);_.d([_.M("data.commentDialog.commentDialogRenderer.emojiPicker"),_.P("design:type",Object),_.P("design:paramtypes",[])],KA.prototype,"emojiPicker",null);
_.d([_.M("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],KA.prototype,"isEmojiButtonDisplayed",null);_.d([_.FV("yt-emoji-select"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],KA.prototype,"onEmojiSelect",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],KA);
_.k(KA,"ytd-pdg-comment-preview-renderer",function(){if(H3g!==void 0)return H3g;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return H3g=S},{mode:2});var peN;var $6=function(){var S=_.W.apply(this,arguments)||this;S.selected=!1;return S};
_.C($6,_.W);_.J=$6.prototype;_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.J.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.J.dataChanged=function(){this.data&&(_.Jq(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.Or(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.gh(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.gh(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.J.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.J.onClick=function(){this.logClick()};
_.J.onKeyboardSelect=function(){_.Az(this.hostElement,"tap");this.onClick()};
_.J.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
$6.prototype.onClick=$6.prototype.onClick;$6.prototype.selectedChanged=$6.prototype.selectedChanged;$6.prototype.dataChanged=$6.prototype.dataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],$6.prototype,"componentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],$6.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.lc),_.P("design:type",Object)],$6.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.p(_.rM),_.P("design:type",Object)],$6.prototype,"ironSelectableBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$6.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],$6.prototype,"shownThumbnail",void 0);_.d([_.Z(),_.P("design:type",Object)],$6.prototype,"basePriceText",void 0);_.d([_.Z(),_.P("design:type",Object)],$6.prototype,"purchaseCommand",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],$6.prototype,"selected",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$6.prototype,"dataChanged",null);_.d([_.B0("selected"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$6.prototype,"selectedChanged",null);_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],$6.prototype,"onClick",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],$6);
_.k($6,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(peN!==void 0)return peN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return peN=S},{mode:1});var uT=function(){var S=_.W.apply(this,arguments)||this;S.selectedItemIndex=0;S.buyButtonDisabled=!1;return S};
_.C(uT,_.W);_.J=uT.prototype;
_.J.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]]"}}}}}};
_.J.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var S;var c=(S=_.Y(this.data.colorSlider,s71))==null?void 0:S.notches[this.selectedItemIndex].purchaseCommand}else{var Q;c=(Q=_.Y(this.data.selectableItemButtons[this.selectedItemIndex],ZOB))==null?void 0:Q.purchaseCommand}if(c){S=_.Y(c,_.ICh);S.productData||(S.productData={});var f;S.productData={pdgData:{commentMessageText:(f=this.commentPreviewRenderer)==null?void 0:f.getUserGeneratedCommentText()}};
_.Az(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(c)}}};
_.J.dataChanged=function(){if(this.data){_.g4.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.LP_(_.g4,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.g4.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var S;this.buyButtonDisabled=!((S=_.Y(this.data.commentPreview,iOB))==null||!S.placeholderText);this.updatePriceSelectorStatus();var c;if((c=this.data)==null?0:c.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;S=[];this.data.preloadImages&&(S=this.data.preloadImages);
S=S.map(function(Q){return _.U2(Q.thumbnails,1920)});
S=_.A(S);for(c=S.next();!c.done;c=S.next())(c=c.value)&&_.qlo(c).thenCatch(function(){_.i5(Error("nl"))})}};
_.J.superThanksSelectedTierEntityChanged=function(){var S;(this==null?void 0:(S=this.superThanksSelectedTierEntity)==null?void 0:S.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.J.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.J.updatePriceSelectorStatus=function(){this.isColorSlider?(_.Ur(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.Ur(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.Ur(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.Ur(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.J.closeBuyFlow=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.J.onUserGeneratedContentChanged=function(){var S;this.buyButtonDisabled=!((S=this.commentPreviewRenderer)==null?0:S.getUserGeneratedCommentText())};
_.J.updateSelectedItemIndexFromBinding=function(S){this.selectedItemIndex=S.detail.value};
_.Rh.Object.defineProperties(uT.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var S;return!((S=this.data)==null||!S.disclaimerText)}}});
uT.prototype.onUserGeneratedContentChanged=uT.prototype.onUserGeneratedContentChanged;uT.prototype.closeBuyFlow=uT.prototype.closeBuyFlow;uT.prototype.selectedItemIndexChanged=uT.prototype.selectedItemIndexChanged;uT.prototype.superThanksSelectedTierEntityChanged=uT.prototype.superThanksSelectedTierEntityChanged;uT.prototype.dataChanged=uT.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uT.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],uT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],uT.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],uT.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],uT.prototype,"selectedItemIndex",void 0);_.d([_.Z(),_.P("design:type",Boolean)],uT.prototype,"isColorSlider",void 0);
_.d([_.Z(),_.P("design:type",Object)],uT.prototype,"buyButtonDisabled",void 0);_.d([_.Z({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:aEZ}),_.P("design:type",Object)],uT.prototype,"superThanksSelectedTierEntity",void 0);_.d([_.nU("ytd-pdg-comment-preview-renderer"),_.P("design:type",Object)],uT.prototype,"commentPreviewRenderer",void 0);_.d([_.p(_.st),_.P("design:type",Object)],uT.prototype,"ytdReduxBehavior",void 0);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uT.prototype,"dataChanged",null);_.d([_.B0("superThanksSelectedTierEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uT.prototype,"superThanksSelectedTierEntityChanged",null);_.d([_.B0("selectedItemIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uT.prototype,"selectedItemIndexChanged",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uT.prototype,"closeBuyFlow",null);_.d([_.FV("ytd-pdg-user-generated-comment-changed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uT.prototype,"onUserGeneratedContentChanged",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],uT.prototype,"isDisclaimerTextShown",null);
_.d([_.e({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],uT);
_.k(uT,"yt-super-vod-buy-flow-content-renderer",function(){if(YuE!==void 0)return YuE;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return YuE=S},{mode:1});var hTV;var ji=function(){var S=_.W.apply(this,arguments)||this;S.lottieAnimationRef={};return S};
_.C(ji,_.W);_.J=ji.prototype;_.J.created=function(){_.k1.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.xn(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.J.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.Az(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.J.detached=function(){this.autoCloseJobId&&_.Mq.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.xn(this,this.onPopupIronOverlayOpened))};
_.J.dataChanged=function(){var S=this;this.data&&this.data.autoCloseDelay&&(_.XF(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.Xi(_.Mq,function(){S.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.Or(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.J.onDOMLoadedLottie=function(){var S=this,c,Q,f=Number((c=this.data)==null?void 0:(Q=c.autoCloseDelay)==null?void 0:Q.seconds)||0;this.fadeOutJobId=_.Xi(_.Mq,function(){S.lottiePlayerEl.classList.add("fadeout")},(f-.25)*1E3);
this.autoCloseJobId=_.Xi(_.Mq,function(){S.closePopup()},f*1E3)};
_.J.openPopup=function(){this.ironOverlayBehavior.open()};
_.J.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.XF(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.FF(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.fl().resolve(_.U8).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.Mq.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.Mq.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.J.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var S,c;(S=this.lottieAnimationRef)==null||(c=S.lottieEl)==null||c.destroy();S=this.data.lottie;var Q,f;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:S.url+"_"+Math.random(),path:S.url,autoplay:!0,loop:(f=(Q=S.settings)==null?void 0:Q.loop)!=null?f:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.Rh.Object.defineProperties(ji.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var S,c;return!!((S=this.data)==null?0:(c=S.lottie)==null?0:c.url)}}});
ji.prototype.maybeInitializeLottie=ji.prototype.maybeInitializeLottie;ji.prototype.dataChanged=ji.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ji.prototype,"rendererBehavior",void 0);_.d([_.p(_.LO),_.P("design:type",Object)],ji.prototype,"ironOverlayBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ji.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],ji.prototype,"lottiePlayerProps",void 0);
_.d([_.Z(),_.P("design:type",Object)],ji.prototype,"lottieAnimationRef",void 0);_.d([_.nU("ytd-lottie-player"),_.P("design:type",HTMLElement)],ji.prototype,"lottiePlayerEl",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ji.prototype,"dataChanged",null);_.d([_.M("data"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],ji.prototype,"hasLottieAnimation",null);
_.d([_.B0("data.lottie.url"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ji.prototype,"maybeInitializeLottie",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],ji);
_.k(ji,"ytd-desktop-image-overlay-renderer",function(){if(hTV!==void 0)return hTV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return hTV=S},{mode:1});var qup;var lT=function(){return _.W.apply(this,arguments)||this};
_.C(lT,_.W);_.J=lT.prototype;_.J.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"}}}}};
_.J.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",_.xn(this,this.closePopup))};
_.J.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.xn(this,this.closePopup))};
_.J.dataChanged=function(){_.Oz(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.Y(this.data.header,wx8)&&(this.hasBackgroundBanner=!!_.Y(this.data.header,wx8).backgroundBanner)};
_.J.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.xn(this,this.closePopup))};
_.J.closePopup=function(){this.data&&this.data.onCloseCommand&&_.xt(this.hostElement,[this.data.onCloseCommand])};
lT.prototype.handleBuyflowSelectionSubmitted=lT.prototype.handleBuyflowSelectionSubmitted;lT.prototype.dataChanged=lT.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lT.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lT.prototype,"data",void 0);
_.d([_.Z({value:!0,reflectToAttribute:!0}),_.P("design:type",Boolean)],lT.prototype,"hasBackgroundBanner",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lT.prototype,"dataChanged",null);_.d([_.FV("yt-pdg-buy-flow-selection-submitted"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lT.prototype,"handleBuyflowSelectionSubmitted",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],lT);
_.k(lT,"ytd-pdg-buy-flow-renderer",function(){if(qup!==void 0)return qup;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return qup=S},{mode:1});var TVE;var Y6=function(){var S=_.W.apply(this,arguments)||this;S.isOpen=!1;S.isPlaylistCreated=!1;return S};
_.C(Y6,_.W);_.J=Y6.prototype;_.J.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.J.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.Az(this.hostElement,"yt-refit")};
_.J.onCreateTap=function(){var S=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.xt(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(c,Q){if(!_.u("killswitch_ep_in_create_playlist_response")&&(Q==null?0:Q.actions))for(c=_.A(Q.actions),Q=c.next();!Q.done;Q=c.next())Q=Q.value,_.Y(Q,_.M7)&&S.ytComponentBehavior.resolveCommand(Q)}}]),this.isPlaylistCreated=!0)};
_.J.onKeydown=function(S){if(S.keyCode===13)this.onCreateTap()};
_.J.onServiceRequestCompleted=function(S){S.stopPropagation();_.XF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.J.computePrivacyBadge=function(S){return S?[{metadataBadgeRenderer:S}]:[]};
Y6.prototype.onServiceRequestCompleted=Y6.prototype.onServiceRequestCompleted;Y6.prototype.onKeydown=Y6.prototype.onKeydown;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Y6.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Y6.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Y6.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Y6.prototype,"isOpen",void 0);
_.d([_.Z(),_.P("design:type",Object)],Y6.prototype,"isPlaylistCreated",void 0);_.d([_.Z({value:{REQUIRED_LABEL:_.K8("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.K8("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.P("design:type",Object)],Y6.prototype,"addToStrings",void 0);_.d([_.Z({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.P("design:type",Array)],Y6.prototype,"privacyBadge",void 0);
_.d([_.nU("#privacy-input"),_.P("design:type",Object)],Y6.prototype,"privacyInput",void 0);_.d([_.nU("#name-input"),_.P("design:type",Object)],Y6.prototype,"nameInput",void 0);_.d([_.FV("keydown"),_.P("design:type",Function),_.P("design:paramtypes",[KeyboardEvent]),_.P("design:returntype")],Y6.prototype,"onKeydown",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Y6.prototype,"onServiceRequestCompleted",null);
_.d([_.e({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],Y6);
_.k(Y6,"ytd-add-to-playlist-create-renderer",function(){if(TVE!==void 0)return TVE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return TVE=S},{mode:1});var weN;var sP0;var CA=function(){var S=_.W.apply(this,arguments)||this;S.transferState="TRANSFER_STATE_UNKNOWN";return S};
_.C(CA,_.W);CA.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
CA.prototype.onCheckboxChange=function(S){var c=this;this.data&&_.e$(this,"yt-playlist-checkbox-changed",function(){var Q=_.VI(S).checked?c.data.addToPlaylistServiceEndpoint:c.data.removeFromPlaylistServiceEndpoint;Q&&_.fl().resolve(_.U8).resolveCommand(Q,{form:{element:c.hostElement}});_.u("dl_playlist_killswitch")||c.transferState!=="TRANSFER_STATE_UNKNOWN"&&c.transferState!=="TRANSFER_STATE_FAILED"&&c.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:c.data.playlistId,action:"ACTION_SYNC"}})},
100)};
CA.prototype.computeIconType=function(S){return S?"yt-icons:"+S.toLowerCase():null};
CA.prototype.dataChanged=CA.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CA.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CA.prototype,"data",void 0);_.d([_.p(_.st),_.P("design:type",Object)],CA.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],CA.prototype,"ytComponentBehavior",void 0);_.d([_.nU("#checkbox"),_.P("design:type",HTMLInputElement)],CA.prototype,"checkbox",void 0);
_.d([_.Z({selector:_.Z8,selectorArgs:["data.playlistId"]}),_.P("design:type",String)],CA.prototype,"transferState",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CA.prototype,"dataChanged",null);_.d([_.e({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],CA);
_.k(CA,"ytd-playlist-add-to-option-renderer",function(){if(sP0!==void 0)return sP0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return sP0=S},{mode:1});_.Qu(JbE);_.xd(JbE,"ytd-menu-title-renderer",{propNames:["data"]});var Hh=function(){var S=_.W.apply(this,arguments)||this;S.addToStrings={ADD_TO_DROPDOWN_LABEL:_.K8("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};S.closeButtonAriaLabel=_.K8("SBOX_INAPPROPRIATE_CANCEL");S.dialog=_.u("desktop_add_to_playlist_renderer_dialog_popup");return S};
_.C(Hh,_.W);_.J=Hh.prototype;_.J.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"}}}};
_.J.onPopupOpened=function(){_.a1(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.J.onPopupClosed=function(){_.a1(this.playlists,"scrollable",!1)};
_.J.computeAriaLabel=function(){var S;if(this==null?0:(S=this.data)==null?0:S.actions){S=_.A(this.data.actions);for(var c=S.next();!c.done;c=S.next())if(c=c.value,c.menuTitleRenderer)return _.Em(c.menuTitleRenderer.title)}};
_.J.onTapClose=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.Rh.Object.defineProperties(Hh.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var S;if(this==null?0:(S=this.data)==null?0:S.actions){S=_.A(this.data.actions);for(var c=S.next();!c.done;c=S.next())if(c=c.value,c.menuTitleRenderer)return c.menuTitleRenderer}return!1}}});
Hh.prototype.onPopupClosed=Hh.prototype.onPopupClosed;Hh.prototype.onPopupOpened=Hh.prototype.onPopupOpened;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Hh.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],Hh.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Hh.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Hh.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Hh.prototype,"addToStrings",void 0);_.d([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.P("design:type",String)],Hh.prototype,"ariaLabel",void 0);_.d([_.Z(),_.P("design:type",String)],Hh.prototype,"closeButtonAriaLabel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Hh.prototype,"dialog",void 0);
_.d([_.nU("#playlists"),_.P("design:type",HTMLElement)],Hh.prototype,"playlists",void 0);_.d([_.nU("ytd-add-to-playlist-create-renderer"),_.P("design:type",Object)],Hh.prototype,"createRenderer",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Hh.prototype,"menuTitleRenderer",null);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hh.prototype,"onPopupOpened",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Hh.prototype,"onPopupClosed",null);_.d([_.e({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],Hh);
_.k(Hh,"ytd-add-to-playlist-renderer",function(){if(weN!==void 0)return weN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return weN=S},{mode:1});var Mj8;var D7=function(){var S=_.W.apply(this,arguments)||this;S.isPlaylistEditComplete=!1;S.isCollabEngagementDisabled=!1;S.closeButtonAriaLabel=_.K8("SBOX_INAPPROPRIATE_CANCEL");S.saveButton={title:_.K8("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"};S.onValueChanged=function(){S.updateSaveButtonState();S.computeCollabEngagementDisabled()};
return S};
_.C(D7,_.W);_.J=D7.prototype;_.J.attached=function(){this.JSC$18354_scroller&&(this.JSC$18354_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18354_scroller.attached&&typeof this.JSC$18354_scroller.attached==="function"&&this.JSC$18354_scroller.attached())};
_.J.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.J.onPopupClosed=function(){this.reset()};
_.J.close=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.J.onClickSave=function(){var S=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var c=[];this.nameInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&c.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var Q=Number(this.privacyInput.value);isNaN(Q)||c.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:Q})}this.votingInput.value!==null&&(Q=this.votingInput.value)&&c.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:Q});if(c.length>0){var f;_.Y((f=this.data)==null?void 0:f.updateSettingsEndpoint,_.MB).actions=c;var U;if((U=this.data)==null?0:U.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){S.close()}}}),this.isPlaylistEditComplete=!0}}};
_.J.computePrivacyBadge=function(S){return S?[{metadataBadgeRenderer:S}]:[]};
_.J.computeEditorData=function(S){var c,Q;return S==null?void 0:(c=S.sections)==null?void 0:(Q=c[0])==null?void 0:Q.playlistSettingsEditorCasualSectionRenderer};
_.J.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.J.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}}}}}};
_.J.computeAriaLabel=function(){var S,c,Q,f=(S=this.data)==null?void 0:(c=S.sections)==null?void 0:(Q=c[0])==null?void 0:Q.playlistSettingsEditorCasualSectionRenderer;return _.Em(f==null?void 0:f.title)};
_.J.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"}))};
_.J.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.J.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.J.isNameChanged=function(){var S,c,Q;return(((S=this.editorData)==null?void 0:(c=S.name)==null?void 0:(Q=c.textInputFormFieldRenderer)==null?void 0:Q.value)||"")!==(this.nameInput.value||"")};
_.J.isDescriptionChanged=function(){var S,c,Q;return(((S=this.editorData)==null?void 0:(c=S.description)==null?void 0:(Q=c.textInputFormFieldRenderer)==null?void 0:Q.value)||"")!==(this.descriptionInput.value||"")};
_.J.isPrivacyChanged=function(){var S,c,Q,f,U,a,X,z;return((X=(S=this.editorData)==null?void 0:(c=S.privacy)==null?void 0:(Q=c.dropdownFormFieldRenderer)==null?void 0:(f=Q.dropdown)==null?void 0:(U=f.dropdownRenderer)==null?void 0:(a=U.entries)==null?void 0:a.find(function(x){var I;return x==null?void 0:(I=x.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(z=X.privacyDropdownItemRenderer)==null?void 0:z.int32Value)!==this.privacyInput.value};
_.J.isVotingChanged=function(){var S,c,Q,f,U,a,X,z;return((X=(S=this.editorData)==null?void 0:(c=S.voting)==null?void 0:(Q=c.dropdownFormFieldRenderer)==null?void 0:(f=Q.dropdown)==null?void 0:(U=f.dropdownRenderer)==null?void 0:(a=U.entries)==null?void 0:a.find(function(x){var I;return x==null?void 0:(I=x.privacyDropdownItemRenderer)==null?void 0:I.isSelected}))==null?void 0:(z=X.privacyDropdownItemRenderer)==null?void 0:z.int32Value)!==this.votingInput.value};
D7.prototype.onPopupClosed=D7.prototype.onPopupClosed;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],D7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],D7.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],D7.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],D7.prototype,"ytRendererStamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],D7.prototype,"data",void 0);_.d([_.Z({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.P("design:type",Array)],D7.prototype,"privacyBadge",void 0);_.d([_.Z({computed:"computeEditorData(data)"}),_.P("design:type",Object)],D7.prototype,"editorData",void 0);_.d([_.Z(),_.P("design:type",Object)],D7.prototype,"isPlaylistEditComplete",void 0);_.d([_.Z(),_.P("design:type",Object)],D7.prototype,"isCollabEngagementDisabled",void 0);
_.d([_.Z({value:{REQUIRED_LABEL:_.K8("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.K8("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.P("design:type",Object)],D7.prototype,"addToStrings",void 0);_.d([_.Z({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.P("design:type",String)],D7.prototype,"ariaLabel",void 0);_.d([_.Z(),_.P("design:type",String)],D7.prototype,"closeButtonAriaLabel",void 0);
_.d([_.Z(),_.P("design:type",Object)],D7.prototype,"saveButton",void 0);_.d([_.nU("#name-input"),_.P("design:type",Object)],D7.prototype,"nameInput",void 0);_.d([_.nU("#description-input"),_.P("design:type",Object)],D7.prototype,"descriptionInput",void 0);_.d([_.nU("#privacy-input"),_.P("design:type",Object)],D7.prototype,"privacyInput",void 0);_.d([_.nU("#voting-input"),_.P("design:type",Object)],D7.prototype,"votingInput",void 0);
_.d([_.nU("#scroller"),_.P("design:type",Object)],D7.prototype,"JSC$18354_scroller",void 0);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],D7.prototype,"onPopupClosed",null);_.d([_.Z(),_.P("design:type",Object)],D7.prototype,"onValueChanged",void 0);_.d([_.e({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],D7);
_.k(D7,"ytd-playlist-settings-editor-renderer",function(){if(Mj8===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);Mj8=S}S=Mj8;return S},{mode:1});var i38;_.i8("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var pA=function(){return _.W.apply(this,arguments)||this};
_.C(pA,_.W);_.J=pA.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.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 S=this.get("data.nextButton.buttonRenderer.navigationEndpoint");S&&(this.nextNavigationEndpoint=S,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.J.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 S={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",S)}}};
_.J.onPopupOpened=function(S){S.detail!==this&&S.detail!==this.hostElement||!_.u("enable_premium_voluntary_pause")||_.XF(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.J.onNextButtonTap=function(){var S=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);S&&this.ytdOpenPopupBehavior.openPopup(S)};
_.J.updateSelectedResponseIndexFromBinding=function(S){this.selectedResponseIndex=S.detail.value};
pA.prototype.onPopupOpened=pA.prototype.onPopupOpened;pA.prototype.onSelectedResponseIndexChange=pA.prototype.onSelectedResponseIndexChange;pA.prototype.dataChanged=pA.prototype.dataChanged;_.d([_.p(_.Vv),_.P("design:type",Object)],pA.prototype,"ytdOpenPopupBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pA.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],pA.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],pA.prototype,"selectedResponseIndex",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pA.prototype,"dataChanged",null);_.d([_.B0("selectedResponseIndex"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],pA.prototype,"onSelectedResponseIndexChange",null);
_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],pA.prototype,"onPopupOpened",null);_.d([_.e({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],pA);
_.k(pA,"ytd-red-cancel-survey-renderer",function(){if(i38!==void 0)return i38;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return i38=S},{mode:1});var Z3U;var hF=function(){var S=_.W.apply(this,arguments)||this;S.closeButtonAriaLabel=_.K8("SBOX_INAPPROPRIATE_CANCEL");return S};
_.C(hF,_.W);hF.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
hF.prototype.onClickClose=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hF.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],hF.prototype,"rendererStamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hF.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],hF.prototype,"closeButtonAriaLabel",void 0);_.d([_.e({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],hF);
_.k(hF,"ytd-search-filter-options-dialog-renderer",function(){if(Z3U!==void 0)return Z3U;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Z3U=S},{mode:1});var G0p;var Xq0=function(){return function(S){S=S.availabilityType;return S===void 0||S==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||S==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var qA=function(){var S=_.W.apply(this,arguments)||this;S.qualityOptions=[];S.upsellOptions=[];S.showUpsellSection=!1;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.rememberSettingsChecked=!1;return S};
_.C(qA,_.W);_.J=qA.prototype;_.J.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}}}}};
_.J.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.J.updateQualityOptions=function(){if(this.formats===void 0)_.XF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var S=[],c=[];this.showUpsellSection=!1;for(var Q=_.A(this.formats),f=Q.next();!f.done;f=Q.next())(f=f.value)&&(f.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?c.push(f):S.push(f));S.length&&(this.qualityOptions=AbV(S));c.length&&(this.showUpsellSection=!0,this.upsellOptions=AbV(c))}};
_.J.updateRememberString=function(){if(this.downloadQualityPickerEntity)var S=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var c;S=(c=this.data)==null?void 0:c.premiumRememberSettingString}else{var Q;S=(Q=this.data)==null?void 0:Q.rememberSettingString}S=S===void 0?_.K8("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):S;this.rememberSettingsCheckboxRenderer={title:_.fK(S),disabled:!1}};
_.J.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.Rh.Object.defineProperties(qA.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var S;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(S=this.data)==null?void 0:S.qualityFormats}}});
qA.prototype.updateRememberString=qA.prototype.updateRememberString;qA.prototype.updateQualityOptions=qA.prototype.updateQualityOptions;qA.prototype.dataChanged=qA.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],qA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],qA.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qA.prototype,"data",void 0);
_.d([_.p(_.st),_.P("design:type",Object)],qA.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Boolean)],qA.prototype,"selectedUpsellQuality",void 0);_.d([_.Z({computed:"computeIcon_(data.premiumIcon)",value:""}),_.P("design:type",String)],qA.prototype,"premiumIcon",void 0);_.d([_.Z({selector:QR2,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.P("design:type",Object)],qA.prototype,"downloadQualityPickerEntity",void 0);
_.d([_.Z(),_.P("design:type",Array)],qA.prototype,"qualityOptions",void 0);_.d([_.Z(),_.P("design:type",Array)],qA.prototype,"upsellOptions",void 0);_.d([_.Z(),_.P("design:type",Object)],qA.prototype,"showUpsellSection",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],qA.prototype,"darkerDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],qA.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.d([_.nU("#remember-settings"),_.P("design:type",HTMLInputElement)],qA.prototype,"rememberSettingsCheckbox",void 0);_.d([_.Z(),_.P("design:type",Object)],qA.prototype,"rememberSettingsChecked",void 0);_.d([_.Z(),_.P("design:type",Function)],qA.prototype,"onRememberSettingsCheckedChanged",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qA.prototype,"dataChanged",null);
_.d([_.B0("downloadQualityPickerEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qA.prototype,"updateQualityOptions",null);_.d([_.B0("selectedUpsellQuality"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],qA.prototype,"updateRememberString",null);_.d([_.e({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],qA);
_.k(qA,"ytd-download-quality-selector-content",function(){if(G0p!==void 0)return G0p;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return G0p=S},{mode:1});var Wh8;var TQ=function(){var S=_.W.apply(this,arguments)||this;S.selectedUpsellQuality=!1;S.qualityOptions=[];S.darkerDarkTheme=_.u("web_darker_dark_theme");S.useUpsellDismissAlternate=_.u("use_not_now_dl_upsell_dismiss_cta");S.shouldShowAlternateUpsellDimiss=!1;S.rememberSettings=!1;S.rememberSettingsChecked=!1;S.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};S.rememberSettingsCheckedChanged=function(c){S.rememberSettingsChecked=c};
return S};
_.C(TQ,_.W);_.J=TQ.prototype;
_.J.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fK(_.K8("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.fK(_.K8("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.fK(_.K8("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.fK(_.K8("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.J.updateQualityOptions=function(){this.formats===void 0?_.XF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=AbV(this.formats)};
_.J.onQualityOptionsSelect=function(S){if(this.qualityOptions&&S){S!==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 c=_.A(this.qualityOptions.entries()),Q=c.next();!Q.done;Q=
c.next()){Q=_.A(Q.value);var f=Q.next().value;Q=Q.next().value;var U=void 0,a=void 0;if(((U=Q)==null?void 0:(a=U.settingsRadioOptionRenderer)==null?void 0:a.id)===S){this.selectedQualityIndex=f;S=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((S=this.formats[f])==null?void 0:S.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.J.onClickSubmit=function(){var S;if((S=this.downloadButtonRenderer)==null||!S.isDisabled){var c,Q;S=(Q=(c=this.data)==null?void 0:c.onSubmitEndpoint)!=null?Q:{};var f,U;if(this.formats&&(((f=_.Y(S,_.BK))==null?0:f.videoId)||((U=_.Y(S,_.Ii))==null?0:U.playlistId))){var a,X,z,x,I,n;c={formatType:(x=(a=this.formats)==null?void 0:(X=a[(z=this.selectedQualityIndex)!=null?z:0])==null?void 0:X.format)!=null?x:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(I=this.getOfflineEndpoint(S))==null?void 0:(n=I.actionParams)==null?void 0:n.settingsAction)};this.getOfflineEndpoint(S).actionParams=c;this.ytComponentBehavior.resolveCommand(S)}_.XF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.J.onClickUpsell=function(){var S;if((S=this.upsellButtonRenderer)==null||!S.isDisabled){var c,Q;S=(Q=(c=this.data)==null?void 0:c.upsellEndpoint)!=null?Q:{};this.ytComponentBehavior.resolveCommand(S);_.XF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);c="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var f,U,a,X;c=(X=(f=this.formats)==null?void 0:(U=f[(a=this.selectedQualityIndex)!=null?a:0])==null?void 0:U.format)!=null?X:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:c}})}};
_.J.onClickClose=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.J.getOfflineSettingsAction=function(S,c){return S?c===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":c:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.J.getOfflineEndpoint=function(S){return _.Y(S,_.BK)?_.Y(S,_.BK):_.Y(S,_.Ii)};
_.Rh.Object.defineProperties(TQ.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.fK(_.K8("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var S;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(S=this.data)==null?void 0:S.qualityFormats}}});
TQ.prototype.updateQualityOptions=TQ.prototype.updateQualityOptions;TQ.prototype.dataChanged=TQ.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],TQ.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Number)],TQ.prototype,"selectedQualityIndex",void 0);_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"selectedUpsellQuality",void 0);_.d([_.p(_.st),_.P("design:type",Object)],TQ.prototype,"ytdReduxBehavior",void 0);
_.d([_.Z({selector:QR2,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.P("design:type",Object)],TQ.prototype,"downloadQualityPickerEntity",void 0);_.d([_.Z(),_.P("design:type",Array)],TQ.prototype,"qualityOptions",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],TQ.prototype,"darkerDarkTheme",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],TQ.prototype,"useUpsellDismissAlternate",void 0);
_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"downloadButtonRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"upsellButtonRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"cancelButtonRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"upsellCancelButtonRenderer",void 0);_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"rememberSettings",void 0);
_.d([_.Z(),_.P("design:type",Object)],TQ.prototype,"rememberSettingsChecked",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TQ.prototype,"dataChanged",null);_.d([_.B0("downloadQualityPickerEntity"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],TQ.prototype,"updateQualityOptions",null);_.d([_.e({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],TQ);
_.k(TQ,"ytd-download-quality-selector-renderer",function(){if(Wh8!==void 0)return Wh8;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return Wh8=S},{mode:1});var g9U;var wA=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(wA,_.W);wA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wA.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"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],wA.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],wA.prototype,"darkerDarkTheme",void 0);_.d([_.Z({computed:"computeIcon_(data.infoIcon)"}),_.P("design:type",Object)],wA.prototype,"infoIcon",void 0);
_.d([_.Z({computed:"computeIcon_(data.warningIcon)"}),_.P("design:type",Object)],wA.prototype,"warningIcon",void 0);_.d([_.e({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],wA);
_.k(wA,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(g9U!==void 0)return g9U;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return g9U=S},{mode:1});var eTE;var si=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(si,_.W);si.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
si.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"}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],si.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],si.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],si.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],si.prototype,"darkerDarkTheme",void 0);_.d([_.e({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],si);
_.k(si,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(eTE!==void 0)return eTE;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return eTE=S},{mode:1});var k0p;var MA=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(MA,_.W);MA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
MA.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"}}}}};
MA.prototype.onServiceRequestSentOrCompleted=function(S,c){c&&c.actions&&c.actions.length>0&&_.XF(this.hostElement,"yt-close-popup-action",[this.is])};
MA.prototype.onServiceRequestSentOrCompleted=MA.prototype.onServiceRequestSentOrCompleted;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],MA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],MA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],MA.prototype,"darkerDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],MA.prototype,"data",void 0);
_.d([_.FV("yt-service-request-completed"),_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],MA.prototype,"onServiceRequestSentOrCompleted",null);_.d([_.e({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],MA);
_.k(MA,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(k0p!==void 0)return k0p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return k0p=S},{mode:1});var r7E;var iT=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.submitButtonDisabled=!0;return S};
_.C(iT,_.W);_.J=iT.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.J.onDataChanged=function(){var S,c,Q;if(((S=this.data)==null?void 0:(c=S.confirmButton)==null?void 0:(Q=c.buttonRenderer)==null?void 0:Q.isDisabled)!==void 0){var f,U,a;this.submitButtonDisabled=(f=this.data)==null?void 0:(U=f.confirmButton)==null?void 0:(a=U.buttonRenderer)==null?void 0:a.isDisabled}};
_.J.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.J.updateSubmitButtonDisabledFromBinding=function(S){this.submitButtonDisabled=S.detail.value};
_.J.updateSubmitButtonDisabledFromConfirmCheckbox=function(S){this.submitButtonDisabled=!S.detail.value};
iT.prototype.onDataChanged=iT.prototype.onDataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],iT.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iT.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],iT.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],iT.prototype,"darkerDarkTheme",void 0);
_.d([_.Z(),_.P("design:type",Object)],iT.prototype,"submitButtonDisabled",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iT.prototype,"onDataChanged",null);_.d([_.e({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],iT);
_.k(iT,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(r7E!==void 0)return r7E;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return r7E=S},{mode:1});var dnV;var Z7=function(){return _.W.apply(this,arguments)||this};
_.C(Z7,_.W);_.Rh.Object.defineProperties(Z7.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;return((S=this.data)==null?void 0:S.title)+" "+((c=this.data)==null?void 0:c.metadataPrimary)+" "+((Q=this.data)==null?void 0:Q.metadataSecondary)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Z7.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Z7.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Z7.prototype,"data",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Z7.prototype,"ariaLabel",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Z7);
_.k(Z7,"ytd-compact-product-list-item-renderer",function(){if(dnV!==void 0)return dnV;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return dnV=S},{mode:1});var v90;var GQ=function(){return _.W.apply(this,arguments)||this};
_.C(GQ,_.W);GQ.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]]"}}}}}};
_.Rh.Object.defineProperties(GQ.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],GQ.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],GQ.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],GQ);
_.k(GQ,"ytd-compact-product-list-renderer",function(){if(v90!==void 0)return v90;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return v90=S},{mode:1});var PjN;var Wh=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(Wh,_.W);_.J=Wh.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.J.getBackgroundUrl=function(){var S=this.get("data.headerImage.thumbnails");return S?"url("+_.U2(S,this.hostElement.clientWidth)+")":""};
_.J.onDataChanged=function(){var S=this.getBackgroundUrl();S&&(this.header.style.backgroundImage=S);S=_.wN();var c=_.T$(),Q=this.get("data.trackingParams");Q&&c&&S&&_.dS(S,c,_.Yz(Q));S=_.A(this.hostElement.querySelectorAll("yt-img-shadow"));for(c=S.next();!c.done;c=S.next())c.value.onShow()};
_.J.onPopupClosed=function(S){_.VI(S).localName==="ytd-membership-post-cancel-renderer"&&_.XF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
Wh.prototype.onPopupClosed=Wh.prototype.onPopupClosed;Wh.prototype.onDataChanged=Wh.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Wh.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Wh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Wh.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Wh.prototype,"darkerDarkTheme",void 0);
_.d([_.nU("#header"),_.P("design:type",HTMLDivElement)],Wh.prototype,"header",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wh.prototype,"onDataChanged",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Wh.prototype,"onPopupClosed",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],Wh);
_.k(Wh,"ytd-membership-post-cancel-renderer",function(){if(PjN!==void 0)return PjN;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return PjN=S},{mode:1});var LhT;var gA=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(gA,_.W);gA.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
gA.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],gA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],gA.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],gA.prototype,"darkerDarkTheme",void 0);_.d([_.nU("ytd-feedback-survey-renderer"),_.P("design:type",Object)],gA.prototype,"feedbackSurveyRenderer",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],gA);
_.k(gA,"ytd-sponsorship-confirm-cancel-content",function(){if(LhT!==void 0)return LhT;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return LhT=S},{mode:1});var E9O;var ei=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.maybeSubmitFeedback=function(){S.content&&S.content.maybeSubmitFeedback()};
return S};
_.C(ei,_.W);_.J=ei.prototype;_.J.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.J.onYtPopupOpened=function(S,c){c===this&&this.data&&this.data.onOpenCommands&&_.FF(this.hostElement,this.data.onOpenCommands,this.hostElement);_.XF(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.J.onYtPopupClosed=function(S,c){(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.FF(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestCompleted=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.J.onYtServiceRequestError=function(S){_.fD(this.hostElement,S.detail.error.message)};
_.J.onDataChanged=function(){if(this.isAttached){var S=this.backgroundUrl;S&&(_.Ur(this.hostElement).querySelector("#header").style.backgroundImage=S)}};
_.Rh.Object.defineProperties(ei.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return S?"url("+_.U2(S,this.hostElement.clientWidth)+")":""}}});
ei.prototype.onDataChanged=ei.prototype.onDataChanged;ei.prototype.onYtServiceRequestError=ei.prototype.onYtServiceRequestError;ei.prototype.onYtServiceRequestCompleted=ei.prototype.onYtServiceRequestCompleted;ei.prototype.onYtPopupClosed=ei.prototype.onYtPopupClosed;ei.prototype.onYtPopupOpened=ei.prototype.onYtPopupOpened;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ei.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ei.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ei.prototype,"data",void 0);_.d([_.Z({value:function(){return _.K8("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],ei.prototype,"closeButtonAriaLabel",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],ei.prototype,"darkerDarkTheme",void 0);_.d([_.nU("#scrollable"),_.P("design:type",Object)],ei.prototype,"scrollable",void 0);_.d([_.nU("ytd-sponsorship-confirm-cancel-content"),_.P("design:type",Object)],ei.prototype,"content",void 0);
_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],ei.prototype,"onYtPopupOpened",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],ei.prototype,"onYtPopupClosed",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ei.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ei.prototype,"onYtServiceRequestError",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ei.prototype,"onDataChanged",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],ei);
_.k(ei,"ytd-sponsorship-confirm-cancel-renderer",function(){if(E9O!==void 0)return E9O;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return E9O=S},{mode:_.A2("kevlar_poly_si_batch_j081")?1:2});var tjN;var k6=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(k6,_.W);k6.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],k6.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],k6.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],k6.prototype,"darkerDarkTheme",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],k6);
_.k(k6,"ytd-sponsorships-celebration-content",function(){if(tjN!==void 0)return tjN;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return tjN=
S},{mode:1});var VjT;var RTE=_.oK(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),rA=function(){var S=_.W.apply(this,arguments)||this;S.scriptsAppended=!1;S.buttonOverrides={type:"tonal",style:"overlay-dark"};return S};
_.C(rA,_.W);_.J=rA.prototype;
_.J.configureRendererStamper=function(){return{"data.header.sponsorshipsHeaderRenderer.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0},properties:{overrides:"[[buttonOverrides]]"},params:{forceModernIconButton:_.u("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.onDataChanged=function(){var S;(S=this.header)==null||S.style.setProperty("background-color",this.backgroundColor);if(S=this.headerImageUrl){var c;(c=this.header)==null||c.style.setProperty("background-image",S)}c=_.wN(4);S=_.T$(4);var Q=this.get("data.trackingParams");if(Q&&S&&c){var f=_.Yz(Q);_.dS(c,S,f);_.u("combine_ve_grafts")?_.Kv().graftServerVe(Q,S,4):_.dS(c,S,f)}c=_.A(this.hostElement.querySelectorAll("yt-img-shadow"));for(S=c.next();!S.done;S=c.next())S.value.onShow();if(c=this.get("data.gtmId"))_.qu(c,
_.WY("GL","")),this.setupConversionTracking()};
_.J.setupConversionTracking=function(){if(!this.scriptsAppended){var S=document.createElement("script");var c=_.GR(RTE.join(""));_.g_(S,c);document.head.appendChild(S);S=document.createElement("noscript");S.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(S);this.scriptsAppended=!0}};
_.J.onPopupClosed=function(S){if(_.VI(S).localName==="ytd-sponsorships-celebration-renderer"){_.XF(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var c;this.data&&((c=this.data)==null?0:c.dismissCommand)&&_.BI.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.Rh.Object.defineProperties(rA.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.gh(S)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return S?"url("+_.U2(S,this.hostElement.getBoundingClientRect().width)+")":""}}});
rA.prototype.onPopupClosed=rA.prototype.onPopupClosed;rA.prototype.onDataChanged=rA.prototype.onDataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],rA.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],rA.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],rA.prototype,"data",void 0);_.d([_.nU("#header"),_.P("design:type",HTMLElement)],rA.prototype,"header",void 0);
_.d([_.Z(),_.P("design:type",Object)],rA.prototype,"scriptsAppended",void 0);_.d([_.Z(),_.P("design:type",Object)],rA.prototype,"buttonOverrides",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],rA.prototype,"onDataChanged",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],rA.prototype,"onPopupClosed",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],rA);
_.k(rA,"ytd-sponsorships-celebration-renderer",function(){if(VjT!==void 0)return VjT;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return VjT=S},{mode:1});var y7U;var dA=function(){var S=_.W.apply(this,arguments)||this;S.isToggleChecked=!1;return S};
_.C(dA,_.W);dA.prototype.onDataChanged=function(){var S;this.isToggleChecked=((S=this.data)==null?void 0:S.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
dA.prototype.close=function(){var S;((S=this.data)==null?0:S.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
dA.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var S,c=_.Y((S=this.data)==null?void 0:S.switchButton,GpO);c&&(this.isToggleChecked&&c.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOnInnertubeCommand),!this.isToggleChecked&&c.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(c.switchOffInnertubeCommand))};
dA.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
dA.prototype.onDataChanged=dA.prototype.onDataChanged;_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],dA.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],dA.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],dA.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],dA.prototype,"isToggleChecked",void 0);_.d([_.Z({value:_.K8("CLOSE")}),_.P("design:type",String)],dA.prototype,"closeButtonAriaLabel",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],dA.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],dA);
_.k(dA,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(y7U!==void 0)return y7U;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return y7U=S},{mode:1});var o9p;var vh=function(){return _.W.apply(this,arguments)||this};
_.C(vh,_.W);_.J=vh.prototype;_.J.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"}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.playerElement.stop()};
_.J.onYtServiceRequestCompleted=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.J.onYtServiceRequestError=function(S){_.fD(this.hostElement,S.detail.error.message)};
_.J.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.J.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.J.getTier=function(S,c){return!S||!S.tiers||c<0?null:_.Y(S.tiers[c],kpG)};
_.J.moreThanOne=function(S){return!!(S&&S.length>1)};
_.J.tierOverviewTap=function(S){var c=this;this.selectedTier=S.model.index;_.tO(this,function(){_.Az(c.hostElement,"yt-refit")})};
_.J.computeSelectedClass=function(S,c){return this.isSelected(S,c)?"selected":""};
_.J.computeButtonAriaPressed=function(S,c){return this.isSelected(S,c)?"true":"false"};
_.J.isSelected=function(S,c){return S===c};
_.J.onDataChanged=function(){_.Ur(this.hostElement).querySelector("#header-overlay").style.visibility="";_.Ur(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 S=_.A(this.hostElement.querySelectorAll("yt-img-shadow")),
c=S.next();!c.done;c=S.next())c.value.onShow();var Q;this.set("selectedTier",(Q=this.get("data.targetTierIndex"))!=null?Q:0);var f;(S=(f=this.data)==null?void 0:f.onVisible)&&this.ytComponentBehavior.resolveCommand(S)};
_.J.initializeVe=function(S){var c=_.wN(),Q=_.T$(),f=this.get("data.trackingParams");Q&&c&&(this.screenLayer=4,c=_.kC(_.bwH)(void 0,69877,{clientScreenNonce:c,visualElement:Q},void 0,void 0,void 0),_.ME(c,69877,4),Q=_.T$(4),f&&Q&&(f=_.Yz(f),_.dS(c,Q,f),S&&(this.offerVideoVe=_.qo(74659),_.dS(c,f,this.offerVideoVe))))};
_.J.setHeaderBackground=function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.Ur(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.gh(S);if(S=this.getHeaderImage())S=_.U2(S,screen.width),_.Ur(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+S+")"};
_.J.getHeaderImage=function(){var S=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&S?S:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setupVideoPlayer=function(S){var c=this,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1)return Q=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),f=c.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.u("kevlar_player_update_killswitch")?c.playerElement.update({args:{autoplay:Q,video_id:S,player_params:f}}):c.playerElement.loadVideoWithPlayerVars({autoplay:Q,video_id:S,player_params:f}),
_.F(X,c.playerElement.getPlayerPromise(),2);U=X.yieldResult;U.addEventListener("onStateChange",function(z){c.onPlayerStateChange(z)});
U.setScreenLayer(c.screenLayer);(a=_.wN(4))&&c.offerVideoVe&&_.P2(a,c.offerVideoVe);Q&&(c.pauseOtherPlayers(),c.playerElement.focusOnPlayer(),c.playerElement.getPlayer().hideControls(),_.HG(_.Mq,function(){c.fadeOutHeaderOverlay()},4E3));
_.IN(X)})};
_.J.onPlayerStateChange=function(S){S===1?this.backgroundPlayerElement&&(S=this.backgroundPlayerElement.player_.getPlayerState(),S!==1&&S!==3||this.backgroundPlayerElement.pause()):S===0&&(_.Ur(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.Ur(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.J.fadeOutHeaderOverlay=function(){_.Ur(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.J.onHeaderTap=function(){if(this.offerVideo){_.Ur(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var S;((S=this.playerElement.player_)==null?void 0:S.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(S=_.wN(4))&&this.offerVideoVe&&_.tz(S,this.offerVideoVe)}};
_.J.getBackgroundImageLayerClass=function(S){return S?"background-image-layer-with-video":""};
_.J.getHeaderClass=function(S){return S?"header-with-video":""};
_.J.getHeaderOverlayClass=function(S){return S?"header-overlay-with-video":""};
_.J.getTitleContainerClass=function(S,c){return S?"title-container-with-video":c?"title-container-without-video-flexible":"title-container-without-video"};
_.J.tierTitleDisplayStatus=function(S){return this.moreThanOne(S)?"hide":"show"};
_.J.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.fl().resolve(_.ra).getPlayerElement():this.backgroundPlayerElement=_.S9();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var S=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=S===1||S===3;this.backgroundPlayerElement.pause()}};
_.J.isMiniplayerActive=function(){return _.fl().resolve(_.ra).isMiniplayerActive()};
_.J.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("selected-tier-changed",this.selectedTier))};
vh.prototype.selectedTierChangedForBinding=vh.prototype.selectedTierChangedForBinding;vh.prototype.onDataChanged=vh.prototype.onDataChanged;vh.prototype.onYtPopupClosed=vh.prototype.onYtPopupClosed;vh.prototype.onYtPopupOpened=vh.prototype.onYtPopupOpened;vh.prototype.onYtServiceRequestError=vh.prototype.onYtServiceRequestError;vh.prototype.onYtServiceRequestCompleted=vh.prototype.onYtServiceRequestCompleted;
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],vh.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],vh.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],vh.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],vh.prototype,"data",void 0);_.d([_.Z({value:0}),_.P("design:type",Number)],vh.prototype,"selectedTier",void 0);
_.d([_.Z({value:""}),_.P("design:type",String)],vh.prototype,"offerVideo",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],vh.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.d([_.Z({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.Qd(this)}}),
_.P("design:type",String)],vh.prototype,"playerId",void 0);_.d([_.nU("tp-yt-paper-dialog-scrollable"),_.P("design:type",Object)],vh.prototype,"scrollable",void 0);_.d([_.nU("ytd-sponsorships-tier-renderer"),_.P("design:type",Object)],vh.prototype,"tierRenderer",void 0);_.d([_.nU("#player"),_.P("design:type",Object)],vh.prototype,"playerElement",void 0);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],vh.prototype,"onYtServiceRequestCompleted",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],vh.prototype,"onYtServiceRequestError",null);
_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vh.prototype,"onYtPopupOpened",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vh.prototype,"onYtPopupClosed",null);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vh.prototype,"onDataChanged",null);
_.d([_.B0("selectedTier"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],vh.prototype,"selectedTierChangedForBinding",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],vh);
_.k(vh,"ytd-sponsorships-offer-renderer",function(){if(o9p!==void 0)return o9p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return o9p=S},{mode:_.A2("kevlar_poly_si_batch_j077")?1:2});var mnE;var Ph=function(){var S=_.W.apply(this,arguments)||this;S.buttonOverrides={type:"filled",style:"mono"};return S};
_.C(Ph,_.W);Ph.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}}}}}};
Ph.prototype.backgroundColorChanged=function(){var S,c,Q,f=(c=_.Y((S=this.data)==null?void 0:S.content,reV))==null?void 0:(Q=c.backgroundColor)==null?void 0:Q.backgroundColor;f&&(S=_.WV(f),_.Ur(this.hostElement).querySelector("#banner").style.backgroundColor=S,_.Ur(this.hostElement).querySelector("#abstract-art").style.backgroundColor=S)};
Ph.prototype.attached=function(){this.JSC$18440_scroller&&(this.JSC$18440_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18440_scroller.attached&&typeof this.JSC$18440_scroller.attached==="function"&&this.JSC$18440_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ph.prototype.backgroundColorChanged=Ph.prototype.backgroundColorChanged;_.d([_.Z(),_.P("design:type",Object)],Ph.prototype,"data",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ph.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("#scroller"),_.P("design:type",Object)],Ph.prototype,"JSC$18440_scroller",void 0);_.d([_.Z(),_.P("design:type",Object)],Ph.prototype,"buttonOverrides",void 0);
_.d([_.B0("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ph.prototype,"backgroundColorChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],Ph);
_.k(Ph,"ytd-sponsorships-promotion-celebration-renderer",function(){if(mnE!==void 0)return mnE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return mnE=S},{mode:_.A2("kevlar_poly_si_batch_j077")?1:2});var S4g;var cLG;var LA=function(){return _.W.apply(this,arguments)||this};
_.C(LA,_.W);LA.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
LA.prototype.computeIsInitiallyChecked=function(S){return S===1};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],LA.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],LA.prototype,"data",void 0);_.d([_.nU("#checkbox"),_.P("design:type",Object)],LA.prototype,"checkbox",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],LA);
_.k(LA,"ytd-subscription-toggle-option-renderer",function(){if(cLG!==void 0)return cLG;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return cLG=S},{mode:1});var Ei=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return S};
_.C(Ei,_.W);Ei.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"}}}};
Ei.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ei.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var S=_.Ur(this.hostElement).querySelector("#options").selected;S=this.data.options[S].subscriptionRadioOptionRenderer.serviceEndpoint;var c=_.Ur(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");c&&S&&S.modifyChannelNotificationPreferenceEndpoint&&(c=c.getValue())&&(S.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[c]);_.fl().resolve(_.U8).resolveCommand(S,{form:{element:this.hostElement}});
_.XF(this.hostElement,"yt-close-popup-action")};
_.Rh.Object.defineProperties(Ei.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var S=this.data.options,c=0;c<S.length;c++){var Q=S[c].subscriptionRadioOptionRenderer;if(Q&&Q.selected)return c}return null}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ei.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Ei.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],Ei.prototype,"eventForwardingBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],Ei.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],Ei.prototype,"darkerDarkTheme",void 0);_.d([_.M("data.options"),_.P("design:type",Object),_.P("design:paramtypes",[])],Ei.prototype,"initialIndex",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Ei);
_.k(Ei,"ytd-subscription-notification-options-renderer",function(){if(S4g!==void 0)return S4g;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return S4g=S},{mode:1});var Q2U;var tF=function(){return _.W.apply(this,arguments)||this};
_.C(tF,_.W);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],tF.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],tF.prototype,"data",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],tF);
_.k(tF,"ytd-tvfilm-offer-groups-renderer",function(){if(Q2U!==void 0)return Q2U;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Q2U=S},{mode:1});var fN0;var VB=function(){var S=_.W.apply(this,arguments)||this;S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(VB,_.W);_.J=VB.prototype;_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.J.computeThumbnailClass=function(S){return S.thumbnailOverlays?S.isShow?"thumbnail-show":"thumbnail-movie":S.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.J.computeCommerceSectionClass=function(S){return S.offers&&S.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.J.computeTitleClass=function(S){return S.offers&&S.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.J.onDataChanged=function(){[].concat(_.Hs(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(S){S.onShow()})};
VB.prototype.onDataChanged=VB.prototype.onDataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],VB.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],VB.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],VB.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],VB.prototype,"darkerDarkTheme",void 0);
_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],VB.prototype,"onDataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],VB);
_.k(VB,"ytd-ypc-offers-overlay-renderer",function(){if(fN0!==void 0)return fN0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return fN0=S},{mode:_.A2("kevlar_poly_si_batch_j028")?1:2});var U58;var JLZ=function(){this.usedMethods=new Set};
JLZ.prototype.add=function(S){this.usedMethods.add(S)};
JLZ.prototype.reset=function(){this.usedMethods.clear()};var XMU=function(S,c){this.query=S;this.previousSearchQuery=c;this.id=aN8++;if(!ALg){c=_.WY("SBOX_SETTINGS");S="https://"+((c==null?void 0:c.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var Q=c==null?void 0:c.REQUEST_LANGUAGE;Q&&(S+="&hl="+Q);(Q=c==null?void 0:c.REQUEST_DOMAIN)&&(S+="&gl="+Q);S+="&client=youtube&gs_ri=youtube";(Q=c==null?void 0:c.SUGG_EXP_ID)&&(S+="&sugexp="+encodeURIComponent(Q));(Q=c==null?void 0:c.PSUGGEST_TOKEN)&&(S+="&tok="+Q);(c=
c==null?void 0:c.SESSION_INDEX)&&(S+="&authuser="+c);_.u("desktop_enable_visual_suggest")&&(S+="&h=180&w=320&ytvs=1");ALg=S}},O2T=function(S){var c="q="+encodeURIComponent(S.query);
S.previousSearchQuery&&(c+="&pq="+encodeURIComponent(S.previousSearchQuery));return c},z80=function(){var S=_.WY("SBOX_SETTINGS"),c={};
if(S==null?0:S.SEND_VISITOR_DATA)c["X-Goog-Visitor-Id"]=S==null?void 0:S.VISITOR_DATA;return c},x51=function(S){var c=ALg;
c+="&gs_id="+S.id.toString(36);c+="&q="+encodeURIComponent(S.query);c+="&cp="+S.query.length;S.previousSearchQuery&&(c+="&pq="+encodeURIComponent(S.previousSearchQuery));(S=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(c+="&video_id="+S);return c},aN8=0,ALg="";var Fz1=_.vz.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,Bi1=_.vz.SEARCH_ENTITY_SUGGESTION_MOVIE,INV=_.vz.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,n30=_.vz.SEARCH_ENTITY_SUGGESTION_TV_SHOW,b2U=function(S,c){this.text=S;this.bold=c},NiV=function(S,c,Q){this.input=c;
this.index=Q;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=S[0];this.type=S[1];this.subtypes=S[2];var f;this.displayText=mN((f=S[3])==null?void 0:f.b);var U;this.ignoredPrefix=mN((U=S[3])==null?void 0:U.a);var a,X;this.hasNewVideo=((a=S[3])==null?void 0:(X=a.zam)==null?void 0:X.toString())==="true"?!0:!1;var z;this.visualSuggestUrl=(z=S[3])==null?void 0:z.zai;var x;this.entityType=mN((x=S[3])==null?void 0:x.zap);var I;this.entityName=mN((I=S[3])==null?void 0:I.zao);var n;c=mN((n=
S[3])==null?void 0:n.zaf);var b;this.entityMid=(b=S[3])==null?void 0:b.zae;n=zrE(this.subtypes,this.entityMid);if(c&&n){if(c){b="";switch(n){case "YOUTUBE_ENTITY_TYPE_SONG":b=INV;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":b=Fz1;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":b=n30;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":b=Bi1}n=n==="YOUTUBE_ENTITY_TYPE_SONG"||n==="YOUTUBE_ENTITY_TYPE_ALBUM"?b+" \u2022  \u2022 "+c:c}else n="";this.entitySubtitle=n}var N;this.externalChannelId=(N=S[3])==null?void 0:N.zav;var l;
this.entityThumbnailAttributionUrl=(l=S[3])==null?void 0:l.zaq},$51=function(S,c){var Q=[],f,U=(f=S.displayText)!=null?f:S.text;
(c==null?0:c.useEntityName)&&Kzg(S)&&S.entityName&&(U=S.entityName);if(S.type===33)return Q.push(new b2U(U,!1)),Q;if(U.length>=S.input.length&&U.substring(0,S.input.length)===S.input)Q.push(new b2U(S.input,!1)),Q.push(new b2U(U.substring(S.input.length),!0));else{var a=new Set(S.input.split(/\s/)),X=U.split(/\s/);Q=X.map(function(z,x){return new b2U(z.trim()+(x===X.length-1?"":" "),!a.has(z))})}return Q},Kzg=function(S){var c=!!zrE(S.subtypes);
S=!!S.entityMid;return c||S};var uW1=function(S){this.rawResponse=["",[],{}];this.suggestions=[];try{var c=JSON.parse(xOU(S));if(typeof c==="object"&&c!==null)this.rawResponse=c;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(f){console.log("Suggest: Failed to parse SuggestResponse!");return}var Q=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(f,U){return new NiV(f,Q,U)})};var j28=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new JLZ;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18477_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},lNE,Y4g=function(){lNE||(lNE=new j28);
return lNE};
j28.prototype.updateSuggestions=function(S){var c=this;this.availableSuggestions.forEach(function(Q){c.previousSuggestions[Q]=!0});
this.availableSuggestions=S.map(function(Q){var f=Q.type.toString();Q.subtypes.length>0&&(f+="i"+Q.subtypes.join("i"),f+="k"+Q.suggestionSources.COMPLETE_SERVER.toString());return f})};
var CXE=function(S,c){var Q=Date.now();S.firstEditTime<0&&(S.firstEditTime=Q);c&&(S.lastQueryBuildTime=Q);S.lastEditTime=Q};
j28.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18477_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var H21=function(S){var c="";S.availableSuggestions.forEach(function(U){delete S.previousSuggestions[U]});
for(var Q=_.A(Object.keys(S.previousSuggestions)),f=Q.next();!f.done;f=Q.next())f=f.value,S.previousSuggestions[f]&&(c+=(c?"j":"")+f);return c},D5N=function(S,c){var Q=[];
c&&(Q[1]=c.toString());Q[0]="youtube";Q[7]=Date.now()-S.startTime;Q[6]=S.sessionNumber;S.zeroPrefixSuggestionCount>=0&&(Q[33]=S.zeroPrefixSuggestionCount);Q[13]=S.outOfSyncResponseCount;if(S.availableSuggestions.length>0){for(var f=c="",U=0,a=_.A(S.availableSuggestions),X=a.next();!X.done;X=a.next())X=X.value,X!==f&&(U>1&&(c+="l"+U),c+=(f?"j":"")+X,U=0,f=X),U+=1;U>1&&(c+="l"+U);Q[3]=c}Q[35]=H21(S);S.selectedSuggestionIndex>=0&&(Q[2]=S.selectedSuggestionIndex);var z;if(c=(z=_.WY("SBOX_SETTINGS"))==
null?void 0:z.SUGG_EXP_ID)Q[19]=S.normalize(c),z=0,S.experimentTriggeredBeforeFinal&&(z|=1),S.experimentTriggeredFinal&&(z|=2),Q[20]=z;Q[26]=Array.from(S.inputMethodsTracker.usedMethods).join("j");if(S.JSC$18477_totalRoundTripTime>0){Q[15]=S.JSC$18477_totalRoundTripTime;Q[14]=S.maxRoundTripTime;z=[];for(U=c=0;U<10;U++)f=S.roundTripTimeHistogram[U],f===0?c++:(c>1?z.push(U+"-"+f):c===1?z.push("0j"+f):z.push(f.toString()),c=0);z=z.join("j");Q[16]=z}S.zeroPrefixRoundTripTime>0&&(Q[36]=S.zeroPrefixRoundTripTime);
S.lastQueryBuildTime>0&&(Q[18]=S.lastQueryBuildTime-S.startTime);S.firstEditTime>0&&(Q[4]=S.firstEditTime-S.startTime);S.lastEditTime>0&&(Q[5]=S.lastEditTime-S.startTime);return Q.join(".")};
j28.prototype.normalize=function(S){return S.replaceAll(".","-")};
var pME=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var R9=function(){var S=_.W.apply(this,arguments)||this;S.microphoneSpinnerActive=!1;S.noAnimations=!1;S.boundExitClick=function(){S.onExitButtonClick()};
S.speechOverlayClassName="";S.isLevelAnimating=!1;S.playCloseDialogAudioFeedback=!0;S.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return S};
_.C(R9,_.W);_.J=R9.prototype;_.J.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.J.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=FyE()};
_.J.dataChanged=function(){this.logDialog()};
_.J.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var S;(S=this.manager.audioPlayer)!=null&&(S.JSC$17766_audioEnabled=!1)}this.manager.stop();(S=this.manager.audioPlayer)!=null&&(S.JSC$17766_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.J.handleSpeechQueryCompleteAction=function(S){var c=S.navigationAction;c&&(S.trackingParams&&_.Kv().graftServerVe(S.trackingParams,this.dialogVe,5),_.Az(this.hostElement,"yt-navigate",{endpoint:c,tempData:this.getNavigationParams(c),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.J.onExitButtonClick=function(){this.closeDialog()};
_.J.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var S;if((S=this.manager)!=null){var c;(c=S.audioPlayer)==null||ef(c,"failure");S.setState("microphone-off");S.stop()}}else(S=this.manager)==null||S.start()};
_.J.transcriptionChanged=function(){var S,c;(((S=this.transcription)==null?0:S.low)||((c=this.transcription)==null?0:c.high))&&this.setState("transcribing",this.transcription)};
_.J.stateChanged=function(){this.setState(this.state,this.transcription)};
_.J.logDialog=function(){var S;(S=this.data)!=null&&S.trackingParams&&(S=_.Kv(),_.X2(S,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=S.graftServerVe(this.data.trackingParams,void 0,5))};
_.J.getNavigationParams=function(S){var c={};if(_.u("web_yt_searchbox")){var Q=Y4g();Q.inputMethodsTracker.add(6);Q=D5N(Q,15);c.gs_l=Q;var f;c.oq=((f=_.Y(S,_.$k))==null?void 0:f.query)||""}else if(S=window.ytvoicesearchloggingparams){if(S=S())c.oq=S.oq,c.gs_l=S.gs_l}else _.dC(Error("ol"));return c};
_.J.closeDialog=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.J.setState=function(S,c){if(this.data){var Q=this.data,f={};switch(S){case "listening":f={headerText:Q.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:Q.microphoneButtonAriaLabel};break;case "timeout":f={headerText:Q.promptHeader,microphoneState:"try-again",microphoneLabel:Q.promptMicrophoneLabel,microphoneAriaLabel:Q.promptMicrophoneLabel};break;case "microphone-off":f={headerText:Q.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:Q.promptMicrophoneLabel,
microphoneAriaLabel:Q.promptMicrophoneLabel};break;case "transcribing":(c==null?0:c.low)||(c==null?0:c.high)?f={transcriptionLow:c==null?void 0:c.low,transcriptionHigh:c==null?void 0:c.high,microphoneState:"speaking",microphoneAriaLabel:Q.microphoneButtonAriaLabel}:f={headerText:Q.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:Q.microphoneButtonAriaLabel};break;case "processing":f={headerText:Q.loadingHeader,microphoneState:"processing",microphoneAriaLabel:Q.microphoneButtonAriaLabel};
break;case "offline":f={headerText:Q.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:Q.connectionErrorMicrophoneLabel,microphoneAriaLabel:Q.connectionErrorMicrophoneLabel};break;case "permission":f={headerText:Q.permissionsHeader,bodyLine1:Q.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:Q.permissionsSubtext};break;case "permission-denied":f={headerText:Q.disabledHeader,bodyLine1:Q.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:Q.disabledSubtext}}f.className=
S;this.speechOverlayState=f;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.J.setMicrophoneState=function(S){var c=this.isLevelAnimating;this.isLevelAnimating=S==="speaking";!c&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=S==="processing"&&!this.noAnimations};
_.J.setClass=function(S){this.speechOverlayClassName&&_.a1(this.hostElement,this.speechOverlayClassName,!1);S&&(this.speechOverlayClassName=S,_.a1(this.hostElement,S,!0))};
_.J.runLevelAnimation=function(){var S=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var c=1+Math.random()*.75,Q=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+Q/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+c+")");_.Mq.addJob(function(){S.runLevelAnimation()},3,Q)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
R9.prototype.stateChanged=R9.prototype.stateChanged;R9.prototype.transcriptionChanged=R9.prototype.transcriptionChanged;R9.prototype.onPopupClosed=R9.prototype.onPopupClosed;R9.prototype.dataChanged=R9.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],R9.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],R9.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],R9.prototype,"rendererStamperBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],R9.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],R9.prototype,"eventForwardingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],R9.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],R9.prototype,"speechOverlayState",void 0);
_.d([_.Z(),_.P("design:type",Object)],R9.prototype,"microphoneSpinnerActive",void 0);_.d([_.Z({type:_.u("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.P("design:type",Object)],R9.prototype,"noAnimations",void 0);_.d([_.Z({selector:function(S){var c;return(c=S.voiceSearch)==null?void 0:c.transcription}}),
_.P("design:type",Object)],R9.prototype,"transcription",void 0);_.d([_.Z({selector:function(S){var c;return(c=S.voiceSearch)==null?void 0:c.overlay}}),
_.P("design:type",String)],R9.prototype,"state",void 0);_.d([_.Z(),_.P("design:type",Object)],R9.prototype,"boundExitClick",void 0);_.d([_.nU("#microphone-levels"),_.P("design:type",HTMLElement)],R9.prototype,"level",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R9.prototype,"dataChanged",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R9.prototype,"onPopupClosed",null);
_.d([_.$n("transcription"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R9.prototype,"transcriptionChanged",null);_.d([_.$n("state"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],R9.prototype,"stateChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],R9);
_.k(R9,"ytd-voice-search-dialog-renderer",function(){if(U58!==void 0)return U58;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return U58=S},{mode:1});var h82;var yB=function(){var S=_.W.apply(this,arguments)||this;S.isOverlay=!1;S.hidden=!1;return S};
_.C(yB,_.W);_.J=yB.prototype;_.J.onPopupClosed=function(){this.toggleIconState(!1)};
_.J.computeIcon=function(){var S,c,Q;return(c=_.Y((S=this.data)==null?void 0:S.icon,E1p))==null?void 0:(Q=c.icon)==null?void 0:Q.iconType};
_.J.computeIconBadgeShape=function(){var S;return{iconBadgeType:"cart",iconBadgeText:(S=this.iconBadgeEntity)==null?void 0:S.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.J.onClick=function(){var S;(S=this.data)!=null&&S.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.J.computeHidden=function(S){return!S};
_.J.toggleIconState=function(S){this.iconButton&&(this.iconButton.pressed=S)};
yB.prototype.onPopupClosed=yB.prototype.onPopupClosed;_.d([_.p(_.st),_.P("design:type",Object)],yB.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],yB.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],yB.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],yB.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],yB.prototype,"isOverlay",void 0);
_.d([_.Z({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.P("design:type",Object)],yB.prototype,"hidden",void 0);_.d([_.Z({selectorArgs:["data.iconBadgeEntityKey"],selector:function(S,c){return _.FT(S.entities,"iconBadgeEntity",c)}}),
_.P("design:type",Object)],yB.prototype,"iconBadgeEntity",void 0);_.d([_.nU("yt-icon-button"),_.P("design:type",HTMLButtonElement)],yB.prototype,"iconButton",void 0);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],yB.prototype,"onPopupClosed",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],yB);
_.k(yB,"ytd-icon-badge-topbar-button-renderer",function(){if(h82!==void 0)return h82;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return h82=S},{mode:1});var q41;var o9=function(){var S=_.W.apply(this,arguments)||this;S.premiumOptions=[];S.darkerDarkTheme=_.u("web_darker_dark_theme");return S};
_.C(o9,_.W);o9.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.Rh.Object.defineProperties(o9.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],o9.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],o9.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Array)],o9.prototype,"premiumOptions",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],o9.prototype,"darkerDarkTheme",void 0);_.d([_.M("premiumOptions"),_.P("design:type",Object),_.P("design:paramtypes",[])],o9.prototype,"hasPremiumOptions",null);
_.d([_.e({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],o9);
_.k(o9,"ytd-offline-promo-content",function(){if(q41!==void 0)return q41;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return q41=S},{mode:1});var Ti0;var mg=function(){var S=_.W.apply(this,arguments)||this;S.premiumOptions=[];return S};
_.C(mg,_.W);mg.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var S;this.premiumOptions=OKT((S=this.data)==null?void 0:S.formats)};
mg.prototype.onClickSubmit=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var S;(S=_.S9())==null||S.pause()};
mg.prototype.attached=function(){this.JSC$18497_scroller&&(this.JSC$18497_scroller.dialogElement=this.hostElement.parentNode)};
_.Rh.Object.defineProperties(mg.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
mg.prototype.dataChanged=mg.prototype.dataChanged;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],mg.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],mg.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],mg.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],mg.prototype,"data",void 0);
_.d([_.Z({computed:"computeIcon_(data.headersIcon)",value:""}),_.P("design:type",String)],mg.prototype,"headersIcon",void 0);_.d([_.Z(),_.P("design:type",Array)],mg.prototype,"premiumOptions",void 0);_.d([_.nU("#scroller"),_.P("design:type",Object)],mg.prototype,"JSC$18497_scroller",void 0);_.d([_.M("headersIcon"),_.P("design:type",Object),_.P("design:paramtypes",[])],mg.prototype,"showIcon",null);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],mg.prototype,"dataChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],mg);
_.k(mg,"ytd-offline-promo-renderer",function(){if(Ti0!==void 0)return Ti0;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return Ti0=S},{mode:1});var wMV;var Sa=function(){var S=_.W.apply(this,arguments)||this;S.playbackPauseInterval=NaN;S.isLoading=!1;S.hasError=!1;S.dialogClass="";S.youtubeLabel=_.K8("LOGO_ALT_LABEL",{},"YouTube Home");S.logoName="yt-logos-ext:yt-logo-updated";S.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return S};
_.C(Sa,_.W);_.J=Sa.prototype;_.J.onDataChange=function(){var S;if(this.showEOMV1Text=!((S=this.data)==null||!S.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.J.attached=function(){this.pausePlayer()};
_.J.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.J.handleLangSelect=function(S){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[S.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.J.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.J.handleSaveConsent=function(S){var c=this;this.showLoadingSpinner();this.showLoadingSpinner();PBV(_.Y(S,t5G)).catch(function(Q){_.i5(new _.Yr("Something went wrong when save consent "+(Q.message?Q.message:Q)+"."));c.hideLoadingSpinner();c.showErrorMessage()})};
_.J.handleDisablePersonalization=function(S){var c=this;this.showLoadingSpinner();L5V(_.Y(S,ENE)).then(function(){c.dialog.close();c.resumePlayer()}).catch(function(Q){_.i5(new _.Yr("Something went wrong when disable personalization "+(Q.message?Q.message:Q)+"."));
c.hideLoadingSpinner();c.showErrorMessage()})};
_.J.showLoadingSpinner=function(){var S=this;this.showSpinnerJobId=_.Mq.addLowPriorityJob(function(){S.isLoading=!0},500)};
_.J.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.Mq.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.J.showErrorMessage=function(){var S=this;this.hasError=!0;_.Mq.addLowPriorityJob(function(){S.hasError=!1},2E3)};
_.J.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.xr(function(){try{var S=_.S9();S&&S.pause()}catch(c){}},100))};
_.J.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var S=_.S9();S&&S.play()}catch(c){}};
_.Rh.Object.defineProperties(Sa.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.eomV1Text)return[];S=[];for(var c=["SHIELD","WARNING","BAR_CHART"],Q=this.data.eomV1Text.essentialCookieMsg.items,f=0;f<c.length&&f<Q.length;f++)S.push({icon:c[f],text:Q[f]});return S}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var S;if((S=this.data)==null||!S.eomV1Text)return[];S=[];for(var c=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],Q=this.data.eomV1Text.nonEssentialCookieMsg.items,f=0;f<c.length&&f<Q.length;f++)S.push({icon:c[f],text:Q[f]});return S}}});
Sa.prototype.onDataChange=Sa.prototype.onDataChange;_.d([_.Z(),_.P("design:type",Object)],Sa.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Sa.prototype,"showEOMV1Text",void 0);_.d([_.Z(),_.P("design:type",Object)],Sa.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Object)],Sa.prototype,"hasError",void 0);_.d([_.Z(),_.P("design:type",Number)],Sa.prototype,"showSpinnerJobId",void 0);_.d([_.Z(),_.P("design:type",Object)],Sa.prototype,"dialogClass",void 0);
_.d([_.nU("#dialog"),_.P("design:type",Object)],Sa.prototype,"dialog",void 0);_.d([_.nU("#cb-header"),_.P("design:type",HTMLElement)],Sa.prototype,"header",void 0);_.d([_.nU("#lang-select"),_.P("design:type",HTMLElement)],Sa.prototype,"langSelect",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Sa.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Sa.prototype,"ytComponentBehavior",void 0);
_.d([_.Z(),_.P("design:type",String)],Sa.prototype,"youtubeLabel",void 0);_.d([_.Z(),_.P("design:type",Object)],Sa.prototype,"logoName",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Sa.prototype,"onDataChange",null);_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],Sa.prototype,"eomEssentialCookieMsgItems",null);
_.d([_.M("data"),_.P("design:type",Array),_.P("design:paramtypes",[])],Sa.prototype,"eomNonEssentialCookieMsgItems",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],Sa);
_.k(Sa,"ytd-consent-bump-v2-lightbox",function(){if(wMV!==void 0)return wMV;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return wMV=S},{mode:1});var s2Z;var cj=function(){return _.W.apply(this,arguments)||this};
_.C(cj,_.W);cj.prototype.ready=function(){if(!_.uB()||O4g)var S=!0;else O4g=!0,S=!1;S||(S=document.querySelector("ytd-app"),S||(S=document.body),this.internalLightBox=_.Ur(S).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.d([_.Z(),_.P("design:type",Object)],cj.prototype,"data",void 0);_.d([_.nU("#lightbox"),_.P("design:type",Object)],cj.prototype,"lightBox",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],cj);
_.k(cj,"ytd-consent-bump-v2-renderer",function(){if(s2Z!==void 0)return s2Z;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return s2Z=S},{mode:1});var M7T;var i2E;var Z2Z;var Qg=function(){var S=_.W.apply(this,arguments)||this;S.ephemeralActionsEnabled=_.u("web_ephemeral_actions");return S};
_.C(Qg,_.W);_.J=Qg.prototype;_.J.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&lc1(this.toastManager,this.toastType)};
_.J.open=function(S){this.toast&&(this.ephemeralAction&&_.fl().resolve(_.Fj).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=S!=null?S:0,this.toastManager.enqueue(this.toast,S)):this.toast.open())};
_.J.close=function(S){var c;(c=this.toast)==null||c.close();this.toastManager&&S===1&&lc1(this.toastManager,S)};
_.J.refit=function(){var S;(S=this.toast)==null||S.refit()};
_.J.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var S;(S=this.toast)==null||S.close()}};
_.J.setVerticalOffset=function(S){this.toast&&(this.toast.verticalOffset=S,this.toast.fit())};
_.J.computeButtonClass_=function(S){return S?"toast-button":""};
_.J.computeText_=function(S){return _.Em(S)};
_.J.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.d4("toast-opened-changed",this.toastOpened))};
_.J.updateToastOpenedFromBinding=function(S){this.toastOpened=S.detail.value};
_.Rh.Object.defineProperties(Qg.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var S,c,Q=(S=this.data)==null?void 0:(c=S.actionButton)==null?void 0:c.buttonRenderer;return(Q==null?void 0:Q.command)||(Q==null?void 0:Q.serviceEndpoint)||(Q==null?void 0:Q.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 S=[],c;((c=this.data)==null?0:c.responseText)&&S.push(_.Em(this.data.responseText));var Q;((Q=this.data)==null?0:Q.subText)&&S.push(_.Em(this.data.subText));var f,U;if((f=this.data)==null?0:(U=f.actionButton)==null?0:U.buttonRenderer){var a,X;S.push(((a=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(X=a.accessibilityData)==null?void 0:X.label)||_.Em(this.data.actionButton.buttonRenderer.text))}return S.filter(function(z){return z}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var S,c;return(c=(S=this.toast)==null?void 0:S.opened)!=null?c:!1}}});
Qg.prototype.toastOpenedChangedForBinding=Qg.prototype.toastOpenedChangedForBinding;Qg.prototype.toastOpenedChanged=Qg.prototype.toastOpenedChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Qg.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],Qg.prototype,"ytEventForwardingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Qg.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Qg.prototype,"duration",void 0);
_.d([_.Z(),_.P("design:type",Number)],Qg.prototype,"toastType",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Qg.prototype,"useCloseButton",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Qg.prototype,"closeToastOnActionButtonClick",void 0);_.d([_.Z({value:function(){return _.K8("SBOX_INAPPROPRIATE_CANCEL")}}),
_.P("design:type",String)],Qg.prototype,"closeButtonAriaLabel",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Qg.prototype,"toastOpened",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Qg.prototype,"hasOpened",void 0);_.d([_.Z(),_.P("design:type",Object)],Qg.prototype,"ephemeralActionsEnabled",void 0);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],Qg.prototype,"command",null);
_.d([_.M("ephemeralActionsEnabled","labelText","command","duration"),_.P("design:type",Object),_.P("design:paramtypes",[])],Qg.prototype,"ephemeralAction",null);_.d([_.M("ephemeralAction"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],Qg.prototype,"hasEphemeralAction",null);_.d([_.nU("#toast"),_.P("design:type",Object)],Qg.prototype,"toast",void 0);_.d([_.Z({value:function(){return{style:"call-to-action-inverse"}}}),
_.P("design:type",Object)],Qg.prototype,"buttonOverrides",void 0);_.d([_.Z({value:{style:"mono-inverse"}}),_.P("design:type",Object)],Qg.prototype,"closeButtonOverrides",void 0);_.d([_.Z({value:function(){return _.fl().resolve(_.QS(_.au))}}),
_.P("design:type",Object)],Qg.prototype,"toastManager",void 0);_.d([_.M("data.responseText","data.subText","data.actionButton"),_.P("design:type",Object),_.P("design:paramtypes",[])],Qg.prototype,"labelText",null);_.d([_.B0("toastOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qg.prototype,"toastOpenedChanged",null);
_.d([_.B0("toastOpened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Qg.prototype,"toastOpenedChangedForBinding",null);_.d([_.wM({is:"yt-notification-action-renderer",disableElementRegistration:!0})],Qg);
_.k(Qg,"yt-notification-action-renderer",function(){if(Z2Z===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;i2E===void 0&&(i2E=document.createElement("template"));var f=i2E;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Z2Z=S}S=Z2Z;return S},{mode:2});var fH=function(){var S=_.W.apply(this,arguments)||this;S.duration=4E3;S.downloadingCount=0;S.downloadedCount=0;S.downloadingOnlySmartDownloads=!1;S.sessionTotalDownloads=0;S.sessionDownloaded=0;S.previousSessionsDownloaded=0;S.totalDownloadPercentage=0;S.currentDownloadProgress=0;S.currentDownloadPercentage=0;S.isLeaderTab=!0;S.isFullScreen=!1;S.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};S.boundBeforeUnload=function(c){S.isLeaderTab&&S.downloadingCount>0&&(c.preventDefault(),
c.returnValue=!0)};
return S};
_.C(fH,_.W);_.J=fH.prototype;
_.J.open=function(){this.updateDownloadState();if(this.data){var S=this.sessionDownloaded+1,c=this.sessionTotalDownloads>1?_.K8("VIDEOS_DOWNLOADING_RATIO",{downloaded:S.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+S+"/"+this.sessionTotalDownloads):_.K8("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(c=this.sessionTotalDownloads>1?_.K8("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:S.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
S+"/"+this.sessionTotalDownloads):_.K8("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));S=this.isLeaderTab?_.K8("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.Em(this.data.responseText)!==c||_.Em(this.data.subText)!==S)this.set("data.responseText",_.LK(c)),this.set("data.subText",_.LK(S)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.J.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.J.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.J.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.J.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var S=this.downloadedCount-this.previousSessionsDownloaded;S<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-S);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.J.handleFullscreenChange=function(S){(this.isFullScreen=S)||this.updatePopup()};
fH.prototype.updateCurrentDownloadProgress=fH.prototype.updateCurrentDownloadProgress;fH.prototype.updatePopup=fH.prototype.updatePopup;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],fH.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],fH.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],fH.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],fH.prototype,"actionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],fH.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],fH.prototype,"duration",void 0);_.d([_.Z({selector:function(S){return _.lVT(S.entities).length}}),
_.P("design:type",Object)],fH.prototype,"downloadingCount",void 0);_.d([_.Z({selector:cBG}),_.P("design:type",Object)],fH.prototype,"downloadedCount",void 0);_.d([_.Z({selector:function(S){var c=_.lVT(S.entities);return SJ8(S.entities,c)}}),
_.P("design:type",Object)],fH.prototype,"downloadingOnlySmartDownloads",void 0);_.d([_.Z(),_.P("design:type",Object)],fH.prototype,"sessionTotalDownloads",void 0);_.d([_.Z(),_.P("design:type",Object)],fH.prototype,"sessionDownloaded",void 0);_.d([_.Z(),_.P("design:type",Object)],fH.prototype,"previousSessionsDownloaded",void 0);_.d([_.Z(),_.P("design:type",Object)],fH.prototype,"totalDownloadPercentage",void 0);
_.d([_.Z({selector:function(S){var c;S=(c=_.lVT(S.entities))!=null?c:[];return S.length>0?_.iLM(S.slice(-1)):0}}),
_.P("design:type",Object)],fH.prototype,"currentDownloadProgress",void 0);_.d([_.Z(),_.P("design:type",Object)],fH.prototype,"currentDownloadPercentage",void 0);_.d([_.Z({selector:_.DBr}),_.P("design:type",Object)],fH.prototype,"isLeaderTab",void 0);_.d([_.nU("yt-notification-action-renderer"),_.P("design:type",Object)],fH.prototype,"notificationActionRenderer",void 0);
_.d([_.$n("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fH.prototype,"updatePopup",null);_.d([_.$n("currentDownloadProgress"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],fH.prototype,"updateCurrentDownloadProgress",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],fH);
_.k(fH,"ytd-video-download-toast-renderer",function(){if(M7T!==void 0)return M7T;var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return M7T=S},{mode:1});var G9Z;var WzO;var Us=function(){return _.W.apply(this,arguments)||this};
_.C(Us,_.W);Us.prototype.computeIsRedLogo=function(S,c){!S&&c&&(S=c);return S==="YOUTUBE_RED_LOGO"||S==="YOUTUBE_PREMIUM_LOGO"};
Us.prototype.computeLogoName=function(S){S=this.componentBehavior.computeIcon_(S);return S===""?"yt-logos-ext:yt-logo-updated":S};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Us.prototype,"componentBehavior",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.P("design:type",Boolean)],Us.prototype,"isRedLogo",void 0);_.d([_.Z({computed:"computeLogoName(data)"}),_.P("design:type",String)],Us.prototype,"logoName",void 0);_.d([_.Z({value:{}}),_.P("design:type",Object)],Us.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],Us.prototype,"logoType",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-logo"})],Us);
_.k(Us,"ytd-logo",function(){if(WzO!==void 0)return WzO;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return WzO=S},{mode:_.A2("kevlar_poly_si_batch_j074")?1:2});var JV=function(){var S=_.W.apply(this,arguments)||this;S.animationRef={};return S};
_.C(JV,_.W);_.J=JV.prototype;_.J.attached=function(){document.addEventListener("yt-navigate-finish",_.xn(this,this.logYoodle))};
_.J.detached=function(){document.removeEventListener("yt-navigate-finish",_.xn(this,this.logYoodle))};
_.J.logYoodle=function(){var S,c;if((S=this.data)==null?0:(c=S.loggingDirectives)==null?0:c.trackingParams)this.ytRendererBehavior.markDirty(),_.Kv().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.J.computeHideImg=function(S,c){return!!S||!!c};
_.J.computeHideYtdLogo=function(S,c){return!S||!!c};
_.J.computeHideLottie=function(S){return!S};
_.J.computeIsRedLogo=function(S){return S==="YOUTUBE_RED_LOGO"||S==="YOUTUBE_PREMIUM_LOGO"};
_.J.renderLogoEntity=function(){var S=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),c=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),Q=this.getLogoTitleText(this.data),f=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==S&&(this.url=S);this.animatedUrl!==c&&(this.animatedUrl=c);this.logoTitleText!==Q&&(this.logoTitleText=Q);this.lottieUrl!==f&&(this.lottieUrl=f,this.lottiePlayerProps=this.computeLottiePlayerProps(f))};
_.J.getSanitizedThumbnail=function(S){return S&&S.thumbnails?_.RAp(S.thumbnails,122)||"":""};
_.J.getThumbnailUrl=function(S,c){if(!c)return"";var Q,f;S=S?(Q=c.darkThemeLogo)==null?void 0:Q.thumbnail:(f=c.lightThemeLogo)==null?void 0:f.thumbnail;return this.getSanitizedThumbnail(S)};
_.J.getAnimatedThumbnailUrl=function(S,c){return c?this.getSanitizedThumbnail(S?c.darkThemeAnimatedLogo:c.lightThemeAnimatedLogo):""};
_.J.getLogoTitleText=function(S){if(S)return _.Em(S.tooltipText)};
_.J.computeLogoIcon=function(S,c){if(c){var Q,f;return S?(Q=c.darkThemeLogo)==null?void 0:Q.icon:(f=c.lightThemeLogo)==null?void 0:f.icon}};
_.J.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.J.getLottieUrl=function(S,c){var Q,f,U,a;return S?c==null?void 0:(Q=c.darkThemeLogo)==null?void 0:(f=Q.lottieAnimation)==null?void 0:f.url:c==null?void 0:(U=c.lightThemeLogo)==null?void 0:(a=U.lottieAnimation)==null?void 0:a.url};
_.J.computeLottiePlayerProps=function(S){if(S){var c;if((c=this.animationRef)==null?0:c.lottieEl){var Q;(Q=this.animationRef)==null||Q.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:S,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.J.onLottieError=function(){this.data&&this.lottieUrl&&_.Az(this.hostElement,"yoodle-error")};
_.J.onImgError=function(){this.data&&!this.lottieUrl&&_.Az(this.hostElement,"yoodle-error")};
JV.prototype.playAnimation=JV.prototype.playAnimation;JV.prototype.renderLogoEntity=JV.prototype.renderLogoEntity;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],JV.prototype,"data",void 0);_.d([_.Z({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.P("design:type",Boolean)],JV.prototype,"hideImg",void 0);
_.d([_.Z({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.P("design:type",Boolean)],JV.prototype,"hideYtdLogo",void 0);_.d([_.Z({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.P("design:type",Boolean)],JV.prototype,"hideLottie",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.P("design:type",Boolean)],JV.prototype,"isRedLogo",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],JV.prototype,"useDarkThemeYoodle",void 0);_.d([_.Z(),_.P("design:type",String)],JV.prototype,"url",void 0);_.d([_.Z(),_.P("design:type",String)],JV.prototype,"animatedUrl",void 0);_.d([_.Z(),_.P("design:type",String)],JV.prototype,"logoTitleText",void 0);_.d([_.Z({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.P("design:type",Object)],JV.prototype,"logoIcon",void 0);_.d([_.Z(),_.P("design:type",Object)],JV.prototype,"logoType",void 0);
_.d([_.Z(),_.P("design:type",String)],JV.prototype,"lottieUrl",void 0);_.d([_.Z(),_.P("design:type",Object)],JV.prototype,"lottiePlayerProps",void 0);_.d([_.Z(),_.P("design:type",Object)],JV.prototype,"animationRef",void 0);_.d([_.B0("data"),_.B0("useDarkThemeYoodle"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],JV.prototype,"renderLogoEntity",null);
_.d([_.FV("click"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],JV.prototype,"playAnimation",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],JV);
_.k(JV,"ytd-yoodle-renderer",function(){if(G9Z!==void 0)return G9Z;var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return G9Z=S},{mode:_.A2("kevlar_poly_si_batch_j074")?1:2});var g3N;var e8Z;var aU=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return S};
_.C(aU,_.W);_.J=aU.prototype;_.J.onYoodleError=function(){_.u("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.J.computeLogoName=function(S){S=this.componentBehavior.computeIcon_(S);return S===""?"yt-logos-ext:yt-logo-updated":S};
_.J.computeTitle=function(S,c,Q){return Q&&(c==null?0:c.tooltipText)?_.Em(c.tooltipText):_.Em(S)};
_.J.computeAriaLabel=function(S,c,Q){return Q&&(c==null?0:c.tooltipText)?_.Em(S):""};
_.J.computeShowYoodle=function(S,c,Q){return!S||!c&&!!Q&&!_.Cn.isEmpty(Q)};
_.J.onNavigateHomeAction=function(){if(_.u("kevlar_miniplayer_navigate_home_from_app_killswitch")){var S;(S=_.Ur(this.hostElement).querySelector(".yt-simple-endpoint"))==null||S.click()}};
_.J.computeLogoHref=function(S,c,Q){var f;(Q==null?0:Q.onTapCommand)?f=this.componentBehavior.computeHref_(Q.onTapCommand):S&&(f=this.componentBehavior.computeHref_(S));return f?f:c};
_.J.computeCommand=function(S,c){return(c==null?void 0:c.onTapCommand)||S};
_.J.getEndpointForm=function(){if(_.u("kevlar_topbar_disable_cache_only_home")){var S=_.fl().resolve(_.kR),c=Ac8(S.getState())||"";S=_.t3H(S.getState())||"";return{disableCache:c==="ytd-browse"&&S==="home"}}return{disableCache:!0}};
aU.prototype.onYoodleError=aU.prototype.onYoodleError;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],aU.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],aU.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],aU.prototype,"componentBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],aU.prototype,"ytdReduxBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],aU.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],aU.prototype,"countryCode",void 0);_.d([_.Z({selectorArgs:["data.overrideEntityKey"],selector:function(S,c){return _.FT(S.entities,"logoEntity",c)}}),
_.P("design:type",Object)],aU.prototype,"logoEntity",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.P("design:type",Boolean)],aU.prototype,"showYoodle",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],aU.prototype,"yoodleError",void 0);_.d([_.Z({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.P("design:type",String)],aU.prototype,"titleText",void 0);
_.d([_.Z({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.P("design:type",String)],aU.prototype,"ariaLabelText",void 0);_.d([_.Z({value:"/"}),_.P("design:type",String)],aU.prototype,"defaultEndpointUrl",void 0);_.d([_.Z({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.P("design:type",String)],aU.prototype,"endpointUrl",void 0);
_.d([_.Z({computed:"computeCommand(data.endpoint, logoEntity)"}),_.P("design:type",String)],aU.prototype,"command",void 0);_.d([_.Z(),_.P("design:type",Object)],aU.prototype,"logoType",void 0);_.d([_.Z({}),_.P("design:type",Boolean)],aU.prototype,"useDarkThemeYoodle",void 0);_.d([_.FV("yoodle-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],aU.prototype,"onYoodleError",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],aU);
_.k(aU,"ytd-topbar-logo-renderer",function(){if(e8Z!==void 0)return e8Z;var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return e8Z=S},{mode:_.A2("kevlar_poly_si_batch_j027")?1:2});var k9U=0;var rLZ=_.vz.SEARCH_APPEND_LABEL,d5Z=_.vz.SUGGESTION_NEW_VIDEOS_TEXT,v3U=_.vz.SUGGESTION_THUMBNAIL_LABEL,PXZ=_.vz.SUGGESTION_THUMBNAIL_ATTRIBUTION_LABEL,LzG=_.y_(function(S){function c(h$){var FE,an;return _.O(function(XE){if(XE.nextAddress==1)return FE=new Request(h$),_.X1(XE,2),_.F(XE,fetch(FE,{credentials:"include"}),4);if(XE.nextAddress!=2)return xZ(!0),_.Pi(XE,0);an=_.Bs(XE);_.i5(an);_.IN(XE)})}
var Q=S.isHighlighted;var f=S.suggestion;var U=S.onClickCallback;var a=S.onHoverUpdateCallback;var X=S.labels;var z=S.queryBuilderFunction;var x=S.onRemoveCallback;var I=S.suggestionIndex;var n=S.generateUniqueId;var b=S.highlightedId;var N=S.useScrollMargin;var l=S.isKeyboardMode;var H=null,q=null,w=_.EH("div"),g=_.EH("span");S=_.A(_.ny(!1,void 0,"CgAMgc"));var r=S.next().value,E=S.next().value,v=_.tc("a",function(h$){h$&&_.GV(237477,h$,q,function(FE){q=FE})}),t=_.tc("button",function(h$){h$&&_.GV(237477,
h$,q,function(FE){q=FE})}),V=_.$d(function(h$){if((h$==null?void 0:h$.button)===2)return h$.preventDefault(),!1;
var FE=_.wN();FE&&H&&_.Vw(FE,H,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var an;U(h$,f().text,f().index,f().entityMid,h$==null?void 0:(an=h$.detail)==null?void 0:an.wasSelectedByKeyboard);return!1}),AZ=function(){return f().type===35},IH=function(){return _.u("desktop_enable_single_suggestion_highlight")},Nr=function(){return _.a6("desktop_suggestions_panel_row_height")||0},Hc=function(){var h$;
return _.u("desktop_enable_new_video_metadata")&&((h$=f())==null?void 0:h$.hasNewVideo)===!0},qr=function(){return _.u("desktop_enable_visual_suggest")},wp=function(){return _.u("desktop_enable_entity_suggest")&&Kzg(f())},Pc=function(){return f().entitySubtitle},ex=function(){return IH()?(Q==null?void 0:Q())||uu()&&!(l==null?0:l()):(Q==null?void 0:Q())||uu()},yd=function(){var h$=_.WY("SBOX_SETTINGS");
return AZ()&&!(h$==null?0:h$.HIDE_REMOVE_LINK)},op=function(){return $51(f(),{useEntityName:wp()})},DT,B_=!((DT=_.fl().resolve(_.QS(_.Lv)))==null||!DT()),zJ=function(){return AZ()?_.u("enable_web_delhi_icons")?"HISTORY":"ARROW_TIME":"SEARCH"},Qp=function(){return X==null?void 0:X().SUGGESTION_DISMISS_LABEL},xl=function(){return X==null?void 0:X().SUGGESTION_DISMISSED_LABEL};
S=_.A(_.ny(!1,void 0,"RcUcKd"));DT=S.next().value;var xZ=S.next().value;S=_.A(_.ny(!1,void 0,"yGR7je"));var hj=S.next().value,OT=S.next().value,uu=hj,sd=_.$d(function(){z(g.value.innerText);return!1}),LT=_.$d(function(h$){h$.preventDefault();
return!1}),Ci=_.$d(function(h$){var FE=f().text,an=_.WY("SBOX_SETTINGS"),XE="https://"+(an.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
XE+="&delq="+encodeURIComponent(FE);(FE=an==null?void 0:an.PSUGGEST_TOKEN)&&(XE+="&tok="+FE);(an=an==null?void 0:an.SESSION_INDEX)&&(XE+="&authuser="+an);c(XE);h$.preventDefault();(h$=_.wN())&&q&&_.Vw(h$,q,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");x(I==null?void 0:I());return!1}),t$=_.$d(function(){if(IH()&&(l==null?0:l()))return!1;
OT(!0);a(!0);return!1}),kp=_.$d(function(){OT(!1);
a(!1);return!1}),Ed=_.$d(function(){E(!0);
return!1}),J$=_.$d(function(){E(!1);
return!1}),ez=_.$d(function(h$){h$.preventDefault();
var FE;(h$=(FE=f().entityThumbnailAttributionUrl)!=null?FE:"")&&_.NLz(h$);return!1});
S=_.A(_.ny("",void 0,"k9uVge"));var $0=S.next().value,$l=S.next().value;_.qR(function(){yd()&&$l(n==null?void 0:n(I==null?void 0:I()));w.value&&_.GV(12453,w.value,H,function(h$){H=h$})});
return _.B(_.K,{cond:DT,then:function(){var h$={};return _.B("div",{class:_.n4("ytSuggestionComponentRemovedText",(h$.ytSuggestionComponentLargerRemovedText=function(){return qr()},h$)),
style:function(){return Nr()>0?"height: "+Nr()+"px;":""},
role:"button"},xl)},
else:function(){var h$={},FE={};return _.B("div",{class:_.n4("ytSuggestionComponentSuggestion",(h$.ytSuggestionComponentSuggestionHover=function(){return!IH()},h$.ytSuggestionComponentHighlighted=ex,h$.ytSuggestionComponentPersonalizedSuggestion=AZ,h$.ytSuggestionComponentMweb=!1,h$.ytSuggestionComponentLargerSuggestion=function(){return Hc()||qr()},h$.ytSuggestionComponentThumbnailSuggestion=function(){return qr()},h$.ytSuggestionComponentRoundedSuggestion=function(){return _.u("desktop_enable_scrollable_suggestions_panel")&&
_.u("desktop_enable_suggestions_panel_padding")},h$.ytSuggestionComponentThumbnailPadding=function(){return qr()&&!AZ()},h$)),
style:function(){return Nr()>0?"height: "+Nr()+"px;":""},
role:"presentation","on:mousedown":V,"on:mouseover":t$,"on:mouseout":kp,el:w},_.B("div",{class:_.n4("ytSuggestionComponentText",(FE.ytSuggestionComponentScrollMargin=N,FE)),"aria-label":function(){return Hc()?f().text+" "+d5Z:f().text},
id:function(){return n==null?void 0:n(I==null?void 0:I())},
"on:mousedown":V,role:"option"},_.B(_.K,{cond:function(){return f().type!==33},
then:function(){return _.B(_.C4,{icon:zJ,className:"ytSuggestionComponentIcon"})}}),_.B("div",{class:"ytSuggestionComponentLeftContainer"},_.B("span",{el:g,
role:"button",tabindex:0},_.B(_.lW,{each:op},function(an){return an.bold?_.B("span",{class:"ytSuggestionComponentBold"},an.text):_.B("span",null,an.text)})),_.B(_.K,{cond:function(){return wp()&&!!f().entitySubtitle||Hc()},
then:function(){return _.B("div",{class:"ytSuggestionComponentMetadataContainer"},_.B(_.K,{cond:function(){return wp()&&!!f().entitySubtitle},
then:function(){return _.B("div",{class:"ytSuggestionComponentEntitySubtitle"},Pc)}}),_.B(_.K,{cond:function(){return Hc()},
then:function(){return _.B("div",{class:"ytSuggestionComponentNewVideoContainer"},_.B("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.B("div",{class:"ytSuggestionComponentNewVideoText"},d5Z))}}))}}))),_.B("div",{class:"ytSuggestionComponentRightContainer"},_.B(_.K,{cond:function(){return qr()&&f().visualSuggestUrl!==void 0},
then:function(){var an={};return _.B("div",{class:"ytSuggestionComponentThumbnailContainer"},_.B("img",{"aria-label":v3U,class:_.n4("ytSuggestionComponentVisualSuggestThumbnail",(an.ytSuggestionComponentCircularFrame=function(){return wp()&&f().subtypes.includes(790)},an.ytSuggestionComponentEntitySuggestThumbnail=function(){return wp()},an)),
src:function(){return f().visualSuggestUrl}}),_.B(_.K,{cond:function(){return wp()&&!!f().entityThumbnailAttributionUrl},
then:function(){var XE={};return _.B("span",{title:PXZ,role:"tooltip"},_.B("div",{"on:mouseover":Ed,"on:mouseout":J$,"on:mousedown":ez,class:_.n4("ytSuggestionComponentThumbnailOverlay",(XE.ytSuggestionComponentThumbnailOverlayHidden=function(){return!r()},XE))},_.B(_.C4,{icon:"INFO",
className:"ytSuggestionComponentInfoIcon"})))}}))}}),_.B(_.DJ,null,_.B(_.YC,{when:function(){return qr()&&yd()}},function(){var an={};
return _.B("button",{class:_.n4("ytSuggestionComponentRemoveLinkClearButton",(an.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return $0()&&$0()===(b==null?void 0:b())},an.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!ex()},an)),
el:t,"on:mousedown":Ci,"aria-label":Qp,id:function(){return $0()}},_.B(_.C4,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.B(_.YC,{when:function(){return!(qr()&&f().visualSuggestUrl!==void 0)&&yd()}},function(){var an={};
return _.B("a",{class:_.n4("ytSuggestionComponentRemoveLink",(an.ytSuggestionComponentRemoveLinkDark=B_,an.ytSuggestionComponentRemoveLinkSelected=function(){return $0()&&$0()===(b==null?void 0:b())},an)),
el:v,"on:mousedown":Ci,"aria-label":Qp,tabindex:0,role:"button",id:function(){return $0()}},Qp)}),_.B(_.YC,{when:function(){return!1}},function(){return _.B("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":sd,"on:mousedown":LT,role:"button","aria-label":rLZ},_.B(_.C4,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"tg");var E3T=_.y_(function(){return _.B("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.B("button",{class:"ytdTextInputAssistantButton","on:click":_.$d(function(){Y4g().inputMethodsTracker.add(3);var S,c=(S=_.WY("SBOX_SETTINGS"))==null?void 0:S.REQUEST_LANGUAGE;if(c)return _.kU("//www.google.com/textinputassistant/14/"+c+"_tia.js"),!1})},_.B("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 t7V=function(){this.cache=new Map},V7V=function(S){for(var c=_.A(S.cache.entries()),Q=c.next();!Q.done;Q=c.next()){var f=_.A(Q.value);
Q=f.next().value;f=f.next().value;f.suggestions.some(function(U){return U.type===35})&&S.cache.delete(Q)}};var R8g=_.vz.SEARCH,yLB=_.vz.SEARCH_CLEAR_LABEL,o3O=new _.Sg("FAKE_SUGGEST_RESPONSE");_.f4(_.y_(function(S){function c(){Ed||(Ed=setTimeout(function(){ez()},1E3))}
function Q(Ki,ni,uE){if(Ki.trim()){kp=Ki;_.G_("REFINEMENTS_TUPLE",void 0);Ci=!0;var FA;ni=D5N(hj,ni);var ap=(FA=S.searchEndpoint)==null?void 0:FA.call(S);FA=zJ.value.value;ap||(ap=KvE);var bo;(bo=_.Y(ap.commandMetadata,_.Qw))!=null&&bo.url||(bo=Error("pl`"+JSON.stringify(ap)),_.sH(bo),ap=KvE);bo=_.Cn.unsafeClone(ap);ap=_.WG(_.Y(bo.commandMetadata,_.Qw).url,"search_query",Ki);_.v1(location.href,"sv")==="1"&&(_.Y(bo,_.$k).params="EgOAAgE%3D",ap=_.WG(ap,"sv","1"));_.Y(bo,_.$k)&&(_.Y(bo,_.$k).query=Ki);
ap=ap.replace(/%20/g,"+");_.Y(bo.commandMetadata,_.Qw).url=ap;uE=_.u("desktop_enable_entity_suggest")?{entityMid:uE}:{};_.fl().resolve(_.U8).resolveCommand(bo,{form:{tempData:Object.assign({},{gs_l:ni,oq:FA!=null?FA:Ki},uE)}});ez();zJ.value.value=Ki;zJ.value.blur();hj.reset()}}
function f(Ki){return _.O(function(ni){return ni.return(new Promise(function(uE){var FA=new XMLHttpRequest;FA.open("GET",x51(Ki),!0);FA.withCredentials=!0;var ap=_.WY("SBOX_SETTINGS");(ap==null?0:ap.SEND_VISITOR_DATA)&&FA.setRequestHeader("X-Goog-Visitor-Id",ap==null?void 0:ap.VISITOR_DATA);FA.onload=function(){uE(FA.responseText)};
FA.onerror=function(){_.i5(Error("ql"));uE(null)};
setTimeout(function(){FA.abort()},1E4);
FA.send(null)}))})}
function U(Ki){var ni,uE,FA,ap;return _.O(function(bo){switch(bo.nextAddress){case 1:return ni={credentials:"include",headers:z80()},window.AbortController&&(uE=new AbortController,setTimeout(function(){uE.abort("ytsbox-suggest-timeout")},1E4),ni.signal=uE.signal),_.X1(bo,2),_.F(bo,fetch(x51(Ki),ni),4);
case 4:FA=bo.yieldResult.text();_.Pi(bo,3);break;case 2:return ap=_.Bs(bo),ap!=="ytsbox-abort-last"&&ap!=="ytsbox-suggest-timeout"&&_.i5(ap),bo.return(null);case 3:return bo.return(FA)}})}
function a(Ki){var ni,uE,FA;return _.O(function(ap){switch(ap.nextAddress){case 1:if(ni=_.fl().resolve(_.QS(o3O)))return ap.return(ni);uE=Date.now();c();return _.u("yt_searchbox_xhr")?_.F(ap,f(Ki),5):_.F(ap,U(Ki),4);case 4:FA=ap.yieldResult;ap.jumpTo(3);break;case 5:FA=ap.yieldResult;case 3:if(FA){Ed&&(clearTimeout(Ed),Ed=null);var bo=hj,At=uE,iY=Ki.query.length===0;At=Date.now()-At;iY?bo.zeroPrefixRoundTripTime=At:(bo.JSC$18477_totalRoundTripTime+=At,bo.maxRoundTripTime=Math.max(bo.maxRoundTripTime,
At),iY=Math.floor(At/100),iY>=pME.length?++bo.roundTripTimeHistogram[9]:++bo.roundTripTimeHistogram[pME[iY]])}return ap.return(FA)}})}
function X(Ki){var ni,uE,FA;return _.O(function(ap){if(ap.nextAddress==1)return(ni=xZ.cache.get(O2T(Ki)))?ap.return(ni):_.F(ap,a(Ki),2);uE=ap.yieldResult;if(uE===null)return ap.return(null);FA=new uW1(uE);Ki.query.length===0&&FA.suggestions.length===0||xZ.cache.set(O2T(Ki),FA);return ap.return(FA)})}
function z(Ki){var ni,uE;return _.O(function(FA){if(FA.nextAddress==1){t$=!1;var ap=kp;ap=_.bep()==="search"?(_.v1(location.href,"search_query")||_.v1(location.href,"q"))===ap:!1;ni=new XMU(Ki,ap?kp:null);return _.F(FA,X(ni),2)}uE=FA.yieldResult;if(uE===null)return FA.return();ni.query.length===0&&(hj.zeroPrefixSuggestionCount=uE.suggestions.length);if(ni.id<=J$)return hj.outOfSyncResponseCount++,FA.return();if(document.activeElement!==zJ.value)return FA.return();J$=ni.id;var bo=hj,At=uE.rawResponse[2]||
{};bo.experimentTriggeredBeforeFinal||(bo.experimentTriggeredBeforeFinal=bo.experimentTriggeredFinal);bo.experimentTriggeredFinal=!!At.e;hj.updateSuggestions(uE.suggestions);w(-1);yd([]);uE.suggestions!==l()&&y0(uE.suggestions.length);H(uE.suggestions);IH(uE.suggestions.length>0&&uE.suggestions[0].type===33);xl&&(xl.hidden=uE.suggestions.length===0,AZ()?(xl.style.minWidth="",bo=xl.style,At=(ap=l()[0])==null?void 0:ap.ignoredPrefix,bo.marginLeft=(At?Math.min(At.length*6,Qp.value.offsetWidth):0).toString()+
"px"):(xl.style.minWidth=Qp.value.offsetWidth+"px",xl.style.marginLeft="0"),yx());_.IN(FA)})}
function x(){if(!Ci)return!1;var Ki=_.WY("REFINEMENTS_TUPLE");return Ki?(Ki=Ki[1].map(function(ni,uE){return new NiV([ni,0,[71]],zJ.value.value,uE)}),l()!==Ki&&y0(Ki.length),yd([]),H(Ki),hj.updateSuggestions(Ki),Ci=!1,xl.hidden=Ki.length===0,t$=Ki.length>0,!0):!1}
function I(){var Ki=zJ.value.value;(typeof Ki==="string"||Ki instanceof String)&&Ki!==""?v(!0):v(!1)}
function n(){if(_.bep()==="search"){var Ki=window.location.href;try{var ni=_.v1(Ki,"search_query")||_.v1(Ki,"q")||""}catch(uE){ni=""}ni&&(zJ.value.value=ni,v(!0))}}
var b=_.A(_.ny([],void 0,"kGFAjf")),N=b.next().value;b=b.next().value;var l=N,H=b;N=_.A(_.ny(-1,void 0,"mLGL9e"));var q=N.next().value,w=N.next().value;N=_.A(_.ny(-1,void 0,"u2rYdc"));var g=N.next().value,r=N.next().value;N=_.A(_.ny(!1,void 0,"W9DFC"));var E=N.next().value,v=N.next().value;N=_.A(_.ny(!1,void 0,"Ip4dNc"));var t=N.next().value,V=N.next().value;b=_.A(_.ny(!1,void 0,"ZNKSQb"));N=b.next().value;b=b.next().value;var AZ=N,IH=b;b=_.A(_.ny(!1,void 0,"JBrGLd"));N=b.next().value;var Nr=b.next().value;
b=_.A(_.ny(!1,void 0,"P2pD6e"));var Hc=b.next().value,qr=b.next().value;b=_.A(_.ny(1,void 0,"SjP20c"));var wp=b.next().value,Pc=b.next().value;b=_.A(_.ny([],void 0,"h4dRaf"));var ex=b.next().value,yd=b.next().value;b=_.A(_.ny(!1,void 0,"TUTzaf"));var op=b.next().value,DT=b.next().value;b=_.u("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var B_=_.EH("yt-searchbox"),zJ=_.EH("input"),Qp=_.EH("div"),xl,xZ=
new t7V,hj=Y4g(),OT=_.fl().resolve(_.QS(_.Lv)),uu=function(){var Ki;return((Ki=S.forceDarkMode)==null?void 0:Ki.call(S))||!(OT==null||!OT())},sd=function(){return _.u("desktop_enable_scrollable_suggestions_panel")},LT="i"+k9U++,Ci=!1,t$=!1,kp="",Ed=null,J$=-1,ez=function(){yd([]);
H([]);IH(!1);xl&&(xl.hidden=!0);Ed&&(clearTimeout(Ed),Ed=null);w(-1)},$0=function(Ki,ni){Ki.preventDefault();
DT(!0);xl&&(xl.hidden=!1);var uE=q();Ki=l();var FA=ex();ni=FMZ(ni);uE+=ni;for(uE>=Ki.length?uE=-1:uE<-1&&(uE=Ki.length-1);uE!==-1&&(FA.includes(uE)||uE>=Ki.length||uE<0);)uE+=ni,uE>=Ki.length&&(uE=-1);w(uE);q()>=0&&(zJ.value.value=l()[q()].text,r(0),I(),Ki=q(),FA=g(),(FA=document.getElementById(zC[Ki][FA]))&&sd()&&(Ki===l().length-1?xl.scrollTop=xl.scrollHeight:FA.scrollIntoView({block:"nearest",inline:"start"})))},$l=_.$d(function(Ki){if(!(Ki.relatedTarget instanceof Element&&Ki.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){V(!0);
var ni;(ni=S.focusCallback)==null||ni.call(S,!0);x()||(t$?xl.hidden=!1:(_.Az(B_.value,"yt-autonav-pause-focus",{}),z(Ki.target.value)))}}),h$=_.$d(function(Ki){if(!(Ki.relatedTarget instanceof Element&&Ki.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){V(!1);
var ni;(ni=S.focusCallback)==null||ni.call(S,!1);xl.scrollTop=0;xl.hidden=!0;_.Az(B_.value,"yt-autonav-pause-blur",{})}}),FE=function(Ki){Ki=FMZ(Ki);
var ni;((ni=zC[q()])==null?0:ni[g()+Ki])&&r(g()+Ki)},an=_.$d(function(Ki){var ni=Ki.target;
switch(Ki.keyCode){case 13:Ki.preventDefault();var uE;if((uE=zC[q()])==null?0:uE[g()]){var FA;(FA=document.getElementById(zC[q()][g()]))==null||FA.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}Ki=Ki.shiftKey?4:3;uE=hj;FA=q();uE.selectedSuggestionIndex=FA;Q(ni.value,Ki);break;case 27:xl&&(xl.hidden=!0);break;case 40:$0(Ki,40);break;case 38:$0(Ki,38);break;case 39:FE(39);break;case 37:FE(37);break;case 229:hj.inputMethodsTracker.add(4);break;default:hj.inputMethodsTracker.add(1),
CXE(hj)}return!1}),XE=_.$d(function(Ki){z(Ki.target.value);
I();sd()&&xl&&(xl.scrollTop=0);return!1}),ui=_.$d(function(){hj.inputMethodsTracker.add(2);
CXE(hj);return!1});
_.qR(function(){if(xl){hj.reset();if(window.ResizeObserver){var Ki=new ResizeObserver(function(){AZ()||(xl.style.minWidth=Qp.value.offsetWidth+"px")});
Ki.observe(Qp.value);(new ResizeObserver(function(){yx()})).observe(xl);
_.wX(function(){Ki.disconnect()})}n();
window.addEventListener("yt-navigate-finish",n);window.addEventListener("yt-focus-searchbox",function(){zJ.value.focus()});
var ni;Nr((ni=_.WY("SBOX_SETTINGS"))==null?void 0:ni.HAS_ON_SCREEN_KEYBOARD)}else _.sH(new _.Yr("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var gN=_.$d(function(Ki){Ki.preventDefault();Q(zJ.value.value,12);return!1}),rd=_.$d(function(Ki){Ki.preventDefault();
var ni,uE;(ni=zJ)==null||(uE=ni.value)==null||uE.focus();var FA,ap;((FA=zJ)==null?void 0:(ap=FA.value)==null?void 0:ap.value)!==""&&(zJ.value.value="",zJ.value.dispatchEvent(new Event("input")));return!1}),pT=_.$d(function(){var Ki=XGN(zJ.value.value,l().filter(function(ni){return ni.type!==35}).map(function(ni){return{label:ni.text}}));
_.XF(B_.value,"yt-open-popup-action",[{openPopupAction:Ki},document.body]);return!1}),og=_.$d(function(){zJ.value.focus();
return!1}),Aj=function(Ki,ni,uE,FA,ap){hj.selectedSuggestionIndex=uE;
Q(ni,ap?3:1,FA)},sh=function(Ki){zJ.value.value=Ki;
zJ.value.dispatchEvent(new Event("input"));hj.inputMethodsTracker.add(5);CXE(hj,!0)},zC=[[]],Cb=function(Ki){var ni="searchbox-suggestion"+_.MI(_.HD);
zC[Ki].push(ni);return ni},y0=function(Ki){if(l()){zC=[[]];
for(var ni=0;ni<Ki;ni++)zC.push([])}},yx=function(){if(sd()){var Ki=xl,ni=Ki.scrollTop;
Ki=Ki.scrollHeight-Ki.clientHeight;qr(ni>=Ki);ni=Math.abs(Ki-ni);ni<=40?Pc(1-(40-ni)/40):Pc(1)}},eB=function(){return"opacity: "+wp()*100+"%"},lM=_.$d(function(){yx();
return!1}),ZZ=_.$d(function(){DT(!1);
return!1}),rp,bu={},AU={},qV={},B8={};
return _.B("yt-searchbox",{class:_.n4("ytSearchboxComponentHost",(bu.ytSearchboxComponentMweb=!1,bu.ytSearchboxComponentDesktop=!0,bu["yt-searchbox-filled-query"]=function(){return E()},bu["ytd-masthead"]=function(){return!t()},bu.ytSearchboxComponentHostDark=uu,bu)),
role:"search",el:B_,"client-ve-type":10349},_.B("div",{el:Qp,"on:click":og,class:_.n4("ytSearchboxComponentInputBox",(AU.ytSearchboxComponentInputBoxDark=uu,AU.ytSearchboxComponentInputBoxHasFocus=t,AU))},_.B("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":gN},_.B(_.K,{cond:t,then:function(){return _.B("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.B(_.C4,{icon:"SEARCH"}))}}),_.B("input",{el:zJ,
class:_.n4("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":LT,"aria-expanded":!((rp=xl)==null?0:rp.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":h$,"on:focus":$l,"on:input":XE,"on:keydown":an,"on:paste":ui,placeholder:S.placeholderText,"aria-activedescendant":function(){var Ki;return(Ki=zC[q()])==null?void 0:Ki[g()]},
"aria-autocomplete":"list",role:"combobox"})),_.B(_.K,{cond:N,then:function(){return _.B("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.B(E3T,null))}}),_.B(_.K,{cond:E,
then:function(){return _.B("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.B("button",{class:"ytSearchboxComponentClearButton","on:click":rd,"aria-label":S.clearButtonAriaLabel||yLB},_.B(_.C4,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.B(_.p4,{model:{}})))}})),_.B("button",{class:_.n4("ytSearchboxComponentSearchButton",(qV.ytSearchboxComponentSearchButtonDark=uu,qV)),
"on:click":gN,"aria-label":R8g,title:S.placeholderText},_.B(_.C4,{icon:"SEARCH"})),_.B(_.K,{cond:function(){if(jIp()&&_.u("mweb_voice_search")&&S.voiceSearchButton)return S.voiceSearchButton()},
then:function(Ki){var ni={};return _.B("div",{class:_.n4("ytSearchboxComponentVoiceSearchWrapper",(ni.ytSearchboxComponentHideVoiceSearchButton=function(){return E()},ni))},_.B(_.h8,{data:Ki},{buttonRenderer:function(uE){return _.B(_.ve,{data:uE.data,
onButtonClickCallback:function(){}})}}))}}),_.B("div",{el:_.oW(function(Ki){return void(xl=Ki)}),
id:LT,class:_.n4("ytSearchboxComponentSuggestionsContainer",(B8.ytSearchboxComponentSuggestionsContainerDark=uu,B8["yt-searchbox-suggestions-container"]=!1,B8.ytSearchboxComponentSuggestionsContainerScrollable=sd(),B8.ytSearchboxComponentSuggestionsContainerAnimated=b,B8)),"on:scroll":lM,"on:mousemove":ZZ,role:"listbox",hidden:!0},_.B(_.lW,{each:l},function(Ki,ni){return _.B(LzG,{suggestion:Ki,isHighlighted:function(){return ni()===q()},
onClickCallback:Aj,onHoverUpdateCallback:function(uE){if(_.u("desktop_enable_single_suggestion_highlight")){var FA=ni();uE&&(r(0),w(FA))}},
onRemoveCallback:function(uE){V7V(xZ);uE===void 0||uE<0||ex().includes(uE)||yd([].concat(_.Hs(ex()),[uE]))},
labels:S.labels,queryBuilderFunction:sh,suggestionIndex:ni,generateUniqueId:Cb,highlightedId:function(){var uE;return(uE=zC[q()])==null?void 0:uE[g()]},
useScrollMargin:sd(),isKeyboardMode:op})}),_.B(_.K,{cond:function(){return!AZ()&&l().find(function(Ki){return Ki.type!==35})&&_.u("searchbox_reporting")},
then:function(){return _.B("button",{class:"ytSearchboxComponentReportButton","on:mousedown":pT},_.K8("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.B(_.K,{cond:function(){return!Hc()&&sd()},
then:function(){return _.B("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.B("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:eB}))}})))},"vg"),"yt-searchbox",{props:{searchEndpoint:_.y$,
placeholderText:_.y$,labels:_.y$,voiceSearchButton:_.y$,focusCallback:_.Qn,clearButtonAriaLabel:_.y$,forceDarkMode:_.y$}});var AV=function(){var S=_.W.apply(this,arguments)||this;S.menuButtonTargetId="topbar-guide-menu";S.narrow=!1;S.menuStrings={BACK_ALT_LABEL:_.K8("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.K8("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.K8("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.K8("SBOX_PLACEHOLDER",void 0,"Search")};S.pageDarkTheme=document.documentElement.hasAttribute("dark");S.watchPageScrollTop=0;S.theater=!1;S.fullscreen=!1;S.desktopUnifiedSearchPanelMode=_.u("desktop_enable_unified_search_panel");
S.cinematicTheaterMode=_.u("web_cinematic_theater_mode");S.ytSearchboxFocused=!1;S.searchboxLabels=_.WY("SBOX_LABELS");S.topbarIsAboveChipbar=!1;S.isDarkThemeForced=!1;S.areGhostCardsHidden=!1;S.guideKeyboardToggle=!1;S.voiceSearchManager=FyE();S.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};S.setYtSearchboxFocused=function(c){S.ytSearchboxFocused=c};
return S};
_.C(AV,_.W);_.J=AV.prototype;_.J.computeSimpleText=function(S){return _.Em(S)};
_.J.onDarkChanged=function(){for(var S=_.A(this.buttons||[]),c=S.next();!c.done;c=S.next())c.value.isOverlay=!!this.dark;S=_.A(this.buttonRenderers||[]);for(c=S.next();!c.done;c=S.next())c.value.overrides=this.computeButtonOverride()};
_.J.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.J.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"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var S=_.en(_.g2(),"aa");_.a1(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||S||(this.isDarkThemeForced=this.dark=!0);this.logoType?(S=this.hostElement.querySelector("#masthead-logo"))&&(_.u("polymer_on_demand_shady_dom")?S.setAttribute("slot","masthead-logo-old"):_.K9(S)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.xn(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.xn(this,this.onSetTheaterModeEnabled))};
_.J.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.xn(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.xn(this,this.onSetTheaterModeEnabled))};
_.J.dataChanged=function(){var S=this.data;S&&(this.voiceEnabled=S.voiceSearchButton?FyE().isSupported():!1,_.o9d(_.Hb(),this.menuButtonTargetId,this.guideButton),S.onReceivedActions&&S.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.FF(this.hostElement,S.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&S&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.a1(this.hostElement,"dark",!1),_.a1(this.hostElement,"theater",!1),
(S=this.hostElement.querySelector("#masthead-logo"))&&(_.u("polymer_on_demand_shady_dom")?S.setAttribute("slot","masthead-logo-old"):_.K9(S))))};
_.J.computeCenterHidden=function(){var S;return this.data&&!((S=this.data.searchbox)==null?0:S.fusionSearchboxRenderer)};
_.J.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.a1(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.J.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.J.onWatchScroll=function(S){this.watchPageScrollTop=S.detail||0;this.updateMastheadBackgroundOpacity()};
_.J.onFullscreenChangeAction=function(S){S||(this.watchPageScrollTop=0);this.fullscreen=S;this.updateMastheadBackgroundOpacity()};
_.J.onSetTheaterModeEnabled=function(S){this.theater=S.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.J.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.J.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.J.setBackgroundOpacity=function(S){S=this.calculateBackgroundOpacity(S);this.background.style.opacity=""+S};
_.J.calculateBackgroundOpacity=function(S){var c=this.theater&&this.cinematicTheaterMode?.6:0,Q=this.hostElement.clientHeight/2;return Math.min(Math.max(S,0),Q)/Q*(1-c)+c};
_.J.shouldShowCinematicMastHead=function(){var S=_.u("kevlar_watch_grid")&&!_.u("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(S||this.pageDarkTheme)};
_.J.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.J.focusGuide=function(){this.guideButton.focus()};
_.J.onGuideToggleTap=function(){_.Az(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.J.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.J.onGuideToggleHover=function(){_.Az(this.hostElement,"yt-guide-hover")};
_.J.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.J.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.J.closeOnOutsideClickCondition=function(S){for(S=_.t4(S);S[0];){var c=S.shift();if(c instanceof Element&&c.id==="kbd")return!1}return!0};
_.J.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.J.pausePlayer=function(){var S;(S=_.S9())==null||S.pause();this.pauseMiniplayer()};
_.J.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var S;(S=_.fl().resolve(_.ra).getPlayerElement())==null||S.pause()}};
_.J.isMiniplayerActive=function(){return _.fl().resolve(_.ra).isMiniplayerActive()};
_.J.updateNarrowFromBinding=function(S){this.narrow=S.detail.value};
_.J.onYtSendFeedbackAction=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.Rh.Object.defineProperties(AV.prototype,{guideIcon:{configurable:!0,enumerable:!0,get:function(){return _.u("enable_web_delhi_icons")?"menu":"yt-icons:menu"}},
shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var S;return(S=this.data)==null?void 0:S.voiceSearchButton}}}});
AV.prototype.narrowChanged=AV.prototype.narrowChanged;AV.prototype.onWatchPageChange=AV.prototype.onWatchPageChange;AV.prototype.onRendererStamperFinished=AV.prototype.onRendererStamperFinished;AV.prototype.dataChanged=AV.prototype.dataChanged;AV.prototype.onDarkChanged=AV.prototype.onDarkChanged;_.d([_.p(_.w9),_.P("design:type",Object)],AV.prototype,"ironResizableBehavior",void 0);_.d([_.p(_.KoN),_.P("design:type",Object)],AV.prototype,"ytdExpandableInputBehavior",void 0);
_.d([_.p(_.gL.YtdGuideStateAwareBehavior),_.P("design:type",Object)],AV.prototype,"ytdGuideStateAwareBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],AV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],AV.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],AV.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],AV.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.st),_.P("design:type",Object)],AV.prototype,"ytdReduxBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],AV.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],AV.prototype,"narrow",void 0);_.d([_.Z(),_.P("design:type",Object)],AV.prototype,"logoType",void 0);_.d([_.Z(),_.P("design:type",Boolean)],AV.prototype,"voiceEnabled",void 0);
_.d([_.Z(),_.P("design:type",Object)],AV.prototype,"menuStrings",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],AV.prototype,"dark",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],AV.prototype,"pageDarkTheme",void 0);_.d([_.Z(),_.P("design:type",Object)],AV.prototype,"watchPageScrollTop",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.MO}),_.P("design:type",Boolean)],AV.prototype,"isWatchPage",void 0);
_.d([_.Z({reflectToAttribute:!0,selector:_.IwM}),_.P("design:type",Boolean)],AV.prototype,"isShortsPage",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],AV.prototype,"theater",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],AV.prototype,"fullscreen",void 0);_.d([_.Z({reflectToAttribute:!0,selector:_.$BZ}),_.P("design:type",String)],AV.prototype,"frostedGlassMode",void 0);_.d([_.Z(),_.P("design:type",Object)],AV.prototype,"ytSearchboxFocused",void 0);
_.d([_.bw("#buttons > *"),_.P("design:type",Array)],AV.prototype,"buttons",void 0);_.d([_.bw("ytd-button-renderer"),_.P("design:type",Array)],AV.prototype,"buttonRenderers",void 0);_.d([_.nU("#background"),_.P("design:type",HTMLDivElement)],AV.prototype,"background",void 0);_.d([_.nU("#guide-button"),_.P("design:type",Object)],AV.prototype,"guideButton",void 0);_.d([_.nU("#logo"),_.P("design:type",Object)],AV.prototype,"logo",void 0);
_.d([_.Z({computed:"computeButtonOverride(dark)"}),_.P("design:type",Object)],AV.prototype,"buttonOverrides",void 0);_.d([_.$n("dark"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AV.prototype,"onDarkChanged",null);_.d([_.Z({value:function(){return this.onVoiceTap.bind(this)}}),
_.P("design:type",Function)],AV.prototype,"boundOnTapVoiceButton",void 0);_.d([_.Z(),_.P("design:type",Object)],AV.prototype,"topbarIsAboveChipbar",void 0);_.d([_.Z(),_.P("design:type",String),_.P("design:paramtypes",[])],AV.prototype,"guideIcon",null);_.d([_.M("voiceEnabled"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],AV.prototype,"shouldShowVoiceSearchButton",null);_.d([_.M("data"),_.P("design:type",Object),_.P("design:paramtypes",[])],AV.prototype,"voiceSearchButton",null);
_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AV.prototype,"dataChanged",null);_.d([_.FV("yt-rendererstamper-finished"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AV.prototype,"onRendererStamperFinished",null);_.d([_.$n("isWatchPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AV.prototype,"onWatchPageChange",null);
_.d([_.$n("narrow"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],AV.prototype,"narrowChanged",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-masthead"})],AV);
_.k(AV,"ytd-masthead",function(){if(g3N!==void 0)return g3N;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return g3N=S},{mode:_.A2("kevlar_poly_si_batch_j036")?1:2});var m5p;var SSE={},cT0={},QSE={},fYE={},UFE=(fYE.OFFLINE=(SSE["publicytnetworkstatus-online"]="BACK_ONLINE",SSE),fYE.ONLINE=(cT0["publicytnetworkstatus-offline"]="OFFLINE",cT0),fYE.BACK_ONLINE=(QSE["publicytnetworkstatus-offline"]="OFFLINE",QSE.TIMER_TRIGGER="ONLINE",QSE),fYE),Xe=function(){var S=_.W.apply(this,arguments)||this;S.currentState="ONLINE";S.scheduledJobId=0;S.bannerString="";S.bannerVe=null;S.networkStatusManagerInstance=new _.L6;return S};
_.C(Xe,_.W);_.J=Xe.prototype;_.J.attached=function(){var S=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){S.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){S.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.detached=function(){var S=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){S.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){S.stateChangeHandler("publicytnetworkstatus-offline")})};
_.J.enterState=function(S){var c=this;this.scheduledJobId&&_.Mq.cancelJob(this.scheduledJobId);S==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):S==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.K8("NO_INTERNET_CONNECTION",void 0,"No internet connection")):S==="BACK_ONLINE"&&(this.bannerString=_.K8("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.HG(_.Mq,function(){c.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=S};
_.J.stateChangeHandler=function(S){(S=UFE[this.currentState][S])&&this.enterState(S)};
_.J.logVisibility=function(S){var c=_.wN();this.createBannerVe(S);c&&this.bannerVe&&(S?_.L8(c,[this.bannerVe]):_.Ez(c,[this.bannerVe]))};
_.J.createBannerVe=function(S){!this.bannerVe&&S&&(this.bannerVe=_.qo(37929),_.z7(_.Kv(),this.bannerVe))};
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",String)],Xe.prototype,"currentState",void 0);_.d([_.Z(),_.P("design:type",Object)],Xe.prototype,"scheduledJobId",void 0);_.d([_.Z(),_.P("design:type",Object)],Xe.prototype,"bannerString",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-network-status-banner"})],Xe);
_.k(Xe,"ytd-network-status-banner",function(){if(m5p!==void 0)return m5p;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return m5p=
S},{mode:1});var JTE;var Os=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};S.hidden=!0;S.frostedGlass=_.u("web_frosted_glass");return S};
_.C(Os,_.W);Os.prototype.computeHidden=function(S){return S&&S.status?!1:!0};
Os.prototype.handleUpdatePermissionRoleCommand=function(S){if(S=_.Y(S,_.Wu_))if(S=_.Y(S.renderer,_.Ggs))this.data=S};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Os.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],Os.prototype,"componentBehavior",void 0);_.d([_.Z({value:!0,computed:"computeHidden(data)"}),_.P("design:type",Object)],Os.prototype,"hidden",void 0);_.d([_.Z(),_.P("design:type",Object)],Os.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],Os.prototype,"frostedGlass",void 0);
_.d([_.e({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],Os);
_.k(Os,"ytd-permission-role-bottom-bar-renderer",function(){if(JTE!==void 0)return JTE;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return JTE=S},{mode:1});var aYE;var AT8;var BPV={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var zd=function(){return _.W.apply(this,arguments)||this};
_.C(zd,_.W);_.J=zd.prototype;_.J.attached=function(){this.JSC$18580_scroller&&(this.JSC$18580_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18580_scroller.attached&&typeof this.JSC$18580_scroller.attached==="function"&&this.JSC$18580_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(Q){Q.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var S=_.Ur(this.hostElement);S.querySelector("tp-yt-paper-radio-group").selected="";var c=S.querySelector("#reason-text");c&&(c.value="");S.querySelector("#description-text").value=""}};
_.J.canSubmit=function(S,c){_.Az(this.hostElement,"yt-invalidate-popup-tabbables");return!(S&&c)};
_.J.onCancel=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.J.onSubmit=function(){var S=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(a){return a.active}).map(function(a){return a.innerText.trim()}),c=this.hostElement.querySelector("tp-yt-paper-radio-group"),Q=c.selectedItem,f=Q.name;
Q=Q.innerText.trim();var U=c.querySelector("#reason-text");c=void 0;U&&(c=U.value);(U=this.descriptionText.value)&&(U=U.trim());I8p(this.data.searchQuery,S,f,Q,U,c);_.XF(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.J.sendFormSubmitToast=function(){var S=_.oB(_.K8("SBOX_INAPPROPRIATE_TOAST"));_.XF(this.hostElement,"yt-open-popup-action",[S,this])};
_.J.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(S){return S.active})};
_.J.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
zd.prototype.onIronSelect=zd.prototype.onIronSelect;zd.prototype.onIronChange=zd.prototype.onIronChange;zd.prototype.dataChanged=zd.prototype.dataChanged;_.d([_.Z(),_.P("design:type",Object)],zd.prototype,"data",void 0);_.d([_.Z({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.P("design:type",Boolean)],zd.prototype,"submitDisabled",void 0);_.d([_.Z(),_.P("design:type",Boolean)],zd.prototype,"suggestionSelected",void 0);
_.d([_.Z(),_.P("design:type",Boolean)],zd.prototype,"catagorySelected",void 0);_.d([_.nU("#scroller"),_.P("design:type",Object)],zd.prototype,"JSC$18580_scroller",void 0);_.d([_.nU("#description-text"),_.P("design:type",Object)],zd.prototype,"descriptionText",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zd.prototype,"dataChanged",null);
_.d([_.FV("iron-change"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zd.prototype,"onIronChange",null);_.d([_.FV("iron-select"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],zd.prototype,"onIronSelect",null);_.d([_.e({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],zd);
_.k(zd,"ytd-search-suggestion-report-dialog",function(){if(AT8!==void 0)return AT8;var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);return AT8=S},{mode:1});var xi=function(S){var c=S.openPopupAction;var Q=S.target;var f=S.container;var U=S.popupContainerConfig;var a=S.getElement;S=S.removeWhenClosed===void 0?!1:S.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=c;this.target=Q;this.container=f;this.popupContainerConfig=U;this.getElement=a;this.JSC$18586_popupConfig=this.popupContainerConfig.JSC$17701_popupConfig[this.openPopupAction.popupType];this.rendererName=(c=this.getName())?_.ivZ(c,vRZ(this.popupContainerConfig,
c)):"";_.u("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=S);this.createPopup()};
xi.prototype.updatePopup=function(S){this.openPopupAction=S;this.JSC$18586_popupConfig=this.popupContainerConfig.JSC$17701_popupConfig[this.openPopupAction.popupType];XXE(this);_.u("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
xi.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var xFE=function(S,c,Q){(c=c&&S.JSC$18586_popupConfig.narrowProperties?S.JSC$18586_popupConfig.narrowProperties:S.JSC$18586_popupConfig.properties)&&Q!==void 0&&(c.isAriaModal=Q);OX0(S,c);S.isRtl()&&OX0(S,S.JSC$18586_popupConfig.rtlProperties);ztE(S)};
xi.prototype.createPopup=function(){var S=this.JSC$18586_popupConfig.component;if(this.popupContent=Fkp(this,this.rendererName)){if(S){this.popup=Fkp(this,S);var c=this.popupContent;_.u("web_enable_wrapper_for_cow_component_in_popup")&&(c=document.createElement("div"),c.appendChild(this.popupContent));_.u("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18586_popupConfig.slotName&&c.setAttribute("slot",this.JSC$18586_popupConfig.slotName);S=this.popup;var Q=this.container.tagName.toLowerCase(),
f=_.RM(c);_.Jdz(_.oM(S),_.c0(c,Q,f));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.u("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.Ur(this.container).appendChild(this.popup)}};
var XXE=function(S){var c,Q,f=(c=S.openPopupAction.accessibilityData)==null?void 0:(Q=c.accessibilityData)==null?void 0:Q.label;f&&(S.popup.ariaLabel=f);var U;((U=S.popupContent.polymerController)!=null?U:S.popupContent).data=(0,_.Cn.unsafeClone)(S.openPopupAction.popup[S.getName()]);S.popupContent.duration=BoT(S);S.popupContent.positionType=S.openPopupAction.position;var a=S.openPopupAction.properties;a&&Object.keys(a).forEach(function(X){S.popupContent[X]=a[X]})},OX0=function(S,c){if(c)for(var Q=
_.A(Object.keys(c)),f=Q.next();!f.done;f=Q.next())f=f.value,S.popup[f]=c[f]},ztE=function(S){if(S.openPopupAction.position){var c=S.JSC$18586_popupConfig.positionalProperties&&S.JSC$18586_popupConfig.positionalProperties[S.openPopupAction.position],Q=S.JSC$18586_popupConfig.rtlPositionalProperties&&S.JSC$18586_popupConfig.rtlPositionalProperties[S.openPopupAction.position];
c=S.isRtl()&&Q?Q:c;c.shiftedHorizontalOffset&&(Q=S.popup.style.display,S.popup.style.display="block",S.popupContent&&S.popup.positionTarget&&S.popupContent.clientWidth>S.popup.positionTarget.clientWidth&&(c.horizontalOffset=S.popup.positionTarget.clientWidth/2-c.shiftedHorizontalOffset),S.popup.style.display=Q);OX0(S,c)}},IYU=function(S,c){if(c)for(var Q=_.A(Object.keys(c)),f=Q.next();!f.done;f=Q.next())f=f.value,S.popup.style[f]=c[f]};
xi.prototype.getName=function(){return _.iW(this.openPopupAction.popup,"renderer")||_.iW(this.openPopupAction.popup,"dialog")||_.iW(this.openPopupAction.popup,"model")||void 0};
var BoT=function(S){S=S.openPopupAction.durationHintMs;return S===0?S:Math.max(4E3,S||4E3)};
xi.prototype.isRtl=function(){return _.WY("HTML_DIR")==="rtl"};
var Fkp=function(S,c){S=S.getElement(c,S.target);S==null&&_.i5(new _.Yr("popup getElement returned null",c));return S};var ngE={};
ngE.YtPopupContainerBehavior=[_.vb.YtComponentBehavior,_.AN.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_);_.Jz(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.aI(this.hostElement)},
closePopup:function(S){var c=this.createCacheKey(void 0,S);this.popups_[c]&&this.handleClosePopupAction_(void 0,S)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.Mq.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.Mq.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(S){S.opened&&S.keepBelowPlayer&&this.ensurePopupBelowPlayer(S)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var S in this.popups_){var c=this.popups_[S];if(c.popup.scrollAction==="refit"){var Q=c.popup.positionTarget.getBoundingClientRect(),f=c.popup;Q=Q.top;var U=c;if(!U.naturalHeight){U.popup.hidden=!1;U.popup.style.position="fixed";U.popup.style.top="0px";U.popup.style.left="0px";var a=U.popup.getBoundingClientRect();U.naturalHeight=a.bottom-a.top;U.popup.refit()}f.hidden=!(Q>=U.naturalHeight+60);c.popupContent.clientHeight===0&&c.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(S){this.popupContainerConfig=S},
handleOpenPopupAction:function(S,c){var Q=S.openPopupAction,f=_.fl().resolve(_.QS(_.au))&&Q.popupType==="TOAST";f&&!Q.uniqueId&&(Q.uniqueId=_.hD());if(!_.u("popup_container_parent_target_killswitch")){var U;c=(U=this.getParentTarget(c))!=null?U:c}var a=this.ensurePopup_(Q,c);return new _.n1(function(X){a.then(function(z){if(!z)return X();this.maybeCreateNarrowMediaQuery_();var x=this.createCacheKey(z.rendererName,z.openPopupAction.uniqueId);if(Q.showOncePerUniqueId){if(this.shownPopupKeys_.has(x))return X();
this.shownPopupKeys_.add(x)}x=this.popups_[x];var I=!(!x||!x.openPopupAction.beReused);I=!!Q.reusePopup||I;if(z.popup.opened&&!I){f&&!z.openPopupAction.replacePopup||this.handleClosePopupAction_(z.rendererName,z.openPopupAction.uniqueId);I=Q.popupType==="DIALOG"&&!_.u("popup_container_dialog_reopen_killswitch");if(!f&&!I&&x&&x.target==c&&!z.openPopupAction.replacePopup)return X();_.tO(z.popup,function(){this.completeOpenPopupAction_(Q,c,z);X()}.bind(this))}else z.popup.opened?z.updatePopup(Q):this.completeOpenPopupAction_(Q,
c,z),X()}.bind(this))}.bind(this))},
getParentTarget:function(S){if(S&&S instanceof HTMLElement)for(var c=_.A(Object.entries(this.popups_)),Q=c.next();!Q.done;Q=c.next())if(Q=_.A(Q.value),Q.next(),Q=Q.next().value,Q.popup.tagName==="TP-YT-IRON-DROPDOWN"&&S.closest(Q.rendererName))return Q.target},
completeOpenPopupAction_:function(S,c,Q){Q.updatePopup(S);S=this.narrowMediaQuery_.queryMatches;var f=this.isAriaModal;Q.target=c;var U;c=((U=Q.target.polymerController)!=null?U:Q.target).popupPositionTarget||Q.target;Q.JSC$18586_popupConfig.targetContainer&&(c=Q.container);Q.popup.positionTarget=c;Q.popupContent.positionTarget=c;ztE(Q);Q.JSC$18586_popupConfig.forceFocus&&(Q.popupContent.style.outline="none");Q.popupContent.tabIndex=-1;Q.JSC$18586_popupConfig.narrowProperties&&(Q.popup.style.position=
"static");Q.JSC$18586_popupConfig.preventAutonav&&Q.popup.setAttribute("prevent-autonav",!0);Q.JSC$18586_popupConfig.forceCloseOnOutsideClick&&Q.popup.setAttribute("force-close-on-outside-click",!0);xFE(Q,S,f);IYU(Q,Q.JSC$18586_popupConfig.styles);Q.isRtl()&&IYU(Q,Q.JSC$18586_popupConfig.rtlStyles);if(!Q.openPopupAction.shouldStopParentSignal){var a;U=(a=Q.target.polymerController)!=null?a:Q.target;(Q.popupContent.startForwardingEvents||Q.popupContainerConfig.forwardingEnabledPopups.has(Q.rendererName))&&
U.parentComponent!==Q.popupContent&&Q.popupContent!==Q.target&&Q.target!==document.body&&(Q.popupContent.startForwardingEvents?Q.popupContent.startForwardingEvents(Q.popupContainerConfig.forwardedEvents,Q.target):(Q.JSC$18586_eventForwarder||(Q.JSC$18586_eventForwarder=new _.B$(Q.popupContent)),Q.JSC$18586_eventForwarder.start(Q.popupContainerConfig.forwardedEvents,Q.target)))}Q=Q.popup;Q.addEventListener("iron-overlay-opened",_.xn(this,this.onPopupIronOverlayOpened_));Q.addEventListener("iron-overlay-closed",
_.xn(this,this.onPopupIronOverlayClosed_));Q.addEventListener("iron-overlay-canceled",_.xn(this,this.onPopupIronOverlayCanceled_));Q.addEventListener("yt-refit",_.xn(this,this.refitPopup_));Q.addEventListener("yt-invalidate-popup-tabbables",_.xn(this,this.handleInvalidatePopupTabbables_));Q.open()},
getPopupDurationMs_:function(S){return S.durationHintMs===0?S.durationHintMs:Math.max(4E3,S.durationHintMs||4E3)},
handleClosePopupAction_:function(S,c){var Q=_.u("web_popup_cache_key_killswitch")||!!c;if(S||Q){var f=this.createCacheKey(S,c);S=(S=this.popups_[f])&&S.popup}else S=_.gdi(_.vx);if(S&&S.close){if(c=_.fl().resolve(_.QS(_.zy)))S.restoreFocusOnClose=c.isKeyBoardInUse();S.close();this.removePopup_(S,f)}},
handleClosePopupCommand_:function(S){S.closePopupCommand&&S.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,S.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(S){var c={},Q;for(Q in this.popups_)if(c={key$jscomp$1151:c.key$jscomp$1151},c.key$jscomp$1151=Q,!S||!S.some(function(a){return function(X){return X==a.key$jscomp$1151}}(c))){var f=this.popups_[c.key$jscomp$1151],U=f.popup;
_.fl().resolve(_.QS(_.au))&&f.openPopupAction.popupType==="TOAST"||(U&&U.close&&U.close(),this.removePopup_(U,c.key$jscomp$1151))}},
handleClosePopupsAction_:function(S){S.forEach(function(c){var Q=this.popups_[c];Q&&((Q=Q.popup)&&Q.close&&Q.close(),this.removePopup_(Q,c))}.bind(this))},
handleGetPopupOpenedAction_:function(S,c){return(c=this.createCacheKey(S,c))&&this.popups_[c]?this.popups_[S].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var S=[],c;for(c in this.popups_){var Q=this.popups_[c];Q.popup.opened&&S.push(Q)}return S},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(S,c){_.u("ytpopup_disable_default_html_caching")&&S&&S.removeWhenClosed&&(_.Ur(this.hostElement).removeChild(S),c&&this.popups_[c]&&delete this.popups_[c])},
shouldReusePopup_:function(S){return!(!S||!S.reusePopup)||!(!S||!S.beReused)},
ensurePopup_:function(S,c){this.maybeCreateNarrowMediaQuery_();var Q=_.iW(S.popup,"renderer")||_.iW(S.popup,"dialog")||_.iW(S.popup,"model");if(!Q)return _.B2();Q=_.ivZ(Q,vRZ(this.popupContainerConfig,Q));return _.B2(this.getAndMaybeCreatePopup_(S,Q,c))},
getAndMaybeCreatePopup_:function(S,c,Q){var f=this.createCacheKey(c,S.uniqueId);if(this.popups_[f])return this.popups_[f];S=new xi({openPopupAction:S,target:Q,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(c)});return this.popups_[f]=S},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(S){return _.u("ytpopup_disable_default_html_caching")?S&&S.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",_.xn(this,this.openPopupQueryMatchesChanged_)),_.Ur(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(S){S=S.detail.value;for(var c in this.popups_)xFE(this.popups_[c],S)},
onPopupIronOverlayClosed_:function(S){var c=S.currentTarget,Q=_.HEY(c);Q=Q.length>0?Q[0]:c;if(Q.is!=="ytd-reel-watch-while-dialog-renderer"||S.target.is!=="tp-yt-iron-dropdown"){S.detail.popup=c;S.detail.popupRenderer=Q;var f,U={context:{openingElement:((f=this.popups_[(Q==null?void 0:Q.is)||""])==null?void 0:f.target)||void 0}};Object.assign(U,S.detail);var a;_.Az((a=Q.hostElement)!=null?a:Q,"yt-popup-closed",U);c.removeEventListener("yt-refit",_.xn(this,this.refitPopup_));c.removeEventListener("yt-invalidate-popup-tabbables",
_.xn(this,this.handleInvalidatePopupTabbables_));c.removeEventListener("iron-overlay-canceled",_.xn(this,this.onPopupIronOverlayCanceled_));c.removeEventListener("iron-overlay-closed",_.xn(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(c)}},
onPopupIronOverlayCanceled_:function(S,c){var Q=S.currentTarget,f=_.HEY(Q);f=f.length>0?f[0]:Q;if(f.is!=="ytd-reel-watch-while-dialog-renderer"||S.target.is!=="tp-yt-iron-dropdown"){var U;_.Az((U=f.hostElement)!=null?U:f,"yt-popup-canceled",S.detail);U=c?_.t4(c):null;(!c||["click","tap"].includes(c.type))&&!Q.hasAttribute("force-close-on-outside-click")&&Q.positionTarget&&U&&U.includes(Q.positionTarget)&&S.preventDefault();Q.restoreFocusOnClose=_.lc.keyboardEventMatchesKeys(c,"esc")}},
onPopupIronOverlayOpened_:function(S){S=S.currentTarget;var c=_.HEY(S);c=c.length>0?c[0]:S;var Q,f;_.Az((Q=c.hostElement)!=null?Q:c,"yt-popup-opened",(f=c.hostElement)!=null?f:c);S.keepBelowPlayer&&(this.ensurePopupBelowPlayer(S,!0),this.dynamicallyPositionedElements_.add(S));Q=_.fl().resolve(_.QS(_.zy));f=!!c.querySelector("#toast");Q&&Q.isKeyBoardInUse()&&!f&&(typeof c.focusFirstItem==="function"?c.focusFirstItem():(c=_.Z4u(S),c.length&&c[0].focus()));S.removeEventListener("iron-overlay-opened",
_.xn(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(S){S=S.currentTarget;S.refit&&S.refit()},
refitPopups_:function(){for(var S in this.popups_)this.popups_[S].refit()},
handleInvalidatePopupTabbables_:function(S){S=S.currentTarget;S.invalidateTabbables&&S.invalidateTabbables()},
createCacheKey:function(S,c){return _.u("web_popup_cache_key_killswitch")?c?S+"#"+c:S:c?"#"+c:S},
openSheet:function(S,c){var Q=S==null?void 0:S.openPopupActionCommand;!Q&&(S==null?0:S.viewModel)&&(Q={openPopupAction:{popup:{sheetViewModel:S.viewModel},popupType:"CONTEXTUAL_SHEET"}});Q&&this.handleOpenPopupAction(Q,c)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var S=this;return _.O(function(c){return c.return(S.handleGetOpenedPopupsAction_().filter(function(Q){var f;return((f=Q.openPopupAction)==null?void 0:f.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(S,c,Q){if(_.u("web_dialog_utils_killswitch")){var f=S==null?void 0:S.openPopupActionCommand,U=(Q==null?0:Q.ariaLabel)?{accessibilityData:{accessibilityData:{label:Q.ariaLabel}}}:void 0;!f&&(S==null?0:S.viewModel)&&(f={openPopupAction:Object.assign({},{popup:{dialogViewModel:S.viewModel},popupType:(Q==null?0:Q.isModal)?"MODAL":"DIALOG"},U&&U)});f&&this.handleOpenPopupAction(f,c)}else{if(U=S==null?void 0:S.viewModel){var a=Q=Q===void 0?{}:Q;Q=a.ariaLabel;U={popup:{dialogViewModel:U},
popupType:a.isModal?"MODAL":"DIALOG"};a={accessibilityData:{label:Q}};Q&&(U.accessibilityData=a);U={openPopupAction:U}}else U=void 0;if(U=(f=U)!=null?f:S==null?void 0:S.openPopupActionCommand)this.isAriaModal=_.u("web_dialog_aria_modal_killswitch")?!1:!0,this.handleOpenPopupAction(U,c)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var S=this;return _.O(function(c){return c.return(S.handleGetOpenedPopupsAction_().filter(function(Q){var f;return((f=Q.openPopupAction)==null?void 0:f.popupType)==="DIALOG"}).length>0)})}}];var bXT;var Nog;var KkU=_.oK(["about:blank"]),Fe=function(){var S=_.W.apply(this,arguments)||this;S.isMuted=!1;S.pageLoadTimeoutId=void 0;return S};
_.C(Fe,_.W);_.J=Fe.prototype;_.J.dataChanged=function(){var S=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var c=this.data.url,Q=_.iH(c);_.u("enable_yt_ata_iframe_authuser")?(Q=_.iH(c),_.TR(this.iframe,nyZ(Q))):_.TR(this.iframe,Q);this.pageLoadTimeoutId=_.HG(_.TV(),function(){return void S.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.cl({destination:window,iframe:this.iframe,origin:_.r$u(Q.toString()),channelName:"ataiframe",onMessage:_.EGH(V5E,function(f){Rk8(f.data)?(f=_.uY(f.data,1,_.lE,_.c1()),f.length!==1?_.i5(Error("rl")):(f=f[0],f===3?(S.isMuted=!0,S.logStateChanged({adMuteRequested:!0})):f===1&&S.close())):_.i5(Error("sl"))}),
onEstablished:function(){S.cancelPageLoadTimeout();S.logStateChanged({pageLoadSucceeded:!0})}})}};
_.J.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.TV().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.J.logStateChanged=function(S){var c;if((c=this.data)==null?0:c.trackingParams)S={adsClientData:{aboutThisAdData:S}},_.Kv().stateChanged(this.data.trackingParams,S)};
_.J.close=function(){_.XF(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.handlesPopupClosed=function(S,c){var Q=this,f,U;return _.O(function(a){if(a.nextAddress==1)return _.WY("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.XF(Q.hostElement,"on-about-this-ad-popup-closed",[Q.isMuted,c]),a.jumpTo(0)):S&&bK8(S)?_.F(a,NP0(S),4):(Q.isMuted&&_.XF(Q.hostElement,"yt-mute-ad-action",[Q.is,Q]),a.jumpTo(0));if(f=a.yieldResult){var X=U=new _.HM(f),z=Q.isMuted;X.getOptions().includes("onAboutThisAdPopupClosed")?_.CUl(X,"onAboutThisAdPopupClosed",{isMuted:z,layoutId:c}):_.QV("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.IN(a)})};
_.J.onPopupClosed=function(S){var c=this,Q,f;return _.O(function(U){Q=_.QN(KkU);_.TR(c.iframe,Q);c.cancelPageLoadTimeout();if(!c.data)return U.jumpTo(0);c.ytRendererBehavior.markDirty();f=S.detail.context.openingElement;return _.F(U,c.handlesPopupClosed(f,c.data.layoutId),0)})};
_.J.detached=function(){this.cancelPageLoadTimeout()};
_.J.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Fe.prototype.onPopupClosed=Fe.prototype.onPopupClosed;Fe.prototype.dataChanged=Fe.prototype.dataChanged;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Fe.prototype,"ytRendererBehavior",void 0);_.d([_.nU("#iframe"),_.P("design:type",HTMLIFrameElement)],Fe.prototype,"iframe",void 0);_.d([_.Z(),_.P("design:type",Object)],Fe.prototype,"data",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Fe.prototype,"dataChanged",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype",Promise)],Fe.prototype,"onPopupClosed",null);_.d([_.wM({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Fe);
_.k(Fe,"yt-about-this-ad-renderer",function(){if(Nog===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;bXT===void 0&&(bXT=document.createElement("template"));var f=bXT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Nog=S}S=Nog;return S},{mode:2});var $F0;var uv2;var Bj=function(S){var c=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=c.message;"stack"in c&&(this.stack=c.stack);this.maxFileSizeMB=S;Object.setPrototypeOf(this,Bj.prototype)};
_.C(Bj,Error);var jS8=function(S,c){var Q=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=Q.message;"stack"in Q&&(this.stack=Q.stack);this.minWidth=S;this.minHeight=c;Object.setPrototypeOf(this,jS8.prototype)};
_.C(jS8,Error);var lYE=function(S){this.requirements=S;this.JSC$18614_maxFileSize=S.maxFileSizeMB*1024*1024},YSO=function(S,c){if(c.size>S.JSC$18614_maxFileSize)throw new Bj(S.requirements.maxFileSizeMB);
};var CbT=function(S,c){this.canvas=S;this.imageEditorBuilder=c};
CbT.prototype.addEventListeners=function(S){var c=function(U){HX0(S,U)};
this.JSC$18620_mouseDownEvent=c;var Q=function(U){DFE(S,U)};
this.JSC$18620_mouseMoveEvent=Q;var f=function(){pX1(S)};
this.JSC$18620_mouseUpEvent=f;this.canvas.addEventListener("mousedown",c);this.canvas.addEventListener("mousemove",Q);document.addEventListener("mouseup",f)};
CbT.prototype.removeEventListeners=function(){this.JSC$18620_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18620_mouseDownEvent);this.JSC$18620_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18620_mouseMoveEvent);this.JSC$18620_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18620_mouseUpEvent)};
var htU=function(S,c){S.removeEventListeners();return new Promise(function(Q){var f=new Image;f.crossOrigin="anonymous";f.onload=function(){var U=S.imageEditorBuilder(S.canvas,f);S.addEventListeners(U);Q(U)};
f.src=c})},IU=function(S,c,Q,f,U,a,X,z){this.canvas=S;
this.image=c;this.requiredRatio=Q;this.minImageCropDimension=f;this.minOutputImageResolution=U;this.component=a;this.styleFocusedCorner=z===void 0?!0:z;this.action=2;this.focusedCorner=this.resizeCorner=0;S=this.canvas.getContext("2d");if(!S)throw Error("tl");this.ctx=S;this.canvasMargin=X!=null?X:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;X=this.image;S=this.canvasInnerWidth/X.width;X.height*S>912&&(S=X.width/X.height*912/X.width);X=S;this.scaledImageWidth=this.canvas.width%2?
$O8(this.image.width*X):KMZ(this.image.width*X);this.scaledImageHeight=Math.round(this.image.height*X);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18623_overlayMarginBottom=this.JSC$18623_overlayMarginTop=this.canvasMargin;this.JSC$18623_overlayMarginRight=this.JSC$18623_overlayMarginLeft=this.horizontalMargin;this.JSC$18623_overlayWidth=this.scaledImageWidth;this.JSC$18623_overlayHeight=this.scaledImageHeight;
S=this.image.width/this.image.height;S>this.requiredRatio?(this.JSC$18623_overlayWidth=this.canvas.width%2?$O8(this.scaledImageHeight*this.requiredRatio):KMZ(this.scaledImageHeight*this.requiredRatio),this.JSC$18623_overlayMarginRight=this.JSC$18623_overlayMarginLeft=(this.canvas.width-this.JSC$18623_overlayWidth)/2):S<this.requiredRatio&&(this.JSC$18623_overlayHeight=this.canvas.height%2?$O8(this.scaledImageWidth/this.requiredRatio):KMZ(this.scaledImageWidth/this.requiredRatio),this.JSC$18623_overlayMarginBottom=
this.JSC$18623_overlayMarginTop=(this.canvas.height-this.JSC$18623_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*X,this.scaledImageWidth);qSZ(this)};
IU.prototype.getContext=function(){return this.ctx};
var HX0=function(S,c){c={x:Math.round(c.pageX-S.canvas.getBoundingClientRect().left),y:Math.round(c.pageY-S.canvas.getBoundingClientRect().top)};S.dragStart=c;ToU(S,c)!==0?(S.action=1,wX2(S,c),S.resizeCorner=ToU(S,c)):c.x>S.JSC$18623_overlayMarginLeft&&c.x<S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth&&c.y>S.JSC$18623_overlayMarginTop&&c.y<S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight&&(S.action=0)},sSZ=function(S,c){switch(c){case 1:return{x:S.JSC$18623_overlayMarginLeft,
y:S.JSC$18623_overlayMarginTop};case 2:return{x:S.JSC$18623_overlayMarginLeft,y:S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight};case 3:return{x:S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth,y:S.JSC$18623_overlayMarginTop};case 4:return{x:S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth,y:S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight};default:throw Error("ul");}},iXV=function(S,c){if(S.focusedCorner!==0){S.dragStart=sSZ(S,S.focusedCorner);
S.action=1;S.resizeCorner=S.focusedCorner;var Q=S.dragStart.x,f=S.dragStart.y;switch(c){case 0:S.focusedCorner===1||S.focusedCorner===4?(Q-=10,f-=10):(Q-=10,f+=10);break;case 1:S.focusedCorner===1||S.focusedCorner===4?(Q+=10,f+=10):(Q+=10,f-=10);break;case 2:Q=S.focusedCorner===1||S.focusedCorner===4?Q-10:Q+10;f-=10;break;case 3:Q=S.focusedCorner===1||S.focusedCorner===4?Q+10:Q-10;f+=10;break;default:throw Error("vl");}M4V(S,{x:Q,y:f});qSZ(S);S.action=2;S.dragStart=void 0}},DFE=function(S,c){c={x:Math.round(c.pageX-
S.canvas.getBoundingClientRect().left),
y:Math.round(c.pageY-S.canvas.getBoundingClientRect().top)};wX2(S,c);switch(S.action){case 1:M4V(S,c);break;case 0:S.dragStart&&(S.JSC$18623_overlayMarginLeft=Math.max(S.horizontalMargin,Math.min(S.JSC$18623_overlayMarginLeft-(S.dragStart.x-c.x),S.horizontalMargin+S.scaledImageWidth-S.JSC$18623_overlayWidth)),S.JSC$18623_overlayMarginRight=S.canvas.width-S.JSC$18623_overlayMarginLeft-S.JSC$18623_overlayWidth,S.JSC$18623_overlayMarginTop=Math.max(S.canvasMargin,Math.min(S.JSC$18623_overlayMarginTop-
(S.dragStart.y-c.y),S.scaledImageHeight-S.JSC$18623_overlayHeight+S.canvasMargin)),S.JSC$18623_overlayMarginBottom=S.canvas.height-(S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight));break;default:return}qSZ(S);S.dragStart=c},pX1=function(S){S.action=2;
S.dragStart=void 0;document.body.style.cursor="auto"},wX2=function(S,c){switch(ToU(S,c)){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:S.action!==1&&(document.body.style.cursor="auto")}},ToU=function(S,c){var Q=S.JSC$18623_overlayMarginLeft-5,f=S.JSC$18623_overlayMarginTop-5,U=S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth-5;
S=S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight-5;return ZXE(c,{x:Q,y:f})?1:ZXE(c,{x:U,y:f})?3:ZXE(c,{x:Q,y:S})?2:ZXE(c,{x:U,y:S})?4:0},ZXE=function(S,c){return S.x>=c.x&&S.x<=c.x+10&&S.y>=c.y&&S.y<=c.y+10},M4V=function(S,c){if(S.dragStart)switch(S.resizeCorner){case 2:Math.abs((S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth-c.x)/(c.y-S.JSC$18623_overlayMarginTop))>=S.requiredRatio?Gmp(S,c.x):WkT(S,c.y);
break;case 1:Math.abs((S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth-c.x)/(S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight-c.y))>=S.requiredRatio?ggB(S,c.x):WkT(S,c.y);break;case 4:Math.abs((c.x-S.JSC$18623_overlayMarginLeft)/(c.y-S.JSC$18623_overlayMarginTop))>=S.requiredRatio?Gmp(S,c.x):et0(S,c.y);break;case 3:Math.abs((c.x-S.JSC$18623_overlayMarginLeft)/(S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight-c.y))>=S.requiredRatio?ggB(S,c.x):et0(S,c.y);break;default:throw Error("wl");
}},Gmp=function(S,c){var Q=S.JSC$18623_overlayMarginTop;
S.JSC$18623_overlayMarginBottom=kmp(S,c);S.JSC$18623_overlayHeight=S.canvas.height-S.JSC$18623_overlayMarginBottom-Q;S.JSC$18623_overlayWidth=Math.round(S.JSC$18623_overlayHeight*S.requiredRatio);rTp(S)},ggB=function(S,c){var Q=S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight;
S.JSC$18623_overlayMarginTop=kmp(S,c);S.JSC$18623_overlayHeight=Q-S.JSC$18623_overlayMarginTop;S.JSC$18623_overlayWidth=Math.round(S.JSC$18623_overlayHeight*S.requiredRatio);rTp(S)},rTp=function(S){switch(S.resizeCorner){case 2:case 1:S.JSC$18623_overlayMarginLeft=S.canvas.width-S.JSC$18623_overlayMarginRight-S.JSC$18623_overlayWidth;
break;case 4:case 3:S.JSC$18623_overlayMarginRight=S.canvas.width-S.JSC$18623_overlayMarginLeft-S.JSC$18623_overlayWidth;break;default:throw Error("wl");}},WkT=function(S,c){var Q=S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth;
S.JSC$18623_overlayMarginLeft=dFp(S,c);S.JSC$18623_overlayWidth=Q-S.JSC$18623_overlayMarginLeft;S.JSC$18623_overlayHeight=Math.round(S.JSC$18623_overlayWidth/S.requiredRatio);vgZ(S)},et0=function(S,c){var Q=S.JSC$18623_overlayMarginLeft;
S.JSC$18623_overlayMarginRight=dFp(S,c);S.JSC$18623_overlayWidth=S.canvas.width-S.JSC$18623_overlayMarginRight-Q;S.JSC$18623_overlayHeight=Math.round(S.JSC$18623_overlayWidth/S.requiredRatio);vgZ(S)},vgZ=function(S){switch(S.resizeCorner){case 2:case 4:S.JSC$18623_overlayMarginBottom=S.canvas.height-S.JSC$18623_overlayMarginTop-S.JSC$18623_overlayHeight;
break;case 1:case 3:S.JSC$18623_overlayMarginTop=S.canvas.height-S.JSC$18623_overlayMarginBottom-S.JSC$18623_overlayHeight;break;default:throw Error("wl");}},kmp=function(S,c){switch(S.resizeCorner){case 2:c=S.canvas.height-(S.JSC$18623_overlayMarginTop+PbN(S,c));
break;case 4:c=S.canvas.height-(S.JSC$18623_overlayMarginTop+Lkg(S,c));break;case 1:c=S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight-PbN(S,c);break;case 3:c=S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight-Lkg(S,c);break;default:throw Error("wl");}return Math.max(c,S.canvasMargin)},PbN=function(S,c){c=S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth-Math.max(c,S.horizontalMargin);
c=c<0?S.JSC$18623_overlayWidth:Math.max(c,S.minOverlayWidth);return Math.round(c/S.requiredRatio)},Lkg=function(S,c){c=S.canvas.width-Math.max(S.canvas.width-c,S.horizontalMargin)-S.JSC$18623_overlayMarginLeft;
c=c<0?S.JSC$18623_overlayWidth:Math.max(c,S.minOverlayWidth);return Math.round(c/S.requiredRatio)},dFp=function(S,c){switch(S.resizeCorner){case 2:c=S.canvas.width-S.JSC$18623_overlayMarginRight-EgO(S,c);
break;case 4:c=S.canvas.width-S.JSC$18623_overlayMarginLeft-EgO(S,c);break;case 1:c=S.canvas.width-S.JSC$18623_overlayMarginRight-t42(S,c);break;case 3:c=S.canvas.width-S.JSC$18623_overlayMarginLeft-t42(S,c);break;default:throw Error("wl");}return Math.max(c,S.horizontalMargin)},EgO=function(S,c){c=S.canvas.height-Math.max(S.canvas.height-c,S.canvasMargin)-S.JSC$18623_overlayMarginTop;
return c<0?S.JSC$18623_overlayWidth:Math.max(Math.round(c*S.requiredRatio),S.minOverlayWidth)},t42=function(S,c){c=S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight-Math.max(c,S.canvasMargin);
return c<0?S.JSC$18623_overlayWidth:Math.max(Math.round(c*S.requiredRatio),S.minOverlayWidth)},qSZ=function(S){S.ctx.clearRect(0,0,S.canvas.width,S.canvas.height);
S.ctx.drawImage(S.image,0,0,S.image.width,S.image.height,S.horizontalMargin,S.canvasMargin,S.canvas.width-2*S.horizontalMargin,S.scaledImageHeight);S.ctx.fillStyle="rgba(0, 0, 0, 0.7)";S.ctx.fillRect(S.horizontalMargin,S.JSC$18623_overlayMarginTop,S.JSC$18623_overlayMarginLeft-S.horizontalMargin,S.JSC$18623_overlayHeight);S.ctx.fillRect(S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth,S.JSC$18623_overlayMarginTop,S.JSC$18623_overlayMarginRight-S.horizontalMargin,S.JSC$18623_overlayHeight);S.ctx.fillRect(S.horizontalMargin,
S.canvasMargin,S.scaledImageWidth,S.JSC$18623_overlayMarginTop-S.canvasMargin);S.ctx.fillRect(S.horizontalMargin,S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight,S.scaledImageWidth,S.JSC$18623_overlayMarginBottom-S.canvasMargin);S.drawOverlay();S.component&&_.Az(S.component,"image-updated")};
IU.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18623_overlayMarginLeft,this.JSC$18623_overlayMarginTop,this.JSC$18623_overlayWidth,this.JSC$18623_overlayHeight);V4G(this)};
var V4G=function(S){var c=S.JSC$18623_overlayMarginLeft-5,Q=S.JSC$18623_overlayMarginTop-5,f=S.JSC$18623_overlayMarginLeft+S.JSC$18623_overlayWidth-5,U=S.JSC$18623_overlayMarginTop+S.JSC$18623_overlayHeight-5;S.ctx.fillStyle="#FFF";S.ctx.fillRect(c,Q,10,10);S.ctx.strokeRect(c,Q,10,10);S.ctx.fillRect(f,Q,10,10);S.ctx.strokeRect(f,Q,10,10);S.ctx.fillRect(c,U,10,10);S.ctx.strokeRect(c,U,10,10);S.ctx.fillRect(f,U,10,10);S.ctx.strokeRect(f,U,10,10);if(S.focusedCorner!==0&&S.styleFocusedCorner){S.ctx.lineWidth=
4;S.ctx.strokeStyle="#3EA6FF";switch(S.focusedCorner){case 1:--c;--Q;break;case 2:--c;Q=U-1;break;case 3:c=f-1;--Q;break;case 4:c=f-1;Q=U-1;break;default:return}S.ctx.strokeRect(c,Q,12,12)}};
IU.prototype.crop=function(S,c){c=c===void 0?!0:c;var Q=this.image.width/this.scaledImageWidth,f=document.createElement("canvas"),U=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],a=this.JSC$18623_overlayWidth*Q,X=this.JSC$18623_overlayHeight*Q;f.width=Math.max(a,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);f.height=Math.max(X,U);S&&(f.width=Math.min(f.width,f.height),f.height=Math.min(f.width,f.height));
S=f.getContext("2d");if(!S)throw Error("kl");U=(this.JSC$18623_overlayMarginLeft-this.horizontalMargin)*Q;Q*=this.JSC$18623_overlayMarginTop-this.canvasMargin;c||(S.fillStyle="white",S.fillRect(0,0,f.width,f.height));S.drawImage(this.image,U,Q,a,X,0,0,f.width,f.height);return f};var RtE=function(S,c,Q,f,U){IU.call(this,S,c,Q,f,void 0,U,8,!1)};
_.C(RtE,IU);RtE.prototype.drawOverlay=function(){var S=this.getContext(),c=this.JSC$18623_overlayWidth,Q=this.JSC$18623_overlayHeight,f=this.JSC$18623_overlayMarginTop,U=this.JSC$18623_overlayMarginLeft;S.lineWidth=2;S.strokeStyle="#3EA6FF";S.beginPath();S.arc(U+c/2,f+Q/2,c/2,0,2*Math.PI);S.stroke();S.strokeRect(U,f,c,Q);V4G(this)};
var yT0={maxFileSizeMB:15,minWidth:98,minHeight:98},og0=["image/png","image/jpeg","image/gif"],nH=function(){var S=_.W.apply(this,arguments)||this;S.fileSelectorFocusListener=null;S.errorMessage=null;S.isLoading=!0;S.hideContainer=!0;S.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return S};
_.C(nH,_.W);_.J=nH.prototype;_.J.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.J.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.J.computePlaylistThumbnail=function(S){return S==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.J.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.XF(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.J.setErrorState=function(S){this.resetErrorState();S&&(this.errorMessage=S)};
_.J.showPopup=function(){var S=this;this.hideContainer=!1;_.HG(_.Mq,function(){_.Az(S.hostElement,"yt-refit")});
this.isLoading=!1};
_.J.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.J.closePopup=function(){this.resetFileSelector();_.XF(this.hostElement,"yt-close-popup-action",[this.is])};
_.J.onCancelTap=function(){this.isPlaylistThumbnail||_.XF(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.J.openFileSelector=function(){var S=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.HG(_.Mq,function(){setTimeout(function(){if(!S.fileSelector.files||S.fileSelector.files.length===0)S.onCancelTap();S.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(c){c instanceof Error?_.sH(c):_.MP(new _.Yr(JSON.stringify(c)))}};
_.J.handleFileSelection=function(){var S=this,c,Q,f,U,a,X;return _.O(function(z){switch(z.nextAddress){case 1:_.X1(z,2);if(!S.fileSelector.files||!S.imageEditorCanvas)return S.onCancelTap(),z.return();c=S.fileSelector.files[0];YSO(S.imageChecker,c);_.X1(z,4);return _.F(z,P2T(c),6);case 6:S.mimeType=z.yieldResult;_.Pi(z,5,2);break;case 4:_.Bs(z,2),_.XF(S.hostElement,"yt-image-selection-error-action",[(Q=S.data)==null?void 0:Q.genericImageLoadErrorMessage]),S.onCancelTap();case 5:f=new FileReader;f.addEventListener("load",
function(){var x,I;return _.O(function(n){if(n.nextAddress==1){if(!f.result)return _.i5(Error("ml")),n.return();x=f.result;I=new Image;I.src=x;I.onload=function(){try{var b=S.imageChecker;if(I.width<b.requirements.minWidth||I.height<b.requirements.minHeight)throw new jS8(b.requirements.minWidth,b.requirements.minHeight);}catch(l){if(l instanceof jS8){var N;_.XF(S.hostElement,"yt-image-selection-error-action",[(N=S.data)==null?void 0:N.imageDimensionErrorMessage]);S.logImageDimensionErrorVe()}else l instanceof
Error?_.sH(l):(b=new _.Yr(JSON.stringify(l)),_.sH(b));S.onCancelTap()}S.showPopup()};
I.onerror=function(){var b;_.XF(S.hostElement,"yt-image-selection-error-action",[(b=S.data)==null?void 0:b.genericImageLoadErrorMessage]);S.onCancelTap()};
return _.F(n,htU(S.imageEditorCanvas,x),2)}S.imageEditor=n.yieldResult;S.updatePositionOfAllCorners();S.addEventListeners(S.imageEditor);_.IN(n)})},!1);
f.readAsDataURL(c);_.Pi(z,0);break;case 2:U=_.Bs(z),U instanceof Bj?_.XF(S.hostElement,"yt-image-selection-error-action",[(a=S.data)==null?void 0:a.imageSizeErrorMessage]):(U instanceof Error?_.sH(U):_.MP(new _.Yr(JSON.stringify(U))),_.XF(S.hostElement,"yt-image-selection-error-action",[(X=S.data)==null?void 0:X.genericImageLoadErrorMessage])),S.onCancelTap(),_.IN(z)}})};
_.J.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var S=_.NK(_.Kv(),{veType:232707,visualElement:_.qo(232707)});S&&(S={visualElement:S},_.b7().reportShown(S))}};
_.J.handleImageSelectionErrorAction=function(S){this.isPlaylistThumbnail&&_.Oer(this.hostElement,S)};
_.J.convertToImageFormatBundle=function(S){var c=this,Q,f,U;return _.O(function(a){switch(a.nextAddress){case 1:return Q=S.toDataURL(c.outputMimeType,1),_.F(a,Lqg(Q),2);case 2:f=a.yieldResult;_.X1(a,3);YSO(c.imageChecker,f);_.Pi(a,4);break;case 3:U=_.Bs(a);if(!(U instanceof Bj))throw U;_.i5(new _.Yr("Output size is bigger than input size for image",c.mimeType,c.outputMimeType,f.size));Q=S.toDataURL("image/jpeg",.95);return _.F(a,Lqg(Q),6);case 6:f=a.yieldResult;case 4:return a.return({dataUrl:Q,imageFile:f})}})};
_.J.handleUploadImageToScottyCommand=function(S){var c=this,Q,f,U,a,X,z,x,I,n,b;return _.O(function(N){switch(N.nextAddress){case 1:if(!c.imageEditor||!_.Y(S,x9p))return N.return();Q=_.Y(S,x9p).scottyUploadUrl;if(!Q){var l=new _.Yr("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.sH(l);return N.return()}_.X1(N,2);c.setLoadingState();f=c.imageEditor.crop(!1,!1);return _.F(N,c.convertToImageFormatBundle(f),4);case 4:return U=N.yieldResult,_.F(N,dDO(U.imageFile,Q),5);case 5:a=
N.yieldResult;((X=c.data)==null?0:X.onUploadEndpoint)?(z=c.buildUploadServiceEndpoint(a),c.ytComponentBehavior.resolveCommand(z),x=_.Y(z,_.MB),((I=x)==null?0:I.params)?c.closePopup():c.resetFileSelector()):(_.XF(c.hostElement,"yt-image-updated-action",[U.dataUrl,a]),c.closePopup());_.Pi(N,0);break;case 2:n=_.Bs(N),c.setErrorState((b=c.data)==null?void 0:b.uploadErrorMessage),n instanceof Error?_.sH(n):(l=new _.Yr(JSON.stringify(n)),_.sH(l)),_.IN(N)}})};
_.J.buildUploadServiceEndpoint=function(S){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",S),this.data.onUploadEndpoint):null};
_.J.dataChanged=function(){var S=this,c;return _.O(function(Q){if(Q.nextAddress==1){if(!S.data||!S.canvasElement)return Q.return();S.data.imageRatio&&S.data.minImageCropWidth||_.MP(new _.Yr("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));c=function(f,U){return S.data.imageType==="IMAGE_TYPE_AVATAR"?new RtE(f,U,S.data.imageRatio,[S.data.minImageCropWidth,S.data.minImageCropWidth/S.data.imageRatio],S.hostElement):new IU(f,U,S.data.imageRatio,[S.data.minImageCropWidth,
S.data.minImageCropWidth/S.data.imageRatio],void 0,S.hostElement,8,!1)};
S.imageEditorCanvas=new CbT(S.canvasElement,c);return S.data.url?_.F(Q,htU(S.imageEditorCanvas,S.data.url),3):(S.hideContainer=!0,S.openFileSelector(),Q.jumpTo(0))}S.imageEditor=Q.yieldResult;S.showPopup();S.addEventListeners(S.imageEditor);_.IN(Q)})};
_.J.addEventListeners=function(S){this.removeEventListeners();var c=function(U){HX0(S,U)};
this.JSC$18631_mouseDownEvent=c;var Q=function(U){DFE(S,U)};
this.JSC$18631_mouseMoveEvent=Q;var f=function(){pX1(S)};
this.JSC$18631_mouseUpEvent=f;this.topLeftCorner.addEventListener("mousedown",c);this.topLeftCorner.addEventListener("mousemove",Q);this.topLeftCorner.addEventListener("mouseup",f);this.topRightCorner.addEventListener("mousedown",c);this.topRightCorner.addEventListener("mousemove",Q);this.topRightCorner.addEventListener("mouseup",f);this.bottomLeftCorner.addEventListener("mousedown",c);this.bottomLeftCorner.addEventListener("mousemove",Q);this.bottomLeftCorner.addEventListener("mouseup",f);this.bottomRightCorner.addEventListener("mousedown",
c);this.bottomRightCorner.addEventListener("mousemove",Q);this.bottomRightCorner.addEventListener("mouseup",f)};
_.J.removeEventListeners=function(){this.JSC$18631_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18631_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18631_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18631_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18631_mouseDownEvent));this.JSC$18631_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18631_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18631_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18631_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18631_mouseMoveEvent));this.JSC$18631_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18631_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18631_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18631_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18631_mouseUpEvent))};
_.J.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var S=document.activeElement;S&&S.shadowRoot&&S.shadowRoot.activeElement;)S=S.shadowRoot.activeElement;switch(S){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};
_.J.updatePositionOfCorner=function(S,c){var Q=S.y-c.offsetHeight/2+4;c.style.left=S.x-c.offsetWidth/2+16+"px";c.style.top=Q+"px"};
_.J.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var S=_.A([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),c=S.next();!c.done;c=S.next()){c=c.value;var Q=sSZ(this.imageEditor,c.corner);this.updatePositionOfCorner(Q,c.div)}};
_.J.onLeft=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(iXV(this.imageEditor,0),this.updatePositionOfAllCorners(),S.preventDefault())};
_.J.onRight=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(iXV(this.imageEditor,1),this.updatePositionOfAllCorners(),S.preventDefault())};
_.J.onUp=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(iXV(this.imageEditor,2),this.updatePositionOfAllCorners(),S.preventDefault())};
_.J.onDown=function(S){this.imageEditor&&this.setFocusInImageEditor()&&(iXV(this.imageEditor,3),this.updatePositionOfAllCorners(),S.preventDefault())};
_.J.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.Rh.Object.defineProperties(nH.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&og0.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var S,c,Q;((c=this.data)==null?0:c.imageRatio)&&((Q=this.data)==null?0:Q.minImageCropWidth)?S={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:S=yT0;return new lYE(S)}}});
nH.prototype.updatePositionOfAllCorners=nH.prototype.updatePositionOfAllCorners;nH.prototype.dataChanged=nH.prototype.dataChanged;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],nH.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],nH.prototype,"ytComponentBehavior",void 0);_.d([_.p(_.lc),_.P("design:type",Object)],nH.prototype,"ironA11yKeysBehavior",void 0);
_.d([_.nU("#canvas"),_.P("design:type",HTMLCanvasElement)],nH.prototype,"canvasElement",void 0);_.d([_.nU("#file-selector"),_.P("design:type",HTMLInputElement)],nH.prototype,"fileSelector",void 0);_.d([_.nU("#top-left-corner"),_.P("design:type",HTMLDivElement)],nH.prototype,"topLeftCorner",void 0);_.d([_.nU("#top-right-corner"),_.P("design:type",HTMLDivElement)],nH.prototype,"topRightCorner",void 0);
_.d([_.nU("#bottom-left-corner"),_.P("design:type",HTMLDivElement)],nH.prototype,"bottomLeftCorner",void 0);_.d([_.nU("#bottom-right-corner"),_.P("design:type",HTMLDivElement)],nH.prototype,"bottomRightCorner",void 0);_.d([_.Z(),_.P("design:type",Object)],nH.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],nH.prototype,"errorMessage",void 0);_.d([_.Z(),_.P("design:type",Object)],nH.prototype,"isLoading",void 0);_.d([_.Z(),_.P("design:type",Object)],nH.prototype,"hideContainer",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.P("design:type",Boolean)],nH.prototype,"isPlaylistThumbnail",void 0);_.d([_.$n("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],nH.prototype,"dataChanged",null);_.d([_.FV("image-updated"),_.FV("yt-refit"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],nH.prototype,"updatePositionOfAllCorners",null);
_.d([_.wM({is:"yt-image-editor-renderer",disableElementRegistration:!0})],nH);
_.k(nH,"yt-image-editor-renderer",function(){if(uv2===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;$F0===void 0&&($F0=document.createElement("template"));var f=$F0;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);uv2=S}S=uv2;return S},{mode:2});var mF1;var S0Z;var bI=function(){return _.W.apply(this,arguments)||this};
_.C(bI,_.W);bI.prototype.updateMinutesFromBinding=function(S){this.handleMinutesChanged&&this.handleMinutesChanged(S)};
bI.prototype.updateSecondsFromBinding=function(S){this.handleSecondsChanged&&this.handleSecondsChanged(S)};
bI.prototype.updateDescriptionFromBinding=function(S){this.handleDescriptionChanged&&this.handleDescriptionChanged(S)};
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],bI.prototype,"ytComponentBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],bI.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",String)],bI.prototype,"minutes",void 0);_.d([_.Z(),_.P("design:type",String)],bI.prototype,"seconds",void 0);_.d([_.Z(),_.P("design:type",String)],bI.prototype,"description",void 0);_.d([_.Z(),_.P("design:type",Function)],bI.prototype,"handleMinutesChanged",void 0);
_.d([_.Z(),_.P("design:type",Function)],bI.prototype,"handleSecondsChanged",void 0);_.d([_.Z(),_.P("design:type",Function)],bI.prototype,"handleDescriptionChanged",void 0);_.d([_.Z(),_.P("design:type",Number)],bI.prototype,"characterLimit",void 0);_.d([_.Z(),_.P("design:type",Number)],bI.prototype,"textNumRows",void 0);_.d([_.wM({is:"yt-report-details-form-content",disableElementRegistration:!0})],bI);
_.k(bI,"yt-report-details-form-content",function(){if(S0Z===void 0){var S=document.createElement("template");_.D(S,'\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>');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;mF1===void 0&&(mF1=document.createElement("template"));var f=mF1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);S0Z=S}S=S0Z;return S},{mode:2});var c68;var Qm2;var Ny=function(){var S=_.W.apply(this,arguments)||this;S.updateMinutesFromBinding=function(c){S.minutes=c.detail.value};
S.updateSecondsFromBinding=function(c){S.seconds=c.detail.value};
S.updateDescriptionFromBinding=function(c){S.description=c.detail.value};
return S};
_.C(Ny,_.W);_.J=Ny.prototype;_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.J.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"}}}};
_.J.ready=function(){_.Ur(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.J.onSubmitYtAction=function(S){var c=S.detail;c.actionName==="yt-service-request"&&(c=c.args[1],c.flagEndpoint&&(S.stopPropagation(),this.refireAction(c)))};
_.J.refireAction=function(S){var c={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(c.vss_id=this.vssId);_.xt(this.hostElement,[S,c]);this.submitDisabled=!0};
_.J.dataChanged=function(){var S=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var c=_.S9();c&&c.getPlayerPromise().then(function(Q){var f=Q.getOption("cc","track")||Q.getOption("captions","track");f&&(S.vssId=f.vss_id);Q=Q.getCurrentTime();S.minutes=Math.floor(Q/60).toString();S.seconds=(Math.floor(Q)%60).toString()})};
_.J.updateSubmitButtonState=function(){var S;((S=this.data)==null?0:S.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==="")};
_.J.onYtServiceRequestCompleted=function(){_.XF(this.hostElement,"yt-close-popup-action")};
_.J.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.Rh.Object.defineProperties(Ny.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var S;return((S=this.data)==null?void 0:S.textNumRows)||4}}});
Ny.prototype.onYtServiceRequestError=Ny.prototype.onYtServiceRequestError;Ny.prototype.onYtServiceRequestCompleted=Ny.prototype.onYtServiceRequestCompleted;Ny.prototype.updateSubmitButtonState=Ny.prototype.updateSubmitButtonState;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Ny.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Ny.prototype,"ytRendererBehavior",void 0);
_.d([_.Z({observer:"dataChanged"}),_.P("design:type",Object)],Ny.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Ny.prototype,"submitDisabled",void 0);_.d([_.Z(),_.P("design:type",String)],Ny.prototype,"minutes",void 0);_.d([_.Z(),_.P("design:type",String)],Ny.prototype,"seconds",void 0);_.d([_.Z(),_.P("design:type",String)],Ny.prototype,"description",void 0);_.d([_.Z(),_.P("design:type",String)],Ny.prototype,"vssId",void 0);
_.d([_.Z({value:_.WY("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.P("design:type",Boolean)],Ny.prototype,"isMusic",void 0);_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],Ny.prototype,"characterLimit",null);_.d([_.M("data"),_.P("design:type",Number),_.P("design:paramtypes",[])],Ny.prototype,"textNumRows",null);
_.d([_.$n("minutes","seconds","description","submitDisabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ny.prototype,"updateSubmitButtonState",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ny.prototype,"onYtServiceRequestCompleted",null);
_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Ny.prototype,"onYtServiceRequestError",null);_.d([_.wM({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],Ny);
_.k(Ny,"yt-report-details-form-renderer",function(){if(Qm2===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;c68===void 0&&(c68=document.createElement("template"));var f=c68;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Qm2=S}S=Qm2;return S});var fnp;var Udg;var J61;var anG;var KH=function(){return _.W.apply(this,arguments)||this};
_.C(KH,_.W);
KH.prototype.onCheckedChanged_=function(){if(this.data){var S=_.Ur(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.XF(this.hostElement,"yt-additional-detail-checkbox-update",[S]):this.data.identifier==="yt-hide-user-checkbox"?_.XF(this.hostElement,"yt-hide-user-checkbox-update",[S]):S&&this.data.enableCommand?_.XF(this.hostElement,"yt-modify-report-form-command",[_.Y(this.data.enableCommand,KIB)]):!S&&this.data.disableCommand&&_.XF(this.hostElement,
"yt-modify-report-form-command",[_.Y(this.data.enableCommand,KIB)])}};
KH.prototype.onLabelTap_=function(S){S.target.tagName!="A"&&(_.Ur(this.hostElement).querySelector("#checkbox").checked=!_.Ur(this.hostElement).querySelector("#checkbox").checked)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],KH.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],KH.prototype,"data",void 0);_.d([_.wM({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],KH);
_.k(KH,"yt-boolean-form-field-v2-renderer",function(){if(anG===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;J61===void 0&&(J61=document.createElement("template"));var f=J61;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);anG=S}S=anG;return S});var $i=function(){var S=_.W.apply(this,arguments)||this;S.canShowAdditionalDetailCheckbox=!1;S.canShowCheckbox=!1;S.keepDropdownFocusedAfterSelection=!0;return S};
_.C($i,_.W);$i.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}}}}};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],$i.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],$i.prototype,"canShowAdditionalDetailCheckbox",void 0);_.d([_.Z(),_.P("design:type",Object)],$i.prototype,"canShowCheckbox",void 0);_.d([_.Z(),_.P("design:type",Object)],$i.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.d([_.wM({is:"yt-report-form-modal-content",disableElementRegistration:!0})],$i);
_.k($i,"yt-report-form-modal-content",function(){if(Udg===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;fnp===void 0&&(fnp=document.createElement("template"));var f=fnp;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Udg=S}S=Udg;return S},{mode:2});var A6p;var XyN;var uI=function(){var S=_.W.apply(this,arguments)||this;S.submitting=!1;S.submitButtonDisabled=!0;S.command=null;S.canShowCheckbox=!1;S.canShowAdditionalDetailCheckbox=!1;S.canShowNextButton=!1;S.additionalDetailCheckboxChecked=!1;S.refitJob=0;S.keepDropdownFocusedAfterSelection=!0;S.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 S};
_.C(uI,_.W);_.J=uI.prototype;_.J.created=function(){this.refitJob=0};
_.J.attached=function(){this.JSC$18654_scroller&&(this.JSC$18654_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18654_scroller.attached&&typeof this.JSC$18654_scroller.attached==="function"&&this.JSC$18654_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.dataChanged=function(S){S&&(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,S.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),S.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.J.onYtPopupOpened=function(){var S=_.S9();S&&S.getPlayerPromise().then(function(c){c.pauseVideo()})};
_.J.onYtNavigate=function(S){_.Y(S.detail.endpoint,_.os$)&&(S.stopPropagation(),this.hideReportForm=!0)};
_.J.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.J.onYtServiceRequestCompleted=function(S,c){var Q=c.actions;if(Q){if(Q.length===1&&_.Y(Q[0],_.II)){var f;Q=((f=_.Y(Q[0],_.II))==null?void 0:f.commands)||[]}f=0;for(var U=Q.length;f<U;f++)_.Y(Q[f],_.pk)&&(S.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(Q[f]))}if(c.data&&(S=this.get("feedbackResponses",c.data)))for(c=0;c<S.length;c++)if(S[c].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.J.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.J._onDescendantIronResize=function(S){S.stopPropagation();return!1};
_.J.handleReportFormEndpointUpdateAction=function(S){if(S.submitEndpoint){var c=this.command=S.submitEndpoint;c=_.Y(c,_.gq_);if(c==null?0:c.additionalDetailCheckboxChecked)c.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else S.submitNavigationEndpoint?(this.command=S.submitNavigationEndpoint,this.toggleSubmitButton(!1)):S.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:S.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;S.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",S));this.refit()};
_.J.handleConfirmDialogCloseAction=function(S){S.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.J.submitButtonDisabledChanged=function(){var S=this.hostElement.parentElement;S&&S.invalidateTabbables&&S.invalidateTabbables()};
_.J.handleModifyReportFormCommand=function(S){S=this.get("action",S);S==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:S==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:S==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:S==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:S==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:S==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.J.updateDialogStyling=function(){var S,c,Q,f,U,a=((U=(S=this.data)==null?void 0:(c=S.optionsSupportedRenderers)==null?void 0:(Q=c.optionsRenderer)==null?void 0:(f=Q.items)==null?void 0:f.length)!=null?U:0)<=2?0:240;_.Or(this.hostElement,{"--yt-report-form-modal-renderer-min-width":a+"px"})};
_.J.toggleSubmitButton=function(S){this.submitButtonDisabled=!S;this.submitButtonDisabled=S};
_.J.computeSubmitButtonData=function(S,c){var Q={};_.Y(c,_.os$)?Q.navigationEndpoint=c:Q.command=c||void 0;S&&S.buttonRenderer&&_.Cn.extend(Q,S.buttonRenderer);return Q};
_.J.computeNextButtonData=function(S,c){var Q={};if(!S||!S.buttonRenderer)return Q;_.Cn.extend(Q,S.buttonRenderer);if(!c)return Q;if(_.Y(c,_.os$))Q.navigationEndpoint=ZvE(c);else if(Q.command=ZvE(c),S=_.Y(Q.command,_.gq_))S.legalCheckboxChecked=!0;return Q};
_.J.computeShowNextButton=function(S,c,Q){return!!S&&c&&Q};
_.J.refit=function(){var S=this;this.refitJob||(this.refitJob=_.Mq.addLowPriorityJob(function(){_.Az(S.hostElement,"yt-refit");S.refitJob=0}))};
_.J.handleAdditionalDetailCheckboxUpdateAction=function(S){this.additionalDetailCheckboxChecked=S;_.Y(this.command,_.gq_).additionalDetailCheckboxChecked=S};
_.Rh.Object.defineProperties(uI,{template:{configurable:!0,enumerable:!0,get:function(){if(XyN===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;A6p===void 0&&(A6p=document.createElement("template"));var f=A6p;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);XyN=S}S=XyN;return S}}});
uI.prototype.onYtServiceRequestError=uI.prototype.onYtServiceRequestError;uI.prototype.onYtServiceRequestCompleted=uI.prototype.onYtServiceRequestCompleted;uI.prototype.onYtServiceRequestSent=uI.prototype.onYtServiceRequestSent;uI.prototype.onYtNavigate=uI.prototype.onYtNavigate;uI.prototype.onYtPopupOpened=uI.prototype.onYtPopupOpened;_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],uI.prototype,"openPopupBehavior",void 0);
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],uI.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],uI.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],uI.prototype,"eventForwardingBehavior",void 0);_.d([_.p(_.w9),_.P("design:type",Object)],uI.prototype,"ironResizableBehavior",void 0);_.d([_.Z({observer:"dataChanged"}),_.P("design:type",Object)],uI.prototype,"data",void 0);
_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"submitting",void 0);_.d([_.Z({observer:"submitButtonDisabledChanged"}),_.P("design:type",Object)],uI.prototype,"submitButtonDisabled",void 0);_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"command",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],uI.prototype,"hideReportForm",void 0);_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"canShowCheckbox",void 0);
_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"canShowAdditionalDetailCheckbox",void 0);_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"canShowNextButton",void 0);_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"additionalDetailCheckboxChecked",void 0);_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"refitJob",void 0);_.d([_.Z(),_.P("design:type",Object)],uI.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.d([_.nU("#scroller"),_.P("design:type",Object)],uI.prototype,"JSC$18654_scroller",void 0);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],uI.prototype,"onYtPopupOpened",null);_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uI.prototype,"onYtNavigate",null);
_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],uI.prototype,"onYtServiceRequestSent",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],uI.prototype,"onYtServiceRequestCompleted",null);
_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],uI.prototype,"onYtServiceRequestError",null);_.d([_.wM({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],uI);var OaT;var zHU;var ja=function(){return _.W.apply(this,arguments)||this};
_.C(ja,_.W);_.J=ja.prototype;_.J.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.J.onVisible=function(){var S,c;(c=_.fl().resolve(_.QS(_.Fj)))==null||c.enqueue({label:_.Em((S=this.data)==null?void 0:S.messageTitle),elementToFocus:this.hostElement})};
_.J.onThumbnailLoaded=function(){_.Az(this.hostElement,"yt-refit")};
_.J.onDismissTap=function(){_.XF(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.J.computeAlternateIcon=function(S){return S?S==="BACKSTAGE_ARTWORK"?"backstage:artwork":S:null};
_.J.computeFontFamily=function(S){return S==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.J.computeBackgroundStyle=function(S,c){if(S=this.computeBackgroundImage(S,c))if(S=_.Ja(S.thumbnails))return'background-image: url("'+S+'");'};
_.J.computeHasFullHeightImage=function(S){return!(!(S&&S.thumbnails&&S.thumbnails.length>0)||this.modern)};
_.J.isModernStyle=function(S){return S.style==="STYLE_MODERN"};
_.J.computeIcon=function(S,c){if(S&&S.icon)return c?S.iconDark:S.icon};
_.J.computeBackgroundImage=function(S,c){if(S&&S.backgroundImage)return c?S.backgroundImageDark:S.backgroundImage};
_.J.computeLogo=function(S,c){if(S&&S.logo)return c?S.logoDark:S.logo};
_.J.computeShouldShowModernIcon=function(S,c){return S&&!!c};
_.J.getLogoContainerClassName=function(S){return this.logoWithPadding(S)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.J.getLogoImageId=function(S){return this.logoWithPadding(S)?"mealbar-logo-with-padding":"mealbar-logo"};
_.J.logoWithPadding=function(S){var c,Q,f;return(S=(c=this.computeLogo(S,this.isDarkTheme))==null?void 0:(Q=c.thumbnails)==null?void 0:(f=Q[0])==null?void 0:f.height)&&S%31===0?!0:!1};
ja.prototype.onThumbnailLoaded=ja.prototype.onThumbnailLoaded;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ja.prototype,"ytRendererBehavior",void 0);_.d([_.Z({}),_.P("design:type",Object)],ja.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.P("design:type",Boolean)],ja.prototype,"modern",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ja.prototype,"isDarkTheme",void 0);
_.d([_.Z({computed:"computeIcon(data, isDarkTheme)"}),_.P("design:type",Object)],ja.prototype,"icon",void 0);_.d([_.Z({computed:"computeLogo(data, isDarkTheme)"}),_.P("design:type",Object)],ja.prototype,"logo",void 0);_.d([_.Z({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.P("design:type",Object)],ja.prototype,"backgroundStyle",void 0);_.d([_.Z({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.P("design:type",Object)],ja.prototype,"alternateIcon",void 0);
_.d([_.Z({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.P("design:type",Boolean)],ja.prototype,"hasFullHeightImage",void 0);_.d([_.Z({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.P("design:type",Boolean)],ja.prototype,"useYoutubeSans",void 0);_.d([_.Z({computed:"computeShouldShowModernIcon(modern, icon)"}),_.P("design:type",Boolean)],ja.prototype,"shouldShowModernIcon",void 0);
_.d([_.FV("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],ja.prototype,"onThumbnailLoaded",null);_.d([_.wM({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],ja);
_.k(ja,"yt-mealbar-promo-renderer",function(){if(zHU===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;OaT===void 0&&(OaT=document.createElement("template"));var f=OaT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);zHU=S}S=zHU;return S},{mode:2});var xdE;var FFG;var lI=function(){return _.W.apply(this,arguments)||this};
_.C(lI,_.W);_.J=lI.prototype;_.J.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]]"}}}}}};
_.J.computeHasButtons_=function(S){return!(!S.dismissButton&&!S.acceptButton)};
_.J.computeStyle_=function(S){return S||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.J.observeImpressionEndpoints_=function(){var S=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(c){c.clickTrackingParams&&delete c.clickTrackingParams;_.xt(S.hostElement,[c])})};
_.J.onTap_=function(){_.XF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
lI.prototype.observeImpressionEndpoints_=lI.prototype.observeImpressionEndpoints_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],lI.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],lI.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],lI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],lI.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],lI.prototype,"positionType",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.P("design:type",Boolean)],lI.prototype,"hasButtons_",void 0);_.d([_.Z({value:function(){return this.onTap_.bind(this)}}),
_.P("design:type",Function)],lI.prototype,"boundOnTap_",void 0);_.d([_.Z({value:{style:"mono-inverse"}}),_.P("design:type",Object)],lI.prototype,"buttonOverride",void 0);_.d([_.B0("data.promoConfig.impressionEndpoints"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],lI.prototype,"observeImpressionEndpoints_",null);_.d([_.wM({is:"yt-tooltip-renderer",disableElementRegistration:!0})],lI);
_.k(lI,"yt-tooltip-renderer",function(){if(FFG===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;xdE===void 0&&(xdE=document.createElement("template"));var f=xdE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);FFG=S}S=FFG;return S},{mode:2});var B$E;var Ing;var nbE={},baV=(nbE.WEB_REMIX="music.youtube.com",nbE),Yi=function(){var S=_.W.apply(this,arguments)||this;S.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return S};
_.C(Yi,_.W);_.J=Yi.prototype;_.J.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.created=function(){this.embedHost_=baV[_.WY("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.J.ready=function(){_.Ur(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.J.computeEmbedCode_=function(S,c,Q,f,U){if(!S)return"";var a=S.videoId,X=S.fullListId,z=[];S.attributionId&&z.push("si="+S.attributionId);f||z.push("controls=0");Q&&Number(c)>0&&z.push("start="+c);X&&(a="videoseries",z.push("list="+X));Q="https://"+(U?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+a;S.clipId&&(z.push("clip="+S.clipId),z.push("clipt="+S.clipTiming));c=z.length>0?Q+"?"+z.join("&amp;"):Q;S.encryptedEmbedConfig&&z.push("embed_config="+JSON.stringify({enc:S.encryptedEmbedConfig}));
z=z.length>0?Q+"?"+z.join("&amp;"):Q;_.u("web_sharing_embed_preview_killswitch")?_.Ur(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(z,S.previewWidth||854,S.previewHeight||480):(_.TE(this.videoPreviewContainer),_.Ur(this.videoPreviewContainer).appendChild(this.buildIframeElement(z)));return this.getEmbedCode_(c,S.width||560,S.height||315)};
_.J.buildIframeElement=function(S){var c=document.createElement("iframe"),Q,f;c.width=""+((f=(Q=this.data)==null?void 0:Q.previewWidth)!=null?f:854);var U,a;c.height=""+((a=(U=this.data)==null?void 0:U.previewHeight)!=null?a:480);_.KEo(c,2,S);c.title="YouTube video player";c.frameBorder="0";c.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";c.referrerPolicy="strict-origin-when-cross-origin";c.allowFullscreen=!0;return c};
_.J.computeIsSquareAspectRatio_=function(S){return S.previewHeight&&S.previewWidth?S.previewHeight==S.previewWidth:!1};
_.J.computeShowEmbedOptions_=function(S){return!!S.enablePrivacyModeOptionLabel||!!S.showPlayerControlsOptionLabel};
_.J.getEmbedCode_=function(S,c,Q){return'<iframe width="'+c+'" height="'+Q+'" src="'+S+'" 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>'};
_.J.handleSignalActionCopyShareEmbedUrl_=function(){_.Ur(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.J.handleSetTimestamp_=function(S){this.startAtTimeStamp_=(this.startAtChecked_=S.isSet)?S.timestamp:0};
_.J.closePanel_=function(){_.XF(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.J.onEmbedCode_=function(){_.Ur(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.J.onYtPopupClosed_=function(){_.TE(_.Ur(this.hostElement).querySelector("#video-preview"))};
_.J.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.Y(this.data.actionButtons[0],_.GF)&&this.ytRendererBehavior.logExplicitClick(_.Y(this.data.actionButtons[0],_.GF))};
Yi.prototype.onYtPopupClosed_=Yi.prototype.onYtPopupClosed_;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Yi.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],Yi.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Yi.prototype,"data",void 0);
_.d([_.Z({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.P("design:type",String)],Yi.prototype,"embedCode_",void 0);_.d([_.Z({value:!0}),_.P("design:type",Boolean)],Yi.prototype,"isPlayerControlsOptionChecked_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],Yi.prototype,"isPrivacyModeOptionChecked_",void 0);_.d([_.Z({value:!1,notify:!0}),_.P("design:type",Boolean)],Yi.prototype,"startAtChecked_",void 0);
_.d([_.Z({value:0}),_.P("design:type",Number)],Yi.prototype,"startAtTimeStamp_",void 0);_.d([_.Z({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Yi.prototype,"isSquareAspectRatio_",void 0);_.d([_.nU("#video-preview"),_.P("design:type",HTMLElement)],Yi.prototype,"videoPreviewContainer",void 0);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Yi.prototype,"onYtPopupClosed_",null);
_.d([_.wM({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],Yi);
_.k(Yi,"yt-sharing-embed-renderer",function(){if(Ing===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;B$E===void 0&&(B$E=document.createElement("template"));var f=B$E;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Ing=S}S=Ing;return S},{mode:2});var N$Z={};
N$Z.YtUnlimitedFamilyInterstitialBehavior=[_.Nc.YtOpenPopupBehavior,_.AN.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(S){S=_.Nde(_.VI(S),"yt-button-renderer");return S?S.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(S){this.dialogHistory_.push(S)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var S=this.popFromHistory();if(S){var c={openPopupAction:{popupType:"DIALOG",popup:{}}};c.openPopupAction.popup[S.renderer]=S.data;this.showingPreviousDialog_=!0;this.openPopup(c)}},
handleOpenPopupAction_:function(S){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var c=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(f){return!!S.openPopupAction.popup[f]}),Q=this.getElementName_();
c&&this.data&&(this.pushToHistory({renderer:Q,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(S){if(S=_.Y(S,LIg))this.loading=!0,_.XF(this.hostElement,"yt-open-create-family-dialog",[S,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var S=this.hostElement.nodeName.split("-").slice(1).map(function(c){return""+c[0].toUpperCase()+c.slice(1).toLowerCase()}).join("");
return S[0].toLowerCase()+S.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var KF1;var $d0;var CH=function(){return _.W.apply(this,arguments)||this};
_.C(CH,_.W);_.J=CH.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.XF(this.hostElement,"yt-register-create-family-dialog");_.Ur(this.hostElement).querySelector("#thumbnail").onShow()};
_.J.fireOnCloseCommand_=function(){var S;((S=this.data)==null?0:S.onCloseCommand)&&_.FF(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.J.onYtServiceRequestSent_=function(S,c){c&&c.endpoint&&_.Y(c.endpoint,_.b2)||(this.loading=!0)};
_.J.onYtServiceRequestCompleted_=function(){var S=this.hostElement.parentElement;S.close&&S.close();this.loading=!1};
_.J.openPopupHandler_=function(S){if(S.detail==this){var c;((c=this.data)==null?0:c.onOpenCommands)&&_.FF(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.J.closePopupHandler_=function(S,c){this.fireOnCloseCommand_();if(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1){var Q;((Q=this.data)==null?0:Q.onDismissCommands)&&_.FF(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.J.dataChanged_=function(){this.loading=!1};
CH.prototype.dataChanged_=CH.prototype.dataChanged_;CH.prototype.closePopupHandler_=CH.prototype.closePopupHandler_;CH.prototype.openPopupHandler_=CH.prototype.openPopupHandler_;CH.prototype.onYtServiceRequestCompleted_=CH.prototype.onYtServiceRequestCompleted_;CH.prototype.onYtServiceRequestSent_=CH.prototype.onYtServiceRequestSent_;_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],CH.prototype,"ytEventForwardingBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],CH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(N$Z.YtUnlimitedFamilyInterstitialBehavior),_.P("design:type",Object)],CH.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],CH.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],CH.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],CH.prototype,"loading",void 0);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],CH.prototype,"onYtServiceRequestSent_",null);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],CH.prototype,"onYtServiceRequestCompleted_",null);
_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],CH.prototype,"openPopupHandler_",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],CH.prototype,"closePopupHandler_",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],CH.prototype,"dataChanged_",null);
_.d([_.wM({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],CH);
_.k(CH,"yt-unlimited-family-message-interstitial-renderer",function(){if($d0===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;KF1===void 0&&(KF1=document.createElement("template"));var f=KF1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);$d0=S}S=$d0;return S},{mode:2});var uH2;var jmE;var Hj=function(){return _.W.apply(this,arguments)||this};
_.C(Hj,_.W);Hj.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"}}}};
Hj.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Ur(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(S){S.onShow()});
_.Ur(this.hostElement).querySelector("#main-thumbnail").onShow()};
Hj.prototype.onButtonTap_=function(S){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(S)};
Hj.prototype.computeMainThumbnailWidth_=function(S){return S&&S.length!==0?72:96};
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Hj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Hj.prototype,"ytRendererBehavior",void 0);_.d([_.p(N$Z.YtUnlimitedFamilyInterstitialBehavior),_.P("design:type",Object)],Hj.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Hj.prototype,"data",void 0);
_.d([_.Z({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.P("design:type",Number)],Hj.prototype,"mainThumbnailWidth_",void 0);_.d([_.Z({value:function(){return this.onButtonTap_.bind(this)}}),
_.P("design:type",Function)],Hj.prototype,"boundButtonTap_",void 0);_.d([_.wM({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],Hj);
_.k(Hj,"yt-unlimited-family-profile-interstitial-renderer",function(){if(jmE===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;uH2===void 0&&(uH2=document.createElement("template"));var f=uH2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);jmE=S}S=jmE;return S},{mode:2});var lnT;var Y0N;var DD=function(){var S=_.W.apply(this,arguments)||this;S.sliderAriaValueText_=null;S.selectedIndex_=0;S.messages={PAUSE_SLIDER:_.K8("PAUSE_SLIDER",void 0,"Pause Duration")};return S};
_.C(DD,_.W);_.J=DD.prototype;_.J.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_]]"}}}}}};
_.J.onPopupOpened_=function(S){S.detail==this&&_.u("enable_premium_voluntary_pause")&&(_.XF(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.J.setDialogData=function(S){this.data=S;this.resetSlider_()};
_.J.dataChanged_=function(){this.data&&this.resetSlider_()};
_.J.onSubmitTap_=function(){if(this.data.confirmCommand){var S=this.data.confirmCommand;_.Y(S,_.mBJ)&&_.xt(this.hostElement,[S,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.J.onExitButtonTap_=function(){_.XF(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.J.closePopupHandler_=function(S,c){(c&&c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.handleOnDismissCommands_()};
_.J.onSliderChange_=function(){this.selectedIndex_=_.Ur(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.J.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.J.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.J.resetSlider_=function(){if(this.data){var S=this.data.defaultEndOptionIndex||0,c=_.Ur(this.hostElement).querySelector("#id-pause-slider");if(c.immediateValue<S)for(;c.immediateValue!=S;)c.increment();else if(S<c.immediateValue)for(;c.immediateValue!=S;)c.decrement();this.selectedIndex_=S;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.J.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.FF(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.FF(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestSent=function(){this.loading=!0};
_.J.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
DD.prototype.onYtServiceRequestCompleted=DD.prototype.onYtServiceRequestCompleted;DD.prototype.onYtServiceRequestSent=DD.prototype.onYtServiceRequestSent;DD.prototype.closePopupHandler_=DD.prototype.closePopupHandler_;DD.prototype.dataChanged_=DD.prototype.dataChanged_;DD.prototype.onPopupOpened_=DD.prototype.onPopupOpened_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],DD.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],DD.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],DD.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],DD.prototype,"loading",void 0);_.d([_.Z(),_.P("design:type",Number)],DD.prototype,"selectIndexMax_",void 0);_.d([_.Z(),_.P("design:type",Object)],DD.prototype,"selectedData_",void 0);
_.d([_.Z(),_.P("design:type",Object)],DD.prototype,"sliderAriaValueText_",void 0);_.d([_.Z({value:function(){return this.onSubmitTap_.bind(this)}}),
_.P("design:type",Function)],DD.prototype,"onButtonTap_",void 0);_.d([_.Z({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.P("design:type",Function)],DD.prototype,"onSecondaryTap_",void 0);_.d([_.Z(),_.P("design:type",Object)],DD.prototype,"messages",void 0);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],DD.prototype,"onPopupOpened_",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],DD.prototype,"dataChanged_",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],DD.prototype,"closePopupHandler_",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],DD.prototype,"onYtServiceRequestSent",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],DD.prototype,"onYtServiceRequestCompleted",null);_.d([_.wM({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],DD);
_.k(DD,"yt-unplugged-pause-membership-dialog-renderer",function(){if(Y0N===void 0){var S=document.createElement("template");_.D(S,'\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>');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;lnT===void 0&&(lnT=document.createElement("template"));var f=lnT;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Y0N=S}S=Y0N;return S},{mode:2});var C18;var HaE;var pH=function(){return _.W.apply(this,arguments)||this};
_.C(pH,_.W);pH.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.ZL("vcBalanceRenderer")}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],pH.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],pH.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],pH.prototype,"data",void 0);_.d([_.wM({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],pH);
_.k(pH,"yt-vc-offer-layout-header-renderer",function(){if(HaE===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;C18===void 0&&(C18=document.createElement("template"));var f=C18;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);HaE=S}S=HaE;return S},{mode:2});var DdV;var pyT;var hHV;var q0O;var hV=function(){return _.W.apply(this,arguments)||this};
_.C(hV,_.W);hV.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.Rh.Object.defineProperties(hV.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)}}});
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],hV.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],hV.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.Juu.YtTappableItemBehavior),_.P("design:type",Object)],hV.prototype,"ytTappableItemBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],hV.prototype,"data",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.M("data.accessibilityText"),_.P("design:type",String),_.P("design:paramtypes",[])],hV.prototype,"ariaLabel",null);_.d([_.Z({reflectToAttribute:!0}),_.M("data.style"),_.P("design:type",String),_.P("design:paramtypes",[])],hV.prototype,"vcOfferStyle",null);_.d([_.M("data.style","data.titleText"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],hV.prototype,"showTitleText",null);_.d([_.wM({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],hV);
_.k(hV,"yt-vc-offer-renderer",function(){if(q0O===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;hHV===void 0&&(hHV=document.createElement("template"));var f=hHV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);q0O=S}S=q0O;return S},{mode:2});var qy=function(){return _.W.apply(this,arguments)||this};
_.C(qy,_.W);qy.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}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],qy.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],qy.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],qy.prototype,"data",void 0);_.d([_.wM({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],qy);
_.k(qy,"yt-vc-offer-layout-renderer",function(){if(pyT===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;DdV===void 0&&(DdV=document.createElement("template"));var f=DdV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);pyT=S}S=pyT;return S},{mode:2});var T$O;var wyE;var smE;var Mug;var Td=function(){return _.W.apply(this,arguments)||this};
_.C(Td,_.W);Td.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}}}}}};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Td.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Td.prototype,"data",void 0);_.d([_.wM({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],Td);
_.k(Td,"yt-ypc-offers-modal-top-bar-renderer",function(){if(Mug===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;smE===void 0&&(smE=document.createElement("template"));var f=smE;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Mug=S}S=Mug;return S},{mode:2});var wu=function(){return _.W.apply(this,arguments)||this};
_.C(wu,_.W);wu.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"}}}}};
wu.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
wu.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var S=this.scrollable;S.attached&&typeof S.attached==="function"&&S.attached()};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],wu.prototype,"ytRendererstamperBehavior",void 0);_.d([_.nU("#scrollable"),_.P("design:type",Object)],wu.prototype,"scrollable",void 0);_.d([_.Z(),_.P("design:type",Object)],wu.prototype,"data",void 0);_.d([_.wM({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],wu);
_.k(wu,"yt-ypc-offers-modal-renderer",function(){if(wyE===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;T$O===void 0&&(T$O=document.createElement("template"));var f=T$O;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);wyE=S}S=wyE;return S},{mode:2});var ia1;var Za1;var ss=function(){return _.W.apply(this,arguments)||this};
_.C(ss,_.W);_.J=ss.prototype;_.J.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}}}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Ur(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.J.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.XF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.J.onYtPopupOpened_=function(S,c){(c==null?void 0:c.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.FF(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.J.onYtPopupClosed_=function(S,c){this.continueButtonTapped||c&&(c.canceled===!0||c.canceled===!1&&c.confirmed===!1)&&this.data.onDismissCommands&&_.FF(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.J.onYtServiceRequestError_=function(S){this.set("showSpinner",!1);_.fD(this.hostElement,S.detail.error.message)};
_.J.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.u("enable_ypc_spinners")?_.XF(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
ss.prototype.onYtServiceRequestError_=ss.prototype.onYtServiceRequestError_;ss.prototype.onYtPopupClosed_=ss.prototype.onYtPopupClosed_;ss.prototype.onYtPopupOpened_=ss.prototype.onYtPopupOpened_;ss.prototype.onYtServiceRequestCompleted_=ss.prototype.onYtServiceRequestCompleted_;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ss.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],ss.prototype,"ytRendererstamperBehavior",void 0);
_.d([_.Z(),_.P("design:type",Object)],ss.prototype,"data",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ss.prototype,"showSpinner",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],ss.prototype,"continueButtonTapped",void 0);_.d([_.Z({value:function(){return this.onContinueTapped_.bind(this)}}),
_.P("design:type",Function)],ss.prototype,"bindOnContinueTapped_",void 0);_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ss.prototype,"onYtServiceRequestCompleted_",null);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],ss.prototype,"onYtPopupOpened_",null);
_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],ss.prototype,"onYtPopupClosed_",null);_.d([_.FV("yt-service-request-error"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],ss.prototype,"onYtServiceRequestError_",null);_.d([_.wM({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],ss);
_.k(ss,"yt-ypc-upgrade-dialog-renderer",function(){if(Za1===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;ia1===void 0&&(ia1=document.createElement("template"));var f=ia1;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);Za1=S}S=Za1;return S},{mode:2});var GXN;var WFV;var My=function(){return _.W.apply(this,arguments)||this};
_.C(My,_.W);My.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
My.prototype.computeHasButtons_=function(S){return!(!S.dismissButton&&!S.confirmButton)};
My.prototype.computeStyle_=function(S){return S||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],My.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],My.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],My.prototype,"ytRendererstamperBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],My.prototype,"data",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],My.prototype,"positionType",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.P("design:type",Boolean)],My.prototype,"hasButtons_",void 0);_.d([_.Z({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.P("design:type",Boolean)],My.prototype,"style_",void 0);_.d([_.wM({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],My);
_.k(My,"yt-bubble-hint-renderer",function(){if(WFV===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;GXN===void 0&&(GXN=document.createElement("template"));var f=GXN;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);WFV=S}S=WFV;return S},{mode:2});var gbN;var eHE;var iI=function(){var S=_.yu.apply(this,arguments)||this;S.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return S};
_.C(iI,_.yu);_.J=iI.prototype;_.J.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.J.attached=function(){var S=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){S.$.thumbnail.onShow();S.$["header-image"].onShow()})};
_.J.handleCheckBoxUpdateAction_=function(S){this.canShowCheckboxEnabledConfirmButton=S};
_.J.computeUseOverlayForSpinner_=function(S,c){return!!S&&c};
_.J.computeShowSpinner_=function(S,c){return S||!!c};
_.J.fireOnCloseActions_=function(){var S,c=_.A(((S=this.data)==null?void 0:S.onClosedActions)||[]);for(S=c.next();!S.done;S=c.next())this.ytRendererBehavior.resolveCommand(S.value)};
_.J.fireOnOpenCommands_=function(S){var c,Q=(c=this.data)==null?void 0:c.onOpenCommands;if(Q)for(S.stopImmediatePropagation(),S=_.A(Q),c=S.next();!c.done;c=S.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.J.fireOnDismissCommands_=function(S){var c,Q=(c=this.data)==null?void 0:c.onDismissCommands;if(Q)for(S.stopImmediatePropagation(),S=_.A(Q),c=S.next();!c.done;c=S.next())this.ytRendererBehavior.resolveCommand(c.value)};
_.J.openPopupHandler_=function(S){S.detail==this&&this.fireOnOpenCommands_(S)};
_.J.closePopupHandler_=function(S,c){_.Oz(this,"yt-confirm-dialog-close-action",[c]);this.fireOnCloseActions_();(c&&c.canceled===!0||c&&c.canceled===!1&&c.confirmed===!1)&&this.fireOnDismissCommands_(S)};
_.J.onHeaderImageChanged_=function(){var S;((S=this.data)==null?0:S.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.J.computeHasHeaderImageWidth_=function(S){return S!=void 0};
_.J.computeHasLoadingMessage=function(S){return!!S};
_.J.onHeaderImageWidthChanged_=function(){var S,c=(S=this.data)==null?void 0:S.headerImageWidth;if(c){if(S=1.25*c*2+c,this.$.main.style.width=S+"px",c=this.$.scroller.firstElementChild)c.style.minWidth=S+"px"}else this.$.main.style.width="100%"};
_.J.onThumbnailChanged_=function(){var S;((S=this.data)==null?0:S.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")};
_.J.onYtNavigate_=function(S){S=_.VI(S);S instanceof Node&&_.Jq(this.$["confirm-button"]).contains(S)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.J.computePrimaryIsCancel_=function(S){return S};
_.J.computeIsCancelButtonHidden_=function(S){return S.skipCancelButton||!S.cancelButton};
_.J.computeIsCheckboxHidden_=function(S){return!S.checkbox};
_.J.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.J.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.J.onYtServiceRequestCompleted_=function(){var S;((S=this.data)==null?0:S.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.Rh.Object.defineProperties(iI,{template:{configurable:!0,enumerable:!0,get:function(){if(eHE===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;gbN===void 0&&(gbN=document.createElement("template"));var f=gbN;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);eHE=S}S=eHE;return S}}});
iI.prototype.onYtServiceRequestCompleted_=iI.prototype.onYtServiceRequestCompleted_;iI.prototype.onYtServiceRequestSent_=iI.prototype.onYtServiceRequestSent_;iI.prototype.onThumbnailLoaded_=iI.prototype.onThumbnailLoaded_;iI.prototype.onYtNavigate_=iI.prototype.onYtNavigate_;iI.prototype.onThumbnailChanged_=iI.prototype.onThumbnailChanged_;iI.prototype.onHeaderImageWidthChanged_=iI.prototype.onHeaderImageWidthChanged_;iI.prototype.onHeaderImageChanged_=iI.prototype.onHeaderImageChanged_;
iI.prototype.closePopupHandler_=iI.prototype.closePopupHandler_;iI.prototype.openPopupHandler_=iI.prototype.openPopupHandler_;_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],iI.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],iI.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],iI.prototype,"ytRendererBehavior",void 0);
_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],iI.prototype,"ytEventForwardingBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],iI.prototype,"data",void 0);_.d([_.Z({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.P("design:type",Boolean)],iI.prototype,"primaryIsCancel",void 0);_.d([_.Z({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.P("design:type",Boolean)],iI.prototype,"isCancelButtonHidden",void 0);
_.d([_.Z({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.P("design:type",Boolean)],iI.prototype,"isCheckboxHidden",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],iI.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.d([_.Z({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.P("design:type",Boolean)],iI.prototype,"useOverlayForSpinner_",void 0);
_.d([_.Z({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.P("design:type",Boolean)],iI.prototype,"showSpinner_",void 0);_.d([_.Z({value:!1}),_.P("design:type",Boolean)],iI.prototype,"isActionInProgress_",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.P("design:type",Boolean)],iI.prototype,"hasHeaderImageWidth_",void 0);
_.d([_.Z({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.P("design:type",Boolean)],iI.prototype,"hasLoadingMessage",void 0);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],iI.prototype,"openPopupHandler_",null);_.d([_.FV("yt-popup-closed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],iI.prototype,"closePopupHandler_",null);
_.d([_.B0("data.headerImage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iI.prototype,"onHeaderImageChanged_",null);_.d([_.B0("data.headerImageWidth"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iI.prototype,"onHeaderImageWidthChanged_",null);_.d([_.B0("data.thumbnail"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iI.prototype,"onThumbnailChanged_",null);
_.d([_.FV("yt-navigate"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],iI.prototype,"onYtNavigate_",null);_.d([_.FV("yt-img-shadow-loaded"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],iI.prototype,"onThumbnailLoaded_",null);_.d([_.FV("yt-service-request-sent"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.kd]),_.P("design:returntype")],iI.prototype,"onYtServiceRequestSent_",null);
_.d([_.FV("yt-service-request-completed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,_.Vn]),_.P("design:returntype")],iI.prototype,"onYtServiceRequestCompleted_",null);_.d([_.wM({is:"yt-confirm-dialog-renderer",noInjection:!0})],iI);var kX8;var r6Z;var ZD=function(){return _.W.apply(this,arguments)||this};
_.C(ZD,_.W);ZD.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Ur(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
ZD.prototype.computeConfirmButton_=function(S){var c={text:S.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};S.confirmNavigationEndpoint?c.navigationEndpoint=S.confirmNavigationEndpoint:S.confirmServiceEndpoint&&(c.serviceEndpoint=S.confirmServiceEndpoint);return c};
ZD.prototype.computeShowTitle_=function(S){return!(S==null||!S.title)};
_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],ZD.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ZD.prototype,"data",void 0);_.d([_.Z({computed:"computeShowTitle_(data)"}),_.P("design:type",Boolean)],ZD.prototype,"showTitle",void 0);_.d([_.wM({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],ZD);
_.k(ZD,"yt-fancy-dismissible-dialog-renderer",function(){if(r6Z===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;kX8===void 0&&(kX8=document.createElement("template"));var f=kX8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);r6Z=S}S=r6Z;return S});var ddV;var vbU;var Gd=function(){var S=_.W.apply(this,arguments)||this;S.spinnerActive=!1;return S};
_.C(Gd,_.W);Gd.prototype.created=function(){OUE(2201)};
Gd.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Gd.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Gd.prototype.onIronOverlayClosed=Gd.prototype.onIronOverlayClosed;Gd.prototype.onIronOverlayOpened=Gd.prototype.onIronOverlayOpened;_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Gd.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.LO),_.P("design:type",Object)],Gd.prototype,"tpYtIronOverlayBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],Gd.prototype,"data",void 0);_.d([_.Z(),_.P("design:type",Object)],Gd.prototype,"spinnerActive",void 0);
_.d([_.FV("iron-overlay-opened"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gd.prototype,"onIronOverlayOpened",null);_.d([_.FV("iron-overlay-closed"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Gd.prototype,"onIronOverlayClosed",null);_.d([_.wM({is:"yt-loading-renderer",disableElementRegistration:!0})],Gd);
_.k(Gd,"yt-loading-renderer",function(){if(vbU===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;ddV===void 0&&(ddV=document.createElement("template"));var f=ddV;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);vbU=S}S=vbU;return S},{mode:2});var P1E;var LFG;var Wj=function(){var S=_.W.apply(this,arguments)||this;S.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);S.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);S.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";S.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return S};
_.C(Wj,_.W);_.J=Wj.prototype;_.J.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.J.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.J.onDarkModeToggledAction=function(S){this.isDarkTheme=S};
_.J.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.J.openPopupHandler_=function(S){S.detail===this.hostElement&&this.hostElement.hidden&&_.XF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.J.onDismissButtonTap_=function(){var S;this.closeOnDismissButton_.has(((S=this.data)==null?void 0:S.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.XF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.onAcceptButtonTap_=function(){var S;this.closeOnAcceptButton_.has(((S=this.data)==null?void 0:S.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.XF(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.J.computeHasHeader_=function(S){return!!S.headerBackgroundImage};
_.J.computeLayoutStyle_=function(S){return S};
_.J.computePopupSize_=function(S){return S};
_.J.computeIconType_=function(S){return S.dialogIcon&&S.dialogIcon.iconType?S.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":S.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":S.dialogIcon.iconType:""};
_.J.computeIsLogo_=function(S){return!!S.dialogIcon&&!!S.dialogIcon.iconType&&(S.dialogIcon.iconType==="YOUTUBE_LOGO"||S.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||S.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.J.computeHasCustomLogo=function(S){return!(S==null||!S.headerForegroundImage)};
_.J.computeCustomLogo=function(S,c){if(S!=null&&S.headerForegroundImage)return S.headerForegroundImageDark?c?S.headerForegroundImageDark:S.headerForegroundImage:S.headerForegroundImage};
_.J.computeHeaderBackgroundImage=function(S,c){if(S!=null&&S.headerBackgroundImage)return c&&(S==null?0:S.headerBackgroundImageDark)?S.headerBackgroundImageDark:S.headerBackgroundImage};
_.J.shouldShowIconContainer=function(S,c){return S&&!c};
_.J.shouldShowNonYouTubeIcon=function(S,c){return!S&&!c};
_.J.getLogoImageId=function(S){var c,Q,f;return(S=(c=this.computeCustomLogo(S,this.isDarkTheme))==null?void 0:(Q=c.thumbnails)==null?void 0:(f=Q[0])==null?void 0:f.height)&&S%31===0?"custom-logo-with-padding":"custom-logo"};
Wj.prototype.openPopupHandler_=Wj.prototype.openPopupHandler_;Wj.prototype.dataChanged_=Wj.prototype.dataChanged_;_.d([_.p(_.aQ.YtRendererstamperBehavior),_.P("design:type",Object)],Wj.prototype,"ytRendererstamperBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],Wj.prototype,"ytRendererBehavior",void 0);_.d([_.Z(),_.P("design:type",Boolean)],Wj.prototype,"isDarkTheme",void 0);
_.d([_.Z({computed:"computeCustomLogo(data, isDarkTheme)"}),_.P("design:type",Object)],Wj.prototype,"customLogo",void 0);_.d([_.Z({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.P("design:type",Object)],Wj.prototype,"headerBackgroundImage",void 0);_.d([_.Z(),_.P("design:type",Object)],Wj.prototype,"data",void 0);_.d([_.Z({computed:"computeHasHeader_(data)"}),_.P("design:type",Boolean)],Wj.prototype,"hasHeader",void 0);
_.d([_.Z({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.P("design:type",Object)],Wj.prototype,"layoutStyle",void 0);_.d([_.Z({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.P("design:type",Object)],Wj.prototype,"popupSize",void 0);_.d([_.Z({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Wj.prototype,"hasLogo",void 0);
_.d([_.Z({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.P("design:type",Boolean)],Wj.prototype,"hasCustomLogo",void 0);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],Wj.prototype,"dataChanged_",null);_.d([_.FV("yt-popup-opened"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],Wj.prototype,"openPopupHandler_",null);
_.d([_.wM({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],Wj);
_.k(Wj,"yt-upsell-dialog-renderer",function(){if(LFG===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;P1E===void 0&&(P1E=document.createElement("template"));var f=P1E;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);LFG=S}S=LFG;return S},{mode:2});var Eb0=_.y_(function(S){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.B(_.K,{cond:S.title,then:function(c){return _.B("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},c)}}))},"wg"),tuB=_.y_(function(S){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.B(_.h8,{data:S.closeButton},{buttonViewModel:function(c){return _.B("div",null,_.B(_.Ze,{data:c.data}))}}))},"xg"),VuO=_.y_(function(S){var c=
S.data;
return _.B(_.ak,null,_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.B(_.K,{cond:function(){return!!c().image&&!!c().title},
then:function(){return _.B(_.RW,{data:function(){return c().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.B(_.K,{cond:function(){return c().title},
then:function(Q){return _.B("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},Q)}}),_.B(_.K,{cond:function(){return c().primaryGenre},
then:function(Q){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},Q)}}))),_.B(_.K,{cond:function(){var Q=c().description;
return Q&&Q.length<=150},
then:function(){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return c().description}))}}))},"yg"),RHU=_.y_(function(S){S=S.infoRows;
var c=_.fl().resolve(_.i3),Q=_.u("enable_displaying_ppn");return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.B(_.lW,{each:S},function(f){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.B(_.K,{cond:function(){return f.label},
then:function(U){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},U)}}),_.B(_.K,{cond:function(){return f.attributedLabel},
then:function(U){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.B(_.mw,{text:U,noPreWrap:!0}))}}),_.B(_.K,{cond:function(){return f.value},
then:function(U){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},U)}}),_.B(_.K,{cond:function(){return f.attributedValue},
then:function(U){return _.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.B(_.mw,{text:U,noPreWrap:!0}))}}))}),_.B(_.K,{cond:function(){return Q&&c.clientData.has("post_play_nonce")},
then:function(){return _.B("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.B("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},c.getData("post_play_nonce")))}}))},"zg"),y68=_.y_(function(S){var c=S.data;
return _.B("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.B(Eb0,{title:function(){return c().dialogTitle}}),_.B(VuO,{data:c}),_.B(_.K,{cond:function(){return c().infoRow},
then:function(Q){return _.B(RHU,{infoRows:Q})}}),_.B(tuB,{closeButton:function(){return c().closeButton}}))},"Ag");
y68.idomCompat=!0;_.f4(y68,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;return _.B("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.B(_.RW,{data:function(){return c().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.B("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.B("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.B(_.K,{cond:function(){var Q=c().ytLogo;return Q?Q.iconType:null},
then:function(Q){return _.B(_.C4,{icon:Q,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.B("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.B("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.B(_.mw,{text:function(){return c().title}})),_.B("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.B(_.mw,{text:function(){return c().body}})),_.B("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.B(_.mw,{text:function(){return c().verifyStateText}}))),
_.B("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.B("div",null,_.B(_.h8,{data:function(){return c().dismissButton}},{buttonViewModel:_.Ze})),_.B("div",null,_.B(_.h8,{data:function(){return c().linkParentButton}},{buttonViewModel:_.Ze})))))},"Bg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.y$}});var obE=_.y_(function(S){var c=S.data;S=_.tq(function(){return c().agreements},[]);
return _.B("installment-agreements-view-model",{class:_.n4("ytInstallmentAgreementsViewModelHost")},_.B(_.lW,{each:S},function(Q){return _.B("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.B("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.B(_.mw,{text:Q.label})),_.B("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.B(_.h8,{data:function(){return Q.openButton}},{buttonViewModel:_.Ze})))}))},"Cg");
obE.idomCompat=!0;var mdZ=_.y_(function(S){return _.B("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.B(_.mw,{text:function(){return S.data().inviteMessage}})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.B(_.mw,{text:function(){return S.data().attributedAccountSectionHeaderText}})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.B(_.h8,{data:function(){return S.data().accountAvatar}},{avatarViewModel:_.p3}),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.B(_.mw,{text:function(){return S.data().accountName}}),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.B(_.mw,{text:function(){return S.data().handle}}))),_.B(_.h8,{data:function(){return S.data().trailingButton}},{buttonViewModel:_.Ze})),_.B("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.B(_.mw,{text:function(){return S.data().termsOfService}})))},"Dg");var Sq2=_.y_(function(S){var c=_.A(_.l8(function(){var V,AZ;return((V=S.data().createPlaylistDialogFormSchema)==null?0:(AZ=V.initialValues)==null?0:AZ.title)?S.data().createPlaylistDialogFormSchema.initialValues.title:""})),Q=c.next().value,f=c.next().value;
c=_.A(_.l8(function(){S.data();return!1}));
var U=c.next().value,a=c.next().value;c=_.A(_.l8(function(){S.data();return!1}));
var X=c.next().value,z=c.next().value;c=_.A(_.l8(function(){var V,AZ;return(V=S.data().createPlaylistDialogFormSchema)==null?void 0:(AZ=V.initialValues)==null?void 0:AZ.visibility}));
var x=c.next().value,I=c.next().value;c=_.A(_.l8(function(){S.data();return!1}));
var n=c.next().value,b=c.next().value;c=_.A(_.l8(function(){var V,AZ;return(V=S.data().createPlaylistDialogFormSchema)==null?void 0:(AZ=V.initialValues)==null?void 0:AZ.isCollaborative}));
var N=c.next().value,l=c.next().value,H=_.EH("div");_.To(function(){var V=H.value.querySelector("textarea");V&&(V.value=Q())},"OCauEe");
_.wC(function(){var V;_.$kO((V=S.data().createPlaylistDialogFormSchema)==null?void 0:V.id,{onSubmit:function(){var AZ=Q();var IH=x(),Nr=N(),Hc=S.data();AZ={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:AZ,privacyStatus:IH,videoIds:Hc.videoIds,sourcePlaylistId:Hc.sourcePlaylistId,params:Nr?Hc.createPlaylistParamsCollaborationEnabled:Hc.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.fl().resolve(_.U8).resolveCommand(AZ)},
isValid:function(){return U()&&!X()&&!n()}})});
var q=function(V){if(V!==void 0&&(f(V),!U()&&V.length>0&&a(!0),U())){var AZ=uTU(S.data());if(AZ){var IH=AZ.minLength;AZ=AZ.maxLength;IH&&V.length<IH?z(!0):AZ&&V.length>AZ?z(!0):z(!1)}}},w=function(){var V=!(!N()||x()!=="PRIVATE");
b(V)},g=function(V){V!==void 0&&(I(V),w())},r=function(){if(n())return l8T(S.data())},E=function(){l(!N());
w()},v=function(){return{validate:function(V){if(U()){var AZ=uTU(S.data());
if(AZ){var IH=AZ.minLength;AZ=AZ.translations;if(IH&&V.length<IH)return AZ==null?void 0:AZ.minLengthErrorMessage}}}}},t=function(){var V=uTU(S.data()),AZ=V==null?void 0:V.maxLength,IH;
V=V==null?void 0:(IH=V.translations)==null?void 0:IH.maxLengthErrorMessage;if(AZ&&V)return{maxChars:AZ,errorMessage:V}};
return _.B("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.B("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:H},_.B(_.h8,{data:function(){return S.data().playlistTitle}},{textFormFieldViewModel:function(V){return _.B(_.aJZ,{data:V.data,
text:Q,onInput:q,validation:v,characterLimit:t})},
textFieldViewModel:function(V){return _.B(_.JS1,{data:V.data,text:Q,onInput:q,validation:v,characterLimit:t})}})),_.B("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.B(_.h8,{data:function(){return S.data().playlistVisibility}},{dropdownViewModel:function(V){return _.B(_.KAG,{data:V.data,
onSelected:g,error:r})}})),_.B(_.K,{cond:function(){return!!S.data().playlistCollaborate},
then:function(){return _.B("div",null,_.B(_.h8,{data:function(){return S.data().playlistCollaborate}},{switchListItemViewModel:function(V){return _.B(_.Bud,{data:V.data,
onTap:E})}}))}}))},"Eg");var c_8=_.y_(function(S){var c=_.tq(S.noPadding,!1),Q=function(){var U,a;return(a=(U=S.data().logo.accessibilityData)==null?void 0:U.label)!=null?a:""},f={};
return _.B("upsell-view-model",{class:_.n4("ytUpsellViewModelHost",(f.ytUpsellViewModelHostNoPadding=function(){return c()},f))},_.B("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.B(_.K,{cond:function(){return _.oi(S.data().logo)},
then:function(U){return _.B(_.RW,{data:U,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:Q})}})),_.B("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.B(_.mw,{text:function(){return S.data().title}})),_.B("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.B(_.lW,{each:function(){var U;
return(U=S.data().subtitles)!=null?U:[]},
keyBy:"INDEX"},function(U){return _.B("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.B(_.mw,{text:U}))})),_.B("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.B(_.lW,{each:function(){var U;
return(U=S.data().benefitInfos)!=null?U:[]},
keyBy:"INDEX"},function(U){return _.B(_.K,{cond:function(){return U().info},
then:function(a){return _.B("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.B(_.C4,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.B(_.mw,{text:a}))}})})),_.B("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.B(_.lW,{each:function(){var U;
return(U=S.data().legalInfos)!=null?U:[]},
keyBy:"INDEX"},function(U){return _.B("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.B(_.mw,{text:U}))})))},"Fg");var Q3B=_.y_(function(S){var c=S.data;S={};S=(S.ytMiniAppScoreChallengeViewModelScoreRadial=!0,S.ytMiniAppScoreChallengeViewModelDarkScoreRadial=Ymg(),S);return _.B("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.B("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return c().title}),_.B("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return c().subtitle}),_.B("div",{class:_.No(S)},_.B("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return c().score})),_.B("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return c().prompt}))},"Gg");var fsZ=function(){this.store=_.P0();this.formId=""};var UzE=_.y_(function(S){function c(z){if(z&&(z=_.Y(z,_.$a)))return Object.assign({},z,{isSelected:a()})}
var Q=_.A(_.l8(function(){var z,x;return(x=(z=_.Y(S.data().option,_.$a))==null?void 0:z.isSelected)!=null?x:!1})),f=Q.next().value,U=Q.next().value,a=f;
_.wC(function(){var z;_.$kO((z=S.data().formSchema)==null?void 0:z.id,{onSubmit:function(){var x=_.fl().resolve(_.U8),I=!!S.data().selectedCommand,n=!!S.data().unselectedCommand;if(a()){if(I)var b=S.data().selectedCommand}else n&&(b=S.data().unselectedCommand);b=_.Gv(b);c(S.data().option)&&!b?(x="",!I&&n?x="selected ":I&&!n&&(x="unselected "),I=new _.Yr("No "+x+"command found for SelectionListItemFormViewModel"),_.sH(I)):b&&x.resolveCommand(b)},
isValid:function(){return!0}})});
var X=function(){U(!a())};
_.wX(function(){var z,x,I=(z=S.data())==null?void 0:(x=z.formSchema)==null?void 0:x.id;I&&_.NbO()().delete(I)});
return _.B("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.B("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.B(_.mw,{text:function(){return S.data().paragraph}})),_.B(_.K,{cond:function(){return c(S.data().option)},
then:function(z){return _.B(_.hQ,{data:z,isCompact:!0,hideSelectionTextChevron:!0,onTap:X,disableHorizontalPadding:!0})}}))},"Hg");var J_0=_.y_(function(S){var c=S.data;var Q=S.disablePadding;var f=S.className;var U=_.EH("yt-dialog-header-view-model"),a=function(){var z=c().imageBanner;a:switch(c().assetContainerPaddingStyle){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":var x="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";break a;default:x="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:z,style:x,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},X=function(){return c().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.wC(function(){var z=function(){_.XF(U.value,"yt-refit-popups-action")},x;
(x=U.value)==null||x.addEventListener("image-loaded",z);_.wX(function(){var I;(I=U.value)==null||I.removeEventListener("image-loaded",z)})});
S={};return _.B("yt-dialog-header-view-model",{el:U,class:_.n4(f,(S.ytDialogHeaderViewModelHost=!0,S.ytDialogHeaderViewModelHostDisablePadding=Q,S))},_.B(_.K,{cond:function(){return c().imageBanner},
then:function(){var z={};return _.B("div",{class:_.n4(f,(z.ytDialogHeaderViewModelBanner=!0,z.ytDialogHeaderViewModelBannerFullBleed=X,z)),style:_.Yd({"max-height":function(){return c().assetContainerMaxHeight!==void 0?c().assetContainerMaxHeight+"px":void 0}})},_.B(_.cM,{data:a,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.B(_.K,{cond:function(){return c().headerBlock},
then:function(){return _.B("div",{class:"ytDialogHeaderViewModelHeaderBlock"},_.B(_.h8,{data:function(){return c().headerBlock}},{contentPreviewImageViewModel:function(z){return _.B(_.cM,{data:z.data,
notifyOnLoaded:!0})}}))}}),_.B(_.K,{cond:function(){return c().customAssetContainer},
then:function(z){return _.B("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.B(_.h8,{data:z},{avatarStackViewModel:_.qn}))}}),_.B(_.K,{cond:function(){return c().customBanner},
then:function(z){return _.B("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.B(_.h8,{data:z},{avatarStackViewModel:_.qn}))}}),_.B(_.K,{cond:function(){return c().headline},
then:function(z){return _.B("h2",null,_.B(_.mw,{text:z,className:"ytDialogHeaderViewModelText"}))}}))},"Ig");
J_0.idomCompat=!0;var as8=_.y_(function(S){var c=_.u4O(function(){return S.data().formId}),Q=c.onSubmit,f=c.isValid;
return _.B("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.B(_.h8,{data:function(){return S.data().panelFooter}},{panelFooterViewModel:function(U){return _.B(_.e3,{data:U.data,
disablePadding:!0,disablePrimaryButton:function(){return!f()},
onClickPrimaryButton:function(){Q()}})}}))},"Jg");var A_1=_.y_(function(S){var c=function(){var Q,f;return(f=(Q=_.Y(S.data().rendererContext,_.jT))==null?void 0:Q.label)!=null?f:""};
return _.B("yt-dialog-image-content-view-model",{class:_.n4("ytDialogImageContentViewModelHost",S.className)},_.B(_.K,{cond:function(){return _.oi(S.data().image)},
then:function(Q){return _.B(_.RW,{data:Q,alt:c,className:"ytDialogImageContentViewModelImage",contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT"})}}),_.B(_.mw,{text:function(){return S.data().description},
className:"ytDialogImageContentViewModelDescription"}))},"Kg");var zw2=_.y_(function(S){var c=_.V_(S,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),Q=c.elRefCallback;S=c.iconWiz;var f=c.assetWiz,U=c.assetType,a=c.titleWiz,X=c.leadingActionHeaderWiz,z=c.trailingActionHeaderWiz,x=c.headerPosition,I=c.contentWiz,n=c.buttonLayout,b=c.buttonStyle,N=c.primaryButtonWiz,l=c.secondaryButtonWiz,H=c.contentAlignment,q=c.isFullscreen,w=c.width,g=c.maxHeight,r=c.isHeaderWizDefined,
E=c.headerWiz,v=c.isFooterWizDefined,t=c.footerWiz;c=_.EH("dialog-layout",function(ex){Q==null||Q(ex)});
var V=f?function(){return f({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,AZ=N?function(){var ex={};
return N({buttonOverrides:function(){return{style:(b==null?void 0:b())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.n4((ex["yt-spec-dialog-layout__dialog-layout-button"]=!0,ex["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},ex))})}:void 0,IH=l?function(){var ex={};
return l({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.n4((ex["yt-spec-dialog-layout__dialog-layout-button"]=!0,ex["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(n==null?void 0:n())===0||(n==null?void 0:n())===2},ex))})}:void 0,Nr=function(){return(!!a||!!X||!!z)&&x()===0},Hc={},qr={},wp={},Pc={};
return _.B("dialog-layout",{el:c,class:_.n4((Hc["yt-spec-dialog-layout"]=!0,Hc["yt-spec-dialog-layout--dialog-layout-fullscreen"]=q,Hc["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!q()},Hc["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return g()===1},Hc["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(U==null?void 0:U())===1},Hc)),
style:function(){return(w==null?void 0:w())!==void 0?"width: "+w+"px;":""}},S?_.B("div",{class:_.n4((qr["yt-spec-dialog-layout__dialog-layout-icon"]=!0,qr["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!f&&x()===1},qr["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return H()===1},qr))},_.B(S,null)):null,_.B(_.K,{cond:r,
then:function(){return E?_.B("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.B(E,null)):null},
else:function(){return _.B(_.ak,null,_.B(_.K,{cond:Nr,then:function(){return _.B(XwN,{contentAlignment:H,LeadingActionHeader:X,TrailingActionHeader:z,Title:a,isAboveAsset:!!V})}}),V?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.B(V,null)):null)}}),_.B("div",{class:_.n4((wp["yt-spec-dialog-layout__dialog-layout-container"]=!0,wp["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(H==null?void 0:H())===1},wp["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!a&&!E||!!V&&(x==null?void 0:x())===0},wp))},_.B(_.K,{cond:function(){return a&&!E&&(x==null?void 0:x())===1},
then:function(){return _.B(XwN,{contentAlignment:H,LeadingActionHeader:X,TrailingActionHeader:z,Title:a,isAboveAsset:!1})}}),I?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.B(I,null))):null,_.B(_.K,{cond:v,
then:function(){return t?_.B("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.B(t,null)):null}}),AZ||IH?_.B(Og0,{footerClasses:_.n4((Pc["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,Pc["yt-spec-dialog-layout__dialog-layout-footer"]=!0,Pc["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(n==null?void 0:n())===2},Pc["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(n==null?void 0:n())===1},Pc)),
PrimaryButton:AZ,SecondaryButton:IH}):null))},"Lg"),XwN=_.y_(function(S){var c=_.V_(S,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),Q=c.contentAlignment,f=c.LeadingActionHeader;S=c.Title;var U=c.TrailingActionHeader,a=c.isAboveAsset,X=c.enableLeadingActionHeader;c={};return _.B("div",{class:_.n4((c["yt-spec-dialog-layout__dialog-header-container"]=!0,c["yt-spec-dialog-layout__dialog-header"]=!0,c["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=a,c["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(Q==null?void 0:Q())===1&&X()},c))},_.B(_.K,{cond:function(){return X()},
then:function(){return f?_.B("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.B(f,null)):null}}),S?_.B("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.B(S,null)):null,U?_.B("div",null,_.B(U,null)):null)},"Mg"),Og0=_.y_(function(S){var c=S.footerClasses;
var Q=S.PrimaryButton;S=S.SecondaryButton;return _.B("div",{class:c},S?_.B(S,null):null,Q?_.B(Q,null):null)},"Ng");var xz1=_.y_(function(S){var c=S.data;return _.B("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.B("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.B(_.h8,{data:function(){return c().avatar}},{avatarViewModel:_.p3})),_.B("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.B(_.mw,{text:function(){return c().title}})),_.B(_.mw,{text:function(){return c().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"Og");var Fip=_.y_(function(S){var c=S.data;return _.B("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.B("div",{class:"ytAccessConfirmationViewModelContent"},_.B(_.h8,{data:function(){return c().dualAvatar}},{dualAvatarViewModel:function(Q){return _.B(_.vEh,{data:Q.data,
className:"ytAccessConfirmationViewModelAvatar"})}}),_.B("h2",{class:"ytAccessConfirmationViewModelTitle"},_.B(_.mw,{text:function(){return c().title}})),_.B(_.mw,{text:function(){return c().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"Pg");var BtG=_.y_(function(S){var c=S.data;var Q=void 0;S=_.A(_.l8(function(){var I;return((I=_.Y(c().content,_.MtB))==null?void 0:I.defaultSelectedKey)||""}));
var f=S.next().value,U=S.next().value,a,X=function(){U("");var I;(I=Q)!=null&&I.store.dispatch(_.aB({type:"RESET_COMMAND_MAP"}))};
_.wC(function(){Q=new fsZ;window.addEventListener("yt-popup-closed",X)});
_.To(function(){if(Q&&a!==c().formId){var I=Q,n=c();n.formId&&(I.formId=n.formId,I.store.dispatch(_.aB({type:"SET_CURRENT_FORM_ID",payload:{formId:I.formId}})));(a=c().formId)&&f()&&(I=Q,n={key:f()},n.command&&I.store.dispatch(zD8(a,n.command)))}},"k6b6Qe");
_.wX(function(){window.removeEventListener("yt-popup-closed",X)});
var z=function(I,n,b){n.key&&b&&n.key!==f()&&(U(n.key),Q&&n.command&&Q.store.dispatch(zD8(b,n.command)))},x=function(){if(_.Y(c().content,_.MtB))return!(f==null?0:f())};
return _.B("yt-dialog-view-model",{class:_.n4("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.B(zw2,{headerWiz:function(){return _.B("span",{skip:!0},_.B(_.h8,{data:function(){return c().header}},{dialogHeaderViewModel:function(I){return _.B(J_0,{data:I.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!c().header},
contentWiz:function(){return _.B("span",{skip:!0},_.B(_.h8,{data:function(){return c().customContent?c().customContent:c().content}},{basicContentViewModel:_.pc1,
createPlaylistDialogFormViewModel:Sq2,collaborativePlaylistInviteMessageViewModel:mdZ,miniAppScoreChallengeViewModel:Q3B,radioButtonGroupViewModel:function(I){var n=I.data;return _.B(_.nCZ,{data:n,selectedKey:f,onSelected:z,groupName:function(){return n().formId}})},
selectionListItemFormViewModel:UzE,upsellViewModel:function(I){return _.B(c_8,{data:I.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:xz1,installmentAgreementsViewModel:obE,accessConfirmationViewModel:Fip,listViewModel:function(I){return _.B(_.jUz,{data:I.data,disableHorizontalPadding:!0})},
dialogImageContentViewModel:A_1}))},
footerWiz:function(){return _.B("span",{skip:!0},_.B(_.h8,{data:function(){return c().footer}},{panelFooterViewModel:function(I){return _.B(_.e3,{data:I.data,
disablePadding:!0,disablePrimaryButton:x})},
formPanelFooterViewModel:as8,formFooterViewModel:function(I){return _.B(_.QkO,{data:I.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!c().footer}}))},"Qg");
BtG.idomCompat=!0;_.f4(BtG,"yt-dialog-view-model",{props:{data:_.y$},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var Is1=_.y_(function(S){var c=S.data;S={};return _.B("yt-panel-header-view-model",{class:_.n4("yt-panel-header-view-model-wiz",(S["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!c().shouldHideDivider},S["yt-panel-header-view-model-wiz--compact"]=function(){return!!c().subtitle},S))},_.B("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.B(_.K,{cond:function(){return c().title},
then:function(Q){return _.B(_.mw,{text:Q,className:"yt-panel-header-view-model-wiz__title"})}}),_.B(_.K,{cond:function(){return c().subtitle},
then:function(Q){return _.B(_.mw,{text:Q,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.B("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.B(_.h8,{data:function(){return c().trailingButtons}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"Rg");
Is1.idomCompat=!0;var nIN=_.y_(function(S){var c=_.$d(function(a){var X;if((X=S.skipContentClick)==null?0:X.call(S))return!1;S.onContentWrapperClick(a);return!0}),Q,f,U;
return _.B("div",{class:_.n4("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return S.isAnimating()?"transform: translateY("+S.currentY()+"px);transition: 0.2s":""}},(Q=S.header)==null?void 0:Q.call(S),_.B("div",{id:S.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.Yd({"max-height":(0,_.Du)(S.maxHeightForContentWrapper)}),"on:scroll":pqT(S.onScroll),"on:touchmove":pqT(function(a){return void a.stopPropagation()})},_.B("div",{el:{onRender:S.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":c},(f=S.body)==null?void 0:f.call(S))),(U=S.footer)==null?void 0:U.call(S))},"Sg");
nIN.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var bgG=_.y_(function(S){var c=_.tq(S.leadingLabel),Q=_.tq(S.trailingLabel),f=_.tq(S.footerButtonType),U=function(){return c()||Q()||S.hasPrimaryButton()||S.hasSecondaryButton()},a={},X=_.n4("yt-spec-bottom-sheet-layout__primary-button",(a["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return f()===0&&S.hasPrimaryButton()},a["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return f()===1&&S.hasPrimaryButton()},a["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return f()===2&&S.hasPrimaryButton()},a["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return f()===3&&S.hasPrimaryButton()},a));
a={};var z=_.n4("yt-spec-bottom-sheet-layout__secondary-button",(a["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return f()===1&&S.hasSecondaryButton()},a["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return f()===2&&S.hasSecondaryButton()},a["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return f()===3&&S.hasPrimaryButton()},a));
return _.B(_.K,{cond:S.hasFooterOverride,then:function(){var x;return _.B(_.ak,null,(x=S.footerOverride)==null?void 0:x.call(S))},
else:function(){return _.B(_.K,{cond:U,then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.B(_.K,{cond:function(){return c()||Q()},
then:function(){var x={};return _.B("div",{class:_.n4("yt-spec-bottom-sheet-layout__footer-label-wrapper",(x["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!S.hasPrimaryButton()},x))},_.B(_.K,{cond:c,
then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},c)}}),_.B(_.K,{cond:Q,
then:function(){return _.B("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},Q)}}))}}),_.B(_.K,{cond:function(){return S.hasPrimaryButton()||S.hasSecondaryButton()},
then:function(){var x={};return _.B("div",{class:_.n4("yt-spec-bottom-sheet-layout__footer-button-wrapper",(x["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.Y0z,x))},_.B(_.K,{cond:function(){return S.hasSecondaryButton()&&f()!==0},
then:function(){var I;return _.B("div",{class:z},(I=S.secondaryButton)==null?void 0:I.call(S))}}),_.B(_.K,{cond:S.hasPrimaryButton,
then:function(){var I;return _.B("div",{class:X},(I=S.primaryButton)==null?void 0:I.call(S))}}))}}))}})}})},"Tg");
bgG.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var Nt2=_.y_(function(S){var c=_.tq(S.title),Q=_.tq(S.subtitle);return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:S.headerId,"on:touchstart":_.$d(function(f){var U;(U=S.touchstart)==null||U.call(S,f);return!1}),
"on:touchmove":_.$d(function(f){var U;(U=S.touchmove)==null||U.call(S,f);return!1}),
"on:touchend":_.$d(function(f){var U;(U=S.touchend)==null||U.call(S,f);return!1})},_.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.B(_.K,{cond:S.hasHeaderOverride,
then:function(){var f;return _.B(_.ak,null,(f=S.headerOverride)==null?void 0:f.call(S))},
else:function(){var f={};return _.B("div",{class:_.n4((f["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,f["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=c,f))},_.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.B(_.K,{cond:c,then:function(){return _.B(_.ak,null,_.B("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},c),_.B(_.K,{cond:Q,then:function(){return _.B("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
Q)}}))}})),_.B(_.K,{cond:function(){return c()&&S.hasActionHeader()},
then:function(){var U;return _.B("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(U=S.actionHeader)==null?void 0:U.call(S))}}))}}))},"Ug");
Nt2.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.y_(function(S){function c(V){if(!g&&typeof MutationObserver!=="undefined"){var AZ={childList:!0};"MutationObserver"in window&&(g=new MutationObserver(Q.bind(void 0,V)),g.observe(V,AZ))}}
function Q(V){typeof g!=="undefined"&&(r["content-wrapper"]===void 0&&(r["content-wrapper"]=V.children[0].clientHeight),l(r["content-wrapper"]),N()>H()||q(N()))}
function f(){b(window.innerHeight);N()>H()||q(N());E.isFullScreen[0]()&&N()>H()?v().dispatch("Snap To Full Screen",{maxHeight:w()}):v().dispatch("Snap To Neutral Position",{maxHeight:H()})}
function U(V){document.body.style.overscrollBehavior="none";V.preventDefault();v().dispatch("Touch Start",{event:V})}
function a(V){V.preventDefault();v().dispatch("Touch Move",{event:V,contentScrollable:N()>H(),fullContentWrapperHeight:w(),contentWrapperHeight:H(),contentHeightMap:r,contentWrapperId:"content-wrapper",header:qmp(S),footer:qmp(S)})}
function X(){document.body.style.overscrollBehavior="";E.isFullScreen[0]()?E.currentY[0]()>=60?v().dispatch("Snap To Neutral Position",{maxHeight:H()}):v().dispatch("Snap To Full Screen",{maxHeight:w()}):E.currentY[0]()>=60?z():E.currentY[0]()<=-60&&N()>H()?v().dispatch("Snap To Full Screen",{maxHeight:w()}):v().dispatch("Snap To Neutral Position",{maxHeight:H()})}
function z(){v().dispatch("Close Sheet",{clientHeight:n(),maxHeight:0});setTimeout(function(){hr0()},250)}
var x=_.A(_.ny(window.innerHeight,void 0,"NWeFS")),I=x.next().value;x=x.next().value;var n=I,b=x;x=_.A(_.ny(0,void 0,"oxfm4"));I=x.next().value;x=x.next().value;var N=I,l=x;x=_.A(_.l8(function(){var V=qmp(S);return.6*n()-CZE(V)-HKU(V)}));
I=x.next().value;x=x.next().value;var H=I,q=x,w=function(){var V=qmp(S);return n()-CZE(V)-HKU(V)-24-24},g=null,r={},E={initialY:_.ny(0,void 0,"cYBE5c"),
currentY:_.ny(0,void 0,"RndqHc"),isAnimating:_.ny(!1,void 0,"vO9DVd"),isFullScreen:_.ny(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.l8(H)},v=function(){var V=null;return function(){if(!V){var AZ={initialY:E.initialY[0](),currentY:E.currentY[0](),isAnimating:E.isAnimating[0](),isFullScreen:E.isFullScreen[0](),maxHeightForContentWrapper:E.maxHeightForContentWrapper[0]()};V=DOG(AZ)}return V}}();
_.wC(function(){window.addEventListener("resize",f);v().subscribe(function(V){E.initialY[1](V.initialY);E.currentY[1](V.currentY);E.isAnimating[1](V.isAnimating);E.isFullScreen[1](V.isFullScreen);E.maxHeightForContentWrapper[1](V.maxHeightForContentWrapper)})});
_.wX(function(){window.removeEventListener("resize",f);g&&(g.disconnect(),g=null)});
var t=_.n4({"bottom-sheet-content-without-icon":function(){var V;return!((V=S.shouldShowIcons)==null?0:V.call(S))}});
return _.B("bottom-sheet-layout",null,_.B(nIN,{contentWrapperId:"content-wrapper",isAnimating:function(){return E.isAnimating[0]()},
currentY:function(){return E.currentY[0]()},
maxHeightForContentWrapper:function(){return E.maxHeightForContentWrapper[0]()},
shouldShowIcons:S.shouldShowIcons,skipContentClick:S.skipContentClick,onScroll:function(){var V=document.getElementById("header-wrapper"),AZ=document.getElementById("content-wrapper");if(V&&AZ){var IH={};IH=(IH["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,IH["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,IH);V.className=AZ.scrollTop>1?_.No(IH):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:hr0,contentWrapperEl:function(V){c(V);requestAnimationFrame(function(){Q(V)})},
header:function(){return _.B(Nt2,{touchstart:U,touchmove:a,touchend:X,title:S.headerTitle,subtitle:S.headerSubtitle,headerId:"header-wrapper",headerOverride:S.headerFn,hasHeaderOverride:S.hasHeaderFn,actionHeader:S.headerActionHeader,hasActionHeader:S.hasHeaderActionHeader})},
footer:function(){return _.B(bgG,{footerButtonType:S.footerButtonType,leadingLabel:S.footerLeadingLabel,trailingLabel:S.footerTrailingLabel,primaryButton:S.footerPrimaryButton,hasPrimaryButton:S.hasFooterPrimaryButton,secondaryButton:S.footerSecondaryButton,hasSecondaryButton:S.hasFooterSecondaryButton,footerOverride:S.footerFn,hasFooterOverride:S.hasFooterFn})},
body:function(){return _.B(_.K,{cond:S.hasContentFn,then:function(){var V;return _.B("div",{class:t},(V=S.contentFn)==null?void 0:V.call(S))}})}}))},"Vg").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var Kip=_.y_(function(S){var c=_.fl().resolve(_.CE);return _.B("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":_.$d(function(){return void c.closeSheet()})},_.B(_.K,{cond:function(){return!!S.header},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},S.header())}}),_.B(_.K,{cond:function(){return!!S.content},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},S.content())}}),_.B(_.K,{cond:function(){return!!S.footer},
then:function(){return _.B("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},S.footer())}}))},"Wg");
Kip.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var $z0=_.y_(function(S){S=S.data;var c=_.EH("yt-sheet-view-model",function(f){if(_.u("web_focus_first_element_sheet"))return f.addEventListener("focus",function(){jTV(f)}),function(){f.removeEventListener("focus",function(){jTV(f)})}}),Q={};
return _.B("yt-sheet-view-model",{class:_.n4("yt-sheet-view-model-wiz",(Q["yt-sheet-view-model-wiz--contextual"]=!0,Q["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.u("web_disable_backdrop_filter"),Q)),el:c,tabindex:-1},_.B(_.K,{cond:S,then:function(f){return _.B(Kip,{header:function(){return _.B(_.h8,{data:function(){return f().header}},{panelHeaderViewModel:Is1})},
content:function(){return _.B(_.h8,{data:function(){return f().content}},{listViewModel:function(U){return _.B(_.jUz,{data:U.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:c_8,miniAppScoreChallengeViewModel:Q3B})},
footer:function(){return _.B(_.h8,{data:function(){return f().footer}},{panelFooterViewModel:_.e3})}})}}))},"Xg");
$z0.idomCompat=!0;_.f4($z0,"yt-sheet-view-model",{props:{data:_.y$}});var j31=_.y_(function(S){var c=function(){var Q;return(Q=S.data().enableDebuggingFeatures)!=null?Q:!1};
return _.B("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.B(_.lW,{each:function(){var Q;return(Q=S.data().stickers)!=null?Q:[]}},function(Q){return _.B(uR1,{data:function(){return Q},
debugMode:c})}))},"Yg"),uR1=_.y_(function(S){var c=_.V_(S,{debugMode:!1}).debugMode,Q=_.tq(function(){var x;
return(x=S.data().region)==null?void 0:x.w},0),f=_.tq(function(){var x;
return(x=S.data().region)==null?void 0:x.h},0),U=_.tq(function(){var x;
return(x=S.data().region)==null?void 0:x.x},0),a=_.tq(function(){var x;
return(x=S.data().region)==null?void 0:x.y},0),X=_.$d(function(){var x=S.data().onTap;
x&&_.kz(x)}),z={};
return _.B("div",{class:_.n4("ytStoriesStickerLayerViewModelSticker",(z.ytStoriesStickerLayerViewModelDebugMode=c,z)),style:_.Yd({width:function(){return 100*Q()+"%"},
height:function(){return 100*f()+"%"},
left:function(){return 100*U()+"%"},
top:function(){return 100*a()+"%"},
"flex-direction":function(){return TPN(S.data().flexDirection)},
"justify-content":function(){return wqE(S.data().justifyContent)},
"align-items":function(){return sBE(S.data().alignItems)}}),
"on:click":X},_.B(_.h8,{data:function(){return S.data().button||S.data().toggleButton}},{buttonViewModel:function(x){return _.B(_.Ze,{data:x.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(x){return _.B(_.qs,{data:x.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Zg");var Yqp=_.y_(function(S){var c=function(){return S.data()},Q={},f=_.tq(function(){return c().backgroundColor},0),U=_.tq(function(){return c().actionButtons},[]),a=_.tq(function(){return c().stickerLayer},{}),X=function(){var x,I;
return{animationRef:Q,animationConfig:{autoplay:!1,loop:!1,path:(I=(x=c().foregroundAnimation)==null?void 0:x.url)!=null?I:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){S.navigateToNextItemOnLottieComplete()}}}},z=function(){var x,I,n,b,N,l,H,q;
return{animationConfig:{autoplay:(l=(x=c().backgroundAnimation)==null?void 0:(I=x.settings)==null?void 0:I.autoplay)!=null?l:!1,loop:(H=(n=c().backgroundAnimation)==null?void 0:(b=n.settings)==null?void 0:b.loop)!=null?H:!1,path:(q=(N=c().backgroundAnimation)==null?void 0:N.url)!=null?q:"",name:"stories_item_background_animation"}}};
_.To(function(){if(S.isVisible()){var x;(x=Q.lottieEl)==null||x.play();S.animationRef()&&(S.animationRef().lottieEl=Q.lottieEl)}else{var I;(I=Q.lottieEl)==null||I.stop()}},"Cbnkwd");
return _.B("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.Yd({"background-color":function(){return _.gh(f())+";"}})},_.B("div",{class:"ytStoriesItemViewModelAssetContent"},_.B(_.K,{cond:function(){return!!c().backgroundAnimation},
then:function(){return _.B(_.b8,{data:z,animationName:function(){return z().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.B(_.K,{cond:function(){return!!c().backgroundImage},
then:function(){return _.B(_.RW,{data:function(){return c().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.B(_.K,{cond:function(){return!!c().foregroundAnimation},
then:function(){return _.B(_.b8,{data:X,animationName:function(){return X().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.B(_.K,{cond:function(){return!!c().foregroundImage},
then:function(){return _.B(_.RW,{data:function(){return c().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.B("div",{class:"ytStoriesItemViewModelTopShadow"}),_.B(_.h8,{data:function(){return a()}},{storiesStickerLayerViewModel:j31})),_.B("div",{class:"ytStoriesItemViewModelBottomShadow",
style:_.Yd({"background-color":function(){return _.gh(f())}})},_.B("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.$d(S.pauseAutoNavigation)},_.B(_.lW,{each:U},function(x){return _.B(lsT,{data:function(){return x}})}))))},"$g"),CkE={style:"overlay",
type:"outline"},lsT=_.y_(function(S){var c={};return _.B("div",{class:_.n4("ytStoriesItemViewModelActionButton",(c.ytStoriesItemViewModelStretchedActionButton=function(){return S.data().size==="STORIES_BUTTON_SIZE_STRETCH"},c))},_.B(_.h8,{data:function(){return S.data().button}},{buttonViewModel:function(Q){return _.B(_.Ze,{data:Q.data,
className:"ytStoriesItemViewModelButton",buttonOverrides:CkE})}}))},"ah");_.f4(_.y_(function(S){var c=function(){var AZ;return(AZ=S.data().startIndex)!=null?AZ:0},Q=_.A(_.l8(c)),f=Q.next().value,U=Q.next().value;
Q=_.A(_.ny(!1,void 0,"O8yPf"));var a=Q.next().value,X=Q.next().value,z=function(){var AZ;return(AZ=S.data().storyItems)!=null?AZ:[]},x={},I=function(){return S.data().dismissButton},n=function(){var AZ;
return _.Y((AZ=_.Y(I(),_.Ya))==null?void 0:AZ.onTap,_.Zc)},b=_.EH("div"),N,l,H=!1,q=function(){var AZ;
(AZ=N)==null||AZ.cancel();N=w(f()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});N.onfinish=function(){w(f()).style.width="100%";var IH=_.Y(z()[f()],D9Z),Nr,Hc;IH!=null&&IH.foregroundAnimation&&((IH==null?0:(Nr=IH.foregroundAnimation)==null?0:Nr.url)||(IH==null?0:(Hc=IH.foregroundAnimation)==null?0:Hc.payload))||(f()!==z().length-1?(U(f()+1),q()):n()&&_.WI(n()))}},w=function(AZ){return b.value.children[AZ].children[0]},g=function(){for(var AZ=0;AZ<f();AZ++)w(AZ).style.width=
"100%"};
Q=_.$d(function(){H||(a()?X(!1):(f()===z().length-1&&n()&&_.WI(n()),w(f()).style.width="100%",f()!==z().length-1&&(U(f()+1),q())))});
var r=_.$d(function(){H||(a()?X(!1):(w(f()).style.width="0%",f()!==0?U(f()-1):U(f()),q()))}),E=function(){X(!0)},v=function(){w(f()).style.width="100%";
f()!==z().length-1?(U(f()+1),q()):n()&&_.WI(n())},t=_.$d(function(){H=!1;
l=setTimeout(function(){X(!0);H=!0},300)}),V=_.$d(function(){clearTimeout(l);
H&&a()&&X(!1)});
_.To(function(){if(a()){var AZ;(AZ=N)==null||AZ.pause();var IH;(IH=x.lottieEl)==null||IH.pause()}else{var Nr;(Nr=N)==null||Nr.play();var Hc;(Hc=x.lottieEl)==null||Hc.play()}},"DIHTEd");
_.To(function(){g();f()===c()&&q()},"ze5F8b");
_.wC(function(){g();q()});
_.wX(function(){clearTimeout(l)});
return _.B("yt-stories-viewer-view-model",{class:_.n4("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.B("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.B("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":r,"on:mousedown":t,"on:mouseup":V,"on:mouseleave":V}),_.B("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":Q,"on:mousedown":t,"on:mouseup":V,"on:mouseleave":V})),_.B(_.h8,{data:z},{storiesItemViewModel:function(AZ,
IH){var Nr=AZ.data;return _.B(_.K,{cond:function(){return Math.abs(IH()-f())<=1},
then:function(){var Hc={};return _.B("div",{class:_.n4("ytStoriesViewerViewModelStoryItem",(Hc.ytStoriesViewerViewModelHiddenStoryItem=function(){return IH()!==f()},Hc))},_.B(Yqp,{data:Nr,
pauseAutoNavigation:E,navigateToNextItemOnLottieComplete:v,isVisible:function(){return IH()===f()},
animationRef:x}))}})}}),_.B("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:b},_.B(_.lW,{each:z},function(){return _.B("div",{class:"ytStoriesViewerViewModelProgressBar"},_.B("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.B("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.B(_.h8,{data:I},{buttonViewModel:_.Ze})))},"bh"),"yt-stories-viewer-view-model",{props:{data:_.y$}});_.f4(_.y_(function(S){var c=S.data;var Q=_.EH("yt-gen-ai-feedback-form-view-model"),f=[];return _.B("yt-gen-ai-feedback-form-view-model",{el:Q,class:"ytGenAiFeedbackFormViewModelHost"},_.B(_.mw,{text:function(){return c().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.B("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.B(_.h8,{data:function(){return c().feedbackChips}},{toggleButtonViewModel:function(U){var a=U.data;
return _.B(_.qs,{data:a,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(X){var z=a();z=_.Y(z,_.CS);z=_.Y(z==null?void 0:z.defaultButtonViewModel,_.Ya).trackingParams;X?f.push(z):(X=f.indexOf(z),X>-1&&f.splice(X,1))}})}})),_.B(_.mw,{text:function(){return c().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.B("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.B(_.h8,{data:function(){return c().submitButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){MDp(Q.value,f,c().uniqueId)}})}}),_.B(_.h8,{data:function(){return c().moreFeedbackButton}},{buttonViewModel:function(U){return _.B(_.Ze,{data:U.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"ch"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.y$},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var gu=function(){return _.W.apply(this,arguments)||this};
_.C(gu,_.W);gu.prototype.created=function(){OUE(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(LnG);var S=_.fl().resolve(_.AZ8);S&&(S.container=this.ytPopupContainerBehavior);if(S=_.fl().resolve(_.CE))S.container=this.ytPopupContainerBehavior;if(S=_.fl().resolve(_.Hu)){var c=this.ytPopupContainerBehavior;S.containerWasInjected?_.i5(Error("ej")):S.container=c}};
gu.prototype.ensurePopupBelowPlayer=function(S,c){var Q=_.fl().resolve(_.QS(_.oZ));if(!Q||!Q.isOnWatch()||!_.S9())return!1;Q=Q.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.jm().height>Q+this.getPopupHeight(S,c)?(S.style.top="auto",S.style.bottom="0px"):(S.style.top=Q+"px",S.style.bottom="auto");return!0};
gu.prototype.getPopupHeight=function(S,c){c&&(S.cachedPopupHeight=0);if(!S.cachedPopupHeight){c=0;var Q=S.clientHeight,f=window.getComputedStyle(S);c+=parseInt(f.marginTop,10);c+=parseInt(f.marginBottom,10);S.cachedPopupHeight=Q+c}return S.cachedPopupHeight};
gu.prototype.getElement=function(S){return document.createElement(S)};
_.d([_.p(ngE.YtPopupContainerBehavior),_.P("design:type",Object)],gu.prototype,"ytPopupContainerBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],gu.prototype,"ytComponentBehavior",void 0);_.d([_.e({disableElementRegistration:!0,is:"ytd-popup-container"})],gu);
_.k(gu,"ytd-popup-container",function(){if(aYE!==void 0)return aYE;var S=document.createElement("template");_.D(S,"\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");S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);return aYE=S},{mode:1});var Hg8;var DzB={};DzB.YtLogYpcFlowCommandsBehavior=[_.AN.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(S){_.Y(S,Pc1)&&(S=_.Y(S,Pc1))&&(S.serializedTransactionFlowLoggingParams?_.Hso(S.serializedTransactionFlowLoggingParams):S.serializedYpcCancelFlowLoggingParams?(S=S.serializedYpcCancelFlowLoggingParams)&&_.wg("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",S):S.serializedYpcResumeFlowLoggingParams?(S=S.serializedYpcResumeFlowLoggingParams)&&_.wg("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",S):S.serializedYpcPauseFlowLoggingParams?(S=S.serializedYpcPauseFlowLoggingParams)&&
_.wg("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",S):S.serializedYpcRefundFlowLoggingParams?(S=S.serializedYpcRefundFlowLoggingParams)&&oME("YPC_EVENT_TYPE_START",S):S.serializedYpcDeactivateFlowLoggingParams?(S=S.serializedYpcDeactivateFlowLoggingParams)&&_.wg("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",S):S.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(S=S.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.wg("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",S))},
handleLogYpcFlowDismiss_:function(S){_.Y(S,v1V)&&(S=_.Y(S,v1V),S.serializedTransactionFlowLoggingParams?_.D3Z(S.serializedTransactionFlowLoggingParams):S.serializedYpcCancelFlowLoggingParams?(S=S.serializedYpcCancelFlowLoggingParams)&&_.wg("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",S):S.serializedYpcResumeFlowLoggingParams?(S=S.serializedYpcResumeFlowLoggingParams)&&_.wg("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",S):S.serializedYpcPauseFlowLoggingParams?(S=
S.serializedYpcPauseFlowLoggingParams)&&_.wg("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",S):S.serializedYpcRefundFlowLoggingParams&&(S=S.serializedYpcRefundFlowLoggingParams)&&oME("YPC_EVENT_TYPE_CANCEL",S))}}];var pwg={};pwg.YtCancelRecurrenceBehavior=[_.vb.YtComponentBehavior,_.BEJ,{attached:function(){var S=this;En0(this,function(c,Q){return S.ypcCancelRecurrenceHandler(c,Q)})},
ypcCancelRecurrenceHandler:function(S,c){var Q=this;if(!c||!c.ypcCancelRecurrenceEndpoint)return!1;if(!c.ypcCancelRecurrenceEndpoint.params)return _.eG(Error("xl")),!0;_.tW(this.hostElement);var f=_.dj.instance,U=_.fl().resolve(_.QS(_.s_));f&&_.v3(f,c)?_.P3(f,c).then(function(a){Q.ypcCancelRecurrenceSuccess_(S,c,{data:a})},function(a){Q.ypcCancelRecurrenceFailure_(S,c,a)}).thenCatch(function(){_.eG(Error("yl"))}):U?U.requestDataForServiceEndpoint(c).then(function(a){Q.ypcCancelRecurrenceSuccess_(S,
c,a)},function(a){Q.ypcCancelRecurrenceFailure_(S,c,a)}).thenCatch(function(){_.eG(Error("yl"))}):_.eG(Error("zl"));
return!0},
ypcCancelRecurrenceSuccess_:function(S,c,Q){_.VV(this.hostElement);Q.data||(Q={data:Q});Q.data&&Q.data.actions&&_.FF(this.hostElement,Q.data.actions,this.hostElement);Q.data.messageRenderer?SHG(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(c=c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.wg("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",c);_.Az(S,"yt-service-request-completed",Q)},
ypcCancelRecurrenceFailure_:function(S,c,Q){_.VV(this.hostElement);SHG(c.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.Az(S,"yt-service-request-error",{error:Q,params:[S,c]})}}];var hwZ=function(S,c){_.Sx.call(this,c)};
_.C(hwZ,Y2V);var qq8={};qq8.YtCompleteTransactionBehavior=[_.vb.YtComponentBehavior,_.BEJ,{attached:function(){var S=this;En0(this,function(c,Q){return S.ypcCompleteTransactionHandler(c,Q)})},
completeTransaction:function(S,c){var Q=this;c={payments_payload:window.btoa(c.integratorData),buybucket_params:S.data.buybucketParams,offer_params:S.data.offerParams};var f=_.fl().resolve(_.s_),U=S.data.completeTransactionEndpoint,a=this.get("ypcCompleteTransactionEndpoint.actions",U);a&&_.FF(this.hostElement,a,this.hostElement);return(a=_.dj.instance)&&_.v3(a,U)?_.P3(a,U,c).then(function(X){return!X||(X==null?0:X.error)?(X=Q.get("data.serializedTransactionFlowLoggingParams",S),_.pv(new SU("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
X))):{data:X}}).then(function(X){return Q.handleCompleteTransactionSuccess_(X,S)},function(){return Q.handleCompleteTransactionFailure_(S)}):f.requestDataForServiceEndpoint(U,c).then(function(X){return Q.handleCompleteTransactionSuccess_(X,S)},function(){return Q.handleCompleteTransactionFailure_(S)})},
handleCompleteTransactionSuccess_:function(S,c){S.data||(S={data:S});if(S.data.messageRenderer)return _.pv(new hwZ(S.data.messageRenderer));if(S.data.trackingParams){var Q=_.wN(),f=_.T$();Q&&f&&_.dS(Q,f,_.Yz(S.data.trackingParams))}c=this.get("data.serializedTransactionFlowLoggingParams",c);mq0(c);return _.B2(S)},
handleCompleteTransactionFailure_:function(S){S=this.get("data.serializedTransactionFlowLoggingParams",S);_.LJ("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",S);return _.pv(new SU("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",S))},
ypcCompleteTransactionHandler:function(S,c){var Q=this;if(!c.ypcCompleteTransactionEndpoint)return!1;if(!c.ypcCompleteTransactionEndpoint.transactionParams)return _.eG(Error("Al")),!0;c.ypcCompleteTransactionEndpoint&&c.ypcCompleteTransactionEndpoint.gtmData&&_.T3(c.ypcCompleteTransactionEndpoint.gtmData);var f=_.fl().resolve(_.QS(_.s_));if(f){_.tW(this.hostElement);var U=_.dj.instance;U&&_.v3(U,c)?_.P3(U,c).then(function(a){return!a||(a==null?0:a.error)?(a=Q.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
c),_.pv(new SU("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",a))):{data:a}}).then(function(a){_.Az(S,"yt-service-request-completed");
Q.ypcCompleteTransactionSuccess_(c,a)},function(){return Q.ypcCompleteTransactionFailure_(c)}):f.requestDataForServiceEndpoint(c).then(function(a){_.Az(S,"yt-service-request-completed");
Q.ypcCompleteTransactionSuccess_(c,a)},function(){return Q.ypcCompleteTransactionFailure_(c)})}return!0},
ypcCompleteTransactionSuccess_:function(S,c){_.VV(this.hostElement);c.data||(c={data:c});_.XF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);c.data.messageRenderer||c.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(S):(_.T3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",S));c.data.actions&&(S=AzV(c.data.actions),c=X21(c.data.actions),S.length&&_.xt(this.hostElement,
S),c.length&&_.FF(this.hostElement,c,this.hostElement))},
ypcCompleteTransactionFailure_:function(S){_.VV(this.hostElement);_.XF(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",S,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(S,c,Q){if(c=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",c))c={serializedTransactionFlowLoggingParams:c},Q&&(c.errorType=Q),_.Te(S,c),_.wQ()}}];var TtU={};TtU.YtEndpointHandlerWithYpcBehavior=[_.BEJ,_.AN.YtActionHandlerBehavior,[{openWalletDialog:function(S,c,Q,f,U,a,X){var z=this,x=_.L4();c=c.replace(/-/g,"+").replace(/_/g,"/");var I=_.jL().get("hl");_.OAY(_.Aw(_.E_),c,x.resolve,U,function(n){a&&a();x.reject(n)},I,function(n){return z.onServerBackendAnalyticEvent_(S,Q,n)},this.onDialogClose_.bind(this),f,X);
return x.promise},
openFixFlowDialog:function(S,c,Q,f){S=S.replace(/-/g,"+").replace(/_/g,"/");_.Aw(_.E_).openFixFlowDialog(S,c,Q,f)},
onDialogClose_:function(){_.XF(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(S,c,Q){_.Az(S,"yt-commerce-action-init-done");c&&_.xt(this.hostElement,[c,{backend_analytics:Q}])}}],
_.Nc.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(S,c){S=this.get("data.nativeFlowEndpoint",c);c=this.get("data.fallbackEndpoint",c);S?_.xt(this.hostElement,[S]):c&&_.Az(this.hostElement,"yt-navigate",{endpoint:c})}}],
pwg.YtCancelRecurrenceBehavior,qq8.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 S=this;En0(this,function(c,Q,f){return S.handleYPCEndpoint(c,Q,f)});
this.ypcRegisterActionMapJobId_=_.HG(_.Mq,function(){S.registerActionMap(S.buyFlowActionMap_)})},
detached:function(){var S=this;_.Mq.cancelJob(this.ypcRegisterActionMapJobId_);_.HG(_.Mq,function(){S.unregisterActionMap(S.buyFlowActionMap_)})},
handleYPCEndpoint:function(S,c,Q){var f=c.ypcGetCartEndpoint;if(f){_.MD("commerce_transaction");var U=f.gtmId;U&&_.qu(U);(f=f.gtmData)&&_.T3(f)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",c)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(S,c),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",c)!=null?(this.handleYPCFixInstrumentEndpoint_(S,c),!0):c.ypcPauseSubscriptionCommand?(dOp(this.hostElement,S,c,Q),
!0):c.ypcResumeSubscriptionCommand?(LMZ(this.hostElement,S,c),!0):c.getPaymentInstrumentsParamsCommand?(erB(this.hostElement,S,c),!0):c.ypcHandleTransactionEndpoint?(WM8(this.hostElement,S,c,Q),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(S,c){var Q=this;_.i2("ttcr",void 0,"commerce_transaction");c=c.ypcGetCartEndpoint;var f=c.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,U=f.encryptedPurchaseParams,a=f.serializedTransactionFlowLoggingParams,X=f.serializedPaymentsClientParams,z=this.createGetCartResponseFromParams_(f,c.offerParams,a);this.changeButtonState(S,!0);_.p0(this.openWalletDialog(S,U,f.ypcLogWalletAnalyticDataEndpoint,a,function(){Q.changeButtonState(S,!1)},function(){Q.changeButtonState(S,
!1)},X).then(function(x){return Q.handleBuyFlowCompleteCallback_(S,z,x)},function(){return Q.handleOnLoadError(z)}).then(function(x){return void Q.handlePostPurchaseSuccess_(S,z,x)},function(x){return void Q.handlePostPurchaseError_(x)}),function(){Q.changeButtonState(S,!1);
S instanceof Element&&_.Az(S,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(S,c,Q){var f=S.completeTransactionEndpoint,U=S.handleTransactionEndpoint;c={data:{offerParams:window.btoa(c),serializedTransactionFlowLoggingParams:Q}};U?c.data.handleTransactionEndpoint=U:c.data.completeTransactionEndpoint=f;S.onCartDismissCommand&&(c.data.onCartDismissCommand=S.onCartDismissCommand);return c},
onGetCartServiceRequestCompleted_:function(S,c){var Q=this,f=S.target;if(c&&c.data&&c.data.messageRenderer)_.VV(this.hostElement),this.handleMessageRenderer_(c.data.messageRenderer),this.changeButtonState(f,!1);else{var U=this.get("data.encryptedPurchaseParams",c),a=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",c),X=this.get("data.ypcLogWalletAnalyticDataEndpoint",c),z=this.get("data.serializedPaymentsClientParams",c),x=this.getLoggingParams_(c);if(x||U||a)S.stopPropagation(),_.i2("ttcr",
void 0,"commerce_transaction"),U||_.VV(this.hostElement),this.changeButtonState(f,!1),a?_.XF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.WY("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:a}}},this]):U&&(this.changeButtonState(f,!0),S=null,S=this.openWalletDialog(f,U,X,x,function(){_.VV(Q.hostElement);Q.changeButtonState(f,!1)},function(){_.VV(Q.hostElement);
Q.changeButtonState(f,!1)},z),_.p0(S.then(function(I){return Q.handleBuyFlowCompleteCallback_(f,c,I)},function(){return Q.handleOnLoadError(c)}).then(function(I){return Q.handlePostPurchaseSuccess_(f,c,I)},function(I){return Q.handlePostPurchaseError_(I)}),function(){Q.changeButtonState(f,!1);
_.Az(f,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(S,c){c&&c.endpoint&&c.endpoint.ypcGetCartEndpoint&&!c.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)&&_.FF(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",c.endpoint.ypcGetCartEndpoint)],S.target),_.tW(this.hostElement),this.changeButtonState(S.target,!0))},
onServiceRequestError_:function(S,c){if(c&&c.params&&c.params.length){c=_.A(c.params);for(var Q=c.next();!Q.done;Q=c.next())if((Q=Q.value)&&Q.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",Q.ypcGetCartEndpoint)&&_.FF(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",Q.ypcGetCartEndpoint)],S.target);_.VV(this.hostElement);this.changeButtonState(S.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(S,c,Q){var f=Q.integratorData;return f==null||f===""||Q.error!=null?(f=this.getLoggingParams_(c),String(Q.error)==="-1"?(c.data.onCartDismissCommand&&_.FF(this.hostElement,[c.data.onCartDismissCommand],S),_.pv(new SU("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f,!0))):_.pv(new SU("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",f))):c.data.handleTransactionEndpoint?gyB(this.hostElement,c.data.handleTransactionEndpoint,{payments_payload:f,funds_guarantee_callback_client_data:Q.integratorClientCallbackData}):
this.completeTransaction(c,Q)},
handlePostPurchaseSuccess_:function(S,c,Q){c=Q.data;var f=!1,U,a;if(c&&((U=c.command)==null?0:(a=U.commandExecutorCommand)==null?0:a.commands)){var X,z;U=(X=c.command)==null?void 0:(z=X.commandExecutorCommand)==null?void 0:z.commands;for(X=0;X<U.length;X++)if(_.Y(U[X],_.ypJ)){f=!0;break}}f||(c&&c.gtmDatas&&c.gtmDatas.length?_.T3(c.gtmDatas[0]):_.T3('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));Q.data&&Q.data.actions&&(c=AzV(Q.data.actions),Q=X21(Q.data.actions),c.length&&
_.xt(this.hostElement,c),Q.length&&_.FF(this.hostElement,Q,S))},
handlePostPurchaseError_:function(S){S&&S.payload&&S.payload.isUserDismiss||_.sH(Error("Cl"))},
handleOnLoadError:function(S){S=this.getLoggingParams_(S);return _.pv(new SU("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",S))},
getLoggingParams_:function(S){return this.get("data.serializedTransactionFlowLoggingParams",S)},
handleMessageRenderer_:function(S){var c=_.iW(S,"renderer"),Q=_.WY("openPopupConfig");c==="confirmDialogRenderer"&&Q&&_.XF(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:Q.popupTypeMap[c],popup:S}},this])},
handleYPCFixInstrumentEndpoint_:function(S,c){var Q=this,f=c.ypcFixInstrumentEndpoint;c=f.encryptedFixInstrumentParameters;this.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(S,!0);this.openFixFlowDialog(c,function(U,a){Q.onFixFlowCompleteCallback_(f,U,a)},function(){return Q.changeButtonState(S,!1)},function(){Q.changeButtonState(S,!1);
Q.logFixFopEvent_(f,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(S,c,Q){var f=_.rC("payments.business.integration.scenario.FixInstrument");if(c==f.IntegratorCallbackType.ON_COMPLETE){c="FIX_FOP_EVENT_TYPE_CANCEL";var U=null;Q.error!=null?Q.error!=f.OnCompleteCallbackError.USER_CANCELLED&&(_.FF(this.hostElement,[S.errorAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_FAILURE",U="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.FF(this.hostElement,[S.successAction],this.hostElement),c="FIX_FOP_EVENT_TYPE_SUCCESS");_.FF(this.hostElement,[S.onFinishAction],
this.hostElement);this.logFixFopEvent_(S,c,U)}},
logFixFopEvent_:function(S,c,Q){(S=S.serializedFixFopLoggingParams)?(c={eventType:c,serializedFixFopLoggingParams:S},Q!=null&&(c.errorType=Q),_.Te("fixFopFlow",c),_.wQ()):_.sH(Error("Dl"))},
changeButtonState:function(S,c){_.u("enable_ypc_spinners")&&S&&(S.is==="yt-button-renderer"||S.is==="ytd-button-renderer")&&(S.disabled=c)}}];var wwV=function(S){this.JSC$28842_clientRoot=S;this.feedbackCollectorActionMap={"yt-help-dialog-requested":tD2,"yt-feedback-dialog-requested":Ey0,"yt-signal-action-help":VD2,"yt-signal-action-send-feedback":RrU,"yt-send-feedback-action":oyE,"yt-user-feedback-endpoint":mOT};_.vG(_.dQ.getInstance(),this.feedbackCollectorActionMap,this.JSC$28842_clientRoot)},s3T;var Mo2=function(S){this.JSC$28847_clientRoot=S;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":S_8.bind(null,this.JSC$28847_clientRoot),"yt-signal-action-delete-all-downloads":QMN,"yt-signal-action-delete-download":fO0,"yt-signal-action-delete-playlist-download":J41,"yt-signal-action-install-pwa":x6Z,"yt-signal-action-refresh-downloads":OJ0,"yt-offline-video-endpoint":BhE,"yt-offline-playlist-endpoint":nk1,"yt-update-local-app-setting-command":NhB,"yt-offline-orchestration-action-command":$6E,
"yt-signal-action-undo-delete-download":A4E,"yt-local-watch-history-command":lO2};_.vG(_.dQ.getInstance(),this.downloadManagerActionMap,this.JSC$28847_clientRoot);_.q6.instance=new _.q6},igT;var ea=function(){var S=_.W.apply(this,arguments)||this;S.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_"};S.remoteApi_=null;return S};
_.C(ea,_.W);_.J=ea.prototype;
_.J.ready=function(){_.u("polymer_enable_mdx")&&(L62({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.u("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.u("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.u("enable_cast_short_lived_lounge_token")}),_.Ac("yt-remote-connection-change",this.handleConnectionChange_,this),_.Ac("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=miB())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.J.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.J.handleConnectionChange_=function(S){(this.mdxConnected=S)?(S=VnG(),!S&&L1O()&&EUV()&&(S={key:"cast-selector-receiver",name:EUV()}),S=S.name):S=null;this.receiverName=S;_.yN(this.remoteApi_);(this.remoteApi_=miB())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.J.handleReceiverAvailabilityChange_=function(){var S=tn1();L1O()&&_.Bb("yt-remote-cast-available")&&S.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=S.length>0};
_.J.handleRemoteQueueChange_=function(){var S=this.currentVideoId_,c=this.currentListId_,Q=OK(this.remoteApi_);this.currentVideoId_=Q.videoId;this.currentListId_=Q.listId;this.currentVideoId_&&_.XF(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.u("polymer_enable_mdx_queue")?this.currentListId_:null,S,c])};
_.J.handleAddToQueueAction_=function(S){S=_.Y(S,pxG);this.remoteApi_&&(S.videoId?this.remoteApi_.addVideo(S.videoId):S.playlistId&&this.remoteApi_.addPlaylist(S.playlistId))};
_.J.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.J.handleInsertInQueueAction_=function(S){S=_.Y(S,h6E);this.remoteApi_&&S.videoId&&this.remoteApi_.JSC$17603_insertVideo(S.videoId)};
_.J.handleRemoveFromQueueAction_=function(S){S=_.Y(S,q$0);this.remoteApi_&&S.videoId&&this.remoteApi_.JSC$17603_removeVideo(S.videoId)};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ea.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z(),_.P("design:type",Object)],ea.prototype,"appId",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ea.prototype,"mdxConnected",void 0);_.d([_.Z(),_.P("design:type",Boolean)],ea.prototype,"receiverAvailable",void 0);_.d([_.Z(),_.P("design:type",Object)],ea.prototype,"receiverName",void 0);_.d([_.Z(),_.P("design:type",Object)],ea.prototype,"currentVideoId_",void 0);
_.d([_.Z(),_.P("design:type",Object)],ea.prototype,"currentListId_",void 0);_.d([_.wM({is:"yt-mdx-manager",disableElementRegistration:!0})],ea);_.k(ea,"yt-mdx-manager",void 0,{mode:2});var Zg2;var GAV;var ki=function(){var S=_.W.apply(this,arguments)||this;S.APP_IDS={ytr:3,ytm:5};S.JSC$18844_timeoutId_=0;S.actionMap={"yt-open-create-family-dialog":"open"};return S};
_.C(ki,_.W);_.J=ki.prototype;_.J.created=function(){OUE(2200)};
_.J.detached=function(){this.observer_&&this.observer_.disconnect()};
_.J.open=function(S,c){var Q=this,f=S.serializedYpcFamilyCreateLoggingParams;this.JSC$18844_timeoutId_=setTimeout(this.abort_.bind(this,S.postFlowErrorEndpoint,f),3E4);c&&(this.onReadyCallback_=c);var U=_.Ur(this.hostElement).querySelector("#unicorn-iframe");f&&f&&yBp("ypcFamilyCreateFlowStarted",f);_.nmo("family_creation",function(){var a=_.rC("gapi.family_creation.render");_.rC("gapi.config.update")("iframes/family_creation/url",Q.getFamilyCreationUrlWithUnicornParams_());var X=3;S.appId&&S.appId in
Q.APP_IDS&&(X=Q.APP_IDS[S.appId]);X={authUser:_.WY("SESSION_INDEX")||0,clientId:X,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.WY("HL"),initialflow:[4,5,6,7],m:Q.isMobile?1:0,onFlowComplete:Q.onUnicornFlowComplete_.bind(Q,S.postFlowSuccessEndpoint,f),onError:Q.onUnicornFlowError_.bind(Q,S.postFlowErrorEndpoint,f),onReady:Q.onUnicornFlowReady_.bind(Q,S.referencePcidParams)};a(U,X)})};
_.J.close=function(){_.Ur(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.J.onUnicornFlowComplete_=function(S,c){this.close();c&&c&&yBp("ypcFamilyCreateFlowSucceeded",c);_.Az(this.hostElement,"yt-navigate",{endpoint:S})};
_.J.onUnicornFlowError_=function(S,c){this.close();c&&yBp("ypcFamilyCreateFlowCancelled",c);_.Az(this.hostElement,"yt-navigate",{endpoint:S})};
_.J.onUnicornFlowReady_=function(S){var c=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();S&&_.rC("gapi.family_creation.setConfig")(0,S);this.observer_=new MutationObserver(function(){_.Ur(c.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.Ur(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.Ur(this.hostElement).querySelector("#dialog").open()};
_.J.getFamilyCreationUrlWithUnicornParams_=function(){return _.WY("YTR_FAMILY_CREATION_URL")};
_.J.getCurrentUrl_=function(){return document.location.href};
_.J.abort_=function(S,c){this.clearTimeout_();this.onUnicornFlowError_(S,c)};
_.J.clearTimeout_=function(){clearTimeout(this.JSC$18844_timeoutId_)};
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],ki.prototype,"ytActionHandlerBehavior",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],ki.prototype,"isMobile",void 0);_.d([_.Z(),_.P("design:type",Object)],ki.prototype,"onReadyCallback_",void 0);_.d([_.Z(),_.P("design:type",Object)],ki.prototype,"observer_",void 0);_.d([_.wM({is:"yt-create-family-dialog",disableElementRegistration:!0})],ki);
_.k(ki,"yt-create-family-dialog",function(){if(GAV===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);var c=S.content,Q=c.insertBefore;Zg2===void 0&&(Zg2=document.createElement("template"));var f=Zg2;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);GAV=S}S=GAV;return S},{mode:2});var Wi8;var gI0;var ru=function(){var S=_.W.apply(this,arguments)||this;S.STEP=1;S.BLOCK_ON=80;S.MIN_PROGESS=0;S.MAX_PROGESS=100;return S};
_.C(ru,_.W);_.J=ru.prototype;_.J.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.J.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));_.fl().addProvider({provide:hSB,useValue:this})};
_.J.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.J.finish=function(){var S=this;this.progress=this.MAX_PROGESS;Y_1(function(){S.progress==S.MAX_PROGESS&&(S.hostElement.hidden=!0)})};
_.J.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.Rh.Object.defineProperties(ru.prototype,{progress:{configurable:!0,enumerable:!0,set:function(S){this.progress_=S;var c="scaleX("+S/this.MAX_PROGESS+")",Q=_.Ur(this.hostElement).querySelector("#progress").style;Q.transform=c;Q.webkitTransform=c;this.hostElement.setAttribute("aria-valuenow",String(S))},
get:function(){return this.progress_}}});
_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],ru.prototype,"ytComponentBehavior",void 0);_.d([_.wM({is:"yt-page-navigation-progress",disableElementRegistration:!0})],ru);
_.k(ru,"yt-page-navigation-progress",function(){if(gI0===void 0){var S=document.createElement("template");_.D(S,'\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');S.content.insertBefore(_.y().content.cloneNode(!0),
S.content.firstChild);var c=S.content,Q=c.insertBefore;Wi8===void 0&&(Wi8=document.createElement("template"));var f=Wi8;Q.call(c,f.content.cloneNode(!0),S.content.firstChild);gI0=S}S=gI0;return S},{mode:2});var ewT={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"},kA1={"font-size":"12px","font-style":"italic"},r_p={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.pV2=function(){return _.O(function(S){_.IN(S)})};var dzU=_.y_(function(S){var c=function(){return S.data().subtext},Q={};
return _.B("snackbar-view-model",{class:_.n4("snackbarViewModelHost",S.className)},_.B("div",{class:_.n4("snackbarViewModelEngagementBarWrapper",S.className)},_.B(_.K,{cond:function(){return S.data().image},
then:function(f){return _.B(_.RW,{data:f,alt:"",targetHeight:48,targetWidth:86,preserveHeight:!0,preserveWidth:!0,className:"snackbarViewModelImageContainer"})}}),_.B(_.K,{cond:function(){return S.data().imageContent},
then:function(){return _.B("div",{class:"snackbarViewModelAvatarContainer"},_.B(_.h8,{data:function(){return S.data().imageContent}},{decoratedAvatarViewModel:_.h7}))}}),_.B("div",{class:"snackbarViewModelTitleSubtextWrapper"},_.B("div",{class:_.n4((Q.snackbarViewModelTitle=!0,Q.snackbarViewModelTitleWithSubtext=c,Q))},_.B(_.mw,{text:function(){return S.data().text}})),_.B(_.K,{cond:c,
then:function(){return _.B("div",{class:"snackbarViewModelSubtext"},_.B(_.mw,{text:function(){return c()}}))}})),_.B(_.K,{cond:function(){return S.data().buttons},
then:function(){return _.B("div",{class:"snackbarViewModelButtonClassWrapper"},_.B(_.h8,{data:function(){return S.data().buttons}},{buttonViewModel:function(f){return _.B(_.Ze,{data:f.data,
buttonOverrides:function(){return{style:"mono-inverse"}}})}}))}})))},"dh");_.f4(_.y_(function(){function S(H,q){l(H);b("in");I(!0);a=setTimeout(function(){c()},q)}
function c(H){b("out");H&&clearTimeout(a)}
function Q(){c(!0)}
function f(H){if(H){var q=H.snackbarViewModel,w=H.durationMs;w||(w=3E3);q&&(H=_.fl().resolve(_.QS(_.au)))&&H.enqueue({isOpened:x,open:function(){S(q,w)},
close:c},0)}}
var U=_.EH("snackbar-container"),a=void 0,X=_.A(_.ny(!1,void 0,"mDc5N")),z=X.next().value;X=X.next().value;var x=z,I=X;z=_.A(_.ny("out",void 0,"FpOs5e"));var n=z.next().value,b=z.next().value;z=_.A(_.ny(void 0,void 0,"jIDRob"));var N=z.next().value,l=z.next().value;z=_.$d(function(){if(n()==="out"){I(!1);l(void 0);var H=_.fl().resolve(_.QS(_.au));H&&lc1(H,0)}});
_.wC(function(){var H=_.fl().resolve(_.QS(_.iGd));H&&(H.showSnackbarFn=f,H.closeSnackbarFn=Q)});
X={};return _.B("snackbar-container",{class:_.n4("ytSnackbarContainerHost",(X.ytSnackbarContainerOpened=function(){return x()&&n()==="in"},X.ytSnackbarContainerClosed=function(){return x()&&n()==="out"},X)),
el:U,"on:animationend":z},_.B(_.K,{cond:function(){return x()&&!!N()},
then:function(){return _.B(dzU,{data:function(){return N()}})}}))},"eh"),"snackbar-container");_.f4(_.y_(function(){var S=_.Gs(_.s9H);return _.B("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var c;return(c=S())==null?void 0:c.announcement})},"fh"),"yt-ephemeral-actions");var LSB=new Map;var T5p=function(S,c){var Q=this;this.handleError=S;this.logEventInternal=c;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){Q.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
T5p.prototype.logError=function(S){this.handleError(S)};
T5p.prototype.logEvent=function(S,c){switch(S){case "IDB_DATA_CORRUPTED":_.u("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",c);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",c);break;case "IS_SUPPORTED_COMPLETED":_.u("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",c);break;case "QUOTA_EXCEEDED":vIO(this,c);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",c);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":S=Object.assign({},c,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",S)}};
var vIO=function(S,c){_.Iu.getInstance().estimate().then(function(Q){Q=Object.assign({},c,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:tm2(Q==null?void 0:Q.usage),deviceStorageQuotaMbytes:tm2(Q==null?void 0:Q.quota)});S.logEventInternal("idbQuotaExceeded",Q)})};var du=function(){var S=_.W.apply(this,arguments)||this;S.tabGesturesIsActive=!1;S.deprecateFullerscreenUi=_.u("web_watch_fullerscreen_deprecation_ui");S.hasDelegation=!1;S.darkerDarkTheme=_.u("web_darker_dark_theme");S.isFrostedGlassInitialized=!1;S.frostedGlassExp=_.u("web_frosted_glass");S.mastheadHiddenFocusWithinKillswitch=_.u("web_masthead_hidden_focus_within_killswitch");S.ephemeralActionsEnabled=_.u("web_ephemeral_actions");S.scrollAtTop=!0;S.guideScrollTop=0;S.isTheaterModeSession=_.gC("START_IN_THEATER_MODE");
S.iMaxTheaterMode=_.u("web_watch_imax_theater_mode");S.isFullWindowSession=_.gC("START_IN_FULL_WINDOW_MODE");S.hasCreateFamilyDialog=!1;S.mastheadHeight=56;S.networkStatusManager=new _.L6;S.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"};S.dynamicActionMap={"yt-run-attestation-command":function(c){var Q=_.eii.instance,f=_.Y(c,_.bjd);return f?_.u("use_rta_manager_for_async")&&
nrg()?m_U(Q,f,c.clickTrackingParams):on1(Q,f,c.clickTrackingParams):_.pv(Error("ni"))}};
S.isFrostedGlassDisabled=!1;S.isChannelOrPlaylistPage=!1;return S};
_.C(du,_.W);_.J=du.prototype;_.J.created=function(){var S=_.fl();_.u("kevlar_clear_duplicate_pref_cookie")&&_.HG(_.Mq,function(){var c=_.Kl.get("PREF");c&&!/f\d=/.test(c)&&(c=_.Al("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=c?"PREF=null;domain="+c+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.u("gzip_gel_with_worker")&&_.TPx();_.u("jspb_serialize_with_worker")&&kDG();_.u("web_worker_availability_check")&&EkT();_.u("nwl_init_killswitch")||grg().then(function(){_.Mq.addLowPriorityJob(mEZ)});
this.pageManagerAttachedPromise=_.L4();this.ytdAppBehavior.loadDepsPromise=_.Dg([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.S0(this.onThrottledScroll,200,this);_.u("external_fullscreen")&&(this.fullscreen=!1);this.boundOnTouchStart=this.onTouchStart.bind(this);wi0();jZp=!!_.rC("ytappsettings.initialized");O5=_.rC("ytappsettings.previousValue");IzO=_.rC("ytappsettings.previousSnapshotTime");jZp||(jZp=!0,nMZ());Jzg();a51();_.G_("DEFERRED_DETACH",
_.u("kevlar_tuner_should_defer_detach"));_.G_("REUSE_COMPONENTS",!0);_.G_("STAMPER_STABLE_LIST",!0);_.G_("SCHEDULED_LAZY_LIST",!0);_.G_("openPopupConfig",Ps2);_.G_("useClickHandler",!0);_.u("kevlar_shell_cleanup")&&_.Mq.addLowPriorityJob(lzO.bind(this,_.QY.caches));_.gC("IS_SHELL_LOAD")&&_.sz({shellStartupDurationMs:Math.round((0,_.Qk)()-_.p8())});wV8(this.networkStatusManager);_.u("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",ClB(ewT)),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!",
ClB(kA1)),console.log("%cVisit http://go/join-youtube-web to apply today.",ClB(r_p)));_.YhG(S.resolve(_.zu),1E3)};
_.J.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var S=ylU();S&&!_.u("external_fullscreen_killswitch")&&document.addEventListener(S,this.setFullscreen.bind(this));(S=window.matchMedia("(prefers-color-scheme: dark)"))&&S.addEventListener&&S.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.J.attached=function(){var S=this;_.g2().processSignal("ci");_.u("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.k8r?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.nj(_.Z0T(),"SUCCESS");this.updateIconSet();_.Jz(this.guideInnerContent,!1);_.Hb().initVisibilityObserver();this.guideService.guideElement=this.guide;var c=document.createElement("ytd-miniplayer"),Q=_.Ur(this.hostElement).querySelector("#content");
_.Ur(this.hostElement).insertBefore(c,Q);_.g2().processSignal("ma");_.fl().resolve(_.ra).init(c);_.gC("IS_SHELL_LOAD")&&(Q=document.createElement("ytd-network-status-banner"),_.Ur(this.hostElement).insertBefore(Q,c));_.u("kevlar_right_click_on_lockups")&&_.vx._onCaptureClick&&document.addEventListener("contextmenu",_.vx._onCaptureClick.bind(_.vx),!0);var f=function(){var U=_.fm("yt-page-navigation-progress");_.Ur(S.hostElement).appendChild(U)};
setTimeout(function(){_.g2().parkOrScheduleJob(f,0,"eocs",16)},0);
_.u("service_worker_push_enabled")&&_.HG(_.Mq,RJg);_.vG(_.dQ.getInstance(),this.dynamicActionMap,this.hostElement);_.Az(this.hostElement,"ytd-app-attached");_.g2().processSignal("aa");BeV(this.hostElement);_.m5("gapi.load",_.nmo);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.HG(_.Mq,
function(){var U=document.createElement("ytd-video-preview");_.Ur(_.Ur(S.hostElement).querySelector("#video-preview")).appendChild(U)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.HG(_.Mq,function(){hMG();S.registerViewTransitionTasks()});
if(_.h4()&&this.isAppDarkTheme()!==_.DO())this.onDarkModeToggledAction();else c=_.pJ()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==c&&(_.u("enable_dark_theme_only_on_shorts")?_.dh(_.u("enable_dark_theme_only_on_shorts_control")?window.location.href:_.tS(window.location.href,{theme:"dark"})):_.i5(new _.Yr("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(VE0=new tEE(this.hostElement)),igT=new Mo2(this.hostElement),s3T=new wwV(this.hostElement),Ipg=new B4N(this.hostElement)};
_.J.getThemeSettingsToLog=function(){var S=_.pJ()==="USER_INTERFACE_THEME_DARK";S=_.h4()?_.DO()?"os-dark":"os-light":S?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:S,cookiesEnabled:_.uB()}};
_.J.detached=function(){_.aI(this.guideInnerContent);_.Mq.cancelJob(aX);aX=0;_.Mq.cancelJob(XC);XC=0;_.vkT(FOT);FOT.length=0;O6E=_.JNM=null;_.Hb().dispose();_.u("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.PG(_.dQ.getInstance(),VE0.playlistHandlerActionMap,VE0.JSC$28541_clientRoot);_.PG(_.dQ.getInstance(),igT.downloadManagerActionMap,igT.JSC$28847_clientRoot);_.PG(_.dQ.getInstance(),s3T.feedbackCollectorActionMap,s3T.JSC$28842_clientRoot);
for(var S=_.A(Ipg.eventListeners),c=S.next();!c.done;c=S.next()){var Q=_.A(c.value);c=Q.next().value;Q=Q.next().value;Q=_.A(Q);for(var f=Q.next();!f.done;f=Q.next()){var U=_.A(f.value);f=U.next().value;U=U.next().value;c.removeEventListener(f,U)}}_.PG(_.dQ.getInstance(),Ipg.autonavPauseActionMap,Ipg.JSC$17788_clientRoot)};
_.J.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.jL().getFlag(186)};
_.J.computeIsInlinePreviewEnabled=function(S,c,Q){return!Q&&_.$fU({miniplayerIsActive:S,miniplayerPlaybackState:c})};
_.J.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.aB({type:"SET_FROSTED_GLASS_MODE",payload:!_.u("web_frosted_glass")||this.isFrostedGlassDisabled?"none":!this.isFrostedGlassInitialized&&this.applyFrostedGlassToChipBar?"loading-with-chipbar":this.isFrostedGlassInitialized||this.applyFrostedGlassToChipBar?this.applyFrostedGlassToChipBar?"with-chipbar":"without-chipbar":"loading-without-chipbar"}))};
_.J.computeIsFrostedGlassDisabled=function(S,c,Q,f){return S||c||Q||f&&_.u("web_frosted_glass_disable_watch")};
_.J.isWatchPageChanged=function(){this.getCurrentPageScrollableElementType()&&(_.u("web_watch_update_scroll_killswitch")||this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode()))};
_.J.computeIsHomePage=function(S,c){if(!S||c==null||!c.endpoint)return!1;var Q;return((Q=_.Y(c.endpoint,_.KJ))==null?void 0:Q.browseId)==="FEwhat_to_watch"};
_.J.updateIsChannelOrPlaylistPage=function(){if(_.u("web_frosted_glass")){var S,c,Q=(c=(S=_.fl().resolve(_.QS(_.oZ)))==null?void 0:S.getCurrentPage())==null?void 0:c.pageSubtype;this.isChannelOrPlaylistPage=Q?["channel","channels","playlist"].includes(Q):!1}};
_.J.scheduleFrostedGlassInitialization=function(){var S=this;_.u("web_frosted_glass")&&_.g2().parkOrScheduleJob(function(){S.isFrostedGlassInitialized=!0},0,_.s3(["eocs",
"cr"]),300)};
_.J.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.EOh(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.aB({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.aB({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.J.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(FZB(!0))};
_.J.onYtSignalActionRequestPersistentStorage=function(){if(!_.u("request_persistent_storage_killswitch")){var S=_.fl().resolve(_.jHU);S.cachedPersistStatePromise||(S.cachedPersistStatePromise=wIB())}};
_.J.handleYtChannelCreationFormEndpoints=function(S){S&&this.ytComponentBehavior.resolveCommand(S)};
_.J.handleShowEngagementPanelEndpoint=function(S){S&&this.ytComponentBehavior.resolveCommand(S)};
_.J.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(FZB(!1))};
_.J.initIconDefs=function(S,c){var Q=document.createElement("iron-iconset-svg");Q.name=S;S=document.createElementNS("http://www.w3.org/2000/svg","svg");Q.appendChild(S);S.appendChild(c);document.body.appendChild(Q);return Q};
_.J.onWindowResized=function(){_.XF(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var S=_.Unh.getInstance();S.documentWidth_=document.body.clientWidth;HUU(S)};
_.J.onWindowScrolled=function(){var S=_.fl().resolve(_.oZ).getCurrentPage();if(S!=null&&S.getScrollTop){var c=this.ytdReduxBehavior,Q=c.dispatch;S=S.getScrollTop()<=0;Q.call(c,_.aB({type:"SET_SCROLL_AT_TOP",payload:S}))}};
_.J.guideIsVisibleButNotPersistentSelectorChanged=function(){var S=_.fl().resolve(_.oZ).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=S.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"),
S.setScrollTop(this.guideScrollTop));_.Oz(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.J.getCurrentPageScrollableElementType=function(){var S=_.fl().resolve(_.oZ).getCurrentPage();if(S&&S.getPageScrollingElement())return S.getPageScrollingElement().nodeName};
_.J.observeGuideVisibility=function(){var S=_.Unh.getInstance(),c=this.miniGuideVisible;S.guidePersistentAndVisible_=this.guidePersistentAndVisible;S.miniGuideVisible_=c;HUU(S)};
_.J.handleEduDismissAction=function(S){S&&S.eduDismissAction&&(_.XF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.m0s.getInstance(),_.oF.set(S.eduDismissAction.key+"-dismissed",!0))};
_.J.handleEduImpressionAction=function(S){if(S&&S.eduImpressionAction){var c=_.m0s.getInstance();S=S.eduImpressionAction.key;c.JSC$10951_eduDisplayedThisLoad_[_.oF_[S].setKey||S]=!0;_.oF.set(S+"-impression",parseInt(_.oF.get(S+"-impression")||0,10)+1)}};
_.J.onYtSignalActionConfirmMentionsEdu=function(){_.XF(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.cb.getInstance();_.SE.set("edu-dismissed",!0)};
_.J.onYtSignalActionRecordMentionsEduImpression=function(){_.cb.getInstance();var S=_.SE.set,c=parseInt(_.SE.get("edu-impressions"),10);S.call(_.SE,"edu-impressions",(isFinite(c)?c:0)+1)};
_.J.onYtPageManagerAttached=function(S){var c;((c=_.VI(S))==null?void 0:c.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.J.onInvokeInstrumentManagerAction=function(S,c){ok0(c,S)};
_.J.updateIconSet=function(){var S=this.hostElement.querySelector("#masthead");if(S){var c=_.Jq(S),Q=c.querySelector("g#yt-logo-updated");Q&&(S=document.createElementNS("http://www.w3.org/2000/svg","defs"),S.appendChild(Q.cloneNode(!0)),(c=c.querySelector("g#yt-logo-red-updated"))&&S.appendChild(c.cloneNode(!0)),this.initIconDefs("yt-logos-ext",S))}};
_.J.updateMastheadData=function(){var S=this,c,Q,f,U,a;return _.O(function(X){if(X.nextAddress==1){c=S.data;Q=S.hostElement.querySelector("#masthead");if(!Q)return X.return();_.tO(S,function(){Q.data=S.topbarData});
if(!S.get("response.topbar",c)||S.get("response.topbar.responseContext.maxAgeSeconds",c)===0)return X.jumpTo(0);if(f=_.fl().resolve(_.df))return _.F(X,f(),6);U=_.fl().resolve(_.Ad);return _.F(X,U.put("service:topbar:fallback",new _.Xd({innertubeResponse:S.get("response.topbar",c)})),0)}return(a=X.yieldResult)?_.F(X,a.put("service:topbar:fallback",new _.Xd({innertubeResponse:S.get("response.topbar",c)})),0):X.jumpTo(0)})};
_.J.computeTopbarData=function(S){if(!S)return null;var c;return this.isShortsPage&&this.topbarData&&!_.Y((c=S.response)==null?void 0:c.topbar,IVZ)?this.topbarData:S.response&&"topbar"in S.response?_.Y(S.response.topbar,IVZ)||null:null};
_.J.onSetTheaterModeEnabled=function(S,c){this.isTheaterModeSession=c.enabled;this.setTheaterModeStyles(c.enabled)};
_.J.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.J.onDarkModeToggledAction=function(){var S=_.Bi(window.location.href);if(!_.bmo(S)){(S=!!_.Ep(window.location.href).themeRefresh)&&_.i5(new _.Yr("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!S){nMZ();S={themeRefresh:1};var c=_.fl().resolve(_.oZ);if(c.isOnWatch()){var Q,f;c=((Q=c.getPlayerFromWatch())==null?void 0:(f=Q.getPlayer())==null?void 0:f.getCurrentTime())||0;c>=1&&(S.time_continue=Math.floor(c))}_.uB()||_.pJ()!=="USER_INTERFACE_THEME_DARK"||(S.theme="dark");_.dh(_.tS(window.location.href,
S))}_.u("web_appshell_refresh_trigger")&&_.QY.caches&&this.refreshAppShellResponse();Q=_.dN(window.location.href);_.xF(_.fl().resolve(_.Fd),_.c2(Q,"theme"))}};
_.J.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.J.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.J.onPlayerFullscreen=function(S){_.f8();this.playerFullscreen=S};
_.J.setRestrictedMode=function(S){var c=_.jL();_.l2(0,58,S);c.save();_.fl().resolve(_.CM).reload()};
_.J.onPageChanged=function(S){S.detail.newPageType==="ytd-watch-flexy"||S.detail.newPageType==="ytd-watch-fixie"||S.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.wa("WEB_PAGE_TYPE_WATCH")):S.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.wa("WEB_PAGE_TYPE_SHORTS")):S.detail.newPageType==="ytd-browse"&&S.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.wa("WEB_PAGE_TYPE_MINI_APP")):_.u("web_frosted_glass")&&S.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.wa("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.wa("WEB_PAGE_TYPE_UNKNOWN"));S.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.J.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.J.onGuideToggleTap=function(){_.Az(this.hostElement,"yt-guide-toggle")};
_.J.onGuideToggleHover=function(){_.Az(this.hostElement,"yt-guide-hover")};
_.J.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.J.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.J.setMastheadTheme=function(){var S=_.Jq(this.hostElement).querySelector("#masthead");S&&(S.dark=S.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),S.isDarkThemeForced=!1)};
_.J.onRequestPanelModeChange=function(S,c){this.hideHeaderShadow=c.mode!=="seamed"};
_.J.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.J.onDrawerIronSelect=function(S){_.VI(S).id==="guide"&&this.processDrawerIronSelect()};
_.J.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var S="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(S="opened"));_.Az(this.hostElement,"yt-autonav-pause-guide-"+S)};
_.J.onAddElementToApp=function(S){_.Ur(this.hostElement).appendChild(S.detail)};
_.J.onThrottledScroll=function(){var S=_.fl().resolve(_.oZ).getCurrentPage();S&&(this.scrollAtTop=S.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.J.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.J.setFullscreen=function(){if(_.u("external_fullscreen")||!this.isWatchPage){var S=_.u("kevlar_fullerscreen_root_only_killswitch")?!!_.f8():!!_.f8()&&_.f8()===document.documentElement;S=(this.isWatchPage||_.u("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(S||this.isFullWindowSession);this.fullscreen!==S&&((this.fullscreen=S)&&_.Oz(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.V5().dispatch(_.xxp(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.XF(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.J.setFullscreenLoggingForShorts=function(S){var c,Q,f;return _.O(function(U){if(U.nextAddress==1)return _.F(U,(c=_.S9())==null?void 0:c.getPlayerPromise(),2);Q=U.yieldResult;(f=Q)==null||f.setAppFullscreen(S);_.IN(U)})};
_.J.updateMastheadCssHeight=function(){var S=this.mastheadHeight;this.fullscreen&&(S=0);_.Or(this.hostElement,{"--ytd-masthead-height":S+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.J.updateNetworkStatusBannerDisplayStatus=function(){var S="unset";this.fullscreen&&(S="none");_.Or(this.hostElement,{"--ytd-network-status-banner-display":S})};
_.J.updateNetworkStatusBannerCssHeight=function(){var S="unset";this.fullscreen&&(S="0px");_.Or(this.hostElement,{"--ytd-network-status-banner-max-height":S})};
_.J.updateScrollAndMasthead=function(S,c,Q,f){this.iMaxTheaterMode||(f=!1);var U=_.fl().resolve(_.oZ).getCurrentPage();S||c||f?(document.body.classList.add("no-scroll"),U.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.xn(this,this.onScroll)),U.setScrollTop(0),_.Or(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.q4()+"px"})):Q?_.Az(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.Az(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
U.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.xn(this,this.onScroll)));this.mastheadHidden=S||c||Q;this.updateMastheadCssHeight();_.u("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.J.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.J.onYtNavigateAction=function(S){S=this.get("navigateAction.endpoint",S);_.Az(this.hostElement,"yt-navigate",{endpoint:S})};
_.J.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var S=document.createElement("yt-create-family-dialog");_.Ur(this.hostElement).appendChild(S);this.hasCreateFamilyDialog=!0}};
_.J.onSetPushNotificationsEnabledCommand=function(S){var c=this,Q=_.Y(S,B9O);Q&&typeof Q.enabled==="boolean"&&(Notification.permission!=="granted"?PHp().then(function(){Notification.permission==="granted"?(qJ0(!Q.enabled).then(sRN),Q.successAction&&_.xt(c.hostElement,[Q.successAction])):Q.failureAction&&_.xt(c.hostElement,[Q.failureAction])}):(qJ0(!Q.enabled).then(sRN),Q.successAction&&_.xt(this.hostElement,[Q.successAction])))};
_.J.onYtSignalActionEnableChromeNotifications=function(){LON(!0)};
_.J.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.Y(this.topbarData.hotkeyDialog,N9g)}}})};
_.J.onYtSignalActionShowKeyboardShortcutDialog=function(){_.XF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.J.onYtEndpointChangeHandler=function(S,c){var Q=_.Aw(_.YR);Q.pendingPrefetchJob_&&(c=!(!c||c.autonav!="1"),Q.pendingPrefetchJob_.resolve(S&&_.apM(S)?_.ANH(S,c):""),Q.pendingPrefetchJob_=null);_.XF(this.hostElement,"yt-pause-active-page-context");_.XF(this.hostElement,"ytd-log-youthere-nav");_.XF(this.hostElement,"yt-prepare-page-dispose")};
_.J.handleCommandWithCommandHandler=function(S,c){_.BI.instance.resolveCommand(S,{form:{element:c}})};
_.J.onYtTimedCommand=function(S){var c=this;S=_.Y(S,Q70);var Q=S.command;Q&&_.pS(_.Mq,function(){var f=_.Y(Q,_.ugs);f?(_.BI.instance.resolveCommand(Q),c.maybeLogGetAnswerRequestTick(f)):_.FF(c.hostElement,[Q],c.hostElement)},S.timeoutMs||0)};
_.J.maybeLogGetAnswerRequestTick=function(S){S&&S.isFirstRequest&&(_.MD("search_overview_answer"),_.i2("so_rq",void 0,"search_overview_answer"))};
_.J.onYtSignalActionSkipNavigation=function(){var S=_.fl().resolve(_.oZ).getCurrentPage();_.RR(S)};
_.J.onYtSignalActionCopyDebugData=function(){JcO()};
_.J.handleEntityUpdateCommand=function(S){_.NO(_.Y(S,_.CrJ).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.J.logFlowLoggingEventCommand=function(S){if(S=_.Y(S,_.tuZ))if(S.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var c=S.flowEventNamespace,Q=S.flowEventType,f=S.flowType;f&&c&&Q&&_.muH(_.zW(c,Q,S.flowEventMetadata),f)}else{c=_.FU();Q=S.flowEventNamespace;f=S.flowEventType;var U=S.flowType;U&&Q&&f&&_.xk(c,_.zW(Q,f,S.flowEventMetadata),U,S.flowNonce)}};
_.J.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.J.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.J.onTouchStart=function(){var S=_.DM();_.wN()&&_.rj(S.JSC$11178_screenManager,{visualElement:S.ve})};
_.J.handleSelectLanguageCommand=function(S){if(S=_.Y(S,z6Z).hl){var c=_.jL();c.set("hl",S);c.save();_.fl().resolve(_.CM).reload()}};
_.J.handleConfirmDialogEndpoint=function(S){(S=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(S))&&this.ytOpenPopupBehavior.openPopup(S)};
_.J.handleOpenPopupNavigationEndpoints=function(S,c){_.u("web_button_rework")&&(S=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(S))&&this.ytOpenPopupBehavior.openPopup(S,c)};
_.J.handleSaveCommandToSessionStorage=function(S){if(S=_.Y(S,_.lvd)){var c=S.key;c&&S.command&&window.sessionStorage.setItem(c,JSON.stringify(S.command))}};
_.J.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(S){S&&S.active&&S.active.postMessage({type:"refresh_shell"})}).catch(function(S){S.name!=="SecurityError"&&_.sH(S)})};
_.J.onDeviceThemeChanged=function(){var S=_.DO();_.l2(_.jL(),185,S);_.jL().save()};
_.J.handleYtRegisterPromoCommand=function(S){if(_.Y(S,FIB)){var c=_.fl().resolve(_.oZ).getCurrentPage()||this.hostElement;lMN().registerPromoCommand(_.Y(S,FIB),c)}};
_.J.onYtNavigateHomeAction=function(){if(!_.u("kevlar_miniplayer_navigate_home_from_app_killswitch")){var S,c,Q,f,U=(f=(S=this.topbarData)==null?void 0:(c=S.logo)==null?void 0:(Q=c.topbarLogoRenderer)==null?void 0:Q.endpoint)!=null?f:_.Ni;this.ytComponentBehavior.resolveCommand(U)}};
_.J.onYtLocationCollectionCommand=function(S){D6E(_.Y(S,HO1))};
_.J.onYtGetLocationCommand=function(S){Fq2(_.Y(S,CcE),this)};
_.J.updateRenderGuideFromBinding=function(S){this.renderGuide=S.detail.value};
_.J.updateGuidePersistentAndVisibleFromBinding=function(S){this.guidePersistentAndVisible=S.detail.value};
_.J.updateMiniGuideVisibleFromBinding=function(S){this.miniGuideVisible=S.detail.value};
_.J.onThemeSelected=function(S,c){var Q=_.jL(),f=S||c?S:_.DO(),U=(f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!f&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.bmo(_.Bi(window.location.href));_.l2(0,165,S);_.l2(0,174,c);Q.save();U&&_.XF(this.hostElement,"yt-dark-mode-toggled-action",[f]);_.XF(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.J.getCurrentTheme=function(){return _.h4()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.pJ()};
_.J.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.J.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.J.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.J.handleShowConsentPrimitive=function(S){var c=this,Q,f;return _.O(function(U){if(U.nextAddress==1){try{Q=(f=_.S9())==null?void 0:f.getPlayerPromise()}catch(a){}return _.F(U,PlO(S,Q),2)}_.XF(c.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.IN(U)})};
_.J.handleSelectActiveIdentityEndpointInternal=function(S){_.kk();S=_.Y(S,_.e6H);if(S!=null&&S.supportedTokens){S=_.A(S.supportedTokens);for(var c=S.next();!c.done;c=S.next())c=c.value,c.accountSigninToken&&_.dh(c.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.J.handleUpdatePermissionRoleCommand=function(S){if(S=_.Y(S,_.Wu_)){var c;this.hasDelegation=!((c=_.Y(S.renderer,_.Ggs))==null||!c.status)}};
_.J.registerViewTransitionTasks=function(){var S=this,c=_.fl().resolve(_.QS(_.AD));if(c){var Q,f=(Q=this.guide)==null?void 0:Q.querySelector("#scrim"),U,a=(U=this.guide)==null?void 0:U.querySelector("#contentContainer");f&&a&&(Q={beforeTransition:function(){var X;(X=S.guide)!=null&&X.persistent||(f.style.viewTransitionName="app-drawer-scrim",a.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var X;(X=S.guide)!=null&&X.persistent||(f.style.viewTransitionName="",a.style.viewTransitionName="")}},RX(c,"slide",Q),RX(c,"zoom",Q))}};
_.Rh.Object.defineProperties(du.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.u("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.Rh.Object.defineProperties(du,{template:{configurable:!0,enumerable:!0,get:function(){if(Hg8===void 0){var S=document.createElement("template");_.D(S,'\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');
S.content.insertBefore(_.y().content.cloneNode(!0),S.content.firstChild);Hg8=S}S=Hg8;return S}}});
du.prototype.onOpenHotkeyDialog=du.prototype.onOpenHotkeyDialog;du.prototype.setFullscreen=du.prototype.setFullscreen;du.prototype.onAddElementToApp=du.prototype.onAddElementToApp;du.prototype.onDrawerIronSelect=du.prototype.onDrawerIronSelect;du.prototype.onGuideOpenButtonHover=du.prototype.onGuideOpenButtonHover;du.prototype.onRequestPanelModeChange=du.prototype.onRequestPanelModeChange;du.prototype.onPageDataUpdated=du.prototype.onPageDataUpdated;du.prototype.onPageChanged=du.prototype.onPageChanged;
du.prototype.onSetTheaterModeEnabled=du.prototype.onSetTheaterModeEnabled;du.prototype.updateMastheadData=du.prototype.updateMastheadData;du.prototype.onYtPageManagerAttached=du.prototype.onYtPageManagerAttached;du.prototype.observeGuideVisibility=du.prototype.observeGuideVisibility;du.prototype.guideIsVisibleButNotPersistentSelectorChanged=du.prototype.guideIsVisibleButNotPersistentSelectorChanged;du.prototype.isInlinePreviewEnabledChanged=du.prototype.isInlinePreviewEnabledChanged;
du.prototype.isWatchPageChanged=du.prototype.isWatchPageChanged;du.prototype.dispatchFrostedGlassMode=du.prototype.dispatchFrostedGlassMode;_.d([_.p(_.st),_.P("design:type",Object)],du.prototype,"ytdReduxBehavior",void 0);_.d([_.p(_.K3.YtEventForwardingBehavior),_.P("design:type",Object)],du.prototype,"ytEventForwardingBehavior",void 0);_.d([_.p(_.Nc.YtOpenPopupBehavior),_.P("design:type",Object)],du.prototype,"ytOpenPopupBehavior",void 0);
_.d([_.p(_.AN.YtActionHandlerBehavior),_.P("design:type",Object)],du.prototype,"ytActionHandlerBehavior",void 0);_.d([_.p({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.dQ.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.u("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var S;((S=this.actionRouterNode.hostElement)!=null?S:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var S;((S=this.actionRouterNode.hostElement)!=null?S:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(S){this.actionRouter_.handleAction(S.detail)}}),
_.P("design:type",Object)],du.prototype,"ytActionRouterBehavior",void 0);_.d([_.p(TcU.YtdAppBehavior),_.P("design:type",Object)],du.prototype,"ytdAppBehavior",void 0);_.d([_.p(_.Km.YtEndpointBehavior),_.P("design:type",Object)],du.prototype,"ytEndpointBehavior",void 0);_.d([_.p(TtU.YtEndpointHandlerWithYpcBehavior),_.P("design:type",Object)],du.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.d([_.p(DzB.YtLogYpcFlowCommandsBehavior),_.P("design:type",Object)],du.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.d([_.p(_.m.YtRendererBehavior),_.P("design:type",Object)],du.prototype,"ytRendererBehavior",void 0);_.d([_.p(_.vb.YtComponentBehavior),_.P("design:type",Object)],du.prototype,"ytComponentBehavior",void 0);_.d([_.Z({selector:_.Jh1}),_.P("design:type",Object)],du.prototype,"tabGesturesIsActive",void 0);_.d([_.Z(),_.P("design:type",Boolean)],du.prototype,"renderGuide",void 0);
_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"guidePersistentAndVisible",void 0);_.d([_.Z({selector:_.UZg}),_.P("design:type",Boolean)],du.prototype,"guideIsVisibleButNotPersistent",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"standalone",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"miniGuideVisible",void 0);
_.d([_.Z({selector:_.NxM}),_.P("design:type",Number)],du.prototype,"miniplayerPlaybackState",void 0);_.d([_.Z({selector:_.sm,reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"miniplayerIsActive",void 0);_.d([_.Z({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.P("design:type",Boolean)],du.prototype,"isInlinePreviewEnabled",void 0);_.d([_.Z(),_.P("design:type",Boolean)],du.prototype,"isInlinePreviewDisabled",void 0);
_.d([_.Z({reflectToAttribute:!0,value:function(){return _.gC("START_IN_FULL_WINDOW_MODE")}}),
_.P("design:type",Boolean)],du.prototype,"mastheadHidden",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"playerFullscreen",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],du.prototype,"deprecateFullerscreenUi",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"fullscreen",void 0);_.d([_.Z({value:!1,reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"hideHeaderShadow",void 0);
_.d([_.Z({value:{GUIDE_ALT_LABEL:_.K8("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.P("design:type",Object)],du.prototype,"menuStrings",void 0);_.d([_.Z({computed:"computeTopbarData(data)"}),_.P("design:type",Object)],du.prototype,"topbarData",void 0);_.d([_.Z({selector:_.MO}),_.P("design:type",Boolean)],du.prototype,"isWatchPage",void 0);_.d([_.Z({selector:_.IwM,reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"isShortsPage",void 0);
_.d([_.Z({selector:function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.P("design:type",Boolean)],du.prototype,"isMiniAppPage",void 0);_.d([_.Z({selector:function(S){return S.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.P("design:type",Boolean)],du.prototype,"isBrowsePage",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Boolean)],du.prototype,"scrolling",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],du.prototype,"hasDelegation",void 0);_.d([_.Z({reflectToAttribute:!0,value:!1}),_.P("design:type",Boolean)],du.prototype,"guideScrolledByTouch",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],du.prototype,"darkerDarkTheme",void 0);
_.d([_.Z(),_.P("design:type",Object)],du.prototype,"isFrostedGlassInitialized",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],du.prototype,"frostedGlassExp",void 0);_.d([_.Z({selector:function(S){return S.ui.chipBarIsSticky}}),
_.P("design:type",Boolean)],du.prototype,"chipBarIsSticky",void 0);_.d([_.Z({computed:"computeIsHomePage(isBrowsePage, data)"}),_.P("design:type",Boolean)],du.prototype,"isHomePage",void 0);_.d([_.Z({reflectToAttribute:!0}),_.P("design:type",Object)],du.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.d([_.Z(),_.P("design:type",Object)],du.prototype,"ephemeralActionsEnabled",void 0);_.d([_.VU("guide"),_.P("design:type",Object)],du.prototype,"guide",void 0);
_.d([_.VU("guide-service"),_.P("design:type",N4E)],du.prototype,"guideService",void 0);_.d([_.VU("guide-inner-content"),_.P("design:type",HTMLDivElement)],du.prototype,"guideInnerContent",void 0);_.d([_.Z({selector:_.$BZ}),_.P("design:type",String)],du.prototype,"frostedGlassMode",void 0);
_.d([_.B0("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"dispatchFrostedGlassMode",null);_.d([_.Z({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.P("design:type",Object)],du.prototype,"isFrostedGlassDisabled",void 0);
_.d([_.B0("isWatchPage"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"isWatchPageChanged",null);_.d([_.M("isHomePage","chipBarIsSticky"),_.P("design:type",Boolean),_.P("design:paramtypes",[])],du.prototype,"applyFrostedGlassToChipBar",null);_.d([_.Z(),_.P("design:type",Object)],du.prototype,"isChannelOrPlaylistPage",void 0);
_.d([_.$n("isInlinePreviewEnabled"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"isInlinePreviewEnabledChanged",null);_.d([_.B0("guideIsVisibleButNotPersistent"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);
_.d([_.B0("guidePersistentAndVisible","miniGuideVisible"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"observeGuideVisibility",null);_.d([_.FV("attached"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],du.prototype,"onYtPageManagerAttached",null);_.d([_.B0("data"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype",Promise)],du.prototype,"updateMastheadData",null);
_.d([_.FV("yt-set-theater-mode-enabled"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent,Object]),_.P("design:returntype")],du.prototype,"onSetTheaterModeEnabled",null);_.d([_.FV("yt-page-type-changed"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],du.prototype,"onPageChanged",null);_.d([_.FV("yt-page-data-updated"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"onPageDataUpdated",null);
_.d([_.FV("yt-request-panel-mode-change"),_.P("design:type",Function),_.P("design:paramtypes",[Event,Object]),_.P("design:returntype")],du.prototype,"onRequestPanelModeChange",null);_.d([_.FV("yt-guide-hover"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"onGuideOpenButtonHover",null);_.d([_.FV("app-drawer-transitioned"),_.P("design:type",Function),_.P("design:paramtypes",[Event]),_.P("design:returntype")],du.prototype,"onDrawerIronSelect",null);
_.d([_.FV("yt-add-element-to-app"),_.P("design:type",Function),_.P("design:paramtypes",[CustomEvent]),_.P("design:returntype")],du.prototype,"onAddElementToApp",null);_.d([_.FV("yt-set-fullerscreen-styles"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"setFullscreen",null);_.d([_.FV("yt-open-hotkey-dialog"),_.P("design:type",Function),_.P("design:paramtypes",[]),_.P("design:returntype")],du.prototype,"onOpenHotkeyDialog",null);
_.d([_.e({is:"ytd-app"})],du);_.g2().processSignal("eor");
_.iG();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
